/* Landing page only; tokens, header and footer come from style.css. */
:root { --tile: #FFFFFF; --tile-line: #D9D3FA; --key: #FFFFFF; --key-edge: #D9D3FA; --ring: #5B3DF5; --on-candy: #14122B; --btn: #14122B; --on-btn: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root { --tile: #2E2A5C; --tile-line: #4A4590; --key: #3A3570; --key-edge: #0A0918; --ring: #FFD23F; --btn: #F4F1FF; --on-btn: #14122B; }
}

.wide { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-header .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 500; }
.top-nav > a:not(.btn):hover { color: var(--accent); }
.lang a[aria-current="true"] { background: var(--btn); color: var(--on-btn); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 20px; background: var(--btn); color: var(--on-btn); text-decoration: none; font-weight: 800; }

.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
section { padding: 56px 0; }
.center { text-align: center; }
.landing h2 { border: 0; padding: 0; margin: 0 0 32px; font-size: clamp(26px, 3.5vw, 36px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 40px; }
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; margin: 0 0 24px; }
.hero h1 span { white-space: nowrap; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
.store { display: grid; gap: 6px; }
.store small { font-size: 13px; font-weight: 700; color: var(--muted); }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; min-width: 180px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; line-height: 1.1; }
.badge span:first-child { font-size: 11px; }
.badge span:last-child { font-size: 20px; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); margin: 0; }

/* Game scene */
.scene { background: var(--card); border-radius: 28px; padding: 40px 24px; display: grid; justify-items: center; gap: 24px; }
.ladder { display: grid; gap: 8px; }
.ladder div { display: flex; gap: 6px; }
.ladder div:nth-child(1) { opacity: .75; } .ladder div:nth-child(2) { opacity: .9; } .ladder div:nth-child(3) { opacity: .95; }
.mini { width: 30px; height: 37px; display: grid; place-items: center; border-radius: 8px; background: var(--tile); border: 1px solid var(--tile-line); font-size: 13px; font-weight: 800; }
.mini.changed { background: var(--cyan); border-color: var(--cyan); color: var(--on-candy); text-decoration: underline; text-underline-offset: 3px; }
.word { display: flex; gap: 10px; }
.tile { width: 64px; height: 78px; display: grid; place-items: center; border-radius: 17px; background: var(--tile); border: 2px solid var(--tile-line); font-size: 34px; font-weight: 800; position: relative; }
.tile.changed { background: var(--cyan); border-color: var(--cyan); color: var(--on-candy); }
.tile.changed::after { content: ""; position: absolute; bottom: 10px; width: 20px; height: 4px; border-radius: 2px; background: var(--on-candy); }
.ring { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring b { font-size: 28px; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--on-candy); }
.pill.yellow { background: var(--yellow); } .pill.pink { background: var(--pink); }
.keys { display: flex; gap: 6px; opacity: .6; }
.key { width: 40px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--key); box-shadow: inset 0 -3px 0 var(--key-edge); font-weight: 800; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: 24px; padding: 28px; }
.step { text-align: center; }
.step .art { height: 96px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3, .mode h3 { margin: 0 0 6px; font-size: 21px; }
.step p, .mode p { margin: 0; color: var(--muted); font-size: 15px; }
.tile.selected { background: var(--pink); border-color: var(--pink); color: var(--on-candy); outline: 3px solid var(--text); outline-offset: 3px; }
.mode { display: flex; flex-direction: column; gap: 16px; min-height: 240px; }
.mode .head { display: flex; justify-content: space-between; align-items: center; }
.mode.solo { background: var(--lime); color: var(--on-candy); }
.mode.solo p { color: var(--on-candy); }
.mode.solo .big { font-size: 56px; font-weight: 800; line-height: 1; }
.mode.daily h3, .mode.duel h3 { color: var(--accent); }
.week { display: flex; gap: 6px; }
.week i { width: 22px; height: 22px; border-radius: 6px; background: var(--cyan); }
.week i.slow { background: none; border: 2px solid var(--muted); }
.week i.today { background: var(--pink); }
.versus { display: flex; align-items: center; gap: 16px; font-weight: 800; color: var(--muted); }
.player { display: grid; justify-items: center; gap: 4px; color: var(--text); }
.player span:first-child { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--tile); font-size: 14px; }
.hearts { color: var(--pink); font-size: 12px; letter-spacing: 2px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 8px; }
.fact { background: var(--card); border-radius: 20px; padding: 20px; text-align: center; font-weight: 700; font-size: 15px; }
.fact svg { display: block; margin: 0 auto 8px; color: var(--accent); }

/* Closing call to action */
.cta { position: relative; overflow: hidden; background: var(--lime); color: var(--on-candy); border-radius: 28px; padding: 72px 24px; text-align: center; }
.cta h2 { color: var(--on-candy); position: relative; }
.cta .stores { justify-content: center; position: relative; }
.cta .store small { color: var(--on-candy); }
.sq { position: absolute; border-radius: 8px; }
.sq.a { top: 28px; left: 28px; width: 32px; height: 32px; background: var(--cyan); transform: rotate(12deg); }
.sq.b { top: 56px; right: 44px; width: 40px; height: 40px; background: var(--yellow); transform: rotate(45deg); }
.sq.c { bottom: 44px; left: 60px; width: 24px; height: 24px; background: var(--pink); transform: rotate(-12deg); }
.sq.d { bottom: 28px; right: 28px; width: 32px; height: 32px; background: #14122B; transform: rotate(-6deg); }

.site-footer .wide { display: grid; gap: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top-nav > a:not(.btn) { display: none; }
  .btn { padding: 0 16px; }
  .tile { width: 56px; height: 64px; font-size: 30px; }
  .key { width: 34px; height: 42px; }
  .cta { padding: 80px 20px 48px; }
  .sq.a { top: 16px; left: 16px; width: 16px; height: 16px; border-radius: 4px; }
  .sq.b { top: 20px; right: 20px; width: 16px; height: 16px; border-radius: 4px; transform: rotate(-12deg); }
  .sq.c, .sq.d { display: none; }
  .badge { min-width: 0; width: 100%; }
  .cta .stores { flex-direction: column; align-items: stretch; max-width: 260px; margin: 0 auto 16px; }
}
@media (max-width: 400px) { .site-header .btn { display: none; } }
