/* The games' shared help (tables/gamehelp.js): the announcement banner, the warning, the closed screen, the complaints &
   suggestions sheet. Its own night palette, the same in every game and on every board. */
.gh-bar, .gh-lock, .gh-sheet, .gh-toast { --gh-ink: #F6F0E4; --gh-mut: #B8B2A6; --gh-gold: #FFD98A; --gh-line: rgba(255, 230, 190, .16); --gh-card: rgba(17, 20, 34, .96); font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--gh-ink); -webkit-tap-highlight-color: transparent; }
.gh-bar[hidden], .gh-lock[hidden], .gh-sheet[hidden] { display: none !important; }
/* ---------- the dock (2026-11-10): a slim strip at the top in a space of its own. While it shows, html.gh-dock moves the
   page down by --gh-dock: the games' --safe-t and safe probe (wassilha, khallisha, baloot place their tops by them) and
   Rakda's own rules below; so nothing of the game is under it. Tapped, its details drop down over the page ---------- */
html.gh-dock { --safe-t: calc(env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock #safeProbe { padding-top: calc(env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)) !important; }
html.gh-dock[data-ghg="rakda"] #hud { padding-top: calc(12px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock[data-ghg="rakda"] .screen { padding-top: calc(16px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock[data-ghg="rakda"] #powers { top: calc(122px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock[data-ghg="rakda"] .racing #powers { top: calc(146px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock[data-ghg="rakda"] .race-bar { top: calc(84px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
html.gh-dock[data-ghg="rakda"] .toast { top: calc(142px + env(safe-area-inset-top, 0px) + var(--gh-dock, 44px)); }
.gh-bar { --c1: #FFD27A; --c2: #E9A44A; --c3: #FFF1C4; position: fixed; z-index: 9000; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--gh-dock, 44px); padding: 4px max(8px, env(safe-area-inset-left, 0px)) 3px max(8px, env(safe-area-inset-right, 0px)); display: flex; justify-content: center; color: var(--gh-ink); font-family: "Readex Pro", Alexandria, system-ui, sans-serif; pointer-events: none; }
.gh-bar.k-maint { --c1: #FF8A3D; --c2: #FFD36B; --c3: #FFE2C2; } .gh-bar.k-update { --c1: #6C8CFF; --c2: #B57BFF; --c3: #CFE0FF; } .gh-bar.k-news { --c1: #2BD1B4; --c2: #FFD27A; --c3: #D8FFF4; }
.gh-bar.shut, .gh-bar.k-off { --c1: #FF5A5A; --c2: #FF9A6B; --c3: #FFD0C0; }
.gh-row { pointer-events: auto; position: relative; width: min(760px, 100%); height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); border-radius: 14px; overflow: hidden; color: inherit; font: inherit; text-align: start; cursor: pointer;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 26%, #12142A), #12142A 42%, #0E1020); box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
[dir="rtl"] .gh-row { padding: 0 6px 0 10px; background: linear-gradient(270deg, color-mix(in srgb, var(--c1) 26%, #12142A), #12142A 42%, #0E1020); }
.gh-row::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .1) 50%, transparent 65%); transform: translateX(-120%); animation: ghShine 6s ease-in-out infinite; pointer-events: none; }
.gh-row:focus-visible { outline: 2px solid var(--c3); outline-offset: 1px; }
.gh-ic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--c3), var(--c1) 45%, var(--c2)); box-shadow: 0 0 12px color-mix(in srgb, var(--c1) 60%, transparent); }
.gh-ic svg { position: relative; width: 15px; height: 15px; fill: none; stroke: #1A1008; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.gh-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c1); opacity: 0; }
.gh-bar.closes .gh-pulse, .gh-bar.soon .gh-pulse, .gh-bar.on .gh-pulse { animation: ghPulse 1.8s ease-out infinite; }
.gh-tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #1A1008; background: linear-gradient(120deg, var(--c3), var(--c1)); }
.gh-tt { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-bcd { flex: none; display: flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid color-mix(in srgb, var(--c1) 40%, transparent); }
.gh-bcd small { font-size: 10px; font-weight: 700; color: var(--gh-mut); white-space: nowrap; }
.gh-bcd b { font-size: 13.5px; line-height: 1.1; font-weight: 800; color: var(--c3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-chev { flex: none; width: 16px; height: 16px; color: var(--gh-mut); transition: transform .25s; } .gh-chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gh-bar.open .gh-chev { transform: rotate(180deg); }
.gh-line { position: absolute; left: 50%; bottom: 1px; width: min(740px, calc(100% - 36px)); height: 2px; transform: translateX(-50%); border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c1), var(--c2), var(--c3), transparent); background-size: 200% 100%; animation: ghLine 3s linear infinite; opacity: .8; pointer-events: none; }
/* the details, over the page while open */
.gh-drop { position: absolute; top: calc(100% + 4px); left: 50%; width: min(560px, calc(100% - 16px)); transform: translateX(-50%); pointer-events: auto; display: none; }
.gh-bar.open .gh-drop { display: block; animation: ghDrop .22s ease-out; }
.gh-dc { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #181B33, #0F1122); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.gh-dk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--c3); }
.gh-shut { font-style: normal; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; color: #fff; background: rgba(255, 80, 80, .28); border: 1px solid rgba(255, 120, 110, .55); }
.gh-dc b { font-size: 15.5px; line-height: 1.4; } .gh-dc p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--gh-ink); white-space: pre-line; } .gh-dc em { font-style: normal; font-size: 12px; color: var(--gh-mut); } .gh-dc strong { font-size: 12.5px; color: #FFD0C0; }
.gh-dcd { align-self: flex-start; display: flex; align-items: baseline; gap: 8px; margin-top: 2px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.gh-dcd small { font-size: 11px; font-weight: 700; color: var(--gh-mut); } .gh-dcd b { font-size: 20px; color: var(--c3); font-variant-numeric: tabular-nums; }
.gh-bar.busy .gh-tag { display: none; }
@media (max-width: 380px) { .gh-tag { display: none; } .gh-bcd small { display: none; } }
@media (prefers-reduced-motion: reduce) { .gh-row::after, .gh-line, .gh-pulse { animation: none !important; } }
@keyframes ghSpin { to { transform: rotate(360deg); } }
@keyframes ghShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes ghPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ghLine { from { background-position: 0 0; } to { background-position: 200% 0; } }
@keyframes ghDrop { from { opacity: 0; transform: translate(-50%, -6px); } }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .gh-row { background: linear-gradient(90deg, #2A2450, #12142A 42%, #0E1020); border-color: rgba(255, 220, 160, .35); } }
/* the switched-off screen's sign */
.gh-gear.off { background: linear-gradient(160deg, #FFC9B8, #FF7A5A 55%, #C8402A); }
.gh-gear.off svg { stroke-width: 3; animation: none !important; transform: none !important; }
/* the warning */
.gh-toast { position: fixed; z-index: 9700; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translate(-50%, 20px); max-width: min(520px, calc(100vw - 24px)); padding: 11px 16px; border-radius: 14px; background: #2A1410; border: 1px solid rgba(255, 140, 100, .6); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 14px; font-weight: 700; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.gh-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* the closed screen */
.gh-lock { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 20px) 18px calc(env(safe-area-inset-bottom, 0px) + 20px); background: radial-gradient(120% 70% at 50% 20%, #2A2140, #0A0C16 70%); }
html.gh-locked, html.gh-locked body { overflow: hidden !important; }
.gh-lc { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gh-gear { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(160deg, #FFE7A6, #E3A54E 55%, #B9772F); box-shadow: 0 0 0 6px rgba(255, 210, 120, .12), 0 16px 40px rgba(0, 0, 0, .5); }
.gh-gear svg { width: 52px; height: 52px; fill: none; stroke: #2A1806; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; animation: ghTool 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes ghTool { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
.gh-lc h2 { margin: 0; font-size: 24px; line-height: 1.3; text-wrap: balance; }
.gh-lt { margin: 0; display: flex; flex-direction: column; gap: 4px; color: var(--gh-mut); font-size: 14px; line-height: 1.7; } .gh-lt b { color: var(--gh-ink); font-size: 15px; }
.gh-cd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 26px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--gh-line); }
.gh-cd small { font-size: 12px; color: var(--gh-mut); } .gh-cd b { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--gh-gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border: 0; border-radius: 14px; font: 700 15px "Readex Pro", system-ui, sans-serif; color: #2A1A06; background: linear-gradient(180deg, #FFEDB8, #E3A54E); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(233, 168, 90, .3); }
.gh-btn.ghost { color: var(--gh-ink); background: rgba(255, 255, 255, .08); box-shadow: none; border: 1px solid var(--gh-line); }
.gh-btn.big { width: 100%; padding: 14px; font-size: 16px; } .gh-btn.sm { padding: 8px 14px; font-size: 13.5px; }
.gh-btn:disabled { opacity: .6; }
/* complaints & suggestions */
.gh-sheet { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 6, 14, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.gh-sheet.opening { animation: ghFade .2s; } .gh-sheet.opening .gh-card { animation: ghUp .28s cubic-bezier(.2, 1.1, .4, 1); }
html.gh-sheeting, html.gh-sheeting body { overflow: hidden !important; }
@keyframes ghFade { from { opacity: 0; } }
.gh-card { width: min(560px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #171B2E, #0E1120); border: 1px solid var(--gh-line); border-bottom: 0; box-shadow: 0 -14px 40px rgba(0, 0, 0, .5); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes ghUp { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) { .gh-sheet { align-items: center; } .gh-card { border-radius: 24px; border-bottom: 1px solid var(--gh-line); } }
.gh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px; }
.gh-head h2 { margin: 0; font-size: 19px; display: flex; flex-direction: column; } .gh-head h2 small { font-size: 12px; font-weight: 600; color: var(--gh-gold); }
.gh-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--gh-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.gh-tabs { display: flex; gap: 6px; padding: 0 16px 10px; }
.gh-tabs button { flex: 1; padding: 9px; border-radius: 12px; border: 1px solid var(--gh-line); background: rgba(255, 255, 255, .04); color: var(--gh-mut); font: 700 14px "Readex Pro", system-ui, sans-serif; cursor: pointer; }
.gh-tabs button[aria-selected="true"] { color: #2A1A06; background: linear-gradient(180deg, #FFEDB8, #E3A54E); border-color: transparent; }
.gh-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1; vertical-align: 1px; }
.gh-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.gh-q { margin: 2px 0 0; font-size: 14px; color: var(--gh-mut); }
.gh-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gh-kinds button { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--gh-line); background: rgba(255, 255, 255, .04); color: var(--gh-ink); font: 700 14px "Readex Pro", system-ui, sans-serif; text-align: start; cursor: pointer; }
.gh-kinds button span { font-size: 18px; }
.gh-kinds button[aria-checked="true"] { border-color: var(--gh-gold); background: rgba(255, 217, 138, .12); box-shadow: 0 0 0 1px var(--gh-gold) inset; }
.gh-lab { font-size: 13px; font-weight: 700; color: var(--gh-gold); margin-top: 4px; }
.gh-sheet textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; padding: 12px; border-radius: 14px; border: 1px solid var(--gh-line); background: rgba(0, 0, 0, .25); color: var(--gh-ink); font: 16px/1.6 "Readex Pro", system-ui, sans-serif; }
.gh-sheet textarea:focus { outline: 2px solid var(--gh-gold); outline-offset: 1px; }
.gh-meta { display: flex; justify-content: space-between; gap: 10px; } .gh-meta small { font-size: 11.5px; color: var(--gh-mut); line-height: 1.5; } .gh-count { flex: none; font-variant-numeric: tabular-nums; }
.gh-msg { margin: 0; min-height: 1em; font-size: 13px; color: #FF9A8A; } .gh-msg a { color: var(--gh-gold); }
.gh-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px; text-align: center; }
.gh-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #0E2A18; background: linear-gradient(180deg, #8EF0B0, #2FBF6A); box-shadow: 0 10px 26px rgba(47, 191, 106, .35); animation: ghPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ghPop { from { transform: scale(.3); } }
.gh-done b { font-size: 18px; } .gh-done p { margin: 0; color: var(--gh-mut); font-size: 14px; line-height: 1.7; }
.gh-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gh-empty { margin: 10px 0; text-align: center; color: var(--gh-mut); }
.gh-mine { display: flex; flex-direction: column; gap: 8px; }
.gh-item { border-radius: 16px; border: 1px solid var(--gh-line); background: rgba(255, 255, 255, .03); }
.gh-item summary { display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; list-style: none; }
.gh-item summary::-webkit-details-marker { display: none; }
.gh-k { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #20150A; background: var(--gh-gold); }
.gh-sum { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-st { flex: none; font-size: 11.5px; color: var(--gh-mut); } .s-answered .gh-st { color: #8EF0B0; }
.gh-thread { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px; }
.gh-msgb { max-width: 88%; padding: 8px 11px; border-radius: 14px; background: rgba(255, 255, 255, .06); align-self: flex-start; }
.gh-msgb.user { align-self: flex-end; background: rgba(255, 217, 138, .14); }
.gh-msgb.admin { background: rgba(76, 141, 255, .18); border: 1px solid rgba(76, 141, 255, .35); }
.gh-msgb.system { align-self: center; background: transparent; padding: 2px 6px; } .gh-msgb.system p { color: var(--gh-mut); font-size: 12px; text-align: center; }
.gh-msgb small { display: block; font-size: 10.5px; color: var(--gh-mut); margin-bottom: 2px; } .gh-msgb p { margin: 0; font-size: 13.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.gh-rep { display: flex; gap: 6px; align-items: flex-end; padding: 0 12px 12px; } .gh-rep textarea { min-height: 44px; flex: 1; }
/* the dot on a game's button for a new answer */
.gh-bdot { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #E5484D; color: #fff; font: 800 10px/16px "Readex Pro", system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .gh-gear svg, .gh-bar, .gh-card, .gh-ok, .gh-bar::before, .gh-in::after, .gh-pulse { animation: none !important; } }
.help-btn { position: relative; }
