/* Sprunki.game site styles. Dark "stage" around the game (header, game area, footer), light readable article area
   with a dark theme (html[data-theme=dark], or the system setting until the visitor chooses). The game styles itself
   under .sg-game (/play/sg.css); fonts come from /play/theme.css (--sg-font, --sg-display). Logical properties
   everywhere, so Arabic (dir=rtl) mirrors without extra rules. */

:root {
  --ink: #16112e; --stage1: #221a55; --stage2: #120d29;
  --orange: #ff7a1a; --pink: #ff4f9a; --violet: #7c5cff; --lime: #c8f53a; --cyan: #38d6ff; --yellow: #ffd23f;
  --bg: #f7f4ff; --surface: #ffffff; --surface2: #f0ebff; --text: #1d1838; --muted: #5d5878; --line: #e4ddf5;
  --accent: #6a46f0; --accent-ink: #ffffff; --link: #5a35e6; --hot: #d9264f; --warn-bg: #fff1e6; --warn-line: #ffb27a; --note-bg: #eef7ff; --note-line: #9fd4ff;
  --shadow: 0 1px 2px rgba(22, 17, 46, .06), 0 8px 28px rgba(22, 17, 46, .08);
  --r: 18px; --r-s: 12px; --head-h: 64px; --wrap: 1200px; --text-w: 780px;
  --font: var(--sg-font, "Nunito", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --display: var(--sg-display, var(--font));
  --sb-thumb: rgba(106, 70, 240, .55); --sb-thumb-hover: rgba(106, 70, 240, .8); --sb-track: transparent;
  --sb-page-thumb: var(--sb-thumb); --sb-page-thumb-hover: var(--sb-thumb-hover);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #120d29; --surface: #1c1640; --surface2: #251d52; --text: #efeaff; --muted: #b3abd6; --line: #31296a;
  --accent: #8f74ff; --accent-ink: #120d29; --link: #b4a3ff; --hot: #ff6b8b; --warn-bg: #2c1a2a; --warn-line: #a7543a; --note-bg: #17233d; --note-line: #2f5f8f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --sb-thumb: rgba(255, 255, 255, .28); --sb-thumb-hover: rgba(255, 255, 255, .45); --sb-page-thumb: rgba(255, 255, 255, .28); --sb-page-thumb-hover: rgba(255, 255, 255, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #120d29; --surface: #1c1640; --surface2: #251d52; --text: #efeaff; --muted: #b3abd6; --line: #31296a;
    --accent: #8f74ff; --accent-ink: #120d29; --link: #b4a3ff; --hot: #ff6b8b; --warn-bg: #2c1a2a; --warn-line: #a7543a; --note-bg: #17233d; --note-line: #2f5f8f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --sb-thumb: rgba(255, 255, 255, .28); --sb-thumb-hover: rgba(255, 255, 255, .45); --sb-page-thumb: rgba(255, 255, 255, .28); --sb-page-thumb-hover: rgba(255, 255, 255, .45);
    color-scheme: dark;
  }
}
/* scripts without a good web font: system stacks */
html:lang(ar) { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; --display: var(--font); }
html:lang(hi) { --font: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", Mangal, system-ui, sans-serif; --display: var(--font); }
html:lang(th) { --font: "Leelawadee UI", "Noto Sans Thai", Thonburi, Tahoma, system-ui, sans-serif; --display: var(--font); }
html:lang(zh-Hans) { --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif; --display: var(--font); }
html:lang(ja) { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif; --display: var(--font); }
html:lang(ko) { --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --display: var(--font); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 500 17px/1.65 var(--font); }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -.01em; }
.sg-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .sg-i--flip { transform: scaleX(-1); }

