/* KadaPingPong – tournament-hall flip scoreboard world */

:root {
  --hall: #0b0e13;
  --hall-2: #161b23;
  --table: #2166b3;
  --table-deep: #17497f;
  --line: #f2f1ea;
  --card: #f4efe4;
  --card-2: #e5ddcb;
  --ink: #15171b;
  --frame: #1d2129;
  --frame-2: #2b303a;
  --frame-3: #0c0f14;
  --red: #d7263d;
  --green: #22a366;
  --amber: #ffb020;
  --chalk: #9fb3c8;
  --ball: #ff8f1f;
  --wood: #caa26b;
  --text: #f4f1ea;
  --muted: #b3bcc8;
  --dim: #7f8a99;
  --state: var(--red);
  --state-ink: #fff;
  --card-w: clamp(44px, 10.5vw, 100px);
  --card-h: calc(var(--card-w) * 1.4);
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --radius: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.mood-forbidden { --state: var(--red); --state-ink: #fff; }
.mood-ready     { --state: var(--amber); --state-ink: #1a1200; }
.mood-allowed   { --state: var(--green); --state-ink: #fff; }
.mood-weekend   { --state: var(--chalk); --state-ink: #0b0e13; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 42% at 50% 6%, rgba(255, 205, 140, .16), transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% 100%, #0f1319, transparent 70%),
    var(--hall);
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 4px; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(16px, 4vw, 40px) 0;
  max-width: 1180px; margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1;
}
.brand-q { color: var(--ball); }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.ctl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--hall-2); border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); font-weight: 500; font-size: 14px;
  transition: background .25s var(--ease-out), color .25s, border-color .25s, transform .25s var(--ease-out);
}
.ctl:hover { background: #1f2630; color: var(--text); border-color: rgba(255,255,255,.2); }
.ctl:active { transform: scale(.97); }
.ctl[aria-pressed="true"] { background: rgba(255,143,31,.14); color: #ffc58a; border-color: rgba(255,143,31,.5); }
.ctl .slash { display: none; }
.ctl[aria-pressed="false"] .wave { display: none; }
.ctl[aria-pressed="false"] .slash { display: block; }
#notifyBtn[aria-pressed="false"] .wave { display: block; }
#notifyBtn .slash { display: none !important; }
#notifyBtn.unsupported { display: none; }

/* ---------- arena ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 40px); }
.arena { text-align: center; padding: 8px 0 12px; }

.rally {
  position: relative; height: clamp(160px, 26vw, 250px); max-width: 980px; margin: 0 auto;
  perspective: 900px;
}
.surface {
  position: absolute; left: 7%; right: 7%; bottom: 12px; height: 170px;
  transform-origin: 50% 100%;
  transform: rotateX(63deg);
  transform-style: preserve-3d;
  background: linear-gradient(180deg, #2a72c6 0%, var(--table) 45%, var(--table-deep) 100%);
  border: 3px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 40px 70px -10px rgba(0,0,0,.75), inset 0 0 60px rgba(0,0,0,.18);
}
.surface::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(242,241,234,.85);
}
.surface::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 16px;
  background: linear-gradient(180deg, #0d1219, #05070a);
  transform: rotateX(-63deg); transform-origin: 50% 0;
}
.net3d {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 50px; margin: -50px 0 0 -11px;
  transform-origin: 50% 100%;
  transform: rotateX(-63deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px),
    rgba(14,17,22,.6);
  border-top: 4px solid var(--line);
  box-shadow: 0 12px 10px -6px rgba(0,0,0,.5);
}
.net3d::before {
  content: ""; position: absolute; left: -7px; top: -8px; width: 7px; height: calc(100% + 12px);
  background: linear-gradient(90deg, #3a3f48, #14171c); border-radius: 2px;
}
.net3d::after {
  content: ""; position: absolute; right: -7px; top: -8px; width: 7px; height: calc(100% + 12px);
  background: linear-gradient(90deg, #3a3f48, #14171c); border-radius: 2px;
}

.paddle {
  position: absolute; bottom: 42px; width: clamp(64px, 11vw, 118px); height: auto;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.55));
}
.paddle-l { left: 1%; }
.paddle-r { right: 1%; }
.paddle .swing { transform-box: fill-box; transform-origin: 20% 95%; animation: swingL 1.5s linear infinite; }
.paddle-r .swing { transform-origin: 80% 95%; animation-name: swingR; }
@keyframes swingL {
  0% { transform: rotate(22deg); }
  10% { transform: rotate(-28deg); }
  85% { transform: rotate(-28deg); }
  100% { transform: rotate(22deg); }
}
@keyframes swingR {
  0% { transform: rotate(28deg); }
  35% { transform: rotate(28deg); }
  50% { transform: rotate(-22deg); }
  60% { transform: rotate(28deg); }
  100% { transform: rotate(28deg); }
}

.ball-x {
  position: absolute; left: 9%; bottom: 78px; width: 24px; height: 24px;
  animation: fly .75s linear infinite alternate;
  z-index: 3;
}
.ball-y { width: 100%; height: 100%; animation: arc .75s linear infinite; }
.ball {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe0b8 0%, var(--ball) 40%, #d66500 100%);
  box-shadow: inset -3px -4px 6px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.15);
}
.ball-shadow {
  position: absolute; left: 9%; bottom: 40px; width: 24px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.5); filter: blur(2px);
  animation: fly .75s linear infinite alternate, shade .75s linear infinite;
  z-index: 2;
}
@keyframes fly { from { left: 9%; } to { left: calc(91% - 24px); } }
@keyframes arc {
  0%   { transform: translateY(0); animation-timing-function: ease-out; }
  32%  { transform: translateY(-58px); animation-timing-function: ease-in; }
  64%  { transform: translateY(34px); animation-timing-function: ease-out; }
  86%  { transform: translateY(-6px); animation-timing-function: ease-in; }
  100% { transform: translateY(0); }
}
@keyframes shade {
  0%   { transform: scale(.75); opacity: .35; }
  32%  { transform: scale(.55); opacity: .2; }
  64%  { transform: scale(1.1); opacity: .7; }
  86%  { transform: scale(.85); opacity: .4; }
  100% { transform: scale(.75); opacity: .35; }
}

.verdict { margin-top: 18px; font-family: var(--font-display); line-height: .92; text-wrap: balance; }
.verdict-q {
  display: block; font-size: clamp(17px, 2.3vw, 24px); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.verdict-a {
  display: block; margin-top: 6px; font-size: clamp(64px, 12vw, 6rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: .005em; color: var(--state);
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
  transition: color .5s;
}

/* ---------- board ---------- */
.board {
  display: inline-block; text-align: left; margin: 22px auto 0;
  padding: 16px 20px 12px; border-radius: 16px;
  background: linear-gradient(180deg, var(--frame-2), var(--frame) 40%, #14171d);
  box-shadow:
    0 40px 60px -24px rgba(0,0,0,.9),
    0 2px 0 rgba(255,255,255,.06) inset,
    0 -2px 0 rgba(0,0,0,.6) inset;
  max-width: 100%;
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.plate {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase; color: #d8d2c4; line-height: 1;
  padding: 8px 12px 7px; border-radius: 5px; background: var(--frame-3);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06);
  white-space: nowrap;
}
.plate-label { font-size: clamp(13px, 1.5vw, 16px); }


.clock { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.2vw, 14px); }
.group { display: flex; gap: clamp(4px, .8vw, 8px); }
.colon { display: flex; flex-direction: column; gap: clamp(12px, 2vw, 22px); align-items: center; padding: 0 2px; }
.colon i { width: clamp(6px, 1vw, 10px); height: clamp(6px, 1vw, 10px); border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.units {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; margin-top: 10px;
}
.units span {
  grid-column: span 1; text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}
.units span:nth-child(2) { grid-column: 3; }
.units span:nth-child(3) { grid-column: 5; }
.board-foot {
  margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07);
  text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .34em; text-transform: uppercase; color: #5d6773;
}

/* flip card */
.flip {
  position: relative; width: var(--card-w); height: var(--card-h);
  perspective: 500px;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--card-h) * .86);
  line-height: 1; color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12);
}
.flip .half {
  position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden;
  background: var(--card); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip .top { top: 0; border-radius: 8px 8px 0 0; transform-origin: 50% 100%; }
.flip .bottom { bottom: 0; border-radius: 0 0 8px 8px; transform-origin: 50% 0; background: var(--card-2); }
.flip .half span {
  position: absolute; left: 0; width: 100%; height: var(--card-h); line-height: var(--card-h);
  text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.flip .top span { top: 0; }
.flip .bottom span { bottom: 0; }
.flip .top.anim { transform: rotateX(-90deg); z-index: 2; }
.flip .bottom.anim { transform: rotateX(90deg); z-index: 2; }
.flip::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0,0,0,.55); z-index: 3;
}
.flip::before {
  content: ""; position: absolute; top: 50%; left: -1px; right: -1px; height: 10px; margin-top: -5px;
  background: linear-gradient(90deg, var(--frame-3) 0 5px, transparent 5px calc(100% - 5px), var(--frame-3) calc(100% - 5px) 100%);
  z-index: 4; pointer-events: none;
}


