@font-face { font-family: 'Baloo 2'; font-weight: 400 800; font-display: swap; src: url(/fonts/Baloo2.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url(/fonts/Nunito.woff2) format('woff2'); }

:root {
  --navy: #0E2350; --navy2: #17357A; --sky: #3FA9F5; --sky2: #1F5FB8; --gold: #FFC93C; --gold2: #F2A922; --gold3: #C98516;
  --green: #3AAE2B; --green2: #23801A; --red: #E8402F; --cream: #FFF9EC; --ink: #18233A; --muted: #56617A; --line: #E4D3AA;
  --r: 22px; --shadow: 0 14px 40px rgb(8 20 50 / .28);
  --game: 'Baloo 2', system-ui, sans-serif; --ui: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--ui); color: var(--ink); background: var(--navy); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ---------- top bar ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgb(14 35 80 / .92); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 22px/1 var(--game); }
.brand img { width: 40px; height: 40px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: #fff; text-decoration: none; font: 700 15px var(--game); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.on { background: rgb(255 255 255 / .14); }
.nav .btn { padding: 9px 18px; font-size: 16px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 3px solid #fff; border-radius: 999px; padding: 14px 28px; font: 800 20px/1 var(--game); text-decoration: none; cursor: pointer; color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .2); transition: transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(2px); }
.btn-go { background: linear-gradient(#8BE074, #3AAE2B 60%, #2E9A22); box-shadow: 0 5px 0 var(--green2), 0 12px 24px rgb(0 0 0 / .25); }
.btn-gold { background: linear-gradient(#FFE58A, #FFC93C 55%, #F2A922); box-shadow: 0 5px 0 var(--gold3), 0 12px 24px rgb(0 0 0 / .25); color: #3B2600; text-shadow: none; }
.btn-ghost { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .6); box-shadow: none; }
.btn small { display: block; font: 700 12px/1.1 var(--ui); opacity: .85; text-shadow: none; }
.btn .ico { width: 34px; height: 34px; }
.soon { opacity: .75; cursor: default; }
.soon:hover { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 100px 0 80px; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -6%; z-index: -2; background: url(/img/bg2_home_l.webp) center / cover; animation: hero-zoom 30s ease-in-out infinite alternate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 40%, rgb(14 35 80 / .35), rgb(14 35 80 / .78) 70%), linear-gradient(transparent 60%, var(--navy)); }
@keyframes hero-zoom { to { transform: scale(1.08) translateX(-1.5%); } }
@media (orientation: portrait) { .hero-bg { background-image: url(/img/bg2_home_p.webp); } }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-logo { width: min(520px, 100%); filter: drop-shadow(0 14px 24px rgb(0 0 0 / .45)); animation: logo-in .9s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes logo-in { from { transform: scale(.7) rotate(-4deg); opacity: 0; } }
.hero h1 { margin: 18px 0 8px; font: 800 clamp(30px, 4.4vw, 52px)/1.05 var(--game); text-shadow: 0 4px 0 rgb(0 0 0 / .25); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin: 0 0 26px; font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; opacity: .95; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 2px solid rgb(255 255 255 / .4); font: 700 15px/1.1 var(--ui); }
.store small { display: block; font-size: 10px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.store svg { width: 24px; height: 24px; }
.store.soon { opacity: .6; }
.rating { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 800; }
.rating b { color: var(--gold); letter-spacing: 2px; font-size: 20px; }

.phone { position: relative; justify-self: center; width: min(300px, 74vw); aspect-ratio: 9 / 19.5; border-radius: 46px; border: 9px solid #12161F; background: #0B1530; box-shadow: 0 0 0 3px #3A4256, var(--shadow), 0 40px 80px rgb(0 0 0 / .45); overflow: hidden; transform: rotate(4deg); animation: float 6s ease-in-out infinite; display: flex; flex-direction: column; }
.phone::before { content: '9:41'; flex: none; height: 9%; display: flex; align-items: center; padding: 0 22px; color: #fff; font: 800 13px var(--ui); background: linear-gradient(90deg, transparent 70%, transparent), #0B1530; }
.phone::after { content: ''; position: absolute; top: 2.2%; left: 50%; width: 32%; height: 4.2%; margin-left: -16%; border-radius: 999px; background: #000; }
.phone .screen { position: relative; flex: 1; background: #3FA9F5; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.phone .screen img.on { opacity: 1; }
.phone .home-bar { flex: none; height: 5%; display: grid; place-items: center; background: #0B1530; }
.phone .home-bar::after { content: ''; width: 36%; height: 5px; border-radius: 999px; background: #fff; opacity: .85; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-14px); } }
.flying { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.tile { position: absolute; width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(#FFE58A, #F6B820); box-shadow: inset 0 -6px 0 #D98A10, 0 10px 18px rgb(0 0 0 / .3); border: 3px solid #FFF3C4; font: 800 34px/1 var(--game); color: #5A2E0A; animation: drift 9s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-22px) rotate(8deg); } }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero-logo { margin: 0 auto; } .cta, .store-row, .rating { justify-content: center; } .hero p.lead { margin-inline: auto; } .phone { width: min(240px, 64vw); } }

/* ---------- live strip ---------- */
.live { position: relative; z-index: 2; margin-top: -46px; }
.live .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--cream); border: 3px solid #fff; border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.stat img { width: 50px; height: 50px; flex: none; }
.stat b { display: block; font: 800 30px/1 var(--game); color: var(--navy2); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(58 174 43 / .6); animation: ping 1.6s infinite; margin-right: 5px; vertical-align: 1px; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgb(58 174 43 / 0); } }
@media (max-width: 820px) { .live .wrap { grid-template-columns: 1fr 1fr; } .stat b { font-size: 24px; } }

/* ---------- sections ---------- */
section.band { padding: 96px 0; position: relative; }
.band.light { background: linear-gradient(#EAF5FF, #D7ECFC); }
.band.cream { background: var(--cream); }
.band.dark { background: radial-gradient(ellipse at top, var(--navy2), var(--navy)); color: #fff; }
.kicker { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: #3B2600; font: 800 13px/1 var(--game); letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 12px 0 14px; font: 800 clamp(30px, 4vw, 46px)/1.05 var(--game); }
.dark h2 { text-shadow: 0 3px 0 rgb(0 0 0 / .3); }
.sub { max-width: 640px; margin: 0 0 40px; color: var(--muted); font-size: 18px; }
.dark .sub { color: #C9DBF5; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); position: relative; border: 3px solid #fff; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#5AA6F0, #1F5FB8); color: #fff; font: 800 22px/1 var(--game); border: 3px solid #fff; box-shadow: 0 4px 0 #173F7A; }
.step img { width: 70px; height: 70px; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font: 800 22px/1.15 var(--game); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* mini puzzle */
.mini { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 60px; background: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 64px); grid-template-rows: repeat(4, 64px); gap: 3px; padding: 4px; background: var(--line); border-radius: 14px; }
.mc { background: #fff; border-radius: 8px; display: grid; place-items: center; font: 800 32px/1 var(--game); color: #1F5FB8; position: relative; }
.mc.clue { background: #F7EBCF; color: var(--ink); font: 800 10px/1.1 var(--game); text-align: center; padding: 3px; text-transform: uppercase; }
.mc.corner { background: #F7EBCF; }
.mc input { width: 100%; height: 100%; border: 0; border-radius: 8px; text-align: center; font: 800 32px/1 var(--game); color: #1F5FB8; background: transparent; text-transform: uppercase; caret-color: var(--sky); }
.mc input:focus { outline: 3px solid var(--sky); background: #EAF5FF; }
.mc.ok input { color: var(--green); background: #E3F7DC; }
.mc.bad input { color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mini h3 { margin: 0 0 8px; font: 800 28px/1.1 var(--game); }
.mini p { margin: 0 0 14px; color: var(--muted); }
.mini .won { display: none; font: 800 22px var(--game); color: var(--green); }
.mini.solved .won { display: block; animation: logo-in .6s both; }
@media (max-width: 820px) { .mini { grid-template-columns: 1fr; justify-items: center; text-align: center; } .mini-grid { grid-template-columns: repeat(4, 58px); grid-template-rows: repeat(4, 58px); } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: rgb(255 255 255 / .08); border: 2px solid rgb(255 255 255 / .16); border-radius: var(--r); padding: 22px; display: flex; gap: 16px; align-items: flex-start; transition: transform .2s, background .2s; }
.feat:hover { transform: translateY(-4px); background: rgb(255 255 255 / .13); }
.feat img { width: 62px; height: 62px; flex: none; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .3)); }
.feat h3 { margin: 0 0 4px; font: 800 21px/1.15 var(--game); }
.feat p { margin: 0; color: #C9DBF5; font-size: 15px; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin; }
.shots img { flex: none; width: min(260px, 70vw); border-radius: 24px; box-shadow: var(--shadow); scroll-snap-align: center; border: 4px solid #fff; }

/* leagues */
.leagues { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.lg { text-align: center; }
.lg img { width: 100%; max-width: 120px; margin: 0 auto 6px; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .35)); transition: transform .2s; }
.lg:hover img { transform: translateY(-6px) scale(1.06); }
.lg b { display: block; font: 800 18px/1 var(--game); }
.lg small { color: #C9DBF5; font-weight: 700; }
.lg:nth-child(n) img { width: calc(60% + var(--i) * 6%); }
@media (max-width: 760px) { .leagues { grid-template-columns: repeat(4, 1fr); row-gap: 22px; } }

/* leaderboard preview + page */
.lb-card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 18px; border: 3px solid #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 0; padding: 10px 18px; border-radius: 999px; font: 800 16px/1 var(--game); cursor: pointer; background: #EAF1FB; color: var(--ink); }
.tab.on { background: linear-gradient(#8BE074, #3AAE2B); color: #fff; box-shadow: 0 3px 0 var(--green2); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows li { display: grid; grid-template-columns: 40px 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: #F6F9FE; font-weight: 700; }
.rows li:nth-child(1) { background: linear-gradient(90deg, #FFF3C4, #fff); }
.rows li:nth-child(2) { background: linear-gradient(90deg, #EEF1F6, #fff); }
.rows li:nth-child(3) { background: linear-gradient(90deg, #FBE6D5, #fff); }
.rows .pl { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--game); background: #DCE6F4; color: var(--navy2); }
.rows li:nth-child(1) .pl { background: linear-gradient(#FFE58A, #F2A922); color: #3B2600; }
.rows li:nth-child(2) .pl { background: linear-gradient(#F4F6FA, #B8C2D3); }
.rows li:nth-child(3) .pl { background: linear-gradient(#F7CBA3, #C97A3D); color: #fff; }
.rows img { width: 32px; height: 32px; }
.rows .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .nm small { color: var(--muted); font-weight: 700; margin-left: 6px; }
.rows .val { font: 800 20px/1 var(--game); color: var(--navy2); }
.rows .wait { display: block; text-align: center; color: var(--muted); padding: 30px; background: none; }
.lb-more { margin-top: 14px; text-align: center; }

/* page header (inner pages) */
.page-head { padding: 130px 0 60px; color: #fff; text-align: center; background: linear-gradient(rgb(14 35 80 / .55), var(--navy)), url(/img/sea_l.webp) center / cover; }
.page-head h1 { margin: 10px 0 6px; font: 800 clamp(36px, 5vw, 58px)/1 var(--game); text-shadow: 0 4px 0 rgb(0 0 0 / .3); }
.page-head p { margin: 0; opacity: .9; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 6px 18px rgb(27 47 94 / .12); }
.faq summary { cursor: pointer; font: 800 19px/1.2 var(--game); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--sky2); font-size: 26px; line-height: .8; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* final cta */
.final { text-align: center; color: #fff; background: linear-gradient(rgb(14 35 80 / .5), rgb(14 35 80 / .85)), url(/img/bg_night_l.webp) center / cover; }
.final img.trophy { width: 120px; margin: 0 auto 6px; animation: float 5s ease-in-out infinite; }

footer { background: #091633; color: #9FB3D6; padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: #fff; text-decoration: none; font-weight: 700; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
.final .sub { color: #DCE8FA; }

/* ---- content pages (tools/build_site_pages.py) ---- */
.article-band { padding: 56px 0 72px; }
.article { max-width: 820px; background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: 0 14px 40px rgb(27 47 94 / .14); color: var(--ink, #1B2F5E); font-size: 18px; line-height: 1.65; }
.article h2 { margin: 36px 0 10px; font: 800 clamp(24px, 3vw, 32px)/1.15 var(--game); color: var(--navy, #0E2350); }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 0 0 6px; font: 800 22px/1.2 var(--game); }
.article p, .article li { color: #33456B; }
.article a { color: #1F7AD8; font-weight: 700; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.article .steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: 1fr; gap: 10px; }
.article .steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 58px; margin: 0; background: #F2F8FF; border-radius: 16px; }
.article .steps[start="6"] { counter-reset: s 5; }
.article .steps li::before { content: counter(s); position: absolute; left: 14px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#8BE074, #3AAE2B); color: #fff; font: 800 17px/1 var(--game); }
.article .shot { margin: 24px auto; text-align: center; }
.article .shot img { max-width: min(100%, 300px); max-height: 560px; object-fit: contain; border-radius: 20px; box-shadow: 0 10px 30px rgb(27 47 94 / .25); }
.article .shot figcaption { margin-top: 8px; font-size: 14px; color: #6B7A99; }
.article .faq { margin-top: 8px; }
.article .quote { font-size: 20px; font-weight: 700; border-left: 5px solid #FFC93C; padding: 6px 16px; background: #FFF8E3; border-radius: 0 14px 14px 0; }
.article .facts { width: 100%; border-collapse: collapse; }
.article .facts th, .article .facts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #E3ECF7; vertical-align: top; }
.article .facts th { width: 34%; color: #6B7A99; font-weight: 700; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl-card { background: #F2F8FF; border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.dl-card p { margin: 0; }
.dl-card .btn { font-size: 17px; padding: 12px 20px; }
.dl-card .soon { color: #1B2F5E; border-color: #B9CDE6; cursor: default; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.press-grid a { display: grid; gap: 6px; text-decoration: none; font-size: 14px; color: #33456B; }
.press-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #EAF5FF; }
.cta-band { padding: 72px 0; }
.cta-band .center, .center { text-align: center; }
.cta-band h2 { margin: 0 0 8px; font: 800 clamp(30px, 4vw, 44px)/1.1 var(--game); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0 10px; }
.mute-light { opacity: .7; font-size: 15px; }
footer nav { flex-wrap: wrap; }
.store.soon { opacity: .7; cursor: default; }

/* ---- crossword solver, clue pages, word lists ---- */
.solver { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: #F2F8FF; border: 3px solid #3FA9F5; }
.solver label { display: grid; gap: 4px; font: 800 15px var(--game); color: #1B2F5E; }
.solver label small { font: 600 13px var(--ui); color: #6B7A99; }
.solver input, .solver select { font: 700 18px var(--ui); padding: 12px 14px; border-radius: 14px; border: 2px solid #B9CDE6; background: #fff; color: #18233A; }
.solver input:focus, .solver select:focus { outline: none; border-color: #3AAE2B; box-shadow: 0 0 0 4px rgb(58 174 43 / .2); }
.solver-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.solver .btn { justify-self: start; font-size: 18px; padding: 12px 26px; }
.solver-out { margin-top: 18px; }
.solver-out h3, .article h3 { margin: 18px 0 8px; font: 800 20px var(--game); color: #0E2350; }
.mute { color: #6B7A99; }
.hits { list-style: none; padding: 0; display: grid; gap: 8px; }
.hits a { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; background: #F2F8FF; text-decoration: none; }
.hits .hit-clue { font-size: 15px; }
.hits .hit-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.hits b { font: 800 19px var(--game); letter-spacing: .08em; color: #23801A; }
.hits span { color: #33456B; font-weight: 600; }
.hits small { color: #6B7A99; }
.word-cloud { line-height: 2; letter-spacing: .06em; font-weight: 700; color: #33456B; word-spacing: .4em; }
.ans { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 18px; }
.ans span { font-weight: 800; color: #6B7A99; }
.ans-tiles { display: flex; gap: 5px; flex-wrap: wrap; }
.ans-tiles i { width: 44px; height: 48px; display: grid; place-items: center; font: 800 26px/1 var(--game); font-style: normal; color: #3B2600; background: linear-gradient(#FFE58A, #FFC93C 55%, #F2A922); border-radius: 10px; box-shadow: 0 4px 0 #C98516; }
.ans-lead { font-size: 20px; }
.ans-best { background: #F2F8FF; border: 2px solid #D5E6FA; border-radius: 18px; padding: 6px 16px; margin: 8px 0 18px; }
.ans-best .ans { margin: 10px 0; }
.defs { padding-left: 1.1em; color: #33456B; }
.defs li { margin: 4px 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #EAF5FF; text-decoration: none; font: 800 15px var(--game); }
.pager a.on { background: #3FA9F5; color: #fff; }
.clue-list { padding-left: 1.1em; }
.clue-list small { color: #6B7A99; margin-left: 4px; }
.clue-list.cols { columns: 2 260px; column-gap: 28px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; background: #EAF5FF; text-decoration: none; font: 800 17px var(--game); }
@media (max-width: 520px) { .solver-row { grid-template-columns: 1fr 96px; } .ans-tiles { flex-wrap: nowrap; width: 100%; gap: 4px; } .ans-tiles i { flex: 1 1 0; min-width: 0; max-width: 34px; width: auto; height: auto; aspect-ratio: .9; font-size: clamp(12px, 4.6vw, 20px); border-radius: 8px; } }

/* ---- daily puzzles (server/src/daily.ts + daily.js) ---- */
.page-head.slim { padding: 110px 0 34px; }
.daily-wrap { display: grid; gap: 22px; justify-items: center; }
.daily { width: min(560px, 100%); background: #fff; border-radius: 28px; padding: clamp(14px, 3vw, 24px); box-shadow: 0 14px 40px rgb(27 47 94 / .16); display: grid; gap: 12px; position: relative; }
.daily-text { width: min(820px, 100%); }
.mini-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-timer { font: 800 22px var(--game); color: #0E2350; min-width: 64px; }
.d-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.d-btn { border: 2px solid #B9CDE6; background: #F2F8FF; color: #1B2F5E; border-radius: 999px; padding: 7px 14px; font: 800 14px var(--game); cursor: pointer; }
.d-btn:hover { border-color: #3FA9F5; }
.mini-clue { min-height: 48px; padding: 12px 14px; border-radius: 14px; background: #EAF5FF; font: 700 18px/1.3 var(--ui); color: #18233A; }
.mini-clue b { color: #1F5FB8; margin-right: 6px; }
.daily .mini-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 4px; aspect-ratio: 1; width: min(100%, 420px); justify-self: center; user-select: none; touch-action: manipulation; }
.daily .mc { position: relative; background: #fff; border: 2px solid #B9CDE6; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.daily .mc.block { background: #0E2350; border-color: #0E2350; cursor: default; }
.daily .mc small { position: absolute; left: 5px; top: 3px; font: 700 12px var(--ui); color: #56617A; }
.daily .mc b { font: 800 clamp(26px, 7vw, 40px)/1 var(--game); color: #18233A; }
.daily .mc.in-word { background: #DCEEFF; }
.daily .mc.cur { background: #FFE58A; border-color: #F2A922; }
.daily .mc.wrong b { color: #E8402F; }
.daily .mc.right { background: #D9F5CF; border-color: #8BE074; }
.mini-key { position: absolute; opacity: 0; width: 1px; height: 1px; left: 50%; top: 40%; pointer-events: none; }
.mini-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-lists h3 { margin: 4px 0 6px; font: 800 17px var(--game); color: #0E2350; }
.clues { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.clues li { padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 15px; color: #33456B; }
.clues li b { color: #1F5FB8; margin-right: 4px; }
.clues li.on { background: #FFF3C4; }
.ws-grid { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 3px; width: min(100%, 480px); justify-self: center; user-select: none; touch-action: none; }
.ws-grid.miss { animation: ws-miss .3s; }
@keyframes ws-miss { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wc { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: #F2F8FF; font: 800 clamp(15px, 4.4vw, 24px)/1 var(--game); color: #18233A; cursor: pointer; }
.wc.sel { background: #FFE58A !important; transform: scale(1.06); }
.ws-words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }
.ws-words li { padding: 6px 12px; border-radius: 999px; background: #EAF5FF; font: 800 15px var(--game); letter-spacing: .05em; color: #1B2F5E; }
.ws-words li.found { background: #D9F5CF; color: #23801A; text-decoration: line-through; }
.ws-count { font: 800 14px var(--game); color: #56617A; }
.day-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.answers { margin: 16px 0; background: #FFF8E3; border-radius: 16px; padding: 12px 16px; }
.answers summary { cursor: pointer; font: 800 18px var(--game); color: #0E2350; }
.answers ul { margin: 10px 0 0; padding-left: 1.1em; }
.ans-word { font-weight: 800; letter-spacing: .08em; color: #23801A; }
.archive-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.archive-list a { display: block; padding: 10px 14px; border-radius: 14px; background: #F2F8FF; text-decoration: none; }
.d-veil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(10 20 45 / .6); }
.d-card { position: relative; width: min(400px, 100%); text-align: center; background: linear-gradient(#FFFDF5, #FFF2D3); border: 4px solid #fff; box-shadow: 0 0 0 3px #F2A922, 0 18px 40px rgb(0 0 0 / .4); border-radius: 26px; padding: 22px 20px 18px; color: #18233A; animation: d-pop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes d-pop { from { transform: scale(.5); opacity: 0; } }
.d-card h2 { margin: 6px 0 0; font: 800 32px var(--game); color: #0E2350; }
.d-big { margin: 4px 0; font: 800 40px var(--game); color: #23801A; }
.d-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.d-actions .btn { font-size: 17px; padding: 12px 20px; }
.d-next { color: #56617A; font-size: 14px; }
.d-close { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #56617A; }
@media (max-width: 520px) { .daily .mini-lists { grid-template-columns: 1fr; } }
@media print {
  .nav, .page-head, .cta-band, .shop-band, footer, .daily-text, .d-tools, .d-timer, .d-veil { display: none !important; }
  .band { padding: 0 !important; background: none !important; }
  .daily { box-shadow: none; width: 100%; }
  .wc { background: none !important; border: 1px solid #999; }
  .ws-words li { background: none; border: 1px solid #999; text-decoration: none; }
}

.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 10px; }
.today-card { display: grid; justify-items: center; gap: 6px; padding: 22px 18px; border-radius: 24px; background: #fff; box-shadow: 0 10px 28px rgb(27 47 94 / .14); text-decoration: none; color: #18233A; transition: transform .15s; }
.today-card:hover { transform: translateY(-4px); }
.today-card b { font: 800 24px var(--game); color: #0E2350; }
.today-card span { color: #56617A; }
.today-card i { font-style: normal; margin-top: 8px; font-size: 16px; padding: 10px 18px; }
.dark-ghost { color: #1B2F5E; border-color: #B9CDE6; }
.d-card img { display: block; margin: 0 auto; }
@media print {
  .ws-words li, .ws-words li.found { text-decoration: none !important; color: #000 !important; background: none !important; }
  .wc, .wc.hit, .wc.sel { background: none !important; color: #000 !important; transform: none !important; }
  .daily .mc, .daily .mc.right, .daily .mc.in-word, .daily .mc.cur { background: #fff !important; border-color: #999 !important; }
  .daily .mc b { color: transparent !important; }
  .daily .mc.block { background: #000 !important; }
  .ws-count, .day-nav, .answers { display: none !important; }
}
.crumbs { font-size: 14px; color: #56617A; margin: 0 0 14px; }
.crumbs a { color: #1F5FB8; text-decoration: none; }
.ans-pattern { font: 800 22px var(--game); letter-spacing: .25em; color: #0E2350; }
/* solver / unscrambler on phones: inputs never wider than the form (2026-11-09) */
.solver { min-width: 0; }
.solver label { min-width: 0; }
.solver input, .solver select { width: 100%; min-width: 0; box-sizing: border-box; }
.solver select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #1B2F5E 50%), linear-gradient(135deg, #1B2F5E 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.solver-row { grid-template-columns: minmax(0, 1fr) 120px; align-items: end; }
@media (max-width: 520px) {
  .solver { padding: 14px; gap: 10px; }
  .solver-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  .solver input, .solver select { font-size: 17px; padding: 11px 12px; }
  .solver select { padding-right: 28px; background-position: calc(100% - 16px) 52%, calc(100% - 10px) 52%; }
  .solver .btn { justify-self: stretch; text-align: center; }
}

/* mobile menu (site.js adds the button) */
.nav-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .14); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .nav .btn { margin-left: auto; }
  .nav.open { background: rgb(14 35 80 / .97); }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 68px; left: 0; right: 0; padding: 10px 16px 16px; background: rgb(14 35 80 / .97); box-shadow: 0 12px 24px rgb(0 0 0 / .3); max-height: calc(100dvh - 68px); overflow-y: auto; }
  .nav.open .nav-links a { padding: 13px 14px; font-size: 17px; border-radius: 12px; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* guides (2026-11-14) */
.article .tbl { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.article .tbl th, .article .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #E3E8F2; vertical-align: top; }
.article .tbl th { background: #F2F5FB; }
.article .guide-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.article .guide-list li { padding: 14px 16px; border: 1px solid #E3E8F2; border-radius: 12px; }
@media (max-width: 600px) { .article .tbl { font-size: 14px; } .article .tbl th, .article .tbl td { padding: 6px; } }

/* "Now on Google Play" pill in the hero (2026-11-15) + Android visitors get the Play badge first */
.gp-pill { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgb(255 255 255 / .94); color: #0E2350; font: 700 15px/1.2 var(--game); text-decoration: none; box-shadow: 0 6px 16px rgb(0 0 0 / .25); }
.gp-pill svg { width: 20px; height: 20px; flex: none; }
.gp-pill b { color: #1F8A3A; }
.gp-pill i { font-style: normal; color: #1F8A3A; }
.gp-pill:hover { transform: translateY(-1px); }
.play-first .hero .wrap > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.play-first .hero .hero-stores { order: 5; margin: 0 0 16px; align-items: center; }
.play-first .hero .hero-cta { order: 6; }
@media (max-width: 880px) { .play-first .hero .wrap > div:first-child { align-items: center; } }
@media (max-width: 880px) {
  .hero { padding-top: 84px; min-height: auto; }
  .hero-logo { width: min(330px, 78vw); }
  .hero h1 { margin-top: 12px; }
  .hero p.lead { margin-bottom: 18px; }
}
@media (min-width: 881px) { .play-first .hero-logo { width: min(400px, 100%); } .play-first .hero h1 { margin-top: 12px; } .play-first .hero p.lead { margin-bottom: 18px; } .play-first .hero { padding-top: 84px; } }
.is-ios .hero .wrap > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
.is-ios .hero .hero-stores { order: 5; margin: 0 0 16px; align-items: center; }
.is-ios .hero .hero-cta { order: 6; }
@media (max-width: 880px) { .is-ios .hero .wrap > div:first-child { align-items: center; } .is-ios .hero .hero-cta .btn-ghost { display: none; } }

/* Hero store badges per device (2026-11-24, owner): site.js orders them and marks the first one .lead (bigger, ringed);
   iPhone/iPad: App Store, Playgama · Mac: App Store, Playgama, Google Play · Android: Google Play, Playgama ·
   other computers: Playgama, Google Play, App Store. A badge site.js hides gets .off. */
.hero .hero-stores .store.off { display: none; }
.hero .hero-stores .store.lead { padding: 12px 26px 12px 20px; border-radius: 16px; border: 3px solid #FFFFFF; background: #000000; box-shadow: 0 0 0 3px var(--lead-ring, #FFC93C), 0 12px 26px rgb(0 0 0 / .35); }
.hero .hero-stores .store.lead.pg { background: #1A1033; --lead-ring: #8B5CF6; }
.hero .hero-stores .store.lead[data-play="android"] { --lead-ring: #34A853; }
.hero .hero-stores .store.lead svg { width: 34px; height: 34px; }
.hero .hero-stores .store.lead span { font-size: 24px; }
.hero .hero-stores .store.lead small { font-size: 12px; }.is-ios .hero .gp-pill { display: none; } /* iPhone/iPad: the big App Store badge says it; the pill only pushed the stores down */

/* ---------- printable shop block (site.js, 2026-11-25) ---------- */
section.shop-band { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.shop-band h2 { margin: 0 0 4px; font: 800 26px/1.2 var(--game); color: var(--navy); }
.shop-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shop-card { display: flex; gap: 16px; align-items: center; padding: 14px; background: #fff; border: 2px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(8 20 50 / .12); }
.shop-card img { flex: none; width: 100px; height: 150px; object-fit: cover; border-radius: 10px; }
.shop-body { display: grid; gap: 4px; min-width: 0; }
.shop-body small { font: 800 12px/1.2 var(--ui); color: var(--gold3); text-transform: uppercase; letter-spacing: .04em; }
.shop-body b { font: 800 19px/1.2 var(--game); color: var(--navy); }
.shop-body span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.shop-body i { font: 800 16px/1.2 var(--game); font-style: normal; color: var(--green2); margin-top: 2px; }
@media (max-width: 420px) { .shop-grid { grid-template-columns: 1fr; } .shop-card img { width: 80px; height: 120px; } }

/* ---------- play choice on computers (site.js, 2026-11-25) ---------- */
.pick-veil { position: fixed; inset: 0; z-index: 200; background: rgb(8 20 50 / .6); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.pick { position: relative; width: min(720px, 100%); background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); color: var(--ink); }
.pick h2 { margin: 0 0 18px; font: 800 28px/1.15 var(--game); color: var(--navy); text-align: center; }
.pick-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pick-opt { background: #F2F8FF; border-radius: 20px; padding: 20px; display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; }
.pick-opt h3 { margin: 0; font: 800 22px/1.2 var(--game); color: var(--navy); }
.pick-opt p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.pick-tag { font: 800 12px/1 var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--gold3); }
.pick-qr { width: 132px; height: 132px; border-radius: 12px; border: 6px solid #fff; box-shadow: 0 4px 14px rgb(8 20 50 / .12); }
.pick-stores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pick-opt .btn { font-size: 18px; padding: 12px 22px; margin-top: 4px; }
@media (max-width: 640px) { .pick-grid { grid-template-columns: 1fr; } }
/* the "any device" section on the homepage */
.devices-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); }
.article a.store { color: #fff; text-decoration: none; }
.article a.btn-gold { color: #3B2600; text-decoration: none; }
#devices .dl-card h3 { margin: 0; font: 800 22px/1.2 var(--game); color: var(--navy); }
.pick-opt.pick-alt { background: #fff; border: 2px dashed #cfdcec; } .pick-opt.pick-alt h3 { font-size: 18px; }

/* Winter Harbor promo on the homepage (2026-12-02, removed by its own script after Jan 6) */
.winter-band { background: linear-gradient(160deg, #0F3B2A, #14523A 45%, #7A1420); color: #fff; position: relative; overflow: hidden; }
.winter-band::before { content: ''; position: absolute; inset: 0; background: url(/img/garland.webp) top center / auto 130px repeat-x; pointer-events: none; }
.winter-wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 110px; }
.winter-copy .h2 { color: #fff; margin: 14px 0 10px; }
.winter-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.winter-list li { padding-left: 30px; position: relative; color: #F3F8F1; }
.winter-list li::before { content: '★'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 20px; line-height: 1.3; }
.winter-list b { color: #FFE58A; }
.winter-note { margin: 0 0 12px; font-weight: 700; color: #D8F2DE; }
.winter-band .store-row { justify-content: flex-start; }
.winter-shots { display: flex; justify-content: center; gap: 12px; }
.winter-shots img { width: 31%; max-width: 210px; height: auto; border-radius: 18px; box-shadow: 0 14px 30px rgb(0 0 0 / .4); }
.winter-shots img:nth-child(2) { transform: translateY(-18px) scale(1.06); }
@media (max-width: 820px) {
  .winter-wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 96px; }
  .winter-band .store-row { justify-content: center; }
  .winter-copy { text-align: left; }
}
