:root { color-scheme:dark; --ink:#17131d; --panel:#24202b; --paper:#fff4da; --muted:#c5bbc9; --lime:#d5ff3f; --orange:#ff683b; --pink:#ff80b5; --line:#49404e; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:16px; font-synthesis:none; }
* { box-sizing:border-box; }
html { min-height:100%; background:var(--ink); }
body { margin:0; color:var(--paper); background:radial-gradient(ellipse at 80% 0%,#39213c 0,transparent 60%); min-height:100svh; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button { font:inherit; cursor:pointer; }
button:disabled { cursor:default; opacity:.65; }
button:focus-visible,a:focus-visible { outline:3px solid var(--pink); outline-offset:4px; }
[hidden] { display:none!important; }
h1,h2,h3,p { margin:0; }
h2:focus,h1:focus { outline:none; }
.game-shell { width:min(100%,1060px); margin:auto; padding:env(safe-area-inset-top,0px) max(18px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px)); }
.game-header { min-height:74px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.back-link { text-decoration:none; color:var(--muted); font-size:.875rem; font-weight:650; display:inline-flex; gap:9px; align-items:center; min-height:44px; }
.header-actions { display:flex; align-items:center; gap:12px; }
.text-button { border:0; background:none; color:var(--muted); min-height:44px; padding:4px; font-size:.875rem; }
.sound-button { border:1px solid var(--line); background:var(--panel); color:var(--paper); border-radius:8px; min-height:44px; padding:0 12px; font-size:.75rem; font-weight:850; letter-spacing:.04em; }
.sound-button[aria-pressed="true"] { border-color:var(--lime); color:var(--lime); }
.eyebrow { text-transform:uppercase; color:var(--muted); letter-spacing:.14em; font-size:.75rem; font-weight:800; line-height:1.5; }
.start-screen { display:grid; grid-template-columns:1fr 1.25fr; gap:45px; align-items:center; padding:48px 0 58px; }
.start-copy { position:relative; }
.game-title { font-family:Impact,Haettenschweiler,"Arial Narrow","Arial Black",sans-serif; font-size:clamp(4.5rem,8.5vw,7rem); font-weight:900; line-height:.92; letter-spacing:-.035em; margin:17px 0 8px; color:var(--paper); transform:rotate(-2deg); text-shadow:5px 5px 0 #09070c; }
.game-title span { color:var(--lime); }
.subtitle-stamp { display:inline-block; background:var(--orange); color:var(--ink); padding:7px 12px; transform:rotate(-4deg); font-size:1.2rem; letter-spacing:.055em; font-weight:950; box-shadow:4px 4px 0 #09070c; }
.intro-copy { font-size:1.55rem; font-weight:850; line-height:1.18; margin-top:28px; }
.start-description { color:var(--muted); line-height:1.5; margin:14px 0 22px; max-width:28rem; }
.primary-button { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:2px solid var(--ink); border-radius:10px; background:var(--lime); color:var(--ink); padding:13px 20px; font-weight:950; font-size:1.1rem; box-shadow:0 5px 0 #08060b; transition:transform .12s; }
.primary-button:active { transform:translateY(3px); box-shadow:0 2px 0 #08060b; }
.primary-button span { font-size:1.4em; }
.start-footnote { margin-top:14px; color:var(--muted); font-size:.75rem; line-height:1.5; }
.cover-wrap { border:3px solid #08060b; border-radius:16px; position:relative; transform:rotate(2deg); box-shadow:10px 11px 0 #0a070f; background:var(--orange); }
.cover-art { display:block; width:100%; height:435px; object-fit:cover; object-position:54% center; border-radius:12px 12px 0 0; }
.cover-caption { color:var(--ink); text-align:center; font-size:.875rem; letter-spacing:.04em; font-weight:950; padding:16px 6px; border-top:3px solid var(--ink); }
.cover-sticker { position:absolute; top:-20px; right:-12px; background:var(--lime); border:3px solid var(--ink); color:var(--ink); font-weight:950; font-size:.875rem; padding:12px; transform:rotate(8deg); box-shadow:3px 4px 0 var(--ink); }
.game-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding:20px 0 3px; font-size:.75rem; color:var(--muted); line-height:1.5; }
.game-footer>:first-child { font-weight:950; letter-spacing:.1em; }
.shift-topline { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin:4px 0 14px; }
.mini-title { font-family:Impact,"Arial Black",sans-serif; font-size:1.5rem; letter-spacing:.02em; color:var(--lime); }
.shift-time { color:var(--muted); font-size:.875rem; font-variant-numeric:tabular-nums; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:21px; }
.stat { background:var(--panel); padding:13px 15px 11px; border:1px solid var(--line); border-radius:10px; min-width:0; }
.stat-heading { display:flex; align-items:baseline; justify-content:space-between; gap:5px; flex-wrap:wrap; }
.stat-label { color:var(--muted); font-size:.75rem; font-weight:850; letter-spacing:.08em; }
.stat-value { color:var(--paper); font-size:1.45rem; font-weight:900; line-height:1.2; font-variant-numeric:tabular-nums; }
.cash-stat .stat-value { color:var(--lime); }
.meter { margin-top:9px; height:4px; background:#49404e; border-radius:5px; overflow:hidden; }
.meter i { display:block; height:100%; width:var(--amount); background:var(--lime); border-radius:inherit; transition:width .25s; }
.dignity-stat .meter i { background:var(--pink); }
.stat-danger .stat-value { color:var(--orange); }
.stat-danger .meter i { background:var(--orange); }
.cash-caption { margin-top:5px; color:var(--muted); font-size:.75rem; }
.scene-layout { display:grid; grid-template-columns:1.06fr 1fr; gap:30px; align-items:start; margin-bottom:26px; }
.scene-visual { position:sticky; top:20px; }
.art-frame { overflow:hidden; position:relative; aspect-ratio:1; width:100%; border:3px solid #08060b; border-radius:13px; background:#493246; box-shadow:5px 6px 0 #08060b; }
.scene-art { position:absolute; top:50%; width:100%; aspect-ratio:1; transform:translateY(-50%); background-size:200% 200%; background-position:var(--position); background-repeat:no-repeat; }
.scene-art.cover { height:100%; aspect-ratio:auto; background-size:cover; background-position:center; background-image:url("assets/pizza/cover.webp"); }
.atlas-a { background-image:url("assets/pizza/scenes-a.webp"); }
.atlas-b { background-image:url("assets/pizza/scenes-b.webp"); }
.scene-tag { position:absolute; left:11px; top:11px; background:var(--paper); color:var(--ink); border:2px solid var(--ink); border-radius:4px; padding:6px 9px; font-size:.75rem; line-height:1.2; font-weight:950; box-shadow:2px 2px 0 var(--ink); }
.reaction-stamp { position:absolute; right:10px; bottom:13px; max-width:90%; padding:8px 13px; background:var(--orange); color:var(--ink); border:3px solid var(--ink); box-shadow:3px 3px 0 var(--ink); font-size:clamp(1.05rem,3vw,1.6rem); font-weight:950; transform:rotate(-5deg); line-height:1.15; }
.reaction-stamp.good { background:var(--lime); }
.art-caption { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:.75rem; margin:12px 3px 0; }
.route-dots { display:inline-flex; gap:5px; }
.route-dot { width:16px; height:5px; border-radius:2px; background:#49404e; }
.route-dot.filled { background:var(--orange); }
.scene-content { padding-top:2px; min-width:0; }
.scene-content .eyebrow { color:var(--pink); margin-bottom:7px; }
.scene-heading { font-size:clamp(1.7rem,3vw,2.5rem); font-weight:950; line-height:1.06; letter-spacing:-.04em; text-wrap:balance; }
.story-text { margin:15px 0 18px; font-size:1rem; line-height:1.55; color:#ece1ea; }
.choices { display:grid; gap:10px; }
.choice-button { display:flex; align-items:center; gap:12px; width:100%; text-align:left; border:1px solid #605264; border-radius:9px; background:var(--panel); color:var(--paper); min-height:68px; padding:13px; box-shadow:0 3px 0 #0b0810; transition:background .12s,border-color .12s,transform .12s; }
.choice-letter { display:grid; place-items:center; width:29px; height:31px; flex:0 0 29px; border:1px solid #605264; border-radius:5px; color:var(--pink); font-size:.875rem; font-weight:900; }
.choice-copy { flex:1; min-width:0; }
.choice-copy strong { font-size:1rem; font-weight:760; line-height:1.35; display:block; }
.choice-copy small { display:block; font-size:.875rem; line-height:1.35; color:var(--muted); margin-top:3px; }
.choice-button:active { transform:translateY(2px); border-color:var(--lime); background:#39333f; }
.choice-button.special { border-color:var(--lime); }
.choice-button.special .choice-letter { color:var(--lime); }
.choice-hint { font-size:.75rem; line-height:1.5; color:var(--muted); margin:13px 2px 0; }
.consequences { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 20px; }
.delta { font-size:.875rem; font-weight:800; color:var(--orange); border:1px solid #784936; background:#362521; padding:7px 10px; border-radius:6px; }
.delta.positive { color:var(--lime); border-color:#52642f; background:#273020; }
.delta.neutral { color:var(--pink); border-color:#735366; background:#342634; }
.status-tags { display:flex; flex-wrap:wrap; gap:6px; margin:13px 0 0; }
.status-tag { color:var(--pink); font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:5px 8px; background:#3f293c; border:1px solid #76566e; border-radius:5px; }
.reaction .scene-content { animation:arrive .2s ease-out; }
.reaction .reaction-stamp { animation:stamp .2s ease-out; }
.receipt-layout { display:grid; grid-template-columns:1fr 1fr; gap:38px; align-items:start; margin:12px 0 40px; }
.end-heading { font-family:Impact,"Arial Black",sans-serif; font-size:clamp(2.8rem,6vw,4rem); line-height:1.03; letter-spacing:-.01em; color:var(--lime); margin:10px 0 18px; }
.end-copy { color:var(--muted); line-height:1.55; margin-bottom:20px; }
.end-art { aspect-ratio:1.3; margin-top:20px; }
.receipt { color-scheme:light; color:var(--ink); background:var(--paper); padding:28px 24px 25px; box-shadow:6px 7px 0 #08060b; border-radius:3px; position:relative; font-family:ui-monospace,"Courier New",monospace; }
.receipt:after { content:""; position:absolute; height:10px; bottom:-9px; left:0; right:0; background:linear-gradient(135deg,var(--paper) 25%,transparent 25%) -10px 0/20px 20px,linear-gradient(225deg,var(--paper) 25%,transparent 25%) -10px 0/20px 20px; }
.receipt h3 { text-align:center; font-size:1.3rem; font-weight:900; }
.receipt-subtitle { text-align:center; margin:7px 0 18px; font-size:.875rem; }
.receipt-table { border-top:2px dashed #877b6a; border-bottom:2px dashed #877b6a; padding:12px 0; }
.receipt-row { display:grid; grid-template-columns:1fr auto; gap:14px; padding:6px 0; font-size:.875rem; line-height:1.45; }
.receipt-row>:last-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.receipt-total { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:15px; padding:18px 0; font-weight:900; font-size:1rem; }
.receipt-total strong { font-size:1.8rem; }
.receipt-note { text-align:center; line-height:1.5; font-size:.875rem; margin-top:12px; }
.end-replay { margin-top:27px; }
.ending-count { font-size:.75rem; color:var(--muted); margin-top:14px; }
.noscript { padding:24px; }
dialog { background:var(--panel); color:var(--paper); border:2px solid var(--orange); border-radius:14px; padding:25px; max-width:min(430px,calc(100% - 30px)); }
dialog::backdrop { background:#09060cd9; }
dialog h2 { font-size:1.65rem; line-height:1.1; }
dialog p { line-height:1.5; color:var(--muted); margin:15px 0 20px; }
dialog form { display:grid; gap:12px; }
@keyframes arrive { from { opacity:.4; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes stamp { from { transform:rotate(-5deg) scale(1.12); } to { transform:rotate(-5deg) scale(1); } }
@media (hover:hover) { .choice-button:hover { border-color:var(--lime); background:#332d3b; } .primary-button:hover { background:#e1ff75; } .back-link:hover,.text-button:hover { color:var(--paper); } }
@media (max-width:700px) {
  .game-shell { max-width:510px; padding-left:max(15px,env(safe-area-inset-left,0px)); padding-right:max(15px,env(safe-area-inset-right,0px)); }
  .game-header { min-height:60px; }
  .start-screen { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:10px 0 28px; }
  .start-copy { display:contents; }
  .start-copy>.eyebrow { order:0; font-size:.75rem; text-align:center; }
  .game-title { order:1; font-size:min(13vw,4.5rem); text-align:center; line-height:1; margin:7px 0 0; letter-spacing:-.04em; }
  .game-title br { display:none; }
  .game-title span { margin-left:.07em; }
  .subtitle-stamp { order:2; align-self:center; font-size:.95rem; padding:5px 12px; margin-top:5px; z-index:1; }
  .cover-wrap { order:3; margin:21px 1px 0; transform:rotate(1deg); box-shadow:4px 5px 0 #08060b; border-radius:11px; }
  .cover-art { height:auto; aspect-ratio:1.6; object-fit:cover; border-radius:8px 8px 0 0; }
  .cover-caption { font-size:.75rem; padding:9px 5px; }
  .cover-sticker { top:-14px; right:-6px; font-size:.75rem; padding:8px; }
  .intro-copy { order:4; font-size:1.2rem; margin-top:21px; text-align:center; }
  .intro-copy br { display:none; }
  .start-description { order:5; text-align:center; font-size:1rem; line-height:1.4; margin:9px auto 16px; }
  #start-button { order:6; }
  .start-footnote { order:7; text-align:center; margin-top:12px; }
  .game-footer { padding-top:14px; font-size:.75rem; }
  .game-footer>:first-child { display:none; }
  .game-footer>:last-child { margin:auto; }
  .shift-topline { margin:0 0 10px; }
  .mini-title { font-size:1.3rem; }
  .shift-time { font-size:.75rem; }
  .stats { gap:7px; margin-bottom:13px; }
  .stat { padding:9px 10px 8px; border-radius:8px; }
  .stat-heading { display:block; }
  .stat-value { font-size:1.35rem; margin-top:3px; display:block; }
  .stat-label { font-size:.75rem; }
  .meter { margin-top:7px; }
  .cash-caption { font-size:.75rem; margin-top:3px; }
  .scene-layout { display:block; margin-bottom:22px; }
  .scene-visual { position:static; }
  .art-frame { aspect-ratio:1.5; box-shadow:3px 4px 0 #08060b; }
  .scene-art:not(.cover) { transform:translateY(calc(-50% + var(--crop,0px))); }
  .art-caption { margin-top:9px; }
  .scene-content { padding-top:17px; }
  .scene-heading { font-size:1.9rem; line-height:1.08; }
  .story-text { margin:11px 0 15px; line-height:1.45; }
  .choices { gap:9px; }
  .choice-button { min-height:63px; padding:11px; gap:10px; }
  .choice-copy small { font-size:.875rem; }
  .choice-hint { margin-top:11px; }
  .status-tags { margin-top:10px; }
  .reaction-stamp { font-size:1.18rem; bottom:10px; padding:7px 10px; }
  .receipt-layout { display:block; margin-top:4px; }
  .end-heading { font-size:3.1rem; margin:10px 0 12px; }
  .end-art { margin:16px 0 25px; aspect-ratio:1.7; }
  .receipt { padding:24px 21px; }
  .end-replay { margin-top:28px; }
}
@media (max-width:370px) {
  .game-shell { padding-left:max(12px,env(safe-area-inset-left,0px)); padding-right:max(12px,env(safe-area-inset-right,0px)); }
  .game-title { font-size:13.6vw; } .game-header { gap:6px; } .header-actions { gap:7px; }
  .scene-heading { font-size:1.7rem; } .route-dot { width:11px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
