/* Kroqria: a prize night. Royal indigo sky, gold trim on anything that
   holds a reward, one loud green for the thing to press. */
:root {
  --night: #120a3a; --indigo: #2a1670; --violet: #5b2fd6; --violet-deep: #2c1387;
  --gold: #ffcf3a; --gold-hi: #fff0a0; --gold-deep: #b77a00;
  --green: #5ad62b; --green-hi: #a8f25a; --green-deep: #1c7d10;
  --pink: #ff4f8b; --cream: #fff7e6; --cream-deep: #e9d6ae; --ink: #1a1040; --muted: #6a6390; --bad: #d32f2f;
  --stroke: #1a0b52;
  --font: "Baloo Bhaijaan 2", "Noto Kufi Arabic", "SF Arabic Rounded", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: only light; background: #24125f; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 110px 90px, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(2px 2px at 170px 20px, rgba(255, 240, 160, .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 60px 150px, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(520px 360px at 100% 0, rgba(255, 79, 139, .28), transparent 65%),
    radial-gradient(460px 360px at 0 380px, rgba(60, 170, 255, .22), transparent 65%),
    linear-gradient(180deg, var(--night) 0, var(--indigo) 520px, #24125f 100%);
  background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, auto, auto, auto;
}
img { display: block; }
/* white lettering with a dark outline, the way game titles are set */
.outlined, .brand, .hero-title, .title, .ribbon, .btn, .badge-label, .chip {
  color: #fff; text-shadow: 2px 0px 0 var(--stroke), -2px 0px 0 var(--stroke), 0px 2px 0 var(--stroke), 0px -2px 0 var(--stroke), 2px 2px 0 var(--stroke), -2px 2px 0 var(--stroke), 2px -2px 0 var(--stroke), -2px -2px 0 var(--stroke), 0 5px 0 var(--stroke); }
.hero-title, .btn-play, .btn-big { text-shadow: 3px 0px 0 var(--stroke), -3px 0px 0 var(--stroke), 0px 3px 0 var(--stroke), 0px -3px 0 var(--stroke), 3px 3px 0 var(--stroke), -3px 3px 0 var(--stroke), 3px -3px 0 var(--stroke), -3px -3px 0 var(--stroke), 0 6px 0 var(--stroke); }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(18, 10, 58, .96), rgba(18, 10, 58, .7)); backdrop-filter: blur(8px); }
.brand { font-weight: 900; font-size: 1.55rem; text-decoration: none; color: var(--gold); }
.wallets { display: flex; gap: 20px; padding-inline-end: 6px; }
.pill { position: relative; display: flex; align-items: center; min-width: 78px; height: 30px; padding: 0 12px 0 26px; border-radius: 999px; direction: ltr;
  justify-content: flex-end; font-weight: 900; font-size: 1.1rem; color: #3a2a12; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #efe6d6); box-shadow: inset 0 -3px 0 #d6c8ae, 0 3px 0 rgba(0, 0, 0, .35); }
.pill img { position: absolute; left: -12px; top: 50%; transform: translateY(-50%); object-fit: contain; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .4)); }

main { width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 14px 8px; flex: 1; }
h1, h2, h3 { margin: 0; }
.title { font-size: 1.35rem; font-weight: 900; margin: 30px 4px 12px; }
.muted { color: var(--muted); margin: 0 0 10px; font-size: .95rem; }
.muted.on-dark { color: rgba(255, 255, 255, .75); margin-inline: 4px; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.15rem; text-decoration: none; text-align: center;
  padding: 9px 28px 11px; border-radius: 18px;
  transition: transform .08s, box-shadow .08s; }
