:root {
  --bg: #0a0612; --text: #e9e3ff; --muted: #a79bd0; --line: rgba(167, 139, 250, 0.28);
  --brand-400: #a78bfa; --brand-500: #8b5cf6; --gold: #ffd166; --ok: #7be0a1; --bad: #ff8fa3;
  --panel: rgba(20, 12, 40, 0.74); --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --right-w: 15.5rem;
  --vol: 0px; /* room the invitation to volunteer linguists takes above the hint; only the Ukrainian page has it */
  --pad-top: max(14px, env(safe-area-inset-top, 0px)); --pad-side: max(14px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: radial-gradient(ellipse at 50% 38%, #2a1659 0%, #140a2c 45%, var(--bg) 100%);
  color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
#stars, #stage { position: fixed; inset: 0; width: 100%; height: 100%; }
#stars { pointer-events: none; }
#stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#stage canvas:active { cursor: grabbing; }

.top { position: fixed; inset: var(--pad-top) var(--pad-side) auto; display: grid; justify-items: center; gap: 10px; pointer-events: none; }
.mark { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.mark .labs { color: var(--brand-400); }
.mark .product { background: linear-gradient(90deg, #8b5cf6, #7c6af5 55%, #6366f1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mark .dot { display: inline-block; width: 0.28em; height: 0.28em; margin-inline: 0.25em 0.14em; border-radius: 50%; background: #fff; vertical-align: 0.2em; }
.tm { margin-inline-start: 0.1em; color: var(--muted); font-size: 0.45em; font-weight: 400; vertical-align: super; -webkit-text-fill-color: currentcolor; }

.notice { margin: 0; max-width: min(46rem, 100%); padding: 10px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); text-align: center; backdrop-filter: blur(6px); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.bad { border-color: var(--bad); color: var(--bad); }

.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.side { position: fixed; inset-inline-start: var(--pad-side); top: 104px; bottom: max(78px, calc(var(--legal-h, 0px) + 12px)); width: min(18rem, 31vw); display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.clues { display: flex; flex-direction: column; position: relative; flex: 1 1 0; min-height: 7rem; width: 100%; overflow: auto; padding: 18px 8px; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.5) transparent; -webkit-mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.clue[hidden] { display: none; }
.clue { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.clue:hover { background: rgba(139, 92, 246, 0.2); }
.clue.current { order: -1; background: rgba(255, 209, 102, 0.16); outline: 1px solid var(--gold); }
.clue.solved { color: var(--ok); }
.clue.revealed { color: #ffa94d; }
.clue b { margin-inline-end: 0.4em; color: var(--brand-400); }
.clue small { color: var(--muted); }
.clue { border-inline-start: 4px solid var(--tint, transparent); }
.legend { box-sizing: border-box; width: var(--right-w); scrollbar-width: thin; scrollbar-color: var(--brand-400) transparent; position: fixed; inset-inline-end: var(--pad-side); bottom: 84px; max-height: min(40vh, calc(100vh - 500px - var(--vol))); overflow: auto; margin: 0; padding: 8px 12px; list-style: none; display: grid; gap: 4px; font-size: 0.78rem; }
.legend li { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.legend li:hover span { text-decoration: underline; }
.legend li[hidden] { display: none; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--tint); }

.zoom { position: fixed; inset-inline-end: var(--pad-side); top: calc(226px + var(--vol)); display: grid; grid-template-columns: repeat(2, 48px); gap: 8px; }
.zoom button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 2px solid var(--brand-400); border-radius: 50%; background: var(--panel); box-shadow: var(--shadow); color: var(--text); font: 600 22px/1 inherit; cursor: pointer; }
.zoom button:hover { border-color: var(--brand-400); }
.hint { position: fixed; inset-inline-end: var(--pad-side); top: calc(104px + var(--vol)); width: var(--right-w); box-sizing: border-box; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); backdrop-filter: blur(6px); text-align: center; color: var(--text); font-size: 0.75rem; font-weight: 700; line-height: 1.35; text-wrap: balance; pointer-events: none; }
.back { position: fixed; inset-block-end: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 30px); inset-inline-end: var(--pad-side); z-index: 5; padding: 8px 16px; border: 2px solid var(--brand-400); border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); color: var(--text); font: 600 0.82rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.beta { margin-inline-start: 0.6em; padding: 0.1em 0.5em; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 0.55em; font-weight: 700; letter-spacing: 0.1em; vertical-align: 0.25em; -webkit-text-fill-color: currentcolor; }
.back:hover { background: rgba(139, 92, 246, 0.45); }

.legal { position: fixed; inset: auto 0 0; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; color: var(--muted); font-size: 0.72rem; line-height: 1.35; pointer-events: none; }
.legal p { margin: 0; background: rgba(10, 6, 24, 0.78); } /* the notes stay readable over the bright cells; the paragraphs, not the whole strip, so no column is dimmed */
.legal p:first-child { padding-top: 4px; } .legal p:last-child { padding-bottom: 4px; }
@media (min-width: 761px) { .back { width: var(--right-w); } .legal { padding-inline: calc(var(--right-w) + 2 * var(--pad-side)); } } /* both sides leave the leave button's column free, so no link runs under it */

.kb { position: fixed; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }


.side > .panel { flex: none; }
.side > .clues { flex: 1 1 0; }
.board { padding: 10px 14px 8px; }
.board h2 { margin: 0 0 6px; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--brand-400); display: flex; justify-content: space-between; align-items: baseline; }
.board h2 small { color: var(--muted); font-weight: 400; letter-spacing: 0; font-size: 0.68rem; }
.board ol { margin: 0; padding: 0; list-style: none; font-size: 0.78rem; line-height: 1.4; counter-reset: row; }
.board li { display: flex; gap: 8px; counter-increment: row; }
.board li::before { content: counter(row); width: 1.3em; color: var(--muted); text-align: end; }
.board li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li b { color: var(--gold); font-variant-numeric: tabular-nums; }
.board li.me span { color: var(--gold); }
.board .vacant span { color: var(--muted); }
.progress { padding: 10px 14px; }
.count { margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); }
.count b { color: var(--text); font-variant-numeric: tabular-nums; }
.meter { display: flex; align-items: center; gap: 10px; }
.track { flex: 1; height: 10px; border-radius: 999px; background: rgba(139, 92, 246, 0.2); overflow: hidden; }
.fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8b5cf6, #7c6af5 55%, #6366f1); transition: width 0.4s ease; }
.percent { min-width: 3.2em; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.saves { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.78rem; }
.saves .who { flex: 1 1 4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--gold); font: inherit; cursor: pointer; }
.saves .auto { display: flex; align-items: center; gap: 4px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.saves input { accent-color: var(--brand-500); }
.small { padding: 4px 12px; border: 1px solid var(--brand-400); border-radius: 8px; background: rgba(139, 92, 246, 0.25); color: var(--text); font: 600 0.78rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.small:hover { background: rgba(139, 92, 246, 0.45); }
.legend li.in-view span { color: var(--text); font-weight: 600; }
.legend li span { color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 18, 0.7); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
/* a window that is lower than the card (a phone held sideways, the keyboard up): the card is not cut off at the top and the bottom, the window scrolls and the card is centred when it fits */
.modal:not(.sheet):not([hidden]) { display: flex; overflow-y: auto; overscroll-behavior: contain; }
.modal:not(.sheet) > .card { margin: auto; }
.card { width: min(24rem, 100%); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); /* the column may not grow past the card, however large the browser makes the letters */ gap: 12px; background: rgba(20, 12, 40, 0.94); }
.card h2 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.card input, .card select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.card input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.3); color: var(--text); font: 600 1rem/1.2 Inter, system-ui, sans-serif; }
.card .err { color: var(--bad); }
.card .err[hidden] { display: none; }
.card .field { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted, #b9a9e8); letter-spacing: 0.04em; text-transform: uppercase; }
.go { padding: 10px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #8b5cf6, #6366f1); color: #fff; font: 700 1rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.later { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--muted); font: 600 0.9rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.later:hover { color: var(--text); border-color: var(--brand-400); }

.legal .linkish { pointer-events: auto; padding: 0; border: 0; background: none; color: var(--brand-400); font: inherit; text-decoration: underline; cursor: pointer; }
.about { max-width: min(36rem, 100%); max-height: 86vh; overflow: auto; }
.about .plate { padding: 10px 12px; border: 1px solid var(--brand-400); border-radius: 8px; background: rgba(255,255,255,0.05); }
.about .note { margin-bottom: 4px; font-size: 0.8rem; color: var(--muted); }
.about pre { margin: 0 0 14px; max-height: 28vh; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 0.7rem/1.4 ui-monospace, monospace; white-space: pre-wrap; color: var(--muted); }

/* ---- the phone layout: a bar on top, the ball in the middle, one clue at the bottom; everything else is in the menu */
.menu-btn, .sheet-handle, .progress-line, .menu-h, .menu-head { display: none; }
.compact { --bar: calc(var(--pad-top) + 46px); --sheet: 8.6rem; --osk: 9.6rem; }
.compact #stage { inset: var(--bar) 0 calc(var(--sheet) + var(--osk)) 0; width: auto; height: auto; }
.compact .top { inset: var(--pad-top) 56px auto 56px; gap: 0; }
.compact .mark { font-size: 0.95rem; line-height: 40px; }
.compact .back, .compact .menu-btn { position: fixed; inset-block: var(--pad-top) auto; z-index: 6; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--brand-400); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 1.3rem; box-shadow: none; }
.compact .back { inset-inline: var(--pad-side) auto; }
.compact .menu-btn { inset-inline: auto var(--pad-side); cursor: pointer; }
.compact .back .long { display: none; }
.compact .progress-line { display: block; position: fixed; z-index: 5; inset: calc(var(--pad-top) + 44px) auto auto 0; height: 3px; width: var(--progress, 0%); background: linear-gradient(90deg, #8b5cf6, #6366f1); pointer-events: none; }
.compact .notice { position: absolute; inset: calc(100% + 8px) auto auto 50%; transform: translateX(-50%); width: calc(100vw - 2 * var(--pad-side)); max-width: 30rem; padding: 6px 12px; font-size: 0.78rem; line-height: 1.3; transition: opacity 0.6s; }
.compact .notice:empty { display: none; }
.compact .notice.faded { opacity: 0; }
.compact .side { inset: auto 0 var(--osk) 0; width: auto; padding: 0 var(--pad-side) 4px; gap: 4px; z-index: 4; }
.compact .sheet-handle { display: block; align-self: center; padding: 4px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 600 0.78rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.compact .sheet-handle::after { content: ' ▲'; }
.compact .side.open .sheet-handle::after { content: ' ▼'; }
.compact .clues { flex: none; min-height: 0; max-height: 5.6rem; padding: 6px; overflow: hidden; }
.compact .side.open .clues { max-height: 52vh; overflow: auto; }
.compact .side:not(.open) .clue { display: none; }
.compact .side:not(.open) .clue.current, .compact .side:not(.open) .clue.lead { display: block; }
.compact .clue { padding: 6px 8px; font-size: 1.02rem; line-height: 1.35; }
.compact .zoom { top: auto; inset-block-end: calc(var(--sheet) + var(--osk) + 10px); inset-inline-end: 8px; grid-template-columns: 1fr; gap: 6px; z-index: 3; }
.compact .zoom button { width: 42px; height: 42px; border-width: 1px; background: rgba(20, 12, 40, 0.6); box-shadow: none; }
.compact .zoom svg { width: 22px; height: 22px; }
.compact .back:hover, .compact .menu-btn:hover { background: var(--panel); }
.compact .sheet { padding: 0; place-items: stretch; background: rgba(10, 6, 18, 0.9); }
.compact .menu { width: 100%; height: 100%; max-height: none; overflow: auto; border-radius: 0; padding: max(14px, env(safe-area-inset-top, 0px)) var(--pad-side) max(18px, env(safe-area-inset-bottom, 0px)); gap: 14px; align-content: start; }
.compact .menu-head { display: flex; justify-content: space-between; align-items: center; }
.compact .menu-h { display: block; margin: 4px 0 -6px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-400); }
.menu .progress, .menu .board { padding: 12px 14px; }
.menu .hint, .menu .legend, .menu .legal { position: static; inset: auto; width: auto; max-height: none; pointer-events: auto; }
.menu .hint { background: none; border: 0; padding: 0; text-align: start; font-weight: 600; font-size: 0.85rem; color: var(--muted); backdrop-filter: none; }
.menu .legend { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2px 14px; padding: 6px 4px; border: 0; background: none; box-shadow: none; backdrop-filter: none; font-size: 0.95rem; }
.menu .legend li { padding: 8px 4px; }
.menu .legal p { background: none; padding: 0; }
.menu .legal { padding: 0; text-align: start; font-size: 0.78rem; }
.compact .small { padding: 8px 16px; }

/* a phone held sideways: the window is low, so the sheet is shorter and the buttons sit in two columns */
@media (max-height: 520px) {
  .modal { padding: 8px; }
  .card { padding: 14px 18px; gap: 8px; }
  .card h2 { font-size: 1.05rem; }
  .card p { font-size: 0.8rem; }
  .card input { padding: 7px 10px; }
  .compact { --sheet: 5.7rem; --osk: 6.9rem; }
  .compact .osk-key { min-height: 30px; font-size: 0.95rem; }
  .compact .clues { max-height: 3.4rem; }
  .compact .clue { font-size: 0.95rem; }
  .compact .side.open .clues { max-height: 62vh; }
  .compact .zoom { grid-template-columns: repeat(2, 42px); inset-block-end: calc(var(--sheet) + var(--osk) + 6px); }
}

/* the phone's own letter keys (the system keyboard stays hidden) */
.osk { display: none; }
.compact .osk { display: grid; gap: 5px; position: fixed; inset: auto 0 0 0; z-index: 5; padding: 6px var(--pad-side) max(6px, env(safe-area-inset-bottom, 0px)); background: rgba(10, 6, 18, 0.96); border-top: 1px solid var(--line); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.compact .osk[hidden] { display: none; }
.osk-row { display: flex; justify-content: center; gap: 5px; }
.osk-key { flex: 1 1 0; min-width: 0; max-width: 46px; min-height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: 700 1.05rem/1 inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.osk-key.wide { flex: 1.7 1 0; max-width: 74px; font-size: 0.78rem; }
.osk-key:active { background: var(--brand-400); color: #120a22; }

.pw { position: relative; display: flex; }
.pw input { flex: 1; padding-right: 44px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted, #b9a9e8); cursor: pointer; }
.eye:hover, .eye[aria-pressed="true"] { color: var(--text); }
.eye:focus-visible { outline: 2px solid var(--brand-400); }
#eyeSlash[hidden] { display: none; }

.human { margin-top: 10px; min-height: 0; }

.repeat input { width: 100%; box-sizing: border-box; }

/* ---- the language buttons EN | UK in the top right corner (on a phone they stand at the top of the menu) */
.lang-switch { position: fixed; z-index: 6; inset-block-start: var(--pad-top); inset-inline-end: var(--pad-side); display: flex; overflow: hidden; border: 2px solid var(--brand-400); border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.lang-switch button { min-width: 46px; padding: 7px 13px; border: 0; background: none; color: var(--muted); font: 700 0.82rem/1.2 Inter, system-ui, sans-serif; letter-spacing: 0.06em; cursor: pointer; }
.lang-switch button:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.lang-switch button[aria-current="true"] { background: linear-gradient(90deg, #8b5cf6, #6366f1); color: #fff; cursor: default; }
.lang-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.compact .lang-switch { position: static; display: inline-flex; margin-bottom: 4px; }

/* ---- the black hole between the two spheres (src/portal): the picture is a canvas over the page; a page opened through the hole starts hidden and is shown by the same effect */
#portal-pixels { z-index: 1001; }
#portal, #portal-pixels { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; cursor: progress; touch-action: none; }
.portal-in :is(.top .mark, #notice, .side .panel, .legend, .back, .hint, .zoom button, .lang-switch, .legal, .menu-btn, .osk, .modal) { visibility: hidden; animation: portal-failsafe 0s 8s forwards; }
.portal-in #stage { opacity: 0; animation: portal-failsafe-stage 0s 8s forwards; }
.portal-landing :is(.top .mark, #notice, .side .panel, .legend, .back, .hint, .zoom button, .lang-switch, .legal, .menu-btn, .osk) { animation: portal-fade 0.3s both; }
@keyframes portal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes portal-failsafe { to { visibility: visible; } }            /* if the script never opens the hole, the page shows itself after a few seconds */
@keyframes portal-failsafe-stage { to { opacity: 1; } }

/* a page opened through the hole shows a plain hole at once, before the script has loaded (the canvas takes over when it runs) */
html.portal-in:not(.portal-ready)::before { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; animation: portal-failsafe-hole 0s 8s forwards;
  background: radial-gradient(ellipse 52vmin 2.4vmin at 50% 50%, rgba(255, 243, 228, 0.95), rgba(255, 243, 228, 0)),
              radial-gradient(circle at 50% 50%, #000 0 17vmin, rgba(255, 243, 228, 0.95) 17vmin 17.4vmin, rgba(255, 243, 228, 0.12) 18vmin, rgba(255, 243, 228, 0) 24vmin); }
@keyframes portal-failsafe-hole { to { opacity: 0; } }

/* a phone held sideways, as two parts: the ball takes the left half of the window, from top to bottom, and the clue and the letter keys stand in a column on the right */
@media (max-height: 520px) and (orientation: landscape) {
  .compact { --col: min(50vw, 30rem); }
  .compact #stage { inset: var(--bar) var(--col) 0 0; }
  .compact .top { inset: var(--pad-top) calc(var(--col) + 56px) auto 56px; }
  .compact .notice { width: calc(100vw - var(--col) - 2 * var(--pad-side)); }
  .compact .side { inset: auto 0 var(--osk) auto; width: var(--col); }
  .compact .osk { inset: auto 0 0 auto; width: var(--col); border-inline-start: 1px solid var(--line); }
  .compact .zoom { inset-block: auto 12px; inset-inline: auto calc(var(--col) + 8px); }
}

/* tablets: the notes run under both columns, so the columns end above them and the leave button keeps its corner */
@media (min-width: 761px) and (max-width: 1100px) and (min-height: 521px) {
  .legal { padding-inline: var(--pad-side) calc(var(--right-w) + 2 * var(--pad-side)); font-size: 0.66rem; text-align: start; }
}

/* the invitation to volunteer linguists (Ukrainian page): between the language buttons and the hint */
:root:has(.volunteers) { --vol: 86px; }
.volunteers { position: fixed; inset-inline-end: var(--pad-side); top: 104px; width: var(--right-w); box-sizing: border-box; margin: 0; padding: 7px 12px; border: 1px solid var(--brand-400); border-radius: 14px; background: var(--panel); backdrop-filter: blur(6px); text-align: center; color: var(--text); font-size: 0.68rem; font-weight: 700; line-height: 1.3; }
.volunteers a { color: var(--brand-400); }
.menu .volunteers { position: static; inset: auto; width: auto; font-size: 0.8rem; text-align: start; }
.compact .volunteers { position: static; }
.portal-in .volunteers { visibility: hidden; animation: portal-failsafe 0s 8s forwards; }
.portal-landing .volunteers { animation: portal-fade 0.3s both; }

/* low desktop windows: the top-10 list is tighter, so the clue list keeps some room above the notes */
@media (min-width: 761px) and (min-height: 521px) and (max-height: 760px) {
  .board { padding: 8px 12px 6px; }
  .board ol { line-height: 1.12; font-size: 0.72rem; }
  .board h2 { margin-bottom: 3px; }
}

/* the offer to add the game icon to the home screen */
.install-bar { position: fixed; z-index: 20; inset: calc(var(--bar, 56px) + 14px) 12px auto 12px; max-width: 26rem; margin-inline: auto; padding: 12px 16px; border: 1px solid var(--brand-400); border-radius: 14px; background: var(--panel); backdrop-filter: blur(8px); box-shadow: var(--shadow); text-align: center; }
.install-bar[hidden] { display: none; }
.install-text { margin: 0 0 10px; font-size: 0.92rem; line-height: 1.35; }
.install-buttons { display: flex; gap: 10px; justify-content: center; }
.install-buttons button { min-width: 7rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand-400); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.install-buttons .install-yes { background: var(--brand-500, #7c3aed); border-color: transparent; }
.install-buttons button[hidden] { display: none; }
