
:root{
  --bg:#f8f7ff;
  --surface:#ffffff;
  --surface-soft:#f2efff;
  --text:#1f2140;
  --muted:#5b5f85;
  --line:#dcd8fb;
  --primary:#6f64ff;
  --primary-dark:#4a40cf;
  --accent:#8ee8ff;
  --shadow:0 18px 50px rgba(71, 58, 162, 0.12);
  --radius:24px;
  --radius-sm:16px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(142,232,255,0.32), transparent 24%),
    radial-gradient(circle at top right, rgba(111,100,255,0.18), transparent 20%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:var(--primary-dark);text-decoration:none}
a:hover{text-decoration:underline}
main{overflow:hidden}
.wrap{width:min(calc(100% - 32px), var(--max)); margin:0 auto}
.narrow-wrap{width:min(calc(100% - 32px), 860px); margin:0 auto}
.game-shell{width:min(calc(100% - 32px), 1120px); margin:0 auto}
.section{padding:56px 0}
.section-alt{background:rgba(255,255,255,0.56)}
.eyebrow{
  margin:0 0 8px;
  font-size:0.84rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--primary-dark);
  font-weight:700;
}
h1,h2,h3{line-height:1.15; margin:0 0 14px}
h1{font-size:clamp(2.2rem, 4vw, 4rem)}
h1 span{display:inline-block}
h2{font-size:clamp(1.45rem, 2.5vw, 2.2rem)}
h3{font-size:1.15rem}
p{margin:0 0 16px}
.hero-copy__lead{font-size:1.06rem; color:var(--muted); max-width:58ch}
.small-note,.mini-note,.game-card__intro,.stat-label,.game-status,.target-label{color:var(--muted)}
.button-row{display:flex; gap:12px; flex-wrap:wrap; margin:22px 0 20px}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover{text-decoration:none; transform:translateY(-1px)}
.button-primary{
  background:linear-gradient(135deg, var(--primary), #7f8dff);
  color:#fff;
  box-shadow:0 10px 25px rgba(89,74,219,0.28);
}
.button-primary:hover{box-shadow:0 14px 28px rgba(89,74,219,0.34)}
.button-secondary{
  background:#fff;
  color:var(--text);
  border-color:var(--line);
}
.text-link{font-weight:700}
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(248,247,255,0.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(220,216,251,0.8);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:84px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  text-decoration:none;
}
.brand strong{display:block; font-size:1.02rem}
.brand small{display:block; color:var(--muted)}
.desktop-nav ul{
  list-style:none;
  display:flex;
  gap:22px;
  padding:0;
  margin:0;
  align-items:center;
}
.desktop-nav a{
  font-weight:700;
  color:var(--text);
  padding:8px 0;
  border-bottom:2px solid transparent;
}
.desktop-nav a.is-active,
.mobile-menu a.is-active{color:var(--primary-dark)}
.desktop-nav a.is-active{border-color:var(--primary)}
.menu-toggle{
  display:none;
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  padding:0;
  position:relative;
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  position:absolute;
  left:14px;
  transition:transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle span:nth-child(1){top:18px}
.menu-toggle span:nth-child(2){top:25px}
.menu-toggle span:nth-child(3){top:32px}
.menu-toggle.is-open span:nth-child(1){top:25px; transform:rotate(45deg)}
.menu-toggle.is-open span:nth-child(2){opacity:0}
.menu-toggle.is-open span:nth-child(3){top:25px; transform:rotate(-45deg)}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
.mobile-menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(23,22,47,0.42);
  z-index:58;
}
.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  width:min(90vw, 360px);
  height:100vh;
  background:#fff;
  box-shadow:-20px 0 50px rgba(27, 20, 83, 0.18);
  z-index:59;
  padding:22px;
  overflow:auto;
}
.mobile-menu__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}
.mobile-menu__close{
  border:0;
  background:transparent;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
}
.mobile-menu ul{list-style:none; padding:0; margin:0}
.mobile-menu li + li{margin-top:6px}
.mobile-menu a{
  display:block;
  padding:14px 0;
  font-size:1.12rem;
  font-weight:700;
  color:var(--text);
  border-bottom:1px solid var(--line);
}
body.menu-open{overflow:hidden}

