/* ═══════════════════════════════════════════════════════════════════
   route26 — FIFA World Cup 2026 NFC Bracelet
   共用样式 · team pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  overflow: hidden;
  height: 100dvh;
}

/* ── Color band background ── */
.bands {
  position: fixed; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
}
.band {
  flex: 1; position: relative; overflow: hidden;
}
.band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48'%3E%3Cpath d='M28 0L56 14v20L28 48 0 34V14z' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 48px;
  animation: hexDrift 12s linear infinite;
}
.band::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(255,255,255,0.06) 22px, rgba(255,255,255,0.06) 23px),
    repeating-linear-gradient(0deg,  transparent, transparent 22px, rgba(255,255,255,0.06) 22px, rgba(255,255,255,0.06) 23px);
}

@keyframes hexDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 48px; }
}
@keyframes bandSlide {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(25px); }
}

/* ── Woven fabric texture overlay ── */
.weave-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(0deg,  transparent, transparent 3px,  rgba(0,0,0,0.06) 3px,  rgba(0,0,0,0.06) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
  pointer-events: none;
}

/* ── Floating football elements ── */
.float-elements {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.float-el {
  position: absolute; opacity: 0.15;
  animation: floatDrift 18s ease-in-out infinite;
}
@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-15px) rotate(5deg); }
  50%      { transform: translateY(-8px) rotate(-3deg); }
  75%      { transform: translateY(-20px) rotate(4deg); }
}

/* ── Back button ── */
.back-btn {
  position: fixed;
  top: max(env(safe-area-inset-top, 16px), 16px);
  left: 16px;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff; text-decoration: none;
  transition: all 0.25s;
}
.back-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.08); }

/* ── Main container ── */
.main {
  position: relative; z-index: 10;
  height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding:
    max(env(safe-area-inset-top, 20px), 100px)
    20px
    max(env(safe-area-inset-bottom, 20px), 80px);
  overflow: hidden;
}

/* ── Country tag ── */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--tag-border);
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 6px; text-transform: uppercase;
  animation: tagGlow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes tagGlow {
  from { box-shadow: 0 0 15px var(--tag-glow); }
  to   { box-shadow: 0 0 30px var(--tag-glow-strong), inset 0 0 15px var(--tag-glow); }
}

/* ── Slogan ── */
.slogan-area {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; min-height: 0; overflow: hidden;
}
.slogan {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-size: clamp(48px, 18vw, 160px);
  font-weight: 400; line-height: 0.92; letter-spacing: 2px;
  text-transform: uppercase; text-align: center; width: 100%;
  animation: sloganReveal 1s ease-out forwards;
  opacity: 0;
}
.slogan .line { display: block; overflow: hidden; }
.slogan .line span {
  display: inline-block;
  animation: lineUp 0.8s ease-out forwards;
  transform: translateY(110%);
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes sloganReveal { to { opacity: 1; } }

.slogan-sub {
  margin-top: 12px;
  font-size: clamp(11px, 3vw, 16px);
  font-weight: 600; letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85); text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s ease-out 0.7s forwards;
  flex-shrink: 0;
}

/* ── Year badge ── */
.year-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  flex-shrink: 0; opacity: 0;
  animation: fadeUp 0.6s ease-out 0.8s forwards;
}
.year-badge .fifa {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.year-badge .year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 3px;
  color: var(--year-color);
  line-height: 1;
}

/* ── Bottom color strip ── */
.color-strip {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 6px; z-index: 100;
  display: flex;
}
.color-strip span {
  flex: 1;
  animation: stripPulse 2s ease-in-out infinite alternate;
}
@keyframes stripPulse { from { opacity: 0.7; } to { opacity: 1; } }

/* ── Brand ── */
.brand {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: color 0.25s;
}
.brand:hover { color: rgba(255,255,255,1); }

/* ── fadeUp ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 响应式 ── */
@media (max-width: 480px) {
  .tag { font-size: 12px; padding: 6px 18px; letter-spacing: 4px; }
}
