/* ================================================================
   RBLX6900 — arcade prize-counter energy on a deep indigo night.
   System: sticker cutouts (thick ink borders + hard offset shadows),
   rainbow gradient accents, gold reserved exclusively for winners.
   ================================================================ */

@font-face {
  font-family: "Lilita One";
  src: url("/static/assets/lilita-one.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/assets/nunito.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

[hidden] { display: none !important; }

:root {
  --bg: #0e0724;
  --bg2: #150b33;
  --ink: #221040;
  --plate: #fff8ec;
  --plate-dim: #f3e9d7;
  --text-on-plate: #2a1547;
  --text-on-dark: #f5eefe;

  --r1: #ff3d6e;  /* pink-red   */
  --r2: #ff9f1c;  /* orange     */
  --r3: #ffe93c;  /* yellow     */
  --r4: #3dff7a;  /* green      */
  --r5: #2cd8ff;  /* cyan       */
  --r6: #7b5bff;  /* violet     */

  --gold: #ffc93c;
  --gold-hi: #ffe9a8;
  --gold-deep: #b8860b;

  --rainbow: linear-gradient(100deg,
      var(--r1) 0%, var(--r2) 18%, var(--r3) 36%,
      var(--r4) 54%, var(--r5) 72%, var(--r6) 90%, var(--r1) 108%);

  --font-display: "Lilita One", "Arial Black", sans-serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;

  --squish: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 700;
  overflow-x: hidden;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }

/* ---------------------------------------------------------------- ambient */

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.ambient-art {
  position: absolute; inset: -6%;
  background: url("/static/assets/bg-ambient.jpg") center / cover no-repeat;
  animation: ambientDrift 46s ease-in-out infinite alternate;
  opacity: .9;
}
@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, 1%, 0)  scale(1.07); }
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 8%, transparent 30%, rgba(14, 7, 36, .82) 78%),
    linear-gradient(rgba(14, 7, 36, .35), rgba(14, 7, 36, .55));
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .5; mix-blend-mode: screen;
}
.b1 { width: 44vw; height: 44vw; left: -14vw; top: 4vh;
      background: radial-gradient(circle, var(--r6), transparent 65%);
      animation: blobFloat 26s ease-in-out infinite alternate; }
.b2 { width: 36vw; height: 36vw; right: -10vw; top: 32vh;
      background: radial-gradient(circle, var(--r5), transparent 65%);
      animation: blobFloat 32s ease-in-out -8s infinite alternate-reverse; }
.b3 { width: 40vw; height: 40vw; left: 24vw; bottom: -18vh;
      background: radial-gradient(circle, var(--r1), transparent 65%);
      animation: blobFloat 38s ease-in-out -16s infinite alternate; }
@keyframes blobFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -5vh, 0) scale(1.15); }
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- CA bar */

.ca-bar {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  padding: .5rem 1rem;
  background: var(--ink);
  border-bottom: 3px solid var(--plate);
}
.ca-label {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .08em;
  color: var(--ink); background: var(--r3);
  border: 2px solid var(--ink); border-radius: 8px;
  padding: .1rem .55rem;
}
.ca-value {
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(.72rem, 1.7vw, .95rem);
  letter-spacing: .01em;
  color: var(--plate); background: transparent;
  border: 0; cursor: pointer; padding: .15rem .2rem;
  word-break: break-all; text-align: center;
  border-bottom: 2px dashed rgba(255, 248, 236, .45);
}
.ca-value:hover { color: var(--r3); border-bottom-color: var(--r3); }
.ca-bar.pending .ca-value {
  cursor: default; opacity: .8; font-style: italic;
  border-bottom-style: dotted;
}
.ca-bar.pending .ca-value:hover { color: var(--plate); border-bottom-color: rgba(255,248,236,.45); }
.ca-copied {
  font-weight: 900; font-size: .8rem; color: var(--ink);
  background: var(--r4); border: 2px solid var(--ink); border-radius: 999px;
  padding: .05rem .5rem;
}
.ca-link {
  font-weight: 900; font-size: .8rem; color: var(--r5);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.ca-link:hover { border-bottom-color: var(--r5); }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 14px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(14px, 3vw, 36px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.logo-plate {
  font-family: var(--font-display); font-size: 1.45rem; text-decoration: none;
  color: var(--text-on-plate);
  background: var(--plate);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: .35rem .9rem;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .18s var(--squish), box-shadow .18s var(--squish);
}
.logo-plate span {
  background: var(--rainbow); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowSlide 6s linear infinite;
}
.logo-plate:hover { transform: rotate(.5deg) scale(1.04); box-shadow: 7px 7px 0 var(--ink); }

@keyframes rainbowSlide { to { background-position: 200% 0; } }

.topnav { display: flex; gap: 10px; }
.topnav a {
  font-weight: 900; font-size: .95rem; text-decoration: none;
  color: var(--text-on-plate); background: var(--plate);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: .3rem .85rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--squish), box-shadow .18s var(--squish);
}
.topnav a:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }
.topnav a:active { transform: translateY(2px); box-shadow: 2px 2px 0 var(--ink); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em;
  color: var(--ink);
  background: var(--rainbow); background-size: 300% 100%;
  border: 3px solid var(--ink); border-radius: 16px;
  padding: .7rem 1.5rem;
  box-shadow: 6px 6px 0 var(--ink);
  animation: rainbowSlide 8s linear infinite;
  transition: transform .16s var(--squish), box-shadow .16s var(--squish), filter .16s;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 8px 9px 0 var(--ink); filter: saturate(1.2); }
