@font-face {
  font-family: 'Panchang';
  src: url('fonts/Panchang-Variable.woff2') format('woff2'),
       url('fonts/Panchang-Variable.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'PlaidSans';
  src: url('fonts/PlaidSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'PlaidSans';
  src: url('fonts/PlaidSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'PlaidSans';
  src: url('fonts/PlaidSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'PlaidSans';
  src: url('fonts/PlaidSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'PlaidSans';
  src: url('fonts/PlaidSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #000d21;
  --card-blue: #02214c;
  --blue:      #a4c7e6;
  --cream:     #fffce0;
  --white:     #ffffff;
  --gradient-text: linear-gradient(
    135deg,
    #CEA7F6 0%,
    #E1D3EA 31%,
    #81F6EA 57%,
    #928FFF 82%,
    #83B5FD 96%
  );
}

html { -webkit-font-smoothing: antialiased; }

body {
  position: relative;
  background-color: var(--navy);
  color: var(--blue);
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 160px;
  padding-bottom: 100px;
  overflow-x: clip;
}

/* ─────────────────────────────────────────
   DECORATIVE PLATYPUSES
───────────────────────────────────────── */
/* platypus rules now live inside .hero-section */

/* Stars canvas — behind everything */
#stars-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────
   SECTIONS
───────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  pointer-events: none;
}

.hero-nav-left,
.hero-nav-right {
  flex: 1;
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-nav-right {
  text-align: right;
}

.hero-nav-star {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  animation: star-spin 18.75s linear infinite;
}

@keyframes star-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.hero-line.gradient-text {
  background-size: 250% 250%;
  animation: hero-gradient-shift 6s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-plat-right {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 360px;
  height: 340px;
  pointer-events: none;
  z-index: 1;
}

.hero-plat-left {
  position: absolute;
  bottom: 40px;
  left: -30px;
  width: 280px;
  height: 270px;
  pointer-events: none;
  z-index: 1;
}

.hero-plat-right img,
.hero-plat-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-plat-left img {
  transform: scaleX(1);
}

.hero-plat-right img {
  transform: scaleX(-1);
}

.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  padding: 0 60px;
}

.hero-center .cta-button {
  align-self: center;
}

.hero-main-title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Panchang', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.0;
  text-align: center;
  gap: 0;
}

.hero-line {
  display: block;
  font-size: clamp(2.6rem, 9vw, 7rem);
}

.hero-line-the {
  display: block;
  font-family: 'Panchang', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 2rem);
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  letter-spacing: 0.3em;
  line-height: 2;
}

.hero-arrow {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-arrow img {
  width: 100%;
  object-fit: contain;
}

/* ─────────────────────────────────────────
   AGENDA
───────────────────────────────────────── */
.agenda-inner {
  padding: 0 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
}

.section-heading {
  font-family: 'Panchang', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 50px);
  letter-spacing: 0;
  line-height: 1.1;
}

.agenda-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  max-width: 600px;
}

#plat-float {
  position: fixed;
  right: -2vw;
  bottom: -130px;
  width: 550px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: lighten;
  transition: opacity 0.5s ease;
}

#plat-float img {
  width: 550px;
  height: 550px;
  object-fit: contain;
  border-radius: 30px;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0px, black 22px, black calc(100% - 22px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 22px, black calc(100% - 22px), transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0px, black 22px, black calc(100% - 22px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 22px, black calc(100% - 22px), transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

.days-list {
  display: flex;
  flex-direction: column;
  max-width: 550px;
}

.day-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px 30px;
  max-width: 600px;
}

.day-badge {
  width: 170px;
  height: 70px;
  flex-shrink: 0;
  background-image: url('assets/Glass.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-badge span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
}

.day-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}

.day-desc {
  display: block;
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  font-weight: 300;
}

.day-divider {
  height: 1px;
  background: rgba(164, 199, 230, 0.12);
}

/* ─────────────────────────────────────────
   AWARDS
───────────────────────────────────────── */
.awards-section {
  width: 100%;
  position: relative;
  z-index: 2;
}

.awards-inner {
  padding: 40px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.awards-desc {
  font-size: 20px;
  line-height: 1.5;
  color: var(--white);
  text-align: center;
  max-width: none;
  margin-top: 12px;
  margin-bottom: 26px;
}

.section-heading-center {
  font-family: 'Panchang', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 50px);
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
}

/* ─────────────────────────────────────────
   CTA CARD SECTION
───────────────────────────────────────── */
.cta-footer-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0;
  margin-top: 0;
  min-height: 600px;
}

.cta-footer-swirl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

@media (min-width: 900px) {
  .cta-footer-swirl {
    position: static;
    width: 100vw;
    height: auto;
    object-fit: unset;
  }
}

.cta-footer-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
  max-width: 520px;
  width: 100%;
}

.cta-footer-content .cta-button {
  align-self: center;
}

.cta-footer-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  opacity: 0.5;
}

