/* 魔王軍採用録 | Self-hosted Japanese pixel fonts for mobile and offline PWA.
   License files are distributed in assets/fonts/. */
@font-face {
  font-family:'DotGothic16Web';
  src:url('assets/fonts/DotGothic16-Regular.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family:'PixelMplus12Web';
  src:url('assets/fonts/PixelMplus12-Bold.woff2') format('woff2');
  font-style:normal;
  font-weight:700 900;
  font-display:swap;
}
:root {
  --rpg-body:'DotGothic16Web','MS Gothic','Osaka-Mono','Noto Sans CJK JP',sans-serif;
  --rpg-display:'PixelMplus12Web','DotGothic16Web','MS Gothic','Noto Sans CJK JP',sans-serif;
  --rpg-ink:#100b1a;
  --rpg-cream:#f5e2bd;
  --rpg-gold:#dbb782;
  --rpg-gold-bright:#f6d79b;
}
html { text-size-adjust:100%; -webkit-text-size-adjust:100%; }
body, button, input, select, textarea { font-family:var(--rpg-body)!important; }
body { font-size:16px; line-height:1.57; font-weight:400; letter-spacing:.015em; font-synthesis:weight; }
:where(.panel h2,.panel h3,.modal-window h2,.brand strong,.pixel-tree-title h2,.pixel-mp-intro h2,.interview-unit-title h3,.dash-card b,.pixel-map-heading strong,.pixel-detail-title,.game-landing h2,.facility-main h3,.facility-cost strong) {
  font-family:var(--rpg-display)!important;
  font-weight:800; letter-spacing:.035em; text-shadow:2px 2px 0 #120d1c;
}
.brand strong { font-size:28px; }
.panel h2,.modal-window h2 {font-size:26px; line-height:1.4;}
.panel h3 {font-size:19px; line-height:1.5;}
:where(.eyebrow,.brand small,.pixel-small-label,.interview-kicker) {font-family:var(--rpg-display)!important;letter-spacing:.09em;}
:where(.advisor-speech p,.interview-speech p,.lilith-reaction-text p,.pixel-tree-dialogue p,.event-lilith-speech,.facility-popover p,.facility-popover li) {line-height:1.75;}
:where(.dash-card span,.nav-tabs button,.btn,.action-card b,.facility-row,.interview-meta,.interview-action-hint) {text-rendering:optimizeLegibility;}
/* 3-4px chamfered corners; crisp bevels without generic rounded web buttons. */
:where(.btn,.nav-tabs button,.action-card,.pixel-branch,.pixel-work-shortcut,.pixel-purchase,.pixel-node,.speed-group button,.facility-info-btn,.facility-popover-close) {
  --rpg-face:#382b4b; --rpg-top:#5c496c; --rpg-low:#251a34; --rpg-rim:#96819e;
  -webkit-appearance:none; appearance:none;
  clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px),0 4px,4px 4px);
  border:3px solid var(--rpg-rim)!important;
  border-radius:0!important;
  background:linear-gradient(to bottom,var(--rpg-top) 0 4px,var(--rpg-face) 4px calc(100% - 7px),var(--rpg-low) calc(100% - 7px) 100%)!important;
  color:var(--rpg-cream); text-shadow:1px 2px 0 #120a1b;
  box-shadow:inset 2px 2px 0 #d7c6e133,inset -3px -3px 0 #100b1b,0 0 0 1px #120a1b!important;
  transition:transform .1s steps(2,end),filter .1s steps(2,end)!important;
  -webkit-tap-highlight-color:transparent;
}
:where(.btn,.nav-tabs button,.pixel-branch,.pixel-work-shortcut,.pixel-purchase,.pixel-node) {
  font-family:var(--rpg-display)!important; font-weight:800;
}
.btn { min-height:46px; padding:10px 17px; font-size:16px; line-height:1.35; }
.btn.small { min-height:39px; padding:8px 12px; font-size:14px; }
.btn.large { min-height:52px; font-size:17px; }
.btn.primary,.pixel-purchase {
  --rpg-face:#79513f; --rpg-top:#b48558; --rpg-low:#4b2b31; --rpg-rim:#f1d39b;
  color:#fff0c9!important;
}
.btn.good { --rpg-face:#356255; --rpg-top:#528a70; --rpg-low:#203e3c; --rpg-rim:#91c5a5; }
.btn.danger { --rpg-face:#6a3541; --rpg-top:#995063; --rpg-low:#431e32; --rpg-rim:#dc9297; }
.btn.ghost { --rpg-face:#2b233d; --rpg-top:#4a3858; --rpg-low:#191225; --rpg-rim:#8c7295; color:#e5d7e8!important; }
.btn:hover:not(:disabled),.action-card:hover:not(:disabled),.nav-tabs button:hover:not(:disabled),.pixel-purchase:hover:not(:disabled),.pixel-branch:hover:not(:disabled) {
  filter:brightness(1.18)!important; transform:translateY(-1px)!important;
}
.btn:active:not(:disabled),.action-card:active:not(:disabled),.nav-tabs button:active:not(:disabled),.pixel-purchase:active:not(:disabled) {
  transform:translate(2px,2px)!important;
  filter:brightness(.94)!important;
  box-shadow:inset 2px 2px 0 #110c18!important;
}
.btn:disabled,.pixel-purchase:disabled {
  --rpg-face:#292331;--rpg-top:#342e3e;--rpg-low:#201b2a;--rpg-rim:#66596c;
  opacity:1!important;filter:grayscale(.25);color:#aa9cae!important;
  text-shadow:none;
}
:where(.btn,.nav-tabs button,.action-card,.pixel-branch,.pixel-node,.pixel-purchase,.facility-info-btn):focus-visible {
  outline:3px solid #ffe6ae!important;outline-offset:3px!important;
}
/* Menu tabs, battle speed and screen actions use the same material language. */
.nav-tabs {gap:6px;border-bottom:3px solid #81643d;padding-bottom:3px;}
.nav-tabs button { min-height:43px;padding:9px 16px;font-size:16px; --rpg-rim:#756081; }
.nav-tabs button.active,.nav-tabs button[aria-current="page"] {
  --rpg-face:#69445e;--rpg-top:#906385;--rpg-low:#3b2845;--rpg-rim:#e1bd83;
  color:#fff1bf!important;
}
.action-card {
  --rpg-face:#35283f; --rpg-top:#5b4060; --rpg-low:#22182f; --rpg-rim:#9f7f64;
  padding:15px 16px;min-height:98px;
}
.action-card.highlight {--rpg-face:#56384f; --rpg-top:#82536a; --rpg-rim:#e1bf88;}
.action-card b {font-family:var(--rpg-display);font-size:18px;line-height:1.4;}
.action-card small {font-size:13px;line-height:1.5;}
.action-symbol {border:3px solid #b28c5d;border-radius:0;box-shadow:inset 2px 2px #9f7f653a,3px 3px #100b19;background:#22182d;}
/* Skill tree nodes are already actual graph nodes; unify their jewel plates. */
.pixel-branch {--rpg-face:#30253e;--rpg-top:#544365;--rpg-low:#1b1529;--rpg-rim:#786485;}
.pixel-branch.current {--rpg-face:#604363;--rpg-top:#865e84;--rpg-low:#392941;--rpg-rim:#e1b77c;}
.pixel-node {--rpg-face:#34253e;--rpg-top:#4e3960;--rpg-low:#20162b;--rpg-rim:#73587c;}
.pixel-node.pixel-ready {--rpg-face:#42304d;--rpg-top:#655074;--rpg-low:#281b35;--rpg-rim:#dfb678;}
.pixel-node.pixel-owned {--rpg-face:#2c4738;--rpg-top:#4d6c55;--rpg-low:#192d25;--rpg-rim:#92c39d;}
.pixel-node.pixel-selected {--rpg-face:#604462;--rpg-top:#856485;--rpg-low:#3b284b;--rpg-rim:#ffe0a0;}
.pixel-node.pixel-locked,.pixel-node.pixel-insufficient {--rpg-face:#2b2434;--rpg-top:#40364b;--rpg-low:#1e1927;--rpg-rim:#6c5974;}
.pixel-purchase:disabled {--rpg-face:#292231;--rpg-top:#3d3344;--rpg-low:#1f1926;--rpg-rim:#74667b;}
.pixel-work-shortcut {--rpg-face:#322740;--rpg-top:#544464;--rpg-low:#1e152a;--rpg-rim:#8b745e;}
.pixel-map-count,.pixel-mp-display strong,.pixel-mp-cost,.dash-card b {font-family:var(--rpg-display)!important;}
.pixel-branch span {font-size:14px;}
.pixel-detail-desc,.pixel-detail-status {line-height:1.6;}
/* Gold is a decision-making resource; give it an anchored spot beside the applicant count. */
.interview-heading {gap:12px;}
.interview-wallet {
  display:flex; flex-direction:column; justify-content:center;
  flex-shrink:0; min-width:124px; text-align:center;
  border:3px solid #c6a16c; padding:7px 12px; background:#35273d;
  box-shadow:inset 0 0 0 3px #4c3853,3px 3px #130b19;
}
.interview-wallet span {font-size:13px;color:#dac5d7;line-height:1.4;}
.interview-wallet strong {font:800 23px/1.28 var(--rpg-display);color:#ffe0a2;white-space:nowrap;}
.interview-wallet strong small {font-size:13px;}
.interview-wallet.low {border-color:#af6a70;}
.interview-wallet.low strong {color:#ffaaa9;}
.interview-afford {font-size:12px;color:#ffc1b3;margin-top:2px;line-height:1.3;}
.interview-wallet:not(.low) .interview-afford {color:#abd6b8;}
.interview-unit-title h3 {font-size:25px;}
.interview-speech p {font-size:17px;}
/* Our new currency display replaces the redundant footer line. */
.interview-action-hint {font-size:12px;}
.interview-info {min-width:0;}
/* Keep important labels clearly readable without swelling every compact HUD glyph. */
.interview-count>span,.interview-price small,.interview-stat-grid small {font-size:13px;}
.interview-main-actions .btn {font-size:16px;min-height:52px;}
.interview-secondary-actions .btn {font-size:13px;}
/* Preserve clickable Lilith image as a plain portrait; not a slab button. */
.lilith-tappable {font-family:var(--rpg-body)!important;clip-path:none!important;}
/* Facility info icons use a carved square and keep the popovers functional. */
.facility-info-btn {--rpg-face:#372b43;--rpg-top:#62506e;--rpg-low:#271a36;--rpg-rim:#c6a16f;}
.facility-popover-close {--rpg-face:#443043;--rpg-top:#6a485f;--rpg-low:#281c34;--rpg-rim:#bca183;}
.facility-main h3 {font-size:20px;}
/* Control widths/small screens: prefer wrapping over clipping text. */
@media(max-width:900px) { .nav-tabs button {padding:8px 12px;font-size:14px;} .pixel-branch span {font-size:13px;} }
@media(max-width:700px) {
  .game-shell {padding-left:12px;padding-right:12px;}
  .interview-heading {flex-wrap:wrap;}
  .interview-wallet {min-width:115px;min-height:56px;order:2;margin-left:auto;}
  .interview-count {order:3;min-width:66px;}
  .interview-wallet strong {font-size:21px;}
  .interview-main-actions .btn {font-size:14px;}
  .brand strong {font-size:23px;}
}
@media(max-width:450px) {
  .btn {font-size:14px;padding:9px 10px;}
  .btn.small {font-size:12px;}
  .nav-tabs button {font-size:13px;}
  .interview-heading h2 {font-size:22px;}
  .interview-wallet {width:100%;order:2;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;}
  .interview-wallet .interview-afford {margin-left:auto;}
  .interview-count {order:3;}
  .pixel-branch span {font-size:12px;}
}
@media(prefers-reduced-motion:reduce){.btn,.nav-tabs button,.action-card,.pixel-node{transition:none!important;}}
