@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/s/nunito-extrabold.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/s/nunito-bold.woff2) format('woff2'); }

/* The app's palette: its violet night, the cream of the shutters, the four group colors (fill, lip), the hearts. */
:root {
  --violet: #4b2fb5; --violet-2: #6b45dd; --violet-deep: #2a1a73; --violet-ink: #24185f;
  --ink: #1f1b4d; --ink-2: #4d4876; --paper: #f6f3ff; --white: #fff;
  --cream: #fff4de; --clay: #e9d2a6; --gold: #ffd452; --gold-lip: #d99a12; --heart: #ef4f6e;
  --lv0: #ffd452; --lv0b: #e5a91a; --lv1: #a4e27e; --lv1b: #6db548; --lv2: #8acfff; --lv2b: #4f9ee0; --lv3: #cdaaff; --lv3b: #9b74de;
  --r: 16px; --shadow: 0 1px 2px rgba(31, 27, 77, .06), 0 8px 24px rgba(31, 27, 77, .08);
  --font: Nunito, ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 700 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.4vw, 52px); margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 18px; }
p { margin: 0 0 14px; text-wrap: pretty; }
a { color: var(--violet); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
em.hl { font-style: normal; color: var(--gold); }
.muted { color: var(--ink-2); font-size: 15px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* top bar: the violet the app opens on */
.top { background: var(--violet); color: var(--white); }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 23px; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 99px; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, .14); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-size: 14px; padding: 7px 12px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .3); }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none; min-width: 160px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.lang li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a[aria-current] { background: var(--paper); }
@media (max-width: 700px) { .nav a:not(.keep) { display: none; } .brand { font-size: 20px; } }

/* the violet band: kicker, title with its yellow word (the store captures' style), then the game */
.band { color: var(--white); background:
  radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .5) 0 1.5px, transparent 2px),
  radial-gradient(circle at 86% 26%, rgba(255, 255, 255, .45) 0 1.5px, transparent 2px),
  radial-gradient(circle at 72% 8%, rgba(255, 255, 255, .35) 0 1px, transparent 1.5px),
  radial-gradient(circle at 30% 62%, rgba(255, 255, 255, .3) 0 1px, transparent 1.5px),
  radial-gradient(ellipse at 50% -20%, var(--violet-2), transparent 60%),
  linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%); }
.band .wrap { padding: 36px 0 44px; text-align: center; }
.band.slim .wrap { padding: 28px 0 36px; text-align: left; }
.band.home .wrap { padding-bottom: 56px; }
.kicker { display: inline-block; text-wrap: balance; margin-bottom: 12px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.lead { font-size: clamp(17px, 2vw, 19px); color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0 auto 32px; }
.band.slim .lead { margin-left: 0; }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 12px; }
.crumbs a { color: var(--white); }

/* buttons: clay, with the lip the app gives them */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 14px;
  font: 800 16px/1 var(--font); text-decoration: none; cursor: pointer; color: var(--violet); background: var(--white);
  box-shadow: inset 0 -4px 0 #d9d0f5, 0 1px 2px rgba(0, 0, 0, .08); transition: transform .08s; }