.btn:active { transform: translateY(3px) scale(.97); box-shadow: 2px 2px 0 var(--ink); }
.btn-big { font-size: 1.4rem; padding: .85rem 2rem; }

:focus-visible { outline: 3px dashed var(--r3); outline-offset: 3px; }

/* ---------------------------------------------------------------- hero */

main { position: relative; z-index: 1; }

/* anchor targets clear the sticky top bar when jumped to */
#enter, #pool, #winners, #rules { scroll-margin-top: 84px; }

.hero {
  padding: clamp(20px, 5vh, 56px) clamp(14px, 4vw, 48px) clamp(48px, 8vh, 96px);
  display: grid; place-items: center;
  perspective: 1200px;
}

.hero-stage {
  position: relative;
  width: min(1080px, 100%);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}

.hero-frame {
  border: 5px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 12px 14px 0 var(--ink), 0 30px 80px rgba(0, 0, 0, .5);
  position: relative;
  background: var(--ink);
}
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 21px;
  padding: 4px;
  background: var(--rainbow); background-size: 300% 100%;
  animation: rainbowSlide 10s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .9;
}
.hero-frame img { width: 100%; height: auto; }

.hero-shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%);
  transform: translateX(-140%);
  animation: shineSweep 7s ease-in-out 2s infinite;
}
@keyframes shineSweep {
  0%, 72% { transform: translateX(-140%); }
  86%, 100% { transform: translateX(140%); }
}

.hero-title-plate {
  position: absolute; left: clamp(-10px, -1vw, 0px); bottom: -34px; z-index: 4;
  background: var(--plate); color: var(--text-on-plate);
  border: 4px solid var(--ink); border-radius: 22px;
  padding: clamp(16px, 2.6vw, 30px) clamp(18px, 3vw, 34px);
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(-2deg);
  max-width: min(520px, 86%);
}
.hero-title-plate h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: .98;
  color: var(--ink);
}
.hero-title-plate h1 em {
  font-style: normal;
  background: var(--rainbow); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowSlide 6s linear infinite;
}
.hero-sub { margin: .6rem 0 1rem; font-size: clamp(.95rem, 1.8vw, 1.15rem); font-weight: 800; }

.pool-chip {
  position: absolute; right: clamp(-8px, -.5vw, 4px); top: -26px; z-index: 4;
  background: var(--ink); color: var(--text-on-dark);
  border: 4px solid var(--plate); border-radius: 20px;
  padding: .7rem 1.2rem .8rem; text-align: center;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .45);
  transform: rotate(2.2deg);
  display: block; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--squish), box-shadow .18s var(--squish);
}
.pool-chip:hover {
  transform: rotate(1deg) translateY(-3px) scale(1.04);
  box-shadow: 10px 11px 0 rgba(0, 0, 0, .5);
  border-color: var(--r3);
}
.pool-chip:active { transform: rotate(2.2deg) translateY(2px) scale(.98); box-shadow: 4px 4px 0 rgba(0,0,0,.45); }
.pool-cta {
  margin-top: .3rem; font-size: .72rem; font-weight: 900;
  letter-spacing: .03em; color: var(--r3); opacity: .85;
}
.pool-chip:hover .pool-cta { opacity: 1; }
.pool-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1;
  background: var(--rainbow); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowSlide 5s linear infinite;
  font-variant-numeric: tabular-nums;
}
.pool-label { font-size: .78rem; font-weight: 900; letter-spacing: .04em; opacity: .85; }