.breadcrumbs-wrap{
  padding:12px 0 0;
}
.wrap-breadcrumb{width:min(calc(100% - 32px), 1120px);}
.breadcrumbs{
  display:flex;
  align-items:center;
  min-height:28px;
}
.breadcrumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:0;
  margin:0;
  color:var(--muted);
  font-size:.94rem;
}
.breadcrumbs li{display:inline-flex; align-items:center; gap:8px;}
.breadcrumbs li + li::before{
  content:'›';
  color:rgba(91,95,133,0.7);
}
.breadcrumbs a{color:var(--muted); font-weight:700;}
.breadcrumbs a:hover{color:var(--primary-dark); text-decoration:none;}
.breadcrumbs__current{color:var(--text); font-weight:800;}

.hero{padding:46px 0 24px}
.hero-home{padding:28px 0 18px}
.hero-copy--home{max-width:760px; margin-bottom:10px}
.hero-game--wide{max-width:none}
.hero-simple{padding:26px 0 8px}
.hero-simple .wrap{max-width:1120px}
.hero + .section{padding-top:16px}
.mini-note{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:var(--shadow);
}
.section-heading{
  max-width:760px;
  margin-bottom:28px;
}
.cards-2,
.cards-3,
.game-grid{
  display:grid;
  gap:20px;
}
.cards-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.cards-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
.game-grid{grid-template-columns:repeat(3, minmax(0, 1fr))}
.mode-card,
.info-card,
.feature-card,
.faq-card,
.archive-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.mode-card,
.info-card,
.feature-card,
.faq-card{padding:24px}
.mode-card__icon{
  font-size:1.6rem;
  margin-bottom:12px;
}
.mode-card h3 a{color:var(--text); text-decoration:none}
.mode-card h3 a:hover{text-decoration:underline}
.split-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}
.pill-tag,
.game-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  background:rgba(111,100,255,0.12);
  color:var(--primary-dark);
  border:1px solid rgba(111,100,255,0.2);
}
.pill-tag-soft{
  background:#fff;
  border-color:var(--line);
  color:var(--muted);
}
.daily-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:16px;
}
.game-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  padding:28px;
}
.game-card--hero{padding:34px}
.game-card__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.game-card__top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.button-compact{
  min-height:42px;
  padding:0 16px;
  font-size:0.95rem;
}
.sound-toggle[aria-pressed="false"]{
  background:rgba(255,255,255,0.96);
}
.sound-toggle[aria-pressed="true"]{
  background:rgba(111,100,255,0.12);
  border-color:rgba(111,100,255,0.24);
  color:var(--primary-dark);
}
.game-start-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 0;
}
.game-start-note{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.88);
  color:var(--muted);
  font-weight:700;
  width:max-content;
  max-width:100%;
}
.game-start-note__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow:0 0 0 6px rgba(111,100,255,0.10);
}
.target-box{
  position:relative;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(242,239,255,0.98) 100%);
  border-radius:24px;
  padding:16px 20px 18px;
  margin:18px 0 16px;
  cursor:text;
}
.target-box__top{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:12px;
  margin-bottom:10px;
}
.target-timer{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:min(100%, 220px);
}
.target-timer__label{
  color:var(--primary-dark);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.target-timer__value{
  display:block;
  font-size:clamp(2.05rem, 4vw, 3.25rem);
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--primary-dark);
  text-shadow:0 10px 26px rgba(111,100,255,0.20);
}
.target-box__spacer{
  min-height:1px;
}
.game-capture-input{
  position:absolute;
  top:14px;
  left:14px;
  width:1px;
  height:1px;
  opacity:0.01;
  pointer-events:none;
  border:0;
  padding:0;
}
.target-text{
  min-height:72px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  font-size:clamp(1.82rem, 3.6vw, 2.95rem);
  line-height:1.08;
  letter-spacing:-.025em;
  font-weight:900;
}
.target-char{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:.56ch;
  padding:0;
  border-radius:10px;
  transition:background .16s ease, color .16s ease, transform .16s ease, opacity .16s ease;
  font-weight:900;
}
.target-char.is-correct{color:rgba(31,33,64,0.52); opacity:1}
.target-char.is-current{background:rgba(142,232,255,0.62); color:var(--text); transform:translateY(-1px); box-shadow:0 0 0 2px rgba(111,100,255,0.10) inset}
.target-char.is-upcoming{opacity:0.68}
.target-box:focus-within{
  border-color:rgba(111,100,255,0.42);
  box-shadow:0 0 0 4px rgba(111,100,255,0.10);
}
.target-text.target-text--singleline{
  display:grid;
  grid-template-columns:repeat(var(--char-count, 26), minmax(0, 1fr));
  width:100%;
}
.target-text.target-text--singleline .target-char{
  min-width:0;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px 18px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:3px solid rgba(111,100,255,0.18);
  border-color:var(--primary);
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin-top:16px;
}
.stat-box{
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  padding:12px 13px;
}
.stat-box strong{
  display:block;
  font-size:1.12rem;
}
.letter-times{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:16px;
}
.letter-times__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.letter-times__grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.letter-time-chip{
  min-width:74px;
  padding:10px 12px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface-soft);
  display:flex;
  flex-direction:column;
  gap:3px;
}
.letter-time-chip strong{font-size:1.05rem}
.letter-time-chip span{color:var(--muted); font-size:0.95rem}
.letter-time-chip--empty{
  min-width:100%;
  color:var(--muted);
  background:rgba(111,100,255,0.06);
}
.game-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}
.game-actions--inline{
  margin-top:0;
  justify-content:flex-end;
}
.game-actions--inline .button{
  min-height:44px;
}
.celebration-banner{
  margin-top:14px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(111,100,255,0.24);
  background:linear-gradient(135deg, rgba(111,100,255,0.12), rgba(142,232,255,0.22));
  color:var(--text);
  font-weight:800;
  box-shadow:0 12px 28px rgba(89,74,219,0.12);
}
.sparkle-burst{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.sparkle-burst span{
  position:absolute;
  width:16px;
  height:16px;
  border-radius:999px;
  opacity:0;
  transform:scale(0.4);
  background:radial-gradient(circle, rgba(255,255,255,0.98) 0%, rgba(142,232,255,0.94) 42%, rgba(111,100,255,0) 70%);
}
.sparkle-burst span:nth-child(1){top:14%; left:12%;}
.sparkle-burst span:nth-child(2){top:18%; left:34%;}
.sparkle-burst span:nth-child(3){top:10%; left:56%;}
.sparkle-burst span:nth-child(4){top:16%; right:12%;}
.sparkle-burst span:nth-child(5){top:40%; left:18%;}
.sparkle-burst span:nth-child(6){top:34%; right:18%;}
.sparkle-burst span:nth-child(7){top:54%; left:10%;}
.sparkle-burst span:nth-child(8){top:50%; left:48%;}
.sparkle-burst span:nth-child(9){top:58%; right:10%;}
.sparkle-burst span:nth-child(10){bottom:18%; left:22%;}
.sparkle-burst span:nth-child(11){bottom:12%; left:50%;}
.sparkle-burst span:nth-child(12){bottom:16%; right:18%;}
.game-card > *{position:relative; z-index:1;}
.game-card.is-celebrating{
  box-shadow:0 24px 60px rgba(89,74,219,0.22);
  transform:translateY(-2px);
}
.game-card.is-celebrating .sparkle-burst span{
  animation:sparkle-pop .95s ease-out forwards;
}
.game-card.is-celebrating .sparkle-burst span:nth-child(2){animation-delay:.04s}
.game-card.is-celebrating .sparkle-burst span:nth-child(3){animation-delay:.08s}
.game-card.is-celebrating .sparkle-burst span:nth-child(4){animation-delay:.12s}
.game-card.is-celebrating .sparkle-burst span:nth-child(5){animation-delay:.16s}
.game-card.is-celebrating .sparkle-burst span:nth-child(6){animation-delay:.20s}
.game-card.is-celebrating .sparkle-burst span:nth-child(7){animation-delay:.24s}
.game-card.is-celebrating .sparkle-burst span:nth-child(8){animation-delay:.28s}
.game-card.is-celebrating .sparkle-burst span:nth-child(9){animation-delay:.32s}
.game-card.is-celebrating .sparkle-burst span:nth-child(10){animation-delay:.36s}
.game-card.is-celebrating .sparkle-burst span:nth-child(11){animation-delay:.40s}
.game-card.is-celebrating .sparkle-burst span:nth-child(12){animation-delay:.44s}
.game-card.is-new-best{
  box-shadow:0 28px 70px rgba(89,74,219,0.30);
}
@keyframes sparkle-pop{
  0%{opacity:0; transform:scale(0.25) translateY(0)}
  20%{opacity:1}
  100%{opacity:0; transform:scale(1.4) translateY(-18px)}
}
.game-status{
  margin-top:14px;
  font-weight:700;
}
.notice{
  border-radius:18px;
  padding:14px 16px;
  margin-bottom:16px;
  border:1px solid var(--line);
}
.notice-success{background:rgba(103,205,145,0.14)}
.notice-error{background:rgba(255,109,130,0.12)}
.field-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.contact-form label{display:block; margin-bottom:16px}
.contact-form span{display:block; font-weight:700; margin-bottom:8px}
.hp-field{position:absolute; left:-9999px}
.archive-list{
  display:grid;
  gap:16px;
}
.archive-list--full{grid-template-columns:repeat(2, minmax(0,1fr))}
.archive-item{padding:18px 20px}
.archive-item__meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:8px;
  color:var(--muted);
}
.prose{max-width:760px}
.prose p + p{margin-top:14px}
.game-shell .hero-copy__lead{max-width:70ch}
.prose > * + *{margin-top:0}
.big-stat{
  font-size:2rem;
  font-weight:800;
  margin:0;
  color:var(--primary-dark);
}
.faq-stack{display:grid; gap:18px}
.signup-strip{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
  gap:20px;
  align-items:center;
  padding:24px;
  border-radius:28px;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(111,100,255,0.10), rgba(142,232,255,0.18));
  box-shadow:var(--shadow);
}
.signup-strip__copy h2{margin-bottom:10px}
.signup-strip__form-wrap{display:grid; gap:12px}
.signup-form{display:grid; grid-template-columns:1fr 1.2fr auto; gap:10px; align-items:center}
.signup-form input{
  width:100%;
  min-height:52px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:0 16px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.signup-form input:focus{outline:3px solid rgba(111,100,255,0.18); border-color:var(--primary)}
.signup-strip .notice{margin:0}
.retention-note{margin-top:14px}
.site-footer{
  padding:48px 0 30px;
  border-top:1px solid rgba(220,216,251,0.8);
  background:#fff;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
}
.site-footer h2{font-size:1rem; margin-bottom:12px}
.site-footer ul{list-style:none; padding:0; margin:0}
.site-footer li + li{margin-top:8px}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding-top:24px;
  margin-top:24px;
  border-top:1px solid var(--line);
  color:var(--muted);
}

