/* game.css — Twilight of Fantasia game styles
   Extracted from game.html inline <style> block */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: 'Courier New', monospace; color: #e8e4d9; }

#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#game-ui     { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

.panel { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; pointer-events: none; }
.panel.active { display: flex; pointer-events: auto; }

/* ── Loading ── */
#panel-loading { background: rgba(0,0,0,0.9); }
.loading-txt { font-size: 0.75rem; letter-spacing: 0.3em; color: #4a4035; animation: pulse 2s infinite; }

/* ── Auth ── */
#panel-auth { background: rgba(0,0,0,0.88); gap: 1.5rem; text-align: center; }

/* ── Onboarding ── */
#panel-onboarding { gap: 1.25rem; }
.platform-card { background: rgba(6,6,10,0.94); border: 1px solid rgba(200,180,140,0.18); padding: 2rem 2.5rem; max-width: 540px; width: 100%; }
.pc-name  { font-size: 1.35rem; font-weight: 700; color: #c8b48c; margin-bottom: 0.35rem; }
.pc-pe    { font-size: 0.7rem; letter-spacing: 0.15em; color: #7a6f5e; margin-bottom: 1.25rem; }
.pc-desc  { font-size: 0.95rem; line-height: 1.65; color: #c4baa8; margin-bottom: 1.5rem; }
.score-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.score-col { flex: 1; }
.score-col label { display: block; font-size: 0.65rem; letter-spacing: 0.1em; color: #7a6f5e; margin-bottom: 0.35rem; }
.score-col select { width: 100%; background: rgba(0,0,0,0.7); border: 1px solid rgba(200,180,140,0.25); color: #e8e4d9; padding: 0.45rem 0.5rem; font-family: inherit; font-size: 0.82rem; }
.pe-preview { font-size: 0.72rem; color: #7a6f5e; height: 1.2rem; margin-bottom: 1rem; }

/* ── Whispers ── */
#panel-whispers { background: rgba(0,0,0,0.65); gap: 1.25rem; text-align: center; }
.whisper-who  { font-size: 0.65rem; letter-spacing: 0.35em; color: #7a6f5e; text-transform: uppercase; }
.whisper-line { font-size: 1.2rem; line-height: 1.75; max-width: 580px; color: #e8e4d9; opacity: 0; transition: opacity 1.4s ease; }
.whisper-line.show { opacity: 1; }

/* ── Battery ── */
#panel-battery { gap: 1.25rem; }
.batt-prog { font-size: 0.65rem; letter-spacing: 0.25em; color: #7a6f5e; }
.batt-card { background: rgba(6,6,10,0.94); border: 1px solid rgba(200,180,140,0.15); padding: 2rem; max-width: 600px; width: 100%; }
.batt-q    { font-size: 0.97rem; line-height: 1.6; color: #d4c9b2; margin-bottom: 1.4rem; }
.batt-opts { display: flex; flex-direction: column; gap: 0.65rem; }
.batt-opt  { background: transparent; border: 1px solid rgba(200,180,140,0.18); color: #c8b48c; padding: 0.7rem 1rem; font-family: inherit; font-size: 0.88rem; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.batt-opt:hover { border-color: rgba(200,180,140,0.5); background: rgba(200,180,140,0.04); }

/* ── Archetype reveal ── */
#panel-archetype { background: rgba(0,0,0,0.88); gap: 1.5rem; text-align: center; }
.arch-eyebrow { font-size: 0.68rem; letter-spacing: 0.3em; color: #7a6f5e; text-transform: uppercase; }
.arch-name { font-size: 2.8rem; font-weight: 700; color: #c8b48c; opacity: 0; transition: opacity 2s ease; }
.arch-name.show { opacity: 1; }
.arch-line { font-size: 0.97rem; color: #d4c9b2; max-width: 480px; line-height: 1.65; opacity: 0; transition: opacity 1.5s ease 0.6s; }
.arch-line.show { opacity: 1; }
.arch-battery-note {
  font-size: 0.72rem; color: #5a5040; max-width: 480px; line-height: 1.65;
  margin-top: 0.75rem; text-align: center; opacity: 0; transition: opacity 1s ease 1.5s;
}
.arch-battery-note.show { opacity: 1; }

/* ── Fata ── */
#panel-fata { background: rgba(0,0,0,0.55); }
.fata-msg { font-size: 0.9rem; color: #7a6f5e; max-width: 380px; text-align: center; line-height: 1.65; opacity: 0; transition: opacity 2s ease; }
.fata-msg.show { opacity: 1; }

/* ── Safety Acknowledgment ── */
#panel-safety { background: rgba(0,0,0,0.92); gap: 1.25rem; text-align: left; }
.safety-frame { max-width: 560px; width: 100%; border: 1px solid rgba(200,120,80,0.25); padding: 2rem 2.25rem; background: rgba(6,6,10,0.94); }
.safety-eyebrow { font-size: 0.58rem; letter-spacing: 0.35em; color: rgba(200,120,80,0.7); text-transform: uppercase; margin-bottom: 1.25rem; }
.safety-title { font-size: 1.15rem; color: #c8b48c; margin-bottom: 0.75rem; letter-spacing: 0.06em; line-height: 1.4; }
.safety-body { font-size: 0.82rem; color: #9a9080; line-height: 1.75; margin-bottom: 1.25rem; }
.safety-body p { margin-bottom: 0.75rem; }
.safety-body .safety-mechanic { color: #c8b48c; font-weight: 700; }
.safety-items { list-style: none; padding: 0; margin: 0 0 1.25rem 0; }
.safety-items li { font-size: 0.78rem; color: #7a6f5e; line-height: 1.65; padding: 0.4rem 0 0.4rem 1rem; border-left: 2px solid rgba(200,120,80,0.2); margin-bottom: 0.35rem; }
.safety-items li .safety-val { color: #c4baa8; }
.safety-check-row { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.65rem; cursor: pointer; }
.safety-check-row input[type="checkbox"] { accent-color: #c8b48c; margin-top: 0.2rem; flex-shrink: 0; }
.safety-check-row label { font-size: 0.78rem; color: #7a6f5e; line-height: 1.55; cursor: pointer; }
.safety-footer { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
#btn-safety-enter { opacity: 0.3; pointer-events: none; transition: opacity 0.3s ease; }
#btn-safety-enter.ready { opacity: 1; pointer-events: auto; }
.safety-exit-link { font-size: 0.65rem; color: #4a4035; letter-spacing: 0.08em; cursor: pointer; text-decoration: none; }
.safety-exit-link:hover { color: #7a6f5e; }
.safety-vp-note { display: none; margin-top: 0.75rem; font-size: 0.72rem; color: rgba(200,120,80,0.7); line-height: 1.6; padding: 0.5rem 0.75rem; border: 1px solid rgba(200,120,80,0.15); background: rgba(200,120,80,0.04); }
.safety-vp-note.show { display: block; }

/* ── Session timer (HUD) ── */
.hud-session-time { font-size: 0.5rem; letter-spacing: 0.15em; color: #3a3530; margin-top: 0.15rem; transition: color 0.6s ease; }
.hud-session-time.hud-break-rec { color: rgba(200,120,80,0.6); }

/* ── Mining ── */
#panel-mining { background: rgba(0,0,0,0.88); gap: 1rem; text-align: left; }

/* ── Dashboard ── */
#panel-dashboard { background: rgba(0,0,0,0.82); gap: 1.25rem; text-align: center; }
.dash-arch { font-size: 0.65rem; letter-spacing: 0.25em; color: #7a6f5e; text-transform: uppercase; }
.dash-title { font-size: 1.65rem; color: #c8b48c; }
.dash-bio   { font-size: 0.88rem; color: #9a9080; max-width: 480px; line-height: 1.65; }
.dash-links { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.dash-fata  { font-size: 0.65rem; color: #3a3530; margin-top: 1.5rem; letter-spacing: 0.1em; }

/* ── Shared ── */
.void-eyebrow { font-size: 0.68rem; letter-spacing: 0.3em; color: #7a6f5e; text-transform: uppercase; }
.void-tagline { font-size: 1rem; color: #9a9080; }
.void-btn { background: transparent; border: 1px solid rgba(200,180,140,0.35); color: #c8b48c; padding: 0.7rem 1.75rem; font-family: inherit; font-size: 0.85rem; letter-spacing: 0.08em; cursor: pointer; transition: border-color 0.2s, color 0.2s; text-decoration: none; display: inline-block; }
.void-btn:hover, .void-btn.primary { border-color: #c8b48c; color: #e8e4d9; }
.void-btn.primary { border-color: rgba(200,180,140,0.7); }
.void-err { font-size: 0.78rem; color: #c0392b; margin-top: 0.4rem; min-height: 1rem; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── Radio widget ── */
#radio-widget {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 30;
  background: rgba(6,6,10,0.92); border: 1px solid rgba(200,180,140,0.18);
  padding: 0.6rem 0.85rem 0.55rem; width: 190px;
  font-family: 'Courier New', monospace; font-size: 0.68rem;
  color: #7a6f5e; pointer-events: auto; user-select: none;
  backdrop-filter: blur(4px);
}
#radio-station { font-size: 0.55rem; letter-spacing: 0.25em; color: #4a4035; text-transform: uppercase; margin-bottom: 0.3rem; }
#radio-track-wrap { overflow: hidden; white-space: nowrap; width: 100%; margin-bottom: 0.45rem; height: 1.1rem; }
#radio-track { font-size: 0.72rem; color: #c8b48c; }
#radio-controls { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.45rem; }
#radio-controls button { background: transparent; border: 1px solid rgba(200,180,140,0.22); color: #9a8c78; font-size: 0.65rem; padding: 0.2rem 0.45rem; cursor: pointer; font-family: inherit; line-height: 1; transition: border-color 0.15s, color 0.15s; }
#radio-controls button:hover { border-color: rgba(200,180,140,0.6); color: #c8b48c; }
#radio-play { flex: 1; }
#radio-vol-row { display: flex; align-items: center; gap: 0.4rem; }
#radio-vol-icon { font-size: 0.7rem; color: #4a4035; }
#radio-vol { -webkit-appearance: none; appearance: none; flex: 1; height: 2px; background: rgba(200,180,140,0.18); outline: none; cursor: pointer; }
#radio-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; background: #c8b48c; border-radius: 50%; }
#radio-vol::-moz-range-thumb { width: 9px; height: 9px; background: #c8b48c; border: none; border-radius: 50%; }

/* ── Result screen ── */
#panel-result { align-items: center; justify-content: center; background: rgba(0,0,0,0.82); }
.res-wrap { max-width: 420px; width: 100%; text-align: center; padding: 2rem 1.5rem; }
.res-eyebrow { font-size: 0.58rem; letter-spacing: 0.4em; color: #5a5040; text-transform: uppercase; margin-bottom: 0.6rem; }
.res-campaign { font-size: 1.35rem; color: #c8b48c; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.res-duration { font-size: 0.65rem; color: #5a5040; letter-spacing: 0.12em; margin-bottom: 1.25rem; }
.res-stats { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 1.2rem; }
.res-stat { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.res-stat-val { font-size: 2.2rem; font-weight: 700; color: #4a4035; }
.res-stat-val.res-good { color: #c8b48c; }
.res-stat-val.res-morr { color: #3ddc84; }
.res-stat-label { font-size: 0.55rem; letter-spacing: 0.2em; color: #4a4035; text-transform: uppercase; }
.res-pe-line { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 0.78rem; margin-bottom: 0.85rem; color: #7a6f5e; }
.res-pe-dir  { font-size: 1.2rem; }
.res-pe-vals { font-size: 0.72rem; color: #5a5040; margin-left: 0.3rem; }
.res-items { margin-bottom: 0.85rem; }
.res-item { font-size: 0.72rem; color: #c8b48c; letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.res-fata-line { font-size: 0.75rem; color: #4a4035; letter-spacing: 0.06em; margin: 0.75rem 0 1.25rem; line-height: 1.6; font-style: italic; }
.res-continue { background: transparent; border: 1px solid rgba(200,180,140,0.4); color: #c8b48c; padding: 0.7rem 2rem; font-family: inherit; font-size: 0.82rem; letter-spacing: 0.12em; cursor: pointer; transition: border-color 0.2s; }
.res-continue:hover { border-color: #c8b48c; }

/* ── Campaign scene ── */
#panel-campaign { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; }
#campaign-header { position: relative; padding: 1rem 1.25rem 0.75rem; background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(200,180,140,0.08); flex-shrink: 0; }
.cmp-back { background: none; border: none; color: #5a5040; font-family: inherit; font-size: 0.6rem; letter-spacing: 0.2em; cursor: pointer; padding: 0; margin-bottom: 0.4rem; display: block; }
.cmp-back:hover { color: #c8b48c; }
.cmp-title { font-size: 1rem; color: #c8b48c; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.cmp-meta  { font-size: 0.6rem; color: #5a5040; letter-spacing: 0.12em; text-transform: uppercase; }
.cmp-pe-readout { position: absolute; top: 1rem; right: 1.25rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; }
#campaign-npc-trigger { position: fixed; top: 5.5rem; right: 1.25rem; z-index: 25; display: none; }
#campaign-npc-trigger.npc-available { display: block; }
.cmp-npc-btn { background: rgba(4,4,8,0.88); border: 1px solid rgba(200,180,140,0.22); color: #c8b48c; padding: 0.45rem 0.85rem; font-family: inherit; font-size: 0.65rem; letter-spacing: 0.15em; cursor: pointer; animation: npc-pulse 2.5s ease-in-out infinite; }
@keyframes npc-pulse { 0%,100% { border-color: rgba(200,180,140,0.22); } 50% { border-color: rgba(200,180,140,0.6); } }

/* ── Scoring panel ── */
#campaign-scoring-panel { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; max-width: 520px; margin: 0 auto; width: 100%; }
.sc-header { margin-bottom: 1rem; }
.sc-eyebrow { font-size: 0.58rem; letter-spacing: 0.3em; color: #5a5040; text-transform: uppercase; margin-bottom: 0.4rem; }
.sc-platform-name { font-size: 1.25rem; color: #c8b48c; margin-bottom: 0.15rem; }
.sc-platform-domain { font-size: 0.6rem; color: #5a5040; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.3rem; }
.sc-hint { font-size: 0.8rem; color: #7a6f5e; line-height: 1.55; margin-bottom: 0.75rem; }
.sc-sliders { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 0.85rem; }
.sc-dim-label { font-size: 0.6rem; letter-spacing: 0.15em; color: #7a6f5e; text-transform: uppercase; margin-bottom: 0.3rem; display: flex; justify-content: space-between; }
.sc-dim-tip { font-size: 0.55rem; color: #4a4035; letter-spacing: 0.05em; }
.sc-slider-row { display: flex; align-items: center; gap: 0.6rem; }
.sc-range { flex: 1; accent-color: #c8b48c; height: 3px; cursor: pointer; }
.sc-val { font-size: 0.75rem; color: #c8b48c; width: 1.2rem; text-align: right; font-weight: 700; }
.sc-anchors { display: flex; justify-content: space-between; font-size: 0.52rem; color: #3a3530; letter-spacing: 0.06em; margin-top: 0.1rem; }
.sc-preview { font-size: 0.82rem; letter-spacing: 0.1em; color: #7a6f5e; margin-bottom: 0.75rem; min-height: 1.2rem; }
.sc-evidence { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(200,180,140,0.15); color: #c4baa8; padding: 0.55rem 0.7rem; font-family: inherit; font-size: 0.8rem; resize: vertical; outline: none; margin-bottom: 0.75rem; line-height: 1.5; }
.sc-evidence:focus { border-color: rgba(200,180,140,0.35); }
.sc-submit { width: 100%; background: transparent; border: 1px solid rgba(200,180,140,0.4); color: #c8b48c; padding: 0.7rem; font-family: inherit; font-size: 0.82rem; letter-spacing: 0.12em; cursor: pointer; transition: border-color 0.2s; }
.sc-submit:hover:not(:disabled) { border-color: #c8b48c; }
.sc-submit:disabled { opacity: 0.4; cursor: default; }
.sc-err { font-size: 0.72rem; color: #c0392b; margin-top: 0.4rem; min-height: 1rem; }
.sc-result { font-size: 0.78rem; line-height: 1.55; margin-top: 0.5rem; min-height: 1.5rem; }
.sc-accepted { color: #3ddc84; }
.sc-rejected { color: #c0392b; }
.sc-hysteresis { font: 600 8px/1 monospace; letter-spacing: 0.12em; margin-top: 0.3rem; min-height: 1rem; }
#intervention-timer { user-select: none; }
#hud-phase-riding { animation: phase-pulse 2s ease-in-out infinite; }
@keyframes phase-pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }
#fisher-runaway-banner { animation: fisher-flash 0.3s ease 3; }
@keyframes fisher-flash { 0%,100%{background:rgba(160,10,10,0.92)} 50%{background:rgba(220,20,20,0.96)} }

/* ── Channel HUD ── */
#channel-hud { pointer-events: none; }
@keyframes channel-pulse { from { opacity:0.7; } to { opacity:1; } }

/* ── Controls hint ── */
#movement-hint { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 12; font: 400 8px/1.6 monospace; letter-spacing: 0.15em; color: #2a2a44; pointer-events: none; display: none; }
#movement-hint.active { display: block; }

/* ── HUD ── */
#hud { position: fixed; top: 1rem; left: 1rem; z-index: 20; display: none; flex-direction: column; gap: 0.45rem; pointer-events: none; }
#hud.visible { display: flex; }
.hud-bar { display: flex; align-items: center; gap: 0.55rem; }
.hud-label { font-size: 0.58rem; letter-spacing: 0.2em; color: #5a5040; width: 3.5rem; }
.hud-track { width: 90px; height: 4px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.hud-fill  { height: 100%; border-radius: 2px; transition: width 0.6s ease, background-color 0.6s ease; width: 0%; }
#hud-logos-fill { background: #2e86ab; }
.hud-fill-critical { animation: hud-critical 0.6s ease-in-out infinite alternate; }
@keyframes hud-critical { from { opacity: 1; } to { opacity: 0.4; } }
.hud-val { font-size: 0.58rem; color: #4a4035; width: 2rem; text-align: right; }
.hud-stats { font-size: 0.55rem; letter-spacing: 0.12em; color: #4a4035; margin-top: 0.1rem; min-height: 0.8rem; }
.hud-fata { font-size: 0.58rem; letter-spacing: 0.12em; color: #3a3530; margin-top: 0.2rem; }

/* ── Binder button ── */
#hud-binder-btn { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 20; display: none; background: rgba(4,4,8,0.85); border: 1px solid rgba(200,180,140,0.22); color: #c8b48c; padding: 0.5rem 0.85rem; font-family: inherit; font-size: 0.7rem; letter-spacing: 0.15em; cursor: pointer; pointer-events: auto; transition: border-color 0.2s; }
#hud-binder-btn.visible { display: block; }
#hud-binder-btn:hover { border-color: rgba(200,180,140,0.6); }
#hud-binder-btn.has-badge::after { content: attr(data-badge); position: absolute; top: -0.4rem; right: -0.4rem; background: #e74c3c; color: #fff; font-size: 0.55rem; border-radius: 50%; width: 1rem; height: 1rem; display: flex; align-items: center; justify-content: center; }

/* ── NPC Dialogue Panel ── */
#npc-panel { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: rgba(4,4,8,0.95); border-top: 1px solid rgba(200,180,140,0.12); padding: 1.25rem 1.5rem; transform: translateY(100%); transition: transform 0.35s ease; max-height: 40vh; display: flex; flex-direction: column; gap: 0.75rem; }
#npc-panel.open { transform: translateY(0); }
.npc-header { display: flex; justify-content: space-between; align-items: baseline; }
.npc-name { font-size: 0.72rem; letter-spacing: 0.2em; color: #c8b48c; text-transform: uppercase; }
.npc-faction { font-size: 0.6rem; letter-spacing: 0.12em; color: #5a5040; text-transform: uppercase; }
#npc-close { background: none; border: none; color: #5a5040; font-size: 1rem; cursor: pointer; padding: 0; line-height: 1; }
#npc-close:hover { color: #c8b48c; }
#npc-history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; min-height: 60px; }
.npc-msg { font-size: 0.83rem; line-height: 1.6; max-width: 680px; }
.npc-msg.from-npc { color: #c4baa8; }
.npc-msg.from-player { color: #5a6a7a; text-align: right; align-self: flex-end; }
.npc-input-row { display: flex; gap: 0.65rem; }
#npc-input { flex: 1; background: rgba(0,0,0,0.6); border: 1px solid rgba(200,180,140,0.18); color: #e8e4d9; padding: 0.55rem 0.75rem; font-family: inherit; font-size: 0.84rem; outline: none; }
#npc-input:focus { border-color: rgba(200,180,140,0.4); }
#npc-send { background: transparent; border: 1px solid rgba(200,180,140,0.3); color: #c8b48c; padding: 0.55rem 1.1rem; font-family: inherit; font-size: 0.78rem; cursor: pointer; letter-spacing: 0.08em; }
#npc-send:hover { border-color: #c8b48c; }
#npc-send:disabled { opacity: 0.35; cursor: default; }
.npc-turns { font-size: 0.6rem; letter-spacing: 0.1em; color: #3a3530; }
.npc-delta { font-size: 0.65rem; color: #7a6f5e; margin-left: 0.5rem; }
#npc-framework { font-size: 0.55rem; letter-spacing: 0.12em; color: #3a3530; border-top: 1px solid rgba(200,180,140,0.07); padding-top: 0.4rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
#npc-framework.pe-alarm { color: #cc3333; border-top-color: rgba(204,51,51,0.25); }
.npc-fw-label { color: #443a2e; }
.npc-fw-val { color: #7fd4ff; }
.npc-fw-class { color: #8a7a5e; text-transform: uppercase; }
.npc-fw-layer { color: #3a4a3a; }
.npc-fw-witness { color: #4a5e4a; letter-spacing: 0.15em; margin-left: auto; }
.npc-fw-alarm { color: #ff4444; letter-spacing: 0.2em; animation: pe-blink 1s step-end infinite; }
@keyframes pe-blink { 50% { opacity: 0.3; } }
.npc-msg.from-witness { color: #3a4a3a; font-size: 0.7rem; letter-spacing: 0.08em; border-left: 2px solid #2a3a2a; padding-left: 0.5rem; margin: 0.25rem 0; }
.npc-delta.up { color: #c0392b; }
.npc-delta.down { color: #2e86ab; }
#btn-open-npc { pointer-events: auto; }

/* ── Injection Arena ── */
#panel-arena { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; overflow-y: auto; }
.arena-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.arena-header { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.arena-back-btn { background: transparent; border: 1px solid rgba(200,180,140,0.18); color: #5a5040; padding: 0.35rem 0.75rem; font-family: inherit; font-size: 0.58rem; letter-spacing: 0.16em; cursor: pointer; }
.arena-back-btn:hover { color: #c8b48c; border-color: rgba(200,180,140,0.45); }
.arena-title { font-size: 0.68rem; letter-spacing: 0.3em; color: #e74c3c; }
.arena-sub { font-size: 0.6rem; color: #3a3530; letter-spacing: 0.06em; }
.arena-textarea { width: 100%; background: rgba(8,8,14,0.9); border: 1px solid rgba(200,180,140,0.15); color: #c8b48c; font-family: inherit; font-size: 0.75rem; padding: 0.75rem; resize: vertical; outline: none; min-height: 90px; }
.arena-textarea:focus { border-color: rgba(231,76,60,0.4); }
.arena-controls { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.arena-mode-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.arena-mode-label { display: flex; align-items: center; gap: 0.3rem; color: #5a5040; font-size: 0.62rem; letter-spacing: 0.1em; cursor: pointer; }
.arena-platform-input { background: rgba(8,8,14,0.9); border: 1px solid rgba(200,180,140,0.12); color: #8a8070; font-family: inherit; font-size: 0.62rem; padding: 0.35rem 0.6rem; outline: none; width: 180px; }
.arena-submit-btn { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35); color: #e74c3c; padding: 0.5rem 1.2rem; font-family: inherit; font-size: 0.6rem; letter-spacing: 0.2em; cursor: pointer; white-space: nowrap; }
.arena-submit-btn:hover:not(:disabled) { background: rgba(231,76,60,0.22); }
.arena-submit-btn:disabled { opacity: 0.4; cursor: default; }
.arena-result { margin-top: 0.5rem; }
.arena-result.hidden { display: none; }
.arena-verdict { padding: 0.6rem 1rem; font-size: 0.62rem; letter-spacing: 0.25em; margin-bottom: 0.75rem; border: 1px solid; }
.arena-verdict-hold { color: #2ecc71; border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.06); }
.arena-verdict-breach { color: #e74c3c; border-color: rgba(231,76,60,0.3); background: rgba(231,76,60,0.06); }
.arena-scores-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.arena-agent-col { flex: 1; min-width: 240px; background: rgba(8,8,14,0.7); border: 1px solid rgba(200,180,140,0.08); padding: 0.75rem; }
.arena-agent-label { font-size: 0.58rem; letter-spacing: 0.22em; margin-bottom: 0.5rem; }
.arena-grounded .arena-agent-label { color: #2ecc71; }
.arena-ungrounded .arena-agent-label { color: #e74c3c; }
.arena-bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.arena-bar-lbl { font-size: 0.58rem; color: #5a5040; width: 80px; letter-spacing: 0.06em; }
.arena-bar-track { flex: 1; height: 4px; background: rgba(200,180,140,0.08); }
.arena-bar-fill { height: 100%; transition: width 0.5s ease; }
.arena-bar-val { font-size: 0.6rem; color: #6a6050; width: 16px; text-align: right; }
.arena-lclass { font-size: 0.58rem; color: #5a5040; margin-top: 0.35rem; letter-spacing: 0.06em; }
.arena-lclass b { color: #c8b48c; }
.arena-resp { font-size: 0.62rem; color: #4a4038; margin-top: 0.5rem; line-height: 1.55; max-height: 120px; overflow-y: auto; }
.arena-summary { font-size: 0.65rem; color: #6a6050; border-left: 2px solid rgba(200,180,140,0.2); padding-left: 0.75rem; font-style: italic; }
.arena-meta { font-size: 0.55rem; color: #2a2520; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* ── Crucible ── */
#panel-crucible { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; overflow-y: auto; }

/* ── Void Raids ── */
#panel-raid { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; overflow-y: auto; }
.raid-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.raid-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.raid-back-btn { background: transparent; border: 1px solid rgba(200,180,140,0.18); color: #5a5040; padding: 0.35rem 0.75rem; font-family: inherit; font-size: 0.58rem; letter-spacing: 0.16em; cursor: pointer; }
.raid-back-btn:hover { color: #c8b48c; border-color: rgba(200,180,140,0.45); }
.raid-title { font-size: 0.68rem; letter-spacing: 0.3em; color: #e74c3c; }
.raid-queue-panel, .raid-waiting-panel, .raid-boss-panel { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.raid-queue-panel.hidden, .raid-waiting-panel.hidden, .raid-boss-panel.hidden { display: none; }
.raid-queue-icon { font-size: 2rem; color: rgba(231,76,60,0.4); }
.raid-queue-title, .raid-wait-title { font-size: 0.68rem; letter-spacing: 0.3em; color: #c8b48c; }
.raid-queue-desc { font-size: 0.65rem; color: #4a4038; text-align: center; max-width: 360px; line-height: 1.65; }
.raid-queue-detail { font-size: 0.62rem; color: #5a5040; text-align: center; line-height: 1.7; }
.raid-queue-detail b { color: #c8b48c; }
.raid-queue-note { font-size: 0.58rem; color: #3a3530; }
.raid-join-btn { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35); color: #e74c3c; padding: 0.55rem 1.5rem; font-family: inherit; font-size: 0.6rem; letter-spacing: 0.25em; cursor: pointer; margin-top: 0.5rem; }
.raid-join-btn:hover:not(:disabled) { background: rgba(231,76,60,0.22); }
.raid-join-btn:disabled { opacity: 0.4; cursor: default; }
.raid-wait-icon { font-size: 1.5rem; color: rgba(231,76,60,0.5); animation: raid-pulse 1.8s ease-in-out infinite; }
@keyframes raid-pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.raid-wait-count { font-size: 0.9rem; color: #c8b48c; letter-spacing: 0.1em; }
.raid-wait-detail { font-size: 0.6rem; color: #4a4038; letter-spacing: 0.08em; }
.raid-wait-bar { width: 240px; height: 3px; background: rgba(200,180,140,0.1); }
.raid-wait-fill { height: 100%; background: #e74c3c; transition: width 0.5s ease; width: 25%; }
.raid-leave-btn { background: transparent; border: 1px solid rgba(200,180,140,0.15); color: #3a3530; padding: 0.35rem 0.9rem; font-family: inherit; font-size: 0.55rem; letter-spacing: 0.15em; cursor: pointer; margin-top: 0.25rem; }
.raid-leave-btn:hover { color: #6a6050; }
.raid-boss-panel { width: 100%; align-items: stretch; }
.raid-boss-header { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 0; border-bottom: 1px solid rgba(231,76,60,0.15); }
.raid-boss-title { font-size: 0.75rem; letter-spacing: 0.22em; color: #e74c3c; }
.raid-boss-pe-label { font-size: 0.62rem; color: #c8b48c; letter-spacing: 0.08em; }
.raid-boss-pe-label b { color: #e74c3c; }
.raid-boss-win-label { font-size: 0.58rem; color: #4a4038; }
.raid-boss-win-label b { color: #2ecc71; }
#raid-boss-progress-wrap { padding: 0.5rem 0; }
#raid-boss-bar-track { width: 100%; height: 8px; background: rgba(200,180,140,0.08); border: 1px solid rgba(200,180,140,0.06); }
#raid-boss-bar-fill { height: 100%; width: 100%; background: #e74c3c; transition: width 0.6s ease, background 0.6s ease; }
.raid-boss-scoring { margin-top: 0.5rem; }

/* ── Binding Game ── */
#panel-binding { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; overflow-y: auto; }
.binding-wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 0.75rem; }
.binding-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.binding-back { background: transparent; border: 1px solid rgba(200,180,140,0.18); color: #5a5040; padding: 0.35rem 0.75rem; font-family: inherit; font-size: 0.58rem; letter-spacing: 0.16em; cursor: pointer; }
.binding-back:hover { color: #c8b48c; border-color: rgba(200,180,140,0.45); }
.binding-title { font-size: 0.68rem; letter-spacing: 0.3em; color: #f0c040; }
.binding-sub { font-size: 0.58rem; color: #4a4038; letter-spacing: 0.08em; }
.binding-body { display: flex; flex-direction: column; gap: 1rem; }
.binding-loading { font-size: 0.62rem; color: #4a4038; letter-spacing: 0.12em; padding: 1rem 0; }
.binding-card { background: rgba(240,192,64,0.04); border: 1px solid rgba(240,192,64,0.15); padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; }
.binding-card-pending { border-color: rgba(240,192,64,0.25); }
.binding-card-active { border-color: rgba(231,76,60,0.35); background: rgba(231,76,60,0.04); }
.binding-card-win { border-color: rgba(46,204,113,0.45); background: rgba(46,204,113,0.05); }
.binding-card-loss { border-color: rgba(231,76,60,0.3); }
.binding-card-title { font-size: 0.65rem; letter-spacing: 0.28em; color: #f0c040; }
.binding-match-id { font-size: 0.55rem; color: #3a3530; }
.binding-match-id code { color: #5a5040; font-family: monospace; font-size: 0.58rem; }
.binding-rules { display: flex; flex-direction: column; gap: 0.35rem; }
.binding-rule { font-size: 0.6rem; color: #4a4038; padding-left: 0.75rem; border-left: 1px solid rgba(240,192,64,0.15); }
.binding-form { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.35rem; }
.binding-label { font-size: 0.58rem; color: #5a5040; letter-spacing: 0.1em; display: flex; flex-direction: column; gap: 0.3rem; }
.binding-input { background: rgba(0,0,0,0.35); border: 1px solid rgba(200,180,140,0.15); color: #c8b48c; padding: 0.45rem 0.65rem; font-family: inherit; font-size: 0.62rem; outline: none; width: 100%; }
.binding-input:focus { border-color: rgba(240,192,64,0.45); }
.binding-btn { padding: 0.55rem 1.25rem; font-family: inherit; font-size: 0.6rem; letter-spacing: 0.22em; cursor: pointer; border: 1px solid; align-self: flex-start; }
.binding-btn:disabled { opacity: 0.4; cursor: default; }
.binding-btn-primary { background: rgba(240,192,64,0.12); border-color: rgba(240,192,64,0.4); color: #f0c040; }
.binding-btn-primary:hover:not(:disabled) { background: rgba(240,192,64,0.22); }
.binding-btn-secondary { background: transparent; border-color: rgba(200,180,140,0.2); color: #5a5040; }
.binding-btn-secondary:hover { color: #c8b48c; border-color: rgba(200,180,140,0.4); }
.binding-vs-row { display: flex; align-items: center; gap: 1.25rem; padding: 0.5rem 0; justify-content: center; }
.binding-you { font-size: 0.65rem; letter-spacing: 0.2em; color: #c8b48c; }
.binding-vs-glyph { font-size: 1rem; color: #f0c040; }
.binding-opponent { font-size: 0.65rem; letter-spacing: 0.12em; color: #5a5040; font-family: monospace; }
.binding-platform { font-size: 0.6rem; color: #4a4038; }
.binding-platform b { color: #c8b48c; }
.binding-ante { font-size: 0.6rem; color: #4a4038; }
.binding-ante b { color: #f0c040; }
.binding-waiting { font-size: 0.6rem; color: #4a4038; letter-spacing: 0.1em; }
.binding-hint { font-size: 0.55rem; color: #3a3530; }
.binding-hint code { font-family: monospace; color: #5a5040; }
.binding-score-prompt { font-size: 0.62rem; color: #5a5040; line-height: 1.65; }
.binding-submitted { font-size: 0.62rem; color: #2ecc71; letter-spacing: 0.12em; }
.binding-result-banner { font-size: 1.1rem; letter-spacing: 0.35em; text-align: center; padding: 0.5rem 0; }
.binding-card-win .binding-result-banner { color: #2ecc71; }
.binding-card-loss .binding-result-banner { color: #e74c3c; }
.binding-scores-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.binding-score-col { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.binding-score-label { font-size: 0.52rem; letter-spacing: 0.15em; color: #4a4038; }
.binding-score-val { font-size: 1rem; font-family: monospace; color: #c8b48c; }
.binding-reward { font-size: 0.6rem; letter-spacing: 0.1em; text-align: center; padding-top: 0.25rem; }
.binding-card-win .binding-reward { color: #2ecc71; }
.binding-loss-note { color: #4a4038; }

/* ── Eclipse Setpiece ── */
#eclipse-overlay { position: fixed; inset: 0; z-index: 5; background: rgba(0,0,0,0); pointer-events: none; }
#eclipse-whisper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Courier New', monospace; text-align: center; pointer-events: none; z-index: 50; opacity: 0; transition: opacity 0.7s ease; max-width: 520px; line-height: 1.7; }
#eclipse-speaker { font-size: 0.62rem; letter-spacing: 0.25em; color: rgba(200,180,100,0.55); text-transform: uppercase; margin-bottom: 0.6rem; }
#eclipse-line { font-size: 1.05rem; color: rgba(255,244,210,0.92); }
#eclipse-whisper.void-voice #eclipse-speaker { color: rgba(130,160,210,0.55); }
#eclipse-whisper.void-voice #eclipse-line { font-size: 0.82rem; color: rgba(160,180,220,0.75); letter-spacing: 0.05em; }

/* ── Void Narrator ── */
#void-narrator { position: fixed; bottom: 5.5rem; left: 50%; transform: translateX(-50%); font-family: 'Courier New', monospace; font-size: 0.70rem; color: rgba(120,150,200,0.55); letter-spacing: 0.10em; text-align: center; text-transform: uppercase; pointer-events: none; z-index: 15; opacity: 0; transition: opacity 1.8s ease; max-width: 400px; white-space: nowrap; overflow: hidden; }
#void-narrator.visible { opacity: 1; }
#void-narrator.runaway { color: rgba(140,170,230,0.82); font-size: 0.76rem; }

/* ── Void Home ── */
#panel-home { flex-direction: column; justify-content: flex-start; padding: 0; pointer-events: auto; }
.home-header { padding: 1rem 1.25rem 0.75rem; background: rgba(0,0,0,0.6); border-bottom: 1px solid rgba(200,180,140,0.08); flex-shrink: 0; }
.home-empty { margin: auto; text-align: center; color: #3a3530; font-size: 0.82rem; max-width: 320px; line-height: 1.7; letter-spacing: 0.04em; pointer-events: none; }

/* ── Binder Panel ── */
#binder-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(360px, 92vw); background: rgba(4,4,8,0.97); border-left: 1px solid rgba(200,180,140,0.10); padding: 1.5rem 1.25rem; transform: translateX(100%); transition: transform 0.35s ease; overflow-y: auto; display: flex; flex-direction: column; gap: 0; pointer-events: auto; }
#binder-panel.open { transform: translateX(0); }
.bp-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.bp-title-txt { font-size: 0.65rem; letter-spacing: 0.3em; color: #c8b48c; text-transform: uppercase; }
#bp-close { background: none; border: none; color: #5a5040; font-size: 1rem; cursor: pointer; padding: 0; }
#bp-close:hover { color: #c8b48c; }
#bp-list { display: flex; flex-direction: column; gap: 0.65rem; }
.bp-session { border: 1px solid rgba(200,180,140,0.12); padding: 0.75rem 0.9rem; background: rgba(12,10,8,0.7); }
.bp-s-campaign { font-size: 0.7rem; letter-spacing: 0.12em; color: #c8b48c; text-transform: uppercase; margin-bottom: 0.3rem; }
.bp-s-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.bp-s-val { font-size: 0.63rem; color: #5a5040; letter-spacing: 0.06em; }
.bp-s-val span { color: #c4baa8; }
.bp-s-date { font-size: 0.56rem; color: #3a3530; margin-top: 0.3rem; }
#bp-empty { font-size: 0.8rem; color: #4a4035; text-align: center; margin-top: 2rem; }

/* ── Mission Panel ── */
#mission-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(420px, 92vw); background: rgba(4,4,8,0.97); border-left: 1px solid rgba(200,180,140,0.10); padding: 1.5rem 1.25rem; transform: translateX(100%); transition: transform 0.35s ease; overflow-y: auto; display: flex; flex-direction: column; gap: 0; }
#mission-panel.open { transform: translateX(0); }
.mp-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.mp-title-txt { font-size: 0.65rem; letter-spacing: 0.3em; color: #c8b48c; text-transform: uppercase; }
#mp-close { background: none; border: none; color: #5a5040; font-size: 1rem; cursor: pointer; padding: 0; }
#mp-close:hover { color: #c8b48c; }
#mp-list { display: flex; flex-direction: column; gap: 1rem; }
.mission-card { border: 1px solid rgba(200,180,140,0.12); padding: 1rem 1.1rem; background: rgba(12,10,8,0.7); }
.mc-name { font-size: 0.78rem; letter-spacing: 0.15em; color: #c8b48c; text-transform: uppercase; margin-bottom: 0.4rem; }
.mc-lore { font-size: 0.83rem; color: #9a9080; line-height: 1.6; margin-bottom: 0.5rem; }
.mc-stakes { font-size: 0.75rem; color: #6a6050; line-height: 1.5; margin-bottom: 0.65rem; }
.mc-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.mc-category { font-size: 0.6rem; letter-spacing: 0.15em; color: #5a5040; text-transform: uppercase; border: 1px solid rgba(200,180,140,0.12); padding: 0.15rem 0.5rem; }
.mc-reward { font-size: 0.65rem; letter-spacing: 0.1em; color: #3ddc84; }
.mc-claims { font-size: 0.6rem; color: #3a3530; margin-left: auto; }
#mp-empty { font-size: 0.82rem; color: #4a4035; text-align: center; margin-top: 2rem; }

/* ── Station Hub (Phase 1) ── */
.stn-wrap { max-width: 560px; width: 100%; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.stn-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.stn-title { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: #c8b48c; text-transform: uppercase; }
.stn-wallet { font-size: 10px; color: #5a6678; letter-spacing: .08em; margin-left: auto; }

.stn-wallet-bar { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; padding: 6px 0; border-bottom: 1px solid rgba(170,85,34,0.12); }
.stn-currency { font-size: 11px; color: #aabbdd; letter-spacing: .06em; }
.stn-currency.stn-ath { color: #6fdd8a; }
.stn-rank { font-size: 10px; color: #c8b48c; letter-spacing: .1em; margin-left: auto; }

.stn-stats-bar { display: flex; gap: 16px; font-size: 9px; color: #5a6678; letter-spacing: .06em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(90,102,120,0.12); }

.stn-banner { padding: 8px 12px; font-size: 10px; text-align: center; margin-bottom: 12px; letter-spacing: .06em; }
.stn-banner-cta { color: #c8b48c; border: 1px solid rgba(200,180,140,0.3); cursor: pointer; transition: border-color 0.25s; }
.stn-banner-cta:hover { border-color: rgba(200,180,140,0.6); }

.stn-assignment { padding: 8px 12px; font-size: 10px; color: #dd8844; border: 1px solid rgba(170,85,34,0.25); background: rgba(170,85,34,0.06); margin-bottom: 12px; text-align: center; letter-spacing: .06em; }

.stn-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stn-tile {
  background: rgba(12, 8, 4, 0.88); border: 1px solid rgba(170, 85, 34, 0.2);
  padding: 18px 14px; cursor: pointer; text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stn-tile:hover { border-color: rgba(170, 85, 34, 0.6); box-shadow: 0 0 12px rgba(170, 85, 34, 0.15); }
.stn-tile.stn-gated { opacity: 0.45; }
.stn-tile.stn-gated:hover { opacity: 0.7; }
.stn-tile-icon { font-size: 22px; line-height: 1; }
.stn-tile-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #c8b48c; text-transform: uppercase; }
.stn-tile-desc { font-size: 8px; color: #5a6678; line-height: 1.4; }

.stn-secondary { display: flex; justify-content: center; gap: 12px; }
.stn-link { font: 10px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.2); padding: 5px 12px; cursor: pointer; letter-spacing: .08em; transition: color 0.2s, border-color 0.2s; }
.stn-link:hover { color: #aabbdd; border-color: rgba(170,85,34,0.4); }

/* ── Phase 1 Shared Layout ── */
.ph1-wrap { max-width: 600px; width: 100%; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.ph1-topbar { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.ph1-back { font: 10px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.25); padding: 5px 12px; cursor: pointer; letter-spacing: .06em; transition: color 0.2s, border-color 0.2s; }
.ph1-back:hover { color: #aabbdd; border-color: rgba(170,85,34,0.5); }
.ph1-scene-title { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: #c8b48c; text-transform: uppercase; }
.ph1-content { width: 100%; }
.ph1-loading { font-size: 10px; color: #5a6678; letter-spacing: .1em; text-align: center; padding: 32px 0; }
.ph1-empty { font-size: 11px; color: #5a6678; text-align: center; padding: 32px 0; line-height: 1.6; }
.ph1-empty strong { color: #c8b48c; }
.ph1-footer { display: flex; gap: 20px; font-size: 9px; color: #5a6678; letter-spacing: .06em; margin-top: 16px; padding-top: 10px; border-top: 1px solid rgba(90,102,120,0.12); }

/* ── Journal ── */
.jrn-table { width: 100%; }
.jrn-row { display: grid; grid-template-columns: 1fr 60px 80px 70px; gap: 8px; padding: 8px 4px; border-bottom: 1px solid rgba(90,102,120,0.08); align-items: baseline; }
.jrn-header { font-size: 9px; color: #5a6678; letter-spacing: .1em; text-transform: uppercase; border-bottom-color: rgba(90,102,120,0.2); }
.jrn-col-name { font-size: 11px; color: #aabbdd; }
.jrn-col-pe { font-size: 10px; color: #7a6f5e; text-align: right; }
.jrn-col-status { font-size: 9px; letter-spacing: .08em; text-align: center; }
.jrn-accepted { color: #6fdd8a; }
.jrn-pending { color: #dd8844; }
.jrn-col-date { font-size: 9px; color: #5a6678; text-align: right; }

/* ── Ranking ── */
.rnk-table { width: 100%; }
.rnk-row { display: grid; grid-template-columns: 36px 1fr 70px 60px; gap: 8px; padding: 8px 4px; border-bottom: 1px solid rgba(90,102,120,0.08); align-items: baseline; }
.rnk-header { font-size: 9px; color: #5a6678; letter-spacing: .1em; text-transform: uppercase; border-bottom-color: rgba(90,102,120,0.2); }
.rnk-col-rank { font-size: 11px; color: #c8b48c; text-align: center; }
.rnk-col-name { font-size: 11px; color: #aabbdd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnk-arch { font-size: 8px; color: #5a6678; }
.rnk-col-count { font-size: 10px; color: #aabbdd; text-align: right; }
.rnk-col-ath { font-size: 10px; color: #6fdd8a; text-align: right; }
.rnk-me { background: rgba(170,85,34,0.08); }

/* ── Profile ── */
.prf-card { background: rgba(12,8,4,0.92); border: 1px solid rgba(170,85,34,0.2); padding: 24px; max-width: 400px; margin: 0 auto; }
.prf-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(170,85,34,0.12); }
.prf-archetype { font-size: 13px; font-weight: 700; letter-spacing: .15em; color: #c8b48c; text-transform: uppercase; margin-bottom: 4px; }
.prf-wallet { font-size: 10px; color: #5a6678; letter-spacing: .06em; }
.prf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.prf-stat { text-align: center; }
.prf-stat-val { display: block; font-size: 16px; font-weight: 700; color: #aabbdd; margin-bottom: 2px; }
.prf-stat-lbl { font-size: 8px; color: #5a6678; letter-spacing: .1em; text-transform: uppercase; }
.prf-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid rgba(90,102,120,0.12); }
.prf-bal { text-align: center; }
.prf-bal-val { display: block; font-size: 14px; font-weight: 700; color: #aabbdd; margin-bottom: 2px; }
.prf-bal-lbl { font-size: 8px; color: #5a6678; letter-spacing: .1em; text-transform: uppercase; }
.prf-faction { text-align: center; font-size: 10px; color: #7a6f5e; letter-spacing: .06em; }

/* ── Bridge (MORR → ATH) ── */
.brg-wrap { max-width: 480px; width: 100%; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.brg-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.brg-title { font-size: 14px; font-weight: 700; letter-spacing: .2em; color: #c8b48c; text-transform: uppercase; }
.brg-sub { font-size: 10px; color: #5a6678; letter-spacing: .08em; }
.brg-back { margin-left: auto; font: 10px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.3); padding: 4px 10px; cursor: pointer; letter-spacing: .08em; }
.brg-back:hover { color: #aabbdd; border-color: rgba(170,85,34,0.5); }
.brg-rate { font-size: 16px; color: #6fdd8a; letter-spacing: .1em; margin-bottom: 20px; text-align: center; padding: 10px; border: 1px solid rgba(111,221,138,0.2); background: rgba(111,221,138,0.04); }
.brg-balances { text-align: center; margin-bottom: 16px; font-size: 11px; letter-spacing: .06em; }
.brg-bal-morr { color: #aabbdd; }
.brg-bal-ath { color: #6fdd8a; }
.brg-bal-sep { color: #5a6678; margin: 0 8px; }
.brg-step { display: flex; gap: 12px; margin-bottom: 16px; padding: 12px; border: 1px solid rgba(90,102,120,0.15); background: rgba(20,25,35,0.6); }
.brg-step-num { font-size: 18px; font-weight: 700; color: rgba(200,180,140,0.4); min-width: 20px; }
.brg-step-body { flex: 1; }
.brg-label { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: #c8b48c; text-transform: uppercase; display: block; margin-bottom: 6px; }
.brg-hint { font-weight: 400; color: #5a6678; text-transform: none; letter-spacing: 0; }
.brg-row { display: flex; align-items: center; gap: 8px; }
.brg-arrow { color: #5a6678; font-size: 14px; }
.brg-ath-preview { color: #6fdd8a; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.brg-input { font: 12px/1.4 'Courier New', monospace; background: rgba(10,14,22,0.8); border: 1px solid rgba(90,102,120,0.3); color: #aabbdd; padding: 6px 10px; width: 120px; }
.brg-input:focus { outline: none; border-color: rgba(170,85,34,0.6); }
.brg-input-wide { width: 100%; }
.brg-treasury { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.brg-treasury code { font-size: 10px; color: #aabbdd; background: rgba(10,14,22,0.8); padding: 4px 8px; border: 1px solid rgba(90,102,120,0.2); word-break: break-all; flex: 1; }
.brg-copy { font: 9px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.3); padding: 4px 8px; cursor: pointer; }
.brg-copy:hover { color: #aabbdd; }
.brg-send-hint { font-size: 10px; color: #5a6678; }
.brg-send-hint strong { color: #aabbdd; }
.brg-submit { font: 11px/1 'Courier New', monospace; color: #c8b48c; background: rgba(170,85,34,0.12); border: 1px solid rgba(170,85,34,0.4); padding: 8px 20px; cursor: pointer; letter-spacing: .15em; text-transform: uppercase; margin-top: 8px; width: 100%; }
.brg-submit:hover { background: rgba(170,85,34,0.22); border-color: rgba(204,102,34,0.7); }
.brg-submit:disabled { opacity: 0.4; cursor: wait; }
.brg-submit-privy { background: rgba(111,221,138,0.12); border-color: rgba(111,221,138,0.4); color: #6fdd8a; font-size: 13px; padding: 12px 20px; }
.brg-submit-privy:hover { background: rgba(111,221,138,0.22); border-color: rgba(111,221,138,0.6); }
.brg-privy-path { margin-top: 16px; }
.brg-privy-note { font-size: 9px; color: #5a6678; margin-top: 6px; text-align: center; }
.brg-manual-path { margin-top: 4px; }
.brg-status { font-size: 11px; padding: 8px 12px; margin-top: 12px; display: none; }
.brg-status-waiting { display: block; color: #c8b48c; border: 1px solid rgba(200,180,140,0.2); background: rgba(200,180,140,0.06); }
.brg-status-success { display: block; color: #6fdd8a; border: 1px solid rgba(111,221,138,0.3); background: rgba(111,221,138,0.06); }
.brg-status-error { display: block; color: #dd6f6f; border: 1px solid rgba(221,111,111,0.3); background: rgba(221,111,111,0.06); }
.brg-history { margin-top: 20px; }
.brg-hist-title { font-size: 10px; font-weight: 700; letter-spacing: .15em; color: #5a6678; margin-bottom: 6px; text-transform: uppercase; }
.brg-hist-row { display: flex; gap: 8px; font-size: 10px; color: #5a6678; padding: 3px 0; border-bottom: 1px solid rgba(90,102,120,0.1); align-items: center; }
.brg-hist-row span:nth-child(4) { color: #6fdd8a; }
.brg-hist-status { margin-left: auto; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.brg-hist-completed { color: #6fdd8a; }
.brg-hist-ath_send_failed { color: #dd6f6f; }
.brg-hist-pending_ath_send { color: #c8b48c; }

/* ── Fortuna ── */
/* Fortuna — 3D wheel HUD overlay. Panel is see-through so the wheel shows behind. */
.fort-wrap-3d {
  max-width: 560px; width: 100%;
  font: 11px/1.5 'Courier New', monospace; color: #aabbdd;
  display: flex; flex-direction: column; gap: 8px;
}
.fort-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fort-title { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: #c8b48c; text-transform: uppercase; }
.fort-back { background: none; border: 1px solid rgba(100, 130, 180, 0.3); color: #7a8faa; font: 600 10px monospace; padding: 4px 10px; cursor: pointer; letter-spacing: .1em; }
.fort-back:hover { border-color: #7fd4ff; color: #c8d4e8; }

/* HUD stat blocks — horizontal row above the wheel */
.fort-hud-row {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.fort-hud-block {
  background: rgba(6, 8, 16, 0.75); border: 1px solid rgba(100, 130, 180, 0.12);
  padding: 4px 10px; text-align: center; min-width: 80px; border-radius: 2px;
}
.fort-hud-label { font-size: 8px; letter-spacing: .2em; color: #5a6678; text-transform: uppercase; }
.fort-hud-val { font-size: 12px; color: #c8d4e8; font-weight: 600; }

/* Spin area — centered, with space for the 3D wheel behind */
.fort-spin-area {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 0 20px; /* vertical space for 3D wheel */
}

.fort-spin-btn {
  padding: 10px 36px;
  background: rgba(200, 180, 140, 0.1); border: 1px solid rgba(200, 180, 140, 0.35);
  color: #c8b48c; font: 700 14px/1 'Courier New', monospace; letter-spacing: .3em;
  text-transform: uppercase; cursor: pointer; transition: all 0.25s;
  position: relative; z-index: 2;
}
.fort-spin-btn:hover { border-color: rgba(200, 180, 140, 0.6); background: rgba(200, 180, 140, 0.18); box-shadow: 0 0 20px rgba(200,180,140,0.1); }
.fort-spin-btn:disabled { opacity: 0.4; cursor: default; }

.fort-result {
  text-align: center; font-size: 18px; font-weight: 700; color: #c8b48c;
  min-height: 28px; margin-top: 10px; letter-spacing: .1em;
  transition: color 0.3s;
}
.fort-result-flash { animation: fort-flash 0.8s ease; }
@keyframes fort-flash {
  0%   { text-shadow: 0 0 20px currentColor, 0 0 40px currentColor; transform: scale(1.1); }
  100% { text-shadow: none; transform: scale(1); }
}

/* Bottom row — odds + history side by side */
.fort-bottom-row {
  display: flex; gap: 12px; justify-content: center;
}
.fort-odds-col, .fort-history-col {
  flex: 1; max-width: 240px;
  background: rgba(6, 8, 16, 0.65); border: 1px solid rgba(100, 130, 180, 0.08);
  padding: 8px; border-radius: 2px;
}
.fort-label { font-size: 8px; letter-spacing: .2em; color: #5a6678; text-transform: uppercase; margin-bottom: 4px; }
.fort-odds-row { display: flex; align-items: center; justify-content: space-between; padding: 1px 0; }
.fort-odds-name { font-size: 9px; color: #7a8faa; }
.fort-odds-pct { font-size: 9px; color: #5a6678; }
.fort-hist-item { font-size: 9px; padding: 1px 0; color: #5a6878; }

/* ── Predictions ── */
.pred-wrap { max-width: 560px; width: 100%; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.pred-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pred-title { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: #c8b48c; text-transform: uppercase; }
.pred-back { background: none; border: 1px solid rgba(100, 130, 180, 0.3); color: #7a8faa; font: 600 10px monospace; padding: 4px 10px; cursor: pointer; letter-spacing: .1em; }
.pred-back:hover { border-color: #7fd4ff; color: #c8d4e8; }

.pred-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.pred-tab { background: rgba(8, 12, 24, 0.88); border: 1px solid rgba(100, 130, 180, 0.15); color: #5a6678;
  font: 600 9px monospace; padding: 5px 12px; cursor: pointer; letter-spacing: .15em; text-transform: uppercase; transition: all 0.2s; }
.pred-tab.active { border-color: rgba(42, 136, 153, 0.5); color: #7fd4ff; }
.pred-tab:hover { border-color: rgba(42, 136, 153, 0.4); }

.pred-body { max-height: 400px; overflow-y: auto; }

.pred-card {
  background: rgba(8, 12, 24, 0.7); border: 1px solid rgba(100, 130, 180, 0.12);
  padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s;
}
.pred-card:hover { border-color: rgba(42, 136, 153, 0.35); }
.pred-card-q { font-size: 11px; color: #c8d4e8; margin-bottom: 6px; }
.pred-card-odds { display: flex; height: 8px; margin-bottom: 6px; border-radius: 1px; overflow: hidden; }
.pred-bar-yes { background: rgba(61, 220, 132, 0.5); font-size: 7px; color: #fff; line-height: 8px; padding: 0 3px; white-space: nowrap; overflow: hidden; }
.pred-bar-no { background: rgba(220, 100, 80, 0.4); font-size: 7px; color: #fff; line-height: 8px; padding: 0 3px; white-space: nowrap; overflow: hidden; }
.pred-card-meta { display: flex; gap: 10px; font-size: 9px; color: #5a6678; }

.pred-stake-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(100, 130, 180, 0.1); }
.pred-side-sel { background: rgba(0,0,0,0.5); border: 1px solid rgba(100, 130, 180, 0.2); color: #aabbcc; padding: 3px 6px; font: 400 10px monospace; }
.pred-stake-amt { background: rgba(0,0,0,0.5); border: 1px solid rgba(100, 130, 180, 0.2); color: #aabbcc; padding: 3px 6px; font: 400 10px monospace; width: 90px; }
.pred-stake-btn { background: rgba(42, 136, 153, 0.12); border: 1px solid rgba(42, 136, 153, 0.3); color: #7fd4ff; padding: 3px 10px; font: 600 9px monospace; cursor: pointer; letter-spacing: .1em; }
.pred-stake-btn:hover { border-color: rgba(42, 136, 153, 0.6); }

/* ── WishWell ── */
.wish-wrap { max-width: 520px; width: 100%; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.wish-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wish-title { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: #c8b48c; text-transform: uppercase; }
.wish-back { background: none; border: 1px solid rgba(100, 130, 180, 0.3); color: #7a8faa; font: 600 10px monospace; padding: 4px 10px; cursor: pointer; letter-spacing: .1em; }
.wish-back:hover { border-color: #7fd4ff; color: #c8d4e8; }
.wish-intro { font-size: 10px; color: #5a6678; line-height: 1.6; margin-bottom: 14px; }
.wish-section { margin-bottom: 12px; }
.wish-label { font-size: 9px; letter-spacing: .2em; color: #5a6678; text-transform: uppercase; margin-bottom: 4px; }
.wish-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; gap: 8px; }
.wish-val { color: #c8d4e8; font-size: 11px; }

.wish-type-row { display: flex; gap: 4px; }
.wish-type-btn { background: rgba(8, 12, 24, 0.88); border: 1px solid rgba(100, 130, 180, 0.15); color: #5a6678;
  font: 600 9px monospace; padding: 5px 12px; cursor: pointer; letter-spacing: .12em; transition: all 0.2s; }
.wish-type-btn.active { border-color: rgba(200, 180, 140, 0.5); color: #c8b48c; }
.wish-type-btn:hover { border-color: rgba(200, 180, 140, 0.35); }

.wish-textarea {
  width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(100, 130, 180, 0.2);
  color: #c8d4e8; padding: 8px 10px; font: 400 11px/1.5 'Courier New', monospace;
  resize: vertical; outline: none;
}
.wish-textarea:focus { border-color: rgba(42, 136, 153, 0.4); }

.wish-tribute-input {
  width: 100px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(100, 130, 180, 0.2);
  color: #c8d4e8; padding: 4px 8px; font: 400 11px monospace; outline: none;
}

.wish-submit-btn {
  display: block; width: 100%; padding: 10px; margin: 8px 0;
  background: rgba(200, 180, 140, 0.1); border: 1px solid rgba(200, 180, 140, 0.35);
  color: #c8b48c; font: 700 12px/1 'Courier New', monospace; letter-spacing: .2em;
  text-transform: uppercase; cursor: pointer; transition: border-color 0.25s;
}
.wish-submit-btn:hover { border-color: rgba(200, 180, 140, 0.6); }

.wish-confirm { gap: 8px; align-items: center; justify-content: center; margin-bottom: 8px; }
.wish-confirm-text { font-size: 10px; color: #dd7766; margin-right: 8px; }
.wish-confirm-yes { background: rgba(200, 80, 60, 0.15); border: 1px solid rgba(200, 80, 60, 0.4); color: #dd7766; font: 600 9px monospace; padding: 4px 12px; cursor: pointer; }
.wish-confirm-no { background: none; border: 1px solid rgba(100, 130, 180, 0.2); color: #7a8faa; font: 600 9px monospace; padding: 4px 12px; cursor: pointer; }
.wish-err { font-size: 10px; color: #dd7766; min-height: 16px; }

.wish-card { background: rgba(8, 12, 24, 0.7); border: 1px solid rgba(100, 130, 180, 0.1); padding: 8px 10px; margin-bottom: 6px; }
.wish-card-type { font-size: 9px; letter-spacing: .15em; color: #c8b48c; text-transform: uppercase; margin-bottom: 3px; }
.wish-card-text { font-size: 10px; color: #7a8faa; font-style: italic; margin-bottom: 4px; }
.wish-card-resp { font-size: 10px; color: #c8d4e8; line-height: 1.5; margin-bottom: 3px; }
.wish-card-pending { font-size: 9px; color: #5a6678; font-style: italic; }
.wish-card-time { font-size: 8px; color: #3a4050; }

/* ── Toast / Notification System ─────────────────────────────────────────────── */

#game-toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: 360px;
}

.game-toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.game-toast-visible { opacity: 1; transform: translateX(0); }
.game-toast-exit    { opacity: 0; transform: translateX(40px); }

.game-toast-icon { flex-shrink: 0; font-size: 12px; line-height: 1.3; }
.game-toast-msg  { flex: 1; word-break: break-word; }

.game-toast-error {
  background: rgba(40, 10, 10, 0.92);
  border-color: rgba(192, 57, 43, 0.4);
  color: #e8a0a0;
}
.game-toast-error .game-toast-icon { color: #c0392b; }

.game-toast-warn {
  background: rgba(40, 30, 10, 0.92);
  border-color: rgba(200, 160, 60, 0.3);
  color: #e8d4a0;
}
.game-toast-warn .game-toast-icon { color: #d4a040; }

.game-toast-success {
  background: rgba(10, 35, 30, 0.92);
  border-color: rgba(78, 205, 196, 0.3);
  color: #a0e8d8;
}
.game-toast-success .game-toast-icon { color: #4ecdc4; }

.game-toast-info {
  background: rgba(15, 20, 35, 0.92);
  border-color: rgba(100, 140, 200, 0.25);
  color: #b0c4e0;
}
.game-toast-info .game-toast-icon { color: #6488c0; }

/* ── Wish type Pe description ── */
.wish-type-desc { font-size: 9px; color: #5a6678; margin-top: 4px; }

/* ── Wish state panel ── */
.wish-state-panel .wish-row { margin-bottom: 2px; }

/* ── Wish tribute tiers ── */
.wish-tribute-tiers { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.wish-tier { font-size: 8px; color: #3a4858; padding: 2px 6px; border: 1px solid #1a2030; border-radius: 2px; }
.wish-tier.active { color: #c8b48c; border-color: #4a3828; background: rgba(200,180,140,0.06); }

/* ── Investigate Scene ── */
.inv-wrap { max-width: 700px; width: 100%; height: 90vh; display: flex; flex-direction: column; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.inv-topbar { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-shrink: 0; }
.inv-exit { font: 10px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.25); padding: 5px 12px; cursor: pointer; letter-spacing: .06em; }
.inv-exit:hover { color: #aabbdd; border-color: rgba(170,85,34,0.5); }
.inv-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #c8b48c; }
.inv-title #inv-plat-name { color: #aabbdd; }
.inv-timer { margin-left: auto; font-size: 10px; color: #5a6678; letter-spacing: .08em; }

.inv-chat { flex: 1; overflow-y: auto; padding: 12px; background: rgba(4,6,12,0.85); border: 1px solid rgba(90,102,120,0.12); margin-bottom: 8px; min-height: 0; }
.inv-msg { margin-bottom: 10px; font-size: 11px; line-height: 1.6; }
.inv-msg-who { font-weight: 700; letter-spacing: .08em; font-size: 9px; }
.inv-msg-assistant .inv-msg-who { color: #c8b48c; }
.inv-msg-user .inv-msg-who { color: #6fdd8a; }
.inv-msg-system { color: #884444; font-size: 10px; }
.inv-msg strong { color: #c8b48c; }

.inv-input-row { display: flex; gap: 6px; margin-bottom: 8px; flex-shrink: 0; }
.inv-input { flex: 1; background: rgba(4,6,12,0.9); border: 1px solid rgba(90,102,120,0.2); color: #aabbdd; padding: 8px 12px; font: 11px/1.4 'Courier New', monospace; outline: none; }
.inv-input:focus { border-color: rgba(170,85,34,0.5); }
.inv-input:disabled { opacity: 0.5; }
.inv-send { background: rgba(170,85,34,0.15); border: 1px solid rgba(170,85,34,0.4); color: #dd8844; font: 700 10px/1 'Courier New', monospace; padding: 8px 16px; cursor: pointer; letter-spacing: .12em; }
.inv-send:hover { background: rgba(170,85,34,0.25); }
.inv-send:disabled { opacity: 0.4; cursor: default; }

.inv-score-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(4,6,12,0.85); border: 1px solid rgba(170,85,34,0.15); margin-bottom: 6px; flex-shrink: 0; }
.inv-score-group { display: flex; align-items: center; gap: 4px; }
.inv-score-label { font-size: 10px; font-weight: 700; color: #c8b48c; letter-spacing: .08em; min-width: 12px; }
.inv-score-input { width: 52px; background: rgba(0,0,0,0.5); border: 1px solid rgba(90,102,120,0.25); color: #aabbdd; padding: 4px 6px; font: 11px 'Courier New', monospace; text-align: center; outline: none; }
.inv-score-input:focus { border-color: rgba(170,85,34,0.6); }
.inv-pe-preview { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #5a6678; margin-left: auto; }
.inv-submit { background: rgba(170,85,34,0.2); border: 1px solid rgba(170,85,34,0.5); color: #dd8844; font: 700 10px/1 'Courier New', monospace; padding: 8px 20px; cursor: pointer; letter-spacing: .15em; }
.inv-submit:hover:not(:disabled) { background: rgba(170,85,34,0.35); }
.inv-submit:disabled { opacity: 0.35; cursor: default; }

.inv-transparency { display: flex; gap: 8px; margin-bottom: 6px; flex-shrink: 0; }
.inv-trans-btn { font: 9px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.15); padding: 4px 10px; cursor: pointer; letter-spacing: .06em; }
.inv-trans-btn:hover { color: #aabbdd; border-color: rgba(90,102,120,0.4); }

/* Investigate result overlay */
.inv-result { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.85); z-index: 5; }
.inv-result-card { background: rgba(8,12,20,0.95); border: 1px solid rgba(170,85,34,0.3); padding: 32px; max-width: 400px; width: 90%; text-align: center; font: 12px/1.6 'Courier New', monospace; color: #aabbdd; }
.inv-result-title { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: #c8b48c; margin-bottom: 12px; }
.inv-result-plat { font-size: 11px; color: #aabbdd; margin-bottom: 8px; }
.inv-result-scores { font-size: 11px; color: #7a6f5e; margin-bottom: 6px; }
.inv-result-pe { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.inv-result-status { font-size: 10px; letter-spacing: .08em; color: #6fdd8a; margin-bottom: 8px; }
.inv-result-rewards { font-size: 10px; color: #dd8844; margin-bottom: 6px; }
.inv-result-time { font-size: 9px; color: #5a6678; margin-bottom: 16px; }
.inv-result-actions { display: flex; gap: 10px; justify-content: center; }
.inv-result-btn { font: 10px/1 'Courier New', monospace; color: #c8b48c; background: rgba(170,85,34,0.12); border: 1px solid rgba(170,85,34,0.35); padding: 8px 16px; cursor: pointer; letter-spacing: .1em; }
.inv-result-btn:hover { background: rgba(170,85,34,0.25); border-color: rgba(170,85,34,0.6); }

/* Investigate modal (system prompt / rubric) */
.inv-modal-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.8); z-index: 10; }
.inv-modal-box { background: rgba(8,12,20,0.97); border: 1px solid rgba(90,102,120,0.3); padding: 24px; max-width: 520px; width: 90%; max-height: 70vh; overflow-y: auto; font: 11px/1.7 'Courier New', monospace; color: #aabbdd; }
.inv-modal-title { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #c8b48c; margin-bottom: 12px; }
.inv-modal-body { white-space: pre-wrap; }
.inv-modal-body strong { color: #c8b48c; }
.inv-modal-close { display: block; margin: 16px auto 0; font: 10px/1 'Courier New', monospace; color: #5a6678; background: none; border: 1px solid rgba(90,102,120,0.25); padding: 6px 20px; cursor: pointer; letter-spacing: .1em; }
.inv-modal-close:hover { color: #aabbdd; border-color: rgba(170,85,34,0.5); }

/* ── Crafting / Auction / Inventory Panels ── */
.game-panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(4,6,12,0.92); display: none;
  font-family: 'Courier New', monospace; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.game-panel.active { display: flex; justify-content: center; padding-top: 60px; }
.craft-wrap, .ah-wrap, .inv-wrap {
  max-width: 500px; width: 100%; padding: 20px;
}
.craft-header, .ah-header, .inv-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.craft-title, .ah-title, .inv-title {
  color: #d4a832; font-size: 16px; font-weight: bold; letter-spacing: 0.12em;
}
.craft-close, .ah-close, .inv-close {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.4);
  cursor: pointer; padding: 4px 8px; border-radius: 3px; font-size: 12px;
}
.craft-close:hover, .ah-close:hover, .inv-close:hover { color: #fff; }
.craft-level { color: rgba(200,160,60,0.5); font-size: 10px; margin-bottom: 12px; }
.craft-body, .ah-body { margin-top: 12px; }
.craft-empty, .ah-empty, .inv-empty { color: rgba(255,255,255,0.25); font-size: 11px; text-align: center; padding: 20px; }

/* Crafting jobs */
.craft-job { display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,0.06); margin: 4px 0; border-radius: 3px; }
.craft-job-done { border-color: rgba(200,160,60,0.3); }
.craft-job-name { color: rgba(255,255,255,0.7); font-size: 11px; }
.craft-job-time { color: rgba(200,160,60,0.5); font-size: 10px; }
.craft-collect { background: rgba(200,160,60,0.2); border: 1px solid rgba(200,160,60,0.4);
  color: #d4a832; font-size: 9px; padding: 3px 8px; cursor: pointer; border-radius: 2px; }
.craft-mat-title { color: rgba(255,255,255,0.3); font-size: 9px; letter-spacing: 0.1em; margin: 12px 0 6px; }
.craft-mat, .inv-mat { display: flex; justify-content: space-between; padding: 2px 0; font-size: 10px; }
.craft-mat-name, .inv-mat-name { color: rgba(255,255,255,0.6); }
.craft-mat-qty, .inv-mat-qty { color: rgba(200,160,60,0.5); }

/* Auction House */
.ah-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.ah-tab { background: none; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4);
  padding: 4px 12px; cursor: pointer; font-size: 10px; border-radius: 3px; }
.ah-tab-active { border-color: rgba(200,160,60,0.4); color: #d4a832; }
.ah-fee { color: rgba(200,160,60,0.3); font-size: 9px; }
.ah-locked { color: #cc3333; font-size: 11px; text-align: center; padding: 12px; }
.ah-item { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border: 1px solid rgba(255,255,255,0.06); margin: 4px 0; border-radius: 3px; }
.ah-item-name { font-size: 11px; }
.ah-item-price { color: rgba(200,160,60,0.6); font-size: 10px; }
.ah-buy { background: rgba(200,160,60,0.2); border: 1px solid rgba(200,160,60,0.4);
  color: #d4a832; font-size: 9px; padding: 3px 8px; cursor: pointer; border-radius: 2px; }
.ah-status { color: rgba(255,255,255,0.3); font-size: 9px; }

/* Inventory */
.inv-section { margin-bottom: 16px; }
.inv-section-title { color: rgba(255,255,255,0.3); font-size: 9px; letter-spacing: 0.1em; margin-bottom: 6px; }
.inv-equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.inv-slot {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 6px; text-align: center; border-radius: 3px; min-height: 50px;
}
.inv-slot-filled { border-color: rgba(200,160,60,0.2); }
.inv-slot-label { color: rgba(255,255,255,0.25); font-size: 8px; letter-spacing: 0.06em; }
.inv-slot-item { color: rgba(255,255,255,0.6); font-size: 10px; margin-top: 4px; }
.inv-item { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.06); margin: 4px 0; border-radius: 3px; }
.inv-item-name { font-size: 11px; }
.inv-item-affixes { color: rgba(255,255,255,0.35); font-size: 9px; margin-top: 2px; }
.inv-item-reinf { color: rgba(200,160,60,0.5); font-size: 9px; }

/* ── Elevator Panel ── */
.elev-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 60; background: rgba(4,6,12,0.95); border: 1px solid rgba(200,160,60,0.3);
  border-radius: 8px; padding: 20px 24px; min-width: 280px;
  font-family: 'Courier New', monospace; backdrop-filter: blur(6px);
}
.elev-title {
  color: #d4a832; font-size: 16px; font-weight: bold; letter-spacing: 0.15em;
  text-align: center; margin-bottom: 4px;
}
.elev-subtitle { color: rgba(255,255,255,0.35); font-size: 10px; text-align: center; margin-bottom: 12px; }
.elev-dest {
  padding: 8px 12px; margin: 4px 0; border: 1px solid rgba(200,160,60,0.15);
  border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.elev-dest:hover { border-color: rgba(200,160,60,0.5); background: rgba(200,160,60,0.08); }
.elev-dest-name { color: rgba(255,255,255,0.85); font-size: 12px; display: block; }
.elev-dest-info { color: rgba(200,160,60,0.5); font-size: 9px; }
.elev-locked { opacity: 0.3; cursor: not-allowed; }
.elev-locked:hover { border-color: rgba(200,160,60,0.15); background: transparent; }
.elev-cancel {
  text-align: center; color: rgba(255,255,255,0.25); font-size: 9px;
  margin-top: 12px; cursor: pointer;
}
.elev-cancel:hover { color: rgba(255,255,255,0.5); }

/* ── Creature Nameplates ── */
.np-wrap {
  background: rgba(0,0,0,0.65); padding: 3px 6px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08); min-width: 60px;
  backdrop-filter: blur(2px);
}
.np-name {
  font-size: 9px; font-weight: bold; letter-spacing: 0.08em;
  white-space: nowrap; line-height: 1.2;
}
.np-level { color: rgba(255,255,255,0.35); font-weight: normal; font-size: 8px; }
.np-hp-track {
  height: 3px; background: rgba(255,255,255,0.1); border-radius: 1.5px;
  overflow: hidden; margin: 2px 0;
}
.np-hp-fill { height: 100%; border-radius: 1.5px; transition: width 0.3s; }
.np-state { font-size: 7px; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; }

/* ── Quest Tracker ── */
#quest-tracker-root {
  position: fixed; top: 80px; right: 12px; z-index: 22;
  width: 240px; pointer-events: auto; cursor: pointer;
}
.qt-wrap {
  background: rgba(0,0,0,0.75); border: 1px solid rgba(200,160,60,0.2);
  border-radius: 6px; padding: 8px 10px; font-size: 11px;
  backdrop-filter: blur(4px);
}
.qt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.qt-title { color: #d4a832; font-weight: bold; font-size: 10px; letter-spacing: 1px; }
.qt-count { color: rgba(255,255,255,0.35); font-size: 9px; }
.qt-done { color: rgba(200,160,60,0.5); font-size: 10px; }
.qt-section {
  color: rgba(255,255,255,0.3); font-size: 9px; letter-spacing: 1px;
  margin: 8px 0 4px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 6px;
}
.qt-reset { color: rgba(200,160,60,0.4); }
.qt-quest { margin-bottom: 6px; }
.qt-quest-done { opacity: 0.6; }
.qt-quest-name { color: rgba(255,255,255,0.85); margin-bottom: 3px; }
.qt-progress-row { display: flex; align-items: center; gap: 6px; }
.qt-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.qt-bar-fill {
  height: 100%; background: linear-gradient(90deg, #a07828, #d4a832);
  border-radius: 2px; transition: width 0.3s;
}
.qt-progress-text { color: rgba(255,255,255,0.4); font-size: 9px; min-width: 28px; text-align: right; }
.qt-quest-desc { color: rgba(255,255,255,0.35); font-size: 9px; margin-top: 2px; line-height: 1.3; }
.qt-reward { color: #a07828; font-size: 9px; margin-top: 2px; }
.qt-claim {
  background: rgba(200,160,60,0.2); border: 1px solid rgba(200,160,60,0.4);
  color: #d4a832; font-size: 10px; font-weight: bold;
  padding: 3px 8px; border-radius: 3px; text-align: center;
  cursor: pointer; margin-top: 3px;
  transition: background 0.2s;
}
.qt-claim:hover { background: rgba(200,160,60,0.35); }
.qt-claimed { color: rgba(200,160,60,0.4); font-size: 9px; margin-top: 3px; }
.qt-more { color: rgba(255,255,255,0.25); font-size: 9px; margin-top: 4px; text-align: center; }
.qt-empty { text-align: center; padding: 12px; }

/* ── XP Bar ── */
#xp-bar-root {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
  pointer-events: none;
}
.xp-bar-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px; background: rgba(0,0,0,0.7);
  border-top: 1px solid rgba(200,160,60,0.3);
}
.xp-level-badge {
  font-size: 14px; font-weight: bold; color: #d4a832;
  min-width: 28px; text-align: center;
  background: rgba(200,160,60,0.15); border: 1px solid rgba(200,160,60,0.4);
  border-radius: 4px; padding: 1px 6px;
  transition: transform 0.3s;
}
.xp-badge-pulse { animation: xpBadgePulse 0.6s ease-out; }
@keyframes xpBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: #fff; }
  100% { transform: scale(1); }
}
.xp-bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden;
}
.xp-bar-fill {
  height: 100%; background: linear-gradient(90deg, #a07828, #d4a832);
  border-radius: 3px; transition: width 0.4s ease-out;
  box-shadow: 0 0 4px rgba(212,168,50,0.4);
}
.xp-max .xp-bar-fill {
  background: linear-gradient(90deg, #d4a832, #f0d060, #d4a832);
  animation: xpMaxGlow 2s ease-in-out infinite;
}
@keyframes xpMaxGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(212,168,50,0.4); }
  50% { box-shadow: 0 0 12px rgba(240,208,96,0.8); }
}
.xp-bar-label {
  font-size: 10px; color: rgba(255,255,255,0.5);
  min-width: 80px; text-align: right; white-space: nowrap;
}

/* XP floater — rising gold text */
.xp-floater {
  position: absolute; bottom: 24px; color: #d4a832; font-size: 14px; font-weight: bold;
  text-shadow: 0 0 6px rgba(212,168,50,0.6);
  opacity: 1; transform: translateY(0); transition: none;
  pointer-events: none;
}
.xp-floater-rise {
  transition: all 1.2s ease-out;
  transform: translateY(-60px); opacity: 0;
}

/* Level-up flash overlay */
.xp-levelup-flash {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(212,168,50,0.0); pointer-events: none;
  transition: background 0.3s;
}
.xp-levelup-active { background: rgba(212,168,50,0.15); }
.xp-levelup-fade { opacity: 0; transition: opacity 0.8s; }
.xp-levelup-text {
  font-size: 48px; font-weight: bold; color: #f0d060;
  text-shadow: 0 0 20px rgba(240,208,96,0.8), 0 0 40px rgba(212,168,50,0.4);
  animation: xpLevelPop 0.6s ease-out;
}
@keyframes xpLevelPop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.xp-levelup-unlock {
  font-size: 16px; color: #d4a832; margin-top: 8px;
  text-shadow: 0 0 8px rgba(212,168,50,0.5);
  animation: xpUnlockSlide 0.4s ease-out 0.3s both;
}
@keyframes xpUnlockSlide {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── Phase 1 responsive ── */
@media (max-width: 520px) {
  .stn-tiles { grid-template-columns: repeat(2, 1fr); }
  .prf-stats { grid-template-columns: repeat(2, 1fr); }
  .inv-score-bar { flex-wrap: wrap; }
  .inv-pe-preview { margin-left: 0; width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Sprint 6 — ME Collection + Geis Panel + Thread
   ══════════════════════════════════════════════════════════════════════════ */

/* ME Collection Scene */
.me-wrap, .geis-wrap { max-width: 550px; width: 100%; padding: 20px; }
.me-header, .geis-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.me-title, .geis-title {
  color: #FFD700; font-size: 16px; font-weight: bold; letter-spacing: 0.15em;
}
.me-subtitle, .geis-subtitle {
  color: rgba(255,255,255,0.35); font-size: 10px; letter-spacing: 0.1em;
}
.me-sections, .geis-sections { display: flex; flex-direction: column; gap: 16px; }
.me-section, .geis-section { }
.me-section-title, .geis-section-title {
  color: rgba(255,255,255,0.3); font-size: 9px; letter-spacing: 0.15em;
  margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 4px;
}

/* ME Instrument Slots */
.me-slots { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.me-slot {
  width: 90px; height: 70px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,12,20,0.8); position: relative;
}
.me-slot.filled { border-width: 2px; }
.me-slot-name { font-size: 10px; font-weight: bold; letter-spacing: 0.08em; }
.me-slot-aspect { font-size: 8px; color: rgba(255,255,255,0.3); }
.me-slot-empty { font-size: 9px; color: rgba(255,255,255,0.15); }
.me-unslot-btn {
  position: absolute; top: 2px; right: 2px; background: none; border: none;
  color: rgba(255,255,255,0.3); cursor: pointer; font-size: 10px; padding: 2px;
}
.me-unslot-btn:hover { color: #ff4444; }

/* ME Combos */
.me-combos { margin-top: 4px; }
.me-combo {
  background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.15);
  padding: 4px 8px; border-radius: 3px; margin-bottom: 4px;
}
.me-combo-name { color: #FFD700; font-size: 10px; font-weight: bold; }
.me-combo-effect { color: rgba(255,255,255,0.5); font-size: 9px; display: block; }
.me-combo-hint { color: rgba(255,255,255,0.15); font-size: 9px; font-style: italic; }

/* ME Cards Grid */
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.me-grid.dim { opacity: 0.5; }
.me-card {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 8px;
  background: rgba(8,10,18,0.85); cursor: pointer; transition: border-color 0.2s;
}
.me-card:hover { border-color: rgba(255,215,0,0.3); }
.me-card.opened { }
.me-card.sealed { opacity: 0.7; }
.me-card.slotted { box-shadow: 0 0 8px rgba(255,215,0,0.15); }
.me-card.locked { cursor: default; opacity: 0.35; }
.me-card-type { font-size: 8px; letter-spacing: 0.12em; margin-bottom: 2px; }
.me-card-name { font-size: 11px; color: rgba(255,255,255,0.8); font-weight: bold; }
.me-card-entity { font-size: 9px; color: rgba(255,255,255,0.5); }
.me-card-aspect { font-size: 8px; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.me-card-hint { font-size: 8px; color: rgba(255,255,255,0.2); }
.me-card-slotted { font-size: 8px; color: #FFD700; letter-spacing: 0.1em; }
.me-open-btn, .me-slot-btn { margin-top: 4px; font-size: 9px; padding: 3px 8px; }
.me-empty { color: rgba(255,255,255,0.2); font-size: 10px; text-align: center; padding: 16px; }

/* ME Detail Overlay */
.me-detail {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
}
.me-detail-card {
  max-width: 400px; width: 90%; padding: 24px; border: 2px solid; border-radius: 6px;
  background: rgba(8,10,18,0.95); position: relative;
}
.me-detail-type { font-size: 10px; letter-spacing: 0.15em; margin-bottom: 4px; }
.me-detail-name { font-size: 16px; color: rgba(255,255,255,0.9); font-weight: bold; margin-bottom: 4px; }
.me-detail-entity { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.me-detail-desc { font-size: 10px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-bottom: 12px; }
.me-detail-voice {
  font-style: italic; color: rgba(255,215,0,0.6); font-size: 10px;
  border-left: 2px solid rgba(255,215,0,0.3); padding-left: 8px; margin-bottom: 12px;
}
.me-detail-protocol { font-size: 9px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.me-detail-meta { font-size: 8px; color: rgba(255,255,255,0.25); }

/* ME Voice Line Toast */
.me-voice-toast {
  position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%);
  background: rgba(4,6,12,0.95); border: 1px solid rgba(255,215,0,0.3);
  padding: 12px 24px; border-radius: 4px; z-index: 70;
  font: 11px/1.5 'Courier New', monospace; color: rgba(255,255,255,0.7);
  max-width: 500px; text-align: center; opacity: 0; transition: opacity 0.5s;
}
.me-voice-toast.show { opacity: 1; }
.me-voice-entity { font-weight: bold; }

/* Geis Panel */
.geis-power {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,12,20,0.8); border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 16px; border-radius: 4px; margin-bottom: 16px;
}
.geis-power-label { color: rgba(255,255,255,0.3); font-size: 9px; letter-spacing: 0.12em; }
.geis-power-value { font-size: 1.5rem; font-weight: bold; color: #4aff7a; }

.geis-list { display: flex; flex-direction: column; gap: 6px; }
.geis-list.dim { opacity: 0.4; }
.geis-card {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 10px;
  background: rgba(8,10,18,0.85);
}
.geis-card.active { }
.geis-card.broken { opacity: 0.4; }
.geis-card.available { opacity: 0.7; }
.geis-card-cat { font-size: 8px; letter-spacing: 0.12em; margin-bottom: 2px; }
.geis-card-name { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: bold; margin-bottom: 4px; }
.geis-card-restriction { font-size: 10px; color: rgba(255,255,255,0.5); font-style: italic; margin-bottom: 4px; }
.geis-card-power { font-size: 9px; color: rgba(100,255,100,0.6); }
.geis-card-warn { font-size: 8px; color: #ff4a4a; letter-spacing: 0.1em; margin-top: 4px; }
.geis-card-reason { font-size: 9px; color: rgba(255,80,80,0.5); }
.geis-remove-btn { margin-top: 6px; }
.geis-place-btn { margin-top: 6px; }
.geis-empty { color: rgba(255,255,255,0.2); font-size: 10px; padding: 12px; text-align: center; }

/* Geis Confirm Overlay */
.geis-confirm {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.75);
}
.geis-confirm-card {
  max-width: 420px; width: 90%; padding: 24px; border: 2px solid rgba(255,80,80,0.3);
  border-radius: 6px; background: rgba(8,10,18,0.95); text-align: center;
}
.geis-confirm-title { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: bold; margin-bottom: 8px; }
.geis-confirm-restriction { font-size: 11px; color: rgba(255,255,255,0.5); font-style: italic; margin-bottom: 12px; }
.geis-confirm-power { font-size: 10px; color: rgba(100,255,100,0.6); margin-bottom: 12px; }
.geis-confirm-conflict {
  font-size: 10px; color: #ff4a4a; background: rgba(255,0,0,0.05);
  border: 1px solid rgba(255,0,0,0.15); padding: 8px; border-radius: 3px; margin-bottom: 12px;
}
.geis-confirm-warn { font-size: 9px; color: #ff4aff; margin-bottom: 8px; }
.geis-confirm-warning { font-size: 9px; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.geis-confirm-btns { display: flex; gap: 8px; justify-content: center; }

/* Void button variants */
.void-btn.danger { border-color: rgba(255,60,60,0.4); color: #ff4a4a; }
.void-btn.danger:hover { border-color: rgba(255,60,60,0.7); background: rgba(255,0,0,0.1); }
.void-btn.primary { border-color: rgba(255,215,0,0.4); color: #FFD700; }
.void-btn.primary:hover { border-color: rgba(255,215,0,0.7); background: rgba(255,215,0,0.08); }