.draw-chip {
  position: absolute; right: clamp(-8px, -.5vw, 4px); top: 96px; z-index: 4;
  background: var(--plate); color: var(--text-on-plate);
  border: 4px solid var(--ink); border-radius: 20px;
  padding: .55rem 1.1rem .65rem; text-align: center;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1.6deg);
}
.draw-label { font-size: .72rem; font-weight: 900; letter-spacing: .06em; opacity: .7; }
.draw-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.draw-chip.imminent { animation: drawPulse .9s ease-in-out infinite; }
.draw-chip.imminent .draw-num { color: #c81e4d; }
.draw-chip.dormant .draw-num {
  font-size: clamp(.95rem, 1.9vw, 1.2rem);
  opacity: .75; font-style: italic;
}
@keyframes drawPulse {
  0%, 100% { transform: rotate(-1.6deg) scale(1); }
  50%      { transform: rotate(-1.6deg) scale(1.06); }
}

.sticker {
  position: absolute; z-index: 4;
  font-family: var(--font-display); font-size: clamp(.9rem, 1.8vw, 1.2rem);
  color: var(--ink);
  background: var(--r3);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: .4rem 1rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.s-free {
  left: clamp(10px, 4vw, 46px); top: -20px;
  transform: rotate(-7deg);
  animation: stickerBob 3.4s ease-in-out infinite;
}
@keyframes stickerBob {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-7px); }
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  position: relative; z-index: 2;
  background: var(--ink);
  border-top: 3px solid var(--plate); border-bottom: 3px solid var(--plate);
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden; white-space: nowrap;
  padding: .55rem 0;
  margin: 10px -12px 0;
}
.ticker-track {
  display: inline-block;
  animation: tickerScroll 26s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
  background: var(--rainbow); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowSlide 8s linear infinite;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- enter */

.enter { padding: clamp(56px, 9vh, 110px) clamp(14px, 4vw, 48px); }

.enter-wrap {
  max-width: 1060px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}

.enter-copy h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: .8rem;
  text-shadow: 4px 4px 0 var(--ink);
}
.enter-copy > p { max-width: 46ch; opacity: .94; margin-bottom: 1.2rem; }

.how { list-style: none; display: grid; gap: 10px; }
.how li {
  background: rgba(255, 248, 236, .07);
  border: 3px solid rgba(255, 248, 236, .25);
  border-radius: 14px;
  padding: .55rem .9rem;
  counter-increment: step;
  display: flex; align-items: center; gap: .7rem;
}
.how li::before {
  content: counter(step);
  font-family: var(--font-display);
  flex: 0 0 auto;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.how li:nth-child(1)::before { background: var(--r1); }
.how li:nth-child(2)::before { background: var(--r3); }
.how li:nth-child(3)::before { background: var(--r5); }

/* -- the ticket -- */

.ticket {
  position: relative;
  background: var(--plate); color: var(--text-on-plate);
  border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 11px 12px 0 var(--ink);
  transform: rotate(1.4deg);
  display: grid; grid-template-columns: 64px 1fr;
  overflow: hidden;
  transition: transform .5s var(--squish), opacity .5s;
}
.ticket.sending { pointer-events: none; filter: saturate(.7); }
.ticket.flyaway {
  transform: rotate(-6deg) translateY(-130vh) scale(.85);
  opacity: 0;
  transition: transform .9s cubic-bezier(.5, -0.28, .74, .05), opacity .9s;
}

.ticket-stub {
  background: repeating-linear-gradient(-45deg, var(--r1) 0 14px, var(--r2) 14px 28px,
      var(--r3) 28px 42px, var(--r4) 42px 56px, var(--r5) 56px 70px, var(--r6) 70px 84px);
  border-right: 4px dashed var(--ink);
  display: grid; place-items: center;
}
.ticket-stub span {
  font-family: var(--font-display); color: var(--ink); letter-spacing: .18em;
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--plate); border: 3px solid var(--ink); border-radius: 10px;
  padding: .8rem .25rem; box-shadow: 3px 3px 0 var(--ink);
}

.ticket-body { padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 14px; }

.field { display: grid; gap: 6px; position: relative; }
.field label { font-weight: 900; font-size: .92rem; }
.field input {
  font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
  color: var(--text-on-plate);
  background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: .65rem .85rem;
  box-shadow: inset 3px 3px 0 rgba(34, 16, 64, .12);
  transition: box-shadow .15s, transform .15s var(--squish);
}
.field input:focus { outline: none; box-shadow: inset 3px 3px 0 rgba(34,16,64,.12), 0 0 0 4px var(--r5); }
.field input.bad { box-shadow: inset 3px 3px 0 rgba(34,16,64,.12), 0 0 0 4px var(--r1); }

