@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/source-sans-3-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tiny5';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/tiny5-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Tiny5';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/tiny5-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{color-scheme:dark;--ink:#2c1620;--teal:#542637;--deep:#331723;--paper:#f8e8c1;--sun:#ffcf6e;--edge:#261119;--pix:"Tiny5",system-ui,sans-serif;--body:"Source Sans 3",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:#381a29;color:var(--paper);font-family:var(--body);font-size:16px}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #ffdb73;outline-offset:3px}button:disabled{cursor:not-allowed}button .gico,button span{pointer-events:none}[hidden]{display:none!important}.gico{display:inline-block;vertical-align:middle;width:1.35em;height:1.35em;image-rendering:pixelated;flex:none}button:active:not(:disabled){transform:translateY(2px)}#game{max-width:1920px;margin:auto;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 24% 42%,#6a3341 0,#351b2b 68%);overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px clamp(15px,2.2vw,36px);background:linear-gradient(180deg,#63283d,#441e30);border-bottom:2px solid #2b1422;box-shadow:inset 0 -3px #865063;min-height:76px;z-index:2}.identity,.hud,.counter{display:flex;align-items:center}.identity{gap:18px}.brand img{width:100%;display:block}.brand{width:92px;filter:drop-shadow(1px 2px 0 #2b1422)}.divider{border-left:1px solid #9a6373;height:34px}.game-name{font:400 32px/1.12 var(--pix);color:#fff0c7;white-space:nowrap}.game-name small{font:500 13px/1.4 var(--body);color:#efcfc2;display:flex;gap:6px;align-items:center;margin-top:5px}.game-name i{width:6px;height:6px;background:#e4ba69;box-shadow:2px 0 #b97656}.hud{gap:10px}.counter{gap:10px;background:#3c1a28;border:2px solid #2b1422;box-shadow:inset 0 2px #764253;min-width:102px;padding:6px 12px}.counter .gico{width:31px;height:31px}.counter small,.counter strong{display:block}.counter small{font-size:12px;color:#ebd0c2}.counter strong{font:700 24px/1.05 var(--body);margin-top:3px;color:#fff3cc}.coin-counter strong{color:#ffcf69}.round{width:36px;height:36px;display:grid;place-items:center;border:1px solid #a16a73;border-radius:4px;background:#602d40;color:#f1d4b5}.round:hover{background:#7e4052}.playarea{display:grid;grid-template-columns:minmax(0,1fr) clamp(255px,21vw,330px);flex:1;min-height:0}.map{position:relative;display:grid;align-items:center;overflow:hidden;isolation:isolate;min-width:0;background:#311c2a}.map:before{position:absolute;content:'';inset:-20px;background:linear-gradient(#39202b66,#30162288),var(--hall-art,url('assets/hall-24.webp')) center/cover;filter:blur(16px);z-index:-1}.scenewrap{position:relative;width:100%;aspect-ratio:3/2;max-height:none;margin:auto}.map.zoomed .scenewrap{transform:scale(1.28);transform-origin:50% 55%}#world{position:absolute;inset:0}.world-art,#people{position:absolute;inset:0;width:100%;height:100%;display:block}.world-art{user-select:none}.awning-brand{position:absolute;left:42.8%;top:69.1%;width:11.2%;height:4%;pointer-events:none;z-index:2;filter:drop-shadow(1px 1px 0 #662c25)}.awning-brand img{width:100%;height:100%;object-fit:contain}.pin{position:absolute;z-index:4;background:#fff0c2;border:2px solid #473b30;box-shadow:inset 0 -3px #cfa957,0 3px #372f29;border-radius:7px;width:36px;height:33px;display:grid;place-content:center;color:#583143;transform:translate(-50%,-100%)}.pin:after{content:'';position:absolute;height:6px;width:6px;bottom:-6px;left:calc(50% - 3px);background:#e7ca83;border:solid #493e31;border-width:0 2px 2px 0;transform:rotate(45deg)}.pin:hover,.pin:focus-visible{background:#fff9de}.pin:active:not(:disabled){transform:translate(-50%,calc(-100% + 2px))}.pin-stock{left:28.6%;top:41%}.pin-staff{left:70.8%;top:44%}.map-loc{position:absolute;bottom:12px;left:14px;background:#472336eb;border:1px solid #978f6e;color:#f9e9c9;box-shadow:0 2px 0 #351824;border-radius:4px;padding:5px 9px;display:flex;align-items:center;gap:6px;font-size:13px;z-index:5}.side{display:flex;flex-direction:column;align-self:stretch;gap:clamp(14px,2.6vh,26px);padding:clamp(15px,1.6vw,26px);border-left:4px solid #351824;background:repeating-linear-gradient(0deg,transparent 0 4px,#40162412 4px 5px),linear-gradient(135deg,#673246,#472235 80%);box-shadow:inset 2px 0 #985c67}.quest{background:#f7e8c4;color:#312c24;border:3px solid #422033;border-radius:3px;box-shadow:2px 4px 0 #351724,inset 0 0 0 2px #d9c08c}.quest-title{display:flex;align-items:center;padding:9px 12px;color:#fbd580;background:#713445;gap:7px;border-bottom:3px solid #492336}.quest-title h2{font:650 19px/1.15 var(--body);margin:0}.quest-title .gico{font-size:14px}.quest-title b{margin-left:auto;color:#dcb670}.quest-body{padding:15px}.quest h1{font:400 32px/1.13 var(--pix);margin:0 0 10px;color:#4a2531}.quest p{font-size:16px;line-height:1.42;margin:0;color:#514737}.step{display:flex;gap:8px;align-items:baseline;font-size:14px;line-height:1.3;margin-top:8px;color:#604536}.step i{width:11px;height:11px;border:2px solid #8c7952;display:inline-block;flex:none;background:#f8efcf}.step.done i{background:#9f4b58;box-shadow:inset 0 0 0 2px #e2d9a9}.quest-action{margin-top:15px;width:100%;padding:8px 5px 9px;background:#f7d57e;color:#463720;border:2px solid #745b34;box-shadow:inset 0 2px #fff0bb,0 2px #795936;font-weight:700;font-size:14px}.quest-action:hover{background:#ffe19a}.manager{margin:0 2px}.speaker{display:flex;align-items:center;gap:10px}.speaker #portrait{width:41px;height:44px;image-rendering:pixelated;background:#cbb07b;border:2px solid #411f2c;box-shadow:inset 0 0 0 2px #e7ca94}.speaker strong{display:block;font:650 21px/1.15 var(--body);color:#ffdf9d}.speaker small{display:block;font-size:12px;margin-top:2px;color:#e9cfc6}.manager p{font-size:16px;line-height:1.45;margin:9px 0 0;color:#f1ebd2}.turn{margin-top:auto}.next-day{width:100%;background:#f8c15d;border:3px solid #352f21;color:#332e20;box-shadow:inset 0 3px #ffe6a3,inset 0 -4px #cf8e35,2px 3px #351625;border-radius:4px;min-height:51px;display:flex;align-items:center;justify-content:center;gap:8px;font:700 clamp(18px,1.6vw,22px)/1.15 var(--body)}.next-day:hover{background:#ffce76}.demo-note{display:block;border:0;background:transparent;color:#e4c9c2;font-size:12px;margin:8px auto 0;text-align:center}.dock{z-index:2;background:#4d2334;display:flex;justify-content:center;gap:8px;padding:10px 14px 12px;border-top:3px solid #301422;box-shadow:inset 0 2px #8d5160}.dock button{min-width:0;width:clamp(109px,13vw,175px);padding:8px 4px;display:flex;gap:9px;align-items:center;justify-content:center;border-radius:4px;color:#f6eac9;border:2px solid #321421;background:linear-gradient(#784050,#632f40);box-shadow:inset 0 2px #a3636e,0 3px #321522}.dock button:hover{background:#8f4b5f;color:#fff9df}.dock .gico{width:30px;height:30px}.dock b{font:650 clamp(15px,1.35vw,19px)/1.2 var(--body)}#toast{display:none;position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#472537f5;color:#fff0c7;padding:10px 15px;border:2px solid #cdb478;max-width:min(85%,580px);box-shadow:2px 3px 0 #311c24;z-index:10;text-align:center;font-size:15px}#toast.on{display:block}
@media(min-width:1020px) and (min-aspect-ratio:17/10){.scenewrap{width:min(100%,calc((100svh - 148px)*1.5));min-width:70%}.playarea{min-height:min(540px,72vh)}}
@media(max-width:900px){.topbar{padding:9px 14px;min-height:64px}.hud{gap:6px}.playarea{grid-template-columns:minmax(0,1fr) 235px}.side{padding:13px;gap:14px}.quest-body{padding:12px}.quest h1{font-size:24px}.manager p,.quest p{font-size:15px}.brand{width:77px}.identity{gap:12px}.dock{gap:5px}.dock button{flex:1;max-width:145px}.dock .gico{width:25px;height:25px}}
@media(max-width:720px){.topbar{padding:8px 11px;min-height:55px}.brand{width:62px}.identity{gap:8px}.divider{height:26px}.game-name{font-size:24px}.game-name small{font-size:12px;margin-top:2px}.hud{gap:4px}.counter{min-width:0;padding:4px 6px;gap:4px}.counter small{display:none}.counter strong{font-size:17px;margin:0}.counter .gico{width:19px;height:19px}.round{width:28px;height:28px}.playarea{display:flex;flex-direction:column}.map{flex:none}.scenewrap{width:100%}.side{border:0;border-top:3px solid #381526;box-shadow:inset 0 2px #915367;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;padding:13px;align-items:start;align-content:start;flex:1}.quest{grid-row:1 / span 2}.quest-title{padding:6px 9px}.quest-title h2{font-size:16px}.quest-body{padding:10px}.quest h1{font-size:24px}.quest p{font-size:15px;line-height:1.38}.step{font-size:14px;margin-top:6px}.quest-action{font-size:15px;margin-top:10px}.speaker strong{font-size:19px}.speaker{gap:7px}.speaker #portrait{width:31px;height:34px}.manager p{font-size:15px;line-height:1.38}.next-day{font-size:16px;min-height:45px;gap:4px}.demo-note{font-size:12px}.dock{position:sticky;bottom:0;padding:4px 5px 7px;gap:3px}.dock button{flex-direction:column;gap:4px;padding:5px 1px}.dock b{font-size:13px}.dock .gico{width:23px;height:23px}.pin{width:28px;height:26px}.pin:before{content:'';position:absolute;inset:-8px}.map-loc{bottom:6px;left:6px;padding:3px 6px;font-size:11px}#toast{bottom:68px}}
@media(max-width:375px){.brand{width:43px}.side{padding:8px;gap:8px}.identity{gap:6px}.game-name{font-size:24px}.dock b{font-size:12px}}
@media(prefers-reduced-motion:no-preference){.scenewrap{transition:transform .24s}.pin:hover{filter:brightness(1.1)}}


.speaker #portrait{object-fit:contain;image-rendering:auto;background:#dec393}
@media(min-width:721px){.scenewrap{width:min(100%,calc((100svh - 164px)*1.5));min-width:64%}}
@media(max-width:720px){.topbar{gap:4px}.identity{gap:7px}.identity .divider{display:none}.brand{width:48px}.game-name{font-size:24px}.counter{padding:4px 5px}.map{height:clamp(260px,43svh,430px)}.scenewrap{position:absolute;left:50%;top:50%;width:max(100%,calc(clamp(260px,43svh,430px)*1.5));transform:translate(-50%,-50%);margin:0}.map.zoomed .scenewrap{transform:translate(-50%,-50%) scale(1.23);transform-origin:50% 55%}}
@media(max-width:370px){.brand{width:39px}.topbar{padding-inline:6px}.game-name{font-size:24px}.round{width:25px}}

#shelfGoods,.stock-group{position:absolute;inset:0;pointer-events:none}
.stock-unit{position:absolute;object-fit:contain;transform:translate(-50%,-100%);filter:drop-shadow(1px 1px 0 #54402375);pointer-events:none;user-select:none}
.shelf-label{pointer-events:auto;position:absolute;z-index:2;transform:translate(-50%,-50%);padding:0 clamp(2px,.22vw,5px);min-width:14px;background:#fff1c5;color:#563323;border:1px solid #8a673f;border-radius:1px;box-shadow:0 1px 1px #77452b65;font:bold clamp(8px,.76vw,13px)/1.2 var(--body)}
.shelf-label:before{content:'';position:absolute;inset:-5px -4px}
.shelf-label.on-sale{background:#972740;color:#fff1c6;border-color:#4d2334}
.shelf-label:active:not(:disabled){transform:translate(-50%,-50%)}#people{pointer-events:none}
#language{background:#57293b;color:#ffedca;border:1px solid #a36b74;border-radius:4px;height:36px;padding:0 4px;font:600 14px var(--body);cursor:pointer}#language:focus-visible{outline:2px solid #ffda94}
.dock button{flex:1;max-width:170px}.dock b{white-space:normal}.topbar .identity{min-width:0}.game-name{white-space:normal}
@media(max-width:720px){.dock{gap:2px}.dock button{width:auto;min-width:0}.dock b{font-size:clamp(10px,2.6vw,14px)}#language{height:28px;font-size:12px;padding:0 1px}.hud{gap:3px}.shelf-label{font-size:8px;min-width:10px}}
@media(max-width:470px){.topbar{padding:6px;gap:4px}.identity{gap:4px}.brand{width:38px}.game-name{font-size:24px}.game-name small{font-size:12px}.hud .round{width:24px;height:27px}.counter{padding:3px}.counter strong{font-size:16px}.counter .gico{width:15px;height:15px}.hud{gap:2px}.dock .gico{width:21px;height:21px}}
@media(max-width:350px){.brand{width:31px}.game-name{font-size:24px}.hud .round{width:22px}.counter{gap:2px}}

.map{touch-action:pan-y}.map.zoomed{touch-action:none}.map.zoomed .world-art{cursor:grab}.map.zoomed:active .world-art{cursor:grabbing}
@media(max-width:720px){.dock b{font-size:clamp(11px,2.9vw,14px)}.dock button{min-height:45px}}

.game-name, .quest h1 { font-synthesis: none; }
.counter strong, .shelf-label { font-variant-numeric: tabular-nums; }
.counter strong { white-space: nowrap; }
.hud .round { padding: 0; }
.hud .round .gico { width: 16px; height: 16px; }
.speaker > div { min-width: 0; }
.speaker strong, .next-day { overflow-wrap: anywhere; }

/* Give every mobile action the width of its full translated label. */
@media (max-width: 540px) {
  #game { padding-bottom: calc(89px + env(safe-area-inset-bottom)); }
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 8px; padding: 7px 9px; }
  .hud { display: grid; grid-template-columns: repeat(6,auto); gap: 3px; }
  .hud .counter { justify-content: center; grid-column: span 3; }
  .hud #language, .hud .round { grid-column: span 2; width: 100%; }
  .dock { position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .dock button { width: 100%; max-width: none; min-height: 37px; flex-direction: row; gap: 4px; padding: 3px 2px; }
  .dock .gico { width: 17px; height: 17px; }
  .dock b { font-size: 14px; line-height: 1.12; }
  .quest h1 { overflow-wrap: anywhere; }
  #toast { bottom: 90px; }
}
