/* «Город открытий»: экран начала, поле как в Jones in the Fast Lane (здания вокруг дороги, сцена места в середине), шкалы, окна, мини-игры. */
.gg.card:not(.quiz):hover { transform: none; }   /* сайт приподнимает карточки при наведении — игровое поле не должно прыгать */
/* отступы между кнопками — общие для всей игры (21.10): соседи не ближе --gg-gap; ряды, которые переносятся, — через --gg-row
   (у .btn снизу резкая тень 4 px — видимый зазор между рядами остаётся 8 px). На телефоне в самых тесных местах (клетки поля, кнопки строки часов) —
   --gg-gap-s: 8 px на телефонах от 348 px, на совсем узких — меньше, но не меньше 6 px */
.gg { --gg-gap: 8px; --gg-row: 12px; --gg-gap-s: clamp(6px, 2.3vw, 8px); padding: 18px; position: relative; scroll-margin-top: 84px; }
.gg:not(.on) .gg-game { display: none; }
.gg.on .gg-setup { display: none; }
.gg button { font-family: var(--text); }
.gg .tag + h3 { margin-top: 8px; }

/* ── экран начала ─────────────────────────────────────────── */
.gg-h { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 12px; }
.gg-note { color: var(--ink-soft); font-size: 16px; }
.gg-cont { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gg-row) 12px; padding: 14px 16px; margin-bottom: 18px;
  border-radius: 18px; background: var(--sun-soft); }
.gg-heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.gg-hero { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 16px 10px 14px; border-radius: 20px; background: var(--sky-2);
  border: 2px solid var(--line); transition: opacity .2s ease; }
