.tg-root{--tg-accent:var(--accent,#e9bc74);--tg-text:var(--text,#f4f0e8);--tg-muted:var(--muted,#b3b9bf);position:relative;min-width:0;color:var(--tg-text);font-size:14px;line-height:1.6;-webkit-tap-highlight-color:transparent}
.tg-root *{box-sizing:border-box}
.tg-root button{font:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tg-root button:focus-visible{outline:2px solid var(--tg-accent);outline-offset:4px}
.tg-root button:disabled{cursor:default}
.tg-root svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tg-heading{margin:8px 0 12px;font-size:24px;line-height:1.3;font-weight:700;letter-spacing:.08em}
.tg-description{max-width:32em;margin:0 auto 18px;color:var(--tg-muted);font-size:14px;line-height:1.8}
.tg-eyebrow{margin:0;color:var(--tg-accent);font-size:10px;font-weight:600;letter-spacing:.22em}
.tg-intro{text-align:center;padding:0 0 6px}
.tg-intro-art{position:relative;height:144px;margin:0 0 22px;border-radius:14px;display:grid;place-items:center;overflow:hidden;background-position:center;background-size:cover}
.tg-intro-art:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,11,15,.45),rgba(5,11,15,.82))}
.tg-intro-art-wall{background-image:url('assets/wall.jpg')}
.tg-intro-art-tang{background-image:url('assets/tang.jpg')}
.tg-intro-art-mrcs{background-image:url('assets/mrcs.jpg')}
.tg-intro-symbol{z-index:1;width:88px;height:88px;padding:10px;color:var(--tg-accent);border:1px solid var(--tg-accent);border-radius:50%;background:rgba(4,12,18,.65);box-shadow:0 0 28px rgba(0,0,0,.3)}
.tg-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 22px}
.tg-chip{border:1px solid var(--border,rgba(255,255,255,.16));border-radius:20px;padding:4px 12px;color:var(--tg-muted);font-size:11px;letter-spacing:.08em}
.tg-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:150px;padding:12px 22px;border:1px solid var(--tg-accent);border-radius:10px;background:var(--tg-accent);color:#101820;cursor:pointer;font-weight:700!important;letter-spacing:.08em;transition:filter .15s,transform .15s}
.tg-primary:active{transform:scale(.97);filter:brightness(.9)}
.tg-footnote{margin:14px 0 0;color:var(--tg-muted);font-size:11px;letter-spacing:.08em;opacity:.75}
.tg-hud{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border,rgba(255,255,255,.16))}
.tg-progress{color:var(--tg-muted);font-size:12px;letter-spacing:.1em;font-variant-numeric:tabular-nums}
.tg-score{color:var(--tg-accent);font-size:18px;font-variant-numeric:tabular-nums}
.tg-status{min-height:45px;margin:12px 0;color:var(--tg-muted);font-size:13px;line-height:1.6}
.tg-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:14px;border:1px solid var(--border,rgba(255,255,255,.16));background:var(--panel,#101820)}
.tg-actions{min-height:62px;padding-top:14px;text-align:center}
.tg-stage-wall{min-height:270px;padding:20px}
.tg-wall-scenery{position:absolute;z-index:-1;inset:0;background:linear-gradient(rgba(5,13,19,.78),rgba(5,13,19,.92)),url('assets/wall.jpg') center/cover;opacity:.85}
.tg-beacon-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:340px;margin:auto}
.tg-beacon{display:grid;place-items:center;gap:5px;min-width:0;min-height:106px;padding:10px;border:1px solid rgba(233,188,116,.25);border-color:color-mix(in srgb,var(--tg-accent) 30%,transparent);border-radius:12px;background:rgba(12,23,30,.82);color:var(--tg-muted);cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.tg-beacon svg{width:57px;height:57px}
.tg-beacon .tg-flame{opacity:.22;transition:opacity .1s}
.tg-beacon-label{font-size:12px;letter-spacing:.2em}
.tg-beacon.is-lit{color:#fff1ca;background:rgba(185,118,25,.48);box-shadow:inset 0 0 28px rgba(233,188,116,.4),0 0 16px rgba(233,188,116,.22);border-color:var(--tg-accent)}
.tg-beacon.is-lit .tg-flame{opacity:1}
.tg-beacon.is-wrong{border-color:#f19d8b;color:#f1ab9d;background:rgba(132,56,43,.25)}
.tg-motif-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--border,rgba(255,255,255,.16));background:rgba(255,255,255,.025)}
.tg-motif-prompt .tg-eyebrow{font-size:11px;letter-spacing:.1em}
.tg-motif-goal{width:88px;height:88px;color:var(--tg-accent)}
.tg-motif-fill{fill:currentColor;stroke:currentColor}
.tg-motif-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}
.tg-motif-choice{position:relative;display:grid;place-items:center;min-height:100px;min-width:0;padding:9px;border:1px solid var(--border,rgba(255,255,255,.16));border-radius:10px;color:var(--tg-accent);background:rgba(255,255,255,.03);cursor:pointer;transition:background .15s,border-color .15s}
.tg-motif-choice svg{width:78px;height:78px}
.tg-choice-number{position:absolute;left:8px;top:5px;color:var(--tg-muted);font:10px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;opacity:.65}
.tg-motif-choice:active{background:rgba(255,255,255,.1)}
.tg-motif-choice.is-wrong{opacity:.35;border-color:#f19d8b}
.tg-motif-choice.is-correct{border-color:var(--tg-accent);background:rgba(117,214,201,.15);box-shadow:inset 0 0 20px rgba(117,214,201,.08)}
.tg-stage-mrcs{border:0;background:transparent}
.tg-timebar{height:3px;margin-bottom:12px;overflow:hidden;background:rgba(255,255,255,.12);border-radius:4px}
.tg-timebar-fill{display:block;width:100%;height:100%;transform-origin:left;background:var(--tg-accent)}
.tg-counters{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--tg-muted);font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.1em}
.tg-arena{position:relative;height:278px;overflow:hidden;border:1px solid rgba(101,217,255,.3);border-radius:14px;touch-action:manipulation;background:linear-gradient(rgba(3,12,22,.85),rgba(3,12,22,.9)),url('assets/mrcs.jpg') center/cover}
.tg-arena:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(101,217,255,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(101,217,255,.065) 1px,transparent 1px);background-size:28px 28px;pointer-events:none}
.tg-arena-reticle{position:absolute;top:50%;left:50%;width:170px;height:170px;transform:translate(-50%,-50%);border:1px solid rgba(101,217,255,.09);border-radius:50%;pointer-events:none}
.tg-arena-reticle:before,.tg-arena-reticle:after{content:"";position:absolute;top:50%;left:-25%;width:150%;border-top:1px solid rgba(101,217,255,.08)}
.tg-arena-reticle:after{transform:rotate(90deg)}
.tg-target{position:absolute;width:72px;height:72px;padding:0;border:0;border-radius:50%;background:rgba(101,217,255,.055);color:var(--tg-accent);cursor:crosshair;touch-action:manipulation;box-shadow:0 0 22px rgba(101,217,255,.12)}
.tg-target svg{stroke-width:1.7;filter:drop-shadow(0 0 3px rgba(101,217,255,.5));pointer-events:none}
.tg-target-core{fill:currentColor}
.tg-target:active{background:rgba(101,217,255,.2)}
.tg-hit-flash{position:absolute;z-index:3;width:72px;text-align:center;color:var(--tg-accent);font:bold 23px/1 ui-monospace,Consolas,monospace;text-shadow:0 0 16px currentColor;pointer-events:none;animation:tg-hit .5s ease-out forwards}
.tg-arena-tip{margin:10px 0 0;text-align:center;color:var(--tg-muted);font-size:11px;letter-spacing:.08em}
.tg-result{text-align:center;padding:22px 4px 20px}
.tg-result-stamp{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 18px;border:1px solid var(--tg-accent);border-radius:50%;color:var(--tg-accent);font-size:30px;background:rgba(255,255,255,.025)}
.tg-result-score{margin:16px 0 0;color:var(--tg-accent);font:500 60px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.tg-result-label{margin:4px 0 22px;color:var(--tg-muted);font-size:11px;letter-spacing:.2em}
.tg-pause{position:absolute;z-index:5;inset:0;display:grid;place-items:center;padding:18px;border-radius:14px;background:rgba(5,12,18,.94)}
.tg-pause-panel{text-align:center}
@keyframes tg-hit{from{opacity:1;transform:translateY(10px)}to{opacity:0;transform:translateY(-25px)}}
@media(max-width:360px){.tg-stage-wall{padding:14px}.tg-beacon-grid{gap:10px}.tg-beacon{min-height:101px}.tg-motif-prompt{padding:12px 14px}.tg-motif-grid{padding:10px;gap:8px}.tg-motif-choice{min-height:94px}.tg-arena{height:255px}.tg-intro-art{height:128px;margin-bottom:18px}.tg-heading{font-size:22px}}
@media(prefers-reduced-motion:reduce){.tg-root *,.tg-root *:before,.tg-root *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.tg-hit-flash{display:none}}