.ava-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: 6px 10px 6px 6px; margin-top: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  animation: chipPop .35s var(--squish);
}
@keyframes chipPop { from { transform: scale(.6); opacity: 0; } }
.ava-chip img {
  width: 44px; height: 44px; border-radius: 10px;
  border: 2px solid var(--ink); background: var(--plate-dim);
}
.ava-chip b { display: block; line-height: 1.1; }
.ava-chip small { opacity: .7; font-weight: 800; }
.ava-check {
  margin-left: auto;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--r4); color: var(--ink);
  border: 3px solid var(--ink); font-weight: 900;
}

.age { display: flex; align-items: center; gap: 10px; font-weight: 900; cursor: pointer; }
.age input {
  appearance: none; width: 1.5rem; height: 1.5rem; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 8px; background: #fff;
  display: grid; place-items: center;
  transition: transform .15s var(--squish);
}
.age input:checked { background: var(--r4); }
.age input:checked::after { content: "✓"; color: var(--ink); font-weight: 900; }
.age input:active { transform: scale(.85); }

.btn-submit { width: 100%; font-size: 1.3rem; }
.btn-submit:disabled { filter: grayscale(.6); cursor: wait; transform: none; }

.form-msg { min-height: 1.3em; font-weight: 900; font-size: .95rem; color: #c81e4d; }
.form-msg.ok { color: #12833f; }
.privacy-note { font-size: .8rem; font-weight: 800; opacity: .75; line-height: 1.4; }

/* -- post-submit plate -- */

.ticket-done { grid-column: 2; grid-row: 1; display: grid; place-items: center; }
.done-plate {
  background: var(--plate); color: var(--text-on-plate);
  border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 11px 12px 0 var(--ink);
  padding: clamp(22px, 3vw, 36px);
  text-align: center; max-width: 420px;
  transform: rotate(-1.5deg);
  animation: chipPop .5s var(--squish);
}
.done-plate h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.done-plate .btn { margin-top: 1rem; }

/* ---------------------------------------------------------------- pool panel */

.pool { padding: clamp(20px, 4vh, 48px) clamp(14px, 4vw, 48px) clamp(40px, 7vh, 80px); }
.pool-wrap { max-width: 1060px; margin: 0 auto; }

.pool-head h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  text-shadow: 4px 4px 0 var(--ink);
}
.pool-head p { max-width: 58ch; opacity: .9; margin: .4rem 0 1.1rem; }

.pool-panel {
  background: rgba(34, 16, 64, .72);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 9px 10px 0 var(--ink), inset 0 1px 0 rgba(255, 248, 236, .12);
  overflow: hidden;
}

.pool-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: .8rem 1rem;
  background: rgba(255, 248, 236, .07);
  border-bottom: 3px solid var(--ink);
}
.pool-toolbar input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  color: var(--text-on-plate); background: #fff;
  border: 3px solid var(--ink); border-radius: 12px;
  padding: .5rem .8rem;
}
.pool-toolbar input:focus { outline: none; box-shadow: 0 0 0 4px var(--r5); }
.pool-count {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--ink); background: var(--r3);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: .15rem .8rem; white-space: nowrap;
}

.pool-scroll {
  max-height: min(52vh, 460px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--r6) transparent;
}
.pool-scroll::-webkit-scrollbar { width: 12px; }
.pool-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.25); border-radius: 99px; }
.pool-scroll::-webkit-scrollbar-thumb {
  background: var(--r6); border-radius: 99px;
  border: 3px solid rgba(34,16,64,.9);
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.entrant {
  display: flex; align-items: center; gap: 9px;
  background: var(--plate); color: var(--text-on-plate);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 5px 12px 5px 5px;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 0;
}
.entrant .ava-wrap, .entrant .ava-wrap img, .entrant .ava-fb {
  width: 38px; height: 38px; border-radius: 10px;
}
.entrant .ava-fb { background: var(--ink); color: var(--r3); font-size: 1rem; }
.entrant b {
  font-size: .93rem; line-height: 1.15; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entrant small { font-weight: 800; opacity: .65; font-size: .76rem; }
.entrant .txt { min-width: 0; }
.entrant.hit { background: var(--r3); }

.pool-note {
  margin-top: 1rem; text-align: center;
  font-weight: 800; font-size: .88rem; opacity: .8;
}
.pool-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 1.6rem; font-weight: 800; opacity: .85;
}

/* ---------------------------------------------------------------- winners */

.winners {
  padding: clamp(56px, 9vh, 110px) clamp(14px, 4vw, 48px);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 201, 60, .10), transparent 70%),
    var(--bg2);
  border-top: 4px solid var(--ink);
  position: relative;
}
.winners::before {
  content: ""; position: absolute; top: -4px; left: 0; right: 0; height: 8px;
  background: var(--rainbow); background-size: 300% 100%;
  animation: rainbowSlide 10s linear infinite;
}

