/* 星火：终局圈 — 1–4 人小队大逃杀 / 手机横屏战术台面 */
.ring-shell { position: absolute !important; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #03090b; }
html:has(.ring-live), body:has(.ring-live) { overflow: hidden !important; height: 100%; }
#gWrap:has(.ring-live) .ring-shell { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.ring-shell:fullscreen, .ring-shell:-webkit-full-screen { width: 100vw; height: 100vh; }
.ring-live {
  position: absolute; inset: 0; overflow: hidden; color: #e9feff; background: #03090b;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ring-cyan: #7ce8ea; --ring-ice: #e9feff; --ring-amber: #ffca5c; --ring-rose: #ff5f6d;
  --ring-green: #66f0a4; --ring-violet: #c084fc; --ring-dim: rgba(201,244,245,.5);
  user-select: none; touch-action: none;
}
#gWrap:has(.ring-live) .g-stage, body.landscape-mode:has(.ring-live) .g-stage {
  height: 100%; min-height: 0; padding: 0; border: 0; background: transparent;
}
body.landscape-mode:has(.ring-live) .ring-live, #gWrap:has(.ring-live) .ring-live {
  position: absolute !important; inset: 0; width: 100%; height: 100% !important;
  min-height: 0; max-width: none; border-radius: 0; box-shadow: none;
}
.g-wrap.g-live:has(.ring-live) .g-top,
.g-wrap.g-live:has(.ring-live) .g-seats,
.g-wrap.g-live:has(.ring-live) .g-acts,
.g-wrap.g-live:has(.ring-live) .g-log,
.g-wrap.g-live:has(.ring-live) .g-challenge,
.g-wrap.g-live:has(.ring-live) .g-variant-chip,
.g-wrap.g-live:has(.ring-live) .g-rogue,
.g-wrap.g-live:has(.ring-live) .g-items,
.g-wrap.g-live:has(.ring-live) .g-undo,
.g-wrap.g-live:has(.ring-live) .g-final,
.g-wrap.g-live:has(.ring-live) .g-victory,
.g-wrap.g-live:has(.ring-live) .g-podium,
.g-wrap.g-live:has(.ring-live) .g-help,
.g-wrap.g-live:has(.ring-live) .g-live-help { display: none !important; }
.g-wrap.g-live:has(.ring-live) .g-live-exit, #gWrap:has(.ring-live) .g-live-exit {
  display: inline-flex !important; align-items: center; justify-content: center;
  position: fixed !important; top: 62px; right: 8px;
  left: auto; z-index: 80; min-width: 44px; height: 24px; padding: 0 8px;
  border: 1px solid rgba(124,232,234,.22); border-radius: 2px;
  background: rgba(3,13,15,.84); color: rgba(213,249,255,.78);
  font: 700 10px/1 "Noto Sans SC", sans-serif; letter-spacing: .06em;;
}
.g-wrap.g-live:has(.ring-live) .g-live-exit:hover { border-color: rgba(124,232,234,.55); color: #fff; }
.g-wrap:has(.ring-result.on) .g-live-exit, .g-wrap:has(.ring-codex.on) .g-live-exit,
#gWrap:has(.ring-result.on) .g-live-exit, #gWrap:has(.ring-codex.on) .g-live-exit { display: none !important; }
.g-wrap.g-live-done:has(.ring-live) .g-stage, .g-wrap:has(.ring-result.on) .g-stage {
  position: fixed !important; inset: 0 !important; z-index: 260 !important;
  width: 100vw !important; height: 100vh !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #03090b !important;
}
body.landscape-mode:has(.ring-live) .topbar, body.landscape-mode:has(.ring-live) #dock { display: none !important; }
body:has(.ring-live) #toastBox { bottom: 108px; z-index: 30; }
body:has(.ring-live) #toastBox .toast { max-width: 280px; padding: 5px 9px; border-radius: 2px; font: 600 8px/1.32 "Noto Sans SC", sans-serif; }

.ring-map {
  position: absolute; left: 0; top: 0; z-index: 1; display: block; transform-origin: 0 0;
  will-change: transform; image-rendering: auto; pointer-events: none;
}
.ring-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.ring-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, transparent 24%, rgba(0,0,0,.34) 68%, rgba(0,0,0,.82) 100%),
    linear-gradient(180deg, rgba(0,0,0,.7), transparent 16%, transparent 70%, rgba(0,0,0,.6));
}
.ring-scan { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .14;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(140,245,247,.08) 3px, transparent 4px); }
.ring-grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .05;
  background-image: radial-gradient(rgba(255,255,255,.6) .5px, transparent .6px); background-size: 4px 4px; }

