/* Bubble-Shooter.org site styles – "bright lagoon". The header, the game stage and the footer are always deep lagoon;
   the reading area is light by default with a dark theme (html[data-theme], key bs_theme shared with the game; without
   a stored choice prefers-color-scheme decides). Brand tokens and fonts come from the game's theme.css (--bs-*,
   self-hosted Fredoka + Geologica); every token has a fallback here. System stacks for ja, ko, zh. */

:root {
  --deep: var(--bs-deep, #062c47); --deep-2: var(--bs-deep-2, #0b3d5e); --deep-3: var(--bs-deep-3, #125279);
  --deep-ink: #e8fbff; --deep-muted: #a9cbdc; --deep-line: rgba(160, 230, 255, .16);
  --lagoon: var(--bs-lagoon, #14c6d0); --aqua: var(--bs-aqua, #5ff0e4); --coral: var(--bs-coral, #ff6b5e); --sun: var(--bs-sun, #ffcf3f); --violet: var(--bs-violet, #9a6bff);
  --bg: #f2f9fc; --surface: #fff; --surface-2: #e9f5f8; --ink: #0d2338; --muted: #4b6278; --line: #d5e6ee;
  --accent: #0a8f98; --accent-ink: #fff; --hot: #d8463a; --link: #0a6fb8; --focus: #ff6b5e;
  --shadow: 0 1px 2px rgba(6, 44, 71, .06), 0 6px 22px rgba(6, 44, 71, .08);
  --r: 18px; --r-s: 12px;
  --font: var(--bs-font, "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --font-display: var(--bs-display, "Fredoka", var(--font));
  --bs-header-h: 56px;
  --bs-avail-h: calc(100vh - var(--bs-header-h));
  --col: 760px;
  /* scrollbars (project rule): pill thumb in the accent colour, transparent track */
  --sb-thumb: rgba(10, 143, 152, .55); --sb-thumb-hover: rgba(10, 143, 152, .8); --sb-track: transparent;
  color-scheme: light;
}
@supports (height: 100dvh) { :root { --bs-avail-h: calc(100dvh - var(--bs-header-h)); } }
@media (min-width: 900px) { :root { --bs-header-h: 64px; } }
:root[data-theme="dark"] {
  --bg: #04192b; --surface: #0b2840; --surface-2: #0f3350; --ink: #e6f6fb; --muted: #9fbfcf; --line: #1c4462;
  --accent: #3fe3e0; --accent-ink: #04192b; --hot: #ff7d70; --link: #6fd8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
  --sb-thumb: rgba(95, 240, 228, .45); --sb-thumb-hover: rgba(95, 240, 228, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04192b; --surface: #0b2840; --surface-2: #0f3350; --ink: #e6f6fb; --muted: #9fbfcf; --line: #1c4462;
    --accent: #3fe3e0; --accent-ink: #04192b; --hot: #ff7d70; --link: #6fd8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    --sb-thumb: rgba(95, 240, 228, .45); --sb-thumb-hover: rgba(95, 240, 228, .7);
    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; --font-display: var(--font); }
:root:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif; --font-display: var(--font); }
:root:lang(ko) { --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --font-display: var(--font); }
/* Fredoka has no Cyrillic/Greek: headings fall back to Geologica there */
:root:lang(ru), :root:lang(uk), :root:lang(el) { --font-display: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 17px/1.65 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: 4px; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 600; font-family: var(--font-display); letter-spacing: 0; }
p { margin: 0 0 1em; }
.bs-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------ scrollbars (page + inner panels) */
html { scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: thin; }
  .bs-sdd__menu, .bs-lang__menu, .bs-mnav, .bs-table { scrollbar-color: var(--sb-thumb) transparent; scrollbar-width: thin; }
}
/* inner scrollbars of the dark menus: translucent white, kept inside the rounded panel */
.bs-sdd__menu, .bs-lang__menu, .bs-mnav { --sb-thumb: rgba(255, 255, 255, .32); --sb-thumb-hover: rgba(255, 255, 255, .55); }
.bs-sdd__menu::-webkit-scrollbar-thumb, .bs-lang__menu::-webkit-scrollbar-thumb { border-width: 3px 6px 3px 3px; }
.bs-sdd__menu::-webkit-scrollbar-track, .bs-lang__menu::-webkit-scrollbar-track { margin: 14px 0; }
.bs-table::-webkit-scrollbar { height: 12px; }

/* ------------------------------------------------------------ header (always deep lagoon) */
.bs-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--sun); color: #062c47; font-weight: 700; }
.bs-skip:focus { top: 8px; }
.bs-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, var(--deep-2), var(--deep)); color: var(--deep-ink); border-bottom: 1px solid var(--deep-line); }
.bs-header__in { display: flex; align-items: center; gap: 14px; height: var(--bs-header-h); max-width: 1240px; margin: 0 auto; padding: 0 14px; }
.bs-logo { display: inline-flex; align-items: center; color: #fff; text-decoration: none; margin-inline-end: auto; flex: none; }
.bs-logo__svg { display: block; height: 30px; width: auto; }
@media (min-width: 900px) { .bs-logo__svg { height: 34px; } }
@media (max-width: 420px) {
  .bs-header__in { gap: 8px; padding: 0 10px; }
  .bs-logo { flex: 0 1 auto; min-width: 0; }
  .bs-logo__svg { height: 24px; max-width: 100%; }
}
.bs-nav { display: none; align-items: center; gap: 2px; }
.bs-nav > a, .bs-sdd__btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; color: var(--deep-ink); text-decoration: none; font: 600 15px/1.2 var(--font); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.bs-nav > a:hover, .bs-sdd__btn:hover, .bs-sdd__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.bs-nav > a[aria-current="page"], .bs-sdd__btn.is-current { background: rgba(95, 240, 228, .16); color: var(--aqua); }
@media (min-width: 1100px) { .bs-nav { display: flex; } .bs-menu-btn { display: none !important; } }
.bs-tools { display: flex; align-items: center; gap: 6px; }
.bs-iconbtn, .bs-lang__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--deep-line); background: rgba(255, 255, 255, .06); color: var(--deep-ink); font: 600 14px/1 var(--font); cursor: pointer; }
.bs-iconbtn:hover, .bs-lang__btn:hover, .bs-lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
@media (max-width: 420px) { .bs-tools { gap: 4px; } .bs-iconbtn, .bs-lang__btn { height: 38px; min-width: 38px; padding: 0 8px; } }
.bs-theme-btn .bs-i--sun { display: none; }
:root[data-theme="dark"] .bs-theme-btn .bs-i--sun { display: block; } :root[data-theme="dark"] .bs-theme-btn .bs-i--moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bs-theme-btn .bs-i--sun { display: block; } :root:not([data-theme="light"]) .bs-theme-btn .bs-i--moon { display: none; } }
.bs-menu-btn .bs-i:last-child { display: none; }
.bs-menu-btn[aria-expanded="true"] .bs-i:first-child { display: none; } .bs-menu-btn[aria-expanded="true"] .bs-i:last-child { display: block; }
.bs-i--chev { width: 16px; height: 16px; transition: transform .18s ease; }
[aria-expanded="true"] > .bs-i--chev { transform: rotate(180deg); }

