/* ==========================================================
   Campaign page — stadium at night
   A WebGL pitch, floodlights and a spinning 3D football behind
   the hero; tilting 3D cards, metallic medals and a tilted photo
   wall further down. Everything degrades to a flat night-time
   layout without WebGL or with reduced motion.
   ========================================================== */
:root {
  --night: #050B14;
  --night-2: #0A1626;
  --night-3: #102238;
  --glow: #39E58C;
  --gold: #FFC933;
  --light: #EAF2FF;
  --muted: rgba(234, 242, 255, 0.74);
  --line: rgba(255, 255, 255, 0.14);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --m-gold: linear-gradient(135deg, #FFE58A, #F2B705 55%, #B98300);
  --m-silver: linear-gradient(135deg, #F4F8FC, #B9C3CE 55%, #7E8B99);
  --m-bronze: linear-gradient(135deg, #F3B47A, #C7772B 55%, #8B4A12);
  --m-trophy: linear-gradient(135deg, #8DF7BE, #23C572 55%, #0E7A44);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--light); background: var(--night); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.h2 {
  margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(42px, 7vw, 88px);
  background: linear-gradient(180deg, #ffffff 30%, #8FC8FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec { position: relative; padding: clamp(56px, 8vw, 110px) 0; }
.lead { margin: 16px 0 0; max-width: 56ch; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
html.js .reveal {
  opacity: 0; translate: 0 34px; rotate: x -12deg; transform-origin: 50% 100%;
  transition: opacity 0.7s ease calc(var(--i, 0) * 70ms), translate 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 70ms), rotate 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i, 0) * 70ms);
}
html.js .reveal.in { opacity: 1; translate: 0 0; rotate: x 0deg; }

/* ---------- Buttons ---------- */
.btn-card {
  appearance: none; border: 0; cursor: pointer; font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(22px, 3vw, 28px); min-height: 58px; padding: 14px 28px; border-radius: 10px;
  background: linear-gradient(180deg, #FFDF6B, #FFC933); color: #241A00;
  box-shadow: 0 5px 0 #A67B00, 0 14px 30px rgba(255, 201, 51, 0.32);
  transition: transform 0.08s ease, box-shadow 0.08s ease; animation: cta 2.4s ease-in-out infinite;
}
@keyframes cta { 50% { box-shadow: 0 5px 0 #A67B00, 0 14px 46px rgba(255, 201, 51, 0.62); } }
.btn-card:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #A67B00; }
.btn-card:disabled { cursor: default; }
.btn-card.is-done { background: linear-gradient(180deg, #7DF0B4, #39E58C); color: #04240F; box-shadow: 0 5px 0 #1C9556, 0 12px 30px rgba(57, 229, 140, 0.35); animation: none; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.05); color: var(--light);
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer;
  backdrop-filter: blur(6px); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) { .btn-line:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; transform: translateY(-2px); } }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 5; background: rgba(5, 11, 20, 0.9); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px; font-weight: 600; }
.topbar .meta { color: var(--muted); }
.topbar .share { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 8px; text-decoration: none; font-weight: 700; white-space: nowrap; }
@media (hover: hover) { .topbar .share:hover { background: #fff; color: var(--night); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - 62px); min-height: calc(100svh - 62px);
  background: radial-gradient(90% 70% at 78% 0%, #17406a 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #0c3a25 0%, transparent 60%), var(--night);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 11, 20, 0.85) 0%, rgba(5, 11, 20, 0.45) 30%, rgba(5, 11, 20, 0) 52%), linear-gradient(0deg, var(--night) 0%, transparent 12%); }
.hero-grid { display: grid; gap: 30px; grid-template-areas: "copy" "portrait" "board"; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px); }
.hero-copy { grid-area: copy; position: relative; }
.board { grid-area: board; position: relative; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 56px; row-gap: 28px; align-items: center; grid-template-areas: "copy portrait" "board portrait"; }
}

.post {
  display: inline-block; margin: 0 0 12px; padding: 6px 14px 5px; border-radius: 6px;
  background: linear-gradient(180deg, #FFDF6B, #FFC933); color: #241A00;
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.05;
  box-shadow: 0 0 30px rgba(255, 201, 51, 0.4);
}
/* Name: chunky extruded 3D letters that drop in one by one and tilt with the pointer */
.name {
  margin: 0 0 0.1em; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.005em;
  font-size: clamp(52px, min(15vw, calc(min(1120px, 100vw - 40px) / (var(--w, 8) * 0.42))), 176px);
  perspective: 900px; transform: rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -5deg)); transition: transform 0.18s ease-out;
}
.word { display: inline-block; white-space: nowrap; margin-right: 0.2em; }
.ch {
  display: inline-block; color: var(--light);
  text-shadow: 0 1px 0 #1E9B5C, 0 2px 0 #1B8D54, 0 3px 0 #187F4B, 0 4px 0 #157243, 0 5px 0 #12653B, 0 6px 0 #105833, 0 7px 0 #0D4C2B, 0 8px 0 #0B4024,
    0 16px 24px rgba(0, 0, 0, 0.55), 0 0 46px rgba(57, 229, 140, 0.28);
}
html.js .ch { opacity: 0; transform: translateY(-46px) rotateX(-90deg); animation: drop 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards; animation-delay: calc(var(--i) * 55ms + 0.15s); }
@keyframes drop { to { opacity: 1; transform: none; } }
.course { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; color: #9DD4FF; }
@media (min-width: 900px) {
  /* the name lives in the left column here, so size it to that column (keeps 3-word names on two lines) */
  .name { font-size: clamp(52px, min(15vw, calc((min(1120px, 100vw - 40px) * 0.55 - 28px) / (var(--w, 8) * 0.42))), 128px); }
}
.slogan { margin: 0; max-width: 28ch; font-size: clamp(21px, 2.8vw, 30px); font-weight: 600; line-height: 1.25; }

/* Portrait: a card in real 3D space that follows the pointer, with floating chips at different depths */
.portrait { grid-area: portrait; justify-self: center; width: min(68%, 290px); margin: 10px 0; perspective: 1000px; position: relative; }
@media (min-width: 900px) { .portrait { width: min(100%, 380px); } }
.card3d {
  position: relative; transform-style: preserve-3d; animation: float 6s ease-in-out infinite;
  transform: rotateY(calc(var(--tx, 0) * 16deg)) rotateX(calc(var(--ty, 0) * -14deg)); transition: transform 0.12s ease-out;
}
@keyframes float { 50% { translate: 0 -12px; } }
.card3d .ring { position: absolute; inset: -14px; border: 2px solid var(--glow); border-radius: 22px; opacity: 0.55; transform: translateZ(-50px); box-shadow: 0 0 40px rgba(57, 229, 140, 0.35); }
.portrait img, .monogram {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(57, 229, 140, 0.14), 0 0 70px rgba(57, 229, 140, 0.24);
}
.portrait img { object-fit: cover; object-position: center 25%; background: var(--night-3); }
.monogram {
  display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-weight: 800; font-size: clamp(130px, 30vw, 230px); line-height: 1;
  color: transparent; background: linear-gradient(135deg, #17406a, #0c3a25), var(--night-3); -webkit-background-clip: padding-box;
}
.monogram span { background: linear-gradient(180deg, #ffffff, #39E58C); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35)); }
.glare { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; mix-blend-mode: screen; transform: translateZ(2px);
  background: radial-gradient(circle at calc(50% + var(--tx, 0) * 45%) calc(35% + var(--ty, 0) * 45%), rgba(255, 255, 255, 0.3), transparent 55%); }
.chip {
  position: absolute; padding: 8px 16px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap;
  background: rgba(5, 11, 20, 0.86); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(8px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
.chip-a { left: -20px; bottom: 20%; color: var(--gold); transform: translateZ(70px); }
.chip-b { right: -16px; top: 9%; color: var(--light); transform: translateZ(90px); }

/* Scoreboard */
.board {
  padding: 20px clamp(18px, 3vw, 28px) 24px; border-radius: 20px; background: rgba(6, 16, 30, 0.72); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.board-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; color: var(--gold); }
.digits { display: flex; gap: 6px; min-height: 1em; font-size: clamp(54px, 11vw, 92px); }
.digit {
  position: relative; overflow: hidden; min-width: 0.7em; padding: 0 0.07em; border-radius: 8px; text-align: center;
  background: linear-gradient(#1C3A5E 0 50%, #132C49 50% 100%); border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--display); font-weight: 800; font-size: 1em; line-height: 1.08; color: var(--light); text-shadow: 0 0 18px rgba(143, 200, 255, 0.5);
}
.digit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0, 0, 0, 0.55); }
.digit > span { display: block; }
.digit.roll > span { animation: roll 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes roll { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.board-sub { margin: 12px 0 18px; color: var(--muted); font-weight: 600; }
.board-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.board-msg { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 600; color: var(--gold); }

/* ---------- Track record: a compact medal cabinet ---------- */
.honours-sec { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding-block: clamp(44px, 6vw, 84px); }
.honours-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.honours-count { margin: 0; color: var(--muted); font-weight: 600; }
.hfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: var(--light);
  font: 700 15px/1 var(--body); transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.hchip b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; color: var(--muted); }
.hchip i { width: 12px; height: 12px; border-radius: 50%; background: var(--metal); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 0 8px rgba(255, 255, 255, 0.15); }
.hchip:active { transform: scale(0.96); }
@media (hover: hover) { .hchip:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.1); } }
.hchip.is-on { background: var(--gold); border-color: var(--gold); color: #241A00; }
.hchip.is-on b { color: #241A00; }
.hchip-trophy { --metal: var(--m-trophy); } .hchip-gold { --metal: var(--m-gold); } .hchip-silver { --metal: var(--m-silver); } .hchip-bronze { --metal: var(--m-bronze); }

.hgrid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); perspective: 1100px; }
@media (max-width: 560px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.hcard {
  --tint: 255, 255, 255; --metal: var(--m-silver);
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; min-height: 178px; padding: 16px 16px 18px; border-radius: 20px;
  border: 1px solid rgba(var(--tint), 0.3);
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--tint), 0.24), transparent 62%), linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotateY(calc(var(--tx, 0) * 10deg)) rotateX(calc(var(--ty, 0) * -10deg)); transition: transform 0.12s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hcard[data-m="gold"] { --tint: 242, 183, 5; --metal: var(--m-gold); }
.hcard[data-m="silver"] { --tint: 196, 203, 211; --metal: var(--m-silver); }
.hcard[data-m="bronze"] { --tint: 208, 138, 69; --metal: var(--m-bronze); }
.hcard[data-m="trophy"] { --tint: 57, 229, 140; --metal: var(--m-trophy); }
.hcard[data-m="none"] { --tint: 143, 200, 255; }
.hcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--metal); }
.hcard::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; background: radial-gradient(circle at calc(50% + var(--tx, 0) * 45%) calc(35% + var(--ty, 0) * 45%), rgba(255, 255, 255, 0.2), transparent 52%); }
@media (hover: hover) { .hcard:hover { border-color: rgba(var(--tint), 0.75); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(var(--tint), 0.22); } .hcard:hover::after { opacity: 1; } }
.hcard:not([hidden]) { animation: hpop 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
@keyframes hpop { from { opacity: 0; translate: 0 14px; scale: 0.94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.hc-icon { position: absolute; right: -16px; bottom: -16px; z-index: -1; width: 118px; height: 118px; color: rgb(var(--tint)); opacity: 0.13; transform: rotate(-12deg); }
.hc-icon svg { display: block; width: 100%; height: 100%; }
.hc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 66px; }
.hc-medal { position: relative; display: block; width: 52px; height: 66px; }
.hc-medal .medal { position: absolute; left: 0; top: 0; z-index: 2; width: 52px; height: 52px; font-size: 27px; }
.hc-medal::before, .hc-medal::after { content: ''; position: absolute; top: 36px; width: 17px; height: 30px; z-index: 1; background: linear-gradient(180deg, rgba(var(--tint), 0.95), rgba(var(--tint), 0.5)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.hc-medal::before { left: 8px; transform: rotate(10deg); } .hc-medal::after { right: 8px; transform: rotate(-10deg); }
.hc-year { padding: 4px 11px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.1; color: rgb(var(--tint)); background: rgba(var(--tint), 0.14); border: 1px solid rgba(var(--tint), 0.38); white-space: nowrap; }
.hc-played { padding: 4px 11px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; color: rgb(var(--tint)); border: 1px dashed rgba(var(--tint), 0.6); }
.hc-title { margin: auto 0 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.02; color: #fff; text-wrap: balance; }
.hc-meta { margin: 0; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--muted); }
.medal {
  position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 800; line-height: 1; color: #1B1300;
  background: var(--metal); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65), inset 0 -4px 6px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.45);
}
.medal::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%); transform: translateX(-120%); }
.hgrid.in .medal::after { animation: shine 1.3s ease 0.5s 1; }
@keyframes shine { to { transform: translateX(120%); } }
@media (hover: hover) { .hcard:hover .medal::after { animation: shine 0.7s ease 1; } }
.medal-gold { --metal: var(--m-gold); } .medal-silver { --metal: var(--m-silver); } .medal-bronze { --metal: var(--m-bronze); }
.medal-trophy { --metal: var(--m-trophy); color: #04240F; }
.hmore { margin-top: 16px; min-height: 46px; font-size: 20px; }

/* ---------- Photo wall: three rows on a tilted plane ---------- */
.wall { position: relative; background: radial-gradient(60% 50% at 50% 0%, rgba(57, 229, 140, 0.08), transparent 65%), var(--night); padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.wall-count { display: inline-block; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; background: rgba(57, 229, 140, 0.12); border: 1px solid rgba(57, 229, 140, 0.4); color: var(--glow); font: 700 13px/1 var(--body); letter-spacing: 0.04em; }
.wall-head p { margin: 12px 0 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.wall-stage { position: relative; perspective: 1300px; margin-top: 32px; }
.wall-fade { position: absolute; top: 0; bottom: 0; width: min(14vw, 140px); z-index: 3; pointer-events: none; }
.wall-fade-l { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.wall-fade-r { right: 0; background: linear-gradient(270deg, var(--night), transparent); }
.wall-plane { transform: rotateX(18deg) rotateZ(-3deg) scale(1.1); transform-origin: 50% 35%; }
.wall-row { --h: clamp(124px, 26vw, 200px); overflow: hidden; margin-top: 16px; padding: 16px 0; contain: layout paint; }
.wall-track { display: flex; width: max-content; animation: slide-right var(--dur, 60s) linear infinite; will-change: transform; backface-visibility: hidden; }
.wall-row.rtl .wall-track { animation-name: slide-left; }
.wall-half { display: flex; flex: none; }
.wall-item {
  --a: #39E58C; --b: #7BC4FF;
  appearance: none; position: relative; flex: none; width: calc(var(--h) * 0.8); height: var(--h); margin-right: 16px; padding: 0; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border-radius: 14px; overflow: hidden; background: var(--night-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.wall-item:nth-child(4n+2) { --a: #FFC933; --b: #FF6B5E; }
.wall-item:nth-child(4n+3) { --a: #7BC4FF; --b: #B18CFF; }
.wall-item:nth-child(4n+4) { --a: #FF6B5E; --b: #FFC933; }
/* thin glowing accent line on top */
.wall-item::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px; z-index: 2; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--a) 22%, var(--b) 78%, transparent);
  box-shadow: 0 0 10px var(--a);
}
/* glass edge + soft bottom vignette */
.wall-item::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 60%, rgba(5, 11, 20, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}
.wall-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .wall-item:hover { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 1.5px var(--a), 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 28px -6px var(--a); z-index: 2; }
  .wall-item:hover::after { opacity: 0.35; }
}
.wall-item:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; z-index: 2; }
.wall-item:active { transform: scale(0.97); }
@keyframes slide-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes slide-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.wall-row.paused .wall-track, .wall.is-off .wall-track { animation-play-state: paused; }
@media (hover: hover) { .wall-row:hover .wall-track { animation-play-state: paused; } }

/* ---------- Game plan ---------- */
.plan { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.plays { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); perspective: 1000px; }
.play {
  position: relative; overflow: hidden; padding: 24px 22px 26px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transform: rotateY(calc(var(--tx, 0) * 10deg)) rotateX(calc(var(--ty, 0) * -10deg)); transition: transform 0.12s ease-out;
}
.play::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--glow), transparent); }
.play h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 38px); line-height: 1; color: var(--gold); }
.play p { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- Penalty shootout ---------- */
.shootout { background: radial-gradient(80% 70% at 85% 30%, #0f4a2f 0%, transparent 60%), var(--night-2); }
.shootout-grid { display: grid; gap: 32px; align-items: start; }
.shootout-copy p { margin: 16px 0 0; max-width: 40ch; font-size: 18px; font-weight: 500; color: var(--muted); }
.game-frame {
  position: relative; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 16px; background: #040a13;
  box-shadow: 0 0 0 7px rgba(57, 229, 140, 0.13), 0 40px 70px -14px rgba(0, 0, 0, 0.7), 0 0 80px rgba(57, 229, 140, 0.18);
}
.game-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 9 / 7; touch-action: manipulation; cursor: pointer; }
.game-hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.game-frame::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 80% at 50% 48%, transparent 58%, rgba(0, 0, 0, 0.5) 100%); }
.game-cross { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 3px solid var(--gold); border-radius: 50%; box-shadow: 0 0 18px rgba(255, 201, 51, 0.75), inset 0 0 10px rgba(255, 201, 51, 0.4); will-change: transform; }
.game-cross::before, .game-cross::after { content: ''; position: absolute; background: var(--gold); }
.game-cross::before { left: 50%; top: -9px; bottom: -9px; width: 2px; margin-left: -1px; }
.game-cross::after { top: 50%; left: -9px; right: -9px; height: 2px; margin-top: -1px; }
.game-power { position: absolute; left: 50%; top: 14px; width: min(72%, 380px); height: 18px; transform: translateX(-50%); border-radius: 10px; overflow: hidden; background: rgba(4, 10, 19, 0.7); border: 2px solid rgba(255, 255, 255, 0.7); }
.game-power-zone { position: absolute; top: 0; bottom: 0; background: rgba(57, 229, 140, 0.6); border-inline: 2px solid #39E58C; z-index: 1; }
.game-power-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #FFC933, #FF6B5E); opacity: 0.9; }
.game-wind { position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(5, 11, 20, 0.72); font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--light); }
.game-banner { position: absolute; left: 50%; top: 20%; transform: translateX(-50%) scale(0.6); opacity: 0; white-space: nowrap; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 9vw, 84px); line-height: 1; color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 201, 51, 0.5); }
.game-banner.miss { color: var(--light); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }
.game-banner.save { color: #FF9C8F; }
.game-banner.show { animation: banner-pop 1.6s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards; }
@keyframes banner-pop { 0% { opacity: 0; transform: translateX(-50%) scale(0.5); } 14% { opacity: 1; transform: translateX(-50%) scale(1.08); } 24% { transform: translateX(-50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
.game-panel { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; background: rgba(4, 10, 19, 0.8); backdrop-filter: blur(6px); }
.game-panel h3 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 6vw, 56px); line-height: 0.95; }
.game-panel p { margin: 0; max-width: 34ch; color: var(--muted); font-weight: 500; }
.game-name-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(100%, 420px); }
.game-name-form input { flex: 1 1 180px; min-width: 0; min-height: 56px; padding: 0 16px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); color: var(--light); font: 600 20px var(--body); }
.game-name-form input:focus-visible { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(255, 201, 51, 0.35); }
.game-name-err { color: var(--gold) !important; min-height: 1.4em; font-size: 15px; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.game-stat { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
.game-after { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.game-after p { margin: 0; font-weight: 600; }
.no-webgl canvas { display: none; }

.leader { padding: 20px 22px 22px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); }
.leader-title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--gold); }
.leader-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.leader-list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.leader-list li.me { background: rgba(255, 201, 51, 0.16); outline: 1px solid rgba(255, 201, 51, 0.6); }
.leader-list li.empty { display: block; color: var(--muted); background: none; font-weight: 500; }
.leader-list .rk { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--muted); }
.leader-list li:nth-child(1) .rk { color: #F2B705; } .leader-list li:nth-child(2) .rk { color: #C4CBD3; } .leader-list li:nth-child(3) .rk { color: #D08A45; }
.leader-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-list .sc { font-family: var(--display); font-weight: 800; font-size: 22px; }
@media (min-width: 900px) {
}

/* ---------- Games hub and game pages ---------- */
.gamepage { background: radial-gradient(90% 60% at 80% 0%, #17406a 0%, transparent 60%), radial-gradient(70% 50% at 0% 100%, #0c3a25 0%, transparent 60%), var(--night); }
.hub { padding-top: clamp(40px, 6vw, 80px); }
.game-cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); perspective: 1100px; }
.game-card {
  position: relative; display: grid; gap: 8px; align-content: start; height: 100%; padding: 26px 24px 24px; border-radius: 20px; text-decoration: none; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18); background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  transform: rotateY(calc(var(--tx, 0) * 10deg)) rotateX(calc(var(--ty, 0) * -10deg)); transition: transform 0.12s ease-out, border-color 0.2s ease;
}
.game-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; background: radial-gradient(circle at calc(50% + var(--tx, 0) * 45%) calc(40% + var(--ty, 0) * 45%), rgba(255, 255, 255, 0.16), transparent 50%); }
@media (hover: hover) { .game-card:hover { border-color: rgba(255, 201, 51, 0.7); } .game-card:hover::after { opacity: 1; } }
.gc-icon { width: 70px; height: 70px; color: var(--gold); filter: drop-shadow(0 0 16px rgba(255, 201, 51, 0.45)); animation: float 5s ease-in-out infinite; }
.gc-icon svg { width: 100%; height: 100%; display: block; }
.gc-tag { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--glow); }
.gc-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4vw, 42px); line-height: 0.95; color: var(--light); }
.gc-text { color: var(--muted); font-size: 17px; }
.gc-medal { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(255, 201, 51, 0.14); border: 1px solid rgba(255, 201, 51, 0.5); color: var(--gold); font-weight: 700; font-size: 14px; line-height: 1.3; }
.gc-top { color: var(--muted); font-size: 15px; font-weight: 600; }
.gc-go { justify-self: start; margin-top: 8px; padding: 10px 24px; border-radius: 10px; background: linear-gradient(180deg, #FFDF6B, #FFC933); color: #241A00; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; box-shadow: 0 4px 0 #A67B00; }

.game-sec { padding-top: clamp(32px, 5vw, 64px); }
.game-layout { display: grid; gap: 28px; align-items: start; }
.game-head .h2 { font-size: clamp(38px, 6vw, 72px); }
@media (min-width: 960px) {
  .game-layout { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); grid-template-areas: "head head" "game leader"; gap: 28px 40px; }
  .game-head { grid-area: head; } .game-wrap { grid-area: game; } .leader { grid-area: leader; }
}
.game-controls { display: flex; gap: 12px; margin-top: 18px; }
.game-controls:empty { display: none; }
.game-pad {
  flex: 1; min-height: 76px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); color: var(--light); cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); transition: transform 0.06s ease, background 0.1s ease;
}
.game-pad.down { transform: translateY(4px); background: rgba(255, 201, 51, 0.28); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.game-pad.go { background: linear-gradient(180deg, #FFDF6B, #FFC933); color: #241A00; border-color: transparent; }
.game-meter { position: absolute; left: 12px; right: 12px; height: 16px; border-radius: 9px; overflow: hidden; background: rgba(4, 10, 19, 0.7); border: 2px solid rgba(255, 255, 255, 0.7); }
.game-meter > span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #39E58C, #FFC933 70%, #FF6B5E); }
.game-meter > i { position: absolute; top: 0; bottom: 0; background: rgba(57, 229, 140, 0.55); border-inline: 2px solid #39E58C; }
.game-label { position: absolute; padding: 3px 10px; border-radius: 8px; background: rgba(5, 11, 20, 0.72); font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--light); }
.game-float { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: clamp(30px, 7vw, 56px); color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }

/* the "Play games" button under the stand button on the main page */
.games-btn { margin-top: 14px; width: 100%; max-width: 360px; justify-content: space-between; }
.games-btn span[aria-hidden] { color: var(--gold); }

/* ---------- Join ---------- */
.join { background: radial-gradient(70% 90% at 15% 100%, #0d4a2c 0%, transparent 60%), var(--night); }
.join p { margin: 16px 0 0; max-width: 52ch; font-size: 19px; color: var(--muted); }
.join .date { display: inline-block; margin-top: 20px; padding: 7px 16px; border: 2px solid var(--gold); border-radius: 8px; font-weight: 700; color: var(--gold); }
.join-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; align-items: center; }

/* ---------- Footer ---------- */
.foot { background: #030810; padding: 28px 0 40px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; max-width: 70ch; }
.foot a { color: var(--gold); }

/* ---------- Confetti (fired when someone taps "I stand with") ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Notice board: tall posters (invitations, event notices), never cropped ---------- */
.notice-sec { background: radial-gradient(70% 60% at 100% 0%, rgba(255, 201, 51, 0.09), transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); padding-block: clamp(44px, 6vw, 84px); }
.notice-head p { margin: 12px 0 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.notice-count { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; background: rgba(255, 201, 51, 0.12); border: 1px solid rgba(255, 201, 51, 0.45); color: var(--gold); font: 700 13px/1 var(--body); letter-spacing: 0.04em; }
.notice-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: npulse 1.8s ease-out infinite; }
@keyframes npulse { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 51, 0.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 201, 51, 0); } }

/* phones: swipe sideways; wide screens: a grid */
.notice-row {
  list-style: none; margin: 26px 0 0; padding: 8px 4px 20px; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(255, 201, 51, 0.5) transparent; perspective: 1100px;
}
@media (min-width: 900px) { .notice-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; overflow: visible; } }
.notice-card {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transform: rotateY(calc(var(--tx, 0) * 9deg)) rotateX(calc(var(--ty, 0) * -9deg)); transition: transform 0.12s ease-out;
}
.notice-open {
  appearance: none; position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0; border: 0; border-radius: 16px;
  cursor: zoom-in; -webkit-tap-highlight-color: transparent; background: var(--night-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 42px rgba(255, 201, 51, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* the same image, blurred, fills any empty space around posters that aren't exactly 2:3 */
.notice-bg { position: absolute; inset: -24px; z-index: -1; width: calc(100% + 48px); max-width: none; height: calc(100% + 48px); object-fit: cover; filter: blur(18px) brightness(0.5) saturate(1.2); }
.notice-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.notice-open::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; background: radial-gradient(circle at calc(50% + var(--tx, 0) * 45%) calc(35% + var(--ty, 0) * 45%), rgba(255, 255, 255, 0.22), transparent 55%); }
.notice-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(5, 11, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(6px); }
@media (hover: hover) {
  .notice-open:hover, .notice-open:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 34px 60px rgba(0, 0, 0, 0.6), 0 0 56px rgba(255, 201, 51, 0.3); }
  .notice-open:hover::after { opacity: 1; }
}
.notice-open:active { transform: scale(0.98); }
.notice-info { display: grid; gap: 8px; padding: 0 2px; }
.notice-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ntag { padding: 4px 11px; border-radius: 999px; font: 800 17px/1.1 var(--display); letter-spacing: 0.02em; white-space: nowrap; color: var(--light); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.3); }
.ntag-pin { background: var(--gold); border-color: var(--gold); color: #241A00; }
.ntag-date.is-soon { color: var(--glow); background: rgba(57, 229, 140, 0.12); border-color: rgba(57, 229, 140, 0.6); }
.ntag-done { color: var(--muted); border-style: dashed; }
.notice-cap { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--light); overflow-wrap: anywhere; }
.notice-card.is-past .notice-open { filter: grayscale(0.55) brightness(0.8); }
.notice-card.is-past .notice-cap { color: var(--muted); }

/* ---------- Photo lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 6vh 4vw; background: rgba(3, 6, 12, 0.92); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 10px; background: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); transform: scale(0.94); transition: transform 0.22s ease; }
.lightbox.show img { transform: scale(1); }
.lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(5, 11, 20, 0.7); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; translate: 0 0; rotate: x 0deg; transition: none; }
  html.js .ch { opacity: 1; transform: none; animation: none; }
  .card3d, .btn-card { animation: none; }
  .digit.roll > span { animation: none; }
  .wall-track { animation: none; }
  .wall-plane { transform: none; }
  .wall-row { overflow-x: auto; }
  .wall-half[aria-hidden="true"] { display: none; }
  .wall-item { transform: none !important; }
  .notice-count i { animation: none; }
  .notice-card, .notice-open { transform: none !important; transition: none; }
}

/* ==========================================================
   Game UI v2 — arcade look: glass HUD, glossy pads, stadium panels, podium
   ========================================================== */
body.gamepage { background: radial-gradient(90% 60% at 82% -10%, rgba(23, 64, 106, 0.55), transparent 60%), radial-gradient(80% 60% at 0% 110%, rgba(12, 58, 37, 0.6), transparent 60%), var(--night); }
.game-tabs { position: relative; z-index: 4; border-bottom: 1px solid var(--line); background: rgba(5, 11, 20, 0.72); backdrop-filter: blur(10px); }
.game-tabs .wrap { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.game-tab { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted); text-decoration: none; font: 700 15px var(--body); white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) { .game-tab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); } }
.game-tab.is-on { background: var(--gold); border-color: var(--gold); color: #241A00; }

.game-frame { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 24px; box-shadow: 0 34px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 70px rgba(57, 229, 140, 0.16); }
.game-frame .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* panels: start, name, result */
.game-panel { gap: 14px; padding: 22px; background: radial-gradient(62% 56% at 50% 38%, rgba(18, 72, 56, 0.5), rgba(4, 10, 19, 0.82) 78%); backdrop-filter: blur(4px); }
.gp-eyebrow { font: 700 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); }
.game-panel h3 { font-size: clamp(38px, 6.5vw, 64px); background: linear-gradient(180deg, #ffffff, #a9d6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-panel p { max-width: 38ch; }
.gp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 580px); }
.gp-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 13px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.gp-steps b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #241A00; font: 800 15px var(--display); }
@media (max-width: 560px) { .gp-steps { grid-template-columns: 1fr; gap: 6px; } .gp-steps li { flex-direction: row; align-items: center; padding: 8px 12px; } }
.go-score { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 15vw, 128px); line-height: 0.9; background: var(--m-gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(255, 201, 51, 0.35)); }
.go-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.go-actions .btn-card { font-size: 22px; min-height: 52px; padding: 10px 22px; }
.go-actions .btn-line { min-height: 52px; font-size: 19px; }
.game-name-form input { border-radius: 14px; background: rgba(255, 255, 255, 0.1); }
#gameAfter { display: none !important; }

