/**
 * app.css
 *
 * Mobile-first visual system. It is dark, crisp, and thumb-friendly because tiny
 * gray buttons are how interfaces say “I hate your hands.”
 */
:root {
    --bg: #050914;
    --panel: rgba(10, 20, 38, 0.88);
    --panel2: rgba(19, 36, 62, 0.78);
    --text: #f4f7ff;
    --muted: #a8bad5;
    --cyan: #63e5ff;
    --gold: #ffd36d;
    --danger: #ff6079;
    --good: #80f2a0;
    --shadow: 0 18px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at top, #11294a, var(--bg)); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
button { font: inherit; min-height: 48px; border: 0; color: var(--text); cursor: pointer; }
button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hidden { display: none !important; }
.app-shell { width: min(100%, 980px); margin: 0 auto; min-height: 100svh; position: relative; }
.screen { min-height: 100svh; padding: 18px; }
.start-screen { display: grid; place-items: center; gap: 18px; }
.logo { width: min(92vw, 520px); filter: drop-shadow(0 18px 42px rgba(99,229,255,.22)); }
.glass-card, .panel, .modal-card { background: linear-gradient(180deg, rgba(23,44,76,.92), rgba(7,12,28,.95)); border: 1px solid rgba(136,232,255,.32); border-radius: 28px; box-shadow: var(--shadow); padding: 18px; backdrop-filter: blur(12px); }
h1,h2,h3 { margin: 0 0 10px; letter-spacing: .02em; }
p { color: var(--muted); line-height: 1.45; }
.big-button, .quiet-button { width: 100%; border-radius: 18px; margin-top: 10px; padding: 14px 16px; font-weight: 800; background: linear-gradient(180deg, #1d9ad0, #0a457d); box-shadow: 0 8px 24px rgba(45,191,255,.18); transition: transform .12s ease, filter .12s ease; }
.big-button:active, .quiet-button:active, .chip:active { transform: translateY(2px) scale(.99); }
.big-button.gold { background: linear-gradient(180deg, #d89b2f, #7a3f0b); }
.quiet-button { background: rgba(255,255,255,.08); color: var(--muted); }
.game-screen { padding: 10px 10px 86px; }
.top-hud { position: sticky; top: 0; z-index: 5; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 0 0 24px 24px; background: rgba(5, 10, 24, .92); border-bottom: 1px solid rgba(99,229,255,.25); backdrop-filter: blur(10px); }
.top-hud strong { display: block; font-size: 1.05rem; }
.top-hud span, .top-hud small { display: block; color: var(--muted); font-size: .82rem; }
.money-stack { text-align:right; }
#cashText { color: var(--good); font-weight: 900; font-size: 1.1rem; }
#debtText { color: var(--danger); }
.notice-bar { min-height: 28px; margin: 10px 2px; color: var(--gold); font-weight: 700; font-size: .9rem; }
.panel { min-height: calc(100svh - 190px); background-image: url('../img/ui/panel_backdrop.png'); background-size: cover; }
.grid { display: grid; gap: 12px; }
.card { padding: 14px; border-radius: 20px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.12); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-title { font-weight: 900; }
.item-sub { color: var(--muted); font-size: .86rem; }
.price { font-weight: 900; color: var(--gold); }
.illegal { color: var(--danger); font-weight: 900; }
.thumb { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { flex: 1 1 92px; min-height: 46px; border-radius: 14px; padding: 9px; background: rgba(99,229,255,.13); border: 1px solid rgba(99,229,255,.24); font-weight: 800; }
.chip.sell { background: rgba(128,242,160,.13); border-color: rgba(128,242,160,.28); }
.chip.danger { background: rgba(255,96,121,.14); border-color: rgba(255,96,121,.32); }
.city-card { min-height: 132px; background-size: cover; background-position:center; overflow:hidden; position:relative; }
.city-card::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.12)); }
.city-card > * { position: relative; z-index: 1; }
.bottom-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(100%, 980px); margin: 0 auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(4, 8, 18, .95); border-top: 1px solid rgba(99,229,255,.24); backdrop-filter: blur(12px); }
.bottom-tabs button { min-height: 56px; border-radius: 16px; background: rgba(255,255,255,.07); color: var(--muted); font-size: .8rem; font-weight: 900; }
.bottom-tabs button.active { background: linear-gradient(180deg, rgba(99,229,255,.3), rgba(99,229,255,.12)); color: var(--text); }
.modal-card { color: var(--text); border: 1px solid rgba(99,229,255,.35); width: min(92vw, 520px); }
.modal-card::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(5px); }
.stat-strip { display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { padding: 12px; border-radius: 18px; background: rgba(255,255,255,.08); }
.stat b { display:block; color: var(--cyan); }
.logline { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--muted); }
@media (min-width: 760px) { .game-screen { padding-inline: 20px; } .panel { padding: 24px; } .grid.two { grid-template-columns: repeat(2,1fr); } .grid.three { grid-template-columns: repeat(3,1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
