/* "From launch to impact": the 3D town walk. */
.game { position:relative; color:var(--fg); font-size:15px; line-height:1.45; }
.game:fullscreen { background:var(--bg); padding:12px; display:flex; flex-direction:column; gap:10px; }
.game button { font:inherit; cursor:pointer; }
.game button:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }

/* Top bar: progress outside the game box */
.g-top { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin:0 0 10px; }
.g-lv { display:flex; align-items:center; gap:10px; background:var(--ink); color:#fff; border-radius:14px; padding:8px 14px 8px 8px; min-width:200px; }
.g-lvk { flex:none; width:40px; height:40px; border-radius:12px; background:var(--orange); color:#3a0a2a; font-weight:800; font-size:0.82rem; display:grid; place-items:center; }
.g-lvt { display:flex; flex-direction:column; gap:5px; flex:1; }
.g-lvt b { color:#fff; font-size:0.86rem; }
.g-lvt i, .g-m i { display:block; height:6px; border-radius:4px; background:rgba(244,120,45,.22); overflow:hidden; }
.g-lvt em, .g-m em { display:block; height:100%; background:var(--orange); border-radius:4px; transition:width .6s cubic-bezier(.2,.7,.2,1); }
.g-m { background:#fff; border:1px solid var(--line); border-radius:14px; padding:7px 12px; min-width:118px; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.g-m span { font-size:0.68rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.g-m b { color:var(--ink); font-variant-numeric:tabular-nums; font-size:1.05rem; line-height:1.1; }
.g-m.g-num { min-width:96px; }
.g-m.g-num b { font-size:1.25rem; color:var(--orange); }
.g-m.bump { animation:g-bump .6s ease; }
@keyframes g-bump { 0% { transform:scale(1); } 30% { transform:scale(1.07); border-color:var(--orange); box-shadow:0 0 0 4px rgba(244,120,45,.18); } 100% { transform:scale(1); } }
.g-achbtn { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:7px 12px; color:var(--ink); font-weight:600; font-size:0.86rem; }
.g-achbtn:hover { border-color:var(--orange); }
.g-achk { width:28px; height:28px; border-radius:9px; background:var(--tint); display:grid; place-items:center; font-weight:700; }
.g-lang { margin-left:auto; display:flex; background:#fff; border:1px solid var(--line); border-radius:999px; padding:3px; align-self:center; }
.g-lang button { border:0; background:none; color:var(--muted); border-radius:999px; padding:6px 12px; font-size:0.84rem; font-weight:600; }
.g-lang button[aria-pressed="true"] { background:var(--ink); color:#fff; }

/* Game box */
.g-box { position:relative; width:100%; aspect-ratio:16 / 10; max-height:78vh; min-height:440px; border-radius:18px; overflow:hidden; background:#f6dcc4;
  border:1px solid var(--line); box-shadow:0 24px 60px -30px rgba(92,17,66,.45); user-select:none; -webkit-user-select:none; touch-action:none; }
.game:fullscreen .g-box { flex:1; max-height:none; aspect-ratio:auto; }
.g-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; outline:none; }

.g-obj { position:absolute; left:12px; top:12px; max-width:min(400px, 58%); background:rgba(255,250,245,.95); border:1px solid var(--line); border-radius:14px;
  padding:10px 14px; box-shadow:0 8px 22px -14px rgba(92,17,66,.5); pointer-events:none; }
.g-ch { display:block; font-size:0.68rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }
.g-goal { display:block; color:var(--ink); margin-top:2px; font-size:0.98rem; line-height:1.35; }
.g-dir { display:flex; align-items:center; gap:8px; margin-top:6px; font-size:0.82rem; color:var(--muted); }
.g-dir[hidden] { display:none; }
.g-dir svg { width:22px; height:22px; fill:var(--orange); flex:none; }
.g-mini { position:absolute; right:12px; top:12px; width:156px; height:156px; padding:0; border-radius:50%; border:4px solid #fff; background:#ead9b4; overflow:hidden;
  box-shadow:0 0 0 1px var(--line), 0 12px 26px -12px rgba(92,17,66,.65); transition:transform .2s ease; }
.g-mini:hover { transform:scale(1.04); }
.g-mini canvas { width:100%; height:100%; display:block; }
.g-season { position:absolute; right:12px; top:178px; background:var(--ink); color:#fff; font-size:0.76rem; font-weight:600; border-radius:999px; padding:4px 12px; pointer-events:none; white-space:nowrap; }

.g-tools { position:absolute; right:12px; bottom:12px; display:flex; gap:8px; }
.g-btn { border:1px solid var(--line); background:rgba(255,250,245,.96); color:var(--ink); border-radius:999px; padding:8px 14px; font-size:0.85rem; font-weight:600; }
.g-btn:hover { border-color:var(--orange); }
.g-pad { position:absolute; left:14px; bottom:14px; width:132px; height:132px; display:grid; grid-template-columns:repeat(3, 1fr); grid-template-rows:repeat(3, 1fr); gap:3px; }
.g-key { border:1px solid var(--line); background:rgba(255,250,245,.9); border-radius:12px; display:grid; place-items:center; touch-action:none; }
.g-key svg { width:20px; height:20px; fill:var(--ink); }
.g-key:active { background:var(--orange); }
.g-key.up { grid-area:1 / 2; } .g-key.left { grid-area:2 / 1; } .g-key.right { grid-area:2 / 3; } .g-key.down { grid-area:3 / 2; }
.g-box.talking .g-pad, .g-box.talking .g-tools { display:none; }

/* Journey steps, under the meters */
.g-steps { list-style:none; display:grid; grid-template-columns:repeat(9, 1fr); gap:0; margin:0 0 12px; padding:0; position:relative; }
.g-steps li { position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; font-size:0.74rem; color:var(--muted); line-height:1.2; }
.g-steps li::before { content:""; position:absolute; top:13px; left:-50%; width:100%; height:2px; background:var(--line); z-index:0; }
.g-steps li:first-child::before { display:none; }
.g-steps li.done::before, .g-steps li.cur::before { background:var(--orange); }
.g-steps span { position:relative; z-index:1; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:0.8rem;
  background:var(--bg); border:2px solid var(--line); color:var(--muted); transition:all .3s ease; }
.g-steps li.done span { background:var(--orange); border-color:var(--orange); color:#3a0a2a; }
.g-steps li.cur span { background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:0 0 0 4px rgba(244,120,45,.25); }
.g-steps li.cur b { color:var(--ink); }
.g-steps b { font-weight:600; }

/* Big map */
.g-big { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(40,20,36,.5); z-index:6; padding:14px; cursor:zoom-out; }
.g-big[hidden] { display:none; }
.g-big canvas { width:auto; height:100%; max-height:100%; max-width:100%; aspect-ratio:1; object-fit:contain; border-radius:18px; border:4px solid #fff; box-shadow:0 30px 60px -20px rgba(0,0,0,.5); }

/* Launch options */
.g-plan { position:absolute; inset:0; display:grid; place-items:center; background:linear-gradient(180deg, rgba(92,17,66,.12), rgba(92,17,66,.5)); padding:14px; z-index:4; overflow:auto; }
.g-plan[hidden] { display:none; }
.g-plan-in { width:min(860px, 100%); background:#fffaf6; border-radius:20px; padding:16px 18px; box-shadow:0 30px 60px -30px rgba(0,0,0,.6); border-top:4px solid var(--orange); animation:g-rise2 .35s ease both; }
.g-tradeoff { margin:2px 0 12px; font-size:0.86rem; color:var(--muted); }
.g-opts { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.g-opt { position:relative; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:16px; padding:12px; color:var(--fg); display:flex; flex-direction:column; gap:6px;
  transition:border-color .15s, transform .15s, box-shadow .15s; }
.g-opt:hover { border-color:var(--orange); transform:translateY(-3px); box-shadow:0 14px 28px -18px rgba(92,17,66,.5); }
.g-optk { width:38px; height:38px; border-radius:11px; background:var(--orange); color:#3a0a2a; font-weight:800; font-size:1.15rem; display:grid; place-items:center; }
.g-optn { color:var(--ink); font-size:0.98rem; line-height:1.25; }
.g-optt { font-size:0.8rem; color:var(--muted); margin-top:-4px; }
.g-mrow { display:grid; grid-template-columns:7.6em 1fr 1.6em; align-items:center; gap:6px; font-size:0.74rem; }
.g-mrow i { height:7px; border-radius:4px; background:rgba(244,120,45,.16); overflow:hidden; }
.g-mrow em { display:block; height:100%; border-radius:4px; background:var(--orange); }
.g-mrow.trust em { background:var(--ink); }
.g-mrow b { color:var(--ink); text-align:right; font-variant-numeric:tabular-nums; }
.g-first { display:flex; justify-content:space-between; align-items:center; font-size:0.74rem; }
.g-dots { display:flex; gap:3px; }
.g-dots i { width:12px; height:12px; border-radius:50%; background:var(--orange); box-shadow:inset 0 -2px 0 rgba(0,0,0,.12); }
.g-six { display:flex; align-items:baseline; gap:8px; border-top:1px dashed var(--line); padding-top:6px; }
.g-six b { font-size:1.9rem; line-height:1; color:var(--orange); letter-spacing:-0.02em; }
.g-six span { font-size:0.76rem; color:var(--ink); font-weight:600; }
.g-cost { font-size:0.74rem; color:var(--muted); }
.g-pick { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:auto; background:var(--ink); color:#fff; border-radius:999px; padding:7px 10px; font-weight:600; font-size:0.84rem; }
.g-pick .g-n { width:20px; height:20px; font-size:0.72rem; border-radius:6px; }
@keyframes g-rise2 { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* Faces in a row */
.g-facerow { display:flex; justify-content:center; margin:10px 0 2px; }
.g-facerow .g-face { width:58px; height:58px; margin:0 -6px; animation:g-popin .4s cubic-bezier(.2,.7,.2,1.4) both; animation-delay:calc(var(--i, 0) * 90ms); }
@keyframes g-popin { from { opacity:0; transform:scale(.5) translateY(8px); } to { opacity:1; transform:none; } }
.g-facerow.named { gap:10px; }
.g-fig { display:flex; flex-direction:column; align-items:center; gap:3px; animation:g-popin .4s cubic-bezier(.2,.7,.2,1.4) both; animation-delay:calc(var(--i, 0) * 90ms); }
.g-fig .g-face { margin:0; animation:none; }
.g-fig small { font-size:0.74rem; font-weight:600; color:var(--ink); }
.g-choice em { margin-left:auto; align-self:center; font-style:normal; font-weight:700; color:var(--ink); background:rgba(244,120,45,.16); border-radius:999px; padding:2px 10px; font-size:0.8rem; white-space:nowrap; }

/* The SpotOn phone */
.g-phone-wrap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:16px; padding:12px; z-index:4;
  background:radial-gradient(ellipse at center, rgba(92,17,66,.05), rgba(92,17,66,.4)); }
.g-phone-wrap[hidden] { display:none; }
.g-saybox { display:flex; flex-direction:column; align-items:center; gap:8px; max-width:200px; animation:g-rise2 .35s ease both; }
.g-saybox .g-face { width:76px; height:76px; }
.g-saybox p { margin:0; background:#fff; border:1px solid var(--line); border-radius:16px; padding:10px 14px; color:var(--ink); font-weight:600; font-size:0.95rem; position:relative; text-align:center; }
.g-saybox p::before { content:""; position:absolute; top:-7px; left:50%; margin-left:-7px; width:12px; height:12px; background:#fff; border-left:1px solid var(--line); border-top:1px solid var(--line); transform:rotate(45deg); }
.g-phone { position:relative; width:272px; height:min(500px, 100%); background:#2a1424; border-radius:36px; padding:10px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 2px #4a2a40;
  animation:g-phone .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes g-phone { from { opacity:0; transform:translateY(30px) rotate(-3deg); } to { opacity:1; transform:none; } }
.g-notch { position:absolute; top:10px; left:50%; width:84px; height:20px; margin-left:-42px; background:#2a1424; border-radius:0 0 12px 12px; z-index:2; }
.g-app { height:100%; background:var(--bg); border-radius:28px; overflow:hidden; display:flex; flex-direction:column; }
.g-apphead { display:flex; align-items:center; gap:8px; padding:24px 14px 8px; background:#fff; border-bottom:1px solid var(--line); }
.g-logo { width:24px; height:24px; border-radius:7px; background:var(--orange); color:#3a0a2a; font-weight:800; font-size:0.8rem; display:grid; place-items:center; }
.g-apphead b { color:var(--ink); font-size:0.95rem; }
.g-appwho { margin-left:auto; font-size:0.74rem; color:var(--muted); font-weight:600; }
.g-scr { flex:1; overflow:auto; padding:10px 12px 12px; display:flex; flex-direction:column; gap:8px; }
.g-prof { display:flex; gap:10px; align-items:center; }
.g-pic { flex:none; width:64px; height:64px; border-radius:50%; border:2px dashed var(--orange); background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:0; overflow:hidden; color:var(--ink); font-size:0.66rem; font-weight:700; }
.g-pic svg { width:26px; height:26px; fill:var(--orange); }
.g-pic:not(.on) { animation:g-pulse 1.6s ease-in-out infinite; }
.g-pic.on { border:3px solid #fff; box-shadow:0 0 0 2px var(--orange); cursor:default; animation:g-popin .4s ease both; }
.g-pic.on svg { width:100%; height:100%; fill:initial; }
@keyframes g-pulse { 0%, 100% { box-shadow:0 0 0 0 rgba(244,120,45,.45); } 50% { box-shadow:0 0 0 8px rgba(244,120,45,0); } }
.g-pname { display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.g-pname b { color:var(--ink); font-size:1.05rem; }
.g-pname span { font-size:0.8rem; color:var(--ink); }
.g-pname small { font-size:0.74rem; color:var(--muted); margin-top:2px; }
.g-self { margin:-2px 0 0; font-size:0.74rem; color:var(--ink); font-weight:600; background:rgba(244,120,45,.14); border-radius:8px; padding:4px 8px; }
.g-sec { display:flex; flex-direction:column; gap:5px; }
.g-secl { font-size:0.66rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); }
.g-chips { display:flex; flex-wrap:wrap; gap:5px; }
.g-chip { border:1.5px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:4px 9px; font-size:0.75rem; font-weight:600; transition:all .15s; }
.g-chip:hover { border-color:var(--orange); }
.g-chip.on { background:var(--orange); border-color:var(--orange); color:#3a0a2a; }
.g-lock { display:flex; align-items:center; gap:6px; margin:0; font-size:0.7rem; color:var(--muted); }
.g-lock svg { width:14px; height:14px; fill:var(--muted); flex:none; }
.g-wide { width:100%; margin-top:auto; }
.g-go[disabled] { opacity:.35; cursor:not-allowed; }
.g-stamp { margin-top:auto; text-align:center; font-weight:800; color:#3a0a2a; background:var(--orange); border-radius:12px; padding:10px; animation:g-stamp .45s cubic-bezier(.2,.7,.2,1.5) both; }
@keyframes g-stamp { from { opacity:0; transform:scale(1.6) rotate(-6deg); } to { opacity:1; transform:none; } }
.g-center { text-align:center; margin:0; font-size:0.86rem; color:var(--ink); }
.g-radar { position:relative; width:150px; height:150px; margin:40px auto 10px; }
.g-radar i { position:absolute; inset:0; border:2px solid var(--orange); border-radius:50%; opacity:0; animation:g-radar 1.8s ease-out infinite; }
.g-radar i:nth-child(2) { animation-delay:.6s; } .g-radar i:nth-child(3) { animation-delay:1.2s; }
.g-radar span { position:absolute; left:50%; top:50%; width:18px; height:18px; margin:-9px; border-radius:50%; background:var(--ink); }
@keyframes g-radar { from { transform:scale(.15); opacity:1; } to { transform:scale(1); opacity:0; } }
.g-score { text-align:center; line-height:1; }
.g-score b { display:block; font-size:2.6rem; color:var(--orange); letter-spacing:-0.03em; animation:g-stamp .5s ease both; }
.g-score span { font-size:0.74rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }
.g-pair { display:flex; align-items:center; justify-content:center; gap:6px; }
.g-pair .g-face { width:64px; height:64px; animation:g-popin .4s ease both; }
.g-link { display:flex; align-items:center; gap:4px; color:var(--orange); }
.g-link i { width:16px; border-top:2px dashed var(--orange); }
.g-link b { font-size:1.2rem; animation:g-beat 1.2s ease-in-out infinite; }
@keyframes g-beat { 0%, 100% { transform:scale(1); } 20% { transform:scale(1.3); } }
.g-why { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
.g-why span { font-size:0.74rem; font-weight:600; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:999px; padding:3px 9px; }
.g-msg { max-width:88%; border-radius:16px; padding:8px 12px; font-size:0.84rem; line-height:1.35; animation:g-rise2 .3s ease both; }
.g-msg.out { align-self:flex-end; background:var(--ink); color:#fff; border-bottom-right-radius:4px; }
.g-msg.in { align-self:flex-start; background:#fff; color:var(--ink); border:1px solid var(--line); border-bottom-left-radius:4px; }
.g-sent { margin:-4px 0 0; align-self:flex-end; font-size:0.7rem; color:var(--muted); }
.g-note { display:flex; gap:10px; align-items:center; background:#fff; border:1px solid var(--orange); border-radius:14px; padding:8px; animation:g-rise2 .3s ease both; }
.g-note .g-face { width:44px; height:44px; }
.g-note b { display:block; color:var(--ink); font-size:0.88rem; }
.g-note span { font-size:0.74rem; color:var(--muted); }
.g-hint { margin:0; font-size:0.74rem; color:var(--muted); border-left:3px solid var(--orange); padding-left:8px; }
.g-row2 { display:grid; grid-template-columns:1fr 1.3fr; gap:6px; margin-top:auto; }
.g-row2 button { padding:9px 6px; font-size:0.86rem; }
.g-sech { color:var(--ink); font-size:0.95rem; }
.g-planopt { display:flex; align-items:center; gap:8px; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:8px 10px; color:var(--fg); }
.g-planopt:hover { border-color:var(--orange); }
.g-planopt b { display:block; color:var(--ink); font-size:0.84rem; }
.g-planopt small { font-size:0.72rem; }
.g-planopt em { margin-left:auto; font-style:normal; font-weight:700; color:var(--ink); font-size:0.74rem; white-space:nowrap; }
.g-matched { text-align:center; margin-top:16px; }
.g-matched b { font-size:1.8rem; color:var(--orange); animation:g-stamp .5s ease both; display:inline-block; }
.g-res { display:flex; gap:10px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px; }
.g-face.sm { width:40px; height:40px; border-width:2px; }
.g-resb { flex:1; display:flex; flex-direction:column; gap:4px; }
.g-resb > span { font-size:0.72rem; color:var(--muted); font-weight:600; }
.g-resb > b { color:var(--ink); font-size:1.05rem; }
.g-bars { display:flex; align-items:flex-end; gap:6px; height:46px; }
.g-bars i { width:26px; height:var(--h, 100%); background:rgba(92,17,66,.2); border-radius:6px 6px 2px 2px; transform-origin:bottom; animation:g-grow .9s cubic-bezier(.2,.7,.2,1) both; }
.g-bars i.up { background:var(--orange); animation-delay:.25s; }
.g-bars small { align-self:center; font-size:0.78rem; color:var(--ink); font-weight:700; }
@keyframes g-grow { from { transform:scaleY(0); } to { transform:scaleY(1); } }
.g-fee { font-size:0.72rem; color:var(--muted); text-align:center; line-height:1.35; }
.g-fee b { display:block; color:var(--ink); font-size:0.8rem; margin-top:2px; }
.g-you { display:flex; gap:14px; align-items:center; background:#fff; border:1px solid var(--orange); border-radius:16px; padding:12px; margin:0 0 12px; }
.g-you .g-face { width:68px; height:68px; }
.g-you b { display:block; color:var(--ink); font-size:1rem; line-height:1.3; }
.g-you p { margin:4px 0 0; font-size:0.9rem; }
.g-follow { display:flex; align-items:center; gap:12px; margin:0 0 8px; }
.g-follow .g-facerow { margin:0; justify-content:flex-start; }
.g-follow .g-face { width:44px; height:44px; }
.g-card .g-text { margin:0 0 8px; font-size:0.9rem; }

/* Impact comparison */
.g-cmp { display:grid; grid-template-columns:minmax(0, 15em) 1fr 2em; gap:8px; align-items:center; font-size:0.82rem; margin:4px 0; }
.g-cmp i { height:10px; background:rgba(92,17,66,.08); border-radius:6px; overflow:hidden; }
.g-cmp em { display:block; height:100%; background:rgba(92,17,66,.35); border-radius:6px; }
.g-cmp.me em { background:var(--orange); }
.g-cmp.me span { color:var(--ink); font-weight:700; }
.g-cmp b { color:var(--ink); text-align:right; }

.g-toast { position:absolute; left:50%; bottom:22px; transform:translate(-50%, 8px); opacity:0; background:var(--ink); color:#fff; border-radius:12px;
  padding:9px 16px; font-size:0.9rem; pointer-events:none; max-width:80%; text-align:center; }
.g-toast.on { animation:g-toast 3s ease both; }
@keyframes g-toast { 0% { opacity:0; transform:translate(-50%, 8px); } 10%, 82% { opacity:1; transform:translate(-50%, 0); } 100% { opacity:0; } }
.g-pop { position:absolute; left:50%; top:14px; transform:translate(-50%, -16px); opacity:0; display:flex; align-items:center; gap:12px; background:#fffaf6;
  border:2px solid var(--orange); border-radius:16px; padding:8px 18px 8px 8px; box-shadow:0 14px 30px -14px rgba(92,17,66,.6); pointer-events:none; z-index:8; }
.g-pop.on { animation:g-pop 2.5s cubic-bezier(.2,.7,.2,1) both; }
.g-pop-k { width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg, #f4782d, #ffb27a); color:#3a0a2a; font-weight:800; font-size:1.2rem; display:grid; place-items:center; }
.g-pop small { display:block; font-size:0.68rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); }
.g-pop b { color:var(--ink); font-size:1rem; }
@keyframes g-pop { 0% { opacity:0; transform:translate(-50%, -16px) scale(.9); } 12% { opacity:1; transform:translate(-50%, 0) scale(1.04); } 20%, 85% { opacity:1; transform:translate(-50%, 0) scale(1); } 100% { opacity:0; transform:translate(-50%, -8px); } }

/* Chapter title card */
.g-card-ch { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); text-align:center; background:rgba(255,250,245,.95); border-radius:20px;
  padding:20px 34px; box-shadow:0 30px 60px -30px rgba(92,17,66,.6); border-top:4px solid var(--orange); cursor:pointer; max-width:86%; z-index:2; }
.g-card-ch[hidden] { display:none; }
.g-card-ch.on { animation:g-card .6s cubic-bezier(.2,.7,.2,1) both; }
.g-cn { display:block; font-size:0.74rem; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--muted); }
.g-card-ch b { display:block; font-size:1.7rem; color:var(--ink); letter-spacing:-0.01em; margin:2px 0 4px; }
.g-card-ch p { margin:0; }
.g-card-ch small { display:inline-block; margin-top:8px; font-size:0.76rem; color:#fff; background:var(--ink); border-radius:999px; padding:2px 10px; }
@keyframes g-card { from { opacity:0; transform:translate(-50%, -40%) scale(.96); } to { opacity:1; transform:translate(-50%, -50%) scale(1); } }

/* Dialog */
.g-dialog { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); width:min(640px, calc(100% - 28px)); max-height:calc(100% - 28px); overflow:auto;
  background:#fffaf6; border:1px solid var(--orange); border-radius:18px; padding:16px 18px; box-shadow:0 20px 50px -20px rgba(92,17,66,.55); animation:g-up .3s ease both; z-index:3; }
.g-dialog[hidden] { display:none; }
.g-dhead { display:flex; gap:14px; align-items:flex-start; }
.g-face { display:block; width:64px; height:64px; flex:none; border-radius:50%; overflow:hidden; background:#fde3d2; border:3px solid #fff; box-shadow:0 0 0 1px var(--line); }
.g-face svg { width:100%; height:100%; display:block; }
.g-who { display:block; font-size:0.7rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); }
.g-dtitle { display:block; font-size:1.15rem; color:var(--ink); }
.g-say { margin:4px 0 0; font-size:1.05rem; color:var(--ink); }
.g-text { margin:4px 0 0; }
.g-lesson { margin:8px 0 0; font-size:0.88rem; color:var(--muted); border-left:3px solid var(--orange); padding-left:10px; }
.g-choices { display:grid; gap:8px; margin-top:12px; }
.g-choice { display:flex; gap:10px; align-items:flex-start; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:10px 12px; color:var(--fg);
  transition:border-color .15s, transform .15s; }
.g-choice:hover { border-color:var(--orange); background:#fffaf5; transform:translateX(3px); }
.g-choice b { display:block; color:var(--ink); }
.g-choice small { display:block; font-size:0.84rem; }
.g-n { flex:none; width:26px; height:26px; border-radius:8px; background:var(--orange); color:#3a0a2a; font-weight:800; font-size:0.82rem; display:grid; place-items:center; }
.g-fx { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.g-fx i { font-style:normal; font-size:0.72rem; font-weight:700; color:var(--ink); background:rgba(244,120,45,.16); border-radius:999px; padding:1px 8px; }
.g-fx i.neg { background:rgba(92,17,66,.08); color:var(--muted); }
.g-drow { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; }
.g-go { border:1px solid var(--ink); background:var(--ink); color:#fff; border-radius:999px; padding:10px 20px; font-weight:600; }
.g-go:hover { background:#4a0d35; }
.g-ghost { border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:9px 16px; }
.g-ghost:hover { border-color:var(--orange); }

/* Impact */
.g-eyebrow { display:block; font-size:0.7rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }
.g-impact { position:relative; }
.g-stars { position:absolute; right:0; top:-4px; color:var(--orange); font-size:1.5rem; letter-spacing:2px; }
.g-nums { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin:12px 0 10px; }
.g-nums > div { background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 10px; display:flex; flex-direction:column; line-height:1.25; }
.g-nums b { font-size:clamp(1.15rem, 3.4vw, 1.55rem); white-space:nowrap; color:var(--orange); font-variant-numeric:tabular-nums; }
.g-nums span { font-size:0.78rem; }

/* Photo mini-game */
.g-photo { position:absolute; inset:0; display:grid; place-items:center; background:rgba(30,20,30,.55); padding:16px; z-index:5; }
.g-photo[hidden] { display:none; }
.g-ph-in { width:min(420px, 100%); background:#fffaf6; border-radius:20px; padding:18px; text-align:center; box-shadow:0 30px 60px -30px rgba(0,0,0,.6); }
.g-ph-in .g-text { margin:0 0 12px; }
.g-view { width:170px; height:170px; margin:0 auto 12px; position:relative; border-radius:16px; background:#fde3d2; overflow:hidden; }
.g-view::before { content:""; position:absolute; inset:10px; border:2px solid rgba(255,255,255,.9); border-radius:10px; pointer-events:none; }
.g-vf svg { width:100%; height:100%; display:block; }
.g-bar { position:relative; height:16px; border-radius:10px; background:rgba(92,17,66,.1); margin:0 6px 14px; }
.g-zone { position:absolute; left:28%; width:44%; top:0; bottom:0; background:rgba(244,120,45,.3); border-radius:10px; }
.g-zone2 { position:absolute; left:43%; width:14%; top:0; bottom:0; background:var(--orange); border-radius:10px; }
.g-mark { position:absolute; top:-5px; width:6px; height:26px; margin-left:-3px; background:var(--ink); border-radius:4px; left:50%; }
.g-ph-msg { margin:10px 0 0; min-height:1.4em; color:var(--ink); font-weight:700; }
.g-photo.flash .g-ph-in { animation:g-flash .5s ease; }
@keyframes g-flash { 0% { filter:brightness(1); } 20% { filter:brightness(2.4); } 100% { filter:brightness(1); } }
.g-polaroid { background:#fff; width:200px; margin:0 auto 14px; padding:12px 12px 14px; box-shadow:0 14px 30px -12px rgba(0,0,0,.35); transform:rotate(-3deg); animation:g-rise .5s ease both; }
.g-polaroid .g-vf { width:176px; height:176px; background:#fde3d2; }
.g-polaroid p { margin:10px 0 0; color:var(--ink); font-weight:700; font-size:0.92rem; }
.g-polaroid span { font-size:0.78rem; color:var(--orange); font-weight:700; }
@keyframes g-rise { from { opacity:0; transform:rotate(-3deg) translateY(12px); } to { opacity:1; transform:rotate(-3deg); } }

/* Achievements panel */
.g-panel { position:absolute; inset:12px; background:rgba(255,250,246,.98); border:1px solid var(--line); border-radius:18px; padding:16px; overflow:auto; z-index:5; }
.g-panel[hidden] { display:none; }
.g-ph { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.g-ph b { color:var(--ink); font-size:1.1rem; }
.g-agrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:8px; }
.g-ach { display:flex; gap:10px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 10px; opacity:.55; filter:grayscale(1); }
.g-ach.on { opacity:1; filter:none; border-color:var(--orange); }
.g-ak { flex:none; width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg, #f4782d, #ffb27a); color:#3a0a2a; font-weight:800; display:grid; place-items:center; }
.g-ach b { display:block; color:var(--ink); font-size:0.9rem; }
.g-ach small { display:block; font-size:0.78rem; }
.g-charms { margin:12px 0 0; color:var(--muted); font-size:0.88rem; }

/* Start screen */
.g-start { position:absolute; inset:0; display:grid; place-items:center; background:linear-gradient(180deg, rgba(92,17,66,.1), rgba(92,17,66,.42)); padding:16px; z-index:6; }
.g-start[hidden] { display:none; }
.g-card { width:min(480px, 100%); background:#fffaf6; border-radius:22px; padding:22px 24px; box-shadow:0 30px 60px -30px rgba(0,0,0,.55); border-top:4px solid var(--orange); }
.g-card .g-facerow { justify-content:flex-start; margin:0 0 6px 6px; }
.g-card h3 { margin:2px 0 8px; font-size:1.6rem; color:var(--ink); letter-spacing:-0.01em; text-transform:none; }
.g-card p { margin:0 0 10px; }
.g-card ul { margin:0 0 16px; padding-left:18px; font-size:0.9rem; }
.g-card li { margin:3px 0; }
.g-card li::marker { color:var(--orange); }

@keyframes g-up { from { opacity:0; transform:translate(-50%, 12px); } to { opacity:1; transform:translate(-50%, 0); } }

.game-alt { margin:12px 0 0; font-size:0.88rem; color:var(--muted); }
.game-alt button { font:inherit; color:var(--ink); background:none; border:0; padding:0; text-decoration:underline; text-decoration-color:var(--orange); text-underline-offset:3px; cursor:pointer; }

@media (max-width: 760px) {
  .g-top { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; }
  .g-lv { min-width:0; grid-column:1 / -1; }
  .g-m, .g-m.g-num { min-width:0; padding:6px 8px; }
  .g-m span { font-size:0.6rem; letter-spacing:0.04em; }
  .g-m b { font-size:0.95rem; }
  .g-m.g-num b { font-size:1.05rem; }
  .g-achbtn { justify-content:center; padding:6px; font-size:0.78rem; min-width:0; }
  .g-achk { display:none; }
  .g-lang { margin-left:0; justify-self:stretch; justify-content:center; }
  .g-lang button { padding:6px 8px; }
  .g-box { aspect-ratio:auto; height:74vh; min-height:520px; font-size:14px; }
  .g-obj { max-width:calc(100% - 120px); padding:8px 10px; }
  .g-goal { font-size:0.88rem; }
  .g-mini { width:100px; height:100px; border-width:3px; }
  .g-season { top:118px; font-size:0.7rem; }
  .g-steps li b { display:none; }
  .g-steps li.cur b { display:block; position:absolute; top:32px; white-space:nowrap; font-size:0.72rem; }
  .g-steps li:first-child.cur b { left:0; } .g-steps li:last-child.cur b { right:0; }
  .g-steps { margin-bottom:28px; }
  .g-steps span { width:24px; height:24px; font-size:0.72rem; }
  .g-steps li::before { top:11px; }
  .g-opts { grid-template-columns:1fr; }
  .g-opt { display:grid; grid-template-columns:38px 1fr; column-gap:10px; }
  .g-opt > :not(.g-optk) { grid-column:2; }
  .g-optk { grid-row:span 2; }
  .g-plan { place-items:start center; }
  .g-phone-wrap { flex-direction:column; gap:8px; justify-content:flex-start; padding-top:10px; }
  .g-saybox { flex-direction:row; max-width:none; }
  .g-saybox .g-face { width:48px; height:48px; }
  .g-saybox p::before { display:none; }
  .g-phone { height:auto; flex:1; max-height:520px; width:min(290px, 100%); }
  .g-cmp { grid-template-columns:minmax(0, 9em) 1fr 2em; font-size:0.76rem; }
  .g-pad { width:120px; height:120px; }
  .g-tools { flex-direction:column; align-items:flex-end; }
  .g-dialog { bottom:10px; }
  .g-card-ch b { font-size:1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .g-dialog, .g-card-ch.on, .g-polaroid, .g-m.bump, .g-photo.flash .g-ph-in { animation:none; }
  .g-pop.on { animation:g-fade 2.5s linear both; }
  @keyframes g-fade { 0%, 90% { opacity:1; transform:translate(-50%, 0); } 100% { opacity:0; transform:translate(-50%, 0); } }
  .g-choice, .g-opt, .g-chip, .g-mini { transition:none; }
  .g-plan-in, .g-facerow .g-face, .g-fig, .g-phone, .g-saybox, .g-pic, .g-stamp, .g-radar i, .g-score b, .g-pair .g-face, .g-link b, .g-msg, .g-note, .g-matched b, .g-bars i { animation:none; }
}