/* custom dropdowns (language, Modes): no native <select> */
.bs-sdd, .bs-lang { position: relative; }
.bs-sdd__menu, .bs-lang__menu { position: absolute; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; list-style: none; border-radius: 16px; background: var(--deep-2); border: 1px solid var(--deep-line); box-shadow: 0 18px 50px rgba(0, 20, 40, .45); overflow-y: auto; overscroll-behavior: contain; animation: bs-pop .16s ease-out; }
.bs-lang__menu { inset-inline-end: 0; width: 230px; max-height: min(420px, calc(100vh - 90px)); }
.bs-sdd__menu { inset-inline-start: 0; width: 300px; max-height: min(480px, calc(100vh - 90px)); }
.bs-sdd__menu[hidden], .bs-lang__menu[hidden] { display: none; }
.bs-sdd__menu a, .bs-lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--deep-ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
.bs-sdd__menu a:hover, .bs-sdd__menu a:focus-visible, .bs-lang__menu a:hover, .bs-lang__menu a:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.bs-sdd__menu a[aria-current], .bs-lang__menu a[aria-current] { background: rgba(95, 240, 228, .16); color: var(--aqua); font-weight: 600; }
.bs-lang__menu a[aria-current]::after { content: ""; margin-inline-start: auto; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.bs-sdd__menu .bs-i { margin-inline-start: auto; width: 18px; height: 18px; color: var(--aqua); }
.bs-modes__b { display: flex; flex-direction: column; min-width: 0; }
.bs-modes__n { font-weight: 600; }
.bs-modes__d { font-size: 13px; color: var(--deep-muted); }
.bs-modes__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 13%), radial-gradient(circle at 50% 50%, var(--c, var(--lagoon)) 0 62%, color-mix(in srgb, var(--c, var(--lagoon)) 70%, #000) 100%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .2); }
.bs-modes__dot--classic { --c: var(--lagoon); } .bs-modes__dot--levels { --c: var(--sun); } .bs-modes__dot--daily { --c: var(--coral); }
.bs-modes__dot--arcade { --c: var(--violet); } .bs-modes__dot--puzzle { --c: #3b8bff; } .bs-modes__dot--zen { --c: #4fd17a; }
@keyframes bs-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* mobile menu (burger) */
.bs-mnav { max-height: calc(100vh - var(--bs-header-h)); overflow-y: auto; padding: 8px 14px 18px; border-top: 1px solid var(--deep-line); background: var(--deep); animation: bs-pop .16s ease-out; }
.bs-mnav[hidden] { display: none; }
.bs-mnav__h { margin: 6px 4px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--deep-muted); }
.bs-mnav__modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-bottom: 10px; }
.bs-mnav__links { display: grid; gap: 2px; }
.bs-mnav a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--deep-ink); text-decoration: none; font-weight: 600; }
.bs-mnav__modes a { background: rgba(255, 255, 255, .06); }
.bs-mnav a:hover { background: rgba(255, 255, 255, .1); }
.bs-mnav a[aria-current="page"] { background: rgba(95, 240, 228, .16); color: var(--aqua); }
@media (prefers-reduced-motion: reduce) { .bs-sdd__menu, .bs-lang__menu, .bs-mnav { animation: none; } .bs-i--chev { transition: none; } }