.cta-footer-logo.reveal.in-view {
  opacity: 0.5;
}

.cta-footer-heading {
  font-family: 'Panchang', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.cta-footer-body {
  font-size: 20px;
  line-height: 1.6;
  color: var(--white);
  max-width: 380px;
}

.cta-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: auto;
  align-self: flex-start;
  height: 48px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 200px;
  border: none;
  background: linear-gradient(92deg, #03214F 8.63%, rgba(164, 199, 230, 0.70) 102.77%);
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 1px 2px 11px 0 rgba(0, 0, 0, 0.05);
  letter-spacing: -0.3px;
}

/* ─────────────────────────────────────────
   GALAXY BUTTON
───────────────────────────────────────── */
.cta-button .spark {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cta-button:hover .spark {
  opacity: 1;
}

.cta-button .spark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 65deg,
    rgba(206, 167, 246, 0.85) 85deg,
    rgba(220, 240, 255, 0.95) 93deg,
    rgba(129, 246, 234, 0.85) 101deg,
    transparent 125deg,
    transparent 360deg
  );
  animation: spark-spin 3.5s linear infinite;
}

@keyframes spark-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-button .backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    80% 80% at 50% 130%,
    rgba(206, 167, 246, 0.35) 0%,
    rgba(129, 246, 234, 0.18) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cta-button:hover .backdrop {
  opacity: 1;
}

.cta-button .text {
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.game-submit-btn {
  position: relative;
  overflow: hidden;
}


/* ─────────────────────────────────────────
   HERO ENTRANCE
───────────────────────────────────────── */
.hero-nav-left,
.hero-nav-right,
.hero-nav-star,
.hero-line,
.hero-line-the,
.hero-center .cta-button,
.hero-arrow {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.16,1,0.3,1), filter 1.1s ease;
}

.hero-line,
.hero-line-the,
.hero-center .cta-button,
.hero-arrow {
  transform: translateY(22px);
}

