@font-face { font-family: 'Galmuri11'; src: url('../vendor/fonts/Galmuri11.woff2') format('woff2'); }
@font-face { font-family: 'Galmuri11'; font-weight: bold; src: url('../vendor/fonts/Galmuri11-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Galmuri9'; src: url('../vendor/fonts/Galmuri9.woff2') format('woff2'); }
:root { --ink: #f4f1ea; --dim: #b9b4c8; --bg: rgba(22, 18, 34, 0.86); --line: #4b4366; --o: #ff9d3c; --c: #4fd6ff; --g: #7be07b; --r: #ff5d5d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #120f1c; overflow: hidden; color: var(--ink); font-family: 'Galmuri11', 'Malgun Gothic', sans-serif; }
canvas#game, canvas#overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; image-rendering: pixelated; }
canvas#overlay { pointer-events: none; }
.hidden { display: none !important; }
.panel { position: fixed; background: var(--bg); border: 2px solid var(--line); border-radius: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.35); padding: 8px 10px; }
#topleft { left: 12px; top: 12px; min-width: 190px; font-size: 13px; }
#topleft .clock { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
#clock { font-size: 26px; font-weight: bold; letter-spacing: 1px; }
#dayname { color: var(--dim); font-size: 11px; }
#topleft .row { display: flex; justify-content: space-between; gap: 12px; line-height: 1.6; }
#topleft .row b { color: #ffe27a; }
.rush { margin-top: 6px; background: #c83b3b; color: #fff; text-align: center; padding: 3px 6px; border-radius: 4px; font-weight: bold; animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
#nav { left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; min-width: 300px; }
#navArrow { width: 46px; height: 46px; border-radius: 6px; background: #2c7be5; display: grid; place-items: center; font-size: 30px; font-weight: bold; }
#navArrow.arrive { background: #23a55a; }
#navArrow.idle { background: #555; }
#navText { font-size: 18px; font-weight: bold; }
#navSub { font-size: 12px; color: var(--dim); margin-top: 3px; }
#minimapBox { right: 12px; top: 12px; padding: 4px; }
#minimap { width: 200px; height: 160px; image-rendering: pixelated; display: block; }
#gauges { left: 12px; bottom: 12px; width: 230px; font-size: 12px; }
#gauges .speed { font-size: 12px; color: var(--dim); }
#gauges .speed b { font-size: 30px; color: var(--ink); margin-right: 4px; }
.gauge { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 6px; margin-top: 4px; }
.gauge em { font-style: normal; text-align: right; }
.bar { height: 10px; background: #2b2540; border: 1px solid #000; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: var(--g); transition: width .2s; }
.bar.big { height: 16px; }
#phone { position: fixed; right: 14px; bottom: 14px; width: 270px; background: #1d1a26; border: 3px solid #0b0a10; border-radius: 22px; padding: 10px 10px 14px; box-shadow: 0 0 0 3px #3a3550, 0 8px 0 rgba(0,0,0,.4); font-size: 12px; }
.ph-top { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; padding: 0 8px 6px; }
.ph-title { margin: 6px 4px 4px; font-weight: bold; color: #ffd84a; }
.ph-title small { color: var(--dim); font-weight: normal; margin-left: 6px; }
#calls, #carried { display: flex; flex-direction: column; gap: 5px; min-height: 30px; }
.call { background: #2b2740; border-radius: 8px; padding: 6px 8px; display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; position: relative; overflow: hidden; }
.call .num { background: #ffd84a; color: #1d1a26; border-radius: 4px; text-align: center; font-weight: bold; }
.call .fee { color: #7df0c8; font-weight: bold; text-align: right; }
.call .meta { color: var(--dim); font-size: 10px; }
.call .tag { background: #c83b3b; color: #fff; border-radius: 3px; padding: 0 3px; font-size: 10px; margin-left: 3px; }
.call .exp { position: absolute; left: 0; bottom: 0; height: 2px; background: #ffd84a; }
.order { background: #23304a; border-radius: 8px; padding: 6px 8px; border: 2px solid transparent; }
.order.focus { border-color: var(--c); }
.order .top { display: flex; justify-content: space-between; }
.order .st { color: var(--o); }
.order .st.go { color: var(--c); }
.order .t { font-weight: bold; }
.order .t.late { color: var(--r); }
.order .cond { display: grid; grid-template-columns: 66px 1fr; white-space: nowrap; gap: 6px; align-items: center; margin-top: 3px; color: var(--dim); font-size: 10px; }
.empty { color: #6f6a82; text-align: center; padding: 6px; font-size: 11px; }
#toast { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
#toast div { background: rgba(10,8,18,.88); border: 2px solid var(--line); padding: 5px 12px; border-radius: 6px; font-size: 14px; animation: fade 2.6s forwards; }
#toast div.bad { border-color: var(--r); color: #ffd0d0; }
#toast div.good { border-color: var(--g); color: #dfffdc; }
@keyframes fade { 0% { opacity: 0; transform: translateY(-6px); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
#police { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(20,30,80,.9); border: 3px solid #fff; padding: 12px 22px; border-radius: 8px; text-align: center; font-size: 18px; display: flex; flex-direction: column; animation: police .5s steps(2) infinite; }
#police span { font-size: 34px; font-weight: bold; }
@keyframes police { 50% { border-color: #ff4d4d; } }
.screen { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(10,8,20,.72); }
.card { width: min(620px, 92vw); max-height: 92vh; overflow: auto; background: #1f1b2e; border: 3px solid var(--line); border-radius: 10px; padding: 22px 26px; box-shadow: 0 6px 0 rgba(0,0,0,.4); }
.card h1 { font-size: 44px; margin: 0; color: #ffd84a; text-shadow: 3px 3px 0 #c83b3b; }
.card h2 { margin: 0 0 4px; color: #ffd84a; }
.card .sub { color: var(--dim); margin: 4px 0 12px; }
.card p { line-height: 1.6; font-size: 14px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; margin: 12px 0; }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; margin-right: 3px; border: 1px solid #6c6488; border-bottom-width: 3px; border-radius: 4px; background: #2d2842; font-family: inherit; font-size: 11px; text-align: center; }
.tip { color: var(--dim); font-size: 12px !important; }
.o { color: var(--o); } .c { color: var(--c); }
button { font-family: inherit; font-size: 16px; font-weight: bold; padding: 10px 18px; border-radius: 6px; border: 2px solid #000; background: #ffd84a; color: #1d1a26; cursor: pointer; box-shadow: 0 3px 0 #a37f12; margin-top: 8px; }
button:disabled { opacity: .5; cursor: default; }
#settleTable { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
#settleTable td { padding: 5px 4px; border-bottom: 1px dashed #3d3656; }
#settleTable td:last-child { text-align: right; }
#settleTable tr.minus td:last-child { color: #ff8f8f; }
#settleTable tr.plus td:last-child { color: #7df0c8; }
#settleTable tr.total td { font-size: 19px; font-weight: bold; border-bottom: none; padding-top: 10px; }
.goal-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
#goalBar { background: #ffd84a; }