/* state card: a wide flip card in the board's top-right */
.flip.state-flip {
  --card-w: 232px;
  --card-h: 46px;
  font-size: 30px; font-weight: 700; letter-spacing: .06em;
  transition: none;
}
.state-flip .half { background: var(--state); color: var(--state-ink); transition: background .5s; }
.state-flip .half.bottom { background: color-mix(in srgb, var(--state) 80%, black); }
.state-flip::after { background: rgba(0,0,0,.45); }

/* ---------- umpire ---------- */
.umpire {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 28px auto 0; max-width: 680px; flex-wrap: wrap;
}
.plate-umpire { color: var(--state); font-size: 12px; transition: color .5s; }
.umpire-line {
  font-size: clamp(18px, 2.4vw, 23px); font-weight: 500; font-style: italic; color: var(--text);
  text-wrap: balance; transition: opacity .35s ease, transform .35s var(--ease-out);
  min-height: 1.5em;
}
.umpire-line.out { opacity: 0; transform: translateY(6px); }
.next { margin: 14px auto 0; color: var(--muted); font-size: 15.5px; max-width: 560px; text-wrap: balance; }

/* ---------- vilius ---------- */
.vilius { margin: 26px auto 0; max-width: 640px; }
.vilius-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  width: 100%; padding: 14px 18px 14px 22px; cursor: pointer; border-radius: 12px;
  background: linear-gradient(180deg, var(--frame-2), var(--frame) 70%);
  border: 1px solid rgba(255,143,31,.45); color: var(--text);
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 0 rgba(255,143,31,0);
  transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
}
.vilius-toggle:hover { transform: translateY(-2px); border-color: rgba(255,143,31,.8); box-shadow: 0 30px 44px -22px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 4px rgba(255,143,31,.12); }
.vilius-toggle:active { transform: translateY(0); }
.vilius-toggle .door { color: var(--ball); flex: none; }
.vilius-q { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; text-wrap: balance; }
.vilius-cta {
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--ball); padding: 8px 14px 7px; border-radius: 999px; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(255,143,31,.8);
}
.vilius-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,.14); }
.vilius-toggle[aria-expanded="true"] .vilius-cta { background: var(--frame-3); color: var(--muted); box-shadow: none; }
.vilius-panel {
  margin-top: 12px; padding: 18px 22px 22px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, var(--frame-2), var(--frame) 60%);
  box-shadow: 0 30px 50px -24px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset;
  animation: drop .5s var(--ease-out);
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px) scaleY(.96); } }
.vilius-head { display: flex; align-items: center; justify-content: center; gap: 10px; }
.plate-vilius { color: var(--wood); }
.vilius-line { margin-top: 16px; font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); }
.vilius-line strong {
  display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 8vw, 76px); line-height: 1; letter-spacing: .01em; color: var(--card);
  font-variant-numeric: tabular-nums;
}
.vilius-note { margin-top: 12px; font-size: 15px; color: var(--dim); font-style: italic; }