.winners-head { max-width: 1060px; margin: 0 auto 2rem; }
.winners-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 201, 60, .45), 4px 4px 0 var(--ink);
}
.winners-head p { max-width: 60ch; opacity: .9; margin-top: .5rem; }

.winners-rounds { max-width: 1060px; margin: 0 auto; display: grid; gap: 26px; }

.round-board {
  border: 4px solid var(--gold-deep);
  background: linear-gradient(180deg, rgba(255, 201, 60, .12), rgba(255, 201, 60, .03) 60%);
  border-radius: 22px;
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 233, 168, .35);
  padding: clamp(16px, 2.4vw, 26px);
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease, transform .6s var(--squish);
}
.round-board.in { opacity: 1; transform: none; }

.round-title {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.round-title h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--gold-hi); }
.round-title time { font-weight: 800; font-size: .85rem; opacity: .7; }

.winner-cards { display: flex; flex-wrap: wrap; gap: 12px; }

.winner-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 70%);
  color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 16px 6px 6px;
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0; transform: scale(.6) rotate(-4deg);
  transition: opacity .4s, transform .45s var(--squish);
  transition-delay: var(--d, 0s);
}
.round-board.in .winner-card { opacity: 1; transform: none; }
.winner-card:hover { transform: translateY(-3px) rotate(1.5deg) !important; }

.ava-wrap { position: relative; width: 46px; height: 46px; flex: 0 0 auto; }
.ava-wrap img, .ava-fb {
  position: absolute; inset: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--ink);
}
.ava-wrap img { background: var(--plate-dim); object-fit: cover; }
.ava-fb {
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-display); font-size: 1.15rem;
}
.winner-card b { font-size: 1rem; line-height: 1.05; display: block; }
.winner-card small { font-weight: 800; opacity: .75; }

.winners-empty {
  max-width: 1060px; margin: 0 auto;
  border: 3px dashed rgba(255, 201, 60, .5); border-radius: 18px;
  padding: 2rem; text-align: center; font-weight: 800;
  color: var(--gold-hi);
}

/* ---------------------------------------------------------------- rules */

.rules { padding: clamp(56px, 9vh, 110px) clamp(14px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.rules h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; text-shadow: 4px 4px 0 var(--ink); }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rule-card {
  background: var(--plate); color: var(--text-on-plate);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1rem 1.1rem;
  font-weight: 800; font-size: .95rem; line-height: 1.45;
}
.rule-card:nth-child(odd) { transform: rotate(-.6deg); }
.rule-card:nth-child(even) { transform: rotate(.6deg); }
.rule-card b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; margin-bottom: .2rem; }

/* ---------------------------------------------------------------- footer */

.foot {
  position: relative; z-index: 1;
  border-top: 3px solid var(--ink);
  background: rgba(0, 0, 0, .35);
  padding: 1.4rem clamp(14px, 4vw, 48px) 2rem;
  font-size: .82rem; font-weight: 800; opacity: .85;
  text-align: center;
}
.foot b { font-weight: 900; }

/* ---------------------------------------------------------------- confetti */

#confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

.dev-only { background: var(--r5); animation: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .enter-wrap { grid-template-columns: 1fr; }
  .ticket-done { grid-column: 1; grid-row: auto; }
  .hero-title-plate { position: relative; left: auto; bottom: auto; margin: -30px auto 0; transform: rotate(-1.2deg); max-width: 94%; }
  .pool-chip { top: -18px; }
}

@media (max-width: 560px) {
  .topnav a { font-size: .8rem; padding: .25rem .6rem; }
  .ticket { grid-template-columns: 44px 1fr; }
  .ticket-stub span { padding: .5rem .12rem; letter-spacing: .12em; font-size: .8rem; }
  .s-free { display: none; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .ambient-art, .blob, .ticker-track, .hero-shine, .s-free,
  .logo-plate span, .pool-num, .btn, .hero-frame::before,
  .ticker-track span, .winners::before, .hero-title-plate h1 em {
    animation: none !important;
  }
  .hero-stage { transform: none !important; }
  #particles { display: none; }
  html { scroll-behavior: auto; }
}
