/* Bürgerwut – UI styles. Platform palette: bg #111317, panels #181b20, text #e7eaef, accent #FF5707. System fonts. */
:root {
  --bg: #111317; --panel: #181b20; --panel2: #1f232a; --panel3: #272c34; --line: #2e333b; --line2: #3a404a;
  --text: #e7eaef; --muted: #9aa3ae; --dim: #6c747f; --accent: #ff5707; --accent2: #ff7a33; --accent-ink: #1a0800;
  --gold: #d4a017; --gold2: #f0c84a; --blood: #9c0a0a; --hp: #d8262f; --senf: #e9b800; --rage: #ff5a14; --ok: #5fd068; --bad: #ff4a3a;
  --paper: #f4efe4; --paper2: #e9e2d2; --ink: #2a2420; --ink2: #5a5048; --stamp: #b3141c;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --heavy: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", "Arial Black", sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, "Courier New", monospace;
  --serif: Georgia, "Times New Roman", Times, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; user-select: none; -webkit-user-select: none; }
#view { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; cursor: crosshair; }
[hidden] { display: none !important; }
button { font-family: var(--font); color: inherit; }
a { color: var(--accent2); }
.muted { color: var(--muted); }
.grow { flex: 1; }

/* ------------------------------------------------------------------ boot */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a1014, #0b0c0f 70%); z-index: 50; }
.boot-inner { text-align: center; padding: 16px; }
.boot-logo { font-family: var(--heavy); font-size: clamp(48px, 10vw, 110px); letter-spacing: 0.04em; color: #f4efe6; text-shadow: 0 4px 0 var(--blood), 0 0 40px rgba(176, 16, 26, 0.6); }
.boot-bar { width: 260px; max-width: 70vw; height: 6px; margin: 18px auto 10px; background: #2a2d33; border-radius: 3px; overflow: hidden; }
.boot-bar div { width: 40%; height: 100%; background: var(--accent); animation: bootbar 1.1s ease-in-out infinite alternate; }
@keyframes bootbar { from { transform: translateX(-60%); } to { transform: translateX(160%); } }
#boot-text { color: var(--muted); }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; }

/* ------------------------------------------------------------------ key / button glyphs */
.glyphs { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; flex-wrap: nowrap; }
.gsep { color: var(--muted); font-size: 12px; margin: 0 2px; font-weight: 600; }
.gword { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 3px; font-weight: 700; }
kbd.kc { display: inline-block; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 4px; background: linear-gradient(#3d424b, #2a2e35); border: 1px solid #59606b; border-bottom-width: 3px;
  color: #f2f4f7; font: 700 12px/17px var(--font); text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.5); white-space: nowrap; }
kbd.kc.wide { padding: 0 6px; font-size: 11px; }
.mouse { position: relative; display: inline-block; width: 15px; height: 22px; border: 2px solid #d2d8df; border-radius: 8px 8px 9px 9px; background: #2a2e35; box-shadow: 0 1px 2px rgba(0,0,0,0.5); flex: none; }
.mouse i { position: absolute; left: 50%; top: 0; width: 2px; height: 42%; margin-left: -1px; background: #d2d8df; }
.mouse b { position: absolute; top: 0; height: 42%; width: 50%; border-radius: 6px 0 0 0; }
.mouse.ml b { left: 0; background: var(--accent); }
.mouse.mr b { right: 0; border-radius: 0 6px 0 0; background: var(--accent); }
.mouse.mw b { left: 50%; top: 8%; width: 4px; height: 30%; margin-left: -2px; border-radius: 2px; background: var(--accent); z-index: 1; }
.mouse.ma::after { content: ''; position: absolute; left: 50%; top: 60%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--accent); }
.pb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; font: 800 11px/1 var(--font); color: #fff; background: #3a3f48; border: 2px solid #6a717c; box-shadow: 0 1px 2px rgba(0,0,0,0.5); flex: none; }
.pb.face.pb-a { background: #2b8a3e; border-color: #8ce09c; }
.pb.face.pb-b { background: #c92a2a; border-color: #ff9a9a; }
.pb.face.pb-x { background: #1c63b8; border-color: #8cc2ff; }
.pb.face.pb-y { background: #c69100; border-color: #ffe08a; color: #1b1300; }
.pb.shoulder { border-radius: 6px; padding: 0 5px; min-width: 28px; font-size: 10px; }
.pb.stick { background: radial-gradient(circle at 45% 40%, #5a606a, #26292f); font-size: 10px; }
.pb.dpad { position: relative; border-radius: 4px; background: transparent; border: 0; box-shadow: none; width: 22px; }
.pb.dpad i { position: absolute; left: 50%; top: 50%; background: #59606b; border-radius: 2px; }
.pb.dpad i:first-child { width: 8px; height: 22px; margin: -11px 0 0 -4px; }
.pb.dpad i:last-child { width: 22px; height: 8px; margin: -4px 0 0 -11px; }
.pb.dpad.d-u i:first-child { background: linear-gradient(var(--accent) 0 38%, #59606b 38%); }
.pb.dpad.d-d i:first-child { background: linear-gradient(#59606b 62%, var(--accent) 62%); }
.pb.dpad.d-l i:last-child { background: linear-gradient(90deg, var(--accent) 0 38%, #59606b 38%); }
.pb.dpad.d-r i:last-child { background: linear-gradient(90deg, #59606b 62%, var(--accent) 62%); }
.nav-hints { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.nh { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ------------------------------------------------------------------ buttons */
.screens { position: fixed; inset: 0; z-index: 20; }
.screen { position: absolute; inset: 0; animation: scrin 0.22s ease-out; }
@keyframes scrin { from { opacity: 0; } to { opacity: 1; } }
.menu-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.menu-row { display: flex; gap: 8px; }
.menu-row > .mbtn { flex: 1 1 0; min-width: 0; }
.mbtn { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 46px; text-align: left; background: rgba(24, 27, 32, 0.94);
  color: var(--text); border: 1px solid var(--line); border-left: 4px solid #3a404a; padding: 9px 16px; font-size: 16.5px; font-weight: 650; cursor: pointer; border-radius: 4px;
  transition: background 0.12s, border-color 0.12s, transform 0.12s, box-shadow 0.12s; outline: none; min-width: 0; }
.mbtn .mb-label { overflow-wrap: anywhere; }
.mbtn small { color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.3; overflow-wrap: anywhere; }
.mbtn:hover, .mbtn:focus { background: #262b33; border-left-color: var(--accent); transform: translateX(3px); box-shadow: 0 0 0 1px rgba(255, 87, 7, 0.35), 0 6px 18px rgba(0,0,0,0.35); }
.mbtn.primary { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(255, 87, 7, 0.18), rgba(24, 27, 32, 0.94) 60%); }
.mbtn.primary:hover, .mbtn.primary:focus { background: linear-gradient(90deg, rgba(255, 87, 7, 0.32), #262b33 70%); }
.mbtn.danger:hover, .mbtn.danger:focus { border-left-color: var(--bad); }
.mbtn.small { min-height: 34px; padding: 6px 14px; font-size: 14px; display: inline-flex; }
.mbtn:disabled { opacity: 0.4; cursor: default; transform: none; }
.shake { animation: shake 0.32s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ------------------------------------------------------------------ title */
.title-screen { display: grid; grid-template-columns: minmax(0, 560px) 1fr; grid-template-rows: 1fr auto; padding: 5vh 5vw 0;
  background: linear-gradient(90deg, rgba(9, 10, 13, 0.94) 0%, rgba(9, 10, 13, 0.78) 36%, rgba(9, 10, 13, 0.15) 68%, rgba(9, 10, 13, 0.35) 100%),
    linear-gradient(0deg, rgba(9, 10, 13, 0.9) 0%, rgba(9, 10, 13, 0) 26%); }
.title-main { align-self: center; min-width: 0; padding-bottom: 2vh; }
.kicker { color: var(--accent); font-weight: 800; letter-spacing: 0.16em; font-size: 13px; text-transform: uppercase; margin-bottom: 2px; }
.logo { font-family: var(--heavy); font-weight: 400; font-size: clamp(54px, 8.6vw, 124px); line-height: 0.9; margin: 0; letter-spacing: 0.02em; color: #f4efe6;
  text-shadow: 0 5px 0 var(--blood), 0 0 50px rgba(176, 16, 26, 0.55); position: relative; display: inline-block; }
.logo::after { content: ''; position: absolute; left: 3%; right: 6%; top: 56%; height: 5px; background: linear-gradient(90deg, transparent, rgba(255, 87, 7, 0.9) 18%, rgba(255, 87, 7, 0.9) 82%, transparent);
  transform: rotate(-4deg); mix-blend-mode: screen; opacity: 0.75; }
.tagline { color: #c9d0d8; font-size: 18px; margin: 12px 0 18px; letter-spacing: 0.02em; }
.title-main .menu-list { max-width: 470px; }
.save-status { color: var(--muted); font-size: 13px; max-width: 470px; line-height: 1.45; }
.wanted { justify-self: end; align-self: center; width: 244px; margin-right: 2vw; padding: 16px 16px 14px; background: linear-gradient(170deg, #f3ead4, #e0d2b0); color: #2a1c10;
  transform: rotate(3deg); box-shadow: 0 18px 40px rgba(0,0,0,0.55), inset 0 0 40px rgba(120, 80, 30, 0.25); text-align: center; position: relative; border-radius: 2px; }
.wanted::before { content: ''; position: absolute; inset: 6px; border: 2px solid rgba(60, 30, 10, 0.4); pointer-events: none; }
.w-pin { position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a5a, #a01a10); box-shadow: 0 3px 5px rgba(0,0,0,0.5); }
.w-head { font-family: var(--heavy); font-size: 40px; letter-spacing: 0.08em; color: #7a120c; line-height: 1; }
.w-face { display: block; margin: 8px auto; border-radius: 50%; filter: sepia(0.35) contrast(1.05); box-shadow: 0 0 0 3px #3a2410; }
.w-name { font-family: var(--heavy); font-size: 21px; letter-spacing: 0.03em; line-height: 1.1; }
.w-crime { font-size: 12px; margin: 4px 0; color: #4a3420; font-style: italic; }
.w-reward { font-size: 12.5px; font-weight: 700; border-top: 1px dashed rgba(60,30,10,0.5); border-bottom: 1px dashed rgba(60,30,10,0.5); padding: 5px 0; margin-top: 6px; }
.w-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-weight: 800; letter-spacing: 0.12em; font-size: 11px; color: #3a2a10; }
.title-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; min-width: 0; }
.paula-ticker { display: flex; align-items: center; gap: 10px; background: rgba(10, 11, 14, 0.82); border-top: 1px solid rgba(212, 160, 23, 0.4); border-bottom: 1px solid rgba(212, 160, 23, 0.4); height: 30px; overflow: hidden; margin: 0 -5vw; padding: 0 5vw; }
.tk-tag { flex: none; background: var(--gold); color: #17181c; font-weight: 900; font-size: 11px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 2px; }
.tk-win { flex: 1; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 150s linear infinite; }
.tk-item { color: #d9dde3; font-size: 13px; padding-right: 48px; }
.tk-item::before { content: '◆'; color: var(--gold); margin-right: 12px; font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.foot-row { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.foot-row .ver { font-family: var(--mono); }

/* ------------------------------------------------------------------ panels */
.panel-screen { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(14, 15, 19, 0.72), rgba(6, 7, 9, 0.9)); backdrop-filter: blur(3px); padding: 18px; overflow: auto; }
.panel { width: min(540px, 100%); background: linear-gradient(180deg, #1b1f25, var(--panel) 120px); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 22px 26px 16px;
  max-height: calc(100vh - 36px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.55); scrollbar-width: thin; scrollbar-color: #3a404a transparent; }
.panel.wide { width: min(920px, 100%); }
.panel-head { margin-bottom: 14px; }
.panel h2 { margin: 0; font-family: var(--heavy); font-weight: 400; font-size: 36px; letter-spacing: 0.03em; line-height: 1.05; }
.panel-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel h3 { margin: 4px 0 10px; color: var(--accent); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.panel-actions { display: flex; gap: 10px; margin-top: 14px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 10px 0 0; }
.note.warn { color: #ffb38a; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: #2c3139; color: var(--muted); white-space: nowrap; }
.badge.shop { background: rgba(212, 160, 23, 0.18); color: var(--gold2); }

/* difficulty */
.dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dcard { display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-top: 4px solid #4a505a; border-radius: 6px; padding: 14px 14px 12px; cursor: pointer; outline: none; transition: transform 0.12s, border-color 0.12s, background 0.12s; min-width: 0; }
.dcard:hover, .dcard:focus { transform: translateY(-3px); background: #262b33; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
.dcard.d-easy:hover, .dcard.d-easy:focus { border-top-color: var(--ok); }
.dcard.d-normal:hover, .dcard.d-normal:focus { border-top-color: var(--accent); }
.dcard.d-hard:hover, .dcard.d-hard:focus { border-top-color: var(--bad); }
.dc-skulls { display: flex; gap: 4px; }
.dc-skulls i { width: 22px; height: 7px; border-radius: 2px; background: #3a404a; transform: skewX(-18deg); }
.dc-skulls i.on { background: var(--accent); }
.d-hard .dc-skulls i.on { background: var(--bad); }
.d-easy .dc-skulls i.on { background: var(--ok); }
.dc-name { font-family: var(--heavy); font-size: 27px; letter-spacing: 0.02em; line-height: 1.05; overflow-wrap: anywhere; }
.dc-desc { color: #c3cad3; font-size: 13.5px; line-height: 1.4; min-height: 3.9em; }
.dc-stats { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 8px; }
.dc-stats dt { color: var(--muted); min-width: 0; }
.dc-stats dd { margin: 0; font-weight: 700; text-align: right; }

/* level select */
.lvlist { display: flex; flex-direction: column; gap: 8px; }
.lvrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 56px; align-items: center; gap: 14px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid #3a404a; border-radius: 5px; padding: 10px 14px; cursor: pointer; outline: none; transition: transform 0.12s, background 0.12s, border-color 0.12s; min-width: 0; }
.lvrow:hover:not(:disabled), .lvrow:focus { background: #262b33; border-left-color: var(--accent); transform: translateX(3px); }
.lvrow.locked { opacity: 0.55; cursor: default; }
.lv-num { font-family: var(--heavy); font-size: 34px; color: var(--accent); text-align: center; line-height: 1; }
.lv-main { display: flex; flex-direction: column; min-width: 0; }
.lv-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.lv-sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.lv-best { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #c3cad3; text-align: right; }
.lv-grade { justify-self: center; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--heavy); font-size: 30px; border: 3px solid currentColor; border-radius: 50%; transform: rotate(-8deg); color: var(--stamp); }
.lv-grade.none { color: #4a505a; }
.g-S { color: #ff3a1a !important; } .g-A { color: var(--accent) !important; } .g-B { color: var(--gold2) !important; } .g-C { color: #9cc3e8 !important; } .g-D { color: var(--muted) !important; }
.lv-lock { justify-self: center; opacity: 0.8; }

/* settings */
.set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 26px; }
.set-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 4px;
  padding: 6px 12px; cursor: pointer; outline: none; font-size: 14.5px; text-align: left; transition: background 0.1s, border-color 0.1s; }
.opt:hover, .opt:focus { background: #262b33; border-left-color: var(--accent); }
.opt-label { min-width: 0; overflow-wrap: anywhere; }
.opt-val { color: var(--text); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.cyc { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.cyc-l, .cyc-r { color: var(--accent); font-size: 20px; line-height: 1; padding: 0 3px; font-weight: 800; }
.cyc .opt-val { min-width: 74px; text-align: center; }
.rng { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.rng-track { position: relative; width: 150px; height: 6px; border-radius: 3px; background: #3a404a; }
.rng-fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, #b83d06, var(--accent)); transform-origin: left; }
.rng-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #f2f4f7; box-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.rng .opt-val { width: 46px; text-align: right; }
.tgl { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.sw { position: relative; width: 38px; height: 20px; border-radius: 10px; background: #3a404a; transition: background 0.15s; }
.sw i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9d0d8; transition: transform 0.15s, background 0.15s; }
.opt.on .sw { background: var(--accent); }
.opt.on .sw i { transform: translateX(18px); background: #fff; }
.tgl .opt-val { width: 34px; }
.opt-note { color: var(--muted); font-size: 12px; margin: 0 2px 4px; line-height: 1.4; }

/* controls */
.tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tab { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 8px 14px; font-size: 14.5px; font-weight: 700; cursor: pointer; outline: none; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.tab:hover, .tab:focus { color: var(--text); background: rgba(255,255,255,0.04); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-n { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 9px; padding: 1px 6px; }
.tab-keys { margin-left: auto; opacity: 0.85; }
.ctl-wrap { overflow-x: auto; }
table.controls { width: 100%; border-collapse: collapse; font-size: 14px; }
table.controls th, table.controls td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #262a31; vertical-align: middle; }
table.controls th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
table.controls td:first-child { color: #d4d9df; }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.mv-sec { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.mv-sec.locked { opacity: 0.6; }
.mv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.mv-wname { font-family: var(--heavy); font-size: 21px; letter-spacing: 0.02em; }
.mv-row { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #262a31; }
.mv-row.shop { opacity: 0.7; }
.mv-seq .seq { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.mv-text { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.mv-text b { color: var(--text); font-size: 13.5px; }

/* credits */
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.cr-by { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.cr-by strong { font-family: var(--heavy); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; color: var(--accent2); }
.cr-sec p { margin: 2px 0; color: #cfd5dc; line-height: 1.45; font-size: 14px; }
.cr-sec { margin-bottom: 10px; }
.cr-disclaimer { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 10px; margin: 6px 0 0; }

/* pause */
.panel.pause { width: min(520px, 100%); }
.pause-level { display: flex; align-items: center; gap: 14px; background: var(--panel2); border-radius: 5px; padding: 10px 14px; }
.pl-num { font-family: var(--heavy); font-size: 38px; color: var(--accent); line-height: 1; }
.pl-name { font-weight: 700; font-size: 17px; }
.pl-sub { color: var(--muted); font-size: 12.5px; }
.pause-obj { display: flex; gap: 8px; align-items: baseline; margin-top: 10px; font-size: 14px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; display: flex; flex-direction: column; min-width: 0; }
.chip span { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; overflow-wrap: anywhere; line-height: 1.25; }
.chip b { font-size: 15px; white-space: nowrap; }

/* game over */
.gameover { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(90, 0, 0, 0.55), rgba(0, 0, 0, 0.9) 70%); padding: 18px; overflow: auto; }
.go-inner { width: min(560px, 100%); text-align: center; }
.go-slip { display: inline-flex; gap: 14px; align-items: center; background: var(--paper); color: var(--ink); padding: 6px 14px; transform: rotate(-2deg); font-size: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); flex-wrap: wrap; justify-content: center; }
.go-slip b { color: var(--stamp); letter-spacing: 0.12em; }
.gameover h2 { font-family: var(--heavy); font-weight: 400; font-size: clamp(46px, 8vw, 96px); margin: 10px 0 0; color: #f4efe6; text-shadow: 0 5px 0 var(--blood), 0 0 40px rgba(200, 0, 0, 0.4); line-height: 1; }
.go-sub { color: #d6c5c0; margin: 10px 0 16px; font-size: 16px; }
.go-trude { display: flex; gap: 12px; align-items: center; text-align: left; background: rgba(24, 27, 32, 0.9); border: 1px solid var(--line); border-left: 4px solid #c9a2d8; border-radius: 6px; padding: 10px 14px; margin: 0 auto 14px; }
.go-trude b { display: block; color: #e2b6f0; font-size: 13px; letter-spacing: 0.06em; }
.go-trude span { font-size: 14.5px; line-height: 1.4; }
.go-face { border-radius: 50%; flex: none; }
.gameover .menu-list { max-width: 360px; margin: 0 auto; }
.gameover .nav-hints { justify-content: center; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: #0b0c0f; }
.spinner { width: 40px; height: 40px; border: 4px solid #2a2e35; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ results: notice of fine */
.results-screen { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(20, 16, 12, 0.7), rgba(5, 5, 7, 0.94)); overflow: auto; }
.res-scroll { width: min(800px, 100%); margin: 0 auto; padding: 22px 18px 18px; }
.notice { position: relative; background: var(--paper); color: var(--ink); padding: 26px 34px 22px; border-radius: 2px; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  background-image: repeating-linear-gradient(0deg, rgba(120, 100, 70, 0.045) 0 1px, transparent 1px 26px), linear-gradient(170deg, #f8f4ea, #ebe3d1);
  animation: paperin 0.5s cubic-bezier(.2,.9,.3,1.2); transform-origin: 50% 0; }
@keyframes paperin { from { transform: translateY(30px) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.nf-letterhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.nf-logo { background: #16171b; border-radius: 4px; padding: 3px; }
.nf-co { display: flex; flex-direction: column; min-width: 0; }
.nf-co b { font-family: var(--heavy); font-weight: 400; font-size: 26px; letter-spacing: 0.06em; color: #8a6a08; line-height: 1; }
.nf-co span { font-size: 11.5px; color: var(--ink2); }
.nf-co i { font-size: 11.5px; color: var(--ink2); }
.nf-ref { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 11.5px; color: var(--ink2); text-align: right; }
.nf-addr { display: flex; flex-direction: column; font-size: 13px; margin: 14px 0 6px; padding: 6px 10px; border: 1px solid rgba(42, 36, 32, 0.25); width: max-content; max-width: 100%; }
.nf-title { margin: 10px 0 2px; font-family: var(--heavy); font-weight: 400; font-size: 42px; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; line-height: 1; }
.nf-re { font-weight: 700; font-size: 14px; }
.nf-intro { font-size: 13.5px; margin: 8px 0 10px; color: var(--ink2); line-height: 1.45; }
.nf-table { display: flex; flex-direction: column; font-size: 14px; }
.nf-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px; gap: 10px; padding: 5px 2px; border-bottom: 1px dashed rgba(42, 36, 32, 0.3); animation: rowin 0.35s ease-out both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.nf-headrow { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); border-bottom: 1px solid var(--ink); animation: none; }
.nf-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.nf-fee { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nf-off { min-width: 0; }
.nf-minus { color: #1e6a34; }
.nf-total { border-bottom: 3px double var(--ink); font-weight: 800; font-size: 15.5px; }
.nf-share { position: relative; margin-top: 14px; }
.nf-share-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; margin-bottom: 4px; }
.nf-share-head b.down { color: #b0141c; }
.nf-chart { display: block; }
.nf-insolvent { position: absolute; right: 18%; top: 42%; font-family: var(--heavy); font-size: 40px; color: var(--stamp); border: 4px solid var(--stamp); padding: 0 12px; transform: rotate(-10deg); opacity: 0.85; letter-spacing: 0.06em; }
.nf-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-top: 12px; }
.nf-legal p { margin: 3px 0; font-size: 11.5px; color: var(--ink2); line-height: 1.45; }
.nf-sign { font-style: italic; }
.nf-earn { color: #1e6a34 !important; font-weight: 700; font-size: 13px !important; }
.nf-best { font-family: var(--mono); }
.stamp { width: 158px; height: 158px; border-radius: 50%; border: 6px double currentColor; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--stamp);
  transform: rotate(-14deg); mix-blend-mode: multiply; opacity: 0; animation: stamp 0.42s cubic-bezier(.3,1.6,.5,1) 1.4s forwards; text-align: center; padding: 8px; }
.stamp b { font-family: var(--heavy); font-weight: 400; font-size: 76px; line-height: 0.9; }
.st-k { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.st-w { font-family: var(--heavy); font-size: 15px; letter-spacing: 0.04em; line-height: 1.05; overflow-wrap: anywhere; max-width: 120px; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-4deg); } 100% { opacity: 0.88; transform: scale(1) rotate(-14deg); } }
.stamp.g-S { color: #c8100a !important; } .stamp.g-A { color: #b3141c !important; } .stamp.g-B { color: #8a5a00 !important; } .stamp.g-C { color: #2a4a7a !important; } .stamp.g-D { color: #4a4440 !important; }
.res-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.mbtn.objection { min-width: 280px; }
.results-screen .nav-hints { margin-top: 8px; }

/* ------------------------------------------------------------------ Büdchen */
.shop-screen { background: radial-gradient(circle at 50% 20%, rgba(40, 24, 12, 0.75), rgba(6, 7, 9, 0.94)); }
.panel.shop { width: min(960px, 100%); padding: 0 22px 14px; border-top: 0; overflow: auto; }
.awning { height: 34px; margin: 0 -22px 10px; background: repeating-linear-gradient(90deg, #c8281e 0 40px, #f4efe4 40px 80px); position: relative; box-shadow: 0 6px 12px rgba(0,0,0,0.35); }
.awning::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: radial-gradient(circle at 20px 0, #c8281e 19px, transparent 20px) 0 0 / 80px 12px repeat-x, radial-gradient(circle at 60px 0, #f4efe4 19px, transparent 20px) 0 0 / 80px 12px repeat-x; }
.shop-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 14px 0 12px; }
.trude { display: flex; gap: 12px; align-items: center; min-width: 0; }
.trude-face { width: 112px; height: 112px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px #e2b6f0, 0 8px 18px rgba(0,0,0,0.5); }
.speech { position: relative; background: #f8f4ec; color: #2a1c20; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; line-height: 1.42; min-width: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.35); animation: speech 0.3s cubic-bezier(.2,1.4,.4,1); }
.speech::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right-color: #f8f4ec; border-left: 0; }
.speech b { display: block; color: #7a3f8c; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes speech { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.shop-sign { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.shop-sign h2 { font-family: var(--heavy); font-weight: 400; font-size: 36px; margin: 0; line-height: 1; letter-spacing: 0.02em; }
.shop-sign > span { color: var(--muted); font-size: 12.5px; }
.wallet { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; background: rgba(212, 160, 23, 0.12); border: 1px solid rgba(212, 160, 23, 0.4); border-radius: 18px; padding: 4px 12px 4px 6px; }
.w-k { color: var(--muted); font-size: 12px; }
.wallet b { color: var(--gold2); font-size: 20px; font-variant-numeric: tabular-nums; }
.wallet b.pop { animation: coinpop 0.5s ease-out; }
@keyframes coinpop { 0% { transform: scale(1.4); color: #fff; } 100% { transform: scale(1); } }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-bottom: 12px; }
.shop-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); border-left: 3px solid #3a404a; border-radius: 5px; padding: 8px 12px 8px 8px; cursor: pointer; outline: none; min-height: 74px; transition: background 0.12s, border-color 0.12s, transform 0.12s; min-width: 0; }
.shop-item:hover, .shop-item:focus { background: #262b33; border-left-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.shop-item.s-can { border-left-color: rgba(255, 87, 7, 0.55); }
.si-icon { position: relative; width: 56px; height: 56px; display: grid; place-items: center; background: radial-gradient(circle, #2e333c, #1d2026); border-radius: 6px; }
.si-lock { position: absolute; right: -4px; bottom: -4px; }
.si-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-name { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 15px; flex-wrap: wrap; }
.si-desc { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.si-lockline { color: #ffb38a; font-size: 11.5px; font-weight: 700; }
.si-price { display: inline-flex; align-items: center; gap: 5px; color: var(--gold2); font-weight: 800; font-size: 15px; white-space: nowrap; }
.si-price.poor { color: #d06a6a; }
.si-state { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.si-state.ok { color: var(--ok); }
.shop-item.s-locked .si-icon, .shop-item.s-locked .si-main { opacity: 0.5; }
.shop-item.s-max { opacity: 0.75; }
.shop-item.bought { animation: bought 0.6s ease-out; }
@keyframes bought { 0% { box-shadow: 0 0 0 3px var(--gold2); } 100% { box-shadow: 0 0 0 0 rgba(240, 200, 74, 0); } }
.si-bought { position: absolute; right: 10px; top: -10px; background: var(--ok); color: #0a2a10; font-weight: 900; font-size: 12px; padding: 2px 8px; border-radius: 3px; transform: rotate(4deg); animation: speech 0.3s; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #6a717c; }
.pips i.on { background: var(--accent); border-color: var(--accent); }
.shop-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.brief { background: rgba(31, 74, 122, 0.25); border-left: 3px solid #9cc3e8; border-radius: 4px; padding: 8px 12px; min-width: 0; }
.brief.mid { background: rgba(95, 208, 104, 0.1); border-left-color: var(--ok); }
.brief-k { color: #9cc3e8; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.brief b { font-size: 16px; }
.brief p { margin: 3px 0 0; color: #c3cad3; font-size: 13px; line-height: 1.4; }
.shop-bottom .mbtn { min-width: 230px; }

/* ------------------------------------------------------------------ ending */
.ending { position: absolute; inset: 0; overflow: auto; background: radial-gradient(circle at 30% 20%, rgba(40, 30, 10, 0.7), rgba(5, 5, 7, 0.95)); }
.end-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; width: min(1180px, 100%); margin: 0 auto; padding: 22px 18px; align-items: start; }
.newspaper { background: linear-gradient(170deg, #f5f1e6, #e6dfcc); color: #1e1a16; padding: 18px 24px 22px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); transform: rotate(-0.6deg); font-family: var(--serif); animation: paperin 0.6s ease-out; }
.np-mast { border-bottom: 3px double #1e1a16; text-align: center; padding-bottom: 6px; }
.np-name { font-family: var(--serif); font-weight: 900; font-size: 40px; letter-spacing: 0.04em; line-height: 1.05; }
.np-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-family: var(--font); color: #4a4038; flex-wrap: wrap; border-top: 1px solid #1e1a16; margin-top: 4px; padding-top: 3px; }
.np-headline { font-family: var(--heavy); font-weight: 400; font-size: clamp(34px, 4.6vw, 58px); line-height: 0.98; margin: 12px 0 4px; letter-spacing: 0.01em; text-align: center; }
.np-sub { text-align: center; font-style: italic; margin: 0 0 10px; font-size: 15px; }
.np-chartbox { position: relative; border: 1px solid rgba(30, 26, 22, 0.35); padding: 6px; margin-bottom: 12px; background: rgba(255,255,255,0.35); }
.np-insolvent { position: absolute; right: 18%; top: 30%; font-family: var(--heavy); font-size: 34px; color: var(--stamp); border: 4px solid var(--stamp); padding: 0 10px; transform: rotate(-9deg); opacity: 0.88; animation: stamp2 0.4s cubic-bezier(.3,1.6,.5,1) 0.8s both; }
@keyframes stamp2 { 0% { opacity: 0; transform: scale(2.2) rotate(-3deg); } 100% { opacity: 0.88; transform: rotate(-9deg); } }
.np-cols { column-count: 2; column-gap: 20px; column-rule: 1px solid rgba(30, 26, 22, 0.25); font-size: 14px; line-height: 1.5; text-align: justify; hyphens: auto; }
.np-cols p { margin: 0 0 9px; break-inside: avoid; }
.np-cols p::first-letter { font-weight: 900; font-size: 1.3em; }
.np-ticket { margin: 12px auto 0; width: min(330px, 100%); background: #fff8d8; border: 1px solid #c9b46a; box-shadow: 0 8px 18px rgba(0,0,0,0.25); padding: 10px 14px; transform: rotate(2.5deg); font-family: var(--font); color: #2a2410; }
.tk-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #2a2410; padding-bottom: 4px; }
.tk-top b { letter-spacing: 0.12em; font-size: 14px; }
.tk-top span { font-family: var(--mono); font-weight: 800; font-size: 18px; }
.tk-d { font-size: 13px; margin: 6px 0 2px; }
.tk-sign { font-size: 11.5px; color: #5a5030; font-style: italic; }
.tk-hacki { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-style: italic; font-size: 14px; }
.tk-hacki canvas { border-radius: 50%; }
.end-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.end-kicker { color: var(--accent); font-weight: 800; letter-spacing: 0.16em; font-size: 12px; text-transform: uppercase; }
.end-side h2 { font-family: var(--heavy); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); margin: -6px 0 0; line-height: 1.02; }
.end-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.es-title { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.es-stat { display: flex; flex-direction: column; min-width: 0; }
.es-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.es-stat span { color: var(--muted); font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; }
.es-grades { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px; }
.es-grades span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-family: var(--heavy); font-size: 18px; color: #4a505a; }
.credits-roll { position: relative; height: 270px; overflow: hidden; background: #0c0d10; border: 1px solid var(--line); border-radius: 6px;
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.cr-track { position: absolute; left: 0; right: 0; top: 100%; padding: 0 18px; text-align: center; animation: roll 46s linear 0.6s infinite; }
.cr-track h3 { font-family: var(--heavy); font-weight: 400; font-size: 26px; margin: 10px 0; color: var(--accent2); letter-spacing: 0.04em; }
.cr-track h4 { margin: 18px 0 4px; color: var(--gold2); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.cr-track p { margin: 3px 0; color: #d4d9df; font-size: 14px; line-height: 1.45; }
.cr-track p.big { font-family: var(--heavy); font-size: 22px; letter-spacing: 0.03em; margin: 6px 0; }
.cr-track p.small { font-size: 12px; margin-top: 16px; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(calc(-100% - 280px)); } }

/* ------------------------------------------------------------------ HUD */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-weight: 700; }
.hud > *, .hud-left > * { transition: opacity 0.35s; }
.hud.cine > :not(.hud-boss) { opacity: 0; }
.hud.cine .hud-boss { opacity: 0.4; }
.hud-tl { position: absolute; left: 14px; top: 12px; display: flex; gap: 12px; align-items: center; }
.face-ring { width: 80px; height: 80px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #f1efe8, #9aa3ae, #f1efe8); box-shadow: 0 3px 12px rgba(0,0,0,0.6); flex: none; transition: background 0.2s, box-shadow 0.2s; }
.hud-face { display: block; width: 74px; height: 74px; border-radius: 50%; background: #2f5ea8; }
.raging .face-ring { background: conic-gradient(from 0deg, #ff2a00, #ffb000, #ff2a00); box-shadow: 0 0 22px rgba(255, 60, 10, 0.85); animation: ragering 0.5s linear infinite; }
@keyframes ragering { to { filter: hue-rotate(20deg) brightness(1.15); } }
.bars { display: flex; flex-direction: column; gap: 5px; position: relative; }
.bar { position: relative; width: 264px; height: 17px; background: rgba(8, 9, 11, 0.78); border: 1px solid rgba(255,255,255,0.18); overflow: hidden; transform: skewX(-14deg); box-shadow: 0 2px 6px rgba(0,0,0,0.45); }
.bar-senf, .bar-rage { width: 214px; height: 11px; }
.bar-fill, .bar-lag { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; }
.bar-lag { background: rgba(255, 240, 220, 0.45); }
.bar-hp .bar-fill { background: linear-gradient(180deg, #ff6a6e, #d8262f 45%, #8a0f16); }
.bar-senf .bar-fill { background: linear-gradient(180deg, #ffe46a, #e9b800 50%, #a07a00); }
.bar-rage .bar-fill { background: linear-gradient(180deg, #ffa060, #ff5a14 50%, #a82a00); }
.bar-num { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; transform: skewX(14deg); font-variant-numeric: tabular-nums; }
.bar-tag { position: absolute; right: 6px; top: -1px; font-size: 9px; letter-spacing: 0.12em; color: rgba(255,255,255,0.82); text-shadow: 0 1px 2px #000; transform: skewX(14deg); text-transform: uppercase; line-height: 11px; }
.bar-rage.full { border-color: var(--rage); animation: pulse 0.55s ease-in-out infinite alternate; }
.bar-rage.active .bar-fill { background: linear-gradient(90deg, #ff2a00, #ffb000, #ff2a00); background-size: 200% 100%; animation: rageflow 0.6s linear infinite; }
@keyframes rageflow { to { background-position: -200% 0; } }
.bar-rage.burst { animation: burst 0.5s ease-out; }
@keyframes burst { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 20, 0.9); } 100% { box-shadow: 0 0 0 16px rgba(255, 90, 20, 0); } }
.bar-hp.low { animation: lowhp 0.5s ease-in-out infinite alternate; border-color: #ff4a4f; }
@keyframes lowhp { from { box-shadow: 0 0 0 rgba(255, 40, 40, 0); } to { box-shadow: 0 0 14px rgba(255, 40, 40, 0.9); } }
.bar.deny { animation: deny 0.3s; }
@keyframes pulse { from { box-shadow: 0 0 0 rgba(255, 90, 20, 0); } to { box-shadow: 0 0 14px rgba(255, 90, 20, 0.95); } }
@keyframes deny { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.guard { width: 150px; height: 4px; background: rgba(8, 9, 11, 0.7); opacity: 0; transition: opacity 0.2s; transform: skewX(-14deg); }
.guard.on { opacity: 1; }
.guard i { display: block; height: 100%; background: #dfe6ee; transform-origin: left; }
.rage-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rage); letter-spacing: 0.08em; text-shadow: 0 1px 2px #000; opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; text-transform: uppercase; }
.rage-key.on { opacity: 1; transform: none; animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { color: #ffd080; } }
.hud-left { position: absolute; left: 14px; top: 112px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, 42vw); }
.hud-obj { display: flex; gap: 8px; align-items: baseline; background: linear-gradient(90deg, rgba(8, 9, 11, 0.75), rgba(8, 9, 11, 0)); padding: 5px 12px 5px 8px; border-left: 3px solid var(--gold); font-size: 13.5px; text-shadow: 0 1px 2px #000; }
.obj-tag { color: var(--gold2); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; flex: none; }
.obj-text { font-weight: 600; }
.hud-toast { display: flex; flex-direction: column; background: rgba(12, 30, 16, 0.85); border-left: 3px solid var(--ok); padding: 6px 12px; width: max-content; max-width: 100%; }
.hud-toast b { color: var(--ok); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.hud-toast span { font-size: 12px; font-weight: 500; color: #cfe8d2; }
.hud-hint { display: flex; flex-direction: column; gap: 6px; background: rgba(12, 13, 17, 0.86); border: 1px solid rgba(255, 87, 7, 0.45); border-left: 4px solid var(--accent); border-radius: 4px; padding: 9px 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.hint-keys { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint-text { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.show { animation: slidein 0.35s cubic-bezier(.2,1.3,.4,1); }
@keyframes slidein { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.hud-tr { position: absolute; right: 14px; top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ticker { position: relative; background: rgba(8, 9, 11, 0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 6px 10px 4px; box-shadow: 0 3px 10px rgba(0,0,0,0.4); min-width: 200px; }
.share { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 18px; text-shadow: 0 1px 3px #000; white-space: nowrap; }
.share-tag { background: var(--gold); color: #1b1c20; padding: 1px 6px; border-radius: 2px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; }
.share-val { font-variant-numeric: tabular-nums; }
.share-delta { color: var(--ok); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.share-delta.down { color: var(--bad); }
.share-spark { display: block; width: 186px; height: 40px; margin-top: 3px; }
.ticker-flag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%) rotate(-8deg); font-family: var(--heavy); font-size: 22px; color: var(--bad); border: 3px solid var(--bad); padding: 0 8px; opacity: 0; letter-spacing: 0.06em; }
.ticker.zero .ticker-flag { opacity: 0.95; }
.ticker.crash { animation: crash 0.6s ease-out; }
@keyframes crash { 0% { box-shadow: 0 0 0 2px var(--bad), 0 0 22px rgba(255, 74, 58, 0.8); transform: translateX(-4px); } 30% { transform: translateX(4px); } 100% { box-shadow: 0 3px 10px rgba(0,0,0,0.4); transform: none; } }
.ticker.insolvent { animation: crash 1.2s ease-out; }
.coins { position: relative; display: flex; align-items: center; gap: 6px; color: var(--gold2); font-size: 20px; text-shadow: 0 1px 3px #000; font-variant-numeric: tabular-nums; }
.coins-fx { position: absolute; right: 0; top: 100%; font-size: 13px; color: #ffe08a; opacity: 0; white-space: nowrap; }
.coins-fx.show { animation: coinfx 0.9s ease-out; }
@keyframes coinfx { 0% { opacity: 1; transform: translateY(-8px); } 100% { opacity: 0; transform: translateY(8px); } }
.hud-right { position: absolute; right: 18px; top: 30%; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.combo-n { font-family: var(--heavy); font-size: 60px; line-height: 0.95; color: #fff; text-shadow: 0 3px 0 var(--blood), 0 0 18px rgba(0,0,0,0.6); font-variant-numeric: tabular-nums; }
.combo-l { font-size: 12px; letter-spacing: 0.24em; color: #c9d0d8; text-shadow: 0 1px 2px #000; }
.rank-box { margin-top: 6px; display: flex; flex-direction: column; align-items: flex-end; }
.rank { font-family: var(--heavy); font-size: 68px; line-height: 0.9; color: var(--accent); text-shadow: 0 3px 0 #3a1400, 0 0 16px rgba(0,0,0,0.5); }
.rank[data-rank="S"] { color: #ff2a10; text-shadow: 0 0 18px rgba(255, 40, 10, 0.85), 0 3px 0 #3a0000; animation: srank 0.4s ease-in-out infinite alternate; }
.rank[data-rank="A"] { color: #ff6a1a; }
.rank[data-rank="B"] { color: var(--gold2); }
.rank[data-rank="C"] { color: #9cc3e8; }
.rank[data-rank="D"] { color: #c9d0d8; }
@keyframes srank { to { transform: scale(1.06) rotate(-2deg); } }
.rank.pop { animation: rankpop 0.35s ease-out; }
@keyframes rankpop { from { transform: scale(1.7) rotate(-6deg); } to { transform: scale(1); } }
.rank-word { font-size: 14px; letter-spacing: 0.12em; color: #f4efe6; text-shadow: 0 1px 3px #000; }
.style-bar { width: 160px; height: 4px; margin-top: 6px; background: rgba(255,255,255,0.12); transform: skewX(-14deg); }
.style-fill { height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.counter-chip { margin-top: 8px; background: var(--gold); color: #1b1300; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; padding: 3px 9px; transform: skewX(-12deg); animation: pulse 0.4s infinite alternate; }
.bonus { margin-top: 8px; color: var(--gold2); font-family: var(--heavy); font-size: 24px; letter-spacing: 0.04em; text-shadow: 0 2px 0 #3a2a00, 0 0 10px rgba(0,0,0,0.6); opacity: 0; white-space: nowrap; }
.bonus.pop { animation: bonus 1.4s ease-out; }
@keyframes bonus { 0% { opacity: 0; transform: translateX(24px) scale(1.3); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.hud-bl { position: absolute; left: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 7px; }
.slot-msg { font-size: 12.5px; color: #fff; text-shadow: 0 1px 3px #000; opacity: 0; height: 16px; }
.slot-msg.show { animation: bonus 1.6s ease-out; }
.wslots, .aslots { display: flex; gap: 6px; align-items: flex-end; }
.wslot { position: relative; width: auto; min-width: 78px; padding: 4px 4px 3px; background: rgba(8, 9, 11, 0.68); border: 1px solid rgba(255,255,255,0.12); border-radius: 5px; opacity: 0.22; display: flex; flex-direction: column; align-items: center; transition: opacity 0.15s, transform 0.15s, border-color 0.15s; }
.wslot.owned { opacity: 0.66; }
.wslot.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 87, 7, 0.5), inset 0 0 14px rgba(255, 87, 7, 0.18); transform: translateY(-4px); }
.wslot.cast { animation: slotcast 0.35s ease-out; }
@keyframes slotcast { 0% { transform: translateY(-4px) scale(1.15); } 100% { transform: translateY(-4px) scale(1); } }
.wicon { display: block; }
.wname { font-size: 10px; text-align: center; color: #c9d0d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-weight: 600; }
.wslot .pips { margin-top: 2px; }
.wslot .pips i { width: 6px; height: 6px; border-width: 1px; }
.slot-key { align-self: center; margin-left: 2px; }
.aslot { position: relative; width: 54px; height: 54px; background: rgba(8, 9, 11, 0.68); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; display: grid; place-items: center; transition: opacity 0.15s, border-color 0.15s; }
.aslot .aicon { display: block; }
.aslot.ready { border-color: var(--senf); box-shadow: 0 0 10px rgba(233, 184, 0, 0.35); }
.aslot.poor { opacity: 0.55; }
.aslot.poor .aicon { filter: grayscale(0.85); }
.aslot.poor .acost { color: #ff8a8a; }
.aslot.locked { opacity: 0.25; }
.aslot.locked .aicon { filter: grayscale(1) brightness(0.6); }
.aslot.locked .alock { position: absolute; inset: 0; display: grid; place-items: center; }
.aslot.locked .alock::after { content: ''; width: 14px; height: 11px; border-radius: 2px; background: #c9d0d8; box-shadow: 0 -7px 0 -3px transparent, inset 0 0 0 2px #8a929c; }
.aslot.cast { animation: slotcast2 0.4s ease-out; }
@keyframes slotcast2 { 0% { transform: scale(1.2); box-shadow: 0 0 18px var(--senf); } 100% { transform: none; } }
.aslot.deny { animation: deny 0.3s; }
.aslot[data-tier]:not([data-tier=""])::after { content: attr(data-tier); position: absolute; right: 3px; top: 2px; font-size: 9px; color: var(--gold2); letter-spacing: -0.5px; }
.acool { position: absolute; inset: 0; border-radius: 6px; pointer-events: none; }
.akey { position: absolute; left: -6px; top: -8px; transform: scale(0.82); }
.acost { position: absolute; right: 3px; bottom: 1px; font-size: 11px; color: var(--senf); text-shadow: 0 1px 2px #000; }
.hud-boss { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(660px, 54vw); transition: opacity 0.3s; }
.boss-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; text-shadow: 0 1px 3px #000; min-width: 0; }
.boss-tag { flex: none; background: linear-gradient(135deg, #1b1c20 25%, var(--gold) 25% 50%, #1b1c20 50% 75%, var(--gold) 75%); background-size: 10px 10px; color: #fff; font-size: 10px; letter-spacing: 0.14em; padding: 2px 7px; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.boss-name { font-family: var(--heavy); font-weight: 400; font-size: 25px; letter-spacing: 0.03em; white-space: nowrap; }
.boss-sub { color: #c3cad3; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.boss-bar { position: relative; height: 14px; background: rgba(8, 9, 11, 0.85); border: 1px solid rgba(212, 160, 23, 0.6); box-shadow: 0 3px 10px rgba(0,0,0,0.5); }
.boss-fill, .boss-lag { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; }
.boss-lag { background: #f4efe6; opacity: 0.55; }
.boss-fill { background: linear-gradient(180deg, #ffd86a, var(--gold) 45%, #7a5a08); }
.boss-ticks i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; opacity: 0.7; }
.hud-boss.flash .boss-bar { animation: crash 0.6s ease-out; }
.hud-boss.down .boss-fill { background: linear-gradient(180deg, #ff6a5a, #b3141c); }
.hud-prompt { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(10, 10, 12, 0.82); border: 1px solid var(--accent); padding: 7px 14px; border-radius: 4px; font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 0 16px rgba(255, 87, 7, 0.35); }
.hud-prompt.p-fin, .hud-prompt.p-boss { animation: pulse 0.5s ease-in-out infinite alternate; text-transform: uppercase; }
.hud-prompt.show { animation: promptin 0.3s ease-out; }
.hud-prompt.p-fin.show, .hud-prompt.p-boss.show { animation: promptin 0.3s ease-out, pulse 0.5s ease-in-out 0.3s infinite alternate; }
@keyframes promptin { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.92); } to { opacity: 1; transform: translateX(-50%); } }
.hud-prompt.p-shop { border-color: #e2b6f0; box-shadow: 0 0 16px rgba(201, 162, 216, 0.35); }
.hud-feed { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: min(360px, 40vw); }
.fine { display: flex; flex-direction: column; background: rgba(246, 241, 232, 0.95); color: #2a1a10; font-size: 12px; font-weight: 600; padding: 4px 10px 5px; border-left: 4px solid var(--stamp); box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  animation: fine 4.8s ease-out forwards; transform-origin: right; }
.fine b { color: var(--stamp); font-size: 9.5px; letter-spacing: 0.16em; }
@keyframes fine { 0% { opacity: 0; transform: translateX(30px) rotate(3deg); } 6% { opacity: 1; transform: rotate(-1deg); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
.hud-banner { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); text-align: center; pointer-events: none; }
.hud-banner.show { animation: banner 2.6s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translateX(-50%) scale(1.25); } 10% { opacity: 1; transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(0.98); } }
.bn-title { font-family: var(--heavy); font-size: clamp(30px, 4.4vw, 52px); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 #000, 0 0 24px rgba(0,0,0,0.7); white-space: nowrap; }
.bn-sub { font-size: 14px; color: #e6e9ee; text-shadow: 0 1px 3px #000; font-weight: 600; }
.hud-banner.zone .bn-title { color: var(--gold2); background: repeating-linear-gradient(135deg, rgba(27, 28, 32, 0.85) 0 14px, rgba(212, 160, 23, 0.85) 14px 28px); padding: 2px 18px; text-shadow: 0 2px 0 #000; }
.hud-banner.clear .bn-title { color: var(--ok); }
.hud-banner.revive .bn-title { color: var(--accent2); }
.hud-charge { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ch-bell { width: 22px; height: 18px; border-radius: 11px 11px 3px 3px; background: radial-gradient(circle at 40% 35%, #fff2b0, #d4a017 60%, #7a5a08); box-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.ch-tower { position: relative; width: 16px; height: 96px; background: linear-gradient(90deg, #2a1410, #4a2418, #2a1410); border: 2px solid #f0e6d0; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.ch-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform-origin: bottom; background: linear-gradient(0deg, #3fd07a, #f0c84a 55%, #ff3a1a); }
.ch-marks { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(255,255,255,0.55) 11px 12px); }
.ch-label { font-family: var(--heavy); font-size: 12px; letter-spacing: 0.06em; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.hud-charge.full .ch-bell { animation: ding 0.25s ease-in-out infinite alternate; }
.hud-charge.ding .ch-bell { box-shadow: 0 0 22px #ffd24a; }
@keyframes ding { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.hud-pa { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(560px, 44vw); background: rgba(8, 9, 11, 0.78); border: 1px solid rgba(212, 160, 23, 0.45); border-radius: 4px; padding: 5px 12px; }
.pa-tag { flex: none; background: var(--gold); color: #17181c; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; padding: 2px 6px; }
.pa-text { font-size: 12.5px; font-weight: 500; color: #e6e9ee; line-height: 1.35; }
.hud-pa.show { animation: fadein 0.5s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.fps { position: fixed; left: 8px; bottom: 6px; font: 12px var(--mono); color: #9f9; z-index: 60; text-shadow: 0 1px 2px #000; }

/* ------------------------------------------------------------------ overlays */
.overlay { position: fixed; inset: 0; pointer-events: none; z-index: 12; }
.ov-layer { position: absolute; inset: 0; overflow: hidden; }
.lb { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 0.4s ease; z-index: 1; }
.lb-top { top: 0; } .lb-bot { bottom: 0; }
.overlay.cine .lb { height: 7vh; }
.bubble { position: absolute; left: 0; top: 0; max-width: 250px; background: #fbf8f1; color: #1b1c20; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0,0,0,0.55); white-space: normal; text-align: center; line-height: 1.3; --tail: 0px; }
.bubble::after { content: ''; position: absolute; left: calc(50% + var(--tail)); bottom: -7px; margin-left: -6px; border: 7px solid transparent; border-top-color: #fbf8f1; border-bottom: 0; }
.bubble.hero { background: #fff0d8; border: 2px solid var(--accent); font-size: 14px; }
.bubble.hero::after { border-top-color: var(--accent); }
.bubble.robot { background: #121418; color: #ffd24a; border: 1px solid #d4a017; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; border-radius: 3px; }
.bubble.robot::after { border-top-color: #d4a017; }
.bubble.boss { background: #1b1c20; color: #fff; border: 2px solid var(--gold); font-size: 15px; padding: 6px 12px; max-width: 300px; }
.bubble.boss::after { border-top-color: var(--gold); }
.float { position: absolute; left: 0; top: 0; font-family: var(--heavy); font-size: 21px; color: #fff; text-shadow: 0 2px 0 #000; white-space: nowrap; }
.float.dmg { font-family: var(--font); font-weight: 800; font-size: 14px; color: #ffd0c0; }
.float.crit, .float.counter { color: var(--gold2); font-size: 19px; }
.float.big { font-size: 34px; color: var(--accent2); }
.dlg { position: absolute; left: 50%; bottom: calc(7vh + 14px); transform: translateX(-50%); width: min(900px, 94vw); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.97), rgba(13, 14, 18, 0.97)); border: 1px solid #343a44; border-left: 5px solid var(--sp, var(--accent)); border-radius: 8px;
  padding: 14px 18px 10px 14px; pointer-events: auto; cursor: pointer; box-shadow: 0 14px 40px rgba(0,0,0,0.6); z-index: 2; }
.dlg.pop { animation: dlgpop 0.22s ease-out; }
@keyframes dlgpop { from { transform: translateX(-50%) translateY(10px); opacity: 0.4; } to { transform: translateX(-50%); opacity: 1; } }
.dlg-pwrap { width: 100px; height: 100px; border-radius: 50%; padding: 3px; background: var(--sp, #ccc); box-shadow: 0 4px 14px rgba(0,0,0,0.5); align-self: start; }
.dlg-portrait { display: block; width: 94px; height: 94px; border-radius: 50%; background: var(--sp-accent, #333); }
.dlg-body { min-width: 0; display: flex; flex-direction: column; }
.dlg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dlg-name { color: var(--sp, #fff); font-weight: 900; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.dlg-role { color: var(--muted); font-size: 12px; font-weight: 500; }
.dlg-radio { font-size: 9.5px; font-weight: 900; letter-spacing: 0.14em; color: #17181c; background: #9cc3e8; padding: 1px 6px; border-radius: 2px; }
.dlg-text { font-size: 18.5px; line-height: 1.45; min-height: 2.9em; font-weight: 500; color: #f1f3f6; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 16px; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; opacity: 0.45; transition: opacity 0.2s; }
.dlg.done .dlg-foot { opacity: 1; }
.dlg.done .dlg-foot .nh:first-child { color: #fff; }
.dlg-timer { display: none; }
.dlg.narrator { grid-template-columns: minmax(0, 1fr); border-left-color: #5a616c; background: linear-gradient(180deg, rgba(10, 11, 14, 0.94), rgba(6, 7, 9, 0.94)); }
.dlg.narrator .dlg-pwrap, .dlg.narrator .dlg-head { display: none; }
.dlg.narrator .dlg-text { font-style: italic; color: #d9dde3; text-align: center; font-family: var(--serif); font-size: 19px; min-height: 0; padding: 4px 18px; }
.dlg.villain { border-left-style: double; border-left-width: 6px; }
.dlg.radio { top: 14px; bottom: auto; width: min(600px, 46vw); grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 12px 10px 8px; background: rgba(12, 14, 18, 0.88); cursor: default; pointer-events: none; border-radius: 6px; }
.dlg.radio .dlg-pwrap { width: 52px; height: 52px; padding: 2px; }
.dlg.radio .dlg-portrait { width: 48px; height: 48px; }
.dlg.radio .dlg-head { margin-bottom: 1px; }
.dlg.radio .dlg-name { font-size: 12.5px; }
.dlg.radio .dlg-role { font-size: 11px; }
.dlg.radio .dlg-text { font-size: 14.5px; min-height: 0; line-height: 1.38; }
.dlg.radio .dlg-foot { display: none; }
.dlg.radio .dlg-timer { display: block; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: rgba(255,255,255,0.08); }
.dlg.radio .dlg-timer i { display: block; height: 100%; background: var(--sp, var(--accent)); transform-origin: left; opacity: 0.7; }
.titlecard { position: absolute; left: 6vw; top: 27%; max-width: 80vw; z-index: 3; --tc-dur: 3s; }
.tc-bar { width: 92px; height: 6px; background: var(--accent); margin-bottom: 10px; }
.tc-kicker { color: var(--accent2); font-weight: 900; letter-spacing: 0.2em; font-size: 15px; text-transform: uppercase; text-shadow: 0 2px 4px #000; }
.tc-title { font-family: var(--heavy); font-size: clamp(42px, 7vw, 92px); color: #f4efe6; text-shadow: 0 4px 0 var(--blood), 0 0 30px rgba(0,0,0,0.7); letter-spacing: 0.02em; line-height: 0.98; }
.tc-sub { color: #dfe3e8; font-size: clamp(14px, 1.6vw, 19px); margin-top: 6px; text-shadow: 0 1px 4px #000; font-weight: 600; }
.titlecard.show { animation: card var(--tc-dur) ease-out forwards; }
@keyframes card { 0% { opacity: 0; transform: translateX(-50px); } 10% { opacity: 1; transform: translateX(0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
.titlecard.boss { left: auto; right: 6vw; top: 24%; text-align: right; }
.titlecard.boss .tc-bar { margin-left: auto; width: 140px; height: 10px; background: repeating-linear-gradient(135deg, #1b1c20 0 8px, var(--gold) 8px 16px); }
.titlecard.boss .tc-kicker { color: var(--gold2); }
.titlecard.boss .tc-title { text-shadow: 0 4px 0 #3a2a00, 0 0 30px rgba(0,0,0,0.7); }
.titlecard.boss.show { animation-name: cardR; }
@keyframes cardR { 0% { opacity: 0; transform: translateX(50px); } 10% { opacity: 1; transform: translateX(0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(-10px); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .wanted { width: 210px; }
  .w-face { width: 140px !important; height: 140px !important; }
  .end-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .title-screen { grid-template-columns: minmax(0, 1fr); }
  .wanted { display: none; }
  .dcards { grid-template-columns: minmax(0, 1fr); }
  .dc-desc { min-height: 0; }
  .shop-grid, .mv-grid, .set-cols, .credits { grid-template-columns: minmax(0, 1fr); }
  .hud-pa { display: none; }
  .hud-boss { bottom: auto; top: 104px; width: min(94vw, 640px); }
  .dlg.radio { top: auto; bottom: 150px; width: min(560px, 92vw); }
}
@media (max-width: 760px), (max-height: 560px) {
  .title-screen { padding: 3vh 16px 0; }
  .logo { font-size: 56px; }
  .tagline { font-size: 15px; margin: 6px 0 10px; }
  .mbtn { min-height: 40px; padding: 7px 12px; font-size: 15px; }
  .paula-ticker { margin: 0 -16px; padding: 0 16px; }
  .panel { padding: 16px 16px 12px; }
  .panel h2 { font-size: 30px; }
  .lvrow { grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px; }
  .lv-best { grid-column: 2; grid-row: 2; align-items: flex-start; text-align: left; }
  .lv-grade { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; font-size: 24px; }
  .lv-num { font-size: 28px; }
  .rng-track { width: 110px; }
  .notice { padding: 18px 16px 16px; }
  .nf-letterhead { grid-template-columns: auto minmax(0, 1fr); }
  .nf-ref { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
  .nf-row { grid-template-columns: minmax(0, 1fr) 60px 100px; font-size: 13px; }
  .nf-title { font-size: 34px; }
  .stamp { width: 128px; height: 128px; }
  .stamp b { font-size: 58px; }
  .shop-top { grid-template-columns: minmax(0, 1fr); }
  .shop-sign { align-items: flex-start; text-align: left; order: -1; }
  .trude-face { width: 84px; height: 84px; }
  .shop-bottom { grid-template-columns: minmax(0, 1fr); }
  .shop-bottom .mbtn { min-width: 0; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-cols { column-count: 1; }
  .newspaper { padding: 14px 14px 18px; }
  /* HUD */
  .face-ring { width: 62px; height: 62px; }
  .hud-face { width: 56px; height: 56px; }
  .bar { width: 170px; height: 14px; }
  .bar-senf, .bar-rage { width: 140px; height: 9px; }
  .hud-left { top: 88px; max-width: 56vw; }
  .ticker { min-width: 0; padding: 4px 8px 3px; }
  .share { font-size: 15px; }
  .share-spark { width: 130px; height: 30px; }
  .coins { font-size: 16px; }
  .hud-right { top: 26%; }
  .combo-n { font-size: 42px; }
  .rank { font-size: 46px; }
  .style-bar { width: 110px; }
  .bonus { font-size: 18px; }
  .wslot { min-width: 60px; }
  .wslot .wicon { width: 32px !important; height: 32px !important; }
  .aslot { width: 44px; height: 44px; }
  .aslot .aicon { width: 28px !important; height: 28px !important; }
  .hud-boss { top: 88px; }
  .boss-name { font-size: 19px; }
  .boss-sub { display: none; }
  .hud-prompt { bottom: 140px; font-size: 13.5px; }
  .hud-feed { max-width: 46vw; bottom: 150px; }
  .dlg { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px 8px 10px; bottom: calc(7vh + 6px); }
  .dlg-pwrap { width: 64px; height: 64px; }
  .dlg-portrait { width: 58px; height: 58px; }
  .dlg-text { font-size: 15.5px; }
  .dlg.radio { bottom: 128px; }
  .titlecard { top: 22%; }
}
@media (max-height: 640px) {
  .panel { max-height: calc(100vh - 24px); }
  .panel-screen { padding: 12px; }
}