.btn-green { background: linear-gradient(180deg, var(--green-hi), var(--green) 55%, #3cb81c); --stroke: #14560b;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 3px #14560b, 0 7px 0 3px var(--green-deep), 0 14px 18px rgba(0, 0, 0, .35); }
.btn-green:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 3px #14560b, 0 2px 0 3px var(--green-deep), 0 4px 6px rgba(0, 0, 0, .35); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #f2a900); --stroke: #7a4a00;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 0 0 3px #7a4a00, 0 7px 0 3px var(--gold-deep), 0 14px 18px rgba(0, 0, 0, .35); }
.btn-gold:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 0 0 3px #7a4a00, 0 2px 0 3px var(--gold-deep); }
.btn:focus-visible, .square:focus-visible, .badge:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.btn[disabled] { cursor: default; --stroke: #6f6a85; background: linear-gradient(180deg, #d9d5e6, #b9b3cf);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 0 0 3px #6f6a85, 0 7px 0 3px #7f799a; transform: none; }
.btn.wide { display: block; width: 100%; }

/* hero: the candy kingdom, with the crocodile standing on its stage */
.hero { position: relative; margin-top: 4px; aspect-ratio: 2 / 3; border-radius: 30px; overflow: hidden; text-align: center;
  background: #2a1670 var(--art-lobby) center / cover no-repeat;
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #8a5a00, 0 8px 0 #160a52, 0 22px 30px rgba(0, 0, 0, .45); }
.hero-title { position: absolute; top: 4%; left: 0; right: 0; font-size: 2.1rem; font-weight: 900; line-height: 1.25; color: var(--gold); }
.hero-croc { position: absolute; left: 50%; bottom: 44.5%; height: 37%; width: auto; margin-left: -19%;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .45)); animation: bob 3s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-cta { position: absolute; left: 0; right: 0; bottom: 7%; padding: 0 22px; }
.chip { display: inline-block; margin: 0 0 16px; padding: 3px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem;
  text-shadow: none; background: rgba(18, 10, 58, .7); border: 1px solid rgba(255, 255, 255, .25); }
.btn-play { display: block; width: min(100%, 300px); margin: 0 auto; font-size: 1.9rem; padding: 8px 20px 12px; border-radius: 24px; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-1.5deg); } }

/* round badges: shortcuts to what is on the page */
.badges { display: flex; justify-content: center; gap: 14px; margin: 22px 0 4px; }
.badge { display: grid; justify-items: center; text-decoration: none; width: 78px; }
.badge-art { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #8f63ff, #4a22c4 70%); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px #8a5a00, 0 5px 0 #160a52, 0 10px 12px rgba(0, 0, 0, .4); }
.badge-art img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); }
.badge-label { margin-top: -10px; padding: 0 10px 1px; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; text-shadow: none;
  color: var(--ink); background: linear-gradient(180deg, #fff, #e6dcf7); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.badge:active .badge-art { transform: translateY(3px); }

/* frame: violet body, gold edge, a ribbon title, cream inside */
.frame, .card { position: relative; margin-top: 34px; padding: 8px; border-radius: 26px;
  background: linear-gradient(180deg, #7446f0, var(--violet) 40%, var(--violet-deep));
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px #8a5a00, 0 7px 0 #160a52, 0 18px 24px rgba(0, 0, 0, .4); }
.ribbon { display: block; width: max-content; max-width: 90%; margin: -26px auto 8px; padding: 2px 26px 5px; border-radius: 14px; font-size: 1.2rem; font-weight: 900;
  background: linear-gradient(180deg, #ff7aa8, var(--pink) 60%, #d81b60); --stroke: #7a0e3a;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 0 0 3px #7a0e3a, 0 5px 0 3px #9c0f45; }
.frame-body { background: linear-gradient(180deg, #fffdf6, var(--cream)); border-radius: 18px; padding: 16px 14px; box-shadow: inset 0 -4px 0 var(--cream-deep); }

/* scan */
.scan { text-align: center; margin: 30px 0 26px; }
.squares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.square { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 1.6rem; font-weight: 900; color: transparent; border-radius: 18px;
  background: url(/art/bundle-1.png) center / 70% no-repeat, radial-gradient(circle at 50% 30%, #8f63ff, #4a22c4 75%);
  box-shadow: inset 0 0 0 3px var(--gold), 0 5px 0 #160a52; transition: transform .15s, opacity .3s; }
.square:active { transform: scale(.94); }
.square[disabled] { cursor: default; }
.square.dim { opacity: .4; filter: grayscale(.7); }
.square.busy { animation: wiggle .5s infinite; }
.square.open { direction: ltr; color: #4a2c00; background: radial-gradient(circle at 50% 35%, var(--gold-hi), var(--gold)); box-shadow: inset 0 0 0 3px #fff, 0 5px 0 var(--gold-deep), 0 0 0 6px rgba(255, 207, 58, .35); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes wiggle { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes pop { 0% { transform: scale(.6); } }
.result { margin-top: 16px; }
.result-title { font-size: 1.5rem; font-weight: 900; color: var(--violet); }
.result.bad .result-title { color: var(--bad); }
.result p { margin: 4px 0 14px; }
.receipt { display: block; direction: ltr; word-break: break-all; background: #fff; border: 2px dashed var(--violet); border-radius: 12px; padding: 10px; margin: 10px 0 14px; font-size: .8rem; }

/* coin exchange */
.exchange { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding-bottom: 22px; }
.exchange-coin { width: 64px; height: 64px; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .25)); }
.exchange .btn { grid-column: 1 / -1; }
.coin-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.coin-row strong { font-size: 1.3rem; font-weight: 900; }
.coin-row .muted, .exchange-body .muted { margin: 0; font-size: .85rem; }
.bar { height: 18px; border-radius: 999px; background: #d9cdf5; box-shadow: inset 0 3px 4px rgba(26, 11, 82, .3); overflow: hidden; margin: 8px 0 6px; }
.bar div { height: 100%; width: 0; border-radius: 999px; transition: width .5s;
  background: linear-gradient(180deg, var(--gold-hi), #ffb300); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6); }

/* bundles: offer cards */
.game-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.game-card { margin-top: 0; display: grid; justify-items: center; gap: 4px; padding: 14px 8px 16px; text-align: center; text-decoration: none; }
.game-card:nth-child(4n+2) { background: linear-gradient(180deg, #4aa8ff, #2a6fe0 40%, #173f9c); }
.game-card:nth-child(4n+3) { background: linear-gradient(180deg, #ff7aa8, #e0347a 40%, #9c0f45); }
.game-card:nth-child(4n+4) { background: linear-gradient(180deg, #ffb347, #f08a00 40%, #a85a00); }
.game-card img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .35)); }
.game-card strong { color: #fff; font-weight: 900; font-size: 1.05rem; text-shadow: 0 2px 0 var(--stroke); }
.game-card .price { margin-top: 6px; padding: 2px 26px 5px; border-radius: 14px; font-weight: 900; font-size: 1.05rem; color: #fff; --stroke: #14560b;
  text-shadow: 2px 0 0 var(--stroke), -2px 0 0 var(--stroke), 0 2px 0 var(--stroke), 0 -2px 0 var(--stroke), 2px 2px 0 var(--stroke), -2px 2px 0 var(--stroke), 2px -2px 0 var(--stroke), -2px -2px 0 var(--stroke);
  background: linear-gradient(180deg, var(--green-hi), var(--green) 55%, #3cb81c); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 3px #14560b, 0 5px 0 3px var(--green-deep); }
.game-card:active { transform: translateY(3px); }
.bundle-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; margin-bottom: 14px; }
.bundle { margin-top: 0; display: grid; justify-items: center; text-align: center; padding: 8px 8px 16px; }
.bundle:nth-child(even) { background: linear-gradient(180deg, #4aa8ff, #2a6fe0 40%, #173f9c); }
.bundle .frame-body { width: 100%; margin-bottom: 14px; padding: 10px 8px 12px; display: grid; justify-items: center; }
.bundle img { width: 110px; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .25)); }
.bundle strong { font-weight: 900; }
.bundle .muted { margin: 0; color: #8a5a00; font-weight: 800; font-size: .9rem; }
.bundle .price { width: 86%; padding: 4px 10px 6px; border-radius: 14px; font-weight: 900; font-size: 1.1rem; color: #fff; --stroke: #14560b; text-shadow: 2px 0px 0 var(--stroke), -2px 0px 0 var(--stroke), 0px 2px 0 var(--stroke), 0px -2px 0 var(--stroke), 2px 2px 0 var(--stroke), -2px 2px 0 var(--stroke), 2px -2px 0 var(--stroke), -2px -2px 0 var(--stroke), 0 5px 0 var(--stroke);
  background: linear-gradient(180deg, var(--green-hi), var(--green) 55%, #3cb81c); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 3px #14560b, 0 5px 0 3px var(--green-deep); }

/* album */
.puzzles { display: grid; gap: 4px; }
.puzzles .card { margin-top: 12px; padding: 14px; }
.puzzle-art { float: inline-end; width: 84px; height: 84px; object-fit: contain; margin: -4px 0 6px 8px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .35)); }
.pieces { clear: both; }
.puzzle-head { display: flex; justify-content: flex-start; align-items: center; gap: 10px; }
.puzzle-name { font-weight: 900; font-size: 1.15rem; color: #fff; text-shadow: 0 2px 0 var(--stroke); }
.puzzle-count { font-weight: 900; font-size: .85rem; white-space: nowrap; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); padding: 1px 12px; border-radius: 999px; box-shadow: 0 2px 0 var(--gold-deep); }
.puzzle-prize { color: rgba(255, 255, 255, .85); font-size: .9rem; margin: 2px 0 10px; }
.pieces { display: grid; gap: 6px; padding: 8px; border-radius: 16px; background: rgba(18, 10, 58, .45); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .35); }
.piece { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .22); }
.piece.have { color: #4a2c00; border: 0; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #f2a900);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-deep); }
.piece.pictured { border-radius: 6px; background-color: transparent; background-repeat: no-repeat; box-shadow: 0 0 0 2px var(--gold), 0 3px 0 var(--gold-deep); }
.pieces:has(.pictured) { gap: 3px; }
.receipt-qr { display: block; width: min(100%, 260px); height: auto; margin: 10px auto 4px; border-radius: 10px; image-rendering: pixelated; }
#prizes { margin-top: 44px; }
#prize-list { margin: 0; padding: 0; list-style: none; }
#prize-list li { padding: 8px 0; border-top: 1px solid var(--cream-deep); }
.foot { text-align: center; color: rgba(255, 255, 255, .5); font-size: .8rem; padding: 26px 12px calc(24px + env(safe-area-inset-bottom)); }

@media (max-width: 359px) { .badges { gap: 6px; } .hero-title { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { .hero-croc, .square.busy, .square.open { animation: none; } .btn, .square, .bar div { transition: none; } html { scroll-behavior: auto; } }
#lost { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--cream-deep); }
#lost h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 900; }
#lost-list { margin: 0; padding: 0; list-style: none; }
.lost-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.lost-item .btn { font-size: .95rem; padding: 5px 18px 7px; }
.result-art { display: block; width: min(72%, 250px); height: auto; margin: 0 auto 12px; border-radius: 22px; box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #8a5a00, 0 8px 0 #160a52; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@media (prefers-reduced-motion: reduce) { .result-art { animation: none; } }
.game-card { position: relative; }
.game-card.locked img { filter: grayscale(.85) brightness(.75); }
.game-card .lock { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font-size: 2rem; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.game-card .price.unlock { border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: .9rem; padding: 4px 12px 6px; color: #4a2c00; --stroke: #7a4a00;
  text-shadow: none; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #f2a900); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 0 0 3px #7a4a00, 0 5px 0 3px var(--gold-deep); }
.game-card .price.unlock.sure { color: #fff; background: linear-gradient(180deg, #ff7aa8, var(--pink)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 0 0 3px #7a0e3a, 0 5px 0 3px #9c0f45; }
.unlock-note { min-height: 0; font-size: .78rem; font-weight: 700; color: #fff; line-height: 1.35; }
.unlock-note:empty { display: none; }
.stage-badge { font-size: .78rem; font-weight: 900; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); padding: 0 10px; border-radius: 999px; }

/* Phone confirmation by WhatsApp */
#phone .phone-desk { margin: 16px 0 0; }
#phone .phone-code { direction: ltr; unicode-bidi: isolate; font-weight: 800; letter-spacing: .05em; }
#phone-status:empty { display: none; }
#phone-status { font-weight: 800; margin: 12px 0 0; }
#account .account-who { font-weight: 800; direction: rtl; unicode-bidi: plaintext; }
#account .account-buttons { display: grid; gap: 10px; }
#account .account-buttons[hidden] { display: none; }
#account .btn-account { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; text-shadow: none; font-weight: 700; font-size: 1rem; padding: 12px 20px; border-radius: 12px; }
#account .birth-row { display: flex; gap: 8px; margin: 0 0 12px; direction: rtl; }
#account .birth-row select { flex: 1; min-width: 0; padding: 10px 6px; font: inherit; border-radius: 10px; border: 1px solid #c9c2d6; background: #fff; color: #1f1f1f; }
#account .btn-link { background: none; border: 0; padding: 12px 0 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; opacity: .8; }
#result .to-app { margin-top: 12px; }
#result .to-app[hidden] { display: none; }
#account-status:empty { display: none; }
#account-status { font-weight: 800; margin: 12px 0 0; }
/* the two shelves of games, and the "new" tags */
.hero-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-kind { font-size: 1.25rem; padding: 10px 6px 14px; border-radius: 20px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin: 4px 0 18px; border-radius: 20px; background: rgba(10, 5, 40, .55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.kind { border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.1rem; padding: 8px 4px 10px; border-radius: 15px; color: rgba(255, 255, 255, .8); background: none; }
.kind.on { color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-deep); }
.new-game { display: block; margin: 0 0 14px; padding: 10px 14px 12px; border-radius: 18px; text-align: center; text-decoration: none; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #ff7aa8, var(--pink)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 #9c0f45; }
.game-card .fresh { position: absolute; top: -8px; inset-inline-start: -6px; padding: 0 12px 2px; border-radius: 999px; font-weight: 900; font-size: .85rem; color: #fff; transform: rotate(8deg);
  background: linear-gradient(180deg, #ff7aa8, var(--pink)); box-shadow: 0 0 0 2px #fff, 0 3px 0 2px #9c0f45; }

/* album: each puzzle is a closed card showing how far along it is; a tap opens its pieces */
.puzzle-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.puzzle-card > summary::-webkit-details-marker { display: none; }
.puzzle-card .puzzle-art { float: none; flex: 0 0 auto; width: 58px; height: 58px; margin: 0; }
.puzzle-words { flex: 1; min-width: 0; display: grid; gap: 2px; }
.puzzle-card .puzzle-prize { margin: 0; font-size: .85rem; }
.puzzle-bar { display: block; height: 8px; margin-top: 3px; border-radius: 999px; overflow: hidden; background: rgba(18, 10, 58, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); direction: rtl; }
.puzzle-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.puzzle-card > summary::after { content: "‹"; flex: 0 0 auto; font-size: 1.5rem; font-weight: 900; color: var(--gold-hi); transition: transform .15s; }
.puzzle-card[open] > summary::after { transform: rotate(-90deg); }
.puzzle-card[open] > summary { margin-bottom: 12px; }
/* links at the foot of the page, and the plain reading pages they lead to */
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { color: var(--gold-hi); font-weight: 800; font-size: .95rem; text-decoration: none; }
.page .frame-body h2 { margin: 16px 0 4px; font-size: 1.1rem; color: var(--violet-deep); }
.page .frame-body p, .page .frame-body li { margin: 0 0 8px; }
.page .frame-body ol, .page .frame-body ul { margin: 0 0 8px; padding-inline-start: 22px; }
.how-link { display: inline-block; margin: 6px 0 2px; color: #fff; font-weight: 800; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

.lang-pick { margin-inline-start: 12px; padding: 4px 8px; font: inherit; font-size: .85rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: inherit; }