/* ---------- schedule ---------- */
.schedule { max-width: 900px; margin: 56px auto 0; }
.schedule h2, .warmup h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.track {
  position: relative; display: grid; grid-template-columns: 12fr 1fr 3fr 8fr; gap: 2px;
  height: 34px; margin-top: 44px; border-radius: 6px; overflow: visible;
}
.seg { position: relative; border-radius: 4px; }
.seg-no { background: repeating-linear-gradient(135deg, #3a1b22 0 8px, #2c151a 8px 16px); box-shadow: inset 0 0 0 1px rgba(215,38,61,.35); }
.seg-yes { background: linear-gradient(180deg, #2ab874, #1a8a55); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -6px rgba(34,163,102,.8); }
.seg-tag {
  position: absolute; left: 0; bottom: calc(100% + 8px); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: #6fe0a6;
}
.seg-yes:last-of-type .seg-tag { left: 0; }
.now {
  position: absolute; top: 50%; left: calc(var(--h) / 24 * 100%);
  transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center;
  transition: left 1s linear;
}
.now-ball {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe0b8 0%, var(--ball) 40%, #d66500 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,.6), 0 0 0 3px var(--hall);
}
.now-label {
  position: absolute; top: calc(100% + 8px); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ball);
}
.ticks { position: relative; height: 18px; margin-top: 30px; }
.ticks span {
  position: absolute; top: 0; left: calc(var(--h) / 24 * 100%); transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .1em; color: var(--dim);
}
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.legend { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.sw-yes { background: #22a366; }
.sw-no { background: #4a2028; box-shadow: inset 0 0 0 1px rgba(215,38,61,.5); }
.legend-note { color: var(--dim); }

/* ---------- net divider ---------- */
.net-divider {
  position: relative; height: 40px; margin: 64px 0 56px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, transparent 1px 7px),
    rgba(0,0,0,.35);
  box-shadow: inset 0 5px 0 var(--line);
}
.net-divider::before, .net-divider::after {
  content: ""; position: absolute; top: -18px; width: 12px; height: 66px; border-radius: 3px;
  background: linear-gradient(90deg, #2a2f38, #12151a); box-shadow: 0 6px 10px rgba(0,0,0,.6);
}
.net-divider::before { left: -6px; }
.net-divider::after { right: -6px; }

/* ---------- warmup ---------- */
.warmup { max-width: 760px; margin: 0 auto; text-align: center; }
.lead { margin: 10px auto 0; max-width: 56ch; color: var(--muted); }
.court-wrap {
  position: relative; margin-top: 22px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 3px var(--line), 0 0 0 5px #0b0e13;
  aspect-ratio: 16 / 10; background: var(--table);
}
#court { display: block; width: 100%; height: 100%; touch-action: none; cursor: none; }
.court-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; pointer-events: none; background: rgba(8, 12, 20, .35); backdrop-filter: blur(1.5px);
  transition: opacity .3s;
}
.court-overlay strong {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 6px 20px rgba(0,0,0,.6);
}
.court-overlay span { color: var(--muted); font-size: 15px; }
.court-overlay.hidden { opacity: 0; }
.stats { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.stat {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 10px;
  background: linear-gradient(180deg, var(--frame-2), var(--frame));
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset;
}
.stat-k { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.stat-v {
  min-width: 56px; padding: 4px 10px; border-radius: 6px; background: var(--card); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; text-align: center;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}

/* ---------- regulation ---------- */
.regulation { display: flex; justify-content: center; margin-top: 72px; }
.sheet {
  position: relative; width: min(560px, 100%); padding: 40px 36px 30px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), transparent 30%),
    #f4efe4;
  color: #23262c; border-radius: 3px;
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.9), 0 2px 0 rgba(255,255,255,.4) inset;
  transform: rotate(-.6deg);
}
.pin {
  position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9b8f, var(--red) 55%, #8f1425 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,.5);
}
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; margin-left: -1px; background: #777; }
.sheet h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; text-align: center;
  padding-bottom: 14px; border-bottom: 2px solid #23262c;
}
.sheet ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.sheet li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 16.5px; line-height: 1.45; }
.sheet li b { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--red); }
.sheet strong { font-weight: 600; background: rgba(255,143,31,.28); padding: 0 3px; }
.sheet-foot { margin-top: 18px; padding: 12px 200px 0 0; min-height: 64px; font-size: 13.5px; color: #6b6f78; font-style: italic; border-top: 1px dashed #b9b2a3; }
.stamp {
  position: absolute; right: 20px; bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); border: 4px solid var(--red); border-radius: 8px; padding: 6px 12px 4px;
  transform: rotate(-10deg); opacity: .75; mix-blend-mode: multiply;
  mask-image: radial-gradient(circle at 30% 40%, #000 60%, transparent 100%), radial-gradient(circle at 70% 70%, #000 50%, transparent 100%);
  mask-composite: add; -webkit-mask-composite: source-over;
}

/* ---------- sponsors: court-side barrier ---------- */
.sponsors { margin-top: 76px; text-align: center; }
.plate-sponsor { font-size: 15px; }
.barrier {
  position: relative; margin: 18px auto 0; max-width: 720px; padding: 28px 40px;
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap;
  background: linear-gradient(180deg, #ffffff, #eef0f4);
  border-radius: 6px;
  box-shadow: 0 34px 44px -18px rgba(0,0,0,.9), inset 0 -6px 0 rgba(0,0,0,.08);
  transform: perspective(900px) rotateX(6deg); transform-origin: 50% 100%;
}
.barrier::after {
  content: ""; position: absolute; left: 3%; right: 3%; top: 100%; height: 12px;
  background: linear-gradient(180deg, #1a1e25, #05070a); border-radius: 0 0 8px 8px;
}
.sponsor { display: inline-flex; align-items: center; padding: 6px; border-radius: 6px; transition: transform .3s var(--ease-out); }
.sponsor:hover { transform: translateY(-2px); }
.sponsor img { display: block; height: auto; }
.sponsor-coingate img { width: clamp(150px, 22vw, 214px); }
.sponsor-gifq img { width: clamp(96px, 14vw, 134px); }
.barrier-sep { width: 1px; height: 44px; background: rgba(0,0,0,.18); }
.sponsor-note { margin-top: 30px; color: var(--dim); font-size: 14.5px; font-style: italic; }

/* ---------- footer ---------- */
.foot { max-width: 620px; margin: 64px auto 40px; padding: 0 20px; text-align: center; color: var(--dim); font-size: 14px; }
.foot p + p { margin-top: 6px; }

/* ---------- celebration ---------- */
.rain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.rain i {
  position: absolute; top: -40px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffe0b8 0%, var(--ball) 40%, #d66500 100%);
  box-shadow: inset -3px -4px 6px rgba(0,0,0,.25);
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(115vh) rotate(720deg); } }
.flash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 41; opacity: 0;
}
.flash span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 22vw, 260px); line-height: 1;
  text-transform: uppercase; color: var(--green); text-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.flash.on { animation: flash 2.6s var(--ease-out) forwards; }
@keyframes flash {
  0% { opacity: 0; transform: scale(.6); }
  15% { opacity: 1; transform: scale(1.05); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  :root { --card-w: clamp(40px, 12.4vw, 60px); }
  .topbar { justify-content: center; }
  .brand-name { font-size: 22px; }
  .ctl-text { font-size: 13px; }
  .board { display: block; padding: 14px 12px 10px; }
  .board-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .plate-label { text-align: center; white-space: normal; }
  .flip.state-flip { --card-w: 200px; --card-h: 40px; font-size: 26px; margin: 0 auto; }
  .paddle { bottom: 30px; }
  .ball-x, .ball-shadow { width: 16px; height: 16px; }
  .ball-shadow { height: 6px; }
  @keyframes fly { from { left: 9%; } to { left: calc(91% - 16px); } }
  @keyframes arc {
    0%   { transform: translateY(0); animation-timing-function: ease-out; }
    32%  { transform: translateY(-34px); animation-timing-function: ease-in; }
    64%  { transform: translateY(22px); animation-timing-function: ease-out; }
    86%  { transform: translateY(-4px); animation-timing-function: ease-in; }
    100% { transform: translateY(0); }
  }
  .ball-x { bottom: 52px; }
  .ball-shadow { bottom: 28px; }
  .surface { height: 120px; }
  .net3d { width: 16px; height: 34px; margin: -34px 0 0 -8px; }
  .seg-tag { font-size: 11px; letter-spacing: .06em; }
  .sheet { padding: 34px 20px 26px; }
  .sheet li { grid-template-columns: 38px 1fr; font-size: 15.5px; }
  .stamp { font-size: 22px; right: 10px; bottom: 16px; }
  .sheet-foot { padding-right: 140px; }
  .net-divider::before, .net-divider::after { display: none; }
  .barrier { padding: 22px 20px; gap: 22px; }
  .vilius-toggle { padding: 14px 16px; gap: 10px; }
  .barrier-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ball-x, .ball-y, .ball-shadow, .paddle .swing { animation: none; }
  .ball-x { left: 50%; }
  .ball-shadow { display: none; }
  .now { transition: none; }
  .vilius-panel { animation: none; }
}
