@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'); }

:root {
  --ink: #1f1b4d; --violet: #4b2fb5; --violet-2: #7b55e6; --cream: #fff4de; --clay: #e8cf9f; --paper: #f7f3ff;
  --lv0: #ffd452; --lv0b: #e5a91a; --lv1: #a4e27e; --lv1b: #6db548; --lv2: #8acfff; --lv2b: #4f9ee0; --lv3: #cdaaff; --lv3b: #9b74de;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--paper); }
h1, h2, .brand, .btn, .tile, .meta, .row strong, .store, summary { font-family: Nunito, system-ui, sans-serif; font-weight: 800; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: clamp(21px, 4vw, 27px); line-height: 1.2; margin: 32px 0 12px; }
a { color: var(--violet); }
img { max-width: 100%; height: auto; }
.small { font-size: 14px; opacity: .75; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--violet); }
.top a { color: #fff; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.brand img { border-radius: 9px; }
.top nav a { font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); }

.hero { padding: 28px 16px 36px; text-align: center; color: #fff; background: linear-gradient(180deg, var(--violet) 0%, var(--violet-2) 100%); }
.hero .lead { max-width: 620px; margin: 0 auto 22px; opacity: .92; }
.game .cat { position: absolute; right: -128px; bottom: 24px; width: 120px; pointer-events: none; }
@media (max-width: 900px) { .game .cat { display: none; } }
.stuck a { color: #fff; font-weight: 700; }

.game { position: relative; max-width: 560px; margin: 0 auto; padding: 16px; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px rgba(20, 10, 70, .35); }
.meta { margin: 0 0 12px; font-size: 15px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  min-height: 64px; padding: 6px 4px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--cream); box-shadow: inset 0 -4px 0 var(--clay); color: var(--ink);
  font-size: clamp(12px, 3.5vw, 17px); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto;
  transition: transform .08s, background .12s;
}
.tile:active { transform: scale(.96); }
.tile.on { background: var(--violet); color: #fff; box-shadow: inset 0 -4px 0 #2d1a7a; }
.tile:focus-visible, .btn:focus-visible { outline: 3px solid var(--lv0b); outline-offset: 2px; }
#solved { display: grid; gap: 8px; margin-bottom: 8px; }
.row { padding: 10px 12px; border-radius: 12px; text-align: center; animation: pop .25s ease-out; }
.row strong { display: block; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; }
.row span { font-size: 15px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.lv0 { background: var(--lv0); } .lv1 { background: var(--lv1); } .lv2 { background: var(--lv2); } .lv3 { background: var(--lv3); }
.msg { min-height: 24px; margin: 10px 0 0; font-weight: 700; }
.hearts { margin: 4px 0 12px; font-size: 15px; }
.hearts i { font-style: normal; color: #ef4f6e; font-size: 19px; margin-left: 2px; }
.hearts i.off { opacity: .2; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn {
  display: inline-block; padding: 10px 18px; border: 2px solid var(--violet); border-radius: 99px; background: #fff;
  color: var(--violet); font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--violet); color: #fff; }
.btn:disabled { opacity: .4; cursor: default; }
.end { padding-top: 6px; }
.end-title { font-family: Nunito, sans-serif; font-weight: 800; font-size: 26px; margin: 4px 0; }
.stars { font-size: 28px; letter-spacing: 4px; color: var(--lv0b); margin: 0 0 8px; }
.store { display: inline-block; margin-top: 8px; padding: 10px 18px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; font-size: 15px; }
.store.soon { background: transparent; color: inherit; border: 2px dashed currentColor; opacity: .75; }

.band, .page { max-width: 760px; margin: 0 auto; padding: 8px 16px 8px; }
.page { padding-bottom: 40px; }
.how { padding-left: 22px; }
.how li { margin: 8px 0; }
.app { display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.app img { border-radius: 20px; box-shadow: 0 12px 30px rgba(40, 20, 120, .25); }
.app.slim { grid-template-columns: 1fr; margin-top: 24px; padding: 4px 20px 20px; border-radius: 20px; background: #fff; }
@media (max-width: 600px) { .app { grid-template-columns: 1fr; } .app img { max-width: 220px; justify-self: center; } }
.days { list-style: none; padding: 0; display: grid; gap: 6px; }
.days a { display: block; padding: 10px 14px; border-radius: 12px; background: #fff; text-decoration: none; font-weight: 600; }
.today { display: block; margin: 18px 0 8px; padding: 16px 18px; border-radius: 16px; background: var(--violet); color: #fff; text-decoration: none; font-family: Nunito, sans-serif; font-weight: 800; font-size: 18px; }
.today span { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 99px; background: var(--lv0); color: var(--ink); font-size: 14px; }
details { margin: 8px 0; border-radius: 14px; background: #fff; }
summary { padding: 12px 16px; cursor: pointer; }
details p { margin: 0; padding: 0 16px 14px; }
details[class^='lv'] summary { border-radius: 14px; }
details.lv0 summary { background: var(--lv0); } details.lv1 summary { background: var(--lv1); }
details.lv2 summary { background: var(--lv2); } details.lv3 summary { background: var(--lv3); }
details[class^='lv'][open] p { padding-top: 12px; }
.words { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.words li { padding: 10px 4px; border-radius: 10px; background: var(--cream); box-shadow: inset 0 -3px 0 var(--clay); text-align: center; font-family: Nunito, sans-serif; font-weight: 800; overflow-wrap: anywhere; hyphens: auto; }
.crumbs { margin: 18px 0 10px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 28px 0 0; font-weight: 700; }
.legal h2 { font-size: 20px; }

.foot { margin-top: 40px; padding: 24px 16px 96px; text-align: center; background: #ece5ff; font-size: 15px; }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; }
.langs a[aria-current] { font-weight: 800; text-decoration: none; color: var(--ink); }
.linkish { padding: 0; border: 0; background: none; color: var(--violet); font: inherit; text-decoration: underline; cursor: pointer; }
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; max-width: 560px; margin: 0 auto; padding: 14px 16px;
  border-radius: 18px; background: #fff; box-shadow: 0 10px 40px rgba(20, 10, 70, .35); font-size: 15px;
}
.consent p { margin: 0 0 10px; }
.consent div { display: flex; gap: 8px; }
.consent .btn { flex: 1; } /* refuse and accept: same size, same weight */
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .row { animation: none; } .tile { transition: none; } }