/* ---------- scrollbars (pill thumb, transparent track; inner bars in panels) */
html { scrollbar-gutter: auto; }
::-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; }
.sg-navdd__list::-webkit-scrollbar, .sg-lang__menu::-webkit-scrollbar, .sg-mnav::-webkit-scrollbar, .sg-table::-webkit-scrollbar { width: 14px; height: 12px; }
.sg-navdd__list::-webkit-scrollbar-thumb, .sg-lang__menu::-webkit-scrollbar-thumb, .sg-mnav::-webkit-scrollbar-thumb { border: 3px solid transparent; border-inline-end-width: 6px; }
.sg-navdd__list::-webkit-scrollbar-track, .sg-lang__menu::-webkit-scrollbar-track { margin: 10px 0; }
.sg-header, .sg-foot, .sg-arena { --sb-thumb: rgba(255, 255, 255, .3); --sb-thumb-hover: rgba(255, 255, 255, .5); }
/* panels in the dark header have the page surface: thumb of the theme again */
.sg-navdd__panel, .sg-lang__panel { --sb-thumb: var(--sb-page-thumb); --sb-thumb-hover: var(--sb-page-thumb-hover); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sb-thumb) transparent; }
  .sg-navdd__list, .sg-lang__menu, .sg-mnav, .sg-table { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
}