.hero-loaded .hero-line,
.hero-loaded .hero-center .cta-button {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-loaded .hero-arrow {
  opacity: 0.5;
  transform: translateX(-50%);
  filter: none;
  max-width: 30px;
}

.hero-loaded .hero-line-the {
  opacity: 0.5;
  transform: none;
  filter: none;
}

.hero-loaded .hero-nav-left,
.hero-loaded .hero-nav-right {
  opacity: 0.8;
  filter: none;
}

.hero-loaded .hero-nav-star {
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.hero-loaded .hero-nav-left              { transition-delay: 0s; }
.hero-loaded .hero-nav-star              { transition-delay: 0.05s; }
.hero-loaded .hero-nav-right             { transition-delay: 0.1s; }
.hero-loaded .hero-line:first-child      { transition-delay: 0.25s; }
.hero-loaded .hero-line-the              { transition-delay: 0.5s; }
.hero-loaded .hero-line:last-child       { transition-delay: 0.75s; }
.hero-loaded .hero-center .cta-button    { transition-delay: 1s; }
.hero-loaded .hero-arrow                 { transition-delay: 1.2s; }

/* Platypus reveal — blurs in on load, JS manages ongoing opacity */
#plat-float img {
  animation: plat-reveal 1.8s cubic-bezier(0.16,1,0.3,1) 1.4s both;
}
@keyframes plat-reveal {
  from { filter: blur(16px) brightness(0.4); }
  to   { filter: none; }
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 1s ease,
    transform 1.2s cubic-bezier(0.16,1,0.3,1),
    filter 1s ease;
  transition-delay: calc(var(--reveal-i, 0) * 0.13s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ─────────────────────────────────────────
   LARGE DESKTOP — ≥ 1200px
───────────────────────────────────────── */
@media (min-width: 1200px) {
  .page { gap: 120px; }

  .hero-center { padding: 0 120px; }
  .hero-plat-right { width: 340px; height: 340px; top: 30px; right: -40px; }
  .hero-plat-left  { width: 340px; height: 330px; bottom: 40px; left: -20px; }
  .hero-nav { padding: 12px 60px 32px; }

  .agenda-inner { padding: 0 180px; }



}

/* ─────────────────────────────────────────
   MOBILE — < 768px
───────────────────────────────────────── */
@media (max-width: 768px) {
  .page { gap: 100px; }

  .hero-center { padding: 0 20px; }
  .hero-nav { padding: 20px 24px; }
  .hero-nav-left, .hero-nav-right { font-size: 9px; letter-spacing: 0.18em; }
  .hero-nav-star { width: 24px; height: 24px; }
  .hero-plat-right { width: 200px; height: 190px; top: 0; right: -20px; }
  .hero-plat-left  { width: 180px; height: 170px; bottom: 60px; left: -20px; }

  .agenda-inner { padding: 0 20px; flex-direction: column; }
  #plat-float { display: none; }
  .section-heading, .section-heading-center { text-align: center; }


  #game { height: 80vh; }

  #test-panel { top: 5rem; }

  .cta-button { align-self: center; }
}

/* ─────────────────────────────────────────
   CLICK STAR BURST
───────────────────────────────────────── */
.click-star {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  animation: click-star-burst linear forwards;
}

@keyframes click-star-burst {
  0%   { opacity: 1;   transform: translate(-50%, -50%) translate(0px, 0px) scale(1); }
  60%  { opacity: 0.7; }
  100% { opacity: 0;   transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.1); }
}

/* ─────────────────────────────────────────
   LOADER
───────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#loader.fade-out { opacity: 0; pointer-events: none; }

#loader-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: min(400px, 80vw);
}

#loader-top {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(164, 199, 230, 0.5);
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  font-weight: 300;
}

#loader-spin {
  color: rgba(164, 199, 230, 0.8);
  display: inline-block;
  width: 1em;
  text-align: center;
}

#loader-pct {
  margin-left: auto;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(164, 199, 230, 0.9);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

#loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(164, 199, 230, 0.1);
}

#loader-bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(164, 199, 230, 0.5);
}

#loader-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 5rem;
}

#loader-log div {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(164, 199, 230, 0.25);
  font-family: 'PlaidSans', Helvetica, Arial, sans-serif;
  font-weight: 300;
  opacity: 0;
  animation: log-in 0.4s ease forwards;
}

@keyframes log-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   CUSTOM CURSOR
───────────────────────────────────────── */
#cur-dot {
  position: fixed; width: 5px; height: 5px;
  background: rgba(200,222,255,.9); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
#cur-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1px solid rgba(200,222,255,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .35s cubic-bezier(.16,1,.3,1),
              height .35s cubic-bezier(.16,1,.3,1),
              border-color .3s;
}
#cur-ring.on-star  { width: 44px; height: 44px; border-color: rgba(200,222,255,.7); }
#cur-ring.selected { width: 44px; height: 44px; border-color: rgba(149,133,255,.9); box-shadow: 0 0 10px rgba(149,133,255,.4); }

/* ─────────────────────────────────────────
   GAME
───────────────────────────────────────── */
#game {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  border-top: 3px solid transparent;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(80, 120, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 25% 65%, rgba(120, 60, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 35%, rgba(0, 180, 255, 0.14) 0%, transparent 60%),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(135deg, #CEA7F6 0%, #E1D3EA 31%, #81F6EA 57%, #928FFF 82%, #83B5FD 96%);
  background-origin: padding-box, padding-box, padding-box, border-box, border-box;
  background-clip: padding-box, padding-box, padding-box, padding-box, border-box;
  cursor: none;
  user-select: none;
}

#space {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

#game-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.6rem 2rem 3rem;
  background: linear-gradient(to bottom, rgba(7,8,15,.9), transparent);
  display: flex; align-items: flex-start; justify-content: space-between;
  pointer-events: none;
}
.game-logo {
  font-family: Helvetica, Arial, sans-serif;
  font-size: .75rem; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200,222,255,.45);
}
.game-logo strong { display: block; color: rgba(200,222,255,.75); letter-spacing: .08em; font-weight: 400; font-size: .85rem; margin-bottom: .1rem; }
#found-counter {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200,222,255,.3); text-align: right;
  font-weight: 300;
}
#found-counter strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; color: rgba(200,222,255,.8); font-weight: 300; line-height: 1; }