.ring-top {
  position: absolute; left: 0; right: 0; top: 0; height: 58px; z-index: 12;
  display: grid; grid-template-columns: 250px 1fr 180px 34px; align-items: center; gap: 8px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(1,8,10,.92), rgba(1,8,10,.5) 70%, transparent);
}
.ring-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ring-mark {
  width: 34px; height: 34px; border: 1px solid rgba(124,232,234,.52); background: rgba(7,22,25,.78);
  color: var(--ring-cyan); font: 900 13px/1 "Orbitron", "Noto Sans SC", sans-serif; letter-spacing: .06em;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 16px rgba(124,232,234,.12), inset 0 0 10px rgba(124,232,234,.1);
}
.ring-brand-copy { min-width: 0; }
.ring-brand-copy small { display: block; font: 700 6.5px/1 "Orbitron", sans-serif; letter-spacing: .14em; color: rgba(124,232,234,.58); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-brand-copy b { display: block; font: 900 17px/1.12 "Noto Sans SC", sans-serif; letter-spacing: .1em; color: #f1ffff; white-space: nowrap; }
.ring-brand-copy em { display: block; margin-top: 2px; font: 600 7px/1.2 "Noto Sans SC", sans-serif; color: rgba(200,242,244,.46); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-timer { text-align: center; justify-self: center; min-width: 124px; }
.ring-timer b { display: block; font: 800 20px/1 "Orbitron", "Noto Sans SC", sans-serif; letter-spacing: .1em; color: #f2ffff; text-shadow: 0 0 16px rgba(124,232,234,.22); }
.ring-timer span { display: block; margin-top: 3px; font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .18em; color: rgba(183,230,232,.46); }
.ring-timer i { display: block; height: 2px; margin: 5px auto 0; width: 118px; background: rgba(124,232,234,.12); overflow: hidden; }
.ring-timer i u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ring-cyan), var(--ring-amber)); transition: width .5s linear; }
.ring-alive { justify-self: end; text-align: right; padding-right: 4px; }
.ring-alive > span { display: block; font: 700 6px/1 "Noto Sans SC", sans-serif; letter-spacing: .16em; color: rgba(183,230,232,.45); }
.ring-alive div { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; margin-top: 3px; }
.ring-alive b { font: 900 19px/1 "Orbitron", sans-serif; color: var(--ring-amber); }
.ring-alive em { font: 700 6px/1 "Noto Sans SC", sans-serif; font-style: normal; letter-spacing: .08em; color: rgba(255,202,92,.5); }
.ring-help {
  width: 26px; height: 26px; border: 1px solid rgba(124,232,234,.32); background: rgba(4,18,21,.78);
  color: rgba(220,252,255,.8); font: 800 12px/1 "Noto Sans SC", sans-serif; z-index: 20;
}
.ring-help:hover { color: #fff; border-color: rgba(124,232,234,.7); }

.ring-storm-chip {
  position: absolute; z-index: 11; left: 50%; transform: translateX(-50%); top: 58px;
  display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px;
  border: 1px solid rgba(192,132,252,.24); background: linear-gradient(90deg, rgba(16,8,26,.88), rgba(9,18,20,.82));
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ring-storm-chip span { font: 700 6.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; color: rgba(192,132,252,.72); }
.ring-storm-chip b { font: 800 9px/1 "Noto Sans SC", sans-serif; color: #efe4ff; white-space: nowrap; }
.ring-storm-chip em { font: 800 9px/1 "Orbitron", sans-serif; font-style: normal; color: var(--ring-amber); min-width: 36px; text-align: right; }
.ring-storm-chip.hot { border-color: rgba(255,95,109,.52); background: linear-gradient(90deg, rgba(38,7,13,.9), rgba(9,16,18,.86)); animation: ringPulse 1.2s ease-in-out infinite; }
.ring-storm-chip.hot em { color: #ff8e96; }
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 rgba(255,95,109,0); } 50% { box-shadow: 0 0 18px rgba(255,95,109,.2); } }

.ring-squad-panel { position: absolute; z-index: 10; left: 10px; top: 63px; width: 210px; bottom: 116px; display: flex; flex-direction: column; pointer-events: none; }
.ring-panel-head { display: flex; align-items: center; justify-content: space-between; height: 18px; padding: 0 5px; border-bottom: 1px solid rgba(124,232,234,.12); background: rgba(3,13,15,.35); }
.ring-panel-head span { font: 700 6.5px/1 "Noto Sans SC", sans-serif; letter-spacing: .16em; color: rgba(200,244,246,.56); }
.ring-panel-head i { font: 800 5.5px/1 "Orbitron", sans-serif; font-style: normal; letter-spacing: .12em; color: var(--ring-green); }
.ring-squad { display: flex; flex-direction: column; gap: 3px; padding: 4px 0; }
.ring-squad-row { position: relative; display: grid; grid-template-columns: 6px 1fr 28px; grid-template-rows: 1fr 5px; column-gap: 4px; row-gap: 2px; padding: 4px 5px; background: linear-gradient(90deg, rgba(3,17,20,.72), rgba(3,17,20,.22)); border-left: 2px solid var(--c); min-height: 34px; }
.ring-squad-row.down { background: linear-gradient(90deg, rgba(46,7,12,.72), rgba(20,10,12,.16)); }
.ring-squad-row.gone { opacity: .42; filter: grayscale(.6); }
.ring-squad-row .dot { width: 5px; height: 5px; margin-top: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); grid-row: 1; }
.ring-squad-row .copy { min-width: 0; grid-row: 1; }
.ring-squad-row .copy b { display: block; font: 800 10px/1.2 "Noto Sans SC", sans-serif; color: #f0ffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-squad-row .copy b u { font: 700 5.5px/1 "Orbitron", sans-serif; color: var(--ring-cyan); text-decoration: none; letter-spacing: .08em; margin-left: 2px; }
.ring-squad-row .copy b s { font: 700 5.5px/1 "Noto Sans SC", sans-serif; color: rgba(190,236,238,.44); text-decoration: none; }
.ring-squad-row .copy small { display: block; margin-top: 1px; font: 600 7px/1.2 "Noto Sans SC", sans-serif; color: rgba(188,232,234,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-squad-row em { grid-row: 1; align-self: center; justify-self: end; font: 800 10px/1 "Orbitron", sans-serif; font-style: normal; color: var(--ring-green); }
.ring-squad-row.down em { color: var(--ring-rose); font-size: 6px; }
.ring-squad-row .bar { grid-column: 2 / 4; grid-row: 2; height: 4px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.ring-squad-row .bar u { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ring-green); transition: width .3s; }
.ring-squad-row .bar i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--ring-cyan); opacity: .8; }
.ring-squad-row > i { display: none; }
.ring-feed { flex: 1; overflow: hidden; padding-top: 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.ring-feed.on div { font: 600 7px/1.34 "Noto Sans SC", sans-serif; color: rgba(205,244,246,.66); padding: 3px 6px; background: rgba(3,14,16,.6); border-left: 1px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ringFeedIn .28s ease-out; }
@keyframes ringFeedIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.ring-gear { position: absolute; z-index: 10; right: 10px; top: 63px; width: 160px; pointer-events: none; }
.ring-weapon { padding: 5px 6px 6px; background: linear-gradient(180deg, rgba(5,22,25,.8), rgba(3,13,15,.4)); border: 1px solid rgba(124,232,234,.12); }
.ring-weapon small { display: block; font: 700 5.5px/1 "Orbitron", sans-serif; letter-spacing: .1em; color: rgba(124,232,234,.5); }
.ring-weapon b { display: block; margin-top: 2px; font: 800 11px/1.1 "Noto Sans SC", sans-serif; color: #f5ffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-weapon span { display: block; margin-top: 3px; font: 800 10px/1 "Orbitron", sans-serif; color: var(--ring-amber); text-align: right; }
.ring-weapon i { display: block; height: 2px; margin-top: 4px; background: rgba(255,255,255,.1); }
.ring-weapon i u { display: block; height: 100%; background: var(--ring-amber); transition: width .2s; }
.ring-kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
.ring-kit span { padding: 4px 3px; text-align: center; background: rgba(3,14,16,.7); border: 1px solid rgba(124,232,234,.1); font: 700 5.5px/1 "Noto Sans SC", sans-serif; color: rgba(189,234,236,.5); }
.ring-kit span b { display: block; margin-top: 2px; font: 800 10px/1 "Orbitron", sans-serif; color: #f0ffff; }
.ring-kit span:nth-child(1) b { color: var(--ring-cyan); }
.ring-kit span:nth-child(2) b { color: var(--ring-green); }
.ring-kit span:nth-child(3) b { color: var(--ring-amber); }
.ring-mini { position: relative; margin-top: 4px; height: 58px; border: 1px solid rgba(124,232,234,.14); background: #030d0f; }
.ring-mini canvas { width: 100%; height: 100%; display: block; }
.ring-mini small { position: absolute; left: 4px; bottom: 2px; font: 700 4.5px/1 "Orbitron", sans-serif; letter-spacing: .1em; color: rgba(200,240,242,.34); pointer-events: none; }

.ring-skill-card {
  position: absolute; z-index: 10; right: 10px; top: 248px; width: 160px; padding: 5px 7px 6px;
  background: linear-gradient(135deg, rgba(8,25,28,.88), rgba(3,13,15,.45)); border: 1px solid rgba(255,202,92,.18); pointer-events: none;
}
.ring-skill-card small { display: block; font: 700 5.5px/1 "Orbitron", sans-serif; letter-spacing: .12em; color: rgba(255,202,92,.54); }
.ring-skill-card b { display: block; margin-top: 2px; font: 800 11px/1.1 "Noto Sans SC", sans-serif; color: var(--ring-amber); }
.ring-skill-card span { display: block; margin-top: 2px; font: 600 7px/1.28 "Noto Sans SC", sans-serif; color: rgba(206,242,243,.55); }
.ring-skill-card em { position: absolute; right: 7px; top: 5px; font: 800 6.5px/1 "Orbitron", sans-serif; font-style: normal; color: var(--ring-green); }

.ring-joy { position: absolute; z-index: 14; left: 18px; bottom: 18px; width: 112px; height: 112px; touch-action: none; }
.ring-joy-ring { position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(124,232,234,.2); background: radial-gradient(circle, rgba(6,30,34,.34) 0 58%, rgba(2,10,12,.54) 59% 100%); box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
.ring-joy-ring::before, .ring-joy-ring::after { content: ""; position: absolute; background: rgba(124,232,234,.12); }
.ring-joy-ring::before { left: 50%; top: 22%; bottom: 22%; width: 1px; }
.ring-joy-ring::after { top: 50%; left: 22%; right: 22%; height: 1px; }
.ring-joy-knob {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(124,232,234,.45); background: radial-gradient(circle at 38% 33%, rgba(188,255,255,.2), rgba(4,20,23,.9) 70%);
  box-shadow: 0 0 14px rgba(124,232,234,.18); transition: transform .08s linear;
}
.ring-joy > span { position: absolute; left: 0; right: 0; bottom: -8px; text-align: center; font: 700 5.5px/1 "Orbitron", sans-serif; letter-spacing: .12em; color: rgba(180,232,234,.32); }

.ring-actions { position: absolute; z-index: 14; right: 10px; bottom: 14px; width: 160px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ring-act { height: 31px; border: 1px solid rgba(124,232,234,.16); background: rgba(3,15,18,.82); color: rgba(216,248,249,.74); display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; align-items: center; padding: 3px 6px; text-align: left; position: relative; overflow: hidden; }
.ring-act::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(124,232,234,.3); }
.ring-act span { grid-row: 1; font: 800 9px/1 "Noto Sans SC", sans-serif; color: #efffff; }
.ring-act b { grid-row: 1; justify-self: end; font: 800 6.5px/1 "Noto Sans SC", sans-serif; color: rgba(156,232,234,.6); }
.ring-act small { grid-column: 1 / 3; grid-row: 2; justify-self: start; font: 700 5px/1 "Orbitron", sans-serif; letter-spacing: .12em; color: rgba(164,228,230,.3); }
.ring-act.ready { border-color: rgba(102,240,164,.4); background: linear-gradient(135deg, rgba(10,42,30,.86), rgba(3,18,20,.72)); box-shadow: inset 0 0 18px rgba(102,240,164,.05); }
.ring-act.ready b { color: var(--ring-green); }
.ring-act.dash.ready::before { background: var(--ring-cyan); }
.ring-act.skill.ready::before { background: var(--ring-amber); }
.ring-act.heal.ready::before { background: var(--ring-green); }
.ring-act:active { transform: scale(.97); }

.ring-prompt { position: absolute; z-index: 11; left: 50%; bottom: 17px; transform: translateX(-50%); width: 280px; text-align: center; pointer-events: none; }
.ring-prompt b { display: block; font: 700 9px/1.35 "Noto Sans SC", sans-serif; color: rgba(235,255,255,.82); text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.ring-prompt small { display: block; margin-top: 2px; font: 600 7px/1.35 "Noto Sans SC", sans-serif; color: rgba(184,232,234,.48); text-shadow: 0 1px 6px rgba(0,0,0,.8); }

.ring-banner { position: absolute; z-index: 30; left: 50%; top: 29%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; }
.ring-banner.on { animation: ringBanner 2.6s ease-out forwards; }
@keyframes ringBanner {
  0% { opacity: 0; transform: translate(-50%, -36%) scale(.96); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1.02); }
}
.ring-banner small { display: block; font: 800 7px/1 "Orbitron", sans-serif; letter-spacing: .3em; color: var(--ring-amber); }
.ring-banner b { display: block; margin-top: 6px; font: 900 25px/1 "Noto Sans SC", sans-serif; letter-spacing: .12em; color: #f5ffff; text-shadow: 0 0 30px rgba(255,202,92,.2), 0 4px 20px rgba(0,0,0,.7); }
.ring-banner em { display: block; margin-top: 5px; font: 600 8px/1.3 "Noto Sans SC", sans-serif; font-style: normal; color: rgba(220,250,252,.58); }

.ring-toast { position: absolute; z-index: 40; left: 50%; bottom: 68px; transform: translateX(-50%) translateY(8px); padding: 6px 12px; opacity: 0; pointer-events: none; max-width: 330px; text-align: center;
  background: rgba(3,15,18,.9); border: 1px solid rgba(124,232,234,.24); font: 700 8px/1.3 "Noto Sans SC", sans-serif; color: #e9ffff; }
.ring-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); transition: .2s; }
.ring-toast.danger { border-color: rgba(255,95,109,.5); color: #ffe2e5; background: rgba(38,6,11,.92); }
.ring-toast.good { border-color: rgba(255,202,92,.44); color: #fff3d4; background: rgba(34,24,5,.9); }

.ring-result { position: absolute; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 14px; background: radial-gradient(ellipse at 50% 45%, rgba(9,30,33,.32), rgba(0,0,0,.9));; }
.ring-result.on { display: flex; animation: ringResultIn .35s ease-out; }
@keyframes ringResultIn { from { opacity: 0; } to { opacity: 1; } }
.ring-result-card { width: min(560px, 96%); max-height: 92%; overflow: auto; padding: 14px 18px 12px; border: 1px solid rgba(124,232,234,.2);
  background: linear-gradient(145deg, rgba(5,23,26,.97), rgba(2,10,12,.98)); box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(124,232,234,.03); position: relative; }
.ring-result-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ring-cyan), transparent); }
.ring-result-card.win::before { background: linear-gradient(90deg, transparent, var(--ring-amber), transparent); }
.ring-result-kicker { font: 700 6.5px/1 "Orbitron", sans-serif; letter-spacing: .2em; color: rgba(124,232,234,.58); }
.ring-result-card.win .ring-result-kicker { color: rgba(255,202,92,.7); }
.ring-result-card h2 { margin: 5px 0 3px; font: 900 27px/1.1 "Noto Sans SC", sans-serif; letter-spacing: .08em; color: #f4ffff; }
.ring-result-card.win h2 { color: var(--ring-amber); }
.ring-result-reason { font: 600 9px/1.4 "Noto Sans SC", sans-serif; color: rgba(202,240,242,.68); }
.ring-result-stats { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 4px; margin-top: 10px; }
.ring-result-stats b, .ring-result-stats span { padding: 7px 8px; background: rgba(124,232,234,.05); border: 1px solid rgba(124,232,234,.1); font: 800 15px/1 "Orbitron", sans-serif; color: #f0ffff; }
.ring-result-stats b { color: var(--ring-amber); }
.ring-result-stats small { display: block; margin-top: 4px; font: 600 6.5px/1 "Noto Sans SC", sans-serif; color: rgba(186,230,232,.48); letter-spacing: .08em; }
.ring-result-squad { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 9px; }
.ring-result-squad div { display: flex; align-items: center; gap: 5px; padding: 4px 6px; background: rgba(3,15,17,.6); border-left: 2px solid var(--c); }
.ring-result-squad i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.ring-result-squad b { font: 800 9px/1.1 "Noto Sans SC", sans-serif; color: #efffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ring-result-squad small { margin-left: auto; font: 600 7px/1.1 "Noto Sans SC", sans-serif; color: rgba(190,232,234,.55); white-space: nowrap; }
.ring-result-mvp { display: flex; align-items: center; gap: 7px; padding: 7px 8px; margin-top: 8px; border: 1px solid rgba(255,202,92,.18); background: rgba(255,202,92,.04); }
.ring-result-mvp small { font: 700 6px/1 "Orbitron", sans-serif; letter-spacing: .1em; color: rgba(255,202,92,.6); }
.ring-result-mvp b { font: 900 12px/1 "Noto Sans SC", sans-serif; color: var(--ring-amber); }
.ring-result-mvp span { margin-left: auto; font: 600 7.5px/1.2 "Noto Sans SC", sans-serif; color: rgba(224,246,247,.6); }
.ring-result-actions { display: flex; gap: 6px; margin-top: 10px; }
.ring-result-actions button { flex: 1; height: 31px; border: 1px solid rgba(124,232,234,.2); background: rgba(6,25,28,.8); color: rgba(224,250,252,.8); font: 800 9px/1 "Noto Sans SC", sans-serif; letter-spacing: .1em; }
.ring-result-actions button.primary { background: linear-gradient(135deg, rgba(255,202,92,.2), rgba(255,140,60,.08)); border-color: rgba(255,202,92,.5); color: var(--ring-amber); }
.ring-result-actions button:hover { filter: brightness(1.12); }

.ring-codex { position: absolute; inset: 0; z-index: 71; display: none; align-items: center; justify-content: center; padding: 12px; background: rgba(0,0,0,.78);; }
.ring-codex.on { display: flex; animation: ringResultIn .25s ease-out; }
.ring-codex-card { width: min(720px, 97%); max-height: 94%; overflow: auto; position: relative; padding: 14px 18px 10px; border: 1px solid rgba(124,232,234,.2); background: linear-gradient(145deg, rgba(5,22,25,.98), rgba(2,9,11,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.ring-codex-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--ring-amber), transparent); }
.ring-codex-close { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border: 1px solid rgba(124,232,234,.2); background: rgba(3,14,16,.8); color: rgba(220,250,252,.7); font: 500 16px/1 sans-serif; }
.ring-codex-kicker { font: 700 6.5px/1 "Orbitron", sans-serif; letter-spacing: .2em; color: rgba(255,202,92,.62); }
.ring-codex-card h2 { margin: 5px 0 10px; font: 900 23px/1.1 "Noto Sans SC", sans-serif; letter-spacing: .08em; color: #f5ffff; }
.ring-codex-card h2 small { margin-left: 8px; font: 600 8px/1.2 "Noto Sans SC", sans-serif; letter-spacing: .02em; color: rgba(195,236,238,.5); }
.ring-codex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ring-codex-cols section { min-width: 0; }
.ring-codex-cols h3 { margin: 0 0 4px; padding-bottom: 3px; border-bottom: 1px solid rgba(124,232,234,.12); font: 800 8px/1 "Noto Sans SC", sans-serif; letter-spacing: .08em; color: rgba(255,202,92,.8); }
.ring-codex-cols p { margin: 3px 0; font: 600 8px/1.45 "Noto Sans SC", sans-serif; color: rgba(208,242,244,.66); }
.ring-codex-cols p b { color: #eaffff; }
.ring-codex-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(124,232,234,.1); }
.ring-codex-foot span { font: 600 7.5px/1 "Noto Sans SC", sans-serif; color: rgba(188,230,232,.5); }
.ring-codex-foot b { font: 800 7.5px/1 "Noto Sans SC", sans-serif; color: var(--ring-amber); letter-spacing: .08em; }

@media (max-width: 700px), (max-height: 360px) {
  .ring-top { height: 52px; grid-template-columns: 210px 1fr 150px 28px; padding: 0 8px; }
  .ring-mark { width: 28px; height: 28px; font-size: 11px; }
  .ring-brand-copy b { font-size: 15px; }
  .ring-timer b { font-size: 17px; }
  .ring-storm-chip { top: 52px; height: 22px; }
  .ring-squad-panel { top: 56px; width: 180px; bottom: 106px; }
  .ring-squad-row { min-height: 29px; padding: 3px 4px; }
  .ring-squad-row .copy b { font-size: 9px; }
  .ring-gear { top: 56px; width: 142px; }
  .ring-mini { height: 50px; }
  .ring-skill-card { top: 228px; width: 142px; padding: 4px 6px; }
  .ring-skill-card span { font-size: 6.5px; }
  .ring-actions { width: 142px; gap: 3px; }
  .ring-act { height: 27px; padding: 2px 5px; }
  .ring-joy { width: 96px; height: 96px; left: 14px; bottom: 14px; }
  .ring-joy-knob { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .ring-prompt { width: 240px; bottom: 12px; }
  .ring-prompt b { font-size: 8px; }
  .ring-prompt small { font-size: 6.5px; }
  .ring-codex-cols { grid-template-columns: 1fr; }
  .ring-result-squad { grid-template-columns: 1fr; }
}

