/* assets/arcade/ar.css — the look of the Arcade games (game.php). 17 Nov 2026.
   Every class starts with "ar-". --c is the game's own colour (set by game.php). Day and night: html.dark. Phones first. */
.ar { --bg: #f4f1ea; --card: #fff; --ink: #1c1a2e; --body: #45435c; --mute: #7b7990; --line: #e4dfd2; --ok: #16a34a; --no: #dc2626; --gold: #f59e0b; --soft: color-mix(in srgb, var(--c) 12%, var(--card));
  min-height: 100vh; min-height: 100dvh; background: radial-gradient(1200px 500px at 50% -200px, color-mix(in srgb, var(--c) 22%, transparent), transparent), var(--bg); color: var(--ink);
  font: 16px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
html.dark .ar { --bg: #0e0f1d; --card: #191b30; --ink: #f1f1fa; --body: #c9c9de; --mute: #9092b0; --line: #2c2f4d; }
.ar * { box-sizing: border-box; } .ar button { font: inherit; color: inherit; } body.ar-body { margin: 0; }
.ar-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ar-top a.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.ar-top b { flex: 1; min-width: 0; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-top button { width: 40px; height: 40px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 17px; }
.ar-stage { max-width: 720px; margin: 0 auto; padding: 14px 12px 60px; }
.ar-stage.wide { max-width: 1040px; }
.ar-loading { text-align: center; padding: 60px 0; color: var(--mute); font-weight: 600; } .ar-loading a { color: var(--c); }
/* buttons */
.ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--c); color: #fff !important; font-weight: 800; font-size: 16px; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000); transition: transform .08s, box-shadow .08s; }
.ar-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 60%, #000); }
.ar-btn.big { min-height: 56px; font-size: 18px; padding: 0 30px; } .ar-btn.ghost { background: var(--card); color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.ar-btn.sm { min-height: 38px; font-size: 14px; padding: 0 14px; border-radius: 11px; } .ar-btn[disabled] { opacity: .45; pointer-events: none; }
.ar-btn.ok { --c: #16a34a; } .ar-btn.no { --c: #dc2626; }
/* start screen */
.ar-intro { text-align: center; padding: 14px 4px; }
.ar-badge { width: 92px; height: 92px; margin: 6px auto 10px; display: grid; place-items: center; font-size: 50px; border-radius: 28px; background: var(--c); box-shadow: 0 10px 24px -8px var(--c), inset 0 -6px 0 rgba(0,0,0,.14); transform: rotate(-4deg); }
.ar-intro h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; } .ar-who { margin: 4px 0 14px; color: var(--mute); font-weight: 700; font-size: 13.5px; }
.ar-how { list-style: none; margin: 0 auto 16px; padding: 14px 16px; max-width: 520px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 7px; color: var(--body); font-size: 15px; }
.ar-how li { padding-left: 24px; position: relative; } .ar-how li::before { content: "▸"; position: absolute; left: 4px; color: var(--c); font-weight: 900; }
.ar-choice { margin: 0 auto 14px; max-width: 520px; text-align: left; } .ar-choice > b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 0 0 6px 2px; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chip { min-height: 42px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.ar-chip.on { background: var(--c); border-color: var(--c); color: #fff; }
.ar-note { color: var(--mute); font-size: 13.5px; max-width: 520px; margin: 0 auto 12px; } .ar-bestline { color: var(--mute); margin: 12px 0 0; font-size: 14px; }
/* score bar */
.ar-hud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.ar-h { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ar-h.t.low { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; animation: arPulse .6s infinite; } .ar-h.p { margin-left: auto; color: var(--mute); }
@keyframes arPulse { 50% { transform: scale(1.06); } }
/* question card */
.ar-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; box-shadow: 0 10px 30px -22px rgba(0,0,0,.5); }
.ar-pic { text-align: center; font-size: 64px; line-height: 1.1; margin: 0 0 8px; } .ar-pic svg, .ar-pic img { max-width: 100%; height: auto; } .ar-pic img.flag { width: 150px; border-radius: 8px; border: 1px solid var(--line); }
.ar-qt { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.35; text-align: center; } .ar-qt.long { font-size: 16.5px; font-weight: 600; text-align: left; } .ar-qt u { text-decoration-color: var(--c); text-decoration-thickness: 3px; }
.ar-qsub { margin: -8px 0 14px; text-align: center; color: var(--mute); font-size: 14px; }
.ar-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .ar-opts.three { grid-template-columns: 1fr 1fr 1fr; }
.ar-opt { min-height: 54px; padding: 8px 10px; border-radius: 14px; background: var(--soft); border: 2px solid color-mix(in srgb, var(--c) 25%, var(--line)); font-weight: 700; font-size: 15.5px; line-height: 1.25; cursor: pointer; transition: transform .08s; }
.ar-opt:active { transform: scale(.97); } .ar-opt.ok { background: #dcfce7; border-color: var(--ok); color: #14532d; } .ar-opt.no { background: #fee2e2; border-color: var(--no); color: #7f1d1d; animation: arShake .3s; } .ar-opt[disabled] { cursor: default; }
@keyframes arShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ar-why { margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; background: var(--soft); color: var(--body); } .ar-why.ok { background: #dcfce7; color: #14532d; } .ar-why.no { background: #fee2e2; color: #7f1d1d; }
.ar-fb { text-align: center; } .ar-fb .ar-why { text-align: left; }
@media (max-width: 480px) { .ar-opts, .ar-opts.three { grid-template-columns: 1fr; } .ar-opts.two { grid-template-columns: 1fr 1fr; } .ar-opts.short { grid-template-columns: 1fr 1fr; } .ar-qt { font-size: 18px; } }
/* result */
.ar-end { text-align: center; padding: 20px 4px; }
.ar-stars { font-size: 58px; line-height: 1; letter-spacing: 6px; } .ar-stars i { font-style: normal; color: var(--line); display: inline-block; } .ar-stars i.on { color: var(--gold); animation: arStar .5s calc(var(--d) * .18s) both; }
@keyframes arStar { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } }
.ar-end h2 { margin: 10px 0 4px; font-size: 28px; } .ar-score { margin: 0; font-size: 46px; font-weight: 900; color: var(--c); line-height: 1.1; } .ar-score small { font-size: 20px; color: var(--mute); }
.ar-line { margin: 6px 0; color: var(--body); } .ar-newbest { font-weight: 800; color: var(--gold); margin: 6px 0; } .ar-xp { font-weight: 800; min-height: 22px; margin: 4px 0; }
.ar-endbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.ar-review { text-align: left; margin: 16px auto 0; max-width: 560px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.ar-review ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; } .ar-review li { display: grid; gap: 2px; } .ar-review em { font-style: normal; font-weight: 800; color: var(--ok); }
/* teams */
.ar-teams { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 0 0 12px; }
.ar-team { padding: 8px 10px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); text-align: center; border-bottom: 5px solid var(--tc); opacity: .7; }
.ar-team.on { opacity: 1; border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 25%, transparent); transform: translateY(-2px); }
.ar-team span { display: block; font-size: 12.5px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ar-team b { font-size: 24px; color: var(--tc); }
.ar-podium { display: grid; gap: 8px; max-width: 360px; margin: 14px auto 0; } .ar-podium div { display: flex; justify-content: space-between; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--tc); font-weight: 800; }
.ar-turn { text-align: center; font-weight: 800; margin: 0 0 10px; font-size: 17px; }
/* keyboard */
.ar-kb { margin: 12px auto 0; max-width: 520px; display: grid; gap: 6px; user-select: none; } .ar-kb div { display: flex; gap: 5px; justify-content: center; }
.ar-kb button { flex: 1; max-width: 46px; min-width: 0; height: 50px; border-radius: 9px; border: 0; background: color-mix(in srgb, var(--ink) 12%, var(--card)); font-weight: 800; font-size: 16px; text-transform: uppercase; cursor: pointer; padding: 0; }
.ar-kb button.wide { max-width: 70px; flex: 1.6; font-size: 12px; } .ar-kb button[disabled] { opacity: .25; } .ar-kb button.g { background: #16a34a; color: #fff; } .ar-kb button.y { background: #eab308; color: #fff; } .ar-kb button.x { background: #6b7280; color: #fff; opacity: .55; }
/* small shared pieces */
.ar-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ar-tile { min-height: 46px; min-width: 46px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 2px solid color-mix(in srgb, var(--c) 35%, var(--line)); font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 30%, var(--line)); }
.ar-tile.used { opacity: .25; pointer-events: none; } .ar-tile.sel { background: var(--c); color: #fff; } .ar-tile.ok { background: #dcfce7; border-color: var(--ok); color: #14532d; } .ar-tile.no { background: #fee2e2; border-color: var(--no); }
.ar-slot { min-height: 58px; padding: 8px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--c) 45%, var(--line)); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 0 0 12px; background: var(--soft); }
.ar-slot .ar-tile { box-shadow: none; } .ar-slot:empty::before { content: attr(data-ph); color: var(--mute); font-size: 14px; }
.ar-in { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid color-mix(in srgb, var(--c) 40%, var(--line)); background: var(--card); color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; text-align: center; }
.ar-in:focus { outline: 3px solid color-mix(in srgb, var(--c) 35%, transparent); } .ar-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ar-msg { text-align: center; min-height: 24px; font-weight: 700; margin: 8px 0; } .ar-msg.ok { color: var(--ok); } .ar-msg.no { color: var(--no); }
.ar-center { text-align: center; } .ar-mt { margin-top: 12px; } .ar-found { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; } .ar-found span { padding: 4px 10px; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: 13.5px; } .ar-found span.done { background: #dcfce7; color: #14532d; text-decoration: line-through; }
.ar-big { font-size: 34px; font-weight: 900; letter-spacing: .06em; text-align: center; margin: 8px 0 14px; text-transform: uppercase; word-break: break-word; }
.ar-clues { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; } .ar-clues li { padding: 9px 12px; border-radius: 12px; background: var(--soft); font-weight: 600; animation: arIn .3s; } .ar-clues li b { color: var(--c); margin-right: 6px; }
@keyframes arIn { from { opacity: 0; transform: translateY(8px); } }
.ar-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 0 12px; } .ar-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .3s; }
/* bingo */
.ar-bingo { display: grid; gap: 8px; max-width: 520px; margin: 10px auto; } .ar-bingo.n3 { grid-template-columns: repeat(3, 1fr); } .ar-bingo.n4 { grid-template-columns: repeat(4, 1fr); }
.ar-bingo button { aspect-ratio: 1; border-radius: 14px; background: var(--card); border: 2px solid var(--line); font-weight: 800; font-size: 14px; line-height: 1.2; padding: 4px; cursor: pointer; word-break: break-word; }
.ar-bingo.n4 button { font-size: 12px; } .ar-bingo button.on { background: var(--c); border-color: var(--c); color: #fff; } .ar-bingo button.line { background: var(--gold); border-color: var(--gold); color: #1a1300; animation: arPulse .6s 3; }
.ar-bgcall { font-size: clamp(22px, 5vw, 44px); font-weight: 800; padding: 26px 10px; line-height: 1.25; } .ar-bgcall .em { font-size: 2.4em; display: block; }
/* ── word games ── */
.cw-grid { display: grid; gap: 3px; margin: 0 auto 6px; } .cw-grid span { aspect-ratio: 1; }
.cw-grid button { position: relative; aspect-ratio: 1; border: 2px solid var(--line); border-radius: 7px; background: var(--card); padding: 0; cursor: pointer; }
.cw-grid button b { font-size: clamp(15px, 4.5vw, 22px); text-transform: uppercase; } .cw-grid button sup { position: absolute; left: 3px; top: 1px; font-size: 9px; color: var(--mute); font-weight: 700; }
.cw-grid button.in { background: var(--soft); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); } .cw-grid button.cur { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); } .cw-grid button.bad b { color: var(--no); }
.cw-clues { display: grid; gap: 10px; font-size: 14px; margin: 6px 0; } .cw-clues p { margin: 4px 0 0; padding: 6px 8px; border-radius: 9px; cursor: pointer; } .cw-clues p.on { background: var(--soft); } .cw-clues i { font-style: normal; font-weight: 800; color: var(--c); margin-right: 4px; }
@media (min-width: 640px) { .cw-clues { grid-template-columns: 1fr 1fr; } }
.ch-log { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; justify-content: center; margin: 0 0 12px; } .ch-log span { padding: 5px 11px; border-radius: 99px; font-weight: 700; background: var(--soft); } .ch-log span b { color: var(--c); font-size: 1.15em; }
.ch-log .w0 { background: #fee2e2; color: #7f1d1d; } .ch-log .w1 { background: #dbeafe; color: #1e3a8a; }
.mm { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; grid-template-columns: repeat(4, 1fr); } .mm.n12 { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
@media (min-width: 560px) { .mm.n12 { grid-template-columns: repeat(4, 1fr); max-width: 560px; } .mm.n20 { grid-template-columns: repeat(5, 1fr); } }
.mm button { aspect-ratio: 1; border-radius: 14px; border: 0; cursor: pointer; padding: 4px; background: var(--c); color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1.15; word-break: break-word; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, #000); }
.mm button .b { display: none; } .mm button .f { font-size: 28px; } .mm button.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--c); } .mm button.on .b { display: block; } .mm button.on .f { display: none; }
.mm button.done { box-shadow: inset 0 0 0 2px var(--ok); background: #dcfce7; color: #14532d; } .mm .em, .ar-pic .em { font-size: 38px; }
.fc { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 6px 0 14px; font-weight: 900; font-size: 26px; } .fc-r { padding: 6px 14px; border-radius: 12px; background: var(--c); color: #fff; } .fc-p, .fc-s { min-width: 54px; padding: 6px 8px; border-radius: 12px; border: 2px dashed var(--line); color: var(--c); min-height: 50px; }
/* ── grammar games ── */
.eh-s { font-size: 21px; line-height: 2.1; text-align: center; margin: 4px 0 8px; } .eh-s button { border: 0; background: var(--soft); border-radius: 9px; padding: 3px 9px; font-weight: 700; cursor: pointer; }
.eh-s button.ok { background: #dcfce7; color: #14532d; box-shadow: inset 0 0 0 2px var(--ok); } .eh-s button.no { background: #fee2e2; color: #7f1d1d; text-decoration: line-through; }
.tm, .al { position: relative; height: 46px; margin: 0 0 10px; border-radius: 99px; background: linear-gradient(90deg, #fde68a, #bae6fd, #c4b5fd); display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 24px; }
.tm i, .al i { position: absolute; top: 6px; font-style: normal; font-size: 26px; transition: left .4s; transform: translateX(-50%); } .al { background: repeating-linear-gradient(90deg, #d1d5db 0 22px, #e5e7eb 22px 44px); justify-content: flex-end; } .al i { transform: translateX(-50%) scaleX(-1); }
.pa-sky { position: relative; height: 250px; border-radius: 14px; background: linear-gradient(#7dd3fc, #e0f2fe); overflow: hidden; margin: 0 0 6px; }
.pa { position: absolute; top: -90px; width: 28%; border: 0; background: none; cursor: pointer; padding: 0; animation: arFall linear forwards; display: grid; justify-items: center; }
.pa span { font-size: 38px; line-height: 1; } .pa b { display: block; width: 100%; padding: 8px 2px; border-radius: 10px; background: #fff; color: #0c4a6e; font-size: 17px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.pa.ok b { background: #16a34a; color: #fff; } .pa.no b { background: #dc2626; color: #fff; } .pa-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: #65a30d; }
@keyframes arFall { to { top: 162px; } }
.tw { display: flex; align-items: flex-end; gap: 12px; justify-content: center; height: 120px; margin: 0 0 10px; } .tw-n { font-weight: 900; font-size: 20px; color: var(--c); }
.tw-b { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; } .tw-b i { width: 70px; height: 7px; margin-top: 2px; border-radius: 2px; background: var(--c); opacity: calc(.45 + var(--k) * .05); } .tw-b b { order: -1; font-size: 22px; }
.tn { position: relative; height: 54px; border-radius: 10px; background: #15803d; margin: 0 0 10px; border: 3px solid #fff; box-shadow: 0 0 0 2px #15803d; } .tn::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #fff; }
.tn i { position: absolute; top: 12px; left: 6%; font-style: normal; font-size: 24px; transition: left .35s ease-out; }
.sn-wrap { display: grid; gap: 12px; } @media (min-width: 860px) { .sn-wrap { grid-template-columns: minmax(0, 460px) 1fr; align-items: start; } }
.sn { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; max-width: 460px; margin: 0 auto; width: 100%; }
.sn div { position: relative; aspect-ratio: 1; border-radius: 8px; background: var(--card); border: 1px solid var(--line); padding: 2px 4px; overflow: hidden; } .sn div.up { background: #dcfce7; } .sn div.dn { background: #fee2e2; }
.sn em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--mute); } .sn small { position: absolute; right: 3px; top: 2px; font-size: 10.5px; font-weight: 800; color: #1c1a2e; }
.sn span { position: absolute; left: 3px; right: 3px; bottom: 3px; display: flex; gap: 2px; flex-wrap: wrap; } .sn span i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sn-dice { font-size: 110px; line-height: 1; animation: arStar .5s; }
.pu { font-size: 20px; line-height: 2.3; text-align: center; margin: 4px 0 10px; } .pu button { border: 0; cursor: pointer; font-weight: 700; }
.pu .w { background: var(--soft); border-radius: 9px; padding: 3px 8px; } .pu .m { min-width: 24px; margin-left: 2px; border-radius: 7px; background: none; color: var(--mute); font-size: 22px; padding: 0 4px; } .pu .m.on { background: var(--c); color: #fff; } .pu .no { box-shadow: 0 0 0 2px var(--no); }
/* ── IELTS games ── */
.ar-text { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; padding: 13px 15px; margin: 0 0 10px; color: var(--body); font-size: 16px; line-height: 1.6; }
.longopts .ar-opts, .det .ar-opts { grid-template-columns: 1fr; } .longopts .ar-opt, .det .ar-opt { text-align: left; justify-content: flex-start; font-size: 15.5px; font-weight: 600; line-height: 1.4; padding: 11px 14px; }
.ar-qt mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 6px; padding: 0 5px; }
.ar-streak { margin: 0 0 8px; text-align: center; font-weight: 800; color: #ea580c; }
.chart .ar-pic svg { width: 100%; max-width: 420px; height: auto; background: var(--card); border-radius: 12px; }
.chart .g { stroke: var(--line); stroke-width: 1; } .chart .ax { stroke: var(--mute); stroke-width: 1.5; } .chart .ln { fill: none; stroke: var(--c); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .dt { fill: var(--card); stroke: var(--c); stroke-width: 2.5; } .chart .tx { font-size: 9.5px; fill: var(--mute); text-anchor: middle; font-weight: 700; } .chart .tv { font-size: 12px; fill: var(--ink); text-anchor: middle; font-weight: 800; }
.ar .ln-play { width: 108px; height: 108px; border-radius: 50%; border: 0; background: var(--c); font-size: 46px; cursor: pointer; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000); margin: 6px 0 10px; } .ln-play:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000); }
.ar-wheel { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 14px; }
.ar-wh-pin { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 2; font-size: 26px; color: var(--ink); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.ar-wh-disc { position: absolute; inset: 0; border-radius: 50%; border: 6px solid var(--card); box-shadow: 0 0 0 2px var(--line), 0 12px 26px -10px rgba(0,0,0,.45); transition: transform 3.2s cubic-bezier(.15,.8,.2,1); }
.ar-wh-disc span { position: absolute; inset: 0; } .ar-wh-disc b { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.wh-time { font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; margin: 6px 0 10px; min-height: 54px; } .wh-time small { display: block; font-size: 14px; color: var(--mute); font-weight: 800; }
/* ── knowledge games ── */
.tl-out { list-style: none; counter-reset: tl; margin: 0 0 10px; padding: 8px; min-height: 64px; border: 2px dashed var(--line); border-radius: 14px; display: grid; gap: 6px; }
.tl-out:empty::before { content: "Tap the events below — earliest first"; color: var(--mute); font-weight: 600; text-align: center; padding: 12px 0; }
.tl-out li { counter-increment: tl; display: flex; align-items: center; gap: 8px; } .tl-out li::before { content: counter(tl); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; font-size: 14px; }
.tl-out button, .tl-in button { flex: 1; text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--soft); font-weight: 700; font-size: 15px; cursor: pointer; }
.tl-out li.ok button { border-color: var(--ok); background: #dcfce7; color: #14532d; } .tl-out li.no button { border-color: var(--no); background: #fee2e2; color: #7f1d1d; } .tl-out b { float: right; margin-left: 8px; }
.tl-in { display: grid; gap: 6px; margin: 0 0 10px; } .tl-in button { background: var(--card); width: 100%; }
.gc-flag { display: block; height: 74px; margin: 6px 0 0; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.fp { width: min(300px, 80%); aspect-ratio: 3 / 2; margin: 12px auto; display: flex; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(45deg, var(--soft) 0 8px, var(--card) 8px 16px); }
.fp.h { flex-direction: column; } .fp button { flex: 1; border: 0; cursor: pointer; padding: 0; } .fp.h button + button { border-top: 1px dashed rgba(120,120,120,.5); } .fp.v button + button { border-left: 1px dashed rgba(120,120,120,.5); } .fp button.no { box-shadow: inset 0 0 0 4px var(--no); }
.fp-pal { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 0 0 12px; } .fp-pal button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; } .fp-pal button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ink); }
.ar-stage.full { max-width: 620px; padding: 0 8px; }
.cr { display: grid; grid-template-rows: 1fr auto 1fr; gap: 6px; height: calc(100vh - 58px); height: calc(100dvh - 58px); padding: 6px 0; }
.cr-half { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border-radius: 16px; background: var(--card); border: 2px solid #ef4444; min-height: 0; } .cr-half.p1 { transform: rotate(180deg); border-color: #3b82f6; } .cr-half.lock { opacity: .45; }
.cr-sc { font-size: 13px; font-weight: 800; color: var(--mute); text-align: center; } .cr-q { margin: 0; text-align: center; font-size: 18px; } .cr-o { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cr-o button { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft); font-weight: 800; font-size: 15px; cursor: pointer; padding: 4px 6px; } .cr-o button.ok { background: var(--ok); color: #fff; } .cr-o button.no { background: var(--no); color: #fff; }
.cr-mid { text-align: center; font-weight: 900; font-size: 14px; color: var(--c); }
.mt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; } .mt > div { display: grid; gap: 7px; align-content: start; }
.mt button { min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14.5px; cursor: pointer; } .mt button.on { border-color: var(--c); background: var(--soft); box-shadow: 0 0 0 2px var(--c); }
.mt button.ok { background: #dcfce7; border-color: var(--ok); color: #14532d; opacity: .8; } .mt button.no { background: #fee2e2; border-color: var(--no); }
.bd { width: min(250px, 70%); height: auto; margin: 6px auto 0; display: block; } .bd-body { fill: var(--soft); stroke: var(--line); stroke-width: 2; } .bd [data-o] { cursor: pointer; } .bd [data-o].found { opacity: .35; } .bd [data-o].show { opacity: 1; animation: arStar .6s 2; }
.ms-q { font-size: clamp(22px, 6.4vw, 34px); min-height: 84px; display: grid; place-items: center; }
.sp { display: flex; justify-content: space-between; gap: 2px; margin: 0 0 10px; padding: 8px 6px; border-radius: 14px; background: #0b1026; }
.sp span { flex: 1; text-align: center; opacity: .45; } .sp span.done { opacity: .8; } .sp span.at { opacity: 1; } .sp i { display: block; font-style: normal; font-size: 22px; } .sp span.at i { animation: arStar .6s; } .sp small { display: block; font-size: 9.5px; font-weight: 800; color: #c7d2fe; }
/* ── class games ── */
.jb { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.jb-h { display: grid; place-items: center; text-align: center; min-height: 52px; padding: 4px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: clamp(10.5px, 2.4vw, 16px); line-height: 1.15; }
.ar .jb-c { min-height: clamp(48px, 9vh, 84px); border: 0; border-radius: 10px; background: var(--c); color: #fde68a; font-weight: 900; font-size: clamp(16px, 4vw, 30px); cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); } .ar .jb-c[disabled] { background: var(--line); box-shadow: none; cursor: default; }
.jb-q .ar-qt { font-size: clamp(19px, 3.4vw, 30px); } .ar-stage.wide .ar-card .ar-opt { font-size: clamp(16px, 2.2vw, 21px); }
.tg-ready { font-size: clamp(18px, 3vw, 26px); font-weight: 700; margin: 6px 0 12px; } .tg-word { font-size: clamp(40px, 9vw, 96px); font-weight: 900; line-height: 1.05; margin: 14px 0 8px; word-break: break-word; }
.tg-ban { list-style: none; margin: 10px auto 4px; padding: 0; display: grid; gap: 6px; max-width: 420px; } .tg-ban li { padding: 8px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-weight: 800; font-size: clamp(18px, 3vw, 26px); text-decoration: line-through; }
.tg-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; } .tg-btns .ar-btn { min-height: 60px; font-size: 19px; flex: 1 1 140px; }
.au-s { font-size: clamp(21px, 3.6vw, 34px); font-weight: 800; line-height: 1.3; margin: 8px 0 16px; } .au-pr { justify-content: center; margin-bottom: 12px; }
.ff-t { text-align: center; font-size: 20px; font-weight: 900; margin: 2px 0 12px; color: var(--c); } .ff { display: grid; gap: 8px; margin-bottom: 10px; }
.ff button { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: 17px; cursor: pointer; text-align: left; }
.ff button i { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-style: normal; font-weight: 900; } .ff button.on { border-color: var(--c); } .ff button.on i { background: var(--c); color: #fff; }
.ff button.ok { border-color: var(--ok); background: #dcfce7; color: #14532d; } .ff button.no { border-color: var(--no); background: #fee2e2; color: #7f1d1d; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .bs-sea { text-align: center; padding: 8px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); } .bs-sea.aim { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.bs-sea > b { display: block; font-size: 13.5px; margin-bottom: 6px; } .bs-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 330px; margin: 0 auto; }
.bs-g button { aspect-ratio: 1; border: 0; border-radius: 8px; background: #38bdf8; cursor: pointer; font-size: clamp(14px, 3.4vw, 24px); padding: 0; } .bs-g button[disabled] { cursor: default; opacity: .8; } .bs-sea.aim .bs-g button:not([disabled]) { background: #0ea5e9; opacity: 1; }
.bs-g button.hit { background: #fecaca; opacity: 1; } .bs-g button.miss { background: #e2e8f0; color: #64748b; opacity: 1; }
.rl { display: grid; gap: 7px; } .rl-lane { display: grid; grid-template-columns: 76px 1fr 26px; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--card); border: 2px solid var(--line); } .rl-lane.on { border-color: var(--tc); }
.rl-lane b { font-size: 13.5px; color: var(--tc); } .rl-road { position: relative; height: 34px; border-bottom: 3px dashed var(--line); margin-right: 26px; } .rl-road i { position: absolute; bottom: -2px; font-style: normal; font-size: 26px; transition: left .5s; transform: scaleX(-1); }
.lw { display: grid; gap: 12px; margin-top: 10px; } @media (min-width: 860px) { .lw { grid-template-columns: 380px 1fr; align-items: start; } }
.dc { max-width: 420px; margin: 14px auto; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; } .dc > b { display: block; margin-bottom: 6px; } .dc ol { margin: 0; padding: 0; list-style: none; counter-reset: dc; display: grid; gap: 4px; }
.dc li { counter-increment: dc; display: grid; grid-template-columns: 26px 1fr auto 44px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; font-weight: 700; font-size: 14.5px; } .dc li::before { content: counter(dc); color: var(--mute); font-weight: 900; }
.dc li.me { background: var(--soft); } .dc li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dc li em { font-style: normal; font-weight: 900; color: var(--c); } .dc li small { color: var(--mute); text-align: right; }
/* ── Word of the Day (new look, 17 Nov evening): ticket header, 3D tiles with a cursor, flip, results ── */
.ar-stage.wd { max-width: 520px; padding-bottom: 10px; --g: #1faa59; --y: #e2a307; --x: #5b6478; --t: max(36px, min(15.4vw, 62px, calc((100vh - 404px) / 6 - 7px))); }
@supports (height: 100dvh) { .ar-stage.wd { --t: max(36px, min(15.4vw, 62px, calc((100dvh - 404px) / 6 - 7px))); } }
html.dark .ar-stage.wd { --x: #3b4160; }
.wd-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0f8a47, #1faa59 55%, #7cc242); box-shadow: 0 10px 24px -14px #0f8a47; position: relative; overflow: hidden; }
.wd-top::after { content: "W O R D S"; position: absolute; right: -6px; bottom: -14px; font-size: 44px; font-weight: 900; letter-spacing: .1em; color: rgba(255,255,255,.1); pointer-events: none; }
.wd-top > div { flex: 1; min-width: 0; position: relative; z-index: 1; } .wd-top small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; } .wd-top b { font-size: 16.5px; }
.wd-pill { position: relative; z-index: 1; padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.2); font-weight: 800; font-size: 14px; }
.ar .wd-top button { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.2); font-size: 18px; cursor: pointer; }
.wd-panel { margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); } .wd-panel > b { display: block; margin-bottom: 8px; }
.wd-board { display: grid; gap: 7px; justify-content: center; margin: 12px 0 2px; perspective: 800px; }
.wd-row { display: flex; gap: 7px; } .wd-row.shake { animation: wdShake .42s; } .wd-row.win .wd-t { animation: wdJump .6s calc(var(--i) * 90ms) both; }
.ar .wd-t { width: var(--t); height: var(--t); display: grid; place-items: center; padding: 0; border: 2px solid var(--line); border-radius: calc(var(--t) * .21); background: var(--card); color: var(--ink); font-weight: 900; font-size: calc(var(--t) * .5); line-height: 1; text-transform: uppercase; box-shadow: inset 0 -4px 0 rgba(0,0,0,.07); user-select: none; }
.ar button.wd-t { cursor: pointer; border-color: color-mix(in srgb, var(--g) 35%, var(--line)); } .ar button.wd-t.f { border-color: var(--mute); animation: wdPop .12s; }
.ar button.wd-t.sel { border-color: var(--g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 30%, transparent), inset 0 -4px 0 rgba(0,0,0,.07); position: relative; }
.ar button.wd-t.sel:not(.f)::after { content: ""; width: 3px; height: 46%; border-radius: 2px; background: var(--g); animation: wdBlink 1s steps(2) infinite; }
.wd-t.g { --tc: var(--g); } .wd-t.y { --tc: var(--y); } .wd-t.x { --tc: var(--x); }
.ar .wd-t.g, .ar .wd-t.y, .ar .wd-t.x { background: var(--tc); border-color: var(--tc); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.wd-row.flip .wd-t { animation: wdFlip .5s calc(var(--i) * 220ms) both; }
@keyframes wdFlip { 0% { transform: rotateX(0); background: var(--card); border-color: var(--mute); color: var(--ink); } 49% { transform: rotateX(90deg); background: var(--card); border-color: var(--mute); color: var(--ink); } 50% { transform: rotateX(90deg); background: var(--tc); border-color: var(--tc); color: #fff; } 100% { transform: rotateX(0); background: var(--tc); border-color: var(--tc); color: #fff; } }
@keyframes wdShake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes wdJump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } 70% { transform: translateY(3px); } }
@keyframes wdPop { 0% { transform: scale(.86); } 100% { transform: scale(1); } } @keyframes wdBlink { 0% { opacity: 1; } 100% { opacity: 0; } }
.wd-msg { min-height: 22px; margin: 4px 0 0; text-align: center; font-weight: 800; font-size: 14.5px; color: var(--no); }
.wd-hint { text-align: center; margin: 2px 0 0; } .ar .wd-hint button { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px dashed color-mix(in srgb, var(--y) 70%, var(--line)); background: color-mix(in srgb, var(--y) 12%, var(--card)); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.ar .wd-hint button.nudge { animation: arStar .7s 2; } .wd-hint p { margin: 0; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--y) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--y) 45%, var(--line)); font-size: 14.5px; color: var(--body); text-align: left; }
.wd .ar-kb { margin-top: 8px; gap: 7px; } .wd .ar-kb button { height: clamp(44px, 7.2vh, 54px); border-radius: 10px; font-size: 17px; box-shadow: 0 3px 0 rgba(0,0,0,.14); } .wd .ar-kb button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
.wd .ar-kb button.g { background: var(--g); } .wd .ar-kb button.y { background: var(--y); } .wd .ar-kb button.x { background: var(--x); opacity: .6; } .wd .ar-kb button.wide { font-size: 12.5px; background: color-mix(in srgb, var(--g) 22%, var(--card)); }
.wd-res { max-width: 420px; margin: 8px auto 0; } .wd-resw { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.wd-resw i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: #1faa59; color: #fff; font-style: normal; font-weight: 900; font-size: 24px; text-transform: uppercase; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); animation: wdJump .6s calc(var(--i) * 90ms) both; }
.wd-def { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: left; color: var(--body); font-size: 15px; } .wd-def b { color: var(--ink); text-transform: capitalize; } .wd-syn { margin: 0 0 10px; font-size: 13.5px; color: var(--mute); }
.wd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; text-align: center; } .wd-stats div { padding: 8px 2px; border-radius: 12px; background: var(--soft); } .wd-stats b { display: block; font-size: 22px; line-height: 1.1; } .wd-stats small { font-size: 10.5px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.wd-dist { display: grid; gap: 4px; margin: 0 0 10px; } .wd-dist div { display: flex; align-items: center; gap: 8px; } .wd-dist i { width: 14px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--mute); }
.wd-dist span { min-width: 26px; padding: 2px 8px; border-radius: 6px; background: var(--x, #5b6478); color: #fff; font-weight: 800; font-size: 12.5px; text-align: right; } .wd-dist .me span { background: #1faa59; }
.wd-next { margin: 0 0 6px; text-align: center; font-size: 14px; color: var(--body); } .wd-leg { margin: 8px 0 0; font-size: 13px; color: var(--body); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.wd-leg i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-style: normal; font-weight: 900; font-size: 13px; margin-right: 3px; } .wd-leg i.g { background: #1faa59; } .wd-leg i.y { background: #e2a307; } .wd-leg i.x { background: #5b6478; }
/* ═══ 17 Nov 2026 (evening): EVERY GAME ITS OWN LOOK ═══
   game.php puts two classes on the page: g-<game id> and grp-<group>. A faint wallpaper is made from the game's own emoji (--pat).
   Below: the look of each group, then the games that have a whole design of their own. */
.ar { position: relative; isolation: isolate; }
.ar::before { content: ""; position: fixed; inset: -25%; z-index: -1; background-image: var(--pat, none); background-size: 170px 170px; opacity: var(--pat-o, .075); transform: rotate(-9deg); pointer-events: none; }
/* (The look of each group was here until 17 Nov night. Now every game has its own look: assets/arcade/skins.css.)
   .ar::after is a strip of scenery along the bottom of the window (hills, a skyline, waves) for the games that set one. */
.ar::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: -1; pointer-events: none; }

/* ── ROCKET LAUNCH: a launch site at night ── */
.ar.g-hangman, html.dark .ar.g-hangman { --bg: #060a1e; --card: #111a3c; --ink: #eef1ff; --body: #c3c9ee; --mute: #8f97c4; --line: #27305e; --soft: #1a2450; background: radial-gradient(900px 420px at 50% -120px, #27337f, transparent), #060a1e; }
.hm-hud { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.hm-fleet i { font-style: normal; font-size: 17px; margin: 0 1px; opacity: .28; filter: grayscale(1); display: inline-block; } .hm-fleet i.ok { opacity: 1; filter: none; } .hm-fleet i.no { opacity: .55; filter: grayscale(1) brightness(.7); } .hm-fleet i.now { opacity: 1; filter: none; animation: hmBob 1s ease-in-out infinite alternate; }
.hm-sky { position: relative; height: clamp(190px, 33vh, 270px); border-radius: 20px; overflow: hidden; background: linear-gradient(#040714 0%, #111a4c 52%, #3b3f8f 84%, #a65f8f 100%); border: 1px solid #27305e; }
.hm-stars { position: absolute; inset: -100% 0 0 0; background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 80px, #fff, transparent), radial-gradient(2px 2px at 150px 20px, #fff7c2, transparent), radial-gradient(1px 1px at 60px 130px, #fff, transparent), radial-gradient(1.5px 1.5px at 180px 110px, #cfe3ff, transparent); background-size: 210px 160px; animation: hmTwinkle 3s ease-in-out infinite alternate; }
.hm-stars.s2 { background-size: 150px 190px; opacity: .55; animation-duration: 4.3s; }
.hm-moon { position: absolute; right: 9%; top: 12%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #e9e4c9 60%, #bdb89a); box-shadow: 0 0 30px rgba(255,255,220,.5); }
.hm-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(#2a2f55, #14183a); border-top: 3px solid #555d96; }
.hm-tower { position: absolute; left: calc(50% - 64px); bottom: 26px; width: 16px; height: 116px; background: repeating-linear-gradient(#7c84b8 0 3px, transparent 3px 14px), linear-gradient(90deg, #7c84b8 0 3px, transparent 3px 13px, #7c84b8 13px 16px); }
.hm-tower i { position: absolute; left: 16px; width: 24px; height: 4px; background: #7c84b8; transition: width .5s; } .hm-tower i:nth-child(1) { top: 24px; } .hm-tower i:nth-child(2) { top: 58px; } .hm-tower i:nth-child(3) { top: 92px; } .hm-sky.fire .hm-tower i { width: 0; }
.hm-ship { position: absolute; left: 50%; bottom: 22px; width: 62px; margin-left: -31px; z-index: 2; } .hm-ship svg { display: block; width: 100%; overflow: visible; }
.hm-fl { opacity: 0; transform-origin: 32px 90px; } .hm-sky.fire .hm-fl { opacity: 1; animation: hmFlame .11s infinite alternate; }
.hm-sky.fire .hm-ship { animation: hmShake .09s infinite; } .hm-sky.launch .hm-ship { animation: hmGo 2.4s cubic-bezier(.6, .02, .9, .45) forwards; }
.hm-smoke { position: absolute; left: 50%; bottom: 20px; z-index: 1; } .hm-smoke i { position: absolute; left: -14px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(226,232,255,.85); opacity: 0; }
.hm-sky.fire .hm-smoke i { animation: hmSmoke 1.5s ease-out infinite; } .hm-smoke i:nth-child(1) { --dx: -70px; } .hm-smoke i:nth-child(2) { --dx: 70px; animation-delay: .2s !important; } .hm-smoke i:nth-child(3) { --dx: -34px; animation-delay: .45s !important; } .hm-smoke i:nth-child(4) { --dx: 38px; animation-delay: .7s !important; }
.hm-sky.launch .hm-stars { animation: hmFly 2.4s ease-in forwards; }
.hm-cd { position: absolute; left: 0; right: 0; top: 12px; text-align: center; z-index: 3; pointer-events: none; }
.hm-cd b { display: inline-block; font-size: 46px; font-weight: 900; color: #fff; text-shadow: 0 0 22px #7dd3fc; animation: hmPop .38s ease-out; } .hm-cd b.go { font-size: 30px; letter-spacing: .08em; color: #fde047; text-shadow: 0 0 22px #fb923c; } .hm-cd b.no { font-size: 19px; letter-spacing: .08em; color: #fecaca; text-shadow: 0 0 18px #ef4444; }
.hm-fuel { position: absolute; left: 10px; bottom: 34px; z-index: 3; display: grid; gap: 3px; justify-items: center; } .hm-fuel small { font-size: 9px; font-weight: 900; letter-spacing: .14em; color: #aab3e6; }
.hm-fuel span { display: flex; flex-direction: column-reverse; gap: 3px; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.4); border: 1px solid #3a4480; } .hm-fuel i { width: 22px; height: 9px; border-radius: 3px; background: #1d2550; }
.hm-fuel i.on { background: linear-gradient(90deg, #22c55e, #a3e635); box-shadow: 0 0 8px #4ade80; } .hm-sky.low .hm-fuel i.on { background: linear-gradient(90deg, #ef4444, #fb923c); box-shadow: 0 0 8px #ef4444; animation: hmBlink .5s infinite alternate; }
.hm-sky.abort { box-shadow: inset 0 0 0 3px #ef4444; animation: hmAlarm .5s 5; } .hm-sky.abort .hm-ship { filter: grayscale(.7) brightness(.75); transform: rotate(5deg); transform-origin: 50% 100%; }
.hm-clue { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: #111a3c; border: 1px solid #27305e; border-left: 4px solid #38bdf8; font-size: 14.5px; color: #c3c9ee; } .hm-clue b { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 2px; }
.hm-word { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.hm-word i { width: min(9.4vw, 44px); height: min(11.6vw, 54px); display: grid; place-items: center; border-radius: 10px; background: #0d1433; border: 2px solid #2f3a78; border-bottom-width: 4px; font-style: normal; font-weight: 900; font-size: clamp(19px, 6vw, 28px); text-transform: uppercase; color: #fff; }
.hm-word i.on { border-color: #38bdf8; background: #10244f; box-shadow: 0 0 14px rgba(56,189,248,.45); animation: wdPop .16s; } .hm-word i.miss { border-color: #ef4444; color: #fecaca; background: #3a1220; }
.hm-msg { min-height: 22px; margin: 4px 0 0; text-align: center; font-weight: 800; font-size: 14.5px; } .hm-msg.ok { color: #86efac; } .hm-msg.no { color: #fca5a5; }
.g-hangman .ar-kb button { background: #1a2450; color: #eef1ff; box-shadow: 0 3px 0 #0a0f2a; border: 1px solid #2f3a78; } .g-hangman .ar-kb button.g { background: #16a34a; border-color: #16a34a; } .g-hangman .ar-kb button.x { background: #3b1b2b; color: #8f97c4; opacity: .6; }
@keyframes hmTwinkle { from { opacity: .55; } to { opacity: 1; } } @keyframes hmBob { to { transform: translateY(-3px); } } @keyframes hmFlame { from { transform: scaleY(.8); } to { transform: scaleY(1.25); } }
@keyframes hmShake { 0% { transform: translateX(-1.5px); } 100% { transform: translateX(1.5px); } } @keyframes hmGo { 0% { transform: translateY(0); } 14% { transform: translateY(-6px); } 100% { transform: translateY(-460px); } }
@keyframes hmSmoke { 0% { opacity: .9; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), -8px) scale(3.3); } } @keyframes hmFly { to { transform: translateY(46%); } }
@keyframes hmPop { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } @keyframes hmBlink { to { opacity: .35; } } @keyframes hmAlarm { 50% { box-shadow: inset 0 0 0 3px #ef4444, inset 0 0 60px rgba(239,68,68,.55); } }

/* ── WORD SEARCH: a page of a puzzle magazine with highlighter pens ── */
.ar.g-wordsearch { --paper: #fffdf4; --inkp: #2b2a33; } html.dark .ar.g-wordsearch { --paper: #1b1d33; --inkp: #f1f1fa; }
.ar-stage.ws { max-width: 540px; }
.ws-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px 18px 0 0; background: var(--c); color: #fff; } .ws-head > div { flex: 1; min-width: 0; } .ws-head small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; } .ws-head b { font-size: 18px; }
.ws-count, .ws-clock { padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.22); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; } .ws-count b { font-size: 16px; }
.ws-page { padding: 12px; background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 16px 30px -20px rgba(0,0,0,.5); }
.ws-grid { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); max-width: 480px; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: none; }
.ar .ws-grid button { position: relative; z-index: 2; aspect-ratio: 1; border: 0; background: none; padding: 0; font: 800 clamp(15px, 4.7vw, 23px)/1 "Courier New", ui-monospace, monospace; text-transform: uppercase; color: var(--inkp); cursor: pointer; }
.ws-ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; } .ws-ink line { stroke-width: .76; stroke-linecap: round; opacity: .58; } .ws-ink line.try { opacity: .32; } .ws-ink line.new { animation: wsDraw .45s ease-out; }
.ws-grid.no { animation: wdShake .35s; } .ws-grid.all .ws-ink line { animation: wsGlow .45s 3 alternate; }
@keyframes wsDraw { from { stroke-width: 0; opacity: 1; } } @keyframes wsGlow { to { opacity: 1; stroke-width: .9; } }
.ws-list { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 12px 0 0; }
.ws-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; } .ws-list i { font-style: normal; font-size: 17px; }
.ws-list span.done { background: color-mix(in srgb, var(--pen) 42%, var(--card)); border-color: var(--pen); text-decoration: line-through; text-decoration-thickness: 2px; }

/* ── ANAGRAM RUSH: a Scrabble table ── */
.ar.g-anagram, html.dark .ar.g-anagram { --bg: #0f3d2e; --card: #14503c; --ink: #f4fff9; --body: #cfe9dc; --mute: #9cc9b4; --line: #1f6a50; --soft: #1b5c45; background: radial-gradient(900px 500px at 50% -100px, #1f7a5a, transparent), repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), #0f3d2e; }
.ar-stage.an { --tw: min(10.6vw, 54px); }
.an-fuse { height: 10px; margin: 4px 0 14px; border-radius: 99px; background: rgba(0,0,0,.3); } .an-fuse b { display: none; }
.an-fuse i { position: relative; display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #fde047, #fb923c); transition: width .25s linear; } .an-fuse i::after { content: "🔥"; position: absolute; right: -9px; top: -10px; font-size: 17px; font-style: normal; } .an-fuse.low i { background: #ef4444; }
.an-table { text-align: center; }
.an-clue { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px dashed rgba(255,255,255,.28); color: #eafff3; font-size: 16px; line-height: 1.4; } .an-clue b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #fde68a; margin-bottom: 2px; }
.an-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; } .an-well { width: var(--tw); height: calc(var(--tw) * 1.1); border-radius: 9px; border: 2px dashed rgba(255,255,255,.35); background: rgba(0,0,0,.18); }
.ar .an-tile { position: relative; width: var(--tw); height: calc(var(--tw) * 1.1); border: 0; border-radius: 9px; padding: 0; background: linear-gradient(#fff8e1, #f3deaa); color: #3b2a10; font: 900 calc(var(--tw) * .54)/1 Georgia, "Times New Roman", serif; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 0 #b9975a, 0 7px 10px rgba(0,0,0,.3); }
.an-tile sub { position: absolute; right: 4px; bottom: 3px; font: 800 calc(var(--tw) * .2)/1 Inter, system-ui, sans-serif; } .an-tile.used { visibility: hidden; } .ar .an-tile:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9975a; }
.an-slots .an-tile { animation: wdPop .12s; } .ar .an-slots.ok .an-tile { background: linear-gradient(#bbf7d0, #4ade80); box-shadow: 0 4px 0 #15803d; animation: wdJump .4s; } .an-slots.no { animation: wdShake .4s; } .ar .an-slots.no .an-tile { background: linear-gradient(#fecaca, #f87171); box-shadow: 0 4px 0 #b91c1c; }
.an-rack { display: inline-block; max-width: 100%; padding: 10px 14px 0; border-radius: 12px 12px 6px 6px; background: linear-gradient(#a0703c, #7a4f24); box-shadow: inset 0 -10px 0 #5c3a18, 0 12px 18px -8px rgba(0,0,0,.5); }
.an-tiles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-bottom: 14px; } .an-tiles.no { animation: wdShake .3s; }
.an-tip { margin: 12px 0 8px; font-size: 12.5px; font-weight: 700; color: #9cc9b4; } @media (hover: none) { .an-tip { display: none; } }
.an-btns, .ld-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ar .an-btns button { min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(0,0,0,.2); color: #f4fff9; font-weight: 800; font-size: 14.5px; cursor: pointer; }

/* ── WORD LADDER: a wooden ladder against the sky ── */
.ar.g-ladder { background: linear-gradient(#7dd3fc 0, #bae6fd 46%, #ecfccb 100%); background-attachment: fixed; } html.dark .ar.g-ladder { background: linear-gradient(#0b1437, #1e2a5e 55%, #17352a); background-attachment: fixed; }
.ar-stage.ldr { max-width: 480px; }
.ld-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(0,0,0,.4); }
.ld-top > div { flex: 1; min-width: 0; } .ld-top small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); } .ld-top > div b { font-size: 17px; text-transform: uppercase; letter-spacing: .08em; }
.ld-top span { padding: 6px 10px; border-radius: 12px; background: var(--soft); font-size: 12px; font-weight: 700; color: var(--body); text-align: center; } .ld-top span b { display: block; font-size: 17px; color: var(--ink); line-height: 1.1; }
.ld-sky { position: relative; margin-top: 12px; overflow: hidden; padding-bottom: 14px; }
.ld-sky::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -8px; height: 26px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: #65a30d; } html.dark .ld-sky::after { background: #1f4d1a; }
.ld-cloud { position: absolute; width: 84px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.88); box-shadow: 22px -12px 0 4px rgba(255,255,255,.88), 50px -3px 0 0 rgba(255,255,255,.88); animation: ldCloud 30s linear infinite alternate; } .ld-cloud.c1 { top: 16px; left: 2%; } .ld-cloud.c2 { top: 150px; right: 8%; transform: scale(.7); animation-duration: 44s; animation-direction: alternate-reverse; } html.dark .ld-cloud { opacity: .1; }
@keyframes ldCloud { to { margin-left: 46px; } }
.ld-ladder { position: relative; z-index: 1; width: min(100%, 320px); margin: 0 auto; padding: 4px 0 6px; }
.ld-ladder::before, .ld-ladder::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; border-radius: 6px; background: linear-gradient(90deg, #8a5a2b, #c9935a 45%, #7a4a1e); box-shadow: 0 2px 6px rgba(0,0,0,.25); } .ld-ladder::before { left: 34px; } .ld-ladder::after { right: 4px; }
.ld-r { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 6px; height: 64px; padding: 2px 0 0 30px; }
.ld-r::before { content: ""; position: absolute; left: 40px; right: 10px; bottom: 5px; height: 10px; border-radius: 5px; background: linear-gradient(#d4a068, #8a5a2b); box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.ld-r em { position: absolute; left: 0; top: 10px; width: 30px; text-align: center; font-style: normal; font-weight: 900; font-size: 13px; color: var(--ink); opacity: .7; } .ld-r.now em, .ld-r.goal em { font-size: 24px; top: 4px; opacity: 1; } .ld-r.now em { animation: hmBob .7s ease-in-out infinite alternate; }
.ar .ld-t { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 10px; border: 2px solid #d8c9a8; background: #fffaf0; color: #2b2318; font-style: normal; font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; box-shadow: 0 3px 0 rgba(0,0,0,.16); }
.ar .ld-t.hit { background: #dcfce7; border-color: #22c55e; color: #14532d; } .ar .ld-t.ch { background: #fef3c7; border-color: #f59e0b; color: #78350f; } .ar .ld-t.ch.hit { background: linear-gradient(135deg, #fef3c7 50%, #dcfce7 50%); border-color: #22c55e; }
.ar button.ld-t { cursor: pointer; } .ar button.ld-t.sel { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 40%, transparent), 0 3px 0 rgba(0,0,0,.16); transform: translateY(-3px); }
.ld-r.now.shake { animation: wdShake .4s; } .ld-r.new .ld-t { animation: wdJump .45s; }
.ar .ld-r.goal .ld-t { background: #fde68a; border-color: #f59e0b; color: #78350f; } .ar .ld-r.goal.won .ld-t { background: #22c55e; border-color: #15803d; color: #fff; animation: wdJump .6s 2; } .ar .ld-r.start .ld-t { background: #e0e7ff; border-color: #6366f1; color: #312e81; }
.ld-r.gapr { height: 34px; align-items: center; } .ld-r.gapr::before { display: none; } .ld-r.gapr span { position: relative; z-index: 1; padding: 2px 10px; border-radius: 99px; background: var(--card); font-size: 11.5px; font-weight: 800; color: var(--mute); }
.ld-msg { min-height: 22px; margin: 8px 0 0; text-align: center; font-weight: 800; font-size: 14.5px; } .ld-msg.ok { color: #15803d; } .ld-msg.no { color: #b91c1c; } html.dark .ld-msg.ok { color: #86efac; } html.dark .ld-msg.no { color: #fca5a5; }
.ar .ld-btns button { min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 14.5px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.g-ladder .ar-kb button { background: var(--card); box-shadow: 0 3px 0 rgba(0,0,0,.16); }

/* ── BEE HIVE: honey and a real honeycomb ── */
.ar.g-beehive { --card: #fffdf3; --line: #f0dca0; --soft: #fdefb8; --bg: #fff8e1; background: radial-gradient(800px 400px at 50% -80px, #fde68a, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23d97706' stroke-opacity='.13' stroke-width='2'/%3E%3C/svg%3E"), #fff8e1; }
html.dark .ar.g-beehive { --card: #241d08; --line: #4a3b10; --soft: #3a2e0c; --ink: #fff6d6; --body: #e9d9a0; --mute: #b9a560; --bg: #171204; background: radial-gradient(800px 400px at 50% -80px, #5a4208, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23fbbf24' stroke-opacity='.1' stroke-width='2'/%3E%3C/svg%3E"), #171204; }
.ar-stage.bhv { max-width: 520px; }
.bh-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .bh-rank { flex: 1; min-width: 0; } .bh-rank b { font-size: 15.5px; }
.bh-jar { position: relative; height: 14px; margin-top: 5px; border-radius: 99px; background: color-mix(in srgb, #eab308 18%, var(--card)); border: 1.5px solid #e2b93b; } .bh-jar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706); box-shadow: inset 0 2px 0 rgba(255,255,255,.4); transition: width .5s; }
.bh-jar em { position: absolute; top: -4px; width: 3px; height: 19px; border-radius: 2px; background: #b45309; opacity: .5; }
.bh-pts { padding: 8px 14px; border-radius: 14px; background: linear-gradient(#fcd34d, #f59e0b); color: #3b2a00; font-weight: 900; font-size: 18px; box-shadow: 0 4px 0 #b45309; }
.bh-card { text-align: center; padding: 14px 10px 16px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 16px 30px -18px rgba(180,83,9,.55); }
.bh-word { min-height: 46px; display: flex; justify-content: center; align-items: center; font-size: clamp(24px, 7.5vw, 32px); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; } .bh-word span.m { color: #d97706; }
.bh-word u { width: 3px; height: 30px; margin-left: 3px; border-radius: 2px; background: #d97706; animation: wdBlink 1s steps(2) infinite; } .bh-word small { font-size: 14px; font-weight: 700; color: var(--mute); letter-spacing: 0; text-transform: none; }
.bh-msg { min-height: 22px; margin: 0 0 4px; font-weight: 800; font-size: 14.5px; } .bh-msg.ok { color: #15803d; } .bh-msg.no { color: #b91c1c; } html.dark .bh-msg.ok { color: #86efac; } html.dark .bh-msg.no { color: #fca5a5; }
.bh-comb { --w: min(23vw, 92px); --hh: calc(var(--w) * .866); position: relative; width: calc(var(--w) * 2.5 + 16px); height: calc(var(--hh) * 3 + 18px); margin: 8px auto 16px; } .bh-comb.no { animation: wdShake .35s; }
.ar .bh-c { position: absolute; left: calc(50% + var(--x) * (var(--w) + 7px) - var(--w) / 2); top: calc(50% + var(--y) * (var(--hh) + 7px) - var(--hh) / 2); width: var(--w); height: var(--hh); display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 4px 0 #c88a0a); transition: transform .1s; }
.bh-c i { position: absolute; inset: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(160deg, #fff3bf, #fcd34d 70%, #fbbf24); }
.bh-c b { position: relative; font-size: calc(var(--w) * .37); font-weight: 900; text-transform: uppercase; color: #3b2a00; }
.ar .bh-c.mid { filter: drop-shadow(0 4px 0 #7c2d12); } .bh-c.mid i { background: linear-gradient(160deg, #fb923c, #ea580c 70%, #c2410c); } .bh-c.mid b { color: #fff; } .ar .bh-c.tap, .ar .bh-c:active { transform: translateY(3px) scale(.96); }
.bh-bee { position: absolute; font-size: 30px; pointer-events: none; z-index: 3; animation: bhFly 1.5s ease-in-out forwards; }
@keyframes bhFly { 0% { left: -12%; top: 62%; opacity: 0; transform: rotate(-20deg); } 15% { opacity: 1; } 50% { left: 44%; top: 2%; transform: rotate(10deg); } 100% { left: 106%; top: 40%; opacity: 0; transform: rotate(25deg); } }
.bh-btns { display: flex; gap: 8px; justify-content: center; }
.ar .bh-btns button { min-height: 46px; padding: 0 18px; border-radius: 99px; border: 2px solid #e2b93b; background: var(--card); color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; } .ar .bh-btns button.go { padding: 0 28px; background: linear-gradient(#fbbf24, #f59e0b); border-color: #d97706; color: #3b2a00; box-shadow: 0 4px 0 #b45309; }
.bh-found { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); } .bh-found > b { display: block; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
#bh-f { display: flex; flex-wrap: wrap; gap: 6px; } #bh-f span { padding: 4px 11px; border-radius: 99px; background: var(--soft); font-weight: 700; font-size: 14px; } #bh-f span.all { background: linear-gradient(#fbbf24, #f59e0b); color: #3b2a00; } #bh-f small { color: var(--mute); }
/* ── after a right answer the "Next" button counts down and presses itself (ar-core.js: autoNext) ── */
.ar-next.auto { position: relative; overflow: hidden; } .ar-next.auto::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: rgba(255,255,255,.75); transform-origin: 0 50%; animation: arAuto var(--auto, 1500ms) linear forwards; }
@keyframes arAuto { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ── ERROR HUNTER (new, 17 Nov night): the sentence in parts, a row of ladybirds ── */
.eh-bugs { display: flex; justify-content: center; gap: 5px; margin: 0 0 10px; } .eh-bugs i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 14px; background: var(--card); border: 1.5px solid var(--line); filter: grayscale(1); opacity: .45; }
.eh-bugs i.ok { filter: none; opacity: 1; border-color: var(--ok); background: #dcfce7; animation: wdPop .2s; } .eh-bugs i.no { filter: none; opacity: 1; border-color: var(--no); background: #fee2e2; color: #b91c1c; font-weight: 900; font-size: 12px; } .eh-bugs i.now { opacity: 1; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.eh .eh-s { font-size: clamp(18px, 5vw, 22px); line-height: 2.25; } .ar .eh .eh-s button { border: 2px solid color-mix(in srgb, var(--c) 28%, var(--line)); background: var(--card); border-radius: 12px; padding: 4px 11px; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 22%, var(--line)); transition: transform .08s; }
.ar .eh .eh-s button:not([disabled]):active { transform: translateY(3px); box-shadow: none; }
.ar .eh .eh-s button.no { background: var(--soft); border-color: var(--line); box-shadow: none; color: var(--mute); text-decoration: none; opacity: .6; }
.ar .eh .eh-s button.ok { background: #dcfce7; border-color: var(--ok); color: #14532d; box-shadow: none; } .ar .eh .eh-s button.show { background: #fee2e2; border-color: var(--no); color: #7f1d1d; box-shadow: none; text-decoration: line-through; animation: wdShake .4s; }
.ar-why mark { background: color-mix(in srgb, var(--ok) 28%, transparent); color: inherit; border-radius: 5px; padding: 0 3px; }
/* ═══ 17 Nov 2026 (night): EVERY GAME IN THE MIDDLE OF THE SCREEN ═══
   .ar is a column as tall as the window; the game (main.ar-stage) sits in the middle of the free space. When a game is taller
   than the window, ar-core.js (fit) makes it a little smaller so nothing is lost below. */
.ar { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ar-top { flex: none; width: 100%; }
.ar-stage { width: 100%; margin: auto; padding: 12px 12px 14px; }
.ar-stage.intro, .ar-stage.end { margin-top: 0; padding-bottom: 40px; }
.ar-stage.full { margin: 0 auto; }
/* ── Word Ladder: the old way of playing (type the whole word), top → bottom ── */
.ld-ladder { padding: 6px 0; }
.ld-r.in { height: 66px; align-items: center; gap: 8px; padding-top: 0; } .ld-r.in::before { display: none; } .ld-r.in.shake { animation: wdShake .4s; }
.ar .ld-i { position: relative; z-index: 1; width: 176px; height: 50px; border-radius: 12px; border: 2.5px solid var(--c); background: #fff; color: #2b2318; font: 900 26px/1 Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .32em; text-align: center; padding: 0 0 0 .32em; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.ar .ld-i::placeholder { color: #b9b2a3; letter-spacing: .1em; font-weight: 700; font-size: 17px; text-transform: none; } .ld-r.in .ar-btn { position: relative; z-index: 1; min-height: 50px; padding: 0 16px; }
.ld-r.goal em { font-size: 22px; top: 6px; opacity: 1; } .ld-r.start em { font-size: 15px; }
/* ── Mini Crossword: puzzle + the clue you are in + keyboard together; all clues on the right (wide) or below (phone) ── */
.cw-wrap { display: grid; gap: 14px; } .cw-main { min-width: 0; }
.cw-now { margin: 8px auto; max-width: 520px; min-height: 44px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 2px solid var(--c); font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: center; display: grid; place-items: center; } .cw-now b { color: var(--c); margin-right: 4px; }
.cw .cw-clues { margin: 0; align-content: start; } .cw .ar-row { margin-top: 8px; }
@media (min-width: 900px) { .cw-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; } .cw .cw-clues { grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; } }
@media (max-width: 899px) { .ar-stage.cw { max-width: 560px; } .cw .cw-clues { padding-top: 10px; border-top: 2px dashed var(--line); } }
/* ── a "type or choose" box (AR.combo): Guess the Country ── */
.ar-combo { position: relative; flex: 1 1 220px; max-width: 320px; } .ar-combo .ar-in { padding-right: 52px; text-align: left; }
.ar .ar-combo-b { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 42px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 18px; cursor: pointer; }
.ar-combo-l { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; text-align: left; background: var(--card); border: 2px solid var(--c); border-radius: 14px; box-shadow: 0 18px 34px -12px rgba(0,0,0,.45); }
.ar-combo-l.up { top: auto; bottom: calc(100% + 4px); }
.ar .ar-combo-l button { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-weight: 700; font-size: 15.5px; color: var(--ink); cursor: pointer; }
.ar .ar-combo-l button:hover, .ar .ar-combo-l button.hi { background: var(--c); color: #fff; } .ar-combo-l p { margin: 0; padding: 10px 12px; color: var(--mute); font-size: 14px; }
/* ═══ 18 Nov 2026: pictures, motion and the new parts of the Knowledge games ═══ */
/* every game: the card and the answers come in softly; a picture for the question floats a little */
@keyframes arCardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } } @keyframes arOptIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes arBob { 50% { transform: translateY(-5px) rotate(-3deg); } } @keyframes arPop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } 70% { transform: scale(1.15); } }
.ar-card { animation: arCardIn .35s backwards; } .ar-opt { animation: arOptIn .28s backwards; } .ar-opt:nth-child(2) { animation-delay: .05s; } .ar-opt:nth-child(3) { animation-delay: .1s; } .ar-opt:nth-child(4) { animation-delay: .15s; }
.ar-pic .qp { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--soft); font-size: 52px; line-height: 1; animation: arBob 3.2s ease-in-out infinite; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.tl-ic { font-style: normal; font-size: 20px; margin-right: 9px; vertical-align: -2px; }
.wa-face { width: 92px; height: 92px; margin: 2px auto 10px; display: grid; place-items: center; border-radius: 50%; border: 3px dashed var(--mute); background: var(--soft); } .wa-face span { font-size: 46px; font-weight: 900; color: var(--mute); line-height: 1; } .wa-face.on { border-style: solid; border-color: var(--c); } .wa-face.on span { animation: arPop .5s; }
.cr-f { height: 20px; width: auto; margin-right: 8px; border-radius: 3px; vertical-align: -4px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.mt button { display: flex; align-items: center; text-align: left; } .mt-f { flex: none; width: auto; max-width: 40px; height: 20px; margin-right: 9px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.mt-s { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 5px; margin-right: 9px; border-radius: 99px; background: radial-gradient(circle at 35% 30%, #fff3b8, #e6b422 62%, #b8860b); color: #4a3200; font-style: normal; font-weight: 900; font-size: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 2px 0 #8a6508; }
.mt-g { flex: none; margin-right: 9px; padding: 3px 9px; border-radius: 12px 12px 12px 2px; background: var(--c); color: #fff; font-style: normal; font-weight: 700; font-size: 12px; white-space: nowrap; }
/* Flag Painter: an easel, a canvas with the real shape of the flag, a wooden palette */
.fp-easel { position: relative; width: min(330px, 86%); margin: 12px auto 26px; padding: 0 0 12px; } .fp-easel .fp { width: 100%; margin: 0; }
.fp-easel::before { content: ""; position: absolute; left: 50%; top: -12px; bottom: -22px; width: 14px; margin-left: -7px; background: linear-gradient(90deg, #8a5a2b, #b9824a 45%, #7a4d22); border-radius: 3px; z-index: 0; }
.fp-easel::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: 0; height: 14px; border-radius: 3px; background: linear-gradient(#c08a52, #8a5a2b); box-shadow: 0 4px 0 #6b431d, 0 10px 14px -6px rgba(0,0,0,.5); }
.fp { position: relative; z-index: 1; border: 0; border-radius: 2px; box-shadow: 0 0 0 5px #f6f0e2, 0 0 0 6px #cdbf9f, 0 14px 22px -10px rgba(0,0,0,.55); background: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px), #fbf8ef; }
.fp button { flex: 1 1 0; min-width: 0; min-height: 0; background-image: linear-gradient(rgba(255,255,255,.14), rgba(0,0,0,.06)); } .fp-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; animation: arFadeIn .9s both; pointer-events: none; } @keyframes arFadeIn { from { opacity: 0; } }
.fp-note { margin: -14px 0 12px; font-size: 13px; color: var(--mute); }
.fp-pal { width: fit-content; max-width: 100%; margin: 0 auto 12px; padding: 12px 22px 12px 16px; gap: 8px; border-radius: 58% 42% 52% 48% / 60% 55% 45% 40%; background: radial-gradient(circle at 88% 50%, transparent 0 9px, #b9824a 10px), linear-gradient(135deg, #d9a66a, #a87038); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 8px 14px -8px rgba(0,0,0,.5); }
.fp-pal button { width: 38px; height: 38px; border: 0; border-radius: 50% 46% 52% 48%; box-shadow: inset 0 3px 3px rgba(255,255,255,.55), inset 0 -4px 4px rgba(0,0,0,.25), 0 1px 0 rgba(0,0,0,.2); } .fp-pal button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink), inset 0 3px 3px rgba(255,255,255,.55); transform: scale(1.08); }
/* Maths Sprint: a calculator with real keys */
.calc { width: min(330px, 100%); margin: 0 auto; padding: 14px 14px 12px; border-radius: 22px; background: linear-gradient(160deg, #474d5a, #2b2f38 55%, #23262d); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -6px 0 rgba(0,0,0,.35), 0 26px 34px -16px rgba(0,0,0,.65); }
.calc-top { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 9px; } .calc-top b { color: #c9ced8; font-size: 11px; letter-spacing: .18em; } .calc-top span { width: 74px; height: 16px; border-radius: 3px; background: repeating-linear-gradient(90deg, #3a2412 0 16px, #1c1008 16px 18px); box-shadow: inset 0 0 0 1px #0e0703; }
.calc-lcd { padding: 8px 12px 6px; border-radius: 9px; background: linear-gradient(#c3d0aa, #b3c198); box-shadow: inset 0 4px 8px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.2); text-align: right; }
.calc .ms-q { min-height: 0; display: block; font: 700 clamp(15px, 4.6vw, 19px)/1.25 ui-monospace, "SF Mono", "Roboto Mono", "Droid Sans Mono", monospace; color: #27331a; text-align: left; letter-spacing: .02em; }
.ar .calc-in { width: 100%; border: 0; background: none; padding: 0; text-align: right; font: 800 38px/1.1 ui-monospace, "SF Mono", "Roboto Mono", "Droid Sans Mono", monospace; color: #1c2610; letter-spacing: .04em; outline: 0; caret-color: #1c2610; } .calc-in::placeholder { color: rgba(28,38,16,.3); }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ar .calc-keys button { height: 50px; border: 0; border-radius: 11px; font: 800 21px/1 Inter, system-ui, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(#6b7280, #4b5563); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 0 #23272e; } .ar .calc-keys button:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 #23272e; }
.ar .calc-keys .fn { background: linear-gradient(#3b414d, #2a2e37); font-size: 17px; } .ar .calc-keys .zero { grid-column: span 3; } .ar .calc-keys .ok { grid-row: span 2; height: auto; background: linear-gradient(#fb923c, #ea580c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 0 #9a3412; font-size: 18px; }
.calc .ar-msg { color: #e5e7eb; font-size: 13.5px; min-height: 20px; margin: 9px 0 0; } .calc .ar-msg.ok { color: #86efac; } .calc .ar-msg.no { color: #fca5a5; }
/* Body Builder: the heart beats, the lungs breathe */
.bd { height: min(46vh, 400px); width: auto; max-width: 100%; } .bd-body { fill: #f3d9c6; stroke: #c9a58c; stroke-width: 2; } .bd [data-o] { transition: filter .2s; } .bd [data-o]:hover { filter: brightness(1.12) drop-shadow(0 0 4px rgba(255,255,255,.8)); }
.bd-heart { transform-box: fill-box; transform-origin: center; animation: bdBeat 1.1s ease-in-out infinite; } .bd-lungs { transform-box: fill-box; transform-origin: 50% 20%; animation: bdBreathe 4s ease-in-out infinite; }
@keyframes bdBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } } @keyframes bdBreathe { 50% { transform: scale(1.05, 1.04); } }

/* ═══════ REAL PHOTOS (18 Nov 2026) ═══════
   A question's picture can now be a photo: <span class="qp ph"><img></span> (ar-core.js: AR.picHTML). Files: /images/game-photos/*.webp, 300 × 300.
   The frame is a rounded square; each game's own ring (skins.css, .ar-pic .qp) stays around it. Who Am I? shows a photo at the end: .wa-face.ph. */
.ar .ar-pic .qp.ph { width: 128px; height: 128px; padding: 0; border-radius: 24px; overflow: hidden; background: var(--soft); animation: arPhotoIn .45s cubic-bezier(.2, .9, .3, 1.2) both, arFloat 5s ease-in-out .5s infinite; }
.ar-pic .qp.ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit; }
@keyframes arPhotoIn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } } @keyframes arFloat { 50% { transform: translateY(-4px); } }
@media (min-width: 900px) and (min-height: 700px) { .ar .ar-pic .qp.ph { width: 150px; height: 150px; } }
@media (max-height: 620px) { .ar .ar-pic .qp.ph { width: 104px; height: 104px; border-radius: 20px; } }
.ar .wa-face.ph { width: 132px; height: 132px; padding: 0; border-radius: 24px; overflow: hidden; filter: none; } .wa-face.ph img { display: block; width: 100%; height: 100%; object-fit: cover; animation: arPhotoIn .5s cubic-bezier(.2, .9, .3, 1.2) both; }
@media (prefers-reduced-motion: reduce) { .ar .ar-pic .qp.ph, .wa-face.ph img { animation: none; } }

/* ═══════ LIVE RESULTS on the result screen (18 Nov 2026) — ar-core.js: AR.liveHTML ═══════ */
.ar-live { max-width: 440px; margin: 14px auto 4px; text-align: left; } .ar-live:empty { display: none; }
.ar-live-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--mute); }
.ar-live-h i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: arLive 1.6s ease-out infinite; }
@keyframes arLive { to { box-shadow: 0 0 0 9px rgba(239,68,68,0); } }
.ar-live-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .ar-live-nums span { padding: 6px 10px; border-radius: 999px; background: var(--soft); font-size: 13.5px; color: var(--body); } .ar-live-nums b { color: var(--ink); }
.ar-live-top { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.ar-live-top li { display: grid; grid-template-columns: 26px 1fr auto 44px; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14.5px; color: var(--body); } .ar-live-top li + li { border-top: 1px solid var(--line); }
.ar-live-top li i { font-style: normal; font-weight: 800; color: var(--mute); } .ar-live-top li:first-child i { color: var(--gold); } .ar-live-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-live-top li b { color: var(--ink); } .ar-live-top li em { font-style: normal; font-size: 12.5px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.ar-live-top li.me { background: color-mix(in srgb, var(--c) 14%, var(--card)); font-weight: 700; }
.ar-live-rec { margin: 9px 2px 4px; font-size: 13.5px; color: var(--body); } .ar-live-all { display: inline-block; margin: 2px; font-size: 13.5px; font-weight: 700; color: var(--c); }
.ar-live-guest { padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14.5px; color: var(--body); } .ar-live-guest a { color: var(--c); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ar-live-h i { animation: none; } }
/* options that are pictures (Flag Quiz: "Which is the flag of …?") */
.ar-opt img.fo { display: block; height: 62px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.fq .ar-opts { grid-template-columns: 1fr 1fr; } .fq .ar-opt { min-height: 84px; }

/* 18 Nov 2026: on a phone a long game name was cut ("World Rec…"). Now it may use two short lines in the top bar. */
@media (max-width: 480px) { .ar-top b { white-space: normal; font-size: 13px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
