/* 2248Game.com site styles. Design tokens (--gg-*), fonts and tile colours come from theme.css (owned by the game,
   loaded before this file). Mobile first; light theme by default, dark via html[data-theme="dark"] or the system. */

:root { --hdr: 56px; --wrap: 760px; --gap: 16px; --head-bg: #5b5ed5; --foot-bg: #1f1b45; --foot-ink: #cfcde6; --foot-soft: #9894c2; }
html[data-theme="dark"] { --head-bg: #262163; --foot-bg: #0d0b22; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --head-bg: #262163; --foot-bg: #0d0b22; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; min-height: 100vh; font-family: var(--gg-font); font-size: 17px; line-height: 1.6; color: var(--gg-ink);
  background: var(--gg-bg) var(--gg-bg-image) no-repeat; background-attachment: fixed; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
:is(main, .gg-foot) :is(p, li, td, summary):is(:lang(de), :lang(nl), :lang(pl), :lang(ru), :lang(tr), :lang(id)) { hyphens: auto; }
:lang(ja) body, :lang(zh) body, :lang(ko) body { line-height: 1.75; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(th) body { line-height: 1.8; }
a { color: var(--gg-link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--gg-focus); border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.gg-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gg-i { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gg-skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gg-card); color: var(--gg-ink); font-weight: 800; }
.gg-skip:focus { top: 8px; }

/* ---------------------------------------------------------------- header */
.gg-header { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: var(--head-bg); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 4px 18px rgba(30, 20, 90, .2); }
.gg-header__in { display: flex; align-items: center; gap: 8px; height: var(--hdr); max-width: 1240px; margin: 0 auto; padding: 0 8px 0 14px; }
.gg-logo { display: flex; align-items: center; flex: 0 0 auto; color: #fff; text-decoration: none; border-radius: 8px; }
.gg-logo__svg { display: block; height: 32px; width: auto; }
.gg-nav { display: none; align-items: center; gap: 2px; margin-left: 14px; min-width: 0; }
.gg-nav a, .gg-mnav a { color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; border-radius: 10px; }
.gg-nav a { padding: 7px 11px; font-size: 15.5px; opacity: .92; }
.gg-nav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.gg-nav a[aria-current="page"] { background: rgba(255, 255, 255, .2); opacity: 1; }
.gg-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gg-iconbtn, .gg-lang__btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; min-width: 40px; padding: 0 8px;
  border: 0; border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.gg-iconbtn:hover, .gg-lang__btn:hover, .gg-lang__btn[aria-expanded="true"], .gg-menu-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.gg-sun { display: none; }
html[data-theme="dark"] .gg-sun { display: block; } html[data-theme="dark"] .gg-moon { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .gg-sun { display: block; } html:not([data-theme="light"]) .gg-moon { display: none; } }
.gg-chev { width: 16px; height: 16px; transition: transform .15s; }
.gg-lang { position: relative; }
.gg-lang__btn[aria-expanded="true"] .gg-chev { transform: rotate(180deg); }
.gg-lang__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 220px; max-height: min(560px, calc(100vh - var(--hdr) - 20px)); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--gg-card); color: var(--gg-ink); box-shadow: var(--gg-shadow-lg); border: 1px solid var(--gg-line); }
.gg-lang__menu a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--gg-ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.gg-lang__menu a:hover, .gg-lang__menu a:focus-visible { background: var(--gg-chip); box-shadow: none; }
.gg-lang__menu a[aria-current="true"] { background: var(--gg-accent-soft); color: var(--gg-link); }
.gg-menu-btn .gg-i:last-child { display: none; }
.gg-menu-btn[aria-expanded="true"] .gg-i:first-child { display: none; } .gg-menu-btn[aria-expanded="true"] .gg-i:last-child { display: block; }
.gg-mnav { position: absolute; left: 0; right: 0; top: var(--hdr); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 12px 14px; background: var(--head-bg); box-shadow: 0 12px 24px rgba(30, 20, 90, .25); }
.gg-mnav[hidden] { display: none; }
.gg-mnav a { padding: 10px 12px; background: rgba(255, 255, 255, .08); }
.gg-mnav a[aria-current="page"] { background: rgba(255, 255, 255, .2); }
@media (min-width: 1024px) {
  .gg-nav { display: flex; }
  .gg-menu-btn { display: none; }
  .gg-mnav { display: none !important; }
  .gg-header__in { padding: 0 16px 0 20px; }
}
@media (max-width: 359px) { .gg-logo__svg { height: 28px; } .gg-lang__code { display: none; } }

/* ---------------------------------------------------------------- game stage */
.gg-play { position: relative; background: var(--gg-world); color: var(--gg-world-ink); }
/* #gg-game is sized by the game's own gg.css from --gg-game-h = first screen minus the header (svh keeps it above
   the phone's bars); the site never sets its height */
:root { --gg-header-h: var(--hdr); }
.gg-play__box { width: 100%; max-width: 520px; margin: 0 auto; --gg-game-h: calc(100vh - var(--hdr)); }
@supports (height: 100svh) { .gg-play__box { --gg-game-h: calc(100svh - var(--hdr)); } }
.gg-boot { flex: 1 1 auto; align-self: stretch; container-type: size; display: grid; grid-template-rows: 52px 1fr 64px; justify-items: center; align-items: center; height: 100%; padding: 6px 8px 10px; }
.gg-boot__bar { display: flex; gap: 10px; justify-self: stretch; justify-content: flex-end; padding: 0 4px; }
.gg-boot__bar i { width: 38px; height: 38px; border-radius: 50%; background: var(--gg-wbtn); }
.gg-boot__bar i:first-child { width: 86px; border-radius: 12px; margin-right: auto; }
.gg-boot__board { display: flex; align-items: center; justify-content: center; height: min(100cqh - 132px, (100cqw - 8px) * 1.6); aspect-ratio: 5 / 8; padding: 6px;
  border-radius: 18px; background-color: var(--gg-board, #241d5c); box-shadow: 0 14px 34px rgba(20, 12, 70, .35);
  background-image: radial-gradient(circle at center, var(--gg-cell, #31297a) 0 60%, transparent 61%); background-size: 20% 12.5%; background-origin: content-box; background-clip: content-box; }
.gg-boot__board span { padding: 6px 14px; border-radius: 999px; background: rgba(16, 10, 50, .72); color: var(--gg-world-soft); font-weight: 800; font-size: 14px; }
.gg-boot__tools { display: flex; gap: 14px; justify-content: center; width: 100%; }
.gg-boot__tools i { width: 46px; height: 46px; border-radius: 50%; background: var(--gg-wbtn); }
.gg-noscript { position: absolute; inset: auto 12px 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--gg-card); color: var(--gg-ink); font-weight: 700; text-align: center; }

.gg-hero { padding: 0; }
.gg-play .gg-hero { max-width: 560px; margin: 0 auto; padding: 18px 16px 4px; text-align: center; }
.gg-play .gg-hero h1 { font-size: clamp(1.45rem, 5.2vw, 2rem); font-weight: 900; color: #fff; }
.gg-play .gg-intro { margin: 8px 0 0; color: var(--gg-world-soft); font-size: 1rem; line-height: 1.5; }
.gg-points { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; text-align: left; font-weight: 700; line-height: 1.4; }
.gg-points li { display: flex; gap: 8px; align-items: flex-start; }
.gg-points .gg-i { width: 20px; height: 20px; margin-top: 1px; stroke: #6fe39a; stroke-width: 3; }
.gg-play .gg-points { color: #fff; }
@media (min-width: 640px) { .gg-points { grid-template-columns: 1fr 1fr; gap: 10px 18px; } }
/* star rating */
.gg-rate { width: calc(100% - 32px); max-width: 360px; margin: 14px auto 0; padding: 14px 16px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--gg-wbtn-border); }
.gg-rate__t { margin: 0; font-weight: 900; font-size: 1.05rem; color: #fff; }
.gg-rate__s { margin: 4px 0 8px; font-size: 14px; line-height: 1.4; color: var(--gg-world-soft); }
.gg-rate__stars { position: relative; display: inline-flex; vertical-align: top; }
.gg-rate__b { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.gg-rate__b svg, .gg-rate__fill svg { width: 32px; height: 32px; fill: rgba(255, 255, 255, .22); }
.gg-rate__b:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.gg-rate__b:disabled { cursor: default; }
.gg-rate__fill { position: absolute; top: 0; left: 0; display: flex; width: calc(var(--show, var(--avg)) * 20%); height: 42px; overflow: hidden; pointer-events: none; }
.gg-rate__fill svg { flex: 0 0 42px; padding: 5px; box-sizing: border-box; width: 42px; height: 42px; fill: #ffc93c; }
.gg-rate__sum { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--gg-world-soft); }
.gg-rate__n { display: block; font-size: 13px; font-weight: 600; }
.gg-rate__n:empty { display: none; }
.gg-rate__msg { min-height: 0; margin: 4px 0 0; font-size: 14px; font-weight: 800; color: #fff; }
.gg-rate__msg:empty { display: none; }
.gg-rate__msg.is-err { color: #ffb4b4; }
.gg-share { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; max-width: 560px; margin: 0 auto; padding: 12px 12px 18px; }
.gg-share__t { margin: 0; font-weight: 800; font-size: 14px; color: var(--gg-world-soft); }
.gg-share__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gg-sbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--gg-wbtn); color: #fff; box-shadow: inset 0 0 0 1px var(--gg-wbtn-border); transition: background .15s, transform .15s; }
.gg-sbtn svg { width: 19px; height: 19px; fill: currentColor; }
.gg-sbtn .gg-i { fill: none; width: 20px; height: 20px; }
.gg-sbtn:hover { transform: translateY(-1px); }
.gg-sbtn--facebook:hover { background: #0866ff; } .gg-sbtn--x:hover { background: #000; } .gg-sbtn--whatsapp:hover { background: #25d366; }
.gg-sbtn--telegram:hover { background: #26a5e4; } .gg-sbtn--reddit:hover { background: #ff4500; } .gg-sbtn--copy:hover { background: var(--gg-wbtn-hover); }
.gg-copied { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--gg-tooltip); color: var(--gg-tooltip-ink); font-weight: 800; font-size: 15px; box-shadow: var(--gg-shadow); }

/* side columns (rating + ad 104 left, share + ad 105 right) exist from 1100 px; below they are not boxes at all */
.gg-side { display: contents; }
.gg-side > [id^="ezoic-pub-ad-placeholder-"] { display: none; }
@media (min-width: 1100px) {
  .gg-play { display: grid; grid-template-columns: minmax(0, 1fr) 520px minmax(0, 1fr); column-gap: 40px; align-items: center; padding: 0 28px; }
  /* a tall side ad makes the row taller: the game stays at the top instead of moving down */
  .gg-play__box { grid-column: 2; grid-row: 1; align-self: start; }
  .gg-side { grid-row: 1; display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 330px; min-width: 0; }
  .gg-side--l { grid-column: 1; justify-self: end; align-items: stretch; }
  .gg-side--r { grid-column: 3; justify-self: start; align-items: flex-start; }
  .gg-side > [id^="ezoic-pub-ad-placeholder-"] { display: block; width: 100%; margin: 0; }
  .gg-side > [id^="ezoic-pub-ad-placeholder-"]:not(:empty) { margin: 0; }
  .gg-rate { width: 100%; max-width: 330px; margin: 0; }
  .gg-play .gg-hero { grid-column: 1 / -1; grid-row: 2; justify-self: center; max-width: 820px; padding: 26px 0 30px; }
  .gg-play .gg-hero h1 { font-size: 2.1rem; }
  .gg-play .gg-intro { margin-top: 12px; font-size: 1.05rem; }
  .gg-share { flex-direction: column; align-items: flex-start; margin: 0; padding: 0; }
  .gg-share__btns { flex-direction: column; }
}

/* ---------------------------------------------------------------- ads (Ezoic placeholders: no reserved height) */
[id^="ezoic-pub-ad-placeholder-"] { display: block; max-width: 100%; margin: 0 auto; overflow: hidden; text-align: center; }
[id^="ezoic-pub-ad-placeholder-"]:not(:empty) { margin: 24px auto; }
html.gg-fs-lock [id^="ezoic-pub-ad-placeholder-"], html.gg-fs [id^="ezoic-pub-ad-placeholder-"],
body:has(.gg-game:fullscreen) [id^="ezoic-pub-ad-placeholder-"], body:has(.gg-game.gg-game--fs) [id^="ezoic-pub-ad-placeholder-"] { display: none !important; }

/* ---------------------------------------------------------------- content */
.gg-main { display: block; }
.gg-content { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gap) 40px; }
.gg-content > .gg-hero { padding: 22px 0 10px; }
.gg-content > .gg-hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 900; }
.gg-content > .gg-hero .gg-intro { margin: 12px 0 0; font-size: 1.12rem; color: var(--gg-soft); }
.gg-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; color: var(--gg-soft); }
.gg-crumbs li + li::before { content: "›"; margin-right: 4px; opacity: .7; }
.gg-crumbs a { color: var(--gg-soft); }
.gg-sec { margin: 34px 0; }
.gg-sec h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 4.6vw, 1.7rem); font-weight: 900; }
.gg-sec h3 { margin: 22px 0 8px; font-size: 1.15rem; font-weight: 800; }
.gg-sec p { margin: 0 0 14px; }
.gg-sec ul, .gg-sec ol { margin: 0 0 16px; padding-left: 1.4em; }
.gg-sec li { margin: 4px 0; }
.gg-sec li > p { margin: 0 0 6px; }
.gg-sec strong { font-weight: 800; }
kbd { display: inline-block; min-width: 1.8em; padding: 1px 7px; border-radius: 7px; border: 1px solid var(--gg-line); border-bottom-width: 3px; background: var(--gg-card);
  font: 800 .85em/1.5 var(--gg-font); text-align: center; color: var(--gg-ink); }
.note { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--gg-radius); background: var(--gg-accent-soft); border-left: 4px solid var(--gg-accent); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

ol.gg-steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; }
ol.gg-steps > li { counter-increment: s; position: relative; margin: 0; padding: 16px 16px 14px 62px; border-radius: var(--gg-radius); background: var(--gg-card); box-shadow: var(--gg-shadow); }
ol.gg-steps > li::before { content: counter(s); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--gg-e6, #45c0ff); color: #fff; font-weight: 900; font-size: 15px; line-height: 1; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
ol.gg-steps > li:nth-child(3n+2)::before { background: var(--gg-e1, #ff6b9a); }
ol.gg-steps > li:nth-child(3n)::before { background: var(--gg-e4, #8ddc58); }
ol.gg-steps h3 { margin: 4px 0 6px; }
ol.gg-steps p:last-child { margin: 0; }
ul.gg-cards { display: grid; gap: 12px; padding: 0; list-style: none; }
ul.gg-cards > li { margin: 0; padding: 16px 18px; border-radius: var(--gg-radius); background: var(--gg-card); box-shadow: var(--gg-shadow); }
ul.gg-cards h3 { margin: 0 0 6px; }
ul.gg-cards p:last-child { margin: 0; }
ul.gg-tips { counter-reset: t; padding: 0; list-style: none; }
ul.gg-tips > li { counter-increment: t; position: relative; margin: 0 0 10px; padding: 12px 14px 12px 52px; border-radius: 14px; background: var(--gg-card); box-shadow: var(--gg-shadow); }
ul.gg-tips > li::before { content: counter(t); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 8px; background: var(--gg-accent-soft); color: var(--gg-link); font-weight: 900; text-align: center; line-height: 28px; font-size: 14px; }
@media (min-width: 640px) {
  ol.gg-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  ol.gg-steps > li { padding: 58px 16px 16px; }
  ol.gg-steps > li::before { left: 16px; top: 14px; }
  ul.gg-cards { grid-template-columns: 1fr 1fr; }
}
.gg-table { margin: 0 0 18px; overflow-x: auto; border-radius: var(--gg-radius); background: var(--gg-card); box-shadow: var(--gg-shadow); }
.gg-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.gg-table th, .gg-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--gg-line); vertical-align: middle; }
.gg-table thead th { background: var(--gg-chip); font-weight: 800; white-space: nowrap; }
.gg-table tr:last-child td { border-bottom: 0; }
.gg-faqs { display: grid; gap: 10px; margin: 0 0 16px; }
details.gg-faq { border-radius: 14px; background: var(--gg-card); box-shadow: var(--gg-shadow); }
details.gg-faq summary { position: relative; padding: 14px 46px 14px 16px; list-style: none; cursor: pointer; font-weight: 800; line-height: 1.4; border-radius: 14px; }
details.gg-faq summary::-webkit-details-marker { display: none; }
details.gg-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--gg-soft); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .15s; }
details.gg-faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.gg-faq > :not(summary) { margin: 0 16px 14px; }

/* ---------------------------------------------------------------- tiles (mini boards and chips)
   Colours = the game's tokens --gg-e1 … --gg-e12 (+ …d, darker) from theme.css, same cycle as the game. */
.gg-t1 { --f: var(--gg-e1, #ff6b9a); --fd: var(--gg-e1d, #ee4580); }
.gg-t2 { --f: var(--gg-e2, #ff9550); --fd: var(--gg-e2d, #f2702c); }
.gg-t3 { --f: var(--gg-e3, #ffcc3a); --fd: var(--gg-e3d, #f3a817); }
.gg-t4 { --f: var(--gg-e4, #8ddc58); --fd: var(--gg-e4d, #56bb3a); }
.gg-t5 { --f: var(--gg-e5, #3ddbb4); --fd: var(--gg-e5d, #17b791); }
.gg-t6 { --f: var(--gg-e6, #45c0ff); --fd: var(--gg-e6d, #1d9cee); }
.gg-t7 { --f: var(--gg-e7, #6c8dff); --fd: var(--gg-e7d, #4766f0); }
.gg-t8 { --f: var(--gg-e8, #a47dff); --fd: var(--gg-e8d, #8458f2); }
.gg-t9 { --f: var(--gg-e9, #e26cf4); --fd: var(--gg-e9d, #c247dd); }
.gg-t10 { --f: var(--gg-e10, #ff5d79); --fd: var(--gg-e10d, #e1355a); }
.gg-t11 { --f: var(--gg-e11, #ffb43a); --fd: var(--gg-e11d, #ef8510); }
.gg-t12 { --f: var(--gg-e12, #3ee4e6); --fd: var(--gg-e12d, #11b5cb); }
.gg-chip { display: inline-grid; place-items: center; min-width: 2.2em; height: 1.75em; padding: 0 .4em; border-radius: .5em; vertical-align: .05em;
  background: linear-gradient(165deg, var(--f), var(--fd)); color: var(--gg-tile-ink, #fff);
  font: 900 .82em/1 var(--gg-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); white-space: nowrap; }
.gg-chip.gg-hi { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset, 0 0 10px var(--f); }

/* mini boards: static, built from div.gg-mini (format in src/README.md). Cells are exactly 1/cols wide (no gap), so
   the chain line (svg, viewBox in cell units) runs through the cell centres. */
.gg-fig { width: min(100%, 300px); margin: 6px auto 22px; padding: 12px; border-radius: 20px; background: var(--gg-world); box-shadow: var(--gg-shadow); }
.gg-mini { --pad: 6px; container-type: inline-size; position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: 1fr;
  padding: var(--pad); border-radius: 14px; background: var(--gg-board, #241d5c); }
.gg-mini > i { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; margin: 5%; border-radius: 24%; font-style: normal; }
.gg-mini > i.gg-mc { background: var(--gg-cell, #31297a); }
.gg-mini > i.gg-mk { background: linear-gradient(165deg, var(--f), var(--fd)); color: var(--gg-tile-ink, #fff);
  font: 900 calc(100cqw / var(--cols) * .4) / 1 var(--gg-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.gg-mini > i.gg-d3 { font-size: calc(100cqw / var(--cols) * .32); }
.gg-mini > i.gg-d4 { font-size: calc(100cqw / var(--cols) * .25); }
.gg-mini > i.gg-hi { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 8px var(--f); }
.gg-mini > i.is-on { transform: scale(.84); box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(255, 255, 255, .5); }
.gg-mini > i.is-mark { box-shadow: 0 0 0 3px var(--gg-gold, #f5b82e), 0 0 12px rgba(255, 210, 90, .7); }
.gg-mini__layer { position: absolute; inset: var(--pad); z-index: 0; pointer-events: none; }
.gg-mini__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gg-mini__path polyline { fill: none; stroke: var(--f); stroke-width: .3; stroke-linecap: round; stroke-linejoin: round; }
.gg-mini__path circle { fill: var(--f); }
.gg-mres { position: absolute; z-index: 2; left: calc((var(--c) + .82) / var(--cols) * 100%); top: calc((var(--r) + .12) / var(--rows) * 100%); transform: translate(-50%, -50%);
  display: grid; place-items: center; min-width: calc(100cqw / var(--cols) * .62); height: calc(100cqw / var(--cols) * .62); padding: 0 4px; border-radius: 30%;
  background: linear-gradient(165deg, var(--f), var(--fd)); color: var(--gg-tile-ink, #fff); font: 900 calc(100cqw / var(--cols) * .26) / 1 var(--gg-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgba(0, 0, 0, .35); }
.gg-mres.gg-d4 { font-size: calc(100cqw / var(--cols) * .2); }
.gg-fig figcaption { margin: 10px 2px 0; color: var(--gg-world-ink); font-size: 14.5px; font-weight: 700; line-height: 1.4; text-align: center; }

/* ---------------------------------------------------------------- related, promo, CTA */
.gg-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--gg-accent-grad); color: var(--gg-on-accent); font-weight: 900; text-decoration: none; box-shadow: 0 6px 18px var(--gg-accent-glow); }
.gg-cta .gg-i { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.gg-cta:hover { filter: brightness(1.06); }
.gg-related { margin: 36px 0 0; padding: 20px; border-radius: var(--gg-radius-lg); background: var(--gg-card); box-shadow: var(--gg-shadow); }
.gg-related h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 900; }
.gg-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.gg-related ul a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--gg-chip); color: var(--gg-ink); font-weight: 800; text-decoration: none; }
.gg-related ul a:hover { background: var(--gg-chip-hover); }
.gg-related ul .gg-i { width: 16px; height: 16px; color: var(--gg-soft); }
.gg-related p { margin: 0; }
.gg-promo { max-width: 1000px; margin: 0 auto; padding: 8px var(--gap) 44px; }
.gg-promo h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 4.6vw, 1.7rem); font-weight: 900; text-align: center; }
.gg-promo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gg-pcard { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border-radius: 16px; background: var(--gg-card); color: var(--gg-ink); text-decoration: none; box-shadow: var(--gg-shadow); transition: transform .15s; }
.gg-pcard:hover { transform: translateY(-2px); }
.gg-pcard img { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; }
.gg-pcard__b { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gg-pcard__t { font-weight: 900; }
.gg-pcard__s { color: var(--gg-soft); font-size: 14px; }
.gg-pcard--new { position: relative; }
.gg-pcard__new { position: absolute; top: -7px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--gg-accent-grad); color: var(--gg-on-accent); font-size: 11px; font-weight: 900; line-height: 1.35; letter-spacing: .06em; box-shadow: 0 3px 10px var(--gg-accent-glow); }

/* ---------------------------------------------------------------- contact + legal */
.gg-formcard { margin: 18px 0 0; padding: 22px; border-radius: var(--gg-radius-lg); background: var(--gg-card); box-shadow: var(--gg-shadow); }
[data-feedback-form] .fb-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
[data-feedback-form] .fb-row > div { flex: 1 1 220px; }
[data-feedback-form] .fb-field { margin-bottom: 16px; }
[data-feedback-form] label { display: block; margin: 0 0 6px; font-weight: 800; font-size: 15px; }
[data-feedback-form] .fb-note { font-weight: 600; color: var(--gg-soft); }
[data-feedback-form] input, [data-feedback-form] textarea { width: 100%; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--gg-ink); background: var(--gg-bg);
  border: 1px solid var(--gg-line); border-radius: 12px; outline: 0; }
[data-feedback-form] input:focus, [data-feedback-form] textarea:focus { border-color: var(--gg-accent); box-shadow: var(--gg-focus); }
[data-feedback-form] textarea { min-height: 150px; resize: vertical; }
[data-feedback-form] input[type="file"] { padding: 9px; background: transparent; }
[data-feedback-form] [data-feedback-captcha] { margin: 4px 0 16px; }
[data-feedback-form] altcha-widget { --altcha-max-width: 100%; }
[data-feedback-form] button { appearance: none; width: 100%; padding: 13px 18px; border: 0; border-radius: 999px; background: var(--gg-accent-grad); color: var(--gg-on-accent);
  font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 6px 18px var(--gg-accent-glow); }
[data-feedback-form] button:disabled { opacity: .6; cursor: default; }
[data-feedback-status] { margin: 14px 0 0; font-size: 15px; text-align: center; }
[data-feedback-form][data-state=error] [data-feedback-status] { color: var(--gg-danger); }
[data-feedback-form][data-state=sent] [data-feedback-status] { color: var(--gg-ok); }
.gg-legal .gg-sec h2 { font-size: 1.3rem; }
#ezoic-privacy-policy-embed { display: block; }

/* ---------------------------------------------------------------- 404 */
.gg-404 { max-width: 560px; margin: 0 auto; padding: 36px var(--gap) 56px; text-align: center; }
.gg-404 .gg-fig { width: 250px; }
.gg-404 h1 { margin: 6px 0 10px; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; }
.gg-404 p { color: var(--gg-soft); }
.gg-404 .gg-404__oops { margin: 10px 0 0; font-size: 1.25rem; font-weight: 900; color: var(--gg-ink); }
.gg-404__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gg-404__more a { display: block; padding: 8px 14px; border-radius: 999px; background: var(--gg-card); box-shadow: var(--gg-shadow); font-weight: 800; text-decoration: none; }

/* ---------------------------------------------------------------- footer */
.gg-foot { margin-top: 20px; padding: 34px var(--gap) 26px; background: var(--foot-bg); color: var(--foot-ink); font-size: 15px; }
.gg-foot a { color: #fff; text-decoration: none; }
.gg-foot a:hover { text-decoration: underline; }
.gg-foot__in { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; grid-template-columns: 1fr 1fr; }
.gg-foot__brand { grid-column: 1 / -1; }
.gg-foot__brand p { max-width: 380px; margin: 10px 0 0; }
.gg-logo--foot { display: inline-flex; }
.gg-foot h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--foot-soft); }
.gg-foot ul { margin: 0; padding: 0; list-style: none; }
.gg-foot li { margin: 6px 0; }
.gg-foot__en { color: var(--foot-soft); font-size: 13px; }
.gg-foot__langs { display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: 1100px; margin: 26px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.gg-foot__langs a { font-size: 14px; color: var(--foot-ink); }
.gg-foot__langs a[aria-current="true"] { color: #fff; font-weight: 800; }
.gg-foot__bottom { max-width: 1100px; margin: 18px auto 0; font-size: 13.5px; color: var(--foot-soft); }
.gg-foot__bottom p { margin: 4px 0; }
@media (min-width: 760px) {
  .gg-foot__in { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .gg-foot__brand { grid-column: auto; }
}

/* ---------------------------------------------------------------- print + motion */
@media print {
  .gg-header, .gg-foot, .gg-share, .gg-play, .gg-promo, .gg-related, [id^="ezoic-pub-ad-placeholder-"] { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
