/* phone layout overrides (Galaxy A35 ~ 412 css px wide) */
html, body { height: 100%; overscroll-behavior: none; }
#titlebar { display: none; }
#app { height: calc(100% - 64px - env(safe-area-inset-bottom)); }
#nav { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: calc(64px + env(safe-area-inset-bottom)); flex-direction: row; align-items: center; justify-content: space-around; gap: 0; padding: 4px 6px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid #111a33; z-index: 45; background: rgba(7,11,23,.97); backdrop-filter: blur(10px); }
#nav .nav-spacer { display: none; }
.nav-item { width: auto; flex: 1; padding: 6px 0 4px; font-size: 10.5px; border-radius: 10px; }
.nav-item svg { width: 22px; height: 22px; }
.nav-add { width: 52px; height: 52px; flex: none; border-radius: 26px; padding: 0; margin: 0 4px; justify-content: center; }
.nav-add span { display: none; }
.nav-add svg { width: 26px; height: 26px; }
.nav-badge { right: 18%; }
.page { padding: 18px 14px 40px; }
.page-h { margin-bottom: 12px; }
.page-h h1 { font-size: 23px; }
.page-h .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.toolbar { width: 100%; } .toolbar .inp { width: 100%; flex: 1 1 100%; } .toolbar select.inp { flex: 1; } .toolbar .btn { flex: 1; justify-content: center; }
.tabs { overflow-x: auto; } .tabs button { white-space: nowrap; padding: 10px 10px; }
h2 { margin: 22px 0 10px; }
/* map */
.map-top { left: 14px; right: 14px; top: 12px; flex-direction: column; gap: 8px; }
.map-title h1 { font-size: 21px; }
.map-tools { justify-content: flex-start; }
.map-tools .btn { height: 32px; padding: 0 10px; }
.map-years { left: 14px; right: 0; top: 104px; max-width: none; flex-wrap: nowrap; overflow-x: auto; padding-right: 14px; }
.map-years .chip { flex: none; }
.map-side { display: none; }
.map-bottom { left: 10px; right: 10px; bottom: 10px; }
.statstrip { overflow-x: auto; max-width: 100%; border-radius: 14px; }
.statstrip .st { min-width: 96px; padding: 10px 14px; flex: none; }
.st .v { font-size: 18px; }
.replay-hud { top: 150px; width: 92%; } .replay-hud .d { font-size: 22px; }
/* flights */
.yearhead .y { font-size: 19px; }
.leg { grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 12px 10px; }
.albadge { width: 34px; height: 34px; font-size: 11.5px; border-radius: 10px; }
.legmain { gap: 8px; }
.ap .c { font-size: 18px; }
.ap .t { font-size: 11.5px; }
.path { min-width: 54px; } .path .du { font-size: 10px; }
.legside { grid-column: 1 / -1; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-left: 44px; font-size: 11.5px; }
.legside > div { display: inline; }
.layover { padding-left: 56px; }
.journey .jh { padding: 10px 12px 0; flex-wrap: wrap; gap: 4px; }
.review-banner { flex-direction: column; align-items: flex-start; }
/* drawer & modal: full screen */
#drawer { top: 0; width: 100vw; border-left: 0; }
#scrim { inset: 0; }
.fd-head { padding: 14px 14px 0; } .fd-route { padding: 14px 14px 6px; } .fd-route .ap .c { font-size: 30px; } .fd-route .ap .tm { font-size: 18px; }
.fd-map { margin: 8px 14px; height: 190px; } .fd-grid { grid-template-columns: 1fr 1fr; margin: 12px 14px; } .fd-sec { margin: 14px; } .fd-actions { padding: 6px 14px calc(26px + env(safe-area-inset-bottom)); }
#drawer .leg { grid-template-columns: 30px 1fr; }
#modal { padding: 0; place-items: stretch; }
.modal-card { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
.mh { padding: 16px 14px 0; } .mb { padding: 12px 14px 18px; } .mf { padding: 0 14px calc(18px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
#addtabs { margin: 10px 14px 0 !important; }
.grid3, .grid4 { grid-template-columns: 1fr 1fr; }
.grid2 { grid-template-columns: 1fr; }
.cols2, .cols3 { grid-template-columns: 1fr; }
/* stats & trophies */
.tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
.tile .v { font-size: 22px; }
.facts { grid-template-columns: 1fr; }
.records { grid-template-columns: 1fr; }
.trophy-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.trophy { padding: 14px 10px 12px; } .med { width: 62px; height: 62px; font-size: 26px; }
.stamps { grid-template-columns: 1fr 1fr; }
.card { padding: 14px; }
#cbody .card { overflow-x: auto; }
.tbl { font-size: 12px; } .tbl th, .tbl td { padding: 7px 6px; }
.yr-hero { padding: 18px; } .yr-hero .big { font-size: 34px; } .yr-hero .yrmap { height: 220px; }
.kv { flex-wrap: wrap; }
.settings-sec .card .kv > div:last-child { flex-wrap: wrap; }
/* more */
.more-list { display: grid; gap: 10px; }
.more-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); cursor: pointer; }
.more-item .mi { font-size: 24px; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.05); border-radius: 12px; }
.more-item b { display: block; } .more-item small { color: var(--muted); font-size: 12px; }
.more-item .chev { margin-left: auto; color: var(--muted); font-size: 22px; }
#toast { bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 90vw; text-align: center; }
.maptip { display: none !important; }
