/* ============================================================
   雙城小遊戲 — 線上互動（沿用主站 tokens.css：橘黃 gold、暖白紙、圓體字）
   遊戲區只加碼：紙紋噪點、墨暈動態；溫度一律「墨底金字」或墨字
   ============================================================ */
:root {
  --gg-ink: var(--ink, #211d18);
  --gg-cool: #4a6b78;              /* 新增唯一語意色：低溫／冰塊 */
  --gg-ease: cubic-bezier(.2,.7,.3,1);
  --gg-paper-warm: #faf3e4;
}

/* ---------- 遊戲區首頁（報紙頭版式）---------- */
.gh-hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: center; padding: var(--space-10) 0 var(--space-6); }
.gh-hero h1 { font-size: 44px; line-height: 1.15; margin: var(--space-2) 0 var(--space-4); }
.gh-hero h1 em { font-style: normal; color: var(--gold); }
.gh-hero p.lead { font-size: 18px; color: var(--ink2); max-width: 34em; }
.gh-hero-art { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-warm); aspect-ratio: 16/10; }
.gh-hero-art img { width: 100%; height: 100%; object-fit: cover; }
.gh-total { display: inline-flex; align-items: baseline; gap: 10px; margin-top: var(--space-5); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.gh-total b { font-family: var(--font-mono); color: var(--gold2); font-size: 22px; }
.gh-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--radius-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); border: 1px solid var(--paper3); color: inherit; margin: var(--space-6) 0 var(--space-8); text-decoration: none; }
.gh-feature:hover { color: inherit; box-shadow: var(--shadow-lg); }
.gh-feature-img { position: relative; min-height: 280px; background: var(--paper-warm); }
.gh-feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--gg-ease); }
.gh-feature:hover .gh-feature-img img { transform: scale(1.03); }
.gh-feature-body { padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.gh-feature-body h2 { font-size: 30px; }
.gh-feature-body .bold { color: var(--ink2); font-size: 17px; }
.gh-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: #b45309; text-transform: uppercase; }
.gh-index { border-top: 2px solid var(--ink); margin-bottom: var(--space-10); }
.gh-index h2 { font-size: 15px; font-family: var(--font-mono); letter-spacing: .14em; color: var(--ink3); padding: var(--space-3) 0; font-weight: 500; }
.gh-row { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-3) 0; border-top: 1px dashed var(--paper3); color: inherit; text-decoration: none; transition: background .15s; }
.gh-row:hover { background: rgba(217,95,4,.05); color: inherit; }
.gh-row .no { font-family: var(--font-mono); color: var(--ink3); font-size: 14px; }
.gh-row .thumb { width: 96px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-warm); }
.gh-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gh-row h3 { font-size: 19px; margin: 0; }
.gh-row p { font-size: 14px; color: var(--ink2); margin: 2px 0 0; line-height: 1.6; }
.gh-row .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gh-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper-warm); color: var(--ink2); white-space: nowrap; }
.gh-tag.t-gold { background: var(--gold-bg); color: #b45309; }
.gh-tag.t-teal { background: var(--teal-bg); color: var(--teal); }
.gh-tag.done { background: var(--ink); color: var(--gold2); }
.gh-faq { max-width: 760px; margin: 0 auto var(--space-16); }
.gh-faq details { border-bottom: 1px solid var(--paper3); padding: var(--space-4) 0; }
.gh-faq summary { cursor: pointer; font-weight: 800; color: var(--ink); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gh-faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.gh-faq details[open] summary::after { content: "−"; }
.gh-faq p { margin-top: var(--space-2); color: var(--ink2); }
.gh-about { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-6) 0 var(--space-10); }
.gh-about .card { padding: var(--space-6); }
.gh-about h3 { font-size: 17px; margin-bottom: 6px; }
.gh-about p { font-size: 15px; color: var(--ink2); }
@media (max-width: 860px) {
  .gh-hero, .gh-feature { grid-template-columns: 1fr; }
  .gh-hero h1 { font-size: 34px; }
  .gh-hero { padding-top: var(--space-6); gap: var(--space-5); }
  .gh-feature-img { min-height: 210px; }
  .gh-feature-body { padding: var(--space-6); }
  .gh-about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gh-row { grid-template-columns: 72px 1fr; grid-template-areas: "thumb title" "thumb tags"; row-gap: 4px; }
  .gh-row .no { display: none; }
  .gh-row .thumb { grid-area: thumb; width: 72px; height: 56px; }
  .gh-row .ttl { grid-area: title; }
  .gh-row .tags { grid-area: tags; justify-content: flex-start; }
  .gh-row p { display: none; }
}

/* ---------- 介紹頁 ---------- */
.gi-crumb { font-size: 14px; color: var(--ink3); padding-top: var(--space-6); }
.gi-crumb a { color: var(--ink2); }
.gi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); padding: var(--space-6) 0 var(--space-10); align-items: start; }
.gi-art { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-warm); aspect-ratio: 16/10; position: sticky; top: 90px; }
.gi-art img { width: 100%; height: 100%; object-fit: cover; }
.gi-wrap h1 { font-size: 38px; margin: var(--space-2) 0 var(--space-3); }
.gi-lead { font-size: 18px; }
.gi-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-4) 0; }
.gi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.gi-stats div { background: #fff; border: 1px solid var(--paper3); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.gi-stats b { display: block; font-family: var(--font-mono); font-size: 22px; color: var(--ink); }
.gi-stats small { font-size: 12px; color: var(--ink3); }
.gi-play { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; padding: 16px 34px; }
.gi-box { margin-top: var(--space-6); padding: var(--space-6); background: #fff; border: 1px solid var(--paper3); border-radius: var(--radius-lg); }
.gi-box h2 { font-size: 20px; margin-bottom: var(--space-3); }
.gi-how { counter-reset: s; display: grid; gap: 10px; }
.gi-how li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.gi-how li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.gi-stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gi-stores a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-md); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.35; }
.gi-stores a:hover { background: var(--gold-bg); }
.gi-stores img { width: 40px; height: 40px; flex: none; }
.gi-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gi-more a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--paper3); background: #fff; color: var(--ink); font-weight: 700; }
.gi-more img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; }
@media (max-width: 860px) { .gi-wrap { grid-template-columns: 1fr; } .gi-art { position: static; } .gi-wrap h1 { font-size: 30px; } }

/* ---------- 遊戲頁外框（全螢幕直式；此頁不載 main.css，自帶基礎樣式）---------- */
body.gg-body, body.gg-body *, body.gg-body *::before, body.gg-body *::after { box-sizing: border-box; }
body.gg-body { margin: 0; background: var(--paper); overscroll-behavior: none; font-family: var(--font-sans); font-weight: 500; color: var(--ink2); line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
:where(body.gg-body) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
:where(body.gg-body) :where(h1, h2, h3) { color: var(--ink); font-weight: 800; line-height: 1.3; }
:where(body.gg-body) :where(ul, ol) { list-style: none; }
:where(body.gg-body) img { max-width: 100%; display: block; }
:where(body.gg-body) a { color: var(--blue); text-decoration: none; }
:where(body.gg-body) button { font-family: inherit; cursor: pointer; }
body.gg-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .47 0 0 0 0 .28 0 0 0 0 .04 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gg-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: rgba(253,248,243,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--paper3); }
.gg-top a.gg-back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); font-weight: 700; font-size: 15px; }
.gg-top .gg-top-title { flex: 1; text-align: center; font-weight: 800; color: var(--ink); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--paper3); background: #fff; display: grid; place-items: center; color: var(--ink2); }
.gg-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.gg-icon-btn.on { background: var(--ink); color: var(--gold2); border-color: var(--ink); }
.gg-icon-btn .off-line { display: block; } .gg-icon-btn.on .off-line { display: none; }
#ggApp { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); padding: 0 16px 40px; }

/* 通用按鈕（墨底 primary） */
.gg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em; cursor: pointer; transition: transform .15s var(--gg-ease), box-shadow .15s; box-shadow: 0 4px 0 rgba(0,0,0,.18); text-decoration: none; }
.gg-btn:hover { color: #fff; transform: translateY(-1px); }
.gg-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.gg-btn.gold { background: var(--gold); }
.gg-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.gg-btn[disabled] { opacity: .45; pointer-events: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 1px var(--ink); }

/* ---------- 開始頁 ---------- */
.gg-intro { padding: 18px 0 30px; text-align: center; animation: ggIn .35s var(--gg-ease); }
.gg-intro-art { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--paper-warm); box-shadow: var(--shadow-md); }
.gg-intro-art img { width: 100%; height: 100%; object-fit: cover; }
.gg-no { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: #b45309; letter-spacing: .06em; }
.gg-title { font-size: 28px; margin: 4px 0 6px; }
.gg-lead { color: var(--ink2); font-size: 16px; }
.gg-how { text-align: left; margin: 16px auto; max-width: 360px; display: grid; gap: 8px; counter-reset: s; }
.gg-how li { counter-increment: s; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink); font-size: 15px; background: #fff; border-radius: var(--radius-md); padding: 10px 12px; border: 1px solid var(--paper3); }
.gg-how li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 13px; }
.gg-modes { border: 0; margin: 4px auto 18px; max-width: 360px; text-align: left; display: grid; gap: 8px; }
.gg-modes legend { font-size: 13px; color: var(--ink3); font-weight: 700; margin-bottom: 6px; }
.gg-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); background: var(--paper-warm); cursor: pointer; }
.gg-mode input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 3px; flex: none; }
.gg-mode b { display: block; color: var(--ink); font-size: 15px; }
.gg-mode small { color: var(--ink2); font-size: 13px; line-height: 1.5; }
.gg-btn-go { min-width: 220px; font-size: 19px; }
.gg-mybest { margin-top: 10px; font-size: 14px; color: var(--ink2); }
.gg-mybest b { font-family: var(--font-mono); color: var(--ink); }
.gg-note { margin-top: 14px; font-size: 13px; color: var(--ink2); }

