@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg:#101b20;
  --panel:#19292e;
  --line:#3a555a;
  --cream:#eaf0e8;
  --muted:#a1b8bc;
  --pink:#f3a79e;
  --mint:#9ed9c3;
  --orange:#edc18d;
  --mono:'Cascadia Code','Consolas',monospace;
  --sans:'Yu Gothic UI','Meiryo',sans-serif;
  --hud-scale:1;
}
* { box-sizing:border-box; }
html,body { width:100%; height:100%; margin:0; overflow:hidden; }
body { background:var(--bg); color:var(--cream); font-family:var(--sans); -webkit-font-smoothing:antialiased; }
button { color:inherit; font:inherit; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:default; }
button:disabled:not(.weapon-card) { opacity:.4; }
button:focus-visible,canvas:focus-visible { outline:2px solid var(--pink); outline-offset:4px; }
[hidden] { display:none !important; }
.arcade,.game-shell,.viewport { position:relative; width:100%; height:100%; min-width:0; min-height:0; }
.arcade { width:100vw; height:100vh; height:100dvh; }
.game-shell,.viewport { overflow:hidden; background:#172c2c; }
.viewport { container-type:size; }
#game { display:block; width:100%; height:100%; image-rendering:pixelated; outline:none; cursor:default; }
#hud-canvas { position:absolute; z-index:3; inset:0; width:100%; height:100%; pointer-events:none; image-rendering:auto; }
.is-playing #game { cursor:none; }
#game:focus-visible { outline:2px solid var(--mint); outline-offset:-3px; }
.sr-only { position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.run-meta { position:absolute; z-index:4; left:calc(18px * var(--hud-scale)); top:calc(98px * var(--hud-scale)); display:flex; align-items:center; gap:calc(15px * var(--hud-scale)); color:#b1c9c4; font-size:calc(10px * var(--hud-scale)); letter-spacing:.03em; pointer-events:none; text-shadow:0 1px 3px #081518; }
.run-meta strong { margin-left:calc(5px * var(--hud-scale)); color:#e8eee0; font:calc(12px * var(--hud-scale)) var(--mono); letter-spacing:.05em; }
.mutation-label strong { color:var(--pink); }
.console-actions { position:absolute; z-index:30; top:calc(98px * var(--hud-scale)); right:calc(18px * var(--hud-scale)); display:flex; align-items:center; height:calc(29px * var(--hud-scale)); border:1px solid #6d97934d; background:#101e20e8; }
.live-label { display:none; }
.icon-button,.text-button { display:grid; place-content:center; min-width:calc(31px * var(--hud-scale)); height:100%; padding:0 calc(8px * var(--hud-scale)); border:0; border-left:1px solid #3a555a88; background:transparent; font:calc(15px * var(--hud-scale)) var(--mono); line-height:1; }
.console-actions > button:first-of-type { border-left:0; }
.text-button { display:flex; gap:calc(4px * var(--hud-scale)); align-items:center; font-size:calc(9px * var(--hud-scale)); }
.text-button span { color:var(--mint); }
.icon-button:hover,.text-button:hover { background:#2a454a; }
body[data-screen="title"] .run-meta { top:24px; left:6%; font-size:10px; }
body[data-screen="title"] .run-meta strong { font-size:12px; }
body[data-screen="title"] .mutation-label { display:none; }
body[data-screen="title"] .console-actions { top:20px; right:6%; height:30px; }
body[data-screen="title"] .icon-button,body[data-screen="title"] .text-button { min-width:34px; font-size:15px; padding-inline:9px; }
body[data-screen="title"] .text-button { font-size:10px; gap:4px; }
body[data-screen="title"] #pause { display:none; }

/* One fullscreen title poster, with the actual game kept beneath it. */
.screen-overlay { position:absolute; z-index:20; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; background:#0c191de8; }
body[data-screen="title"] .screen-overlay { padding:0; background:#112328f2; }
.intro-content { --hero-accent:var(--pink); position:absolute; inset:0; display:grid; grid-template-rows:minmax(0,1fr) auto auto auto; gap:14px; padding:60px 6% 20px; overflow:hidden; isolation:isolate; }
.intro-content:has(.character-button[data-character="luma"][aria-pressed="true"]) { --hero-accent:#a9ddeb; }
.intro-content:has(.character-button[data-character="kira"][aria-pressed="true"]) { --hero-accent:#efb07f; }
.intro-content::before { content:""; position:absolute; z-index:-1; inset:0; background-image:linear-gradient(#9ed9c306 1px,transparent 1px),linear-gradient(90deg,#9ed9c306 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(90deg,transparent,#000); pointer-events:none; }
.title-hero { display:grid; grid-template-columns:.9fr 1.3fr; min-height:0; gap:2%; }
.title-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-width:0; }
.eyebrow { display:flex; align-items:center; gap:9px; margin:0 0 15px; color:var(--mint); font:10px var(--mono); letter-spacing:.09em; }
.bloom-mark { position:relative; display:block; flex:0 0 16px; width:16px; height:16px; background:var(--pink); clip-path:polygon(33% 0,66% 0,66% 21%,79% 21%,79% 33%,100% 33%,100% 66%,79% 66%,79% 79%,66% 79%,66% 100%,33% 100%,33% 79%,21% 79%,21% 66%,0 66%,0 33%,21% 33%,21% 21%,33% 21%); }
.bloom-mark i { position:absolute; width:4px; height:4px; inset:6px; background:var(--bg); }
h1 { position:relative; margin:0 0 16px; font-family:Impact,'Arial Narrow',sans-serif; font-weight:400; font-size:clamp(64px,11.1cqh,150px); line-height:.8; letter-spacing:-.015em; transform:skew(-5deg); }
h1 > span { position:relative; display:block; margin-top:3px; color:var(--pink); }
.title-star { position:absolute; top:.04em; margin-left:.16em; font: .38em var(--sans); color:var(--mint); }
.intro-jp { margin:0 0 8px; font-size:clamp(17px,2.6cqh,26px); font-weight:700; letter-spacing:.12em; }
.intro-description { margin:0 0 12px; color:#abc4c2; font-size:11px; line-height:1.6; letter-spacing:.04em; }
.title-actions { display:grid; gap:7px; width:300px; max-width:100%; }
.primary-button { display:flex; align-items:center; justify-content:space-between; width:300px; max-width:100%; height:52px; padding:0 0 0 18px; border:1px solid var(--pink); border-radius:0; background:var(--pink); color:#17272b; text-align:left; font-size:14px; font-weight:700; letter-spacing:.06em; transition:background .15s,transform .15s; }
.primary-button small { display:flex; align-items:center; gap:10px; margin-top:3px; font:9px var(--mono); letter-spacing:.08em; }
.primary-button small kbd { height:14px; font-size:8px; padding:0 4px; border-color:#17272b55; color:#17272b; background:transparent; }
.primary-button > b { display:grid; place-items:center; flex:0 0 50px; height:100%; border-left:1px solid #17272b33; font-size:25px; font-weight:400; }
.primary-button:hover { background:#ffc0b7; transform:translateY(-1px); }
.primary-button:active { background:#e6938b; transform:translateY(1px); }
.subtle-button { display:block; min-height:34px; margin:10px auto 0; padding:7px 12px; border:1px solid #46636b; border-radius:0; background:#1c3037; color:#c4d5d4; font-size:11px; letter-spacing:.03em; transition:background .15s,border-color .15s; }
.subtle-button:hover { border-color:var(--mint); background:#28434a; }
.practice-button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:0; border-color:#557b7966; background:#183034; color:var(--mint); font-size:12px; }
.practice-button span { color:#a1b8bc; font-size:10px; }
.hero-figure { position:relative; display:grid; grid-template-columns:.82fr 1fr; align-items:center; gap:14px; min-width:0; min-height:0; margin:0; overflow:hidden; }
#hero-portrait { position:absolute; inset:0 auto 0 0; display:block; width:43%; height:100%; object-fit:contain; image-rendering:pixelated; }
.hero-orbit { position:absolute; width:min(20cqw,32cqh); aspect-ratio:1; top:50%; left:21%; transform:translate(-50%,-43%) rotate(-9deg); border:1px solid #7aada33b; box-shadow:0 0 0 26px #9ed9c303,0 0 0 27px #9ed9c30b; }
.hero-orbit::before,.hero-orbit::after { content:""; position:absolute; width:9px; height:9px; background:var(--mint); }
.hero-orbit::before { left:-5px; top:-5px; }
.hero-orbit::after { right:-5px; bottom:-5px; background:var(--pink); }
.scene-caption { position:relative; z-index:2; grid-column:2; min-width:0; margin:0; pointer-events:none; }
.hero-kicker { display:block; color:#83a9a5; font:8px var(--mono); letter-spacing:.15em; }
.hero-kicker b { color:var(--hero-accent); font:9px var(--sans); letter-spacing:.04em; }
.hero-identity { display:flex; align-items:baseline; flex-wrap:wrap; gap:9px; margin-top:6px; }
#hero-name-en { color:var(--hero-accent); font:700 clamp(26px,3.8cqh,42px)/1 var(--mono); letter-spacing:.035em; }
#hero-name { color:#dce9df; font-size:12px; letter-spacing:.1em; }
.hero-stats { display:flex; align-items:center; flex-wrap:wrap; gap:7px 12px; margin-top:9px; padding-bottom:9px; border-bottom:1px solid #65867c55; font-size:10px; color:#a7c2ba; }
#hero-role { color:var(--hero-accent); font-size:11px; }
#hero-speed { margin-left:3px; color:#edf2df; font:700 13px var(--mono); }
#hero-speed-value { margin-left:3px; color:#a1b8bc; font:8px var(--mono); }
.hero-skill { display:flex; align-items:center; gap:7px; margin-top:10px; color:#e5eee2; font-size:12px; white-space:nowrap; }
.hero-skill kbd { height:16px; padding-inline:4px; border-color:#688c8166; background:#112a2ee0; color:var(--hero-accent); font-size:8px; }
.scene-caption p { margin:7px 0 0; color:#bdd0c5; font-size:11px; line-height:1.6; }
.scene-caption .hero-description { margin-top:8px; color:#8fada7; font-size:10px; }
.hero-skill-stats { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; color:#8eaaa3; font-size:9px; }
.hero-skill-stats strong { margin-left:4px; color:var(--hero-accent); font:700 11px var(--mono); }
.hero-loadout { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; gap:5px; margin-top:12px; }
.hero-loadout > span { color:#7e9e96; font:8px var(--mono); letter-spacing:.06em; }
.hero-loadout strong { color:#c2d6ca; font-size:10px; line-height:1.65; font-weight:400; }
.character-select { position:relative; z-index:3; min-width:0; }
.character-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
.character-heading h2 { margin:0; color:#d1e0d8; font-size:12px; letter-spacing:.1em; }
.character-heading > span { color:#819f9f; font-size:9px; }
.character-heading b { margin-inline:5px; color:#547a77; font-weight:400; }
.character-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.character-button { --character-accent:var(--mint); position:relative; display:grid; grid-template-rows:45px minmax(31px,auto) 25px; align-items:center; gap:6px; min-width:0; width:100%; padding:8px 12px; border:1px solid #456663; background:#142a2f; text-align:left; transition:border-color .15s,background .15s,transform .15s; }
.character-button[data-character="luma"] { --character-accent:#a9ddeb; }
.character-button[data-character="kira"] { --character-accent:#efb07f; }
.character-button[aria-pressed="true"] { border-color:var(--character-accent); background:#253e3b; }
.character-button[aria-pressed="true"]::after { content:""; position:absolute; left:-1px; right:-1px; top:-1px; height:3px; background:var(--character-accent); }
.character-button:hover { border-color:var(--character-accent); background:#29423f; transform:translateY(-2px); }
.character-card-top { display:flex; align-items:center; gap:9px; min-width:0; }
.character-button canvas { display:block; flex:0 0 32px; width:32px; height:44px; object-fit:contain; image-rendering:pixelated; pointer-events:none; }
.character-name { display:flex; flex-direction:column; gap:5px; min-width:0; }
.character-name > strong { color:var(--character-accent); font:700 15px var(--mono); letter-spacing:.04em; white-space:nowrap; }
.character-name strong span { margin-left:3px; color:#b3c9c0; font:9px var(--sans); letter-spacing:.02em; }
.character-name > span { color:#bdcfc7; font-size:10px; }
.character-speed { display:flex; flex-direction:column; align-items:flex-end; gap:3px; margin-left:auto; color:#8eaaa3; font-size:8px; }
.character-speed strong { color:var(--character-accent); font:700 18px var(--mono); letter-spacing:-.04em; }
.character-loadout { display:grid; grid-template-columns:37px minmax(0,1fr); align-items:baseline; min-width:0; gap:6px; color:#c6d8cf; font-size:10px; line-height:1.6; }
.hero-loadout strong,.character-loadout [data-character-field="weapons"] { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:normal; }
.comparison-label { color:#819f98; font-size:8px; white-space:nowrap; }
.character-ability { display:flex; align-items:center; gap:6px; min-width:0; padding-top:6px; border-top:1px solid #6f91824d; color:#d7e3d9; }
.character-ability kbd { flex:0 0 auto; min-width:0; height:15px; padding-inline:3px; color:var(--character-accent); border-color:#698e7d66; background:#13272c; font-size:7px; }
.character-ability > strong { font-size:10px; white-space:nowrap; }
.character-cooldown { margin-left:auto; color:#809d96; font:8px var(--mono); white-space:nowrap; }
.character-cooldown b { margin-left:2px; color:var(--character-accent); font:700 11px var(--mono); }
.stage-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:9px; }
.stage-heading h2 { margin:0; color:#d1e0d8; font-size:12px; letter-spacing:.1em; }
.stage-heading > span { color:#819f9f; font:10px var(--mono); }
.stage-heading b { margin:0 6px; font-weight:400; color:#547a77; }
.stage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.stage-card { --stage-accent:var(--mint); position:relative; display:grid; grid-template-columns:36% minmax(0,1fr); align-items:center; min-width:0; height:128px; overflow:hidden; padding:0; border:1px solid #3d5c5c; background:#172c31; text-align:left; transition:border-color .15s,background .15s,transform .15s; }
.stage-card[data-stage="1"] { --stage-accent:var(--orange); }
.stage-card[data-stage="2"] { --stage-accent:#c6c5eb; }
.stage-card::after { content:""; position:absolute; inset:0; border-bottom:3px solid transparent; pointer-events:none; }
.stage-card[aria-pressed="true"] { border-color:var(--stage-accent); background:#223d3c; }
.stage-card[aria-pressed="true"]::after { border-bottom-color:var(--stage-accent); }
.stage-card:hover { border-color:var(--stage-accent); transform:translateY(-2px); }
.stage-card canvas { width:100%; height:100%; object-fit:cover; image-rendering:pixelated; opacity:.8; border-right:1px solid #6d979333; }
.stage-card[aria-pressed="true"] canvas { opacity:1; }
.stage-number { position:absolute; top:8px; left:8px; padding:3px 4px; background:#102025d9; color:var(--stage-accent); font:10px var(--mono); }
.stage-info { display:flex; flex-direction:column; gap:7px; min-width:0; padding:12px 13px; }
.stage-info > strong { color:#e0e8de; font-size:13px; line-height:1.25; white-space:nowrap; letter-spacing:.01em; }
.stage-info > span { color:#9db8b6; font:9px var(--mono); letter-spacing:.02em; white-space:nowrap; }
.stage-info small { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:7px; color:var(--stage-accent); font:10px var(--mono); letter-spacing:.03em; }
.stage-info small b { padding:2px 4px; border:1px solid #77948e55; color:#b2c8c1; font:9px var(--sans); }
.stage-check { position:absolute; top:7px; right:8px; color:#597e7b; font:15px var(--mono); }
.stage-card[aria-pressed="true"] .stage-check { color:var(--stage-accent); }

/* Compact, interactive three-slot inventory stays inside the shared HUD dock. */
.arsenal { position:absolute; z-index:5; left:calc(50% - 50px * var(--hud-scale)); top:calc(100% - 94px * var(--hud-scale)); width:calc(390px * var(--hud-scale)); height:calc(76px * var(--hud-scale)); }
body[data-screen="title"] .arsenal { display:none; }
.weapon-rack { display:grid; grid-template-columns:repeat(var(--weapon-columns,4),minmax(0,1fr)); grid-auto-rows:calc(76px * var(--hud-scale)); gap:calc(5px * var(--hud-scale)); height:100%; }
.weapon-card { position:relative; min-width:0; overflow:hidden; padding:0; border:1px solid #58787588; border-radius:0; background:#101e20ed; text-align:left; transition:border-color .12s,background .12s; }
.weapon-card::before { content:""; position:absolute; top:0; left:0; right:0; height:calc(2px * var(--hud-scale)); background:transparent; }
.weapon-card.active,.weapon-card[aria-pressed="true"] { border-color:var(--mint); background:#203b3ded; }
.weapon-card.active::before { background:var(--mint); }
.weapon-card:hover:not(:disabled) { background:#29474bed; border-color:#a7d3c4; }
.weapon-card:focus-visible { outline-offset:calc(-3px * var(--hud-scale)); }
.weapon-top { position:absolute; top:calc(6px * var(--hud-scale)); left:calc(6px * var(--hud-scale)); display:flex; align-items:center; }
.weapon-top kbd { min-width:calc(14px * var(--hud-scale)); height:calc(15px * var(--hud-scale)); padding:0; color:#e4eee1; border-color:#739b8a88; font: max(9px,calc(9px * var(--hud-scale))) var(--mono); }
.weapon-top > span,.weapon-top i,.weapon-en,.weapon-stat { display:none; }
.weapon-card > strong { position:absolute; top:calc(7px * var(--hud-scale)); left:calc(26px * var(--hud-scale)); right:calc(6px * var(--hud-scale)); overflow:hidden; text-overflow:ellipsis; color:#e4eee1; font-size:max(10px,calc(11px * var(--hud-scale))); line-height:1.25; white-space:nowrap; }
.weapon-card canvas { position:absolute; top:calc(25px * var(--hud-scale)); left:calc(5px * var(--hud-scale)); width:calc(45px * var(--hud-scale)); height:calc(21px * var(--hud-scale)); object-fit:contain; image-rendering:pixelated; pointer-events:none; }
.slot-meta { position:absolute; inset:0; pointer-events:none; }
.slot-ammo { position:absolute; top:calc(31px * var(--hud-scale)); right:calc(7px * var(--hud-scale)); color:#e5eddf; font:max(9px,calc(10px * var(--hud-scale))) var(--mono); white-space:nowrap; }
.slot-state { position:absolute; left:calc(7px * var(--hud-scale)); right:calc(7px * var(--hud-scale)); bottom:calc(10px * var(--hud-scale)); overflow:hidden; text-overflow:ellipsis; color:#a9c4ba; font-size:max(9px,calc(9px * var(--hud-scale))); text-align:right; white-space:nowrap; }
.weapon-condition { position:absolute; left:calc(6px * var(--hud-scale)); right:calc(6px * var(--hud-scale)); bottom:calc(4px * var(--hud-scale)); height:calc(3px * var(--hud-scale)); background:#385159; }
.weapon-condition i { display:block; height:100%; background:var(--mint); }
.weapon-card[data-empty="true"] { border-style:dashed; background:#14242acd; }
.weapon-card[data-empty="true"] > strong,.weapon-card[data-empty="true"] .slot-ammo { color:var(--muted); }
.weapon-card[data-empty="true"] canvas { opacity:0; }
.weapon-card[data-reloading="true"] .slot-ammo,.weapon-card[data-condition="low"] .slot-state { color:var(--pink); }
.weapon-card[data-empty="true"]::after { content:"＋"; position:absolute; left:50%; top:37%; transform:translateX(-50%); font:18px var(--mono); color:#749a89; }
.weapon-card[data-empty="true"] .slot-ammo { display:none; }
.run-amulet-panel { margin:16px 0; padding:12px 14px; border:1px solid #54736a; background:#0d2129; text-align:left; }
.run-amulet-panel h3 { margin:0 0 8px; font-size:12px; color:#dce8c7; }
#run-amulets { max-height:150px; overflow:auto; }
#run-amulets p { margin:8px 0; color:#b5caba; font-size:11px; line-height:1.5; }
#run-amulets strong,#run-amulets span { display:block; }

/* Modal content scrolls internally on very small windows. */
.screen-overlay.centered { text-align:center; }
.modal-content { width:460px; max-width:100%; max-height:100%; padding:30px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#54757e #14252c; border:1px solid #61837e; background:#14272bec; }
.modal-content .eyebrow { justify-content:center; }
.modal-content h2 { margin:0; color:var(--pink); font-family:Impact,'Arial Narrow',sans-serif; font-size:clamp(36px,9cqh,70px); font-weight:400; line-height:1; letter-spacing:.02em; }
.modal-content h2 span { display:block; margin-top:13px; color:var(--cream); font:700 16px var(--sans); letter-spacing:.06em; }
.modal-content > p:not(.eyebrow) { margin:18px 0; color:var(--muted); font-size:12px; line-height:1.65; }
.modal-content .primary-button { margin:22px auto 0; }
.return-button { border-color:transparent; background:transparent; color:#a1b8bc; text-decoration:underline; text-underline-offset:4px; }
.run-results { display:flex; justify-content:center; gap:30px; margin:22px 0; color:var(--muted); font-size:11px; letter-spacing:.08em; }
.run-results strong { display:block; margin-top:6px; color:var(--cream); font:26px var(--mono); letter-spacing:.06em; }
#upgrade-content { width:820px; padding:26px; }
#upgrade-content h2 { font-size:clamp(30px,8cqh,48px); }
#upgrade-content h2 span { margin-top:12px; font-size:13px; letter-spacing:.1em; }
.upgrade-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:24px; text-align:left; }
.upgrade-card { --upgrade-color:var(--mint); position:relative; display:flex; flex-direction:column; gap:8px; min-width:0; min-height:184px; padding:17px 15px; border:1px solid #48636a; border-radius:0; background:#1d333a; color:var(--cream); text-align:left; transition:border-color .15s,background .15s,transform .15s; }
.upgrade-card::before { content:""; position:absolute; top:-1px; left:-1px; right:-1px; height:3px; background:var(--upgrade-color); }
.upgrade-card:hover,.upgrade-card:focus-visible { background:#29464b; border-color:var(--upgrade-color); transform:translateY(-2px); }
.upgrade-key { position:absolute; top:13px; right:13px; display:grid; place-items:center; width:21px; height:21px; border:1px solid #536e75; color:var(--upgrade-color); font:11px var(--mono); }
.upgrade-tag { padding-right:26px; color:var(--upgrade-color); font:10px var(--mono); letter-spacing:.08em; }
.upgrade-name { margin-top:9px; font-size:15px; line-height:1.5; letter-spacing:.03em; }
.upgrade-description { margin:0; color:#c1d1ce; font-size:11px; line-height:1.7; }
.upgrade-level { margin-top:auto; color:#9ebdb9; font:10px var(--mono); letter-spacing:.08em; }
#upgrade-content .upgrade-hint { margin:20px 0 0; font-size:11px; }
kbd { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border:1px solid #49646d; border-radius:2px; background:#21363e; color:#d5e4de; font:10px var(--mono); }
.controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; color:#8caeab; font-size:10px; }
.controls > span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.controls kbd { height:17px; border-color:#405f6080; background:#162b30; font-size:9px; }
.title-controls { justify-content:center; padding-top:2px; }
.pause-controls { justify-content:center; gap:10px 12px; margin-top:24px; padding-top:19px; border-top:1px solid #3d5c5c88; }
.mobile-note { display:none; position:absolute; z-index:35; bottom:10px; left:12px; right:12px; padding:9px; background:#101e20ed; color:#c8dad2; text-align:center; font-size:11px; pointer-events:none; }
noscript { position:fixed; z-index:100; inset:0; display:grid; place-items:center; background:var(--bg); }

@container (min-width:1800px) {
  .intro-content { padding-inline:10%; }
  body[data-screen="title"] .run-meta { left:10%; }
  body[data-screen="title"] .console-actions { right:10%; }
  .stage-card { height:160px; }
  .stage-info > strong { font-size:17px; }
  .stage-info > span,.stage-info small { font-size:12px; }
  .stage-info small b { font-size:11px; }
}
@container (max-width:1000px) {
  .intro-content { padding:56px 5% 16px; gap:12px; }
  body[data-screen="title"] .run-meta { left:5%; }
  body[data-screen="title"] .console-actions { right:5%; }
  .title-hero { grid-template-columns:.85fr 1.2fr; gap:2%; }
  h1 { font-size:clamp(64px,11.1cqh,100px); }
  .stage-grid { gap:9px; }
  .stage-card { grid-template-columns:29% minmax(0,1fr); grid-template-rows:1fr; height:110px; }
  .stage-info { gap:5px; padding:9px 8px; }
  .stage-info > strong { font-size:10px; }
  .stage-info > span { font-size:8px; }
  .stage-info small { margin-top:2px; font-size:9px; }
  .stage-info small b { font-size:8px; }
  .hero-figure { grid-template-columns:.7fr 1fr; gap:10px; }
  #hero-portrait { width:40%; }
  .character-options { gap:9px; }
  .character-button { padding-inline:9px; }
  .character-card-top { gap:6px; }
  .character-name > strong { font-size:13px; }
  .character-name strong span { font-size:8px; }
  .character-loadout { grid-template-columns:minmax(0,1fr); gap:0; min-height:45px; }
  .character-loadout .comparison-label { font-size:8px; }
  .character-ability { gap:4px; }
  .character-ability kbd { padding-inline:2px; font-size:6px; }
  .character-ability > strong { font-size:9px; }
  .character-cooldown { font-size:7px; }
  .character-cooldown b { font-size:10px; }
  .controls { gap:7px 12px; }
  .title-controls { font-size:9px; }
}
@container (min-height:651px) and (max-height:820px) {
  .title-copy .eyebrow { margin-bottom:10px; }
  h1 { font-size:10cqh; margin-bottom:14px; }
  .intro-description,.scene-caption .hero-description { display:none; }
  .title-actions .primary-button { height:46px; }
  .practice-button { min-height:30px; padding-block:5px; font-size:11px; }
}
@container (max-height:650px) {
  .intro-content { padding-top:52px; padding-bottom:13px; gap:10px; }
  .eyebrow { margin-bottom:8px; font-size:9px; }
  h1 { margin-bottom:12px; font-size:clamp(54px,10.4cqh,80px); }
  .intro-jp { margin-bottom:7px; font-size:16px; }
  .intro-description { margin-bottom:9px; font-size:10px; line-height:1.4; }
  .primary-button { height:45px; font-size:13px; }
  .practice-button { min-height:30px; padding-block:6px; font-size:11px; }
  .stage-card { height:88px; }
  .stage-info { gap:5px; padding:10px; }
  .stage-info > strong { font-size:12px; }
  .stage-info small { margin-top:3px; }
  .stage-heading { margin-bottom:7px; }
  .scene-caption .hero-description { display:none; }
  .scene-caption p { margin-top:5px; font-size:10px; line-height:1.45; }
  .hero-identity { margin-top:4px; }
  #hero-name-en { font-size:26px; }
  .hero-stats { margin-top:6px; padding-bottom:6px; }
  .hero-skill { margin-top:7px; font-size:11px; gap:5px; }
  .hero-skill-stats { margin-top:6px; gap:5px 10px; }
  .hero-loadout { margin-top:8px; gap:3px; }
  .hero-loadout strong { font-size:9px; line-height:1.45; }
  .character-heading { margin-bottom:6px; }
  .character-button { grid-template-rows:36px minmax(30px,auto) 23px; gap:4px; padding-block:6px; }
  .character-button canvas { height:36px; }
  .character-speed strong { font-size:16px; }
  .character-name > strong { font-size:13px; }
  .character-name { gap:3px; }
  .modal-content { padding:22px; }
  #upgrade-content { padding:20px; }
}
@container (max-width:1000px) and (max-height:650px) {
  .stage-card { grid-template-columns:29% 1fr; grid-template-rows:1fr; height:88px; }
  .stage-card canvas { border-right:1px solid #6d979333; border-bottom:0; }
  .stage-info > strong { font-size:10px; }
  .stage-info > span { font-size:8px; }
  .stage-info { padding:8px; }
  .stage-number { top:5px; left:5px; font-size:8px; }
  .title-controls { gap:6px 10px; font-size:8px; }
}
@container (max-height:480px) {
  .intro-content { padding-top:44px; gap:9px; }
  .title-copy .eyebrow,.intro-description { display:none; }
  h1 { margin-bottom:10px; font-size:clamp(46px,10.4cqh,64px); }
  .intro-jp { font-size:14px; margin-bottom:10px; }
  .title-actions { width:260px; gap:5px; }
  .primary-button { height:39px; font-size:12px; }
  .primary-button small { font-size:8px; }
  .practice-button { min-height:27px; font-size:10px; }
  .stage-card { height:83px; }
  .stage-info small b { display:none; }
  .stage-info small { font-size:8px; margin:0; }
  .stage-heading h2 { font-size:10px; }
  .stage-heading > span { font-size:9px; }
  .title-controls { gap:6px 10px; font-size:8px; }
  .hero-kicker { display:none; }
  #hero-name { font-size:10px; }
  #hero-name-en { font-size:22px; }
  .hero-skill { font-size:9px; margin-top:3px; }
  .hero-stats { margin-top:4px; padding-bottom:4px; }
  .hero-loadout { display:none; }
  .character-heading h2 { font-size:10px; }
  .character-heading > span { font-size:8px; }
  .character-options { gap:4px; }
  .character-button { grid-template-rows:32px minmax(30px,auto) 21px; gap:3px; padding-block:5px; }
  .character-button canvas { height:32px; }
  .modal-content { padding:18px; }
  .modal-content h2 { font-size:38px; }
  .modal-content h2 span { font-size:13px; margin-top:8px; }
  .modal-content .primary-button { margin-top:15px; }
  .modal-content > p:not(.eyebrow) { margin:12px 0; }
  .pause-controls { margin-top:16px; padding-top:13px; }
  .upgrade-card { min-height:150px; padding:12px; }
  .upgrade-grid { margin-top:16px; gap:9px; }
}
@container (max-width:600px) {
  .intro-content { padding-inline:20px; }
  .title-hero { grid-template-columns:1.2fr 1fr; }
  h1 { font-size:clamp(54px,13cqw,84px); }
  .intro-jp { font-size:14px; }
  .intro-description { font-size:10px; }
  .eyebrow { font-size:8px; letter-spacing:0; }
  .bloom-mark { display:none; }
  .stage-heading > span { font-size:8px; }
  .stage-info { padding:7px; }
  .stage-info > strong { font-size:10px; }
  .stage-info > span { font-size:7px; letter-spacing:0; }
  .stage-info small { font-size:8px; gap:3px; }
  .stage-check { font-size:12px; }
  .title-controls { gap:6px 9px; font-size:8px; }
  .hero-figure { grid-template-columns:1fr; }
  #hero-portrait { width:100%; }
  .scene-caption { display:none; }
  .character-heading > span { font-size:7px; }
  .character-button { padding-inline:6px; }
  .character-card-top { gap:3px; }
  .character-button canvas { flex-basis:24px; width:24px; }
  .character-name strong span { display:none; }
  .character-name > strong { font-size:11px; }
  .character-name > span { font-size:9px; }
  .character-speed strong { font-size:13px; }
  .character-loadout { min-height:63px; font-size:9px; }
  .character-ability { flex-wrap:wrap; align-content:center; }
  .character-ability > strong { font-size:8px; }
  .character-ability kbd { display:none; }
  .character-cooldown { margin-left:0; }
  .title-actions { width:250px; }
  .primary-button { padding-left:12px; font-size:12px; }
  .primary-button > b { flex-basis:36px; }
  .practice-button span { font-size:8px; }
  .upgrade-grid { grid-template-columns:1fr; gap:8px; }
  .upgrade-card { display:grid; grid-template-columns:24px minmax(0,1fr); min-height:72px; padding:10px 12px; gap:3px 10px; }
  .upgrade-key { position:static; grid-column:1; grid-row:1 / 3; align-self:center; }
  .upgrade-tag,.upgrade-level { display:none; }
  .upgrade-name { grid-column:2; grid-row:1; margin:0; font-size:13px; }
  .upgrade-description { grid-column:2; grid-row:2; font-size:10px; }
}
@media (hover:none) and (pointer:coarse) { .mobile-note { display:block; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }

/* V9 / A lit, hard-edged 16-bit field terminal. Shared canvas HUD geometry stays intact. */
:root {
  --bg:#101e26; --ink:#09151d; --panel:#172d36; --line:#52716d;
  --cream:#fff0ce; --muted:#aac2b9; --pink:#ffb3a1; --mint:#a2dec2; --orange:#f6d084;
  --mono:'Cascadia Mono','Cascadia Code','Consolas',monospace;
  --pixel-corners:polygon(0 6px,6px 6px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 6px) calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 6px),0 calc(100% - 6px));
}
body { font-variant-numeric:tabular-nums; }
button:focus-visible { outline:none; box-shadow:inset 0 -2px var(--mint); }
.console-actions { border:2px solid #52716d; background:#11242e; box-shadow:0 3px var(--ink),inset 0 2px #82948844; }
.icon-button,.text-button { position:relative; border-left:2px solid #314b50; font-weight:700; transition:background .12s,transform .12s; }
.icon-button:hover,.text-button:hover { background:#36564f; }
.icon-button:active,.text-button:active { transform:translateY(2px); background:#0b1c24; }
.text-button[aria-pressed="false"] span { color:var(--pink); }
#sound,#fullscreen { font-size:0 !important; }
#sound::before { content:""; width:15px; height:15px; background:var(--mint); clip-path:polygon(0 33%,27% 33%,60% 0,60% 100%,27% 67%,0 67%); }
#sound::after { content:""; position:absolute; width:4px; height:11px; top:50%; left:calc(50% + 6px); border:2px solid var(--mint); border-left:0; transform:translateY(-50%); }
#sound[aria-pressed="false"]::before { background:#879b94; }
#sound[aria-pressed="false"]::after { width:16px; height:3px; border:0; background:var(--pink); left:50%; transform:translate(-50%,-50%) rotate(-45deg); }
#fullscreen::before { content:""; width:15px; height:15px; background:linear-gradient(var(--cream),var(--cream)) 0 0/6px 3px no-repeat,linear-gradient(var(--cream),var(--cream)) 0 0/3px 6px no-repeat,linear-gradient(var(--cream),var(--cream)) 100% 0/6px 3px no-repeat,linear-gradient(var(--cream),var(--cream)) 100% 0/3px 6px no-repeat,linear-gradient(var(--cream),var(--cream)) 0 100%/6px 3px no-repeat,linear-gradient(var(--cream),var(--cream)) 0 100%/3px 6px no-repeat,linear-gradient(var(--cream),var(--cream)) 100% 100%/6px 3px no-repeat,linear-gradient(var(--cream),var(--cream)) 100% 100%/3px 6px no-repeat; }
body[data-screen="title"] .run-meta { top:25px; left:5.5%; padding:7px 10px; border-left:3px solid var(--pink); background:#10242bd9; text-shadow:2px 2px var(--ink); }
body[data-screen="title"] .run-meta strong { color:var(--cream); font-size:13px; font-weight:700; }
body[data-screen="title"] .console-actions { top:22px; right:5.5%; height:34px; }
body[data-screen="title"] .icon-button,body[data-screen="title"] .text-button { min-width:35px; padding-inline:10px; }

/* Only this title-owned layer displays environment key art. */
.screen-overlay { background:#09151dcc; }
body[data-screen="title"] .screen-overlay { background:#12262c; }
.intro-content { padding:82px 5.5% 18px; gap:14px; }
.title-backdrop { position:absolute; z-index:-3; inset:0; pointer-events:none; background-image:var(--scene-art,url('assets/environment/overgrowth-v9.png')); background-size:cover; background-position:center; image-rendering:pixelated; }
.title-backdrop::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#10232bef 0%,#10232bca 27%,#10232b55 57%,#10232b20 100%),linear-gradient(0deg,#0e202be3 0%,#0e202b25 50%,#0e202b1a 76%,#0e202b85 100%); }
.intro-content::before { inset:10px; background:none; mask-image:none; border:2px solid #a2dec23b; box-shadow:inset 0 0 0 4px #09151d29; clip-path:var(--pixel-corners); }
.intro-content::after { content:""; position:absolute; z-index:-1; top:18px; left:18px; width:4px; height:4px; background:var(--mint); box-shadow:calc(100cqw - 40px) 0 var(--mint),0 calc(100cqh - 40px) var(--mint),calc(100cqw - 40px) calc(100cqh - 40px) var(--mint); pointer-events:none; }
.cabinet-label { position:absolute; top:64px; left:5.5%; right:5.5%; display:flex; align-items:center; gap:12px; color:#bad5c5; font:8px var(--mono); letter-spacing:.13em; pointer-events:none; }
.cabinet-label i { height:2px; flex:1; background:linear-gradient(90deg,#a2dec270,#a2dec210); }
.cabinet-label span:last-child { color:var(--mint); }
.title-hero { grid-template-columns:.9fr 1.25fr; gap:3%; }
.title-copy { min-height:0; padding-block:4px; }
.eyebrow { color:var(--mint); font-weight:700; letter-spacing:.1em; }
h1 { margin-bottom:15px; color:var(--cream); font-size:clamp(70px,10.5cqh,132px); letter-spacing:.015em; transform:none; text-shadow:3px 0 var(--ink),0 3px var(--ink),-3px 0 var(--ink),0 -3px var(--ink),6px 7px #10252b,8px 9px #7b8270; }
h1 > span { margin-top:6px; }
.title-star { display:block; top:.03em; left:100%; margin-left:.13em; width:.29em; height:.29em; font-size:inherit; background:var(--mint); clip-path:polygon(33% 0,66% 0,66% 21%,79% 21%,79% 33%,100% 33%,100% 66%,79% 66%,79% 79%,66% 79%,66% 100%,33% 100%,33% 79%,21% 79%,21% 66%,0 66%,0 33%,21% 33%,21% 21%,33% 21%); }
.intro-jp { margin-bottom:10px; font-size:clamp(18px,2.6cqh,28px); font-weight:800; text-shadow:2px 2px var(--ink); }
.intro-description { margin-bottom:15px; color:#d4e3cb; font-size:12px; line-height:1.75; text-shadow:1px 2px var(--ink); }
.title-actions { width:320px; gap:9px; }
.primary-button { width:320px; height:auto; min-height:54px; border:0; background:var(--pink); color:#15272c; clip-path:var(--pixel-corners); box-shadow:inset 0 3px #ffddbf,inset 0 -5px #b86e62; font-size:15px; font-weight:800; transition:background .12s,transform .12s; }
.primary-button small { margin-top:4px; font-weight:700; }
.primary-button small kbd { height:15px; background:#ffddbf70; box-shadow:none; }
.primary-button > b { flex-basis:51px; height:auto; align-self:stretch; margin-block:5px; border-left:2px solid #8c5e5466; font-size:29px; font-weight:700; }
.primary-button:hover { background:#ffd0b7; transform:translateY(-2px); }
.primary-button:active { transform:translateY(3px); box-shadow:inset 0 3px #b86e62,inset 0 -2px #ffddbf; }
.subtle-button { min-height:36px; padding:8px 12px 10px; border:2px solid #62867c; background:#203b40; color:var(--cream); box-shadow:inset 0 2px #a2dec225,inset 0 -3px #0d1d27; font-size:12px; font-weight:600; transition:background .12s,transform .12s,border-color .12s; }
.subtle-button:hover { border-color:var(--mint); background:#35564e; transform:translateY(-1px); }
.subtle-button:active { transform:translateY(2px); }
.practice-button { color:var(--mint); }
.practice-button span { color:#c1d2c3; font-size:10px; font-weight:400; }
.hero-figure { grid-template-columns:.8fr 1fr; gap:12px; }
.hero-orbit { width:min(18cqw,30cqh); border:2px solid #b3d8b94d; transform:translate(-50%,-43%); box-shadow:0 0 0 10px #12273029,0 0 0 12px #a2dec224,inset 0 -20px #132d3133; clip-path:var(--pixel-corners); }
.hero-orbit::before { width:7px; height:7px; left:7px; top:7px; }
.hero-orbit::after { width:7px; height:7px; right:7px; bottom:7px; }
.scene-caption { padding:15px 16px 17px; border:2px solid #829983; background:#142a31ef; box-shadow:inset 0 3px #d2dcb72e,inset 0 -5px #091a24; clip-path:var(--pixel-corners); }
.hero-kicker { color:#b2ceba; font-weight:700; letter-spacing:.1em; }
#hero-name { color:var(--cream); font-size:13px; font-weight:700; }
.hero-stats { gap:7px 12px; margin-top:10px; border-bottom:2px solid #506f6466; font-size:11px; color:#bbd2bf; }
#hero-role { font-size:12px; }
#hero-speed { color:var(--cream); font-size:14px; }
#hero-speed-value { color:var(--muted); font-size:9px; }
.hero-skill { color:var(--cream); font-size:13px; }
.scene-caption p { color:#d4dfca; font-size:11px; line-height:1.7; }
.scene-caption .hero-description { color:var(--muted); }
.hero-skill-stats { gap:6px 12px; color:var(--muted); font-size:10px; }
.hero-skill-stats strong { font-size:12px; }
.hero-loadout > span { color:#a8c1af; }
.hero-loadout strong { color:#e6e7ca; font-size:11px; font-weight:500; }

/* Physical selector banks. Character art canvases and their source data stay native. */
.character-heading h2,.stage-heading h2 { position:relative; padding-left:14px; color:var(--cream); font-size:14px; font-weight:800; letter-spacing:.07em; text-shadow:2px 2px var(--ink); }
.character-heading h2::before,.stage-heading h2::before { content:""; position:absolute; left:0; top:50%; width:6px; height:6px; background:var(--pink); box-shadow:3px 3px #7b6357; transform:translateY(-50%); }
.stage-heading h2::before { background:var(--mint); box-shadow:3px 3px #426857; }
.character-heading > span,.stage-heading > span { color:#c6dac8; font:9px var(--mono); text-shadow:1px 1px var(--ink); }
.character-button { --character-accent:var(--pink); grid-template-rows:42px minmax(30px,auto) 24px; gap:5px; padding:10px 14px 11px; border:2px solid #68847b; background:#19343aef; box-shadow:inset 0 2px #ced8b823,inset 0 -4px #0b1b25; clip-path:var(--pixel-corners); transition:background .12s,transform .12s; }
.character-button::before { content:""; position:absolute; top:5px; right:6px; width:4px; height:4px; background:#789184; box-shadow:-7px 0 #789184; }
.character-button[aria-pressed="true"] { background:#304943f5; box-shadow:inset 0 3px var(--character-accent),inset 0 -5px #152b30; }
.character-button[aria-pressed="true"]::before { background:var(--character-accent); box-shadow:-7px 0 var(--character-accent); }
.character-button[aria-pressed="true"]::after { inset:0 auto 0 0; width:4px; height:auto; }
.character-button:hover { background:#37584e; transform:translateY(-2px); }
.character-button:active { transform:translateY(2px); }
.character-name > strong { font-size:17px; font-weight:800; }
.character-name strong span { color:var(--cream); font-size:10px; }
.character-name > span { color:#d4e0cb; font-size:11px; }
.character-speed { color:#b5cbb6; font-size:9px; }
.character-speed strong { color:var(--cream); font-size:20px; font-weight:800; }
.character-loadout { grid-template-columns:42px minmax(0,1fr); color:#d9e3ce; font-size:10px; }
.comparison-label { color:#aac1ae; font-size:9px; }
.character-ability { border-top:2px solid #7b96824d; color:var(--cream); }
.character-ability > strong { font-size:11px; }
.character-cooldown { color:#a6c0ae; }
.character-cooldown b { font-size:12px; }
.stage-card { --stage-art:url('assets/environment/overgrowth-v9.png'); display:flex; height:112px; border:2px solid #6a877b; background-color:#1a343a; background-image:linear-gradient(90deg,#10232bf5 0%,#10232bb8 47%,#10232b1a 100%),var(--stage-art); background-size:cover; background-position:center; image-rendering:pixelated; clip-path:var(--pixel-corners); box-shadow:inset 0 2px #cbd7b629,inset 0 -5px #091a24; transition:transform .12s; }
.stage-card[data-stage="1"] { --stage-art:url('assets/environment/rustworks-v9.png'); }
.stage-card[data-stage="2"] { --stage-art:url('assets/environment/moonglass-v9.png'); }
.stage-card[aria-pressed="true"] { background-color:#223d3c; background-image:linear-gradient(90deg,#10232bf5 0%,#10232bb8 47%,#10232b1a 100%),var(--stage-art); box-shadow:inset 0 3px var(--stage-accent),inset 0 -5px #091a24; }
.stage-card::after { border-bottom-width:5px; }
.stage-card:hover { transform:translateY(-2px); }
.stage-card:active { transform:translateY(2px); }
.stage-card canvas { position:absolute; right:8px; bottom:12px; width:68px; height:31px; border:2px solid #b7d1b366; box-shadow:2px 2px #0c1b24; }
.stage-card[aria-pressed="true"] canvas { border-color:var(--stage-accent); }
.stage-number { top:9px; left:11px; padding:0; background:none; font-size:11px; font-weight:800; }
.stage-info { position:relative; width:100%; padding:22px 13px 10px; gap:5px; text-shadow:1px 2px #08191f; }
.stage-info > strong { color:var(--cream); font-size:16px; line-height:1.3; }
.stage-info > span { color:#cfdfc8; font-size:9px; }
.stage-info small { gap:7px; margin-top:3px; padding-right:74px; font-size:10px; }
.stage-info small b { border:0; background:#13282de8; color:#e0e6cd; }
.stage-check { top:9px; right:8px; width:45px; min-height:18px; font-size:0; }
.stage-check::after { content:"未選択"; display:block; text-align:center; color:#d4e1c7; font:9px var(--sans); }
.stage-card[aria-pressed="true"] .stage-check { background:var(--stage-accent); clip-path:polygon(0 4px,4px 4px,4px 0,100% 0,100% 100%,0 100%); }
.stage-card[aria-pressed="true"] .stage-check::after { content:"選択中"; padding:3px 4px; color:#142a30; font-weight:800; }

/* The existing live inventory keeps its canvas artwork and exact HUD dock rectangle. */
.weapon-card { border:2px solid #52716d; background:#142632f5; box-shadow:inset 0 2px #9bb29d33,inset 0 -3px #09151d; transition:background .12s,transform .12s; }
.weapon-card::before { height:calc(3px * var(--hud-scale)); background:#688077; }
.weapon-card.active,.weapon-card[aria-pressed="true"] { background:#29473ff5; }
.weapon-card:hover:not(:disabled) { background:#35584e; }
.weapon-card:active:not(:disabled) { transform:translateY(2px); }
.weapon-card > strong,.slot-ammo { color:var(--cream); }
.slot-ammo { font-weight:700; }
.slot-state { color:#b9d1b9; }
.weapon-condition { background:var(--ink); }
.weapon-condition i { box-shadow:inset 0 1px #e0f2c6; }

/* Framed pause, results and mutation plates. */
.modal-content { position:relative; width:480px; padding:32px; border:3px solid #87a18a; background:#142b34f5; box-shadow:0 8px #07141d,inset 0 4px #d4e3b638,inset 0 -6px #09151d; }
.modal-content::before { content:""; position:absolute; top:9px; left:9px; width:4px; height:4px; background:var(--mint); box-shadow:0 7px #52716d; pointer-events:none; }
.modal-content h2 { font-size:clamp(40px,9cqh,72px); text-shadow:3px 4px var(--ink); }
.modal-content h2 span { font-size:17px; font-weight:800; text-shadow:none; }
.modal-content > p:not(.eyebrow) { color:#bfd2be; line-height:1.75; }
.return-button { margin-top:14px; border-color:#62867c; background:#142a32; color:#bdd3bc; text-decoration:none; }
.run-results { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:8px; margin:25px 0; color:#b7cbb8; }
.run-results > div { padding:12px 4px; border-bottom:3px solid #658777; background:#0b2029; }
.run-results strong { color:var(--cream); font-size:27px; font-weight:700; letter-spacing:.02em; }
.run-results > div:first-child strong { color:var(--mint); }
#upgrade-content { width:860px; padding:30px; }
#upgrade-content h2 { font-size:clamp(38px,8cqh,56px); }
#upgrade-content h2 span { font-size:14px; letter-spacing:.06em; }
.upgrade-grid { gap:14px; margin-top:27px; }
.upgrade-card { min-height:200px; padding:23px 17px 18px; border:2px solid #718e7e; background:#203e43; clip-path:var(--pixel-corners); box-shadow:inset 0 -5px #0d222b; transition:background .12s,transform .12s; }
.upgrade-card::before { top:0; left:0; right:0; height:5px; box-shadow:0 3px #07151d; }
.upgrade-card:hover,.upgrade-card:focus-visible { background:#36584d; transform:translateY(-3px); }
.upgrade-card:active { transform:translateY(2px); }
.upgrade-key { top:15px; width:23px; height:23px; border:2px solid #6b8a77; background:#112731; font-weight:700; box-shadow:0 3px #09151d; }
.upgrade-name { margin-top:12px; font-size:18px; }
.upgrade-description { color:#d3dfc9; font-size:12px; }
.upgrade-level { padding-top:9px; border-top:2px solid #70917a44; color:#b9d3ba; }
kbd { border-color:#789382; border-radius:0; background:#142b34; box-shadow:0 2px #09151d; color:#f1eacd; font-weight:700; }
.controls { color:#c2d5be; }
.title-controls { text-shadow:1px 2px var(--ink); }
.pause-controls { border-top:2px solid #52716d88; }
.help-overlay { position:absolute; z-index:45; inset:0; display:grid; place-items:center; padding:24px; background:#09151de6; text-align:center; }
.help-content { width:740px; padding:35px 28px 25px; }
.help-content .eyebrow { margin-top:12px; }
.help-content h2 { font-size:52px; }
.help-content h2 span { font-size:16px; }
.help-content > p:not(.eyebrow) { margin:16px 0 21px; }
.help-close { position:absolute; top:9px; right:11px; display:flex; align-items:center; gap:8px; padding:4px 5px; border:0; background:transparent; color:#c4d7be; font-size:10px; }
.help-close:hover { color:var(--pink); }
.help-close kbd { height:17px; font-size:8px; }
.help-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 12px; text-align:left; }
.help-grid > div { display:grid; grid-template-columns:103px 1fr; align-items:center; gap:4px 10px; min-width:0; padding:10px 11px; border-left:3px solid #7ea58c; background:#203d42; box-shadow:inset 0 -3px #0e222b; }
.help-grid > div > kbd { grid-row:1 / 3; height:27px; font-size:10px; border-color:#8bab90; background:#112932; }
.help-grid strong { font-size:12px; }
.help-grid span { color:#b5cbb5; font-size:10px; line-height:1.5; }
.help-grid span kbd { height:14px; min-width:14px; font-size:8px; }
.help-fieldnotes { display:flex; align-items:center; gap:15px; margin-top:17px; padding:13px 15px; border:2px solid #567c6a; background:#102a31; text-align:left; }
.help-fieldnotes p { margin:0; color:#b9d0b7; font-size:11px; line-height:1.8; }
.help-fieldnotes strong { color:var(--mint); }
.resource-glyph { position:relative; flex:0 0 19px; width:19px; height:24px; border:3px solid var(--orange); box-shadow:4px 4px var(--ink); }
.resource-glyph::before { content:""; position:absolute; inset:3px; background:var(--orange); }
.resource-glyph::after { content:""; position:absolute; width:7px; height:4px; top:-7px; left:3px; background:var(--orange); }

@container (min-width:1800px) {
  .intro-content { padding-inline:max(7%,calc((100cqw - 1800px)/2)); padding-top:94px; padding-bottom:28px; gap:20px; }
  body[data-screen="title"] .run-meta { left:max(7%,calc((100cqw - 1800px)/2)); }
  body[data-screen="title"] .console-actions { right:max(7%,calc((100cqw - 1800px)/2)); }
  .cabinet-label { left:max(7%,calc((100cqw - 1800px)/2)); right:max(7%,calc((100cqw - 1800px)/2)); top:69px; }
  .title-hero { grid-template-columns:.85fr 1.2fr; gap:5%; }
  .character-button { grid-template-rows:52px 35px 31px; gap:8px; padding:14px 20px; }
  .character-name > strong { font-size:23px; }
  .character-name strong span { font-size:12px; }
  .character-name > span,.character-loadout,.character-ability > strong { font-size:13px; }
  .character-speed strong { font-size:25px; }
  .character-cooldown b { font-size:14px; }
  .stage-card { height:145px; }
  .stage-info { padding:27px 18px 13px; gap:9px; }
  .stage-info > strong { font-size:21px; }
  .stage-info > span,.stage-info small { font-size:12px; }
  .stage-card canvas { width:100px; height:46px; bottom:16px; right:13px; }
  .stage-number { top:12px; left:17px; font-size:13px; }
  .stage-info small { padding-right:105px; }
  .stage-info small b { font-size:11px; }
  .scene-caption { padding:20px 23px 23px; }
  .scene-caption p,.hero-loadout strong { font-size:13px; }
  .hero-skill { font-size:16px; }
  .hero-skill-stats { font-size:12px; }
  .hero-skill-stats strong { font-size:14px; }
  .hero-stats { font-size:13px; }
  #hero-role { font-size:14px; }
  .title-controls { font-size:12px; gap:20px; }
}
@container (max-width:1000px) {
  .intro-content { padding:80px 4.5% 16px; gap:12px; }
  body[data-screen="title"] .run-meta { left:4.5%; }
  body[data-screen="title"] .console-actions { right:4.5%; }
  .cabinet-label { left:4.5%; right:4.5%; }
  .title-hero { grid-template-columns:.83fr 1.25fr; gap:2%; }
  h1 { font-size:clamp(62px,9.6cqh,92px); }
  .title-copy .eyebrow { font-size:8px; letter-spacing:.02em; gap:6px; }
  .title-copy .bloom-mark { flex-basis:12px; width:12px; height:12px; }
  .bloom-mark i { width:3px; height:3px; inset:4px; }
  .intro-jp { font-size:18px; letter-spacing:.05em; }
  .title-actions { width:278px; gap:7px; }
  .primary-button { min-height:51px; padding-left:13px; font-size:13px; }
  .primary-button > b { flex-basis:40px; }
  .practice-button { min-height:34px; padding:6px 9px 9px; font-size:11px; }
  .practice-button span { font-size:9px; }
  .hero-figure { grid-template-columns:.62fr 1fr; gap:8px; }
  #hero-portrait { width:38%; }
  .hero-orbit { left:18%; width:15cqw; }
  .scene-caption { padding:13px 11px 14px; }
  #hero-name-en { font-size:27px; }
  #hero-name { font-size:11px; }
  .hero-kicker { font-size:7px; letter-spacing:.03em; }
  .hero-kicker b { font-size:8px; }
  .hero-stats { gap:6px 8px; margin-top:8px; padding-bottom:7px; font-size:10px; }
  #hero-role { font-size:10px; }
  #hero-speed { font-size:12px; }
  #hero-speed-value { font-size:8px; }
  .hero-skill { font-size:11px; gap:5px; margin-top:8px; }
  .scene-caption p { font-size:10px; line-height:1.55; margin-top:6px; }
  .hero-skill-stats { gap:5px 9px; margin-top:7px; font-size:9px; }
  .hero-skill-stats strong { font-size:10px; }
  .hero-loadout { margin-top:8px; gap:4px; }
  .hero-loadout strong { font-size:10px; }
  .character-heading h2,.stage-heading h2 { font-size:13px; }
  .character-heading > span,.stage-heading > span { font-size:8px; }
  .character-options,.stage-grid { gap:9px; }
  .character-button { padding:9px 9px 10px; grid-template-rows:40px minmax(31px,auto) 23px; gap:5px; }
  .character-card-top { gap:6px; }
  .character-name > strong { font-size:14px; }
  .character-name strong span { font-size:9px; margin-left:2px; }
  .character-name > span { font-size:10px; }
  .character-speed { font-size:8px; }
  .character-speed strong { font-size:18px; }
  .character-loadout { grid-template-columns:minmax(0,1fr); gap:0; font-size:10px; min-height:31px; }
  .comparison-label { display:none; }
  .character-ability { gap:4px; padding-top:5px; }
  .character-ability kbd { font-size:6px; padding-inline:2px; }
  .character-ability > strong { font-size:9px; }
  .character-cooldown { font-size:7px; }
  .character-cooldown b { font-size:10px; }
  .stage-card { height:108px; }
  .stage-info { padding:20px 10px 9px; gap:5px; }
  .stage-info > strong { font-size:13px; }
  .stage-info > span { font-size:8px; }
  .stage-info small { font-size:9px; gap:4px; padding-right:50px; }
  .stage-info small b { font-size:8px; padding:1px 3px; }
  .stage-card canvas { width:48px; height:23px; right:7px; bottom:12px; }
  .stage-number { left:9px; font-size:10px; }
  .stage-check { top:8px; right:7px; width:40px; }
  .stage-check::after { font-size:8px; }
  .controls { gap:7px 10px; }
  .title-controls { font-size:9px; }
}
@container (max-height:820px) {
  .intro-description,.scene-caption .hero-description { display:none; }
  .title-copy .eyebrow { margin-bottom:11px; }
  h1 { font-size:clamp(66px,10cqh,90px); margin-bottom:14px; }
  .intro-jp { font-size:20px; margin-bottom:13px; }
  .title-actions .primary-button { min-height:51px; }
  .scene-caption { padding-block:13px 14px; }
  .hero-identity { margin-top:7px; }
  .hero-skill { margin-top:8px; }
  .hero-stats { margin-top:8px; padding-bottom:8px; }
  .scene-caption p { margin-top:7px; }
  .hero-loadout { margin-top:8px; }
}
@container (min-width:1001px) and (min-height:651px) and (max-height:820px) {
  /* Compact desktop hero content rises above its row; keep the rail in the header band. */
  .cabinet-label { top:57px; }
}
@container (max-height:650px) {
  .intro-content { padding-top:65px; padding-bottom:13px; gap:10px; }
  .cabinet-label { top:52px; font-size:7px; }
  body[data-screen="title"] .run-meta { top:17px; padding-block:5px; }
  body[data-screen="title"] .console-actions { top:15px; height:30px; }
  .title-copy .eyebrow { margin-bottom:8px; font-size:8px; }
  h1 { margin-bottom:12px; font-size:clamp(52px,10cqh,70px); }
  .intro-jp { margin-bottom:9px; font-size:17px; }
  .title-actions { gap:6px; width:280px; }
  .title-actions .primary-button { min-height:44px; font-size:12px; }
  .primary-button small { font-size:8px; margin-top:3px; }
  .practice-button { min-height:29px; padding-block:4px 7px; font-size:10px; }
  .character-heading,.stage-heading { margin-bottom:6px; }
  .character-heading h2,.stage-heading h2 { font-size:11px; }
  .character-button { grid-template-rows:34px minmax(27px,auto) 21px; gap:4px; padding-block:7px 9px; }
  .character-button canvas { height:36px; }
  .character-name > strong { font-size:14px; }
  .character-speed strong { font-size:17px; }
  .character-loadout { font-size:9px; }
  .character-ability > strong { font-size:10px; }
  .stage-card { height:90px; }
  .stage-info > strong { font-size:13px; }
  .stage-info { gap:3px; padding-top:20px; }
  .stage-info small { margin-top:2px; }
  .stage-card canvas { width:57px; height:26px; }
  .scene-caption { padding:11px 12px 13px; }
  #hero-name-en { font-size:26px; }
  .hero-identity { margin-top:5px; }
  .hero-stats { gap:5px 9px; margin-top:6px; padding-bottom:6px; font-size:9px; }
  #hero-role { font-size:10px; }
  .hero-skill { font-size:11px; margin-top:6px; }
  .scene-caption p { font-size:9px; line-height:1.45; margin-top:5px; }
  .hero-skill-stats { margin-top:6px; font-size:8px; }
  .hero-skill-stats strong { font-size:10px; }
  .hero-loadout { margin-top:6px; gap:3px; }
  .hero-loadout strong { font-size:9px; line-height:1.45; }
  .title-controls { font-size:8px; gap:6px 12px; }
  .title-controls kbd { height:16px; font-size:8px; }
  .modal-content { padding:24px; }
  .help-content { padding:30px 24px 20px; }
  .help-content h2 { font-size:42px; }
  .help-content h2 span { margin-top:9px; font-size:14px; }
  .help-content > p:not(.eyebrow) { margin:12px 0 15px; font-size:11px; }
  .help-grid { gap:7px 10px; }
  .help-grid > div { padding:7px 9px; }
  .help-fieldnotes { margin-top:12px; padding:9px 12px; }
}
@container (max-width:1000px) and (max-height:820px) {
  .title-copy .eyebrow { font-size:7px; }
  .intro-jp { font-size:17px; }
  .character-button { padding-inline:8px; }
  .character-name > strong { font-size:13px; }
  .character-name strong span { font-size:8px; }
  .character-ability > strong { font-size:9px; }
  .character-ability kbd { display:none; }
  .stage-info > strong { font-size:12px; }
}
@container (max-height:480px) {
  .intro-content { padding-top:52px; gap:7px; padding-bottom:11px; }
  .cabinet-label,.title-copy .eyebrow,.hero-kicker { display:none; }
  h1 { font-size:clamp(43px,10cqh,55px); margin-bottom:9px; }
  .intro-jp { font-size:14px; margin-bottom:7px; }
  .title-actions .primary-button { min-height:36px; font-size:11px; }
  .primary-button small { font-size:7px; }
  .practice-button { min-height:26px; font-size:9px; }
  .character-button { grid-template-rows:29px minmax(25px,auto) 19px; gap:3px; padding-block:5px 7px; }
  .character-button canvas { height:31px; }
  .character-name > strong { font-size:12px; }
  .character-name > span { font-size:9px; }
  .character-speed strong { font-size:14px; }
  .character-ability kbd { display:none; }
  .character-ability > strong { font-size:9px; }
  .character-cooldown b { font-size:10px; }
  .stage-card { height:75px; }
  .stage-info { padding-top:16px; gap:3px; }
  .stage-info > strong { font-size:11px; }
  .stage-info > span { font-size:7px; }
  .stage-info small { font-size:8px; }
  .stage-info small b { display:none; }
  .stage-card canvas { width:48px; height:22px; bottom:10px; }
  .stage-number { top:6px; font-size:8px; }
  .stage-check { top:5px; }
  .hero-loadout { display:none; }
  .scene-caption { padding:9px 10px 11px; }
  #hero-name-en { font-size:22px; }
  .hero-skill { font-size:10px; }
  .modal-content h2 { font-size:39px; }
  .modal-content h2 span { font-size:13px; margin-top:9px; }
  .upgrade-card { min-height:150px; padding:17px 13px 14px; }
  .upgrade-name { font-size:15px; }
  .upgrade-description { font-size:10px; }
}
@container (max-width:600px) {
  .intro-content { padding-inline:21px; }
  body[data-screen="title"] .run-meta { left:21px; font-size:8px; }
  body[data-screen="title"] .run-meta strong { font-size:10px; }
  body[data-screen="title"] .console-actions { right:21px; }
  body[data-screen="title"] .icon-button,body[data-screen="title"] .text-button { min-width:28px; padding-inline:6px; }
  .cabinet-label { left:21px; right:21px; font-size:6px; }
  .title-hero { grid-template-columns:1.1fr .9fr; gap:8px; }
  .title-copy .eyebrow { font-size:6px; letter-spacing:0; }
  h1 { font-size:clamp(48px,12cqw,76px); }
  .title-star { width:.22em; height:.22em; margin-left:.08em; }
  .intro-jp { font-size:13px; }
  .title-actions .primary-button { padding-left:10px; font-size:11px; }
  .primary-button > b { flex-basis:30px; font-size:23px; }
  .primary-button small { gap:5px; font-size:7px; }
  .practice-button { font-size:10px; }
  .practice-button span { font-size:8px; }
  .hero-figure { grid-template-columns:1fr; }
  #hero-portrait { width:100%; }
  .hero-orbit { left:50%; width:22cqw; }
  .character-heading h2,.stage-heading h2 { font-size:11px; padding-left:10px; letter-spacing:.02em; }
  .character-heading > span,.stage-heading > span { font-size:6px; }
  .character-options,.stage-grid { gap:5px; }
  .character-button { padding-inline:6px; }
  .character-name > strong { font-size:11px; }
  .character-name > span { font-size:8px; }
  .character-speed { font-size:7px; }
  .character-speed strong { font-size:12px; }
  .character-loadout { font-size:8px; min-height:40px; }
  .character-ability { flex-wrap:wrap; gap:2px; align-content:center; }
  .character-ability > strong { font-size:8px; }
  .character-cooldown { margin-left:0; font-size:7px; }
  .character-cooldown b { font-size:9px; }
  .stage-info { padding-inline:7px; gap:4px; }
  .stage-info > strong { font-size:9px; letter-spacing:0; }
  .stage-info > span { font-size:6px; letter-spacing:0; }
  .stage-info small { padding-right:0; font-size:7px; gap:3px; }
  .stage-info small b { font-size:7px; }
  .stage-card canvas { display:none; }
  .stage-number { left:7px; font-size:9px; }
  .stage-check { right:4px; width:34px; }
  .stage-check::after { font-size:7px; }
  .upgrade-card { min-height:77px; padding:13px 12px; gap:4px 11px; }
  .upgrade-name { margin:0; font-size:14px; }
  .upgrade-description { font-size:11px; }
  .help-content { padding:32px 16px 20px; }
  .help-content h2 { font-size:37px; }
  .help-content h2 span { font-size:13px; }
  .help-grid { grid-template-columns:1fr; }
  .help-grid > div { grid-template-columns:95px 1fr; padding:7px 10px; }
  .run-results { gap:5px; }
  .run-results strong { font-size:23px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }

/* Readable live text stays at CSS pixel sizes while the panels remain compact. */
body:not([data-screen="title"]) .run-meta { font-size:12px; line-height:18px; gap:12px; }
body:not([data-screen="title"]) .run-meta strong { font-size:14px; }
body:not([data-screen="title"]) .console-actions { min-height:30px; }
body:not([data-screen="title"]) .icon-button { min-width:32px; font-size:17px; }
body:not([data-screen="title"]) .text-button { font-size:12px; }
.weapon-card > strong { font-size:13px; line-height:1.25; }
.weapon-top kbd { font-size:11px; }
.slot-ammo { font-size:12px; font-weight:700; }
.slot-state { font-size:11px; line-height:1.2; }
.weapon-card[data-empty="true"] .slot-state { display:none; }
#run-amulets p { font-size:13px; line-height:1.6; }
.run-amulet-panel h3 { font-size:14px; }
.help-grid strong { font-size:14px; }
.help-grid span,.help-fieldnotes p { font-size:12px; }
body[data-screen="title"] #hud-canvas { visibility:hidden; }

/* Readable field notes: the fixed header keeps filters visible as cards scroll. */
.amulet-overlay { position:absolute; z-index:45; inset:0; display:grid; place-items:center; padding:24px; background:#07151bea; }
.amulet-content { display:flex; flex-direction:column; width:min(1050px,100%); max-height:100%; min-height:0; padding:24px; border:3px solid #94b8a0; background:#132a33; box-shadow:0 8px #07141d,inset 0 3px #cce6c42e; }
.amulet-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.amulet-header .eyebrow { margin:0 0 7px; color:#aac9b3; font-size:12px; }
.amulet-header h2 { margin:0; font-size:28px; color:#f1e8c8; letter-spacing:.04em; }
.amulet-header p:not(.eyebrow) { max-width:760px; margin:9px 0 0; color:#bcd1c1; font-size:14px; line-height:1.65; }
#close-amulets { flex-shrink:0; margin:0; min-height:36px; font-size:13px; }
.amulet-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin:18px 0; }
.amulet-stat { padding:9px 10px; border-left:3px solid #9ccca6; background:#0d2028; }
.amulet-stat span { display:block; color:#a9c8b7; font-size:13px; }
.amulet-stat strong { display:block; margin-top:3px; color:#f0eacc; font:700 21px var(--mono); }
.amulet-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.amulet-tabs { display:flex; gap:5px; margin-right:auto; }
.amulet-tabs button { padding:9px 14px; border:1px solid #638a7a; background:#17353d; font-size:14px; }
.amulet-tabs button[aria-pressed="true"] { border-color:#d0ebba; background:#365649; color:#fff3ce; box-shadow:inset 0 -3px #9cc79a; }
.amulet-toolbar label { display:flex; align-items:center; gap:7px; color:#bcd0bf; font-size:13px; }
.amulet-toolbar select { min-height:36px; max-width:170px; padding:5px 25px 5px 9px; border:1px solid #638a7a; border-radius:0; background:#0d2028; color:#e7ead2; font:14px var(--sans); }
.amulet-toolbar select:focus-visible { outline:2px solid var(--pink); }
.amulet-results { margin:13px 0 10px; color:#aac8b4; font-size:13px; }
.amulet-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; min-height:100px; overflow:auto; padding:2px 8px 8px 2px; overscroll-behavior:contain; scrollbar-color:#6c9d8c #0d2028; scrollbar-width:thin; }
.amulet-card { --rarity-color:#b9cdbb; display:flex; flex-direction:column; min-width:0; padding:15px; border:1px solid #4c6e69; border-top:3px solid var(--rarity-color); background:#1a353d; box-shadow:inset 0 -3px #0c222b; }
.amulet-card[data-owned="true"] { background:#23413e; border-color:#789c7b; border-top-color:var(--rarity-color); }
.amulet-card-head { display:flex; align-items:center; gap:10px; }
.amulet-icon { width:44px; height:44px; flex-shrink:0; image-rendering:pixelated; background:#102730; }
.amulet-rarity { color:var(--rarity-color); font-size:13px; font-weight:700; }
.amulet-card h3 { margin:4px 0 0; color:#f0ecd6; font-size:17px; line-height:1.4; }
.amulet-category { margin:10px 0; color:#b1cebb; font-size:13px; }
.amulet-effect { color:#f5d990; font-size:16px; }
.amulet-description { margin:7px 0 12px; color:#c2d6c5; font-size:14px; line-height:1.65; }
.amulet-current { margin-top:auto; padding-top:10px; border-top:1px solid #75978455; }
.amulet-current span { display:block; color:#93b59e; font-size:13px; }
.amulet-current strong { display:block; margin-top:4px; color:#dbe7c7; font-size:14px; line-height:1.5; }
.amulet-empty { grid-column:1/-1; padding:35px 15px; text-align:center; color:#b6cfbd; font-size:15px; line-height:1.8; }
.win-content { width:min(620px,100%); border-color:#d6c07f; background:#173238f7; }
.win-content h2 { color:#f3dd92; }
.victory-mark { margin:0 auto 10px; color:#f4db91; font:48px var(--mono); text-shadow:3px 3px #8c714b; }
.win-content .win-results { grid-template-columns:1.5fr .8fr .8fr 1fr; gap:8px; }
.win-content .subtle-button { margin:14px auto 0; font-size:14px; }
@media(max-width:950px) { .amulet-stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin:13px 0; } .amulet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .amulet-content { padding:18px; } .amulet-header h2 { font-size:25px; } }
@media(max-width:580px) { .amulet-overlay { padding:10px; } .amulet-content { padding:14px; } .amulet-header { gap:10px; } .amulet-header h2 { font-size:21px; } .amulet-header p:not(.eyebrow) { font-size:13px; } .amulet-header .eyebrow { font-size:10px; } .amulet-grid { grid-template-columns:minmax(0,1fr); } .amulet-stat strong { font-size:18px; } .amulet-toolbar { gap:8px; } .amulet-tabs { width:100%; } .amulet-toolbar select { max-width:145px; } }

/* V15: a collectible display for the full, silhouette-led charm collection. */
.amulet-icon { width:56px; height:56px; border:1px solid #607d7d; background:linear-gradient(135deg,#233d48,#0b1c27); box-shadow:inset 2px 2px #ffffff09,inset -2px -2px #020d1777; }
.amulet-card-head { align-items:center; gap:12px; }
.amulet-card-name { min-width:0; }
.amulet-engraving { display:block; margin-top:5px; color:#97b6ba; font:600 10px var(--mono); line-height:1.35; letter-spacing:.06em; overflow-wrap:anywhere; }
.amulet-card[data-owned="true"] .amulet-icon { border-color:var(--charm-color); }
.amulet-card[data-rarity="epic"] .amulet-icon { box-shadow:inset 2px 2px #ffffff0b,inset -2px -2px #020d1777,0 0 0 2px #d0a7ed20; }
.amulet-current strong { overflow-wrap:anywhere; }