@media (max-width: 980px){
  .split-panel,
  .cards-3,
  .game-grid,
  .archive-list--full{grid-template-columns:1fr 1fr}
  .signup-strip{grid-template-columns:1fr}
  .signup-form{grid-template-columns:1fr 1fr auto}
  .cards-2{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .stats-grid{grid-template-columns:repeat(4, minmax(0, 1fr))}
  .stat-box{padding:11px 10px}
  .stat-box strong{font-size:1.02rem}
}

@media (max-width: 760px){
  .desktop-nav{display:none}
  .menu-toggle{display:block}
  .hero{padding:42px 0 28px}
  .split-panel,
  .cards-3,
  .cards-2,
  .game-grid,
  .archive-list--full,
  .footer-grid,
  .field-grid,
  .stats-grid{grid-template-columns:1fr}
  .game-card, .game-card--hero{padding:20px}
  .game-card__top{flex-direction:column; align-items:flex-start}
  .game-start-row{align-items:stretch}
  .game-actions--inline{justify-content:flex-start; width:100%}
  .game-actions--inline .button{flex:1 1 160px}
  .signup-form{grid-template-columns:1fr}
  .game-card__top-actions{justify-content:flex-start; width:100%}
  .button, .menu-toggle{min-height:50px}
  .button-compact{min-height:46px}
  .target-box{padding:14px 16px 16px}
  .target-box__top{grid-template-columns:1fr; gap:8px; margin-bottom:8px}
  .target-label,.target-timer,.target-box__spacer{justify-self:start}
  .target-timer{align-items:flex-start}
  .target-timer__value{font-size:clamp(1.9rem, 9vw, 2.5rem)}
  .target-text{font-size:clamp(1.2rem, 6.1vw, 1.68rem); letter-spacing:-.015em; min-height:60px; gap:0}
  .target-char{padding:0; border-radius:8px; min-width:.62ch}
  .game-start-note{width:100%; border-radius:18px}
  .stats-grid{grid-template-columns:1fr}
  .letter-time-chip{min-width:64px}
  .footer-bottom{flex-direction:column}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *, *::before, *::after{
    animation:none !important;
    transition:none !important;
  }
}


.prompt-box{
  border:1px dashed rgba(111,100,255,0.35);
  background:rgba(255,255,255,0.84);
  border-radius:20px;
  padding:16px 18px;
  margin:16px 0 0;
}
.prompt-text{
  font-size:clamp(1.15rem, 2.2vw, 1.6rem);
  line-height:1.5;
  letter-spacing:.08em;
  font-weight:800;
  word-break:break-word;
}
.hero-copy--home{max-width:640px; margin:0 auto 18px; text-align:center}
.hero-game--wide{max-width:1120px; margin:0 auto}
.hero-home__grid{display:block}
.big-stat{font-size:2rem; font-weight:800; margin:0}
@media (min-width: 900px){
  .hero-home{padding-top:52px}
  .hero-copy--home .hero-copy__lead{max-width:66ch; margin-left:auto; margin-right:auto}
  .target-text{font-size:clamp(2.15rem, 4vw, 3.55rem)}
}

/* v8 sticky-game polish */
.wrap-narrow{max-width:1180px}
.hero-home--compact{padding-top:28px; padding-bottom:18px}
.hero-copy--center{text-align:center; margin-bottom:12px}
.hero-game--raised{margin-top:8px}
.button-row--hero{justify-content:center; margin-top:12px}
.section-soft-top{padding-top:10px}
.section-tight-top{padding-top:8px}
.section-heading--tight{margin-bottom:20px}
.cards-4{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px}
.cards-3--equal > *,.cards-4 > *{height:100%}
.info-card--stat{display:flex; flex-direction:column; gap:8px}
.info-card--accent{background:linear-gradient(180deg, rgba(111,100,255,0.08), rgba(142,232,255,0.08));}
.small-label{display:block; color:var(--muted); font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em}
.stat-cards-home .big-stat{font-size:2.25rem}
.feature-card--daily h3{font-size:1.34rem; line-height:1.35}
.split-panel--balanced{align-items:stretch}
.daily-meta--expanded{margin-bottom:18px}
.archive-list--compact{grid-template-columns:1fr; gap:12px}
.archive-list--wide{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px}
.archive-item--today{border-color:rgba(111,100,255,0.26); box-shadow:0 14px 34px rgba(89,74,219,0.12)}

.ghost-panel{
  margin-top:16px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:16px;
}
.ghost-pace{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(92px, 1fr));
  gap:10px;
}
.ghost-chip{
  border:1px solid var(--line);
  border-radius:18px;
  padding:10px 12px;
  background:linear-gradient(180deg, rgba(111,100,255,0.03), rgba(142,232,255,0.06));
  display:flex;
  flex-direction:column;
  gap:3px;
}
.ghost-chip strong{font-size:1.04rem}
.ghost-chip span{font-size:.95rem; color:var(--muted)}
.ghost-chip em{font-style:normal; font-size:.78rem; color:var(--primary-dark); font-weight:700}
.ghost-chip.is-hit{background:linear-gradient(180deg, rgba(111,100,255,0.12), rgba(142,232,255,0.18)); border-color:rgba(111,100,255,0.22)}
.ghost-chip.is-next{border-color:rgba(111,100,255,0.35); box-shadow:0 0 0 2px rgba(111,100,255,0.10) inset}
.ghost-chip--empty{grid-column:1 / -1; color:var(--muted); background:rgba(111,100,255,0.05)}