/* HUD */
.game-label { padding: 6px 13px; border-radius: 12px; background: linear-gradient(180deg, rgba(22, 38, 60, 0.88), rgba(8, 16, 28, 0.88)); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); font: 800 20px/1.1 var(--display); letter-spacing: 0.02em; color: #fff; }
.game-meter { height: 22px; border-radius: 12px; background: rgba(4, 10, 19, 0.78); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4); }
.game-meter::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 9.4%, rgba(255, 255, 255, 0.16) 9.4% 10%); }
.game-meter > span { background: linear-gradient(90deg, #39E58C, #FFC933 60%, #FF6B5E); box-shadow: 0 0 14px rgba(255, 201, 51, 0.5); }
.game-meter > i { background: rgba(57, 229, 140, 0.5); border-inline: 2px solid #39E58C; box-shadow: 0 0 16px rgba(57, 229, 140, 0.75); }
.game-banner { color: transparent; text-shadow: none; background: linear-gradient(180deg, #FFE58A, #FFC933 55%, #E89B00); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(60, 38, 0, 0.5); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 26px rgba(255, 201, 51, 0.45)); font-size: clamp(44px, 10vw, 92px); }
.game-banner.miss { background: linear-gradient(180deg, #ffffff, #b6c6de); -webkit-text-stroke: 1px rgba(10, 20, 40, 0.5); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5)); }
.game-banner.save { background: linear-gradient(180deg, #FFC2B4, #FF6B5E); -webkit-text-stroke: 1px rgba(70, 10, 5, 0.5); filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(255, 107, 94, 0.4)); }

/* bar, pads */
.game-bar { padding: 12px 16px; border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); margin-top: 16px; }
.game-controls { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.game-controls:empty { display: none; }
.game-pad {
  flex: 1 1 0; max-width: 300px; min-height: 78px; border: 0; border-radius: 22px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: #241A00;
  background: linear-gradient(180deg, #FFE58A, #FFC933 55%, #E8A100);
  box-shadow: 0 8px 0 #96690A, 0 18px 34px rgba(255, 201, 51, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.game-pad.down { transform: translateY(6px); box-shadow: 0 2px 0 #96690A, 0 8px 18px rgba(255, 201, 51, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.4); }

/* leaderboard podium */
.leader { border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.leader-list li.pod { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; padding: 0; margin-bottom: 6px; background: none; outline: 0; }
.pod-item { --pt: 255, 255, 255; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 16px; text-align: center; min-width: 0; border: 1px solid rgba(var(--pt), 0.4); background: linear-gradient(170deg, rgba(var(--pt), 0.26), rgba(255, 255, 255, 0.04)); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
.pod-1 { --pt: 242, 183, 5; padding-top: 22px; } .pod-2 { --pt: 196, 203, 211; } .pod-3 { --pt: 208, 138, 69; }
.pod-medal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 800 20px/1 var(--display); color: #1B1300; background: var(--metal, var(--m-silver)); box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.6), 0 6px 12px rgba(0, 0, 0, 0.4); }
.pod-1 .pod-medal { --metal: var(--m-gold); width: 46px; height: 46px; font-size: 26px; } .pod-2 .pod-medal { --metal: var(--m-silver); } .pod-3 .pod-medal { --metal: var(--m-bronze); }
.pod-item .nm { max-width: 100%; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-item .sc { font: 800 22px/1 var(--display); }
.pod-item.me { outline: 2px solid var(--gold); }

@media (max-width: 560px) {
  .game-frame canvas { aspect-ratio: 1 / 1; }
  .game-panel { gap: 8px; padding: 14px; }
  .game-panel h3 { font-size: 34px; }
  .gp-steps { display: none; }
  .go-score { font-size: 68px; }
  .go-actions .btn-line[href="games.php"] { display: none; }
  .go-actions .btn-card { font-size: 20px; min-height: 46px; padding: 8px 18px; }
  .go-actions .btn-line { min-height: 46px; font-size: 17px; }
  .game-pad { min-height: 68px; font-size: 26px; }
}