/* theme b */
/* =====================================================================
   B — GG Native. Same family as app.gamegen.diy, stretched into a desktop portal.

   Values measured from app.gamegen.diy (headless Chromium, 2026-10-28,
   computed styles on the home feed at 1440x900 and 390x844):
     page title ............ "GameGen Play"
     page background ....... radial-gradient(120% 120% at 50% 0%, #101018, #050507 60%, #000)
     app shell ............. #0b0b0f, border-radius 28px
     main home bg .......... rgb(12,10,24)  = #0c0a18
     feed card ............. rgb(8,8,11)    = #08080b
     poster placeholder .... rgb(22,19,31)  = #16131f
     header bar ............ #0e0e15
     surface dark / dark-2 . #16161c / #23242c
     outline ............... #2c2d36
     --primary ............. #0048dd   --primary-bright #2f6bff   --primary-deep #0033a8
     remix gradient ........ linear-gradient(135deg, #2f6bff, #0033a8)
     glass button .......... rgb(12 13 18 / 74%) + radial-gradient(120% 100% at 14% 0%, rgba(255,255,255,.14), transparent 56%)
                             + linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.03) 52%, ...)
     card gradient ......... radial-gradient(circle at 24% 20%, rgba(130,95,205,.44), transparent 42%),
                             linear-gradient(145deg, #27213a, #100f18 72%)
     feed caption scrim .... linear-gradient(to top, rgba(0,0,0,.94) 0, rgba(0,0,0,.88) 18%, rgba(0,0,0,.4) 34%, transparent)
     text .................. #fff, dim #b8bac4, secondary rgb(215,216,222) = #d7d8de, on-white #111216
     state colors .......... like #ff2d55, coin #ffb23e, danger #ff3b30, success #22c55e
     radii ................. pills 999px / 9999px, round icon buttons 50% at 44px, shell 28px, sheet 0 0 28px 28px
     "Subscribe" pill ...... bg #fff, color #111216, weight 800
     fonts ................. display Poppins 600/700/800 (page title 36px/900, letter-spacing -1.08px)
                             UI -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif
                             captions 10px/600
   ===================================================================== */

:root {
  --page: radial-gradient(120% 120% at 50% 0%, #101018, #050507 60%, #000);
  --shell: #0b0b0f;
  --home: #0c0a18;
  --card: #08080b;
  --ph: #16131f;
  --bar: #0e0e15;
  --s1: #16161c;
  --s2: #23242c;
  --line: #2c2d36;
  --primary: #0048dd;
  --primary-bright: #2f6bff;
  --primary-deep: #0033a8;
  --remix: linear-gradient(135deg, #2f6bff, #0033a8);
  --glass-bg: rgb(12 13 18 / 74%);
  --glass-hi: radial-gradient(120% 100% at 14% 0%, rgba(255,255,255,.14), transparent 56%), linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.03) 52%, rgba(255,255,255,0));
  --card-grad: radial-gradient(circle at 24% 20%, rgba(130,95,205,.44), transparent 42%), linear-gradient(145deg, #27213a, #100f18 72%);
  --scrim: linear-gradient(to top, rgba(0,0,0,.94) 0, rgba(0,0,0,.88) 18%, rgba(0,0,0,.4) 34%, rgba(0,0,0,0) 60%);
  --ink: #fff;
  --ink-2: #d7d8de;
  --dim: #b8bac4;
  --on-white: #111216;
  --like: #ff2d55;
  --coin: #ffb23e;
  --ok: #22c55e;
  --display: Poppins, -apple-system, BlinkMacSystemFont, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
  --rail: 240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0;
  background: var(--page);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* glass, the GG button/panel material */
.glass {
  background: var(--glass-hi), var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}

/* ---------- app frame: rail + main ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: rgba(14,14,21,.72); border-right: 1px solid var(--line); }
.rail-in { position: sticky; top: 0; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; max-height: 100vh; }
.main { min-width: 0; padding: 0 32px 0; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.5px; }
.logo b {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--remix); font-size: 15px; letter-spacing: -.3px; box-shadow: 0 6px 18px rgba(0,72,221,.45);
}
.logo span { white-space: nowrap; }

.rail-nav { display: grid; gap: 2px; }
.rail-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px;
  text-decoration: none; color: var(--dim); font-weight: 600; font-size: 15px;
}
.rail-nav a:hover { color: #fff; background: var(--s1); }
.rail-nav a[aria-current] { color: #fff; background: var(--s2); }
.rail-nav a[aria-current] svg { color: var(--primary-bright); }
.rail-label { margin: 6px 12px -12px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7d7f8a; }

.rail-card { border-radius: 20px; padding: 16px; background: var(--card-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.rail-card b { display: block; font: 700 15px/1.25 var(--display); margin-bottom: 4px; }
.rail-card p { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.rail-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #7d7f8a; padding: 0 12px; }
.rail-foot a { color: #9a9ca7; text-decoration: none; }
.rail-foot a:hover { color: #fff; text-decoration: underline; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 16px 0 12px;
  background: linear-gradient(#0b0b10 60%, rgba(11,11,16,0));
}
.bar .logo { display: none; }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; }
.search svg { color: var(--dim); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #fff; font: 500 15px var(--ui); outline: none; }
.search input::placeholder { color: #8d8f9a; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--primary-bright); }
.bar-sp { flex: 1; }

/* pills / buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--ui); text-decoration: none; white-space: nowrap;
  transition: transform .15s, filter .15s;
}
.pill:hover { filter: brightness(1.08); }
.pill:active { transform: scale(.97); }
.pill-white { background: #fff; color: var(--on-white); font-weight: 800; }
.pill-blue { background: var(--remix); color: #fff; box-shadow: 0 10px 26px rgba(0,72,221,.42); }
.pill-glass { color: #fff; }
.pill-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.pill-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.pill svg { width: 19px; height: 19px; }

.round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; text-decoration: none;
}
.round:hover { filter: brightness(1.25); }
.round svg { width: 20px; height: 20px; }
.round-cap { display: grid; justify-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--ink-2); }

/* category pills */
.cats-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.cats-bar::-webkit-scrollbar { display: none; }
.cpill {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--s1); color: var(--ink-2); font: 600 14px/1 var(--ui); box-shadow: inset 0 0 0 1px var(--line);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.cpill small { color: #7d7f8a; font-weight: 600; }
.cpill:hover { color: #fff; }
.cpill[aria-pressed="true"] { background: #fff; color: var(--on-white); box-shadow: none; }
.cpill[aria-pressed="true"] small { color: #5f6170; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--shell);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px 270px; gap: 28px; align-items: center;
  padding: 36px; min-height: 520px; isolation: isolate;
}
.hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center 30%; filter: blur(48px) saturate(1.3); opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,11,.94) 0%, rgba(8,8,11,.72) 45%, rgba(8,8,11,.35) 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); box-shadow: 0 0 0 4px rgba(47,107,255,.25); }
.hero h1 { margin: 18px 0 12px; font: 800 58px/1.0 var(--display); letter-spacing: -1.8px; }
.hero .lede { margin: 0 0 20px; max-width: 460px; color: var(--ink-2); font-size: 18px; }
.creator { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 14px; font-weight: 600; }
.ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font: 700 12px/1 var(--display); flex: none; }
.creator small { color: var(--dim); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { margin-top: 22px; display: flex; gap: 18px; color: var(--dim); font-size: 13px; font-weight: 600; }
.hero-meta b { color: #fff; }

/* the feed card: a GG phone tile with caption scrim and round action rail */
.feed {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--ph);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); text-decoration: none;
}
.feed > img, .feed > .gg-fallback { width: 100%; height: 100%; object-fit: cover; }
.feed::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
.feed-cap { position: absolute; left: 14px; right: 66px; bottom: 14px; z-index: 2; }
.feed-cap .who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.feed-cap .who .ava { width: 22px; height: 22px; font-size: 9px; }
.feed-cap .sub { height: 20px; padding: 0 8px; border-radius: 9999px; background: #fff; color: var(--on-white); font-size: 9px; font-weight: 800; display: inline-grid; place-items: center; }
.feed-cap .t { margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.feed-cap small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.feed-rail { position: absolute; right: 10px; bottom: 14px; z-index: 2; display: grid; gap: 12px; }
.feed-rail .round { width: 40px; height: 40px; }
.feed-rail svg { width: 18px; height: 18px; }

.upnext h3 { margin: 0 0 12px; font: 700 14px/1 var(--display); color: var(--dim); }
.upnext ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upnext a { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 18px; text-decoration: none; }
.upnext a:hover { background: rgba(255,255,255,.06); }
.upnext img, .upnext .gg-fallback { width: 54px; height: 76px; border-radius: 12px; object-fit: cover; }
.upnext b { display: block; font-size: 14px; line-height: 1.25; }
.upnext small { color: var(--dim); font-size: 12px; }

/* ---------- sections ---------- */
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font: 700 24px/1.1 var(--display); letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.sec-head p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }
.sec-head .tag { height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(47,107,255,.16); color: #8fb0ff; font: 700 11px/24px var(--ui); letter-spacing: .02em; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { color: #fff; }
.more svg { width: 16px; height: 16px; }

/* poster card: caption sits on the poster, like the GG feed */
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; display: block; aspect-ratio: 9 / 15; border-radius: 20px; overflow: hidden; background: var(--ph);
  text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .2s;
}
.tile:hover { transform: translateY(-4px); }
.tile > img, .tile > .gg-fallback { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
.tile-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.tile-cap b { display: block; font-size: 14px; line-height: 1.2; }
.tile-cap small { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tile .flag {
  position: absolute; top: 10px; left: 10px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 700 11px/24px var(--ui);
}
.tile .flag.blue { background: var(--remix); }
.tile .flag.new { background: #fff; color: var(--on-white); }
.tile .playdot {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.tile:hover .playdot, .tile:focus-visible .playdot { opacity: 1; }
.playdot svg { width: 15px; height: 15px; }

/* trending app list */
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; padding: 12px; border-radius: 28px; background: rgba(8,8,11,.8); box-shadow: inset 0 0 0 1px var(--line); }
.li { display: grid; grid-template-columns: 34px 50px minmax(0, 1fr) auto 40px; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; text-decoration: none; }
.li:hover { background: var(--s1); }
.li .n { font: 800 20px/1 var(--display); color: #5d5f6b; text-align: center; }
.li:nth-child(-n+3) .n { color: #fff; }
.li img, .li .gg-fallback { width: 50px; height: 70px; border-radius: 12px; object-fit: cover; }
.li b { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .pl { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.li .pl svg { width: 15px; height: 15px; color: var(--coin); }
.li .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); }
.li:hover .go { background: var(--remix); }
.li .go svg { width: 15px; height: 15px; }

/* categories */
.ctiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ctile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  height: 108px; padding: 0 22px; border-radius: 22px; border: 0; cursor: pointer; text-align: left;
  background: var(--card-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.ctile b { font: 700 19px/1.1 var(--display); letter-spacing: -.3px; position: relative; z-index: 1; }
.ctile small { color: var(--dim); font-size: 13px; font-weight: 600; position: relative; z-index: 1; }
.ctile .pk { position: absolute; top: 14px; width: 62px; height: 104px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
.ctile .pk:nth-of-type(1) { right: 66px; transform: rotate(-8deg); }
.ctile .pk:nth-of-type(2) { right: 16px; transform: rotate(6deg); }
.ctile .pk img, .ctile .pk .gg-fallback { width: 100%; height: 100%; object-fit: cover; }
.ctile:hover { filter: brightness(1.12); }
.ctile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--primary-bright); }
.cat-results { margin-top: 18px; }
.cat-results h3 { margin: 0 0 12px; font: 700 18px/1.2 var(--display); }

/* face card */
.facecard {
  margin-top: 48px; position: relative; overflow: hidden; border-radius: 28px; background: var(--remix);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px 44px;
}
.facecard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.facecard .k { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.facecard h2 { margin: 8px 0 10px; font: 800 40px/1.05 var(--display); letter-spacing: -1.2px; }
.facecard p { margin: 0 0 22px; max-width: 460px; color: rgba(255,255,255,.88); font-size: 16px; }
.facecard .note { display: block; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.7); }
.faces { position: relative; display: flex; gap: 12px; }
.faces a { position: relative; display: block; width: 116px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,20,80,.5); }
.faces a:nth-child(even) { transform: translateY(18px); }
.faces img, .faces .gg-fallback { width: 100%; height: 100%; object-fit: cover; }
.faces .scan { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.faces .scan svg { width: 16px; height: 16px; }

/* footer */
.foot { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--dim); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0; }
.foot .fine { flex-basis: 100%; font-size: 12px; color: #7d7f8a; }

/* mobile tab bar (GG bottom nav) */
.tabbar { display: none; }

/* ---------- game page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 16px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: #fff; }
.play { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.stage {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--shell);
  display: flex; justify-content: center; align-items: center; gap: 18px; padding: 32px; min-height: 780px;
}
.stage-bg { position: absolute; inset: -60px; z-index: -1; background-size: cover; background-position: center; filter: blur(60px) saturate(1.2); opacity: .45; }
.screen {
  position: relative; height: min(716px, calc(100vh - 150px)); min-height: 560px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
  background: var(--ph); box-shadow: 0 40px 100px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08);
}
.screen > img, .screen > .gg-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .scrim { position: absolute; inset: 0; background: var(--scrim); }
.cover-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.cover-ui .pill { width: 100%; max-width: 280px; }
.cover-ui small { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.load-ui, .ready-ui { position: absolute; inset: 0; z-index: 3; display: none; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 28px; background: rgba(8,8,11,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--primary-bright); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.ready-ui b { font: 700 20px/1.2 var(--display); }
.ready-ui p { margin: 0; max-width: 260px; color: var(--dim); font-size: 14px; }
.ready-ui a { color: #8fb0ff; font-weight: 700; }
.is-loading .load-ui { display: grid; }
.is-ready .ready-ui { display: grid; }
.is-loading .cover-ui, .is-ready .cover-ui { visibility: hidden; }
.side-rail { display: grid; gap: 18px; align-self: flex-end; padding-bottom: 12px; }
.stage:fullscreen { border-radius: 0; }
.stage:fullscreen .screen { height: calc(100vh - 64px); }

.panel { position: sticky; top: 84px; display: grid; gap: 14px; }
.info { border-radius: 28px; padding: 24px; }
.info .cpill { height: 30px; font-size: 12px; }
.info h1 { margin: 14px 0 12px; font: 800 34px/1.05 var(--display); letter-spacing: -1px; }
.info .creator { margin-bottom: 14px; }
.info .desc { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.chip svg { width: 14px; height: 14px; }
.chip .hz { color: var(--like); }
.cta { border-radius: 28px; padding: 22px; background: var(--card-grad); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); display: grid; gap: 10px; }
.cta h2 { margin: 0; font: 700 18px/1.2 var(--display); }
.cta p { margin: 0 0 6px; color: var(--dim); font-size: 13px; }
.cta .pill { width: 100%; }
.cta small { color: #8d8f9a; font-size: 12px; }
.cta small a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .hero { grid-template-columns: minmax(0, 1fr) 290px; }
  .upnext { display: none; }
  .row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .row .tile:nth-child(n+6) { display: none; }
  .row.all .tile:nth-child(n+6) { display: block; }
}
@media (max-width: 1100px) {
  :root { --rail: 76px; }
  .rail-in { align-items: center; padding: 18px 10px; }
  .logo span, .rail-nav a span:last-child, .rail-label, .rail-card, .rail-foot { display: none; }
  .rail-nav a { justify-content: center; padding: 12px; }
  .main { padding: 0 24px; }
  .hero h1 { font-size: 46px; }
  .row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row .tile:nth-child(n+5) { display: none; }
  .list { grid-template-columns: 1fr; }
  .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faces a:nth-child(n+4) { display: none; }
  .play { grid-template-columns: 1fr; }
  .panel { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .stage { min-height: 0; }
}
@media (max-width: 900px) {
  .facecard { grid-template-columns: 1fr; gap: 26px; }
  .faces { justify-content: flex-start; }
  .ctile { padding: 0 18px; }
  .ctile .pk:nth-of-type(2) { display: none; }
  .ctile .pk:nth-of-type(1) { right: 14px; }
}
@media (max-width: 767px) {
  .app { display: block; }
  .rail { display: none; }
  body { padding-bottom: 12px; }
  .main { padding: 0 16px; }
  .bar { flex-wrap: wrap; gap: 10px; padding: 12px 0 10px; }
  .bar .logo { display: inline-flex; }
  .bar .logo b { width: 32px; height: 32px; font-size: 13px; }
  .bar .pill-white { margin-left: auto; height: 36px; padding: 0 14px; font-size: 13px; }
  .bar-sp { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .hero { grid-template-columns: 1fr; padding: 0; gap: 0; min-height: 0; border-radius: 24px; }
  .hero::before { background: linear-gradient(0deg, rgba(8,8,11,.96) 38%, rgba(8,8,11,.2) 70%); }
  .hero-copy { order: 2; padding: 0 18px 20px; margin-top: -70px; position: relative; z-index: 3; }
  .hero .feed { order: 1; border-radius: 0; aspect-ratio: 4 / 4.4; box-shadow: none; }
  .hero .feed::after { background: linear-gradient(to top, rgba(8,8,11,1) 0%, rgba(8,8,11,0) 40%); }
  .hero .feed-cap { display: none; }
  .hero .feed-rail { bottom: 84px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.1px; margin: 12px 0 8px; }
  .hero .lede { font-size: 16px; margin-bottom: 14px; }
  .creator { margin-bottom: 18px; }
  .actions .pill { flex: 1 1 100%; }
  .hero-meta { flex-wrap: wrap; gap: 6px 14px; }
  .sec { margin-top: 34px; }
  .sec-head h2 { font-size: 21px; }
  .row { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .row::-webkit-scrollbar { display: none; }
  .row .tile, .row .tile:nth-child(n+5), .row .tile:nth-child(n+6) { display: block; flex: 0 0 44%; scroll-snap-align: start; }
  .row.all { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; }
  .list { padding: 6px; border-radius: 22px; }
  .li { grid-template-columns: 26px 44px minmax(0, 1fr) 36px; gap: 10px; padding: 8px; }
  .li img, .li .gg-fallback { width: 44px; height: 62px; }
  .li .pl { display: none; }
  .li small .m-pl { display: inline; }
  .li .go { width: 36px; height: 36px; }
  .ctiles { grid-template-columns: 1fr; gap: 10px; }
  .ctile { height: 92px; }
  .ctile .pk { width: 52px; height: 88px; top: 12px; }
  .ctile .pk:nth-of-type(2) { display: block; }
  .ctile .pk:nth-of-type(1) { right: 58px; }
  .facecard { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
  .facecard h2 { font-size: 30px; }
  .facecard .pill { width: 100%; }
  .faces { justify-content: center; }
  .faces a { width: 30%; max-width: 110px; }
  .tabbar {
    position: sticky; bottom: 12px; margin: 16px 12px 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr);
    height: 60px; padding: 6px; border-radius: 999px;
  }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 999px; color: var(--dim); text-decoration: none; font-size: 10px; font-weight: 600; }
  .tabbar a[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
  .tabbar svg { width: 21px; height: 21px; }
  .stage { padding: 14px; border-radius: 24px; flex-direction: column; gap: 14px; }
  .screen { height: auto; width: 100%; min-height: 0; max-height: 640px; max-width: 360px; }
  .side-rail { grid-auto-flow: column; align-self: center; padding: 0; gap: 22px; }
  .panel { grid-template-columns: 1fr; }
  .info { padding: 20px; border-radius: 24px; }
  .info h1 { font-size: 30px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
.m-pl { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
}

/* common */
/* 共用元件樣式（從設計稿 common.js 複製，拿掉設計稿切換列） */
#gg-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:90;padding:12px 18px;border-radius:999px;background:#111;color:#fff;font:600 14px/1 -apple-system,sans-serif;transition:.25s;box-shadow:0 10px 30px rgba(0,0,0,.35)}
#gg-toast.on{opacity:1;transform:translate(-50%,0)}
#gg-report{border:0;border-radius:18px;padding:0;max-width:420px;width:calc(100% - 32px);background:#fff;color:#16161b;box-shadow:0 30px 80px rgba(0,0,0,.45)}
#gg-report::backdrop{background:rgba(0,0,0,.55)}
.gg-report-form{padding:22px;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.gg-report-form h2{margin:0 0 4px;font-size:20px}
.gg-report-game{margin:0 0 14px;color:#5e5e66}
.gg-report-form fieldset{border:0;padding:0;margin:0 0 12px;display:grid;gap:8px}
.gg-report-form legend{font-weight:700;margin-bottom:6px}
.gg-report-form label{display:flex;gap:8px;align-items:center;padding:10px 12px;border:1px solid #e4e4e8;border-radius:10px;cursor:pointer}
.gg-report-note{font-size:13px;color:#7a7a84;margin:0 0 14px}
.gg-report-actions{display:flex;gap:8px;justify-content:flex-end}
.gg-report-actions button{font:700 14px/1 inherit;padding:12px 16px;border-radius:999px;border:1px solid #d6d6dc;background:#fff;cursor:pointer}
.gg-report-actions .gg-r-send{background:#16161b;color:#fff;border-color:#16161b}
.gg-search-results{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:70;display:none;padding:6px;border-radius:16px;background:#fff;color:#16161b;box-shadow:0 20px 50px rgba(0,0,0,.35);text-align:left}
.gg-search-results.on{display:grid;gap:2px}
.gg-search-results a{display:flex;gap:10px;align-items:center;padding:6px;border-radius:10px;color:inherit;text-decoration:none}
.gg-search-results a:hover,.gg-search-results a:focus{background:#f1f1f4}
.gg-search-results b{display:block;font-size:14px}
.gg-search-results small{color:#6c6c75;font-size:12px}
.gg-sr-img{width:32px;height:56px;object-fit:cover;border-radius:6px;flex:none}
.gg-sr-empty{margin:0;padding:10px;font-size:14px;color:#5e5e66}
.gg-fallback{display:flex;align-items:flex-end;padding:12px;background:linear-gradient(160deg,#ff8a64,#6a3dff);color:#fff;font:800 16px/1.1 sans-serif}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

:root{--gg-bg:#0b0b0f;--gg-card:#16161c;--gg-ink:#fff;--gg-mute:#9a9aa6;--gg-line:#2c2d36;--gg-acc:#0048dd;--gg-acc-ink:#fff}
/* portal */
/* portal.css — 三版共用的「正式站」補充樣式（設計稿沒有的：播放中、全螢幕、第三方卡、搜尋頁、404、語言鈕…）
   顏色一律吃 build 注入的 --gg-* 變數（每版不同）。 */
html, body { overflow-x: hidden; }
img { max-width: 100%; }
.gg-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: var(--gg-acc); color: var(--gg-acc-ink); font-weight: 700; border-radius: 0 0 10px 0; }
.gg-skip:focus { left: 0; }

/* ---------- 播放器狀態 ---------- */
.ready-ui { display: none !important; }
[data-player] .load-ui { display: none; }
[data-player].is-loading .load-ui { display: flex; }
.is-playing .cover-ui, .is-playing .load-ui, .is-playing .scrim, .is-playing [data-frame-host] > img, .is-playing .gg-tp-cover { display: none !important; }
[data-frame-host] { position: relative; }
.gg-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; background: #000; display: block; }
[data-click-anywhere] [data-frame-host] { cursor: pointer; }
.is-playing [data-frame-host] { cursor: auto; }
/* 封面上的 PLAY 圖案在下方 ~15%：真按鈕往上抬，別蓋住它（三版都套） */
[data-player] .cover-ui { padding-bottom: 30%; }

/* 偽全螢幕（iOS Safari 等不給 requestFullscreen 時） */
.gg-pseudo-fs { position: fixed !important; inset: 0 !important; z-index: 9999 !important; margin: 0 !important; width: 100vw !important; height: 100vh !important; max-width: none !important; border-radius: 0 !important; background: #000 !important; padding: 0 !important; display: block !important; }
.gg-pseudo-fs [data-frame-host] { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; border: 0 !important; aspect-ratio: auto !important; }
.gg-pseudo-fs .gg-fs-bar { display: flex; }
.gg-noscroll { overflow: hidden !important; }
.gg-fs-bar { display: none; position: absolute; top: 10px; right: 10px; z-index: 10; }
.gg-fs-bar button { font: 700 13px/1 sans-serif; padding: 10px 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
:fullscreen [data-frame-host] { max-height: 100vh; }

/* ---------- 橫式（529、562）大框 ---------- */
.gg-land-page .play-layout, .gg-land-page .play { grid-template-columns: minmax(0, 1fr) !important; }
.gg-land-page .info-wrap { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gg-land-page .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: static; }
.gg-land .cab-stage { height: auto; padding: 24px; }
.gg-land .phone, .gg-land .screen { height: auto !important; width: 100% !important; max-width: 100% !important; max-height: none !important; aspect-ratio: 16 / 9 !important; border-radius: 18px; }
.gg-land .phone > img, .gg-land .screen > img { object-fit: contain; background: #000; }
.gg-land .cover-ui { padding-bottom: 7%; }
.gg-land.stage { flex-direction: column; align-items: stretch; }
.gg-land .side-rail, .gg-land .rail { position: static !important; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 4px 0 0 !important; }
.gg-land .rail .rb { color: var(--gg-ink); text-shadow: none; }

/* ---------- 語言鈕、DEV 徽章 ---------- */
.gg-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gg-line); background: transparent; color: var(--gg-ink); font: 700 13px/1 inherit; cursor: pointer; white-space: nowrap; flex: none; }
.gg-lang:hover { border-color: var(--gg-ink); }
.gg-dev { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #ff3b30; color: #fff; font: 800 11px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; vertical-align: middle; }

/* ---------- 區塊標頭（共用頁：分類、搜尋、第三方） ---------- */
.gg-page { padding-bottom: 24px; min-width: 0; }
.gg-cat-head { padding: 26px 0 6px; }
.gg-cat-head h1 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.gg-cat-head p { margin: 10px 0 0; color: var(--gg-mute); font-size: 16px; max-width: 60ch; }
.gg-sec-h { margin: 30px 0 14px; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gg-sec-h small { font-size: 14px; color: var(--gg-mute); font-weight: 500; }
.gg-empty { margin: 18px 0; color: var(--gg-mute); text-align: center; font-size: 15px; }
.gg-more-wrap { display: grid; justify-items: center; margin: 22px 0 8px; }
.gg-more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--gg-ink); background: transparent; color: var(--gg-ink); font: 700 15px/1 inherit; cursor: pointer; }
.gg-more-btn:hover { background: var(--gg-ink); color: var(--gg-bg); }
.gg-more-btn[disabled] { opacity: .6; cursor: progress; }
.gg-more-sub { margin: 4px 0 0; color: var(--gg-mute); font-size: 14px; }

/* GG 小卡格（分類、搜尋、第三方頁的 GG 區） */
.gg-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
.gg-scard { display: grid; gap: 6px; color: var(--gg-ink); text-decoration: none; min-width: 0; }
.gg-scard-art { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--gg-card); }
.gg-scard-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gg-scard:hover .gg-scard-art img { transform: scale(1.04); }
.gg-scard b { font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-scard small { color: var(--gg-mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-scard .gg-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--gg-acc); color: var(--gg-acc-ink); font-size: 11px; font-weight: 800; }

/* 第三方卡格 */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.tp-card { display: grid; gap: 5px; align-content: start; color: var(--gg-ink); text-decoration: none; min-width: 0; }
.tp-art { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--gg-card); border: 1px solid var(--gg-line); }
.tp-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tp-card:hover .tp-art img { transform: scale(1.05); }
.tp-card b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tp-card small { color: var(--gg-mute); font-size: 12px; }

/* 分類頁上方的分類跳轉 */
.gg-catnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; }
.gg-catnav::-webkit-scrollbar { display: none; }
.gg-catnav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--gg-line); color: var(--gg-ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gg-catnav a[aria-current] { background: var(--gg-ink); color: var(--gg-bg); border-color: var(--gg-ink); }

/* ---------- 第三方遊戲頁 ---------- */
.gg-tp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px; align-items: start; padding-top: 18px; }
.gg-tp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: 14px; color: var(--gg-mute); }
.gg-tp-crumbs a { color: var(--gg-mute); text-decoration: none; font-weight: 600; }
.gg-tp-crumbs a:hover { color: var(--gg-ink); }
.gg-tp-stage { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--gg-line); }
.gg-tp-stage [data-frame-host] { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; }
.gg-tp-cover { position: absolute; inset: 0; display: block; overflow: hidden; }
.gg-tp-cover .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(24px) saturate(1.2); opacity: .55; }
.gg-tp-cover .fg { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(46%, 384px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.gg-tp-stage .cover-ui { position: absolute; left: 0; right: 0; bottom: 0; top: auto; z-index: 3; display: grid; justify-items: center; gap: 8px; padding: 16px !important; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gg-tp-stage .cover-ui small { color: #e8e8ee; font-size: 12px; font-weight: 600; }
.gg-tp-stage .load-ui { position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; background: rgba(0,0,0,.7); color: #fff; }
.gg-tp-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: var(--gg-card); border-top: 1px solid var(--gg-line); }
.gg-tp-bar button, .gg-tp-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gg-line); background: transparent; color: var(--gg-ink); font: 600 14px/1 inherit; cursor: pointer; text-decoration: none; }
.gg-tp-bar svg { width: 18px; height: 18px; }
.gg-tp-ext { display: grid; grid-template-columns: minmax(0, 192px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px; border-radius: 20px; background: var(--gg-card); border: 1px solid var(--gg-line); }
.gg-tp-ext img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gg-tp-ext p { margin: 10px 0 0; color: var(--gg-mute); font-size: 13px; }
.gg-tp-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 16px; background: var(--gg-acc); color: var(--gg-acc-ink); font: 800 18px/1.15 inherit; text-decoration: none; text-align: center; box-shadow: 0 8px 22px -10px var(--gg-acc); }
.gg-tp-go:hover { filter: brightness(1.06); }
.gg-tp-go svg { width: 20px; height: 20px; flex: none; }
.gg-tp-go span small { display: block; font-size: 13px; font-weight: 600; opacity: .8; }
.gg-tp-info h1 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gg-tp-info .gg-tp-cat { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gg-line); color: var(--gg-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.gg-tp-info .gg-tp-desc { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--gg-ink); overflow-wrap: anywhere; }
.gg-tp-info .gg-tp-owner { margin: 14px 0 0; font-size: 13px; color: var(--gg-mute); }
.gg-tp-info .gg-tp-owner button { padding: 0; border: 0; background: none; color: var(--gg-ink); font: inherit; text-decoration: underline; cursor: pointer; }
.gg-tp-cta { margin-top: 22px; padding: 22px; border-radius: 20px; background: var(--gg-card); border: 1px solid var(--gg-line); }
.gg-tp-cta h2 { margin: 0; font-size: 22px; }
.gg-tp-cta p { margin: 8px 0 16px; color: var(--gg-mute); font-size: 15px; }
.gg-tp-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--gg-ink); color: var(--gg-bg); font: 700 15px/1 inherit; text-decoration: none; }
.gg-tp-cta a svg { width: 18px; height: 18px; }
.gg-tp-cta small { display: block; margin-top: 10px; color: var(--gg-mute); font-size: 12px; }
.gg-tp-cover-sm { display: none; }

/* ---------- 404 ---------- */
.gg-nf { padding: 40px 0 10px; text-align: center; }
.gg-nf b.gg-nf-code { display: block; font-size: clamp(80px, 16vw, 160px); line-height: .9; letter-spacing: -.05em; color: var(--gg-acc); -webkit-text-stroke: 2px var(--gg-ink); }
.gg-nf h1 { margin: 12px 0 0; font-size: clamp(26px, 4vw, 42px); }
.gg-nf p { margin: 10px auto 18px; max-width: 46ch; color: var(--gg-mute); }
.gg-nf a.gg-nf-home { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--gg-ink); color: var(--gg-bg); font-weight: 700; text-decoration: none; }

/* 壞圖退回 */
img.gg-img-fallback { object-fit: cover; }

@media (max-width: 900px) {
  .gg-tp { grid-template-columns: minmax(0, 1fr); }
  .gg-land-page .info-wrap, .gg-land-page .panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gg-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .gg-tp-ext { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .gg-tp-ext img { max-width: 240px; }
  .gg-tp-go { width: 100%; }
  .gg-tp-cover .fg { width: 60%; }
  .gg-sec-h { font-size: 19px; }
}

/* fixes */
/* B 版修正：手機 hero 圓鈕太擠 → 拉開間距、加大點擊區、往上移避開標題字 */
@media (max-width: 767px) {
  .hero .feed-rail { right: 12px; bottom: 96px; gap: 18px; }
  .hero .feed-rail .round { width: 46px; height: 46px; }
  .hero .feed-rail .round svg { width: 20px; height: 20px; }
  .hero .feed-rail .round-cap { gap: 6px; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .side-rail .round { width: 46px; height: 46px; }
}