.ghost-race-panel,
.result-strip{
  margin-top:16px;
}
.ghost-race-panel{
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  padding:16px;
}
.ghost-race{display:flex; flex-direction:column; gap:12px}
.ghost-race__track{
  position:relative;
  min-height:54px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(111,100,255,0.06), rgba(142,232,255,0.12));
  overflow:hidden;
  border:1px solid rgba(111,100,255,0.14);
}
.ghost-race__bar{
  position:absolute;
  left:0;
  height:14px;
  border-radius:999px;
  transition:width .18s ease;
}
.ghost-race__bar--ghost{
  top:12px;
  background:linear-gradient(90deg, rgba(111,100,255,0.28), rgba(111,100,255,0.7));
}
.ghost-race__bar--player{
  bottom:12px;
  background:linear-gradient(90deg, rgba(142,232,255,0.45), rgba(79,205,255,0.95));
  box-shadow:0 0 18px rgba(79,205,255,0.28);
}
.ghost-race__finish{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:.82rem;
  font-weight:800;
  color:var(--primary-dark);
}
.ghost-race__legend{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:.94rem; font-weight:700}
.ghost-race__legend span{display:inline-flex; align-items:center; gap:8px}
.ghost-race__dot{width:10px; height:10px; border-radius:999px; display:inline-block}
.ghost-race__dot--player{background:#4fcdff; box-shadow:0 0 0 4px rgba(79,205,255,0.14)}
.ghost-race__dot--ghost{background:#7469ff; box-shadow:0 0 0 4px rgba(116,105,255,0.12)}

.result-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.result-chip{
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(111,100,255,0.04));
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:106px;
}
.result-chip strong{font-size:1.05rem; line-height:1.2}

.stat-box strong,
.result-chip strong,
.result-chip .small-note{transition:transform .22s ease, opacity .22s ease, color .22s ease}
.stat-box strong.is-live-change,
.result-chip strong.is-live-change,
.result-chip .small-note.is-live-change{
  animation:stat-pop .38s ease;
}
@keyframes stat-pop{
  0%{transform:translateY(2px); opacity:.45}
  60%{transform:translateY(-2px); opacity:1}
  100%{transform:translateY(0); opacity:1}
}

@media (max-width: 980px){
  .cards-4{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .archive-list--wide{grid-template-columns:1fr}
}

@media (max-width: 760px){
  .wrap-narrow{max-width:none}
  .hero-home--compact{padding-top:24px}
  .cards-4{grid-template-columns:1fr}
  .button-row--hero{justify-content:stretch}
  .ghost-pace{grid-template-columns:1fr 1fr}
  .result-strip{grid-template-columns:1fr}
  .ghost-race__legend{flex-direction:column; align-items:flex-start}
}


/* v9 local leaderboard */
.leaderboard-hero{padding-bottom:12px}
.leaderboard-summary-grid .big-stat{font-size:2.15rem}
.leaderboard-text-stat{font-size:1.35rem; line-height:1.25}
.leaderboard-podium{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}
.podium-card{position:relative; padding-top:22px}
.podium-card--first{background:linear-gradient(180deg, rgba(255,226,122,0.16), rgba(255,255,255,0.96));}
.podium-card--second{background:linear-gradient(180deg, rgba(210,216,235,0.18), rgba(255,255,255,0.96));}
.podium-card--third{background:linear-gradient(180deg, rgba(225,188,163,0.18), rgba(255,255,255,0.96));}
.podium-card--empty{grid-column:1 / -1}
.podium-rank{display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:999px; background:rgba(111,100,255,0.12); color:var(--primary-dark); font-weight:800; margin-bottom:8px}
.leaderboard-lower-panels{gap:18px}
.leaderboard-panel{min-height:100%}
.leaderboard-panel__top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px}
.recent-runs{display:flex; flex-direction:column; gap:12px}
.run-row{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:14px 16px; border:1px solid var(--line); border-radius:18px; background:#fff}
.run-row--empty{display:block; text-align:left; color:var(--muted)}
.run-row__main,.run-row__meta{display:flex; flex-direction:column; gap:6px}
.run-row__main strong{font-size:1rem}
.run-row__main span,.run-row__meta span{color:var(--muted); font-size:.95rem}
.run-row__meta{align-items:flex-end}
.run-pill{display:inline-flex; align-items:center; justify-content:center; padding:5px 10px; border-radius:999px; background:rgba(111,100,255,0.12); color:var(--primary-dark); font-size:.8rem; font-weight:800}
.daily-streak-grid{display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:10px; margin-top:16px}
.daily-tile{border:1px solid var(--line); border-radius:16px; background:#fff; min-height:76px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-align:center}
.daily-tile strong{font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.daily-tile span{font-size:1.1rem; font-weight:800}
.daily-tile.is-done{background:linear-gradient(180deg, rgba(111,100,255,0.14), rgba(142,232,255,0.16)); border-color:rgba(111,100,255,0.28)}
@media (max-width: 980px){
  .leaderboard-podium{grid-template-columns:1fr}
  .leaderboard-lower-panels{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .leaderboard-panel__top{flex-direction:column}
  .run-row{flex-direction:column}
  .run-row__meta{align-items:flex-start}
  .daily-streak-grid{grid-template-columns:repeat(4, minmax(0, 1fr))}
}


/* v11 visual polish pack */
.site-header{
  background:linear-gradient(180deg, rgba(248,247,255,0.94), rgba(248,247,255,0.86));
  box-shadow:0 8px 28px rgba(89,74,219,0.05);
}
.brand img{
  border-radius:999px;
  box-shadow:0 12px 22px rgba(89,74,219,0.16);
}
.hero-home-top{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(300px, .9fr);
  gap:22px;
  align-items:center;
  margin-bottom:14px;
}
.hero-badge-row{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(111,100,255,0.16);
  background:rgba(255,255,255,0.86);
  color:var(--primary-dark);
  font-size:.84rem;
  font-weight:800;
  box-shadow:0 8px 18px rgba(89,74,219,0.08);
}
.hero-visual-card{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,239,255,0.96));
  border:1px solid var(--line);
  border-radius:30px;
  padding:12px;
  box-shadow:0 22px 44px rgba(89,74,219,0.12);
}
.hero-visual-card::before{
  content:"";
  position:absolute;
  inset:-8% auto auto -4%;
  width:120px;
  height:120px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(142,232,255,0.36), transparent 70%);
  pointer-events:none;
}
.hero-visual-card img{
  width:100%;
  height:auto;
  border-radius:22px;
}
.game-card{
  background:
    radial-gradient(circle at top right, rgba(142,232,255,0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}
.game-card::after{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(111,100,255,0.22), rgba(142,232,255,0.24), rgba(255,255,255,0));
}
.feature-card--daily{
  background:
    radial-gradient(circle at top right, rgba(142,232,255,0.18), transparent 34%),
    linear-gradient(180deg, rgba(111,100,255,0.08), rgba(255,255,255,0.98));
}
.footer-brand-strip{
  padding-bottom:18px;
}
.footer-brand-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,239,255,0.96));
  color:var(--muted);
  box-shadow:0 12px 26px rgba(89,74,219,0.08);
}
.footer-brand-chip img{border-radius:999px}
@media (max-width: 980px){
  .hero-home-top{grid-template-columns:1fr}
  .hero-copy--home{max-width:760px}
  .hero-visual-card{max-width:760px; margin:0 auto}
}
@media (max-width: 760px){
  .hero-badge-row{justify-content:flex-start}
  .hero-copy--center{text-align:left}
  .hero-copy--home{margin-bottom:10px}
  .hero-visual-card{display:none}
  .footer-brand-chip{border-radius:18px; display:flex}
}

