/* SpellingBeat site styles – approved mockup A "Honey hive" (cream page, honey header, ink text, rounded cards) with a
   dark theme inspired by mockup B "Arena" (html[data-theme], key sb_theme shared with the game; without a stored
   choice prefers-color-scheme decides). Colours read the game's shared tokens (--sb-*, game-src/theme.css) with the
   mockup values as fallbacks. Fonts: --sb-font from theme.css (self-hosted), system stacks for ja/ko/zh. */

:root {
  --bg: var(--sb-bg, #fffaf0); --surface: var(--sb-surface, #fff); --surface-2: var(--sb-surface-2, #fff3d6);
  --ink: var(--sb-ink, #1d1a14); --ink-2: var(--sb-ink-2, #5b5446); --line: var(--sb-line, #efe3c4);
  --honey: var(--sb-honey, #ffc83d); --honey-2: var(--sb-honey-2, #ffb400); --honey-ink: var(--sb-honey-ink, #3a2a00);
  --hex: var(--sb-hex, #f1ece0); --hex-ink: var(--sb-hex-ink, #1d1a14);
  --you: var(--sb-you, #2f7cf6); --you-soft: var(--sb-you-soft, #dbe8ff); --opp: var(--sb-opp, #f0544f); --opp-soft: var(--sb-opp-soft, #ffe0de);
  --ok: var(--sb-ok, #1f9d55); --bad: var(--sb-bad, #d63c37);
  --header: var(--sb-header, #ffc83d); --header-ink: var(--sb-header-ink, #1d1a14); --header-line: #1d1a14;
  --foot: #1d1a14; --foot-ink: #e9e2d0; --foot-muted: #b9b09a; --foot-line: rgba(233, 226, 208, .14);
  --link: #8a4f00; --focus: #2f7cf6;
  --shadow: 0 10px 30px rgba(80, 60, 0, .10), 0 2px 6px rgba(80, 60, 0, .06);
  --shadow-s: 0 2px 8px rgba(80, 60, 0, .08);
  --r: 18px; --r-s: 14px;
  --font: var(--sb-font, "Manrope", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif);
  --sb-header-h: 56px;
  --sb-avail-h: calc(100vh - var(--sb-header-h));
  --col: 760px; --wrap: 1180px;
  color-scheme: light;
}
@supports (height: 100dvh) { :root { --sb-avail-h: calc(100dvh - var(--sb-header-h)); } }
@media (min-width: 721px) { :root { --sb-header-h: 62px; } }
:root[data-theme="dark"] {
  --bg: var(--sb-bg, #0b1124); --surface: var(--sb-surface, #141c38); --surface-2: var(--sb-surface-2, #1b2548);
  --ink: var(--sb-ink, #eef1fb); --ink-2: var(--sb-ink-2, #a6b0d4); --line: var(--sb-line, #26325c);
  --honey: var(--sb-honey, #ffd23f); --honey-2: var(--sb-honey-2, #ffbf00); --honey-ink: var(--sb-honey-ink, #2a2000);
  --hex: var(--sb-hex, #1d2850); --hex-ink: var(--sb-hex-ink, #fff);
  --you: var(--sb-you, #3d8bff); --you-soft: var(--sb-you-soft, #203a74); --opp: var(--sb-opp, #ff5a6e); --opp-soft: var(--sb-opp-soft, #5a2234);
  --ok: var(--sb-ok, #3ccf7d); --bad: var(--sb-bad, #ff6b6b);
  --header: var(--sb-header, #0f1630); --header-ink: var(--sb-header-ink, #fff); --header-line: #26325c;
  --foot: #070b18; --foot-ink: #e3e8f8; --foot-muted: #9aa6cc; --foot-line: rgba(160, 176, 255, .14);
  --link: #ffd23f; --focus: #ffd23f;
  --shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25); --shadow-s: 0 2px 10px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--sb-bg, #0b1124); --surface: var(--sb-surface, #141c38); --surface-2: var(--sb-surface-2, #1b2548);
    --ink: var(--sb-ink, #eef1fb); --ink-2: var(--sb-ink-2, #a6b0d4); --line: var(--sb-line, #26325c);
    --honey: var(--sb-honey, #ffd23f); --honey-2: var(--sb-honey-2, #ffbf00); --honey-ink: var(--sb-honey-ink, #2a2000);
    --hex: var(--sb-hex, #1d2850); --hex-ink: var(--sb-hex-ink, #fff);
    --you: var(--sb-you, #3d8bff); --you-soft: var(--sb-you-soft, #203a74); --opp: var(--sb-opp, #ff5a6e); --opp-soft: var(--sb-opp-soft, #5a2234);
    --ok: var(--sb-ok, #3ccf7d); --bad: var(--sb-bad, #ff6b6b);
    --header: var(--sb-header, #0f1630); --header-ink: var(--sb-header-ink, #fff); --header-line: #26325c;
    --foot: #070b18; --foot-ink: #e3e8f8; --foot-muted: #9aa6cc; --foot-line: rgba(160, 176, 255, .14);
    --link: #ffd23f; --focus: #ffd23f;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25); --shadow-s: 0 2px 10px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
/* system font stacks (no web font) */
:root:lang(zh-Hans) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
:root:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif; }
:root:lang(ko) { --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--sb-header-h) + 12px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
:lang(ja) body, :lang(zh-Hans) body, :lang(ko) body { line-break: strict; word-break: normal; }
:lang(ko) body { word-break: keep-all; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.sbs-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sbs-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sbs-i--fill { fill: currentColor; stroke: none; }

/* scrollbars: pill thumb in the project colours, transparent track (project rule) */
html { scrollbar-gutter: auto; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sb-track, transparent); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(91, 84, 70, .38)); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, #ffb400); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { html, .sbs-lang__list, .sbs-table { scrollbar-color: var(--sb-thumb, rgba(91, 84, 70, .38)) transparent; scrollbar-width: thin; } }

/* ------------------------------------------------------------ header (honey, ink border; dark: arena navy) */
.sbs-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.sbs-skip:focus { top: 10px; }
.sbs-header { position: sticky; top: 0; z-index: 20; background: var(--header); color: var(--header-ink); border-bottom: 2px solid var(--header-line); }
.sbs-header__in { display: flex; align-items: center; gap: 10px; max-width: var(--wrap); height: calc(var(--sb-header-h) - 2px); margin: 0 auto; padding: 0 14px; }
.sbs-logo { display: flex; align-items: center; flex: none; margin-inline-end: auto; color: inherit; border-radius: 8px; }
.sbs-logo__svg { display: block; width: auto; height: 30px; }
@media (min-width: 721px) { .sbs-logo__svg { height: 34px; } }
@media (max-width: 360px) { .sbs-logo__svg { height: 26px; } }
.sbs-nav { display: none; gap: 2px; margin-inline-start: 8px; margin-inline-end: auto; }
.sbs-nav a, .sbs-mnav a { color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; border-radius: 10px; }
.sbs-nav a { padding: 8px 11px; opacity: .88; }
.sbs-nav a:hover, .sbs-mnav a:hover { background: rgba(0, 0, 0, .07); opacity: 1; }
.sbs-nav a[aria-current="page"], .sbs-mnav a[aria-current="page"] { background: rgba(0, 0, 0, .1); opacity: 1; }
:root[data-theme="dark"] .sbs-nav a:hover, :root[data-theme="dark"] .sbs-mnav a:hover, :root[data-theme="dark"] .sbs-nav a[aria-current="page"], :root[data-theme="dark"] .sbs-mnav a[aria-current="page"] { background: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sbs-nav a:hover, :root:not([data-theme="light"]) .sbs-mnav a:hover, :root:not([data-theme="light"]) .sbs-nav a[aria-current="page"], :root:not([data-theme="light"]) .sbs-mnav a[aria-current="page"] { background: rgba(255, 255, 255, .12); } }
.sbs-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.sbs-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.sbs-iconbtn:hover, .sbs-menu-btn[aria-expanded="true"] { background: rgba(0, 0, 0, .08); }
.sbs-gamebtn[hidden] { display: none; }
.sbs-i--sun { display: none; }
:root[data-theme="dark"] .sbs-i--sun { display: block; }
:root[data-theme="dark"] .sbs-i--moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sbs-i--sun { display: block; } :root:not([data-theme="light"]) .sbs-i--moon { display: none; } }
/* language picker: custom dropdown with search */
.sbs-lang { position: relative; }
.sbs-lang__btn { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 9px; border: 1.5px solid currentColor; border-radius: 10px; background: transparent; color: inherit; font: 700 14px/1 var(--font); cursor: pointer; opacity: .9; }
.sbs-lang__btn:hover, .sbs-lang__btn[aria-expanded="true"] { opacity: 1; background: rgba(0, 0, 0, .06); }
.sbs-lang__btn .sbs-i { width: 18px; height: 18px; }
.sbs-lang__btn .sbs-i--chev { width: 14px; height: 14px; stroke-width: 2.6; transition: transform .16s; }
.sbs-lang__btn[aria-expanded="true"] .sbs-i--chev { transform: rotate(180deg); }
.sbs-lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; width: 270px; max-height: min(72vh, 540px); overflow: hidden; border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(40, 30, 0, .22), 0 2px 6px rgba(40, 30, 0, .1); transform-origin: top right; animation: sb-pop .14s ease-out; }
.sbs-lang__menu[hidden] { display: none; }
@keyframes sb-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.sbs-lang__search { position: relative; flex: none; padding: 10px 10px 6px; }
.sbs-lang__search .sbs-i { position: absolute; inset-inline-start: 22px; top: 50%; width: 18px; height: 18px; margin-top: -7px; color: var(--ink-2); }
.sbs-lang__q { width: 100%; height: 40px; padding: 0 12px; padding-inline-start: 40px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); font: 600 15px var(--font); outline: none; -webkit-appearance: none; appearance: none; }
.sbs-lang__q:focus { border-color: var(--honey-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 35%, transparent); }
.sbs-lang__q::-webkit-search-cancel-button { -webkit-appearance: none; }
.sbs-lang__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 2px 6px 8px; list-style: none; overscroll-behavior: contain; }
.sbs-lang__list::-webkit-scrollbar { width: 14px; }
.sbs-lang__list::-webkit-scrollbar-track { background: transparent; margin: 6px 0 16px; }
.sbs-lang__list::-webkit-scrollbar-thumb { background: var(--honey-2); border: 3px solid transparent; border-width: 3px 6px 3px 3px; border-radius: 999px; background-clip: padding-box; }
.sbs-lang__list::-webkit-scrollbar-thumb:hover { background: var(--honey); border: 3px solid transparent; border-width: 3px 6px 3px 3px; background-clip: padding-box; }
.sbs-lang__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.sbs-lang__list a:hover, .sbs-lang__list a:focus { background: var(--surface-2); outline: none; }
.sbs-lang__list a:focus-visible { box-shadow: inset 0 0 0 2px var(--honey-2); }
.sbs-lang__list a[aria-current="true"] { background: color-mix(in srgb, var(--honey) 28%, var(--surface)); font-weight: 800; }
.sbs-lang__list a .sbs-i { width: 18px; height: 18px; color: var(--honey-ink); stroke-width: 3; }
:root[data-theme="dark"] .sbs-lang__list a .sbs-i { color: var(--honey); }
.sbs-lang__list li[hidden] { display: none; }
.sbs-lang__none { margin: 4px 16px 14px; color: var(--ink-2); font-size: 14px; }
.sbs-menu-btn .sbs-i:last-child { display: none; }
.sbs-menu-btn[aria-expanded="true"] .sbs-i:first-child { display: none; }
.sbs-menu-btn[aria-expanded="true"] .sbs-i:last-child { display: block; }
.sbs-mnav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: var(--wrap); margin: 0 auto; padding: 4px 12px 14px; }
.sbs-mnav[hidden] { display: none; }
.sbs-mnav a { padding: 11px 12px; }
@media (max-width: 400px) {
  .sbs-header__in { gap: 4px; padding: 0 8px; }
  .sbs-tools { gap: 0; }
  .sbs-lang__btn .sbs-i--chev, .sbs-lang__btn .sbs-i:first-child { display: none; }
  .sbs-iconbtn { width: 38px; }
}
@media (max-width: 720px) { .sbs-lang__menu { position: fixed; inset-inline: 10px; top: calc(var(--sb-header-h) + 6px); width: auto; } }
@media (min-width: 1180px) {
  .sbs-header__in { padding: 0 20px; gap: 12px; }
  .sbs-nav { display: flex; }
  .sbs-menu-btn { display: none; }
  .sbs-mnav { display: none !important; }
  .sbs-logo { margin-inline-end: 0; }
}

/* ------------------------------------------------------------ game stage */
/* the game owns everything inside #sb-app (skeleton, H1/lead adoption, lobby, heights: game-src/EMBED.md) */
.sbs-stage { max-width: var(--wrap); margin: 0 auto; padding: 22px 20px 6px; }
/* the game sizes its phone box as 100dvh - --sb-header-h: the stage passes header (56px) + its own top padding + a gap */
@media (max-width: 720px) { .sbs-stage { padding: 10px 12px 4px; --sb-header-h: 74px; } }
.sbs-lede { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; }
.sbs-noscript { margin: 12px 0; padding: 14px; border-radius: 12px; background: var(--opp); color: #fff; font-weight: 700; }

/* under the game: checklist + share row, rating card */
.sbs-gamefoot { display: grid; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 18px 20px 4px; }
@media (min-width: 900px) { .sbs-gamefoot { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; } }
@media (max-width: 720px) { .sbs-gamefoot { padding: 14px 14px 4px; } }
.sbs-points { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.sbs-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.sbs-points .sbs-i { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); stroke-width: 3; }
.sbs-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sbs-sharebar__t { margin: 0; font-weight: 800; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; }
:lang(ja) .sbs-sharebar__t, :lang(zh-Hans) .sbs-sharebar__t, :lang(ko) .sbs-sharebar__t { text-transform: none; letter-spacing: 0; }
.sbs-sharebar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 400px) { .sbs-sharebar__btns { gap: 6px; } .sbs-sbtn { width: 40px; height: 40px; } }
.sbs-sbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: transform .12s, background-color .12s; }
.sbs-sbtn[hidden] { display: none; }
.sbs-sbtn svg { width: 20px; height: 20px; fill: currentColor; }
.sbs-sbtn .sbs-i { fill: none; }
.sbs-sbtn:hover { transform: translateY(-2px); background: var(--honey); color: var(--honey-ink); }
.sbs-flash { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

/* rating card */
.sbs-rate { position: relative; padding: 18px 20px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.sbs-rate__t { margin: 0 0 4px; font-weight: 800; font-size: 18px; }
.sbs-rate__s { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.sbs-rate__stars { position: relative; display: inline-flex; gap: 2px; direction: ltr; --show: var(--avg, 0); }
.sbs-rate__b { position: relative; z-index: 2; width: 40px; height: 40px; padding: 4px; border: 0; background: transparent; cursor: pointer; color: transparent; }
.sbs-rate__b svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--ink-2); stroke-opacity: .5; stroke-width: 1.4; }
.sbs-rate__b:disabled { cursor: default; }
.sbs-rate__fill { position: absolute; z-index: 1; left: 0; top: 0; display: flex; gap: 2px; height: 40px; overflow: hidden; pointer-events: none; color: var(--honey-2); width: calc(var(--show, 0) * 42px - 2px); max-width: 208px; }
.sbs-rate__fill svg { flex: none; width: 40px; height: 40px; padding: 4px; fill: currentColor; }
.sbs-rate__stars:has(.sbs-rate__b:hover) .sbs-rate__fill { color: var(--honey); }
.sbs-rate__sum { margin: 6px 0 0; min-height: 1.4em; font-weight: 700; font-size: 14.5px; }
.sbs-rate__n { color: var(--ink-2); font-weight: 600; }
.sbs-rate__msg { margin: 4px 0 0; min-height: 1.3em; font-size: 14px; color: var(--ok); font-weight: 700; }
.sbs-rate__msg.is-err { color: var(--bad); }

/* ------------------------------------------------------------ content: column + "On this page" sidebar */
.sbs-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: var(--wrap); margin: 0 auto; padding: 10px 20px 40px; }
@media (min-width: 1000px) { .sbs-body:not(.sbs-body--notoc) { grid-template-columns: minmax(0, 1fr) 360px; } }
.sbs-body--doc { max-width: calc(var(--col) + 40px); }
@media (max-width: 720px) { .sbs-body { padding: 6px 14px 30px; } }
/* anywhere (not break-word) so long compounds also shrink grid/flex min-content; Chromium on Windows does not hyphenate */
.sbs-content, .sbs-gamefoot, .sbs-related, .sbs-more { overflow-wrap: anywhere; }
.sbs-content { min-width: 0; max-width: var(--col); }
/* hyphenation only where long compounds would otherwise leave ragged narrow columns */
:is(:lang(de), :lang(fi), :lang(nl), :lang(hu), :lang(sv), :lang(da), :lang(nb), :lang(el)) :is(.sbs-cards, .sbs-steps) p { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 720px) {
  :is(:lang(de), :lang(fi), :lang(nl), :lang(hu), :lang(sv), :lang(da), :lang(nb), :lang(el)) .sbs-content p { hyphens: auto; -webkit-hyphens: auto; }
}
.sbs-k-article .sbs-content, .sbs-k-doc .sbs-content, .sbs-k-legal .sbs-content { padding-top: 16px; }
.sbs-aside { display: none; }
@media (min-width: 1000px) { .sbs-aside { display: block; } }
.sbs-toc { position: sticky; top: calc(var(--sb-header-h) + 18px); max-height: calc(100vh - var(--sb-header-h) - 36px); overflow-y: auto; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.sbs-toc::-webkit-scrollbar { width: 14px; }
.sbs-toc::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.sbs-toc::-webkit-scrollbar-thumb { background: var(--honey-2); border: 3px solid transparent; border-width: 3px 6px 3px 3px; border-radius: 999px; background-clip: padding-box; }
.sbs-toc__t { margin: 0 0 8px; font-weight: 800; font-size: 15px; }
.sbs-toc ol { margin: 0; padding: 0; list-style: none; }
.sbs-toc a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.sbs-toc li:last-child a { border-bottom: 0; }
.sbs-toc a:hover, .sbs-toc a.is-on { color: var(--ink); }
.sbs-toc a.is-on { font-weight: 800; box-shadow: inset 3px 0 0 var(--honey-2); padding-inline-start: 10px; }
.sbs-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.sbs-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.sbs-crumbs a { color: var(--ink-2); }
.sbs-hero h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.6px; }
.sbs-hero { margin-bottom: 18px; }
.sbs-sec { margin: 30px 0; }
.sbs-sec h2 { font-size: clamp(22px, 2.8vw, 26px); margin: 0 0 12px; letter-spacing: -.3px; }
.sbs-sec h3 { font-size: 19px; margin-top: 1.2em; }
.sbs-sec ul:not([class]), .sbs-sec ol:not([class]), .sbs-legacy ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.sbs-sec li { margin: .25em 0; }
.sbs-sec li::marker { color: var(--honey-2); font-weight: 800; }
kbd { display: inline-block; min-width: 1.9em; padding: .05em .45em; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--surface); font: 700 .86em/1.5 var(--font); text-align: center; color: var(--ink); }
.note { margin: 1.2em 0; padding: 14px 18px; border-radius: var(--r-s); background: var(--surface-2); border-inline-start: 4px solid var(--honey-2); }
.note > :last-child { margin-bottom: 0; }
/* the old texts (owner: verbatim) – honey-bordered box of the mockup */
.sbs-legacy { margin: 12px 0 18px; padding: 16px 20px; border-radius: 0 14px 14px 0; background: var(--surface); border-inline-start: 4px solid var(--honey); box-shadow: var(--shadow-s); }
.sbs-legacy > :last-child { margin-bottom: 0; }
.sbs-table { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.sbs-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sbs-table th, .sbs-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.sbs-table thead th { background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.sbs-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .sbs-table th, .sbs-table td { min-width: 7.5em; } }

/* step cards */
.sbs-steps { counter-reset: s; display: grid; gap: 12px; margin: 1.2em 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .sbs-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
/* no lone card in the last row: 4 steps as 2 x 2, 5 steps as 3 + 2 of equal row width */
@media (min-width: 560px) {
  .sbs-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .sbs-steps:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sbs-steps:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .sbs-steps:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
}
.sbs-steps > li { counter-increment: s; position: relative; margin: 0; padding: 54px 16px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sbs-steps > li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 34px; background: var(--honey); color: var(--honey-ink); font: 800 15px/1 var(--font); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); width: 36px; height: 32px; }
.sbs-steps h3 { margin: 0 0 .3em; font-size: 18px; }
.sbs-steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
/* card grid (mode cards of the mockup) */
.sbs-cards { display: grid; gap: 12px; margin: 1.2em 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .sbs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbs-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.sbs-cards > li { margin: 0; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sbs-cards h3 { margin: 0 0 .3em; font-size: 17px; }
.sbs-cards h3 .sbs-ic { display: grid; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 12px; vertical-align: 0; }
.sbs-cards h3 .sbs-ic .sbs-i { width: 22px; height: 22px; }
.sbs-cards p { margin: 0 0 .5em; font-size: 14.5px; color: var(--ink-2); }
.sbs-cards p:last-child { margin-bottom: 0; }
.sbs-cards .sbs-fig { margin: .6em 0; }
/* tips */
.sbs-tips { counter-reset: t; display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.sbs-tips > li { counter-increment: t; position: relative; margin: 0; padding: 12px 16px; padding-inline-start: 60px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.sbs-tips > li::before { content: counter(t); position: absolute; inset-inline-start: 14px; top: 11px; display: grid; place-items: center; width: 34px; height: 30px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--ink); color: var(--bg); font: 800 14px/1 var(--font); }
/* FAQ */
.sbs-faqs { display: grid; gap: 8px; margin: 1em 0; }
.sbs-faq { border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.sbs-faq summary { position: relative; list-style: none; cursor: pointer; padding: 13px 18px; padding-inline-end: 48px; font-weight: 700; border-radius: var(--r-s); }
.sbs-faq summary::-webkit-details-marker { display: none; }
.sbs-faq summary::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--honey-2); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .16s; }
.sbs-faq[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.sbs-faq > :not(summary) { margin: 0 18px 14px; }
.sbs-faq ul { padding-inline-start: 1.2em; }

/* icons (span.sbs-ic) and their tints, as the mode cards of the mockup */
.sbs-ic { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: .45em; vertical-align: -.4em; background: var(--surface-2); color: var(--ink); }
.sbs-ic .sbs-i { width: 1em; height: 1em; }
.sbs-ic--duel { background: var(--honey); color: var(--honey-ink); }
.sbs-ic--friends, .sbs-ic--share { background: var(--you-soft); color: var(--you); }
.sbs-ic--daily, .sbs-ic--timer { background: var(--opp-soft); color: var(--opp); }
.sbs-ic--pangram, .sbs-ic--big, .sbs-ic--hint { background: color-mix(in srgb, var(--honey) 35%, var(--surface)); color: var(--honey-ink); }
:root[data-theme="dark"] .sbs-ic--pangram, :root[data-theme="dark"] .sbs-ic--big, :root[data-theme="dark"] .sbs-ic--hint { color: var(--honey); }

/* word chips (as the found-words list of the game) */
.sbs-word { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: .88em; letter-spacing: .03em; text-transform: uppercase; line-height: 1.6; white-space: nowrap; }
:lang(de) .sbs-word { text-transform: none; }
.sbs-word--pangram { box-shadow: inset 0 0 0 2px var(--honey-2); }
.sbs-words { display: flex; flex-wrap: wrap; gap: 6px; margin: .8em 0 1.1em; padding: 0; list-style: none; }
.sbs-words .sbs-word { margin: 0; font-size: 14px; padding: 4px 9px; }
.sbs-words--fig { justify-content: center; margin: 10px 0 0; }

/* hive-css-start */
.sbs-hivesvg { display: block; width: 100%; max-width: 236px; height: auto; margin: 0 auto; overflow: visible; font-family: var(--font, system-ui, sans-serif); }
.sbs-hx polygon { fill: var(--hex, #f1ece0); stroke: var(--hex, #f1ece0); stroke-width: 7; stroke-linejoin: round; }
.sbs-hx text { fill: var(--hex-ink, #1d1a14); font-weight: 800; font-size: 34px; text-anchor: middle; dominant-baseline: central; }
.sbs-hx--c polygon { fill: var(--honey, #ffc83d); stroke: var(--honey, #ffc83d); }
.sbs-hx--c text { fill: var(--honey-ink, #3a2a00); }
.sbs-hx.is-used polygon { fill: var(--you-soft, #dbe8ff); stroke: var(--you-soft, #dbe8ff); }
.sbs-hx.is-used text { fill: var(--you, #2f7cf6); }
.sbs-hx--c.is-used polygon { fill: var(--honey, #ffc83d); stroke: var(--honey-2, #ffb400); }
.sbs-hx--c.is-used text { fill: var(--honey-ink, #3a2a00); }
.sbs-hx--free polygon { fill: var(--hex, #f1ece0); stroke: var(--honey-2, #ffb400); stroke-width: 4; stroke-dasharray: 10 7; }
.sbs-hx--free text { fill: var(--hex-ink, #1d1a14); }
/* hive-css-end */
.sbs-fig { margin: 1.4em auto; padding: 18px 16px 14px; max-width: 420px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.sbs-hw { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; font: 800 24px/1.2 var(--font); letter-spacing: 2px; text-transform: uppercase; }
:lang(de) .sbs-hw { text-transform: none; }
.sbs-hw__c { color: var(--honey-2); }
.sbs-hw__m { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.sbs-hw__m .sbs-i { width: 17px; height: 17px; stroke-width: 3.2; }
.sbs-hw--ok .sbs-hw__m { background: var(--ok); }
.sbs-hw--bad .sbs-hw__m { background: var(--bad); }
.sbs-hw--bad .sbs-hw__w { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 3px; }
.sbs-hw--pangram .sbs-hw__m { background: var(--honey); color: var(--honey-ink); }
.sbs-hw--pangram .sbs-hw__m .sbs-i { fill: currentColor; stroke: none; }
.sbs-fig figcaption { max-width: 380px; margin: 10px auto 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ads: placeholders stay empty until Ezoic fills them */
[id^="ezoic-pub-ad-placeholder-"] { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.sbs-content [id^="ezoic-pub-ad-placeholder-"] { margin: 0 auto; }

/* related, CTA */
.sbs-related { margin: 40px 0 0; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.sbs-related h2 { font-size: 20px; }
.sbs-related ul { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 560px) { .sbs-related ul { grid-template-columns: 1fr 1fr; } }
.sbs-related li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 700; text-decoration: none; }
.sbs-related li a:hover { background: var(--honey); color: var(--honey-ink); }
.sbs-related li .sbs-i { width: 18px; height: 18px; }
.sbs-related p { margin: 0; }
.sbs-cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 16px; background: var(--honey); color: var(--honey-ink); font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--honey-2); }
.sbs-cta:hover { filter: brightness(1.04); text-decoration: none; }
.sbs-cta .sbs-i { width: 18px; height: 18px; }

/* More games */
.sbs-more { max-width: var(--wrap); margin: 10px auto 44px; padding: 0 20px; }
@media (max-width: 720px) { .sbs-more { padding: 0 14px; } }
.sbs-more h2 { font-size: 24px; }
.sbs-more__grid { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sbs-pcard { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s; }
.sbs-pcard:hover { transform: translateY(-2px); border-color: var(--honey-2); }
.sbs-pcard img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.sbs-pcard__b { display: flex; flex-direction: column; min-width: 0; }
.sbs-pcard__t { font-weight: 800; }
.sbs-pcard__s { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.sbs-pcard--new { border-color: color-mix(in srgb, var(--opp) 45%, var(--line)); }
.sbs-pcard__new { position: absolute; inset-inline-end: 10px; top: -9px; padding: 2px 8px; border-radius: 999px; background: var(--opp); color: #fff; font: 800 11px/1.5 var(--font); letter-spacing: .04em; }

/* contact form (markup of the shared feedback widget) */
.sbs-formcard { margin: 20px 0 10px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.fb-row { margin-bottom: 14px; }
.fb-row label { display: block; margin-bottom: 6px; font-weight: 700; }
.fb-note { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.fb-input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.fb-input:focus { outline: none; border-color: var(--honey-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 35%, transparent); }
.fb-btn { padding: 13px 26px; border: 0; border-radius: 16px; background: var(--honey); color: var(--honey-ink); font: 800 16px/1 var(--font); cursor: pointer; box-shadow: 0 4px 0 var(--honey-2); }
[data-feedback-status] { margin: 10px 0 0; font-weight: 700; }

/* legal */
.sbs-legal h2 { font-size: 22px; margin-top: 1.4em; }
.sbs-legal h3 { font-size: 18px; margin-top: 1.2em; }
.sbs-legal .sbs-sec { margin: 20px 0; }

/* 404 */
.sbs-main--404 { display: flex; align-items: center; }
.sbs-404 { width: 100%; min-width: 0; max-width: 620px; margin: 0 auto; padding: 36px 16px 60px; text-align: center; overflow-wrap: anywhere; }
.sbs-404__pic { max-width: 220px; margin: 0 auto 18px; }
.sbs-404__oops { margin: 0 0 6px; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--opp); }
.sbs-404 h1 { font-size: clamp(26px, 5vw, 36px); }
.sbs-404__more, .sbs-404__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.sbs-404__more a, .sbs-404__langs a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.sbs-404__langs a { padding: 5px 11px; font-size: 14px; font-weight: 600; }
.sbs-404__more a:hover, .sbs-404__langs a:hover { border-color: var(--honey-2); }

/* ------------------------------------------------------------ footer (ink, as the mockup) */
.sbs-foot { margin-top: 30px; background: var(--foot); color: var(--foot-muted); font-size: 15px; }
.sbs-foot a { color: var(--foot-ink); text-decoration: none; opacity: .88; }
.sbs-foot a:hover { opacity: 1; color: #ffc83d; }
.sbs-foot__in { display: grid; gap: 26px; max-width: var(--wrap); margin: 0 auto; padding: 36px 20px 18px; }
@media (min-width: 760px) { .sbs-foot__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.sbs-foot__brand p { margin: 12px 0 0; line-height: 1.55; }
.sbs-logo--foot { display: inline-flex; margin: 0; color: var(--foot-ink); }
.sbs-foot__col h2 { margin: 0 0 10px; color: var(--foot-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
:lang(ja) .sbs-foot__col h2, :lang(zh-Hans) .sbs-foot__col h2, :lang(ko) .sbs-foot__col h2 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.sbs-foot__col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sbs-foot__en { color: var(--foot-muted); font-size: 13px; white-space: nowrap; }
.sbs-foot__langs { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: var(--wrap); margin: 0 auto; padding: 16px 20px; border-top: 1px solid var(--foot-line); font-size: 14px; }
.sbs-foot__langs a[aria-current="true"] { color: #ffc83d; opacity: 1; }
.sbs-foot__bottom { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px 30px; border-top: 1px solid var(--foot-line); font-size: 13.5px; line-height: 1.55; }
.sbs-foot__bottom p { margin: 0 0 6px; }
.sbs-foot__tm { max-width: 820px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) { body { font-size: 16px; } }