/* ---------- header (always dark: part of the stage) */
.sg-skip { position: absolute; z-index: 100; inset-inline-start: 12px; top: -60px; padding: 10px 16px; border-radius: 0 0 12px 12px; background: var(--orange); color: var(--ink); font-weight: 800; text-decoration: none; }
.sg-skip:focus { top: 0; }
.sg-header { position: sticky; top: 0; z-index: 50; background: rgba(22, 17, 46, .94); color: #f4f0ff; border-bottom: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.sg-header__in { display: flex; align-items: center; gap: 16px; max-width: var(--wrap); height: var(--head-h); margin: 0 auto; padding: 0 16px; }
.sg-logo { display: inline-flex; align-items: center; flex: none; border-radius: 10px; line-height: 0; }
.sg-logo__svg { display: block; width: auto; height: 32px; }
.sg-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.sg-nav > a, .sg-navdd__btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #e9e3ff; font-weight: 800; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sg-nav > a:hover, .sg-navdd__btn:hover, .sg-navdd.is-open .sg-navdd__btn { background: rgba(255, 255, 255, .1); color: #fff; }
.sg-nav > a[aria-current="page"], .sg-navdd__btn.is-here { color: var(--ink); background: var(--lime); }
.sg-i--chev { width: 16px; height: 16px; transition: transform .18s ease; }
.is-open > button .sg-i--chev, [aria-expanded="true"] > .sg-i--chev { transform: rotate(180deg); }
.sg-navdd, .sg-lang { position: relative; }
.sg-navdd__panel, .sg-lang__panel {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-start: 0; min-width: 240px; padding: 8px; border-radius: 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(12, 8, 30, .35);
  animation: sg-pop .16s ease-out; overflow: hidden;
}
.sg-navdd--mods .sg-navdd__panel { min-width: 420px; }
@keyframes sg-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.sg-navdd__list, .sg-lang__menu { list-style: none; margin: 0; padding: 0; max-height: min(64vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.sg-navdd--mods .sg-navdd__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.sg-navdd__list a, .sg-lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.sg-navdd__list a:hover, .sg-navdd__list a:focus-visible, .sg-lang__menu a:hover, .sg-lang__menu a:focus-visible { background: var(--surface2); outline: none; }
.sg-navdd__list a[aria-current], .sg-lang__menu a[aria-current] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.sg-lang__menu .sg-i { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }
.sg-navdd__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface2); color: var(--accent); font-weight: 800; text-decoration: none; }
.sg-navdd__all:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.sg-ptools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.sg-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.sg-iconbtn:hover { background: rgba(255, 255, 255, .16); }
.sg-theme-btn .sg-i--sun { display: none; }
html[data-theme="dark"] .sg-theme-btn .sg-i--sun { display: block; }
html[data-theme="dark"] .sg-theme-btn .sg-i--moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .sg-theme-btn .sg-i--sun { display: block; }
  html:not([data-theme="light"]) .sg-theme-btn .sg-i--moon { display: none; }
}
.sg-lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 800; cursor: pointer; }
.sg-lang__btn:hover, .sg-lang.is-open .sg-lang__btn { background: rgba(255, 255, 255, .16); }
.sg-lang__code { font-size: 14px; letter-spacing: .04em; }
.sg-lang__panel { inset-inline-start: auto; inset-inline-end: 0; width: 270px; }
.sg-lang__q { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--surface2); color: var(--muted); }
.sg-lang__q:focus-within { outline: 2px solid var(--accent); }
.sg-lang__q input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 600 15.5px var(--font); outline: none; }
.sg-lang__q input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.sg-lang__menu { max-height: min(56vh, 420px); }
.sg-menu-btn { display: none; }
.sg-menu-btn .sg-i:last-child, .sg-menu-btn[aria-expanded="true"] .sg-i:first-child { display: none; }
.sg-menu-btn[aria-expanded="true"] .sg-i:last-child { display: block; }
.sg-mnav { position: absolute; z-index: 55; inset-inline: 0; top: 100%; max-height: calc(100vh - var(--head-h)); max-height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.sg-mnav__in { display: grid; gap: 18px; max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 24px; }
.sg-mnav__play a { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 900; text-decoration: none; }
.sg-mnav__h { margin: 0 0 6px; color: #a99fd8; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sg-mnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.sg-mnav li a { display: block; padding: 9px 12px; border-radius: 10px; color: #f1ecff; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .05); }
.sg-mnav li a:hover, .sg-mnav li a[aria-current] { background: rgba(255, 255, 255, .14); }
@media (max-width: 1099.98px) {
  .sg-nav { display: none; }
  .sg-menu-btn { display: inline-grid; }
}
@media (max-width: 420px) {
  .sg-header__in { gap: 8px; padding: 0 10px; }
  .sg-logo__svg { height: 28px; }
  .sg-lang__btn { padding: 0 10px; }
  .sg-lang__btn > .sg-i--chev { display: none; }
}

/* ---------- game block */
.sg-arena { position: relative; background: radial-gradient(120% 90% at 50% -10%, #3a2a8a 0%, var(--stage1) 42%, var(--stage2) 100%); color: #f4f0ff; padding: 12px 12px 18px; }
.sg-arena::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--pink), var(--violet), var(--cyan), var(--lime)); }
.sg-arena__in { max-width: var(--wrap); margin: 0 auto; }
/* reserved box: the game never shifts the layout; it fills the first screen on phones */
.sg-arena .sg-game { position: relative; width: 100%; height: min(calc(100vh - var(--head-h) - 40px), 720px); min-height: 440px; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, .06), 0 24px 70px rgba(0, 0, 0, .45); }
@supports (height: 100svh) { .sg-arena .sg-game { height: min(calc(100svh - var(--head-h) - 40px), 720px); } }
@media (max-width: 640px) {
  .sg-arena { padding: 0 0 14px; }
  .sg-arena .sg-game { border-radius: 0; height: calc(100vh - var(--head-h)); min-height: 460px; box-shadow: none; }
  @supports (height: 100svh) { .sg-arena .sg-game { height: calc(100svh - var(--head-h)); } }
}
.sg-boot { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; background: linear-gradient(180deg, rgba(43, 33, 99, .82), rgba(18, 13, 41, .92)), var(--poster, none) center / cover no-repeat, var(--ink); }
.sg-boot__stage { position: relative; display: grid; place-items: center; }
.sg-boot__slots { position: absolute; inset-inline: 6%; bottom: 14%; display: flex; justify-content: space-between; gap: 2%; }
.sg-boot__slots i { flex: 1; max-width: 90px; aspect-ratio: 1 / 2.3; border-radius: 40px 40px 18px 18px; background: rgba(255, 255, 255, .07); border: 2px dashed rgba(255, 255, 255, .16); }
.sg-boot__t { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(22, 17, 46, .7); font-weight: 800; }
.sg-boot__t .sg-i { color: var(--lime); animation: sg-bob 1s ease-in-out infinite alternate; }
.sg-boot__bar { display: flex; gap: 8px; padding: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.sg-boot__bar i { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
@keyframes sg-bob { to { transform: translateY(-4px) rotate(-8deg); } }
.sg-noscript { position: absolute; inset-inline: 16px; bottom: 90px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-align: center; }

.sg-gamehead { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; max-width: var(--wrap); margin: 0 auto; padding: 24px 16px 8px; }
@media (max-width: 900px) { .sg-gamehead { grid-template-columns: 1fr; gap: 16px; } }
.sg-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; }
.sg-lede { margin: 0 0 12px; font-size: 18.5px; color: var(--muted); max-width: 760px; }
.sg-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.sg-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.sg-points .sg-i { margin-top: 4px; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.sg-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.sg-sharebar__t { margin: 0; font-weight: 800; color: var(--muted); font-size: 14.5px; }
.sg-sharebar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-sbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: var(--surface2); color: var(--text); cursor: pointer; transition: transform .12s ease, background .12s ease; }
.sg-sbtn svg { width: 18px; height: 18px; fill: currentColor; }
.sg-sbtn .sg-i { fill: none; }
.sg-sbtn:hover { transform: translateY(-2px); color: #fff; }
.sg-sbtn--facebook:hover { background: #1877f2; } .sg-sbtn--x:hover { background: #000; } .sg-sbtn--whatsapp:hover { background: #25d366; }
.sg-sbtn--telegram:hover { background: #26a5e4; } .sg-sbtn--reddit:hover { background: #ff4500; } .sg-sbtn--copy:hover { background: var(--accent); }
.sg-flash { position: fixed; z-index: 90; inset-inline-start: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
[dir="rtl"] .sg-flash { transform: translateX(50%); }

/* rating */
.sg-rate { position: relative; padding: 18px 18px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sg-rate::before { content: ""; position: absolute; inset-inline: 18px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--orange), var(--pink), var(--violet)); }
.sg-rate__t { margin: 0 0 4px; font-weight: 900; font-size: 18px; }
.sg-rate__s { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sg-rate__stars { position: relative; display: inline-flex; gap: 2px; --show: var(--avg); }
.sg-rate__b { position: relative; z-index: 2; width: 40px; height: 40px; padding: 4px; border: 0; background: transparent; cursor: pointer; color: transparent; }
.sg-rate__b svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--muted); stroke-opacity: .55; stroke-width: 1.4; }
.sg-rate__b:disabled { cursor: default; }
.sg-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(--yellow); width: calc(var(--show, 0) * 42px - 2px); max-width: 208px; }
.sg-rate__fill svg { flex: none; width: 40px; height: 40px; padding: 4px; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255, 210, 63, .5)); }
.sg-rate__stars:has(.sg-rate__b:hover) .sg-rate__fill, .sg-rate__stars[style*="--show"] .sg-rate__fill { color: var(--orange); }
.sg-rate__sum { margin: 6px 0 0; font-weight: 800; font-size: 14.5px; }
.sg-rate__n { color: var(--muted); font-weight: 600; }
.sg-rate__msg { margin: 4px 0 0; min-height: 1.3em; font-size: 14px; color: var(--accent); font-weight: 800; }
.sg-rate__msg.is-err { color: var(--hot); }