/* ---------- 遊戲中 HUD ---------- */
.gg-play { padding-top: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gg-hud { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.gg-temp { display: inline-flex; align-items: baseline; gap: 4px; background: var(--ink); color: var(--gold2); border-radius: 999px; padding: 6px 14px 6px 12px; font-family: var(--font-mono); }
.gg-temp-k { font-family: var(--font-sans); font-size: 11px; color: var(--paper3); font-weight: 700; margin-right: 2px; }
.gg-temp-v { font-size: 24px; font-weight: 500; line-height: 1; min-width: 3.1ch; text-align: right; }
.gg-temp-u { font-size: 13px; }
.gg-temp.up .gg-temp-v { animation: ggUp .2s ease-out; }
.gg-temp.down .gg-temp-v { animation: ggDown .12s ease-out; color: #9fc3cf; }
.gg-hud-mid { flex: 1; font-size: 14px; color: var(--ink2); font-weight: 700; text-align: center; }
.gg-hud-r { font-family: var(--font-mono); color: var(--ink); font-size: 16px; }
.gg-timer { height: 8px; border-radius: 99px; background: var(--paper3); overflow: hidden; margin: 6px 0 10px; }
.gg-timer i { display: block; height: 100%; background: var(--gold); width: 100%; transform-origin: left; }
.gg-timer.low i { background: var(--red); }
@keyframes ggUp { 0% { transform: translateY(4px); } 100% { transform: none; } }
@keyframes ggDown { 0% { transform: translateY(-4px); } 100% { transform: none; } }
@keyframes ggIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ggPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ggShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes ggBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ggInk { from { clip-path: circle(0% at 50% 50%); filter: blur(6px); } to { clip-path: circle(75% at 50% 50%); filter: blur(0); } }

/* 溫度計 */
.gg-thermo { position: relative; width: 44px; display: flex; flex-direction: column; align-items: center; }
.gg-thermo-tube { position: relative; flex: 1; width: 18px; border-radius: 10px 10px 0 0; background: #fff; border: 3px solid var(--ink); border-bottom: 0; overflow: visible; }
.gg-thermo-fill { position: absolute; left: 2px; right: 2px; bottom: 0; height: 10%; border-radius: 6px 6px 0 0; background: var(--gold); transition: height .2s ease-out; }
.gg-thermo.fever .gg-thermo-fill { background: var(--red); box-shadow: 0 0 14px var(--gold2); }
.gg-thermo-tube i { position: absolute; left: -6px; width: 6px; height: 2px; background: var(--ink); }
.gg-thermo-tube i span { position: absolute; right: 10px; top: -8px; font: 500 10px var(--font-mono); color: var(--ink2); }
.gg-thermo-tube i.hi { background: var(--red); }
.gg-thermo-bulb { width: 34px; height: 34px; margin-top: -4px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.gg-thermo.fever .gg-thermo-bulb { background: var(--red); }

.gg-float { position: absolute; pointer-events: none; font-weight: 800; font-family: var(--font-mono); font-size: 18px; animation: ggFloat .9s var(--gg-ease) forwards; white-space: nowrap; z-index: 5; }
.gg-float.plus { color: var(--teal); } .gg-float.minus { color: var(--gg-cool); }
@keyframes ggFloat { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -46px); } }
.gg-bar { position: relative; margin: 8px 0; padding: 10px 14px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--paper3); font-weight: 700; color: var(--ink); min-height: 46px; font-size: 15px; line-height: 1.55; }
.gg-bar.ok { border-left: 4px solid var(--teal); }
.gg-bar.no { border-left: 4px solid var(--red); }
.gg-sprite { background-repeat: no-repeat; image-rendering: auto; }

/* ---------- 結算頁 ---------- */
.gg-result { padding: 18px 0 30px; text-align: center; animation: ggIn .35s var(--gg-ease); }
.gg-res-art { margin: 10px auto 0; }
.gg-res-title { font-size: 26px; margin: 10px 0 4px; }
.gg-res-sub { color: var(--ink2); }
.gg-res-temp { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.gg-res-pill { background: var(--ink); color: var(--paper3); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 14px; }
.gg-res-pill b { font-family: var(--font-mono); color: var(--gold2); font-size: 26px; font-weight: 500; margin-left: 4px; }
.gg-res-grade { font-weight: 800; color: var(--ink); font-size: 20px; border-bottom: 3px solid var(--gold); }
.gr-fever .gg-res-grade { color: var(--red); border-color: var(--red); }
.gg-res-best { background: var(--teal); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 800; }
.gg-res-line { color: var(--ink2); font-size: 15px; }
.gg-res-sep { margin: 10px auto 0; font-size: 13px; color: var(--ink2); background: var(--paper-warm); border-radius: var(--radius-md); padding: 8px 12px; max-width: 360px; }
.gg-res-h { font-size: 18px; margin: 26px 0 12px; text-align: left; }
.gg-reco { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.gg-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--paper3); color: var(--ink); text-decoration: none; transition: transform .15s var(--gg-ease), box-shadow .15s; }
.gg-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gg-card.is-main { grid-column: 1 / -1; }
.gg-card-img { position: relative; display: block; aspect-ratio: 16/9; background: var(--paper-warm); }
.gg-card:not(.is-main) .gg-card-img { aspect-ratio: 4/3; }
.gg-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gg-card-img .gg-card-ico { position: absolute; right: 8px; bottom: -22px; width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; box-shadow: var(--shadow-sm); border: 2px solid var(--paper3); }
.gg-card:not(.is-main) .gg-card-ico { width: 48px; height: 48px; bottom: -16px; }
.gg-card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.gg-card-slot { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: #b45309; }
.gg-card-name { font-size: 18px; line-height: 1.3; padding-right: 54px; }
.gg-card:not(.is-main) .gg-card-name { font-size: 15px; padding-right: 30px; }
.gg-card-meta { font-size: 13px; color: var(--ink2); }
.gg-card-why { font-size: 13px; background: rgba(251,191,36,.28); color: var(--ink); border-radius: 6px; padding: 4px 8px; line-height: 1.5; margin-top: 4px; }
.gg-card-go { margin-top: 6px; font-weight: 800; color: var(--gold); font-size: 14px; }
.gg-res-share { margin: 22px auto 0; }
.gg-res-links { margin-top: 14px; font-size: 15px; color: var(--ink3); }
.gg-res-links a { font-weight: 700; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }

/* 結算頁：真實活動廣告 */
.gg-promo { margin-top: 24px; display: grid; gap: 10px; text-align: left; }
.gg-promo a { color: var(--ink); text-decoration: none; }
.gg-promo-main { position: relative; display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #fff6e6, #ffe7c9); border: 2px solid var(--gold); box-shadow: 0 6px 0 rgba(217,95,4,.18); }
.gg-promo-art { display: block; aspect-ratio: 2/1; background: #ffe7c9; }
.gg-promo-art img { width: 100%; height: 100%; object-fit: cover; }
.gg-promo-tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; background: rgba(33,29,24,.82); color: #fff; padding: 3px 9px; border-radius: 999px; }
.gg-promo-txt { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; font-size: 14px; line-height: 1.65; }
.gg-promo-txt b { color: var(--ink); }
.gg-promo-h { font-size: 19px; color: var(--ink); }
.gg-promo-cta { align-self: flex-start; margin-top: 4px; background: var(--gold); color: #fff; font-weight: 800; padding: 9px 18px; border-radius: 999px; font-size: 15px; }
.gg-promo-sub { display: grid; grid-template-columns: 96px 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--paper3); }
.gg-promo-thumb { background: #fbe9c3; }
.gg-promo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gg-promo-sub .gg-promo-txt { padding: 12px 14px; font-size: 13px; gap: 3px; }
.gg-promo-sub .gg-promo-h { font-size: 16px; }
.gg-promo-meta { font-family: var(--font-mono); font-size: 12px; color: #b45309; }
.gg-promo-sub .gg-promo-cta { background: none; color: var(--gold); padding: 0; font-size: 14px; }
.gg-promo-note { font-size: 12px; color: var(--ink3); text-align: center; }

/* 分享列 */
.gg-share { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gg-share-label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.gg-share-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gg-share-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .15s; }
.gg-share-btn:hover { transform: translateY(-2px); }
.gg-share-btn svg { width: 22px; height: 22px; fill: currentColor; }
.gg-share-btn.is-line { background: #06C755; } .gg-share-btn.is-facebook { background: #1877F2; }
.gg-share-btn.is-threads, .gg-share-btn.is-x { background: #111; }
.gg-share-btn.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.gg-share-btn.is-copy { background: var(--slate); }
.gg-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; transition: .25s; z-index: 1000; max-width: 92vw; text-align: center; }
.gg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.gg-modal { position: fixed; inset: 0; z-index: 999; background: rgba(33,29,24,.6); display: grid; place-items: center; padding: 16px; }
.gg-modal-box { background: #fff; border-radius: var(--radius-lg); padding: 16px; max-width: 420px; width: 100%; text-align: center; display: grid; gap: 10px; }
.gg-modal-box img { max-height: 65vh; margin: 0 auto; border-radius: var(--radius-md); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= G01 你是哪一味雙城人？ ================= */
.g1-dots { display: flex; justify-content: center; gap: 10px; padding: 14px 0 6px; }
.g1-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; transition: background .2s; }
.g1-dots i.on { background: var(--ink); }
.g1-dots i.cur { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.g1-qno { text-align: center; font-family: var(--font-mono); color: #b45309; font-size: 13px; margin-top: 10px; }
.g1-q { text-align: center; font-size: 22px; line-height: 1.45; margin: 6px 4px 22px; min-height: 64px; }
.g1-opts { display: grid; gap: 12px; }
.g1-opts.in-r { animation: g1InR .22s var(--gg-ease); } .g1-opts.in-l { animation: g1InL .22s var(--gg-ease); }
@keyframes g1InR { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes g1InL { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.g1-opt { display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--radius-md); border: 2px solid var(--paper3); background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; transition: border-color .15s, transform .15s, background .15s; }
.g1-opt:hover { border-color: var(--gold); }
.g1-opt.pick { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(.98); }
.g1-ab { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-bg); color: #b45309; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; }
.g1-opt.pick .g1-ab { background: var(--gold); color: #fff; }
.g1-back { margin: 18px auto 0; display: block; border: 0; background: none; color: var(--ink2); font-weight: 700; font-size: 15px; padding: 10px; }
.g1-reveal { text-align: center; padding-top: 60px; }
.g1-reveal img { width: 280px; height: 280px; margin: 0 auto; animation: ggInk 1.2s var(--gg-ease) both; }
.g1-reveal p { margin-top: 16px; font-weight: 700; color: var(--ink2); }
.g1-cert { position: relative; margin: 16px 0 6px; padding: 18px 18px 20px; background: #fffaf2; border: 2px solid var(--ink); border-radius: var(--radius-md); box-shadow: 6px 6px 0 var(--gold-bg); text-align: center; }
.g1-cert::before { content: ""; position: absolute; left: -2px; right: -2px; top: 44px; border-top: 2px dashed var(--paper3); }
.g1-cert-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--ink); padding-bottom: 14px; }
.g1-cert-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink2); font-weight: 500; }
.g1-cert-art { width: 220px; height: 220px; margin: 8px auto 0; animation: ggBob 3.2s ease-in-out infinite; }
.g1-cert-bold { font-weight: 800; color: #b45309; font-size: 17px; margin-top: 6px; }
.g1-cert-desc { margin: 8px auto 12px; max-width: 300px; display: grid; gap: 4px; color: var(--ink2); font-size: 15px; }
.g1-cert-rep { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 13px; }
.g1-cert-rep b { width: 100%; font-size: 12px; color: var(--ink3); }
.g1-cert-rep a { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--paper3); border-radius: 999px; padding: 3px 10px 3px 4px; color: var(--ink); font-weight: 700; }
.g1-cert-rep img { width: 26px; height: 26px; }
.g1-seal { position: absolute; right: 16px; top: 64px; width: 58px; height: 58px; border: 3px solid var(--red); color: var(--red); font-weight: 900; font-size: 15px; line-height: 1.15; display: grid; place-items: center; transform: rotate(-12deg); border-radius: 6px; opacity: .85; }
.g1-all { margin-top: 10px; text-align: left; }
.g1-all summary { cursor: pointer; font-weight: 700; color: var(--ink2); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.g1-all > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.g1-all-it { text-align: center; font-size: 12px; background: #fff; border-radius: var(--radius-md); padding: 6px 4px; border: 1px solid var(--paper3); }
.g1-all-it.me { border-color: var(--gold); background: var(--gold-bg); }
.g1-all-it img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.g1-all-it b { display: block; color: var(--ink); font-size: 13px; }
.g1-all-it small { color: var(--ink3); line-height: 1.3; display: block; }

/* ================= G05 廟東換裝間 ================= */
.g5-card { position: relative; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: #fff; border: 2px dashed var(--gold); display: grid; gap: 2px; }
.g5-card-k { font-size: 12px; color: #b45309; font-weight: 800; }
.g5-sit { color: var(--ink); font-size: 17px; line-height: 1.45; padding-right: 60px; }
.g5-redraw { position: absolute; right: 10px; top: 10px; border: 0; background: var(--gold-bg); color: #b45309; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.g5-room { position: relative; height: 420px; margin: 10px 0 6px; border-radius: var(--radius-lg); background: radial-gradient(ellipse at 50% 92%, rgba(217,95,4,.16) 0 22%, transparent 23%), linear-gradient(#fff6ea, #fdf1e0); overflow: hidden; }
.g5-doll { position: absolute; left: 50%; bottom: 8px; height: 404px; aspect-ratio: 608/1590; transform: translateX(-50%); transform-origin: 50% 100%; animation: g5Sway 4s ease-in-out infinite; }
.g5-doll.hop { animation: g5Hop .32s var(--gg-ease), g5Sway 4s ease-in-out .32s infinite; }
.g5-doll.twirl { animation: g5Twirl .9s var(--gg-ease); }
.g5-base { width: 100%; height: 100%; }
.g5-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; max-width: none; }
@keyframes g5Sway { 0%,100% { transform: translateX(-50%) rotate(-1deg); } 50% { transform: translateX(-50%) rotate(1deg); } }
@keyframes g5Hop { 0% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 100% { transform: translateX(-50%) translateY(0); } }
@keyframes g5Twirl { 0% { transform: translateX(-50%) scaleX(1); } 50% { transform: translateX(-50%) scaleX(-1); } 100% { transform: translateX(-50%) scaleX(1); } }
.g5-dots { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.g5-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.g5-dots i.on { background: var(--ink); }
.g5-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.g5-tabs button { min-height: 44px; border-radius: 999px; border: 2px solid var(--paper3); background: #fff; font-weight: 800; color: var(--ink2); font-size: 15px; position: relative; }
.g5-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.g5-tabs button.has::after { content: ""; position: absolute; top: 4px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.g5-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 6px; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.g5-strip::-webkit-scrollbar { display: none; }
.g5-item { flex: none; width: 104px; scroll-snap-align: start; border: 2px solid var(--paper3); background: #fff; border-radius: var(--radius-md); padding: 6px 6px 8px; text-align: center; display: grid; gap: 2px; }
.g5-item.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-bg); }
.g5-item-img { height: 80px; display: grid; place-items: center; font-size: 28px; color: var(--ink3); }
.g5-item-img img { max-height: 76px; max-width: 88px; object-fit: contain; }
.g5-item b { font-size: 14px; color: var(--ink); line-height: 1.3; }
.g5-item small { font-size: 12px; color: var(--ink2); line-height: 1.3; font-family: var(--font-mono); }
.g5-small { font-size: 12px; color: var(--ink3); text-align: center; margin: 4px 0 8px; }
.g5-done { width: 100%; }
.g5-bag { position: relative; margin: 14px auto 6px; max-width: 340px; padding: 26px 18px 16px; border-radius: 6px 6px 14px 14px; background: #d9b98a; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 2px, transparent 2px 6px); color: var(--ink); box-shadow: 0 8px 0 rgba(120,72,10,.12); }
.g5-clasp { position: absolute; top: -10px; left: 50%; width: 46px; height: 20px; margin-left: -23px; border-radius: 10px; background: linear-gradient(#cfcfcf, #8d8d8d); border: 2px solid #555; }
.g5-bag-doll { position: relative; height: 300px; }
.g5-bag-doll .g5-doll { height: 296px; animation: none; bottom: 0; }
.g5-bag-hand { font-size: 20px; font-weight: 800; transform: rotate(-2deg); margin-top: 8px; }
.g5-bag-rate b { letter-spacing: 2px; }
.g5-receipt { margin-top: 10px; background: #fffaf2; border-radius: 6px; padding: 10px 12px; text-align: left; font-size: 14px; display: grid; gap: 6px; border-top: 2px dashed var(--paper3); }
.g5-receipt li { display: flex; justify-content: space-between; gap: 10px; }
.g5-receipt a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ================= G02 暖心接接樂 ================= */
.g2-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); touch-action: none; }
.g2-cv { display: block; touch-action: none; }
.g2-th { position: absolute; right: 6px; top: 12px; bottom: 40px; width: 44px; pointer-events: none; }
.g2-th .gg-thermo-tube i span { right: auto; left: -30px; }
.g2-help { position: absolute; left: 0; right: 48px; top: 6px; text-align: center; font-size: 12px; color: var(--ink2); pointer-events: none; }
.g2-combo { color: var(--teal); font-weight: 800; }
.g2-notes { position: absolute; left: 8px; top: 34px; width: 62%; pointer-events: none; }
.g2-note { background: #fffdf6; border: 1px solid var(--paper3); box-shadow: 2px 3px 0 rgba(0,0,0,.08); padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--ink); transform: rotate(-2deg); margin-bottom: -18px; animation: ggPop .3s var(--gg-ease); transition: opacity .4s, transform .4s; }
.g2-note:nth-child(2n) { transform: rotate(1.5deg); }
.g2-note.out { opacity: 0; transform: translateY(-10px); }
.g2-banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); font-size: 34px; font-weight: 900; color: var(--red); text-shadow: 0 3px 0 #fff, 0 0 18px #fbbf24; opacity: 0; pointer-events: none; white-space: nowrap; }
.g2-banner.on { animation: g2Ban 1.8s var(--gg-ease); }
@keyframes g2Ban { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; } }
.g2-res-hero { width: 150px; height: 180px; margin: 0 auto; background-size: 1200px 180px; background-position: -1050px 0; background-repeat: no-repeat; animation: ggBob 1.2s ease-in-out infinite; }

/* ================= G03 雙城連線翻翻樂 ================= */
.g3-board { position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; margin: 10px 0; }
.g3-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.g3-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; opacity: .55; transition: stroke-dashoffset .6s var(--gg-ease); }
.g3-card { position: relative; aspect-ratio: 4/5; border: 0; padding: 0; background: none; perspective: none; border-radius: 10px; }
.g3-back, .g3-face { position: absolute; inset: 0; border-radius: 10px; transition: transform .18s ease-in, opacity 0s .09s; box-shadow: 0 2px 0 rgba(33,29,24,.18), 0 4px 10px rgba(120,72,10,.10); }
.g3-back { background: #2F7F6F center/cover no-repeat; }
.g3-face { background: #fffaf2; border: 2px solid var(--paper3); display: grid; place-items: center; transform: scaleX(0); opacity: 0; }
.g3-face img { width: 80%; height: 80%; object-fit: contain; }
.g3-card.up .g3-back { transform: scaleX(0); opacity: 0; }
.g3-card.up .g3-face { transform: scaleX(1); opacity: 1; transition: transform .18s ease-out .09s, opacity 0s .09s; }
.g3-seal { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 4px; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; display: grid; place-items: center; }
.g3-seal.ch { background: var(--teal); } .g3-seal.fy { background: var(--gold); }
.g3-card.done .g3-face { border-color: var(--teal); background: #f1faf6; }
.g3-card.done .g3-face::after { content: "連線"; position: absolute; left: 4px; top: 4px; font-size: 11px; font-weight: 900; color: var(--red); border: 2px solid var(--red); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; transform: rotate(-14deg); background: rgba(255,255,255,.7); animation: ggPop .3s var(--gg-ease); }
.g3-card.no { animation: ggShake .12s 2; }
.g3-card.no .g3-face { border-color: var(--red); }
.g3-board.fin .g3-card { transition: transform .9s var(--gg-ease); transform: scale(.92); }
.g3-pairlist { display: grid; gap: 6px; margin: 14px 0 4px; text-align: left; }
.g3-pl { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--paper3); border-radius: var(--radius-md); padding: 6px 8px; }
.g3-pl.me { border-color: var(--gold); background: var(--gold-bg); }
.g3-pl img { width: 40px; height: 40px; }
.g3-pl b { display: block; color: var(--ink); font-size: 14px; }
.g3-pl small { color: var(--ink2); font-size: 12px; }

/* ================= G04 古城拓印 ================= */
.g4-top { display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-top: 8px; }
.g4-paper { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--gold-bg); touch-action: none; }
.g4-cv { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.g4-seal { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; border: 4px solid var(--red); color: var(--red); font-weight: 900; font-size: 20px; display: grid; place-items: center; border-radius: 8px; transform: rotate(-12deg) scale(1.6); opacity: 0; transition: .25s var(--gg-ease); background: rgba(255,255,255,.5); }
.g4-seal.on { opacity: .9; transform: rotate(-12deg) scale(1); }
.g4-side { text-align: center; }
.g4-mini { width: 88px; height: 88px; border: 2px solid var(--paper3); border-radius: 6px; background: #f4ecdb; margin: 0 auto; }
.g4-area { font-family: var(--font-mono); font-size: 12px; color: var(--ink); margin-top: 6px; line-height: 1.4; }
.g4-tip { font-size: 12px; color: var(--ink2); margin-top: 6px; line-height: 1.4; }
.g4-clues { margin-top: 10px; display: grid; gap: 6px; }
.g4-clues p { background: #fff; border: 1px solid var(--paper3); border-radius: var(--radius-md); padding: 8px 12px; color: var(--ink); font-size: 16px; animation: ggIn .25s var(--gg-ease); }
.g4-clues b { color: #b45309; font-size: 13px; margin-right: 8px; }
.g4-ans.ok { border-color: var(--teal) !important; border-left: 4px solid var(--teal) !important; }
.g4-ans.no { border-left: 4px solid var(--red) !important; }
.g4-ans a { font-weight: 900; color: var(--ink); text-decoration: underline; margin-left: 4px; }
.g4-more { margin-top: 8px; border: 0; background: none; color: #b45309; font-weight: 800; font-size: 14px; padding: 6px 0; }
.g4-direct { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.g4-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.g4-opt { min-height: 56px; border-radius: var(--radius-md); border: 2px solid var(--paper3); background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; padding: 8px; line-height: 1.35; }
.g4-opt.ok { border-color: var(--teal); background: #eef8f4; }
.g4-opt.ok::after { content: " ✓"; color: var(--teal); }
.g4-opt.no { border-color: var(--red); background: #fdf0ee; }
.g4-opt.no::after { content: " ✕"; color: var(--red); }
.g4-next-wrap { margin-top: 12px; text-align: center; }
.g4-book { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.g4-bk { position: relative; background: #f4ecdb; border-radius: 6px; padding: 6px 4px; text-align: center; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.3; }
.g4-bk img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: grayscale(1) contrast(1.4) brightness(.7); }
.g4-bk.ok img { filter: none; }
.g4-bk i { display: block; font-style: normal; color: var(--ink3); font-size: 10px; }
.g4-bk.ok i { color: var(--red); }

/* ================= G06 扇形車庫調度員 ================= */
.g6-ticket { position: relative; margin: 4px 0 8px; padding: 10px 14px 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; gap: 2px; }
.g6-ticket::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); }
.g6-tk-k { font-size: 11px; color: var(--paper3); font-weight: 700; }
.g6-need { color: var(--gold2); font-size: 20px; line-height: 1.35; }
.g6-nextneed { color: var(--paper3); font-size: 12px; }
.g6-yard { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); touch-action: none; background: #efe6d4; }
.g6-svg { display: block; width: 100%; height: auto; max-height: 56vh; }
.g6-track.aim line:first-child { stroke: var(--gold2); }
.g6-track.bad line:first-child { stroke: var(--red); }
.g6-name { font: 700 12px "Noto Sans TC", sans-serif; fill: #211d18; paint-order: stroke; stroke: #fdf8f3; stroke-width: 4px; }
.g6-garage.lit .g6-sign { stroke: #D95F04; stroke-width: 4; }
.g6-garage.lit .g6-lamp { filter: drop-shadow(0 0 6px #fbbf24); }
.g6-puff.on { animation: g6Puff .7s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes g6Puff { from { opacity: 1; transform: scale(.4) translateY(10px); } to { opacity: 0; transform: scale(1.4) translateY(-20px); } }
.g6-ctrl { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; margin-top: 8px; }
.g6-rot { min-height: 56px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; font-size: 22px; color: var(--ink); }
.g6-go { min-height: 56px; }
.g6-help { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 6px; }
.g6-msg.ok { border-left: 4px solid var(--teal); } .g6-msg.no { border-left: 4px solid var(--red); }
.g6-lit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.g6-lit a { background: #3a3832; border-radius: 8px; padding: 6px 4px; text-align: center; color: #bfb7aa; font-size: 11px; line-height: 1.3; opacity: .7; }
.g6-lit a.on { background: #fff6dd; color: var(--ink); opacity: 1; box-shadow: 0 0 0 2px var(--gold2), 0 0 14px rgba(251,191,36,.6); }
.g6-lit img { width: 44px; height: 44px; margin: 0 auto 2px; filter: grayscale(1) brightness(.7); }
.g6-lit a.on img { filter: none; }

/* ================= G07 廟東小攤當家 ================= */
.g7-stall { position: relative; height: min(560px, calc(100dvh - 210px)); min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); background-size: cover; background-position: center 30%; touch-action: none; }
.g7-theme { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(33,29,24,.82); color: var(--gold2); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; z-index: 3; }
.g7-theme.on { animation: ggPop .4s var(--gg-ease); }
.g7-line { position: absolute; left: 6px; right: 6px; top: 16%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.g7-slot { position: relative; min-height: 210px; border-radius: 14px; transition: background .15s; }
.g7-slot.hover { background: rgba(251,191,36,.28); box-shadow: 0 0 0 3px var(--gold2) inset; }
.g7-cust { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; transition: transform .35s var(--gg-ease), opacity .35s; }
.g7-cust.in { animation: g7In .35s var(--gg-ease); }
.g7-cust.out { transform: translateY(30px); opacity: 0; }
.g7-cust.no { animation: ggShake .12s 2; }
@keyframes g7In { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.g7-face { width: 104px; height: 104px; background-size: 300% 100%; background-repeat: no-repeat; background-position: 50% 0; animation: ggBob 2.6s ease-in-out infinite; }
.g7-bubble { position: relative; display: flex; gap: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 4px 6px; margin-bottom: 4px; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.g7-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.g7-bubble img { width: 34px; height: 34px; }
.g7-bubble b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g7-pat { width: 74px; height: 7px; border-radius: 6px; background: rgba(255,255,255,.7); border: 1px solid var(--ink); overflow: hidden; margin-bottom: 3px; }
.g7-pat i { display: block; height: 100%; background: var(--teal); transform-origin: left; }
.g7-pat i.mid { background: var(--gold); } .g7-pat i.low { background: var(--red); }
.g7-tk-flag { position: absolute; right: 2px; bottom: 6px; background: var(--gold2); color: var(--ink); font-size: 11px; font-weight: 900; border-radius: 6px; padding: 1px 5px; border: 1.5px solid var(--ink); }
.g7-say { position: absolute; bottom: 108px; left: 0; right: 0; text-align: center; background: #fffdf6; border: 1.5px solid var(--ink); border-radius: 10px; padding: 4px 6px; font-size: 12px; line-height: 1.35; font-weight: 800; color: var(--ink); animation: ggPop .25s var(--gg-ease); z-index: 2; }
.g7-say.sad { color: var(--ink2); }
.g7-ticket { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4; background: var(--gold2); border: 2px solid var(--ink); border-radius: 10px; font-weight: 900; font-size: 13px; padding: 6px 10px; animation: ggPop .3s var(--gg-ease), ggBob 1s ease-in-out .3s infinite; }
.g7-tray { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.g7-item { min-height: 88px; border-radius: 12px; border: 2px solid var(--ink); background: rgba(255,250,240,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 4px; touch-action: none; user-select: none; }
.g7-item img { width: 52px; height: 52px; pointer-events: none; }
.g7-item span { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.g7-item.pick { background: var(--gold2); transform: translateY(-3px); box-shadow: 0 4px 0 var(--ink); }
.g7-ghost { position: fixed; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; z-index: 999; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.g7-help { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 6px; }
.g7-wall { margin: 14px 0; padding: 14px; border-radius: 10px; background: #8a8d91 linear-gradient(135deg, #9a9da1, #7d8085); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.g7-wall p { position: relative; background: #fffdf6; padding: 8px 12px; font-weight: 800; color: var(--ink); font-size: 14px; transform: rotate(var(--r)); box-shadow: 2px 3px 0 rgba(0,0,0,.18); }
.g7-wall p::before { content: ""; position: absolute; left: 50%; top: -7px; width: 38px; height: 14px; margin-left: -19px; background: rgba(251,191,36,.7); transform: rotate(-4deg); }
.g7-wall p:nth-child(3)::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 22px; height: 16px; border-radius: 50%; background: rgba(217,95,4,.18); }

/* ================= G08 雙城散策路線王 ================= */
.g8-card { position: relative; margin-top: 10px; padding: 14px; border-radius: var(--radius-md); background: #fff; border: 2px solid var(--ink); }
.g8-theme { font-size: 12px; font-weight: 900; color: #fff; background: var(--teal); padding: 2px 10px; border-radius: 999px; }
.g8-card p { color: var(--ink); font-weight: 700; margin: 8px 0; font-size: 16px; line-height: 1.55; padding-right: 4px; }
.g8-conds { display: flex; flex-wrap: wrap; gap: 6px; }
.g8-conds li, .g8-verdict li { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper-warm); color: var(--ink2); }
.g8-conds li::before, .g8-verdict li::before { content: "○ "; }
.g8-conds li.ok, .g8-verdict li.ok { background: var(--teal-bg); color: var(--teal); }
.g8-conds li.ok::before, .g8-verdict li.ok::before { content: "✓ "; }
.g8-swap { position: absolute; right: 10px; top: 10px; border: 0; background: none; color: #b45309; font-weight: 800; font-size: 13px; }
.g8-bars { margin: 10px 0; }
.g8-bars div { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.g8-bars i { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) calc(var(--k) * 100%), var(--paper3) 0); }
.g8-bars i.over { background: var(--red); }
.g8-bars b { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.g8-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.g8-tabs button { min-height: 40px; border-radius: 999px; border: 2px solid var(--paper3); background: #fff; font-weight: 800; color: var(--ink2); }
.g8-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.g8-map { border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--ink); }
.g8-map svg { display: block; width: 100%; height: auto; }
.g8-path { fill: none; stroke: #D95F04; stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.g8-lbl { font: 700 10px "Noto Sans TC", sans-serif; fill: #211d18; paint-order: stroke; stroke: #fbf3e4; stroke-width: 3px; }
.g8-n { font: 700 10px "DM Mono", monospace; fill: #fff; }
.g8-h { font-size: 16px; margin: 14px 0 6px; }
.g8-route { display: grid; gap: 4px; }
.g8-route li.st { display: grid; grid-template-columns: 24px 36px 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--paper3); border-radius: 10px; padding: 6px 8px; }
.g8-route li.st .n { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 12px; font-family: var(--font-mono); }
.g8-route img { width: 36px; height: 36px; }
.g8-route li.st b { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.g8-route small { font-size: 12px; color: var(--ink2); }
.g8-route li.mv { font-size: 12px; color: var(--ink2); padding-left: 40px; border-left: 2px dashed var(--gold); margin-left: 10px; }
.g8-route li.empty { color: var(--ink3); font-size: 14px; padding: 10px; text-align: center; border: 2px dashed var(--paper3); border-radius: 10px; }
.g8-ops { display: flex; gap: 2px; }
.g8-ops button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--paper3); background: var(--paper); color: var(--ink); font-size: 14px; }
.g8-ops button:disabled { opacity: .3; }
.g8-go { width: 100%; margin-top: 10px; }
.g8-list { display: grid; gap: 6px; }
.g8-row { display: grid; grid-template-columns: 40px 1fr 44px; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--paper3); border-radius: 10px; padding: 6px 8px; }
.g8-row.on { border-color: var(--gold); background: #fff8ee; }
.g8-row img { width: 40px; height: 40px; }
.g8-row b { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.g8-row small { font-size: 12px; color: var(--ink2); }
.g8-row button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 20px; font-weight: 800; color: var(--ink); }
.g8-row.on button { background: var(--gold); border-color: var(--gold); color: #fff; }
.g8-verdict { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--red); background: #fff7f5; display: grid; gap: 8px; }
.g8-verdict.ok { border-color: var(--teal); background: #f0faf6; }
.g8-verdict b { color: var(--ink); }
.g8-verdict ul { display: flex; flex-wrap: wrap; gap: 6px; }
.g8-verdict p { font-size: 14px; }
.g8-quit { border: 0; background: none; color: var(--ink2); text-decoration: underline; font-weight: 700; }
.g8-ticket { position: relative; margin: 14px 0 10px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 16px; text-align: left;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.g8-tk-top { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); border-bottom: 2px dashed var(--paper3); padding-bottom: 8px; margin-bottom: 8px; font-size: 14px; }
.g8-ticket ol { display: grid; gap: 6px; position: relative; }
.g8-ticket li { display: grid; grid-template-columns: 22px 30px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.g8-ticket li b { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--gold2); display: grid; place-items: center; font-size: 11px; }
.g8-ticket li img { width: 30px; height: 30px; }
.g8-ticket li a { color: var(--ink); font-weight: 800; }
.g8-ticket li small { color: var(--ink3); }
.g8-tk-back { margin-top: 10px; font-size: 12px; color: var(--ink2); text-align: center; border-top: 2px dashed var(--paper3); padding-top: 8px; }
.g8-gmap { width: 100%; }
.g8-note { font-size: 12px; color: var(--ink3); margin-top: 6px; }

/* ================= G09 老街找不同 ================= */
.g9-street { font-size: 13px; color: var(--ink2); text-align: center; margin: 2px 0 6px; font-weight: 700; }
.g9-pics { display: grid; gap: 0; }
.g9-pic { position: relative; aspect-ratio: 3/2; overflow: hidden; border: 2px solid var(--ink); border-radius: 10px; touch-action: none; background: #fbf3e4; cursor: crosshair; }
.g9-pic.miss { animation: ggShake .1s 2; }
.g9-in { position: absolute; inset: 0; transform-origin: 0 0; }
.g9-in img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.g9-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.g9-ring { fill: none; stroke: #C0392B; stroke-width: 7; stroke-linecap: round; opacity: .9; transition: stroke-dashoffset .45s var(--gg-ease); }
.g9-ring.miss { stroke: var(--gold2); stroke-dasharray: 12 10; }
.g9-note { font: 700 34px "Noto Sans TC", sans-serif; fill: #C0392B; paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.g9-flash { fill: rgba(251,191,36,.35); stroke: #fbbf24; stroke-width: 6; animation: g9Flash .6s ease-in-out 3; }
@keyframes g9Flash { 50% { opacity: .2; } }
.g9-mid { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; }
.g9-slots { display: flex; gap: 6px; }
.g9-slots i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--ink3); }
.g9-slots i.on { border: 3px solid var(--red); background: rgba(192,57,43,.08); }
.g9-tools { display: flex; gap: 6px; }
.g9-tools button { min-width: 44px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; font-weight: 800; color: var(--ink); font-size: 16px; }
.g9-hint b { font-family: var(--font-mono); color: #b45309; }
.g9-loupe { position: fixed; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; gap: 8px; padding: 8px; background: rgba(33,29,24,.85); border-radius: 80px; pointer-events: none; }
.g9-lens { width: 120px; height: 120px; border-radius: 50%; border: 3px solid #fff; background-repeat: no-repeat; background-color: #fff; }
.g9-done { position: relative; margin: 12px 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--ink); background: #fff; }
.g9-done::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(26,74,122,.08) 22px 23px); pointer-events: none; }
.g9-done svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.g9-loupe[hidden] { display: none; }
.gh-h1-sub { display: block; font-size: .56em; line-height: 1.35; margin-top: 6px; color: var(--ink); }
.gg-promo-main > *, .gg-promo-sub > * { min-width: 0; }
.gg-promo-art { position: relative; overflow: hidden; }
.gg-promo-poster { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 8px; }
.gg-promo-poster b { font-size: clamp(22px, 7vw, 30px); font-weight: 900; color: #D95F04; letter-spacing: .04em; line-height: 1.15; text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff, 0 5px 0 rgba(33,29,24,.18); }
.gg-promo-poster i { font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: #2F7F6F; padding: 3px 12px; border-radius: 999px; }

/* ---------- 操作示範（幽靈手指＋字幕列） ---------- */
.gg-go-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gg-btn-demo { min-width: 220px; font-size: 16px; }
.gg-btn-demo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gg-demo { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(456px, calc(100vw - 24px)); z-index: 900; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; background: rgba(33,29,24,.9); color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.gg-demo-tag { flex: none; font-size: 12px; font-weight: 900; letter-spacing: .12em; background: var(--gold); border-radius: 999px; padding: 3px 10px; animation: ggDemoBreath 1s ease-in-out infinite alternate; }
.gg-demo-cap { flex: 1; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; color: #fff; }
.gg-demo-cap.in { animation: ggPop .35s var(--gg-ease); }
.gg-demo-skip { flex: none; min-height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; font-size: 14px; padding: 0 12px; }
@keyframes ggDemoBreath { from { opacity: .75; } to { opacity: 1; } }
.gg-hand { position: fixed; z-index: 950; width: 46px; height: 46px; margin: -4px 0 0 -18px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.gg-hand svg { width: 100%; height: 100%; transition: transform .12s; transform-origin: 40% 10%; }
.gg-hand.down svg { transform: scale(.86) translateY(3px); }
.gg-hand i { position: absolute; left: 18px; top: 4px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; }
.gg-hand.down i { animation: ggRipple .5s ease-out; }
@keyframes ggRipple { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }
.gi-demo { margin-left: 8px; }
@media (max-width: 560px) { .gi-play { width: 100%; justify-content: center; } .gi-demo { margin: 10px 0 0; } }

/* G08 選店視窗（底部彈出） */
.g8-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.g8-actions .gg-btn { width: 100%; min-height: 52px; padding: 10px; }
.g8-actions .g8-go { margin-top: 0; }
body.g8-lock { overflow: hidden; }
.g8-sheet { position: fixed; inset: 0; z-index: 800; background: rgba(33,29,24,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.g8-sheet.on { background: rgba(33,29,24,.45); }
.g8-sh-box { width: min(480px, 100vw); max-height: 78vh; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s var(--gg-ease); box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.g8-sheet.on .g8-sh-box { transform: none; }
.g8-sh-box::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--paper3); margin: 0 auto 8px; }
.g8-sh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g8-sh-head b { color: var(--ink); font-size: 16px; }
.g8-sh-done { min-height: 40px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; padding: 0 18px; }
.g8-sh-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.g8-sh-tabs:empty { display: none; }
.g8-sh-tabs button { min-height: 40px; border-radius: 999px; border: 2px solid var(--paper3); background: #fff; font-weight: 800; color: var(--ink2); }
.g8-sh-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.g8-sh-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
.g8-sh-chips::-webkit-scrollbar { display: none; }
.g8-sh-chips button { flex: none; min-height: 36px; border-radius: 999px; border: 1.5px solid var(--paper3); background: #fff; color: var(--ink2); font-weight: 700; font-size: 14px; padding: 0 14px; }
.g8-sh-chips button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.g8-sh-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.g8-pick { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; min-height: 64px; padding: 8px; border-radius: 12px; border: 2px solid var(--paper3); background: #fff; }
.g8-pick img { grid-row: 1 / 3; width: 40px; height: 40px; }
.g8-pick b { color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.g8-pick small { color: var(--ink2); font-size: 12px; line-height: 1.3; }
.g8-pick.on { border-color: var(--gold); background: #fff6ea; }
.g8-pick-n { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; font-family: var(--font-mono); }
.g8-sh-empty { grid-column: 1 / -1; text-align: center; color: var(--ink3); padding: 20px; }

/* ================= G11 夾娃娃機 ================= */
.g11-machine { position: relative; border-radius: 22px 22px 14px 14px; overflow: hidden; border: 6px solid #D95F04; box-shadow: inset 0 0 0 3px #fbbf24, 0 8px 0 #b44c03; touch-action: none; }
.g11-machine::before { content: "雙城夾娃娃"; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; background: #D95F04; color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .1em; padding: 2px 16px 4px; border-radius: 0 0 12px 12px; }
.g11-cv { display: block; width: 100%; touch-action: none; }
.g11-msg { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: rgba(33,29,24,.85); color: #fff; font-weight: 900; padding: 8px 16px; border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; font-size: 15px; }
.g11-msg.on { animation: g11Msg 1.6s var(--gg-ease); }
@keyframes g11Msg { 0% { opacity: 0; transform: translate(-50%, -40%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.g11-ctrl { display: grid; grid-template-columns: 76px 1fr 76px; gap: 10px; margin-top: 12px; }
.g11-btn { min-height: 64px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 24px; color: var(--ink); box-shadow: 0 4px 0 var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
.g11-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.g11-go { min-height: 64px; font-size: 22px; }
.g11-help { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 6px; }
.g11-bag { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.g11-bag a { background: #fff; border: 1px solid var(--paper3); border-radius: 10px; padding: 6px; text-align: center; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.3; }
.g11-bag img { width: 52px; height: 52px; margin: 0 auto; }

/* ================= G12 夜市彈珠台 ================= */
.g12-board { border-radius: 22px; border: 6px solid #D95F04; box-shadow: 0 8px 0 #b44c03; overflow: hidden; touch-action: none; }
.g12-cv { display: block; width: 100%; touch-action: none; }
.g12-help { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 6px; }

/* ================= G16 切切樂 ================= */
.g16-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); touch-action: none; }
.g16-cv { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.g16-combo { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 28px; font-weight: 900; text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,255,255,.6); opacity: 0; pointer-events: none; white-space: nowrap; }
.g16-combo.on { animation: g2Ban 1.2s var(--gg-ease); }

/* ================= G13 撈金魚 ================= */
.g13-pool { position: relative; border-radius: 50% / 18%; overflow: hidden; border: 8px solid #1A4A7A; box-shadow: inset 0 0 0 3px #9fd7e8, 0 6px 0 #0f2d4b; touch-action: none; }
.g13-cv { display: block; width: 100%; touch-action: none; }
.g13-msg { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(33,29,24,.85); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; font-size: 14px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.g13-msg.on { animation: g11Msg 1.8s var(--gg-ease); }
.g13-nets { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 800; color: var(--ink); }
.g13-netn { color: #1A4A7A; letter-spacing: 4px; font-size: 18px; }
.g13-wet { flex: 1; height: 10px; border-radius: 6px; background: var(--paper3); overflow: hidden; }
.g13-wet em { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); transition: transform .2s; }
.g13-wet.hi em { background: var(--red); }

/* ================= G14 套圈圈 ================= */
.g14-stall { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--ink); touch-action: none; }
.g14-cv { display: block; width: 100%; touch-action: none; }
.g14-msg { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; font-size: 14px; }
.g14-msg.on { animation: g11Msg 1.6s var(--gg-ease); }
.g14-help { text-align: center; font-size: 12px; color: var(--ink2); margin-top: 6px; }

/* ================= G15 外送跑跑 ================= */
.g15-road { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); touch-action: none; }
.g15-cv { display: block; width: 100%; touch-action: none; }
.g15-ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.g15-ctrl .g11-btn { border-radius: 18px; }
.g12-board { position: relative; }
.g12-pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.7); width: min(270px, 80%); background: #fffaf2; border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px 14px; text-align: center; display: grid; justify-items: center; gap: 2px; box-shadow: 0 10px 0 rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--gg-ease); }
.g12-pop.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.g12-pop.gold { background: #fff3c4; border-color: #D95F04; }
.g12-pop-k { font-size: 12px; font-weight: 900; color: #fff; background: var(--teal); border-radius: 999px; padding: 2px 10px; }
.g12-pop.gold .g12-pop-k { background: var(--gold); }
.g12-pop img { width: 78px; height: 78px; margin: 4px 0 2px; }
.g12-pop p { font-size: 15px; color: var(--ink); line-height: 1.5; margin: 0; }
.g12-pop p b, .g12-pop small b { color: var(--ink); }
.g12-pop-left { margin-top: 4px; font-weight: 700; color: #b45309 !important; }
.g12-pop.warn { background: #fff; border-color: var(--slate); }
.g12-pop.warn .g12-pop-k { background: var(--slate); }
.g12-pop small { font-size: 13px; color: var(--ink2); }
.g12-pop em { font-style: normal; font-family: var(--font-mono); font-size: 15px; color: #D95F04; font-weight: 700; }
.g12-pop small { line-height: 1.5; }
.g12-got { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 10px; }
.g12-got a { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--paper3); border-radius: 999px; padding: 3px 10px 3px 4px; color: var(--ink); font-size: 12px; font-weight: 700; animation: ggPop .3s var(--gg-ease); }
.g12-got img { width: 24px; height: 24px; }
.g12-got i { font-style: normal; color: #b45309; font-family: var(--font-mono); }