.btn:active { transform: translateY(2px); }
.btn.gold { color: var(--ink); background: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-lip); }
.btn.violet { color: var(--white); background: var(--violet); box-shadow: inset 0 -4px 0 var(--violet-deep); }
.btn:disabled { color: #9d98b8; background: #ece9f4; box-shadow: inset 0 -4px 0 #dcd8e8; cursor: default; transform: none; }

/* the game */
.game { position: relative; max-width: 620px; margin: 0 auto; padding: 22px 22px 26px; border-radius: 28px; text-align: left; color: var(--ink);
  background: var(--white); box-shadow: 0 24px 60px rgba(20, 8, 70, .35); }
.game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; font-size: 15px; }
.game-head time { color: var(--ink-2); white-space: nowrap; }
.hearts { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: #fff0f3; font-size: 14px; color: var(--ink-2); }
.hearts i { font-style: normal; color: var(--heart); font-size: 18px; line-height: 1; transition: opacity .2s; }
.hearts i.off { opacity: .2; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { min-height: 76px; padding: 6px 4px; border: 0; border-radius: 14px; cursor: pointer; color: var(--ink); background: var(--cream);
  box-shadow: inset 0 -5px 0 var(--clay); font: 800 clamp(13px, 3.6vw, 18px)/1.15 var(--font); overflow-wrap: anywhere; hyphens: auto;
  transition: transform .08s, background .12s, color .12s; }
.tile:hover { background: #fff0cf; }
.tile:active { transform: scale(.96); }
.tile.on { color: var(--white); background: var(--violet); box-shadow: inset 0 -5px 0 var(--violet-deep); }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
#chips:empty { display: none; }
.chip { padding: 6px 12px; border-radius: 99px; font-size: 14px; }
.chip.lv0, .chip.lv1, .chip.lv2, .chip.lv3 { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.next { margin: -4px 0 14px; color: var(--ink-2); }
.next b { color: var(--ink); font-variant-numeric: tabular-nums; }
#solved { display: grid; gap: 8px; margin-bottom: 8px; }
#solved:empty { display: none; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; min-height: 76px; padding: 10px 14px; border-radius: 14px; animation: pop .3s ease-out; }
.row strong { display: block; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.row span { font-size: 16px; }
.row img { width: 52px; height: 52px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.lv0 { background: var(--lv0); box-shadow: inset 0 -5px 0 var(--lv0b); } .lv1 { background: var(--lv1); box-shadow: inset 0 -5px 0 var(--lv1b); }
.lv2 { background: var(--lv2); box-shadow: inset 0 -5px 0 var(--lv2b); } .lv3 { background: var(--lv3); box-shadow: inset 0 -5px 0 var(--lv3b); }
.msg { min-height: 24px; margin: 14px 0; text-align: center; font-size: 16px; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.end { text-align: center; padding: 6px 0 4px; }
.end-title { font-size: 30px; font-weight: 800; margin: 0; }
.stars { font-size: 32px; letter-spacing: 6px; color: var(--lv0b); margin: 0 0 12px; }
.end .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
/* the official App Store and Google Play badges, side by side */
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.stores a { display: block; line-height: 0; border-radius: 8px; }
.stores img { display: block; height: 44px; width: auto; }
.band.slim .stores, .app .stores { justify-content: flex-start; }
.stuck { margin: 32px 0 0; text-align: center; }
@media (max-width: 520px) {
  .kicker { font-size: 12px; letter-spacing: .08em; }
  .game { padding: 16px 14px 20px; border-radius: 24px; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; }
  .controls .btn { padding-inline: 10px; }
  .stuck a { font-size: 15px; }
}
.stuck a { display: inline-block; text-wrap: balance; padding: 12px 20px; border-radius: 99px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; }

/* sections on the light ground */
.section { padding: 72px 0 0; }
.section > .wrap > h2 { text-align: center; }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet); color: var(--white); font-weight: 800; box-shadow: inset 0 -3px 0 var(--violet-deep); }
.example { padding: 18px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.example h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.example .row { min-height: 0; padding: 10px 12px; animation: none; }
.example .row em { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .55); }
.example .row + .row { margin-top: 8px; }
@media (max-width: 800px) { .how { grid-template-columns: 1fr; } }

.app { display: grid; grid-template-columns: 1fr 240px; gap: 36px; align-items: center; padding: 36px; border-radius: 28px; color: var(--white); background: linear-gradient(160deg, var(--violet-2), var(--violet-deep)); }
.app h2 { text-align: left; }
.app p { color: rgba(255, 255, 255, .88); }
.app > img { border-radius: 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
@media (max-width: 720px) { .app { grid-template-columns: 1fr; padding: 26px; } .app > img { max-width: 220px; justify-self: center; } }

.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.days a { display: block; padding: 14px 16px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.days a:hover { box-shadow: 0 0 0 2px var(--violet), var(--shadow); }
.days b { display: block; font-size: 18px; }
.days small { color: var(--ink-2); font-size: 14px; }
.days a { position: relative; }
.days a.played::after { content: '✓'; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--lv1); box-shadow: inset 0 -3px 0 var(--lv1b); font-size: 14px; }
.more { text-align: center; margin-top: 20px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details, .reveals details { margin: 10px 0; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.faq summary, .reveals summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq summary::after, .reveals summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); color: var(--violet); font-size: 20px; }
details[open] > summary::after { content: '−'; }
.faq details > p, .reveals details > p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* answers pages */
.page { padding-top: 36px; }
.words { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.words li { display: grid; place-items: center; min-height: 64px; padding: 6px; border-radius: 14px; background: var(--cream); box-shadow: inset 0 -5px 0 var(--clay); text-align: center; font-weight: 800; overflow-wrap: anywhere; hyphens: auto; }
.step { margin-top: 40px; }
.step h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 3vw, 27px); }
.step h2 span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--violet); color: var(--white); font-size: 18px; box-shadow: inset 0 -3px 0 var(--violet-deep); }
.reveals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reveals details { margin: 0; box-shadow: none; }
.reveals summary { justify-content: flex-start; min-height: 64px; border-radius: var(--r); }
.reveals summary::after { margin-left: auto; background: rgba(255, 255, 255, .6); color: var(--ink); }
.reveals details[open] { background: var(--white); box-shadow: var(--shadow); }
.reveals details[open] summary { border-radius: var(--r) var(--r) 0 0; }
.reveals details > p { padding-top: 14px; color: var(--ink); font-size: 18px; }
@media (max-width: 600px) { .reveals { grid-template-columns: 1fr; } }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 40px 0 0; }
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 14px; padding: 18px 20px; border-radius: 20px; color: var(--ink); background: var(--gold); box-shadow: inset 0 -5px 0 var(--gold-lip); text-decoration: none; font-size: 19px; font-weight: 800; }
.today span { padding: 3px 12px; border-radius: 99px; background: var(--white); font-size: 14px; }
.month { margin-top: 36px; }
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 28px; }

.foot { margin-top: 80px; padding: 40px 0 110px; color: rgba(255, 255, 255, .85); background: var(--violet-ink); font-size: 15px; }
.foot .wrap { display: grid; gap: 14px; text-align: center; }
.foot a, .foot .linkish { color: var(--white); }
.foot .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.foot .langs a[aria-current] { text-decoration: none; color: var(--gold); }
.linkish { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }

.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 600px; margin: 0 auto; padding: 16px 18px; border-radius: 20px; background: var(--white); box-shadow: 0 12px 40px rgba(20, 8, 70, .35); font-size: 15px; }
.consent p { margin: 0 0 12px; }
.consent div { display: flex; gap: 10px; }
.consent .btn { flex: 1; } /* refuse and accept: same size, same weight */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* another game's answers page: Cheapz and its badges up top, the hints, today's Cheapz grid in a violet band, then links */
.band.slim .lead:has(+ .pitch) { margin-bottom: 14px; }
.pitch { margin: 0; font-weight: 800; }
.page .app + .after-app { margin-top: 48px; }
.band.other { margin-top: 56px; }
.band.other h2 { margin-bottom: 10px; }
.page .days + h2 { margin-top: 40px; }
.page .days + .muted { margin-top: 32px; }