.gg-hero.off { opacity: .55; }
.gg-hero img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 4px #fff; }
.gg-hero b { font-size: 20px; }
.gg-hero small { color: var(--ink-soft); font-size: 14px; line-height: 1.2; }
.gg-seg { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gg-row) var(--gg-gap); margin-top: 8px; }
.gg-seg button { min-height: 40px; min-width: 44px; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.gg-seg button[aria-pressed="true"] { background: var(--water); border-color: var(--water); color: #fff; }
.gg-pace { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gg-row) 12px; margin: -10px 0 22px; }
.gg-pace .gg-seg { margin: 0; }
.gg-pres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gg-row); }   /* у выбранной — кольцо 3 px снаружи */
.gg-pre { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.gg-pre b { font-size: 18px; }
.gg-pre small { color: var(--ink-soft); font-size: 13px; line-height: 1.3; }
.gg-pre[aria-pressed="true"] { border-color: var(--water); background: var(--sky-2); box-shadow: 0 0 0 3px var(--sky); }
.gg-sliders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gg-sliders label { display: grid; gap: 4px; font-weight: 800; }
.gg-sliders input { width: 100%; accent-color: var(--water); }
.gg-sliders small { font-weight: 400; color: var(--ink-soft); font-size: 13px; line-height: 1.3; }
/* старт и настройки звука — ряды в одном контейнере (абзацы внутри .card теряют поля: .card p { margin: 0 }) */
.gg-launch { display: grid; justify-items: start; gap: 18px; margin-top: 24px; }
.gg-start { display: flex; flex-wrap: wrap; gap: var(--gg-row) 12px; }
@media (max-width: 760px) {
  .gg-heroes { grid-template-columns: 1fr; }
  .gg-hero { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .gg-hero img { width: 64px; height: 64px; grid-row: span 2; }
  .gg-seg { grid-column: 1 / -1; justify-content: flex-start; }
  .gg-pres, .gg-sliders { grid-template-columns: 1fr 1fr; }
}

/* ── верх: кто ходит, день, погода, часы, кнопки, шкалы. На ПК прилипает под шапкой сайта, ниже — поле высотой с экран ── */
.gg-hud { position: relative; margin: 0 0 8px; padding-bottom: 12px; }
.gg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.gg-who { display: flex; align-items: center; gap: 8px; }
.gg-who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px var(--hc); }
.gg-who span, .gg-day, .gg-wx, .gg-ct2 { display: grid; line-height: 1.15; }
.gg-who small, .gg-day small, .gg-wx small, .gg-ct2 small { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.gg-who b, .gg-day b, .gg-ct2 b { font-size: 18px; font-weight: 900; }
.gg-wx { grid-template-columns: auto auto; align-items: center; column-gap: 6px; }
.gg-wxe { font-size: 26px; }
.gg-clock { display: flex; align-items: center; gap: 6px; }
.gg-clock svg { width: 42px; height: 42px; }
.gg-face { fill: #fff; stroke: var(--water); stroke-width: 2.5; }
.gg-tick { stroke: var(--ink-soft); stroke-width: 1.4; stroke-linecap: round; }
.gg-hh { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transition: transform .4s ease; }
.gg-mh { stroke: var(--coral); stroke-width: 2; stroke-linecap: round; transition: transform .4s ease; }
.gg-pin { fill: var(--ink); }
.gg-tools { display: flex; flex-wrap: wrap; gap: var(--gg-row) var(--gg-gap); margin-left: auto; }
.gg-tool { min-height: 40px; border: 0; background: var(--sky); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.gg-tool:hover { background: #cbe6f8; }
.gg-tool.end { background: #e7e3fb; }
.gg-tool .s { display: none; }
.gg-tool:disabled { opacity: .45; cursor: default; }
/* полоска дня — нижний край строки часов */
.gg-timebar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 99px; background: #e6eef5; overflow: hidden; }
.gg-timebar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd970, #f6a53c 55%, #8a6bd1); transition: width .4s ease; }

/* ── шкалы целей и запасы: одна-две строки ── */
.gg-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
.gg-ms { flex: 1 1 500px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; }
.gg-m { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; row-gap: 2px; }
.gg-ml { display: contents; }
.gg-ml i { grid-row: 1 / 3; grid-column: 1; font-style: normal; font-size: 21px; line-height: 1; }
.gg-ml span { grid-row: 1; grid-column: 2; font-size: 12px; font-weight: 800; line-height: 1.1; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-mv { grid-row: 1 / 3; grid-column: 3; font-weight: 900; font-size: 15px; white-space: nowrap; }
.gg-mv small { color: var(--ink-soft); font-weight: 700; }
.gg-mb { grid-row: 2; grid-column: 2; position: relative; height: 9px; border-radius: 99px; background: #e6eef5; overflow: visible; }
.gg-mb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--water); transition: width .5s ease; max-width: 100%; }
.gg-m:nth-child(2) .gg-mb i { background: #8a6bd1; }
.gg-m:nth-child(3) .gg-mb i { background: var(--leaf); }
.gg-m:nth-child(4) .gg-mb i { background: var(--sun); }
.gg-mb em { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.gg-m.ok .gg-mv { color: #2f7a2d; }
.gg-res { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 0 auto; }
.gg-sec { display: contents; }
.gg-res2 { display: flex; flex-wrap: wrap; gap: 5px; }
.gg-r, .gg-f { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--sky-2); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.gg-r small { color: var(--ink-soft); }
.gg-money { background: var(--sun-soft); }
.gg-inv { letter-spacing: 2px; }
.gg-f.ok { background: var(--leaf-soft); color: #2f6a2d; }
.gg-f.warn { background: var(--sun-soft); color: #7a5600; }
.gg-f.bad { background: var(--coral-soft); color: #a8483a; }

/* ── поле: здания вокруг дороги, фигурки героев на дороге, сцена места в середине ──
   На ПК поле высотой с экран: верхний и нижний ряды — по --rowh, боковые клетки делят остаток, в середине — окно места */
.gg-board { --road: 20px; --rowh: clamp(92px, 15.5%, 124px); position: relative; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: var(--rowh) minmax(0, 1fr) minmax(0, 1fr) var(--rowh);
  height: clamp(540px, calc(100vh - var(--gg-head, 68px) - var(--gg-hud, 110px) - 12px), 900px);
  height: clamp(540px, calc(100dvh - var(--gg-head, 68px) - var(--gg-hud, 110px) - 12px), 900px);
  gap: var(--gg-gap); padding: 8px; border-radius: 26px; background: #cfe8b8; background-image: radial-gradient(#bfe0a5 1.5px, transparent 1.6px); background-size: 22px 22px;
  scroll-margin-top: calc(var(--gg-head, 68px) + 8px); }
.gg-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 4px;
  border-radius: 18px; border: 3px solid transparent; background: color-mix(in srgb, var(--c) 70%, transparent); color: var(--ink); cursor: pointer; text-align: center;
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.gg-cell:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(29, 58, 85, .16); }
.gg-cell:disabled { cursor: default; }
.gg-cell.sel { border-color: var(--sun); box-shadow: inset 0 0 0 3px var(--sun-soft); }   /* кольцо внутри — не съедает зазор до соседей */
.gg-cell.here { border-color: var(--water); }
.gg-bld { display: block; flex: 1 1 0; width: 100%; min-height: 0; }        /* верх и низ: здание занимает всё место над подписью */
.gg-cell.side .gg-bld { flex: 0 1 auto; max-width: 210px; height: auto; }   /* бок: здание целиком, под ним подпись и что здесь делают */
.gg-ct { position: relative; flex: none; max-width: 100%; margin-top: -8px; padding: 2px 9px; border-radius: 99px; background: #fff; font-weight: 900; font-size: 13px; line-height: 1.15;
  box-shadow: 0 2px 6px rgba(29, 58, 85, .12); }
.gg-cell.ring-t { flex-direction: column-reverse; }
.gg-cell.ring-t .gg-ct { margin: 0 0 -6px; }
.gg-cell.ring-t .gg-walk { top: auto; bottom: 5px; }
.gg-cts, .gg-sub { display: none; }
.gg-cell.side .gg-sub { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.2; }
/* сколько идти — значок в углу клетки */
.gg-walk { position: absolute; top: 5px; right: 6px; max-width: calc(100% - 12px); padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .88);
  font-size: 11.5px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-walk i { font-style: normal; }
.gg-cell.here .gg-walk { background: var(--water); color: #fff; }
/* дорога — кольцо вокруг сцены; пунктир посередине */
.gg-road { position: relative; grid-row: 2 / 4; grid-column: 2 / 5; border: var(--road) solid #a9b2bb; border-radius: 28px; background: #d9efc8; }
.gg-road i { position: absolute; inset: calc(var(--road) / -2 - 1.5px); border: 3px dashed rgba(255, 255, 255, .9); border-radius: 20px; pointer-events: none; }
.gg-mid { display: none; }
/* окно места: сцена сверху, ниже разговор и дела — листаются внутри окна */
.gg-panel { grid-row: 2 / 4; grid-column: 2 / 5; z-index: 1; min-height: 0; margin: calc(var(--road) + 4px); padding: 8px; display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(29, 58, 85, .12); overflow: hidden; container-type: size; }
.gg-pbody { position: relative; flex: 1 1 auto; min-height: 0; padding-top: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.gg-pbody > .gg-acts, .gg-talk { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gg-pbody > .gg-acts { align-content: start; padding: 8px 2px 0 0; }
.gg-acts.more::after { content: "⬇ листай — там ещё дела"; position: sticky; bottom: 0; grid-column: 1 / -1; display: block; margin-top: -30px; padding: 18px 0 2px; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--water-deep); background: linear-gradient(rgba(255, 255, 255, 0), #fff 62%); pointer-events: none; }
.gg-talk { padding-top: 8px; }
.gg-pbody.ai .gg-log { min-height: 0; margin: 0; padding: 8px 4px 0 24px; overflow: auto; }
.gg-pbody.ai .gg-aibar { margin-bottom: 8px; }
.gg-pbody.ai .gg-bubble { display: none; }               /* на ПК последнее дело и так видно внизу списка */
.gg-pbody.ai .gg-aibar b { font-size: 15px; line-height: 1.3; }
.gg-walkers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gg-walker { position: absolute; height: 66px; transform: translate(-50%, -86%); transition: left .22s linear, top .22s linear; }
.gg-walker img { display: block; height: 100%; width: auto; transform: scaleX(var(--fx, 1)); filter: drop-shadow(0 3px 2px rgba(29, 58, 85, .35)); }
.gg-walker.aqua { height: 46px; }
.gg-walker.misha { height: 56px; }
.gg-walker.left { --fx: -1; }
.gg-walker::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 34px; height: 9px; margin-left: -17px; border-radius: 50%; background: var(--hc); opacity: .35; z-index: -1; }
.gg-walker.cur { z-index: 3; }
.gg-walker.cur::after { opacity: .8; }
.gg-walker.cur:not(.walking) img { animation: gg-hop 1.6s ease-in-out infinite; }
.gg-walker.walking img { animation: gg-step .26s ease-in-out infinite alternate; }
.gg-walker[hidden] { display: none; }
@keyframes gg-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes gg-step { from { rotate: -6deg; translate: 0 0; } to { rotate: 6deg; translate: 0 -3px; } }
.gg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gg-row) 12px; margin-top: 12px; }
.gg-rivals { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }   /* кольцо у того, кто ходит, не обрезается */
.gg-rv { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--sky-2); font-size: 14px; }
.gg-rv.cur { box-shadow: 0 0 0 2px var(--water); }
.gg-rv img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; }
.gg-link { min-height: 40px; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0 6px; }

/* сцена места: комната, большой герой слева, хозяин справа, предметы — их можно нажимать.
   На ПК высота сцены — не больше ~половины окна (ширина ограничена по высоте окна), остальное — разговор и дела */
.gg-scene { position: relative; flex: none; align-self: center; width: 100%; width: min(100%, 128cqh); container-type: inline-size; border-radius: 14px; overflow: hidden; background: var(--c); }
.gg-roomart { display: block; width: 100%; height: auto; }
.gg-hots { position: absolute; inset: 0; }
/* предмет: место — data-x/y, game-gorod.js spreadHots() раздвигает соседей; качается только картинка внутри (.gg-hoti), кнопка стоит */
.gg-hot { position: absolute; display: grid; place-items: center; min-width: 40px; min-height: 40px; transform: translate(-50%, -50%); padding: .12em; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .0); cursor: pointer; line-height: 1; font-size: calc(var(--s) * 100cqw / 640); filter: drop-shadow(0 3px 3px rgba(29, 58, 85, .28));
  transition: background .15s ease, scale .15s ease; }
.gg-hoti { display: grid; place-items: center; animation: gg-wiggle 3s ease-in-out infinite; pointer-events: none; }
.gg-hot:nth-child(2n) .gg-hoti { animation-delay: -1.2s; }
.gg-hot:nth-child(3n) .gg-hoti { animation-delay: -2.1s; }
.gg-hot:hover, .gg-hot:focus-visible { background: rgba(255, 255, 255, .75); scale: 1.1; }
.gg-hot:hover .gg-hoti, .gg-hot:focus-visible .gg-hoti { animation: none; }
.gg-hot.no { filter: grayscale(1) opacity(.5); }
.gg-hot.no .gg-hoti { animation: none; }
.gg-hot.gg-off { display: none; }   /* не поместился без столкновений — это дело есть в списке под сценой */
@keyframes gg-wiggle { 0%, 82%, 100% { rotate: 0deg; } 88% { rotate: -9deg; } 94% { rotate: 9deg; } }
.gg-scene .gg-big { position: absolute; left: 1.5%; bottom: 1%; height: 94%; width: auto; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(29, 58, 85, .25)); }
.gg-scene.misha .gg-big { height: 78%; }
.gg-scene.aqua .gg-big { height: 56%; }
.gg-host { position: absolute; right: 2%; bottom: 4%; display: grid; justify-items: center; gap: 2px; pointer-events: none; }
.gg-host span { display: grid; place-items: center; width: 1.45em; height: 1.45em; font-size: calc(58 * 100cqw / 640); border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 6px 14px rgba(29, 58, 85, .2); }
.gg-host b { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #fff; white-space: nowrap; }
.gg-tag { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; padding: 0 4px 6px; line-height: 1.2; }
.gg-tag b { font-size: 15.5px; font-weight: 900; }
.gg-tag small { font-size: 13px; color: var(--ink-soft); font-weight: 800; white-space: nowrap; }
.gg-scene.far .gg-roomart, .gg-scene.far .gg-hots { filter: saturate(.6) brightness(1.05); opacity: .7; }
.gg-scene .gg-go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; }
.gg-bubble { position: relative; margin: 0 0 8px; padding: 8px 12px; border-radius: 14px; background: var(--sky-2); font-size: 15px; line-height: 1.4; }
.gg-talk .gg-bubble { margin-top: 0; font-size: 14.5px; line-height: 1.38; }
.gg-bubble::before { content: ""; position: absolute; right: 34px; top: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--sky-2); }
.gg-bubble > b:first-child { color: var(--water-deep); }
.gg-hint { color: #7a5600; }
/* дела: карточки в 2–3 колонки (сколько влезет) */
.gg-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); grid-auto-rows: max-content; gap: var(--gg-gap); }
.gg-talk .gg-know { margin-top: 2px; }
.gg-act { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.gg-act:hover { border-color: var(--water); }
.gg-act:active { transform: translateY(1px); }
.gg-act.no, .gg-acts.far .gg-act { background: #f7f9fb; }
.gg-act.no .gg-ae, .gg-act.no b { opacity: .55; }
.gg-ae { font-size: 22px; }
.gg-at { display: grid; line-height: 1.2; }
.gg-at b { font-size: 14.5px; }
.gg-at small { font-size: 12.5px; color: var(--ink-soft); }
.gg-at small.why { color: #a8483a; }
.gg-ac { display: grid; gap: 2px; justify-items: end; }
.gg-ac i { font-style: normal; font-size: 11.5px; font-weight: 800; white-space: nowrap; padding: 1px 7px; border-radius: 99px; background: var(--sky-2); }
.gg-act.shake, .gg-hot.shake { animation: gg-shake .4s ease; }
@keyframes gg-shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
.gg-know { margin: 10px 0 2px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.gg-up { display: none; min-height: 44px; margin: 10px auto 0; border: 0; background: var(--sky); color: var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; }
.gg-bank { margin: 0 0 8px; padding: 8px 12px; border-radius: 14px; background: var(--sun-soft); font-size: 14.5px; line-height: 1.4; }
.gg-aibar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gg-row) var(--gg-gap); margin: 0; }
.gg-aibar .btn { padding: 8px 14px; font-size: 15px; min-height: 40px; }
.gg-log { flex: 1 1 auto; min-height: 0; margin: 8px 0 0; padding-left: 22px; overflow: auto; font-size: 14.5px; line-height: 1.45; scrollbar-width: thin; }
.gg-log li { margin-bottom: 3px; }

/* узкое окно места на ПК (планшет 768, телефон боком без полного экрана): две колонки — по 190 px, дела не помещаются в ширину.
   Тогда как на телефоне: разговор, дела, «Знаешь ли ты?» — одной колонкой, листается всё окно места (кроме хода компьютера) */
@container (max-width: 440px) {
  .gg-pbody:not(.ai) { display: flex; flex-direction: column; gap: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .gg-pbody:not(.ai) > .gg-acts { flex: none; padding: 0 2px 0 0; overflow: visible; }
  .gg-pbody:not(.ai) .gg-talk { display: contents; }
  .gg-pbody:not(.ai) .gg-bubble, .gg-pbody:not(.ai) .gg-bank { flex: none; order: -1; }
  .gg-pbody:not(.ai) .gg-bubble { margin-top: 8px; }
  .gg-pbody:not(.ai) .gg-know { flex: none; }
  .gg-pbody:not(.ai) .gg-acts.more::after { display: none; }
}

/* ── ПК: строка часов и шкал прилипает под шапкой сайта ── */
@media (min-width: 761px) {
  .gg-hud { position: sticky; top: var(--gg-head, 68px); z-index: 6; margin: -10px -12px 8px; padding: 10px 12px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .97); box-shadow: 0 10px 12px -12px rgba(29, 58, 85, .45); }
  .gg-timebar { left: 12px; right: 12px; bottom: 5px; }
  .gg-top { flex-wrap: nowrap; gap: 6px 14px; }
  .gg-top > *, .gg-tools > * { flex-shrink: 0; }
  .gg-tools { flex-wrap: nowrap; }
  .gg-hud.t1 .gg-wx small, .gg-hud.t1 .gg-tool.help span { display: none; }
  .gg-hud.t2 .gg-tool:not(.end) span { display: none; }
  .gg-hud.t2s .gg-top { column-gap: 10px; }
  .gg-hud.t2s .gg-tool.end .l { display: none; }
  .gg-hud.t2s .gg-tool.end .s { display: inline; }
  .gg-hud.t3 .gg-top, .gg-hud.t3 .gg-tools { flex-wrap: wrap; }
  .gg-hud .gg-sec { display: none; }
}
/* невысокое окно (телефон боком) без полного экрана: строка часов не прилипает — иначе вместе с шапкой сайта она закрывает
   полэкрана, а здания и предметы сцены уезжают под её кнопки */
@media (min-width: 761px) and (max-height: 520px) {
  .gg-hud { position: relative; top: auto; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .gg-ml span { display: none; }          /* узко — у шкал только значки */
}

/* ── телефон: поле сверху (маленькие здания, дорога, герой в середине), под полем — сцена и дела ── */
@media (max-width: 760px) {
  .gg { padding: 10px; }
  .gg.card { margin-inline: -10px; }
  .gg-top { gap: 6px 12px; }
  .gg-wx small { display: none; }
  /* кнопки строки часов — один ряд значков, поровну, с одинаковым зазором */
  .gg-tools { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: var(--gg-gap-s); }
  .gg .gg-tools .gg-tool { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 2px; font-size: 18px; }
  .gg-tool span { display: none; }
  .gg-ms { flex-basis: 100%; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .gg-res { margin: 0; }
  .gg-r, .gg-f { font-size: 13px; padding: 3px 8px; }
  .gg-res2 { display: none; }
  .gg-board { --road: 16px; height: auto; grid-template-rows: auto auto auto auto auto; gap: var(--gg-gap-s); padding: 6px; border-radius: 18px; }
  .gg-cell { display: grid; align-content: start; justify-items: center; min-height: 66px; padding: 2px 1px 14px; border-radius: 12px; border-width: 2px; }
  .gg-cell.ring-t { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  .gg-cell.ring-t .gg-ct { margin: 0 0 -2px; }
  .gg-bld, .gg-cell.side .gg-bld { flex: none; width: 100%; max-width: 64px; height: auto; }
  .gg-ct { margin-top: -3px; padding: 1px 3px; font-size: 10px; font-weight: 800; white-space: nowrap; }
  .gg-ctl, .gg-cell.side .gg-sub { display: none; }
  .gg-cts { display: inline; }
  .gg-cts.long { white-space: normal; }   /* длинное имя — с мягким переносом (hyph в game-gorod.js): в узкой клетке в две строки */
  .gg-walk { top: auto; left: 1px; right: 1px; bottom: 1px; max-width: none; padding: 0; background: none; font-size: 9px; text-align: center; }
  .gg-cell.here .gg-walk { background: none; color: var(--water-deep); }
  .gg-walk i { display: none; }
  .gg-road { border-radius: 18px; min-height: 150px; }
  .gg-road i { border-width: 2px; border-radius: 12px; inset: calc(var(--road) / -2 - 1px); }
  .gg-mid { display: grid; grid-row: 2 / 4; grid-column: 2 / 5; margin: 18px; align-content: center; justify-items: center; gap: 2px; text-align: center; padding: 4px;
    font-size: 13px; font-weight: 800; line-height: 1.2; z-index: 1; }
  .gg-mid img { height: 76px; width: auto; filter: drop-shadow(0 3px 3px rgba(29, 58, 85, .25)); }
  .gg-mid small { font-weight: 600; color: var(--ink-soft); font-size: 11.5px; }
  .gg-panel { grid-row: 5; grid-column: 1 / -1; display: block; margin: 6px 0 0; padding: 8px; overflow: visible; container-type: normal; scroll-margin-top: calc(var(--gg-head, 70px) + 8px); }
  .gg-scene { width: 100%; }
  .gg-pbody { display: flex; flex-direction: column; gap: 0; padding-top: 8px; }
  .gg-pbody > .gg-acts { padding: 0; }
  .gg-pbody.ai { display: flex; }
  .gg-pbody .gg-aibar { order: -2; margin-bottom: 8px; }
  .gg-pbody.ai .gg-log { padding: 8px 0 0 22px; }
  .gg-pbody.ai .gg-bubble { display: block; }
  .gg-pbody.ai .gg-bubble::before { display: none; }
  .gg-pbody > .gg-acts, .gg-talk { overflow: visible; }
  .gg-talk { display: contents; }
  .gg-pbody .gg-bubble, .gg-pbody .gg-bank { order: -1; }   /* на телефоне: разговор, дела, «Знаешь ли ты?» */
  .gg-scene .gg-go { padding: 10px 18px; font-size: 16px; }
  .gg-acts.more::after { display: none; }
  .gg-log { max-height: 240px; }
  .gg-acts { grid-template-columns: 1fr; }
  .gg-act { min-height: 52px; }
  .gg-walker { height: 40px; }
  .gg-walker.aqua { height: 30px; }
  .gg-walker.misha { height: 34px; }
  .gg-walker::after { width: 22px; height: 6px; margin-left: -11px; }
  .gg-host b { display: none; }
  .gg-tag b { font-size: 14.5px; }
  .gg-up { display: block; }
}

/* ── окна-диалоги ─────────────────────────────────────────── */
html.gg-lock { overflow: hidden; }
.gg-modal { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(29, 58, 85, .45); }
.gg-modal[hidden] { display: none !important; }
.gg-dlg { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 24px;
  padding: 22px 22px 16px; box-shadow: 0 20px 60px rgba(29, 58, 85, .35); animation: gg-pop .25s ease; outline: none; }
.gg-dlg.wide { width: min(880px, 100%); }
@keyframes gg-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.gg-x { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sky-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.gg-card { text-align: center; }
.gg-card-e { font-size: 64px; line-height: 1.1; margin-bottom: 6px; }
.gg-card h3 { font-size: 24px; margin: 6px 0 10px; }
.gg-card p { margin: 0 0 10px; }
.gg-card .gg-say { text-align: left; }
.gg-x + .gg-card > .gg-say:first-child { margin-top: 36px; }   /* разговор не под крестиком */
.gg-say { margin: 10px 0; }
.gg-say img { width: 60px; height: 60px; }
.gg-npc { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--sun-soft); font-size: 36px; line-height: 1; }
.gg-dlg .say .bubble { background: var(--sky-2); box-shadow: none; font-size: 18px; padding: 10px 14px; }
.gg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gg-row) 12px; margin: 16px 0 4px !important; }
.gg-plus { font-weight: 800; color: #2f7a2d; }
.gg-warn { background: var(--sun-soft); border-radius: 12px; padding: 8px 12px; text-align: left; }
.gg-whose { font-weight: 900; color: var(--water-deep); }
.gg-dlg .gg-big { font-size: 34px; font-weight: 900; color: var(--water-deep); margin: 0 0 6px !important; }
.gg-ev { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--sky-2); border-radius: 14px; padding: 10px 12px; }
.gg-ev span { font-size: 24px; line-height: 1.2; }
.gg-morning { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 10px; }
.gg-morning img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--sky-2); }
.gg-morning h3 { margin: 2px 0 0; }
.gg-morning small { color: var(--ink-soft); font-weight: 700; }
.gg-goalrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.gg-goalrow span { padding: 4px 10px; border-radius: 99px; background: var(--sky-2); font-size: 15px; }
/* урок */
.gg-lesson h3 { font-size: 22px; margin: 10px 0 6px; }
.gg-q { font-size: 18px; margin: 4px 0 10px; }
.gg-opts { display: grid; gap: 8px; }
.gg-opt { padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; }
.gg-opt:hover:not(:disabled) { border-color: var(--water); background: var(--sky-2); }
.gg-opt:disabled { cursor: default; }
.gg-opt.right { border-color: var(--leaf); background: var(--leaf-soft); }
.gg-opt.wrong { border-color: var(--coral); background: var(--coral-soft); }
.gg-fb { margin-top: 10px; padding: 10px 14px; border-radius: 14px; font-size: 16px; }
.gg-fb.ok { background: var(--leaf-soft); color: #24502a; }
.gg-fb.no { background: var(--coral-soft); color: #7d3328; }
/* дневник, цели */
.gg-diary h3, .gg-goals h3, .gg-help h3 { font-size: 24px; margin: 0 40px 8px 0; }
.gg-diary h4, .gg-goals h4 { margin: 16px 0 8px; font-size: 18px; }
.gg-diary h4 small { color: var(--ink-soft); font-weight: 700; }
.gg-dg { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gg-dc { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-align: center; cursor: pointer; font-size: 13px; line-height: 1.2; }
.gg-dc span { font-size: 28px; }
.gg-dc.no { background: #f3f6f9; color: var(--ink-soft); cursor: default; font-size: 22px; border-style: dashed; }
.gg-dc.no small { font-size: 13px; }
.gg-dtext { position: sticky; bottom: 0; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sun-soft); box-shadow: 0 -4px 14px rgba(29, 58, 85, .08); }
.gg-gl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gg-g { display: grid; gap: 2px; padding: 10px; border-radius: 14px; background: var(--sky-2); font-size: 14px; }
.gg-g span { font-size: 24px; }
.gg-g.ok { background: var(--leaf-soft); }
.gg-g small { color: var(--ink-soft); line-height: 1.3; }
.gg-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.gg-job { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); font-size: 14px; line-height: 1.35; }
.gg-job b { font-size: 15px; }
.gg-job small { color: var(--ink-soft); }
.gg-job.mine { border-color: var(--water); background: var(--sky-2); }
.gg-job.past { opacity: .6; }
.gg-job em { font-style: normal; font-weight: 900; color: var(--water-deep); }
.gg-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gg-course { display: grid; padding: 10px 12px; border-radius: 14px; background: #f3f6f9; font-size: 14px; }
.gg-course.done { background: var(--leaf-soft); }
.gg-course small { color: var(--ink-soft); }
.gg-help ol { padding-left: 22px; }
.gg-help li { margin-bottom: 8px; }
@media (max-width: 760px) { .gg-gl { grid-template-columns: 1fr 1fr; } .gg-dlg { padding: 18px 14px 12px; } .gg-card-e { font-size: 52px; } }
/* победа и диплом */
.gg-winimg { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; background: var(--sun-soft); box-shadow: 0 0 0 6px var(--sun-soft); }
.gg-dip { display: grid; gap: 4px; margin: 14px 0; padding: 18px; border: 6px double #d9a52b; border-radius: 16px; background: #fffdf5; }
.gg-dip b { font-size: 20px; }
.gg-dip span { font-family: var(--hand); font-size: 34px; color: var(--water-deep); }
.gg-dip small { color: var(--ink-soft); }
@media print {
  html.gg-lock body * { visibility: hidden; }
  html.gg-lock .gg-dip, html.gg-lock .gg-dip * { visibility: visible; }
  html.gg-lock .gg-dip { position: fixed; left: 5%; right: 5%; top: 20%; font-size: 24px; }
}


/* ── полный экран: игра поверх всей страницы (html.gg-full), браузер прячет панели через Fullscreen API ── */
html.gg-full, html.gg-full body { overflow: hidden !important; }
html.gg-full .gg { position: fixed; inset: 0; z-index: 50; margin: 0; max-width: none; border: 0; border-radius: 0; box-shadow: none; overflow: auto; overscroll-behavior: contain;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--paper); scroll-margin-top: 0; }
html.gg-full .gg > .gg-setup, html.gg-full .gg > .gg-game { max-width: 1440px; margin: 0 auto; }
/* ── полный экран без прокрутки (17.10): игра ровно в окно — строка часов, поле (растягивается), низ одной строкой.
   Экран начала в полном экране листается как раньше; прокрутка остаётся только внутри списка дел и окон. */
html.gg-full .gg.on { display: flex; flex-direction: column; overflow: hidden; }
html.gg-full .gg.on > .gg-game { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; }
html.gg-full .gg.on .gg-hud { flex: none; }
html.gg-full .gg.on .gg-board { flex: 1 1 auto; height: auto; min-height: 0; }
html.gg-full .gg.on .gg-foot { flex: none; margin-top: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
html.gg-full .gg.on .gg-rivals { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 761px) {
  html.gg-full .gg.on .gg-hud { position: relative; top: auto; margin: -4px -8px 6px; }
  html.gg-full .gg.on .gg-board { --rowh: clamp(58px, 15.5%, 124px); }
}
/* невысокое окно (ноутбук 1024×600, телефон боком): строка часов и низ поуже, здания по краям поменьше */
@media (min-width: 761px) and (max-height: 620px) {
  html.gg-full .gg.on { padding-top: 6px; padding-bottom: 4px; }
  html.gg-full .gg.on .gg-hud { padding-top: 6px; padding-bottom: 10px; }
  html.gg-full .gg.on .gg-who img, html.gg-full .gg.on .gg-clock svg { width: 32px; height: 32px; }
  html.gg-full .gg.on .gg-who b, html.gg-full .gg.on .gg-day b, html.gg-full .gg.on .gg-ct2 b { font-size: 15px; }
  html.gg-full .gg.on .gg-who small, html.gg-full .gg.on .gg-day small, html.gg-full .gg.on .gg-ct2 small { display: none; }
  html.gg-full .gg.on .gg-tool { padding-block: 4px; }
  html.gg-full .gg.on .gg-res2 { display: none; }
  html.gg-full .gg.on .gg-ms { flex-basis: 300px; }   /* шкалы и монетки с отметками — одной строкой */
  html.gg-full .gg.on .gg-cell.side .gg-sub { display: none; }
  html.gg-full .gg.on .gg-board { --rowh: clamp(44px, 15%, 124px); gap: var(--gg-gap); padding: 5px; }
}
/* телефон: в полном экране — по очереди город или сцена места, каждое на весь экран (вместо прокрутки вниз к сцене).
   Нажал на здание — сцена (.gg-sp), «↑ К полю города» или новый шаг — снова город. */
@media (max-width: 760px) {
  html.gg-full .gg.on { padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  html.gg-full .gg.on .gg-hud { margin-bottom: 6px; padding-bottom: 10px; }
  html.gg-full .gg.on .gg-top { gap: 4px 10px; }
  html.gg-full .gg.on .gg-who img { width: 34px; height: 34px; }
  html.gg-full .gg.on .gg-who small, html.gg-full .gg.on .gg-day small, html.gg-full .gg.on .gg-ct2 small { display: none; }
  html.gg-full .gg.on .gg-who b, html.gg-full .gg.on .gg-day b, html.gg-full .gg.on .gg-ct2 b { font-size: 15px; }
  html.gg-full .gg.on .gg-clock svg { width: 32px; height: 32px; }
  html.gg-full .gg.on .gg-wxe { font-size: 22px; }
  html.gg-full .gg.on .gg-tool { min-height: 40px; padding: 4px 2px; }
  html.gg-full .gg.on .gg-ms { gap: 2px 12px; }
  html.gg-full .gg.on .gg-res .gg-sec { display: none; }
  html.gg-full .gg.on .gg-board { grid-template-rows: repeat(4, minmax(0, 1fr)); }
  html.gg-full .gg.on .gg-cell { min-height: 0; }
  html.gg-full .gg.on .gg-bld, html.gg-full .gg.on .gg-cell.side .gg-bld { max-width: min(72px, 100%); }
  html.gg-full .gg.on .gg-road { min-height: 0; }
  html.gg-full .gg.on .gg-panel { display: none; }
  html.gg-full .gg.on.gg-sp .gg-board { display: block; padding: 0; background: none; border-radius: 0; }
  html.gg-full .gg.on.gg-sp .gg-board > :not(.gg-panel) { display: none; }
  html.gg-full .gg.on.gg-sp .gg-panel { display: block; height: 100%; margin: 0; overflow: auto; overscroll-behavior: contain; }
  html.gg-full .gg.on .gg-foot { margin-top: 14px; }   /* над «Новой игрой» — зазор и от недолистанного списка дел */
  html.gg-full .gg.on .gg-rv { font-size: 12px; white-space: nowrap; }
  html.gg-full .gg.on .gg-foot .gg-link { white-space: nowrap; }
}
/* телефон боком и другие совсем низкие окна: середина поля мала для сцены — тоже город или сцена по очереди */
@media (min-width: 761px) and (max-height: 480px) {
  html.gg-full .gg.on .gg-panel { display: none; }
  html.gg-full .gg.on .gg-mid { display: grid; grid-row: 2 / 4; grid-column: 2 / 5; margin: calc(var(--road) + 2px); align-content: center; justify-items: center;
    text-align: center; font-size: 13px; font-weight: 800; line-height: 1.2; z-index: 1; min-height: 0; overflow: hidden; }
  html.gg-full .gg.on .gg-mid img { height: clamp(28px, 18vh, 70px); width: auto; }
  html.gg-full .gg.on .gg-mid small { display: none; }
  html.gg-full .gg.on.gg-sp .gg-board { display: block; padding: 0; background: none; border-radius: 0; }
  html.gg-full .gg.on.gg-sp .gg-board > :not(.gg-panel) { display: none; }
  /* клетки низкие и широкие: здание слева, короткое название справа, «сколько идти» — в углу */
  html.gg-full .gg.on .gg-cell, html.gg-full .gg.on .gg-cell.ring-t { flex-direction: row; justify-content: flex-start; align-items: center; gap: 2px; padding: 2px 4px; border-width: 2px; border-radius: 12px; }
  html.gg-full .gg.on .gg-bld, html.gg-full .gg.on .gg-cell.side .gg-bld { flex: none; width: auto; max-width: 48%; height: 100%; }
  html.gg-full .gg.on .gg-ct, html.gg-full .gg.on .gg-cell.ring-t .gg-ct { flex: 0 1 auto; min-width: 0; margin: 0 0 14px; padding: 1px 7px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.gg-full .gg.on .gg-ctl { display: none; }
  html.gg-full .gg.on .gg-cts { display: inline; }
  html.gg-full .gg.on .gg-walk, html.gg-full .gg.on .gg-cell.ring-t .gg-walk { top: auto; bottom: 3px; right: 4px; padding: 0 6px; font-size: 10.5px; }
  /* сцена места на весь экран: слева картинка, справа разговор и дела (листаются), внизу справа — «↑ К полю города» */
  html.gg-full .gg.on.gg-sp .gg-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 10px; height: 100%; margin: 0; overflow: hidden; }
  html.gg-full .gg.on.gg-sp .gg-tag { grid-column: 1; grid-row: 1; }
  html.gg-full .gg.on.gg-sp .gg-scene { grid-column: 1; grid-row: 2 / 4; align-self: start; justify-self: center; width: min(100%, calc((100vh - 190px) * 2.46)); }
  html.gg-full .gg.on.gg-sp .gg-pbody { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 0; padding: 0 2px 0 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  html.gg-full .gg.on.gg-sp .gg-pbody > .gg-acts { padding: 0; grid-template-columns: 1fr; overflow: visible; }
  html.gg-full .gg.on.gg-sp .gg-talk { display: contents; }
  html.gg-full .gg.on.gg-sp .gg-pbody > *, html.gg-full .gg.on.gg-sp .gg-talk > * { flex: none; }   /* не сжимать — листать */
  html.gg-full .gg.on.gg-sp .gg-pbody .gg-bubble, html.gg-full .gg.on.gg-sp .gg-pbody .gg-bank { order: -1; font-size: 14px; }
  html.gg-full .gg.on.gg-sp .gg-bubble::before, html.gg-full .gg.on.gg-sp .gg-acts.more::after { display: none; }
  html.gg-full .gg.on.gg-sp .gg-up { grid-column: 2; grid-row: 3; min-height: 40px; margin: 14px 0 0; padding: 4px 14px; }   /* зазор от недолистанного списка дел */
  html.gg-full .gg.on .gg-up { display: block; }
}
/* кнопки звука, музыки и экрана */
.gg-tool.ic { min-width: 40px; padding: 8px 10px; }
.gg-tool.ic svg { width: 18px; height: 18px; vertical-align: -3px; }
.gg-tool.off { opacity: .45; text-decoration: line-through; }
.gg-opts2 { display: flex; flex-wrap: wrap; gap: var(--gg-row) var(--gg-gap); }
.gg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer; }
.gg-chip svg { width: 16px; height: 16px; }
.gg-chip[aria-pressed="false"] { opacity: .6; text-decoration: line-through; }
.gg-chip[aria-pressed="true"] { border-color: var(--water); background: var(--sky-2); }
.gg-volrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gg-row) 12px; }
.gg-vol { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.gg-vol input { flex: 0 1 180px; width: 180px; min-width: 90px; accent-color: var(--water); height: 30px; }
.gg-soundhelp { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--sun-soft); font-size: 15px; line-height: 1.45; }