/* ------------------------------------------------------------ game stage (always deep lagoon) */
.bs-arena { position: relative; padding: 0; color: var(--deep-ink); overflow: hidden;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 255, 255, .05) 18% 26%, transparent 26% 52%, rgba(255, 255, 255, .04) 52% 57%, transparent 57%),
    radial-gradient(120% 90% at 50% 0%, var(--deep-3) 0%, var(--deep-2) 42%, var(--deep) 78%); }
.bs-arena__in { position: relative; width: 100%; margin: 0 auto; }
/* the game box: phones = the whole first screen under the header; wider screens = a tall column (the original is a
   9:16 column in landscape), at most 900 px high. The game (or the original's iframe) fills it. */
.bs-game { position: relative; width: 100%; height: var(--bs-game-h); min-height: 420px; margin: 0 auto; --bs-game-h: var(--bs-avail-h); }
@media (min-width: 600px) {
  .bs-arena { padding: 14px 0; }
  .bs-game { --bs-game-h: min(calc(var(--bs-avail-h) - 28px), 900px); width: min(100%, calc(var(--bs-game-h) * .72)); }
}
@media (min-width: 600px) and (orientation: landscape) { .bs-game { width: min(100%, calc(var(--bs-game-h) * .62)); } }
/* skeleton until the game mounts (site.js removes it): same box, no layout shift */
.bs-boot { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.bs-boot__hud { display: flex; gap: 8px; height: 38px; }
.bs-boot__hud i { flex: 1; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.bs-boot__field { position: relative; flex: 1; border-radius: 16px; border: 1px solid var(--deep-line); background: rgba(4, 25, 43, .45); overflow: hidden; }
.bs-boot__bubbles { display: grid; gap: 0; padding: 3% 3% 0; }
.bs-boot__row { display: flex; justify-content: center; }
.bs-boot__row--odd { padding: 0 4.5%; }
.bs-boot__row b { flex: 0 0 9%; aspect-ratio: 1; margin: -.6% 0; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 10%, transparent 12%), var(--c, var(--lagoon)); }
.bs-boot__row b:nth-child(6n+1) { --c: var(--sun); } .bs-boot__row b:nth-child(6n+2) { --c: var(--coral); } .bs-boot__row b:nth-child(6n+3) { --c: var(--lagoon); }
.bs-boot__row b:nth-child(6n+4) { --c: var(--violet); } .bs-boot__row b:nth-child(6n+5) { --c: #3b8bff; } .bs-boot__row b:nth-child(6n) { --c: #4fd17a; }
.bs-boot__t { position: absolute; inset-inline: 0; top: 55%; text-align: center; color: var(--deep-muted); font-weight: 600; font-size: 15px; }
.bs-boot__cannon { position: absolute; left: 50%; bottom: 4%; width: 15%; aspect-ratio: 1.6; transform: translateX(-50%); border-radius: 999px 999px 10px 10px; background: linear-gradient(180deg, #cfe9f2, #7fa9bd); opacity: .6; }
.bs-noscript { margin: 12px; padding: 14px; border-radius: 12px; background: var(--coral); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------ hero (game pages: under the stage) */
.bs-gamehead { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 16px 6px; }
@media (min-width: 900px) { .bs-gamehead { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; padding-top: 30px; } }
.bs-hero h1 { font-size: clamp(30px, 4.8vw, 46px); font-weight: 700; }
.bs-lede { font-size: 18.5px; color: var(--muted); margin-bottom: 14px; }
.bs-points { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.bs-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.bs-points .bs-i { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); stroke-width: 3; }
.bs-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bs-sharebar__t { margin: 0; font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
:lang(ja) .bs-sharebar__t, :lang(zh-Hans) .bs-sharebar__t, :lang(ko) .bs-sharebar__t { text-transform: none; letter-spacing: 0; }
.bs-sharebar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-sbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .12s, border-color .12s; }
.bs-sbtn svg { width: 20px; height: 20px; fill: currentColor; }
.bs-sbtn .bs-i { fill: none; }
.bs-sbtn:hover { transform: translateY(-2px); border-color: var(--accent); }
.bs-sbtn--facebook:hover { color: #1877f2; } .bs-sbtn--whatsapp:hover { color: #25d366; } .bs-sbtn--telegram:hover { color: #229ed9; } .bs-sbtn--reddit:hover { color: #ff4500; }
.bs-flash { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--deep); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: reduce) { .bs-sbtn { transition: none; } .bs-sbtn:hover { transform: none; } }

/* rating card */
.bs-rate { position: relative; padding: 18px 18px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bs-rate::before { content: ""; position: absolute; inset-inline: 18px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--coral), var(--sun), var(--lagoon)); }
.bs-rate__t { margin: 0 0 4px; font-weight: 700; font-size: 18px; font-family: var(--font-display); }
.bs-rate__s { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bs-rate__stars { position: relative; display: inline-flex; gap: 2px; --show: var(--avg); }
.bs-rate__b { position: relative; z-index: 2; width: 40px; height: 40px; padding: 4px; border: 0; background: transparent; cursor: pointer; color: transparent; }
.bs-rate__b svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.4; }
.bs-rate__b:disabled { cursor: default; }
.bs-rate__fill { position: absolute; z-index: 1; inset-inline-start: 0; top: 0; display: flex; gap: 2px; height: 40px; overflow: hidden; pointer-events: none; color: var(--sun);
  width: calc(var(--show, 0) * 42px - 2px); max-width: 208px; }
.bs-rate__fill svg { flex: none; width: 40px; height: 40px; padding: 4px; fill: currentColor; filter: drop-shadow(0 0 3px rgba(255, 207, 63, .5)); }
.bs-rate__stars:has(.bs-rate__b:hover) .bs-rate__fill, .bs-rate__stars[style*="--show"] .bs-rate__fill { color: var(--coral); }
.bs-rate__sum { margin: 6px 0 0; font-weight: 700; font-size: 14.5px; }
.bs-rate__n { color: var(--muted); font-weight: 600; }
.bs-rate__msg { margin: 4px 0 0; min-height: 1.3em; font-size: 14px; color: var(--accent); font-weight: 700; }
.bs-rate__msg.is-err { color: var(--hot); }

/* ------------------------------------------------------------ content column */
.bs-content { max-width: var(--col); margin: 0 auto; padding: 8px 16px 30px; hyphens: auto; -webkit-hyphens: auto; }
.bs-content h1, .bs-content h2, .bs-content h3, .bs-content h4 { hyphens: manual; -webkit-hyphens: manual; }
.bs-steps > li, .bs-cards > li, .bs-tips > li, .bs-faq, .bs-related li { min-width: 0; overflow-wrap: anywhere; }
.bs-k-article .bs-content, .bs-k-doc .bs-content, .bs-k-legal .bs-content { padding-top: 26px; }
.bs-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.bs-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.bs-crumbs a { color: var(--muted); }
.bs-k-article .bs-hero, .bs-k-doc .bs-hero, .bs-k-legal .bs-hero { margin-bottom: 18px; }
.bs-sec { margin: 34px 0; }
.bs-sec > h2 { position: relative; font-size: clamp(23px, 3.2vw, 30px); padding-top: 18px; }
.bs-sec > h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 46px; height: 10px;
  background: radial-gradient(circle 5px at 5px 5px, var(--coral) 98%, transparent) 0 0 / 18px 10px no-repeat, radial-gradient(circle 5px at 5px 5px, var(--sun) 98%, transparent) 18px 0 / 18px 10px no-repeat, radial-gradient(circle 5px at 5px 5px, var(--lagoon) 98%, transparent) 36px 0 / 10px 10px no-repeat; }
.bs-sec h3 { font-size: 20px; margin-top: 1.2em; }
.bs-sec ul:not([class]), .bs-sec ol:not([class]) { padding-inline-start: 1.3em; margin: 0 0 1em; }
.bs-sec li { margin: .25em 0; }
.bs-sec li::marker { color: var(--accent); font-weight: 700; }
/* the old home blocks (heading levels as on the old page) */
.bs-h2text { font: 400 clamp(17.5px, 2vw, 19.5px)/1.65 var(--font) !important; color: var(--ink); padding: 0 !important; margin: 0 0 1em; }
.bs-h2text::before { display: none; }
.bs-sec--legacy > h3 { font-size: clamp(23px, 3.2vw, 30px); margin-top: 0; }
.bs-sec--legacy > h4 { font-size: clamp(20px, 2.6vw, 24px); margin: 0 0 .5em; }
.bs-numbered { counter-reset: n; display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.bs-numbered > li { counter-increment: n; position: relative; margin: 0; padding: 12px 16px; padding-inline-start: 62px; min-height: 54px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.bs-numbered > li::before { content: counter(n); position: absolute; inset-inline-start: 14px; top: 11px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font: 600 15px/1 var(--font-display);
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .7) 0 12%, transparent 14%), var(--c, var(--lagoon)); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .18); }
.bs-numbered > li:nth-child(6n+1)::before { --c: var(--coral); } .bs-numbered > li:nth-child(6n+2)::before { --c: #e0a400; } .bs-numbered > li:nth-child(6n+3)::before { --c: #0aa3ad; }
.bs-numbered > li:nth-child(6n+4)::before { --c: var(--violet); } .bs-numbered > li:nth-child(6n+5)::before { --c: #3b8bff; } .bs-numbered > li:nth-child(6n)::before { --c: #2fae5b; }
kbd { display: inline-block; min-width: 1.9em; padding: .05em .45em; border: 1px 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: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-inline-start: 4px solid var(--accent); }
.note > :last-child { margin-bottom: 0; }
.bs-table { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.bs-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.bs-table th, .bs-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.bs-table thead th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.bs-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .bs-table th, .bs-table td { min-width: 7.5em; } }
/* step cards */
.bs-steps { counter-reset: s; display: grid; gap: 12px; margin: 1.2em 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .bs-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.bs-steps > li { counter-increment: s; position: relative; margin: 0; padding: 54px 16px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bs-steps > li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #062c47; font: 600 15px/1 var(--font-display);
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .8) 0 12%, transparent 14%), var(--aqua); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .15); }
.bs-steps h3 { margin: 0 0 .3em; font-size: 18px; }
.bs-steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* card grid */
.bs-cards { display: grid; gap: 12px; margin: 1.2em 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .bs-cards { grid-template-columns: 1fr 1fr; } }
.bs-cards > li { margin: 0; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bs-cards h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 .35em; font-size: 18px; }
.bs-cards p { margin: 0 0 .5em; font-size: 15.5px; color: var(--muted); }
.bs-cards p:last-child { margin-bottom: 0; }
/* tips */
.bs-tips { counter-reset: t; display: grid; gap: 10px; margin: 1.2em 0; padding: 0; list-style: none; }
.bs-tips > li { counter-increment: t; position: relative; margin: 0; padding: 12px 16px; padding-inline-start: 58px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.bs-tips > li::before { content: counter(t); position: absolute; inset-inline-start: 14px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hot); color: #fff; font: 600 14px/1 var(--font-display); }
/* FAQ */
.bs-faqs { display: grid; gap: 10px; margin: 1em 0; }
.bs-faq { border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.bs-faq summary { position: relative; list-style: none; cursor: pointer; padding: 14px 18px; padding-inline-end: 48px; font-weight: 700; }
.bs-faq summary::-webkit-details-marker { display: none; }
.bs-faq summary::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .15s; }
.bs-faq[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.bs-faq > :not(summary) { margin: 0 18px 14px; }
.bs-faq ul { padding-inline-start: 1.2em; }
@media (prefers-reduced-motion: reduce) { .bs-faq summary::after { transition: none; } }

/* inline bubble icons (span.bs-bubble -> .st-ic) and mini boards (div.bs-board -> figure.st-fig), drawn by lib/boards.mjs */
.st-ic { display: inline-block; vertical-align: -.22em; line-height: 0; }
.st-ic svg { width: 1.2em; height: 1.2em; overflow: visible; }
.bs-cards h3 .st-ic svg { width: 1.45em; height: 1.45em; }
.st-fig { margin: 1.4em auto; text-align: center; }
.st-fig .stf { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(95, 240, 228, .22), 0 12px 30px rgba(6, 44, 71, .25); }
.st-fig figcaption { max-width: 520px; margin: 10px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bs-cards .st-fig { margin: .6em 0; }
/* board-css-start */
.stb { --c: #14c6d0; }
.stb--yellow { --c: #ffcf3f; } .stb--red { --c: #ff5a4e; } .stb--turquoise { --c: #18cfc6; } .stb--purple { --c: #a46bff; } .stb--blue { --c: #3b8bff; } .stb--green { --c: #4fd17a; }
.stb--bomb { --c: #34404f; } .stb--fireball { --c: #ff7a1a; } .stb--lightning { --c: #5d5bff; } .stb--rainbow { --c: #ffffff; }
.stb__b { fill: var(--c); }
.stb__w { fill: var(--w); opacity: .95; }
.stb__w--yellow { --w: #ffcf3f; } .stb__w--red { --w: #ff5a4e; } .stb__w--purple { --w: #a46bff; } .stb__w--blue { --w: #3b8bff; } .stb__w--turquoise { --w: #18cfc6; } .stb__w--green { --w: #4fd17a; }
.stb__in { fill: #fff; opacity: .16; }
.stb__hi { fill: #fff; opacity: .85; }
.stb__rim { fill: none; stroke: #000; stroke-opacity: .2; stroke-width: 1; }
.stb__glyph { fill: #fff; }
.stb__core { fill: #11161e; }
.stb__fuse { fill: none; stroke: #ffd36b; stroke-width: 1.4; stroke-linecap: round; }
.stb__spark { fill: #ffcf3f; }
.stb__ring { fill: none; stroke: #fff; stroke-width: 2; opacity: .9; }
.stb__burst { stroke: #ffcf3f; stroke-width: 2; stroke-linecap: round; }
.stb.is-drop { opacity: .55; }
.stf__s1 { stop-color: #0d4566; } .stf__s2 { stop-color: #062c47; }
.stf__ray { fill: #fff; opacity: .05; }
.stf__wall { fill: none; stroke: rgba(160, 230, 255, .35); stroke-width: 3; }
.stf__line { stroke: #ff6b5e; stroke-width: 1.6; stroke-dasharray: 5 4; }
.stf__fall { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.stf__ghost { fill: rgba(255, 255, 255, .08); stroke: #fff; stroke-opacity: .8; stroke-width: 1.4; stroke-dasharray: 3 3; }
.stf__aim { fill: none; stroke: #fff; stroke-opacity: .85; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.stf__arr { fill: #fff; }
.stf__barrel { fill: #cfe9f2; } .stf__barrelhi { fill: #fff; opacity: .7; } .stf__base { fill: #7fa9bd; }
.stf__nextbg { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .25); }
/* board-css-end */

/* ads: placeholders stay empty until Ezoic fills them */
[id^="ezoic-pub-ad-placeholder-"] { max-width: 1080px; margin: 0 auto; text-align: center; }
.bs-content [id^="ezoic-pub-ad-placeholder-"] { margin: 0 auto; }

/* related, CTA */
.bs-related { margin: 40px 0 0; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.bs-related h2 { font-size: 21px; }
.bs-related ul { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 560px) { .bs-related ul { grid-template-columns: 1fr 1fr; } }
.bs-related li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-weight: 600; text-decoration: none; }
.bs-related li a:hover { color: var(--link); }
.bs-related li .bs-i { width: 18px; height: 18px; color: var(--accent); }
.bs-related p { margin: 0; }
.bs-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: linear-gradient(90deg, var(--coral), #ff8a4c); color: #fff; font: 600 17px/1.2 var(--font-display); text-decoration: none; box-shadow: 0 8px 22px rgba(255, 107, 94, .35); }
.bs-cta:hover { filter: brightness(1.06); }
.bs-cta .bs-i { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* More games ("Play Other Games") */
.bs-more { max-width: 1080px; margin: 10px auto 44px; padding: 0 16px; }
.bs-content .bs-more { margin: 34px 0; padding: 0; }
.bs-more h2 { font-size: clamp(23px, 3.2vw, 30px); }
.bs-more__grid { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bs-pcard { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s; }
.bs-pcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.bs-pcard img { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.bs-pcard__b { display: flex; flex-direction: column; min-width: 0; }
.bs-pcard__t { font-weight: 700; line-height: 1.3; }
.bs-pcard__s { color: var(--muted); font-size: 14px; line-height: 1.4; }
.bs-pcard--new { border-color: color-mix(in srgb, var(--coral) 50%, var(--line)); }
.bs-pcard__new { position: absolute; inset-inline-end: 10px; top: -9px; padding: 2px 8px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 11px/1.5 var(--font); letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .bs-pcard { transition: none; } .bs-pcard:hover { transform: none; } }

/* contact form (markup of the shared feedback widget) */
.bs-formcard { margin: 20px 0 10px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fb-row { margin-bottom: 14px; }
.fb-row label { display: block; margin-bottom: 6px; font-weight: 700; }
.fb-note { color: var(--muted); font-weight: 500; font-size: 14px; }
.fb-input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.fb-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
textarea.fb-input { resize: vertical; }
.fb-btn { padding: 12px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--font-display); cursor: pointer; }
[data-feedback-status] { margin: 10px 0 0; font-weight: 700; }

/* legal */
.bs-legal h2 { font-size: 22px; margin-top: 1.6em; }
.bs-legal h3 { font-size: 18px; margin-top: 1.2em; }
.bs-legal .bs-sec { margin: 20px 0; }
.bs-legal .bs-sec > h2::before { display: none; }
.bs-legal .bs-sec > h2 { padding-top: 0; }

/* 404 */
.bs-main--404 { display: flex; align-items: center; }
.bs-404 { width: 100%; min-width: 0; max-width: 560px; margin: 0 auto; padding: 36px 16px 60px; text-align: center; overflow-wrap: anywhere; }
.bs-404__pic { max-width: 280px; margin: 0 auto 18px; }
.bs-404__pic .stf { display: block; width: 100%; height: auto; border-radius: 14px; }
.bs-404__oops { margin: 0 0 4px; font: 700 18px/1.4 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--hot); }
:lang(ja) .bs-404__oops, :lang(zh-Hans) .bs-404__oops, :lang(ko) .bs-404__oops { letter-spacing: 0; }
.bs-404 h1 { font-size: clamp(26px, 5vw, 38px); }
.bs-404__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bs-404__more a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------ footer (always deep lagoon) */
.bs-foot { position: relative; margin-top: 30px; background: var(--deep); color: var(--deep-muted); font-size: 15px; }
.bs-foot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--coral), var(--sun) 50%, var(--lagoon)); }
.bs-foot a { color: var(--deep-ink); text-decoration: none; }
.bs-foot a:hover { color: var(--aqua); }
.bs-foot__in { display: grid; gap: 26px; max-width: 1080px; margin: 0 auto; padding: 38px 16px 18px; }
@media (min-width: 760px) { .bs-foot__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.bs-foot__brand p { margin: 12px 0 0; line-height: 1.55; }
.bs-logo--foot { display: inline-flex; margin: 0; }
.bs-foot__col h2 { margin: 0 0 10px; color: var(--deep-ink); font: 600 13px/1.3 var(--font); text-transform: uppercase; letter-spacing: .1em; }
:lang(ja) .bs-foot__col h2, :lang(zh-Hans) .bs-foot__col h2, :lang(ko) .bs-foot__col h2 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.bs-foot__col ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bs-foot__en { color: var(--deep-muted); font-size: 13px; }
.bs-foot__langs { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 1080px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--deep-line); font-size: 14px; }
.bs-foot__langs a[aria-current="true"] { color: var(--aqua); }
.bs-foot__bottom { max-width: 1080px; margin: 0 auto; padding: 14px 16px 30px; border-top: 1px solid var(--deep-line); font-size: 13.5px; line-height: 1.55; }
.bs-foot__bottom p { margin: 0 0 6px; }
.bs-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; } .bs-lede { font-size: 17px; } }