/* ---------- content */
.sg-main--page { padding: 8px 0 24px; }
.sg-content { max-width: var(--text-w); margin: 0 auto; padding: 0 16px; }
.sg-main--page .sg-hero { padding: 18px 0 8px; }
.sg-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 10px; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.sg-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.sg-crumbs a { color: var(--muted); text-decoration: none; }
.sg-crumbs a:hover { color: var(--link); text-decoration: underline; }
[id^="ezoic-pub-ad-placeholder-"] { max-width: 1080px; margin: 0 auto; text-align: center; }
.sg-psec { margin: 34px 0; }
.sg-psec h2 { position: relative; margin: 0 0 14px; padding-bottom: 10px; font-size: clamp(23px, 3vw, 30px); font-weight: 900; }
.sg-psec h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--pink)); }
.sg-psec h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 800; }
.sg-psec p, .sg-psec ul, .sg-psec ol { margin: 0 0 14px; }
.sg-psec li { margin: 4px 0; }
.sg-psec strong { font-weight: 800; }
kbd { display: inline-block; min-width: 1.7em; padding: 1px 7px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface); font: 700 .86em/1.5 var(--font); text-align: center; }
img.sg-cicon { display: inline-block; width: 44px; height: 44px; margin: 0 6px; vertical-align: middle; border-radius: 12px; background: var(--surface2); object-fit: contain; }
.sg-steps { list-style: none; counter-reset: st; padding: 0; display: grid; gap: 12px; }
.sg-steps > li { counter-increment: st; position: relative; margin: 0; padding: 16px 18px 14px; padding-inline-start: 66px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sg-steps > li::before { content: counter(st); position: absolute; inset-inline-start: 16px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; font: 900 18px/1 var(--display); }
.sg-steps > li > h3 { margin: 4px 0 4px; font-size: 18.5px; }
.sg-steps > li > p:last-child { margin-bottom: 0; }
.sg-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sg-cards > li { margin: 0; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 4px solid var(--violet); }
.sg-cards > li:nth-child(4n+2) { border-top-color: var(--orange); } .sg-cards > li:nth-child(4n+3) { border-top-color: var(--pink); } .sg-cards > li:nth-child(4n+4) { border-top-color: var(--cyan); }
.sg-cards > li > h3 { margin: 0 0 6px; font-size: 18px; }
.sg-cards > li > p:last-child { margin-bottom: 0; }
.sg-tips { list-style: none; padding: 0; }
.sg-tips > li { position: relative; padding-inline-start: 34px; margin: 10px 0; }
.sg-tips > li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .3em; width: 20px; height: 20px; border-radius: 7px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V6l10-2v12' fill='none' stroke='%2316112e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='6.5' cy='18' r='2.5' fill='%2316112e'/%3E%3Ccircle cx='16.5' cy='16' r='2.5' fill='%2316112e'/%3E%3C/svg%3E") center / 14px no-repeat; }
.note, .warn { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--note-line); border-inline-start-width: 5px; background: var(--note-bg); }
.warn { position: relative; border-color: var(--warn-line); background: var(--warn-bg); padding-inline-start: 50px; }
.sg-warn__i { position: absolute; inset-inline-start: 16px; top: 15px; color: var(--orange); width: 22px; height: 22px; }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }
.sg-faqs { display: grid; gap: 10px; }
.sg-faq { border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sg-faq summary { position: relative; padding: 14px 18px; padding-inline-end: 52px; font-weight: 800; cursor: pointer; list-style: none; border-radius: var(--r-s); }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 999px; background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236a46f0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .18s ease; }
.sg-faq[open] summary::after { transform: rotate(180deg); }
.sg-faq > :not(summary) { margin: 0 18px 14px; }
.sg-table { overflow-x: auto; margin: 0 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); }
.sg-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sg-table th, .sg-table td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.sg-table th { background: var(--surface2); font-weight: 800; }
.sg-table tr:last-child td { border-bottom: 0; }
.sg-content--doc { padding-bottom: 20px; }
.sg-legal h2 { font-size: 22px; }

