@font-face { font-family: 'Press Start 2P'; src: url(assets/fonts/press-start-2p.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url(assets/fonts/atkinson-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url(assets/fonts/atkinson-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root { --ink: #1f2a44; --muted: #64708a; --bg: #f4f1ea; --panel: #fff; --line: #e3e0d8; --orange: #ff7a1a; --blue: #2f7bff; --green: #15a37a; --red: #d6263c; --yellow: #ffd21a; --radius: 14px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 'Atkinson Hyperlegible', system-ui, -apple-system, Segoe UI, sans-serif; }
button, select, input { font: inherit; color: inherit; }
.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: 1px; }
.hint { color: var(--muted); font-size: 13px; }
.pos { color: var(--green); } .neg { color: var(--red); }
.good { color: var(--green); } .ok { color: #b7791f; } .bad { color: var(--red); }
.spacer { flex: 1; }
.btn { color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--ink); transition: transform .05s, box-shadow .05s; white-space: nowrap; }
.btn:hover { background: #fff7ef; } .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--orange); color: #fff; } .btn.primary:hover { background: #ff8d3a; }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent; } .btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.danger { border-color: var(--red); color: var(--red); box-shadow: 0 3px 0 var(--red); }
.btn.big { font-size: 18px; padding: 14px 22px; } .btn.sm { padding: 4px 10px; font-size: 13px; box-shadow: 0 2px 0 var(--ink); }
.btn small { font-weight: 400; opacity: .85; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 14px; cursor: pointer; border-right: 2px solid var(--ink); font-weight: 700; }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #eef0f4; color: var(--muted); vertical-align: middle; }
.tag.rent { background: #e8f0ff; color: var(--blue); } .tag.electric { background: #dff7ff; color: #0b7fa6; } .tag.gas { background: #fff0e3; color: #b85a0e; } .tag.bad { background: #fde3e6; color: var(--red); }
.bar { height: 8px; background: #eceae4; border-radius: 99px; overflow: hidden; margin-top: 3px; } .bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar.cond { width: 90px; display: inline-block; vertical-align: middle; margin-right: 6px; } .bar.cond i.ok { background: #e0a03a; } .bar.cond i.bad { background: var(--red); } .bar.cond i.good { background: var(--green); }
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.panel h3 { margin: 0 0 10px; font-size: 18px; } .panel h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr.me td { background: #fff6ec; } .tbl tr.bk td { opacity: .5; }
.tbl td.actions { text-align: right; white-space: nowrap; } .tbl td.actions .btn { margin-left: 6px; }
.tbl tr.rs-unstaffed td { background: #fff3f3; } .tbl td.inc { font-size: 13px; }
.co-cell { display: flex; align-items: center; gap: 8px; } .logo { flex: none; display: block; }
.rating { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; border-radius: 8px; font-weight: 700; color: #fff; padding: 0 6px; }
.rating.good { background: var(--green); } .rating.ok { background: #e0a03a; } .rating.bad { background: var(--red); }
.rating.big { width: 54px; height: 54px; font-size: 22px; border-radius: 14px; }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; transition: .2s; z-index: 100; }
#toast.show { opacity: 1; transform: translateX(-50%); } #toast.error { background: var(--red); } #toast.good { background: var(--green); }

/* title */
.title-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, #fff7e8, #f4e2c4 60%, #e8cfa6); }
.title-card { position: relative; z-index: 2; text-align: center; background: rgba(255,255,255,.92); border: 3px solid var(--ink); border-radius: 22px; padding: 28px 32px 18px; box-shadow: 0 8px 0 var(--ink); max-width: 720px; width: calc(100% - 32px); }
.title-card .studio { image-rendering: pixelated; border-radius: 16px; }
.title-logo-wrap { margin: 8px 0 2px; }
.title-logo { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.credit-top { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--muted); margin: 6px 0 14px; letter-spacing: 1px; }
.title-card h1 { font-size: 54px; line-height: 1.15; margin: 0; color: var(--orange); text-shadow: 4px 4px 0 var(--ink); }
.tagline { font-family: 'Press Start 2P', monospace; font-size: 14px; margin: 12px 0 8px; color: var(--ink); }
.pitch { color: var(--muted); max-width: 440px; margin: 10px auto 18px; }
.menu { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin: 0 auto; }
.menu .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.title-card .foot { margin-top: 18px; font-size: 12px; color: var(--muted); }
.title-art { position: absolute; inset: 0; z-index: 1; }
.van-run { position: absolute; top: var(--y); left: -80px; width: 54px; height: 26px; background: var(--c); border-radius: 6px 12px 4px 4px; animation: drive 12s linear infinite; animation-delay: var(--d); opacity: .55; }
.van-run::before, .van-run::after { content: ''; position: absolute; bottom: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); left: 7px; } .van-run::after { left: 34px; }
@keyframes drive { to { transform: translateX(calc(100vw + 160px)); } }

/* setup */
.screen { max-width: 1280px; margin: 0 auto; padding: 16px 20px 100px; }
.setup-head, .rephead { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 14px; }
.setup-head h2 { font-size: 20px; margin: 0; }
.bigname { width: 100%; font-size: 22px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; }
input[data-c=seatName] { padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; min-width: 260px; }
.logo-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.logo-pick { border: 3px solid transparent; background: #fff; border-radius: 16px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.logo-pick.on { border-color: var(--ink); background: #fff3e6; } .logo-pick:disabled { opacity: .25; cursor: not-allowed; }
.logo-row.small .logo-pick { padding: 3px; border-radius: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; } .cards.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer; border-top: 6px solid var(--accent, var(--ink)); }
.card b { display: block; font-size: 17px; } .card em { color: var(--muted); font-style: normal; font-size: 13px; } .card p { margin: 6px 0; font-size: 13px; }
.card.on { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); background: #fffaf3; }
.mix { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 12px; } .mix span { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mix .h { background: #ffe9c7; } .mix .a { background: #c9d6f2; } .mix .b { background: #dfe2e8; }
.seat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.seat-label { font-weight: 700; width: 60px; } .seat select { padding: 7px; border-radius: 10px; border: 2px solid var(--line); max-width: 520px; }
.setup-go { display: flex; justify-content: center; gap: 12px; margin: 20px 0; }

/* pass */
.pass-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.pass-card { background: #fff; border-radius: 22px; padding: 40px; text-align: center; max-width: 480px; } .pass-card h2 span { color: var(--orange); } .pass-card .logo { margin: 0 auto; }

/* plan */
.screen.plan { padding-top: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 16px 16px; margin: 0 -4px 12px; }
.topbar .co { display: flex; align-items: center; gap: 10px; } .coname { font-weight: 700; font-size: 17px; } .topbar .sub { font-size: 12px; opacity: .7; }
.topbar .stat { display: flex; flex-direction: column; line-height: 1.15; } .topbar .stat span { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .5px; } .topbar .stat b { font-size: 17px; }
.topbar .stat b.neg { color: #ff8a98; }
.topbar .btn.ghost { color: #fff; } .topbar .btn.ghost:hover { background: rgba(255,255,255,.1); }
.stat.event b { color: var(--yellow); }
.checklist { background: #fff7d6; border: 2px solid #f0d36a; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; } .checklist span.done { opacity: .55; text-decoration: line-through; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; } .tabs button { border: 2px solid var(--ink); background: #fff; border-radius: 12px; padding: 9px 18px; font-weight: 700; cursor: pointer; font-size: 15px; } .tabs button.on { background: var(--orange); color: #fff; }
.planfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.96); border-top: 2px solid var(--line); padding: 10px 24px; backdrop-filter: blur(4px); }
.routes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 16px; align-items: start; }
.map-side { position: sticky; top: 92px; } .map-side canvas { width: 100%; height: 360px; border-radius: 14px; border: 2px solid var(--line); display: block; background: #eee; image-rendering: pixelated; }
.legend, .eventbox { font-size: 12px; color: var(--muted); margin-top: 8px; } .eventbox { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px; color: var(--ink); font-size: 14px; }
.tabtools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.route { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.route:hover { border-color: #ffb37a; }
.route.locked { background: #f7f6f2; color: var(--muted); } .route.locked.next { border-style: dashed; border-color: var(--orange); }
.rhead { display: flex; align-items: center; gap: 10px; } .rhead b { font-size: 16px; }
.badge { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.pay { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green); background: #e3f6ee; padding: 2px 8px; border-radius: 99px; }
.rstats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 6px 0; }
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .assign label { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.assign select { padding: 7px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--ink); }
.est { margin-top: 8px; } .hours { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.hbar { position: relative; flex: 1; height: 12px; background: #eceae4; border-radius: 99px; } .hbar i { display: block; height: 100%; border-radius: 99px; background: var(--green); } .hbar i.tight { background: #e0a03a; } .hbar i.over { background: var(--red); }
.hbar .cap { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; } .hbar .cap::after { content: '12h'; position: absolute; top: -15px; left: -8px; font-size: 10px; }
.nums { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; } .nums b { color: var(--ink); }
.warn { font-size: 13px; color: #a5531a; margin-top: 4px; } .warn.big { background: #fff1e4; padding: 7px 10px; border-radius: 10px; margin-top: 8px; } .okline { font-size: 13px; color: var(--green); }
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; margin-top: 6px; } .req.small { display: block; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vcard { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; } .vcard p { margin: 0; font-size: 13px; color: var(--muted); }
.vhead { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.vcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; } .vcard dt { color: var(--muted); } .vcard dd { margin: 0; font-weight: 700; text-align: right; }
.vbtns { display: flex; gap: 6px; margin-top: auto; } .vbtns .btn { flex: 1; }
.vimg { height: 54px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(#eaf4ff, #eaf4ff 70%, #c9ced8 70%); border-radius: 10px; }
.vanpic { width: 74px; height: 32px; background: #fff; border: 3px solid var(--ink); border-radius: 6px 16px 4px 4px; margin-bottom: 10px; position: relative; box-shadow: inset -18px 0 0 #fff, inset 0 -8px 0 var(--c); }
.vanpic.big { width: 92px; height: 38px; } .vanpic.small { width: 58px; height: 28px; }
.vanpic::before, .vanpic::after { content: ''; position: absolute; bottom: -9px; width: 14px; height: 14px; background: var(--ink); border-radius: 50%; left: 8px; } .vanpic::after { left: auto; right: 8px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.dcard { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 10px; } .dcard > div:nth-child(2) { flex: 1; }
.rivals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; } .rival { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 12px; }
.st-broken { color: var(--red); font-weight: 700; }

/* sim */
.screen.sim { max-width: 1400px; }
.simhead { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; } .clock { font-family: 'Press Start 2P', monospace; font-size: 22px; background: var(--ink); color: var(--yellow); padding: 10px 14px; border-radius: 12px; min-width: 190px; text-align: center; }
.simtitle { font-size: 20px; font-weight: 700; flex: 1; }
.simbody { display: grid; grid-template-columns: 1fr 380px; gap: 14px; } .simbody canvas { width: 100%; height: min(70vh, 640px); border-radius: 16px; border: 2px solid var(--line); display: block; image-rendering: pixelated; }
.ticker { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; height: min(70vh, 640px); overflow: auto; font-size: 13px; }
.tk-h { font-weight: 700; margin-bottom: 6px; text-transform: uppercase; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.tk { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); animation: pop .3s; } .tk i { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: 4px; }
@keyframes pop { from { opacity: 0; transform: translateX(10px); } }
.simlegend { display: flex; gap: 16px; margin-top: 10px; font-size: 14px; font-weight: 700; } .simlegend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* report */
.rephead h2 { margin: 0; } .rephead .event { font-weight: 700; background: var(--ink); color: var(--yellow); padding: 6px 12px; border-radius: 99px; }
.repco { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; } .kpi span { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; } .kpi b { font-size: 26px; } .kpi small { color: var(--muted); font-size: 12px; }
.note { background: #e3f6ee; border: 2px solid #9fdcc3; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 700; }

/* over */
.trophy { text-align: center; padding: 20px; } .trophy .logo { margin: 0 auto; } .trophy h1 { color: var(--orange); text-shadow: 3px 3px 0 var(--ink); font-size: 34px; } #chart { width: 100%; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(20,26,40,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 18px; border: 3px solid var(--ink); max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; padding: 20px 24px; }
.modal h2 { margin-top: 0; } .help h4 { margin: 14px 0 4px; } .help p, .help li { font-size: 14px; } .mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.menu-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; } .setrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .routes-layout, .simbody { grid-template-columns: 1fr; } .map-side { position: static; } .assign { grid-template-columns: 1fr; } }
@media (max-width: 1240px) { .topbar { gap: 12px; } .topbar .stat b { font-size: 15px; } .topbar .sub { display: none; } .topbar .btn.ghost { padding: 6px 8px; } .coname { font-size: 15px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 1080px) { .topbar .stat span { font-size: 10px; } .topbar { gap: 9px; } }
/* v0.2: rescues, standby, happiness, training */
.finish { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; } .finish.early { color: var(--green); } .finish.late { color: var(--red); } .finish b { color: var(--green); }
.rescue { margin-top: 8px; background: #f3f6ff; border: 2px dashed #b9c8f5; border-radius: 12px; padding: 8px 10px; } .rescue.behind { background: #fff3f3; border-color: #f2b8bf; }
.rescue label { font-size: 12px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; } .rescue select { padding: 6px; border: 2px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; }
.rules, .standby { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.rules-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; font-weight: 700; } .rules-row select { padding: 4px; border-radius: 8px; border: 2px solid var(--line); }
.standby { border-color: #f2b8bf; background: #fffafa; } .sbhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .sbhead .seg { margin-left: auto; }
.seg.small button { padding: 4px 10px; font-size: 12px; }
.sbrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); } .sbrow label { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.sbrow select { padding: 6px; border: 2px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; } .sbinfo { grid-column: 1 / -1; font-size: 13px; } .sbcost { font-size: 13px; }
.happy-cell { white-space: nowrap; } .hface { font-size: 16px; margin-right: 4px; } .happy-cell .bar.cond { width: 60px; }
.tbadges { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 2px; } .tbadge { font-size: 11px; background: #f1ecff; border-radius: 99px; padding: 0 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 5px 9px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.chip.on { border-color: var(--ink); background: #fff3e6; } .chip .rating { min-width: 28px; height: 22px; font-size: 12px; }
.ccard { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; } .ccard p { margin: 0; font-size: 13px; color: var(--muted); } .ccard.locked { opacity: .55; } .ccard .btn { margin-top: auto; }
.lvl { color: var(--orange); letter-spacing: 2px; }
.morning { background: #fff1e4; border: 2px solid #f4c08c; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 700; }
.sbnote { background: #fff3f3; border-color: #f2b8bf; font-weight: 400; } .tk-rescue { background: #fff3f3; }
.rescue-kpi b { color: #d6263c; }

/* v0.3 free demo + feedback */
.demo-badge { display:inline-block; background: var(--orange); color:#fff; font-family:'Press Start 2P',monospace; font-size:10px; letter-spacing:1px; padding:6px 10px; border:2px solid var(--ink); border-radius:8px; margin:10px 0 4px; box-shadow: 2px 2px 0 var(--ink); }
.coming h3 { margin-top: 8px; }
.coming ul { margin: 8px 0 14px; padding-left: 20px; }
.coming .row, .title-card .row { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.fb-form label { display:block; font-weight:700; margin:12px 0 4px; }
.fb-form textarea, .fb-form input[type=email] { width:100%; padding:10px 12px; border:2px solid var(--ink); border-radius:10px; font:inherit; background:#fff; }
.fb-form textarea { resize: vertical; min-height: 72px; }
.fb-form .check { font-weight:400; display:flex; gap:8px; align-items:flex-start; }
.fb-form .check input { margin-top:3px; }
.stars { display:flex; gap:8px; }
.star { width:48px; height:48px; border:2px solid var(--ink); background:#fff; border-radius:10px; font-weight:700; font-size:18px; cursor:pointer; box-shadow: 0 3px 0 var(--ink); }
.star.on, .star:hover { background: var(--orange); color:#fff; }
.fb-notice { border-radius:12px; padding:10px 12px; margin:0 0 12px; font-weight:700; }
.fb-notice.good { background:#e3f6ee; border:2px solid #9fdcc3; }
.fb-notice.error { background:#fde3e6; border:2px solid #f2b8bf; color: var(--red); }
.fb-notice a { color: inherit; }
.hp { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.modal { position: relative; }


/* Today's manifest + mid-day incident pause */
.manifest-today { background:#fff; border:2px solid var(--ink); border-radius:12px; padding:12px 14px; margin:0 0 12px; box-shadow: 3px 3px 0 var(--ink); }
.manifest-today h3 { margin:0 0 4px; font-size:16px; }
.manifest-today ul { margin:8px 0; padding-left:18px; }
.manifest-today li { margin:4px 0; }
.manifest-today .addr { font-size:12px; color:#6b7280; font-weight:500; }
.manifest-today .mf-tot { font-size:13px; border-top:1px dashed #d8dde6; padding-top:8px; margin-top:6px; }
label.vol { display:flex; align-items:center; gap:10px; flex:1; }
label.vol input[type=range] { flex:1; accent-color: var(--orange); }
.inc-overlay { position:fixed; inset:0; background:rgba(16,22,34,.55); display:flex; align-items:center; justify-content:center; z-index:80; padding:16px; }
.inc-card { background:#fffbe8; border:3px solid var(--ink); border-radius:16px; max-width:560px; width:100%; padding:20px 22px 18px; box-shadow: 6px 6px 0 var(--ink); }
.inc-kicker { font-family:'Press Start 2P',monospace; font-size:9px; letter-spacing:1px; color:#6b7280; margin-bottom:8px; }
.inc-card h2 { margin:0 0 8px; font-size:22px; }
.inc-card p { margin:0 0 12px; line-height:1.45; }
.inc-facts { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; background:#fff; border:2px solid var(--ink); border-radius:10px; padding:10px 12px; margin:0 0 14px; font-size:13px; }
.inc-facts span b { display:block; font-size:11px; color:#6b7280; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.inc-opts { display:flex; flex-direction:column; gap:8px; }
.inc-opt { text-align:left; width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:10px 12px; white-space:normal; }
.inc-opt span { font-weight:500; font-size:12px; color:#4b5563; }
@media (max-width: 520px) { .inc-facts { grid-template-columns:1fr; } }

.inc-opt.unavailable, .inc-opt:disabled { opacity: 0.72; cursor: not-allowed; background: #f3f4f6; box-shadow: none; color: #4b5563; }
.inc-opt.unavailable b { color: #374151; }

/* ---- Phone layout (desktop rules above stay as they are) ---- */
@media (max-width: 720px), (orientation: landscape) and (max-height: 500px) {
  html, body { overflow-x: hidden; }
  .btn, .btn.sm, .btn.ghost, .btn.big, .seg button, .chip, .star,
  select, input[type=text], input[type=email], input[type=search], input[type=number],
  input:not([type]), input[type=password], textarea {
    min-height: 44px;
    min-width: 44px;
  }
  .btn, .seg button { padding: 10px 14px; }
  .btn.sm, .topbar .btn.ghost, .seg.small button { padding: 10px 12px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
  .title-card { padding: 20px 16px 16px; width: calc(100% - 20px); }
  .title-card h1 { font-size: clamp(30px, 11vw, 48px); text-shadow: 3px 3px 0 var(--ink); }
  .credit-top, .demo-badge { font-size: 11px; letter-spacing: .5px; }
  .tagline { font-size: 11px; }
  .menu { max-width: none; }
  .screen { padding: 12px 12px 96px; }
  .bigname, input[data-c=seatName], .seat select, .fb-form input[type=email], .fb-form textarea {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .topbar { gap: 8px; padding: 10px 12px; border-radius: 0 0 12px 12px; margin: 0 0 12px; }
  .clock { font-size: 16px; min-width: 0; flex: 1; }
  .simhead, .setup-head { flex-wrap: wrap; }
  .pass-card { padding: 24px 16px; margin: 12px; }
  .tbl-wrap, .panel, .screen { max-width: 100%; }
  table.tbl { font-size: 13px; }
  .panel, .modal, .inc-card { overflow-x: auto; }
  .modal, .inc-card { padding: 16px; max-height: 86dvh; }
  #og-beta-badge { top: 8px; bottom: auto; right: 8px; left: auto; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .title-card { padding: 12px 16px; }
  .title-card h1 { font-size: 28px; }
  .screen { padding-bottom: 72px; }
}
