/* Colorful, football-themed static site. No build step required. */

:root {
  --white: rgba(255, 255, 255, 0.92);
  --glass: rgba(255, 255, 255, 0.80);
  --ink: #0f172a;
  --muted: rgba(255, 255, 255, 0.92);
  --muted2: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 50px rgba(6, 78, 59, 0.22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.bg { position: fixed; inset: 0; z-index: -1; }
.bg-a {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.45), transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.35), transparent 40%),
              radial-gradient(circle at 50% 100%, rgba(74, 222, 128, 0.40), transparent 55%);
}
.bg-b {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,185,129,0.92), rgba(2,132,199,0.86) 45%, rgba(67,56,202,0.92));
}
.bg-stripes {
  position: absolute; inset: 0;
  opacity: 0.30;
  mix-blend-mode: soft-light;
  background: repeating-linear-gradient(90deg, transparent, transparent 52px, rgba(255,255,255,0.06) 52px, rgba(255,255,255,0.06) 54px);
}
.bg-gloss {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 35%, rgba(255,255,255,0.08) 100%);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero { text-align: center; }
.kicker {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.35em;
  color: rgba(253, 230, 138, 0.95);
  font-size: 20px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  margin: 10px 0 0;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.95;
  color: white;
  text-shadow: 0 18px 55px rgba(0,0,0,0.25);
}
.sub {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  text-shadow: 0 12px 45px rgba(0,0,0,0.20);
}
.board h2, .music h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 44px;
  letter-spacing: 0.02em;
  margin: 0;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 16px 45px rgba(0,0,0,0.2);
}
.hint {
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 13px;
  max-width: 800px;
}
.hint code {
  background: rgba(255,255,255,0.18);
  padding: 2px 6px;
  border-radius: 8px;
}
.board-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}

.btn {
  border: 0;
  border-radius: 999px;
  background: rgba(253, 224, 71, 0.95);
  color: #064e3b;
  font-weight: 900;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(6, 78, 59, 0.20);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  font-size: 14px;
}
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); }
.btn:disabled { opacity: 0.75; cursor: wait; transform: none; }

.error {
  margin-top: 14px;
  background: rgba(254, 226, 226, 0.96);
  border: 1px solid rgba(248, 113, 113, 0.40);
  color: #7f1d1d;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 14px;
}

.grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 28px 70px rgba(6, 78, 59, 0.24); }
.glow {
  pointer-events: none;
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.25);
  filter: blur(34px);
  transition: background .18s ease;
}
.card:hover .glow { background: rgba(253, 224, 71, 0.30); }

.top {
  display: flex;
  align-items: start;
  gap: 12px;
}
.flag {
  width: 56px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}
.name {
  min-width: 0;
  flex: 1;
}
.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.name-row .name-text { min-width: 0; flex: 1; }
.btn-pump {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  background: #059669;
  box-shadow: 0 8px 20px rgba(5, 46, 22, 0.22);
  transition: background 0.12s ease, transform 0.12s ease;
}
.btn-pump:hover { background: #047857; transform: translateY(-1px); }

.name .title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 0;
  color: #052e16;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.name .sym {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #0369a1;
}

.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.90);
  background: linear-gradient(135deg, rgba(236,253,245,0.90), rgba(224,242,254,0.85));
}
.stat.gold {
  background: linear-gradient(135deg, rgba(255,251,235,0.95), rgba(255,237,213,0.88));
}
.stat dt { font-size: 12px; color: rgba(51, 65, 85, 0.85); }
.stat dd {
  margin: 6px 0 0;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.stat .big {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  color: #064e3b;
}
.stat .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  color: #0f172a;
}
.mint {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  color: rgba(71, 85, 105, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  padding: 18px;
  box-shadow: 0 22px 60px rgba(6, 78, 59, 0.18);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1024px) {
  .music { grid-template-columns: 1fr 420px; align-items: start; }
}
.music h2 {
  color: #052e16;
  text-shadow: none;
}
.music .hint { color: rgba(30, 41, 59, 0.70); }

.tracks { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: auto; padding-right: 4px; }
.track {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.track:hover { background: rgba(236, 253, 245, 0.70); border-color: rgba(110, 231, 183, 0.80); }
.track.sel {
  background: rgba(255, 251, 235, 0.92);
  border-color: rgba(251, 191, 36, 0.90);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.35);
}
.t-main { min-width: 0; }
.t-title { font-weight: 900; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { margin-top: 2px; font-size: 12px; color: rgba(71, 85, 105, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  flex: none;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.92);
  color: white;
}

.music-right {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(15, 23, 42, 0.06);
}
.player-empty {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(224,242,254,0.88), rgba(255,255,255,0.92), rgba(255,251,235,0.88));
}
.note { font-size: 40px; }
.player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* $WORLDCUP hub */
.worldcup {
  border-radius: 26px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.9));
  box-shadow: 0 22px 50px rgba(6, 78, 59, 0.16);
  padding: 1.5rem 1.25rem;
}
@media (min-width: 900px) {
  .worldcup { padding: 2rem; }
}
.worldcup-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .worldcup-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}
.worldcup-copy { min-width: 0; flex: 1; }
.worldcup-kicker {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  color: #065f46;
  margin: 0;
}
.worldcup-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin: 0.25rem 0 0;
  color: #052e16;
  letter-spacing: 0.02em;
}
.worldcup-body {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
}
.worldcup-mintbox {
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 1rem;
}
.worldcup-mintlabel {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.worldcup-mintvalue {
  margin: 0.35rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: #0f172a;
}
.btn.wc-trade {
  margin-top: 0.75rem;
  display: inline-flex;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(5, 46, 22, 0.2);
}
.btn.wc-trade:hover { background: #047857; }

.worldcup-statsbox {
  width: 100%;
  max-width: 22rem;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.25rem;
}
.worldcup-statlabel {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.worldcup-mc {
  margin: 0.5rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.25rem;
  color: #052e16;
}
.worldcup-price {
  margin: 0.5rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: #475569;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  padding-bottom: 8px;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.footer p { margin: 0 0 0.65rem; }
.footer a {
  color: rgba(253, 230, 138, 0.95);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer a:hover { color: #fff; }