/* mod cards */
.sg-modsec, .sg-more { max-width: var(--wrap); margin: 34px auto; padding: 0 16px; }
.sg-modsec h2, .sg-more h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 30px); font-weight: 900; }
.sg-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sg-content .sg-mods { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.sg-mods > li { margin: 0; }
.sg-mcard { display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .14s ease, box-shadow .14s ease; }
.sg-mcard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(22, 17, 46, .18); }
.sg-mcard__img { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #2b2163, #120d29); }
.sg-mcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-mcard__ph { display: block; width: 100%; height: 100%; }
.sg-mcard__b { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.sg-mcard__t { font: 900 18px/1.2 var(--display); }
.sg-mcard__s { color: var(--muted); font-size: 14.5px; line-height: 1.45; flex: 1; }
.sg-mcard__go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 900; font-size: 14.5px; }
.sg-mcard__go .sg-i { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* more games */
.sg-more__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sg-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); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .14s ease; }
.sg-pcard:hover { transform: translateY(-2px); }
.sg-pcard img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.sg-pcard__b { display: flex; flex-direction: column; min-width: 0; }
.sg-pcard__t { font-weight: 900; }
.sg-pcard__s { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.sg-pcard--new { border-color: color-mix(in srgb, var(--pink) 55%, var(--line)); }
.sg-pcard__new { position: absolute; top: -8px; inset-inline-end: 12px; padding: 2px 9px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .05em; }

/* related + CTA */
.sg-related { margin: 36px 0 10px; padding: 18px; border-radius: var(--r); background: var(--surface2); }
.sg-related h2 { margin: 0 0 12px; font-size: 21px; font-weight: 900; }
.sg-related ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sg-related li a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 800; text-decoration: none; border: 1px solid var(--line); }
.sg-related li a .sg-i { width: 16px; height: 16px; color: var(--accent); }
.sg-related p { margin: 0; }
.sg-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px 12px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 8px 24px rgba(255, 79, 154, .3); }
.sg-cta .sg-i { fill: currentColor; stroke: none; }
.sg-cta:hover { filter: brightness(1.06); }