@media (max-width: 760px){
  .breadcrumbs-wrap{padding-top:10px}
  .breadcrumbs ol{font-size:.9rem; gap:6px}
}


/* v15 richer content and rainbow polish */
.hero-badge-row{display:none !important}
.brand img,
.footer-brand-chip img{background:linear-gradient(180deg,#fff,#f7f2ff);}
.site-footer{
  background:
    radial-gradient(circle at top left, rgba(255,107,143,0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(59,130,246,0.12), transparent 22%),
    linear-gradient(180deg, #31265f 0%, #261c51 100%);
  color:#f7f4ff;
  border-top:1px solid rgba(255,255,255,0.10);
}
.site-footer a{color:#ffffff}
.site-footer a:hover{color:#ffe38d; text-decoration:none}
.site-footer h2{color:#ffffff}
.footer-rainbow{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  height:8px;
}
.footer-rainbow span:nth-child(1){background:#ff5d73}
.footer-rainbow span:nth-child(2){background:#ff9f43}
.footer-rainbow span:nth-child(3){background:#ffd93d}
.footer-rainbow span:nth-child(4){background:#28b463}
.footer-rainbow span:nth-child(5){background:#3b82f6}
.footer-rainbow span:nth-child(6){background:#8b5cf6}
.footer-grid{padding-top:28px}
.footer-brand-chip{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:24px;
  background:linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  color:#f3efff;
  box-shadow:none;
}
.footer-brand-chip strong{display:block; color:#fff; margin-bottom:2px}
.footer-brand-chip span{display:block; color:rgba(255,255,255,0.84)}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.10); margin-top:18px; padding-top:16px}
.prose h2{margin-top:30px}
.list-clean{padding-left:1.2rem; margin:0 0 16px}
.list-clean li{margin-bottom:8px}
.contact-side-card{align-self:start}
.leaderboard-actions{margin-top:16px}
.leaderboard-reset-note{max-width:72ch}
.button[data-reset-leaderboard]{border-color:rgba(255,255,255,0.18)}
@media (max-width:760px){
  .footer-grid{padding-top:24px}
  .footer-brand-chip{border-radius:22px}
}