#hint {
  position: absolute; bottom: 5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 50; pointer-events: none;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(200,222,255,.25);
  white-space: nowrap;
  transition: opacity 1s;
}

#progress {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 50; pointer-events: none;
  display: flex; gap: .75rem; align-items: center;
}
.pdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(200,222,255,.12);
  border: 1px solid rgba(200,222,255,.18);
  transition: background .6s, box-shadow .6s, border-color .6s, transform .4s;
}
.pdot.lit { transform: scale(1.3); border-color: var(--c); background: var(--c); box-shadow: 0 0 10px var(--c); }

#modal {
  position: absolute; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .5s;
}
#modal.open { opacity: 1; pointer-events: all; }
#modal-bg {
  position: absolute; inset: 0;
  background: rgba(7,8,15,.82);
  backdrop-filter: blur(10px);
}
#modal-card {
  position: relative; z-index: 1;
  background: rgba(10,12,28,.96);
  border: 1px solid rgba(200,222,255,.08);
  border-radius: 22px;
  padding: 2.5rem 2.5rem 2.2rem;
  max-width: 420px; width: 92%;
  text-align: center;
  transform: scale(.92) translateY(20px);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
#modal.open #modal-card { transform: scale(1) translateY(0); }
#modal-mini { display: block; margin: 0 auto 1.6rem; width: 220px; height: 160px; }
#modal-badge { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--modal-clr, #9585ff); margin-bottom: .5rem; font-weight: 300; }
#modal-name { font-size: 1.7rem; letter-spacing: -.01em; line-height: 1.05; margin-bottom: .9rem; color: #e8f0ff; font-weight: 300; }
#modal-desc { font-size: .85rem; line-height: 1.75; color: rgba(200,222,255,.45); margin-bottom: 2rem; font-weight: 300; }
#modal-btn {
  background: transparent; border: 1px solid rgba(200,222,255,.18);
  color: rgba(200,222,255,.45); border-radius: 999px;
  padding: .65rem 1.8rem;
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  cursor: none; transition: border-color .2s, color .2s; font-weight: 300;
}
#modal-btn:hover { border-color: rgba(200,222,255,.45); color: #c8deff; }

#done-screen {
  position: absolute; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.2rem;
  background: rgba(7,8,15,.9); backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity 1s; text-align: center;
}
#done-screen.open { opacity: 1; pointer-events: all; }
#done-screen h2 { font-size: clamp(1.8rem,5vw,3.2rem); font-weight: 300; letter-spacing: .05em; color: #e8f0ff; }
#done-screen p { color: rgba(200,222,255,.4); font-size: .85rem; font-weight: 300; }
.done-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 480px; padding: .5rem; }
.done-chip {
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--c); color: var(--c);
  box-shadow: 0 0 12px var(--c); font-weight: 300;
}
#done-restart { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(200,222,255,.2); margin-top: .3rem; cursor: none; }

.game-submit-btn {
  display: inline-block;
  margin-top: .6rem;
  padding: .55rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 222, 255, 0.25);
  background: linear-gradient(92deg, rgba(3, 33, 79, 0.8) 0%, rgba(164, 199, 230, 0.25) 100%);
  color: rgba(200, 222, 255, 0.85);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.game-submit-btn:hover {
  border-color: rgba(206, 167, 246, 0.6);
  color: #fff;
  background: linear-gradient(92deg, rgba(3, 33, 79, 0.9) 0%, rgba(206, 167, 246, 0.2) 100%);
}

/* ─────────────────────────────────────────
   TEST PANEL
───────────────────────────────────────── */
#test-panel {
  position: absolute;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 6px;
  background: rgba(7, 8, 15, 0.88);
  border: 1px solid rgba(200, 222, 255, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: none;
}
#test-panel span {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(200, 222, 255, 0.6); padding-right: 4px;
}
.test-btn {
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(200, 222, 255, 0.1);
  border: 1px solid rgba(200, 222, 255, 0.28);
  color: rgba(200, 222, 255, 0.8);
  border-radius: 999px; padding: 4px 11px;
  cursor: none; transition: background .2s, color .2s, border-color .2s;
}
.test-btn:hover {
  background: rgba(200, 222, 255, 0.2);
  border-color: rgba(200, 222, 255, 0.6);
  color: #fff;
}