/* contact form (feedback relay widget) */
.sg-formcard { margin: 20px 0; 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: 800; }
.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(--text); font: inherit; font-size: 16px; }
.fb-input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.fb-input[type="file"] { padding: 9px; }
.fb-input[type="file"]::file-selector-button { margin-inline-end: 10px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--surface2); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.fb-btn { padding: 13px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 900 16px/1 var(--font); cursor: pointer; }
.fb-btn:hover { filter: brightness(1.08); }

/* 404 */
.sg-main--404 { display: grid; place-items: center; padding: 40px 16px 60px; }
.sg-404 { max-width: 620px; text-align: center; }
.sg-404__pic svg { width: 220px; height: auto; }
.sg-eq { animation: sg-eq 1.1s ease-in-out infinite alternate; animation-delay: var(--d); transform-origin: 50% 100%; transform-box: fill-box; }
.sg-eq--0 { fill: var(--orange); } .sg-eq--1 { fill: var(--pink); } .sg-eq--2 { fill: var(--violet); } .sg-eq--3 { fill: var(--cyan); }
@keyframes sg-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.sg-404__oops { margin: 10px 0 0; color: var(--pink); font: 900 20px var(--display); }
.sg-404 h1 { margin: 6px 0 10px; font-size: clamp(28px, 5vw, 40px); }
.sg-404__more { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; }
.sg-404__more a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface2); font-weight: 800; text-decoration: none; }

/* ---------- footer (dark) */
.sg-foot { margin-top: 40px; background: var(--ink); color: #cfc8ee; font-size: 15.5px; }
.sg-foot a { color: #f1ecff; text-decoration: none; }
.sg-foot a:hover { text-decoration: underline; }
.sg-foot__in { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 36px 16px 20px; }
.sg-foot__brand p { margin: 12px 0 0; max-width: 300px; }
.sg-foot h2 { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sg-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sg-foot__col--mods ul { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.sg-foot__en { color: #9b92c4; font-size: 13px; }
.sg-foot__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: var(--wrap); margin: 0 auto; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; }
.sg-foot__langs a[aria-current] { color: var(--lime); font-weight: 800; }
.sg-foot__bottom { max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: #a39bc9; }
.sg-foot__bottom p { margin: 0 0 6px; }
.sg-foot__tm a { color: #fff; text-decoration: underline; }
@media (max-width: 980px) { .sg-foot__in { grid-template-columns: 1fr 1fr; } .sg-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sg-foot__in { grid-template-columns: 1fr; } .sg-foot__col--mods ul { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .sg-gamehead { padding-top: 18px; }
  .sg-navdd--mods .sg-navdd__panel { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .sg-header, .sg-arena, .sg-foot, [id^="ezoic-pub-ad-placeholder-"], .sg-more { display: none !important; } }
