/* Shared game UI: player chip, sign-in gate, character creation, player menu, GPS, shops, live feed. */
:root, .vn-dialog, .player-chip, .gps, .city-feed, .vn-toasts {
  --g-gold: #e8bc67; --g-panel: #151824; --g-panel2: #1c2030; --g-line: rgba(255,255,255,0.09); --g-muted: #8d96a8;
  --g-good: #3dff9a; --g-bad: #ff4d5e; --g-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --g-display: 'Bungee', Impact, sans-serif;
}

/* ---------------- buttons & bits ---------------- */
.vn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.06); color: #eef1f6; font: 700 14px var(--g-cond); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.vn-btn:hover:not(:disabled) { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.22); }
.vn-btn:active:not(:disabled) { transform: translateY(1px); }
.vn-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.vn-btn.gold { background: var(--g-gold); border-color: var(--g-gold); color: #171920; }
.vn-btn.gold:hover:not(:disabled) { background: #f3cd82; }
.vn-btn.ghost { background: transparent; }
.vn-btn.danger { color: #ffd0d4; background: rgba(255,77,94,0.16); border-color: rgba(255,77,94,0.45); }
.vn-btn.danger:hover:not(:disabled) { background: rgba(255,77,94,0.28); border-color: var(--g-bad); }
.vn-btn.small { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.vn-btn.big { padding: 13px 22px; font-size: 16px; }
.vn-link { background: none; border: 0; padding: 0; color: var(--g-gold); font: 600 14px Barlow, sans-serif; cursor: pointer; margin-bottom: 10px; }
.vn-kicker { color: var(--g-gold); letter-spacing: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.vn-tag { display: inline-block; font: 600 12px var(--g-cond); letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: rgba(95,168,255,0.14); color: #a9cfff; border: 1px solid rgba(95,168,255,0.35); }
.vn-error { color: #ffaca9; min-height: 18px; font-size: 14px; margin: 8px 0 0; }
.vn-role { font: 700 12px var(--g-cond); letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.vn-role-criminal { color: #ff8f99; background: rgba(255,77,94,0.14); }
.vn-role-police { color: #9ccaff; background: rgba(95,168,255,0.16); }
.vn-role-civilian { color: #8dffc2; background: rgba(61,255,154,0.12); }
.vn-avatar-fallback { display: inline-grid; place-items: center; width: 100%; height: 100%; font-size: 20px; }
.gold { color: var(--g-gold); }
.good { color: var(--g-good); }
.bad { color: #ff8a95; }

/* ---------------- top bar player chip ---------------- */
.player-chip { display: flex; align-items: center; gap: 8px; margin-left: 6px; pointer-events: auto; }
body[data-viewer="user"] .auth-trigger, body[data-viewer="guest"] .auth-trigger { display: none; }
@media (max-width: 1500px) { .city-page .city-tab small { display: none; } .city-page .stat { min-width: 70px; padding: 4px 9px; } }
.chip-me { position: relative; display: flex; align-items: center; gap: 9px; padding: 3px 12px 3px 4px; border-radius: 12px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.04); color: #eef1f6; cursor: pointer; text-align: left; }
.chip-me:hover { background: rgba(255,255,255,0.09); border-color: rgba(232,188,103,0.5); }
.chip-avatar { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #343a52, #191c28); display: grid; place-items: center; flex: none; }
.chip-avatar svg { width: 40px; height: 40px; }
.chip-text b { display: block; font: 700 15px/1.05 var(--g-cond); letter-spacing: 0.03em; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-text small { display: block; font-size: 11px; color: var(--g-muted); line-height: 1.2; }
.chip-bars { display: flex; gap: 3px; margin-top: 3px; }
.vn-bar { display: block; width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.vn-bar > i { display: block; height: 100%; border-radius: 2px; }
.vn-bar.health > i { background: #ff5d6c; }
.vn-bar.energy > i { background: #ffd23f; }
.chip-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--g-bad); color: #fff; font: 700 11px/18px var(--g-cond); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #0f1220; }
.chip-badge.crew { right: auto; left: -5px; background: #e8bc67; color: #1a1200; animation: chip-crew 1.6s ease-in-out infinite; }
@keyframes chip-crew { 50% { box-shadow: 0 0 0 2px #0f1220, 0 0 12px 2px rgba(232,188,103,0.8); } }
@media (prefers-reduced-motion: reduce) { .chip-badge.crew { animation: none; } }

/* ---------------- dialogs ---------------- */
.vn-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-sizing: border-box; margin: auto; padding: 30px; border: 1px solid #454452; border-radius: 18px; color: #f5f2e9; background: linear-gradient(145deg, #222331, #12151f); box-shadow: 0 24px 90px #0009; font: 15px/1.45 Barlow, sans-serif; overflow: auto; }
.vn-dialog { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .vn-dialog:not(.fight):not(.dossier):not(.welcome) { max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); } }
.vn-dialog::backdrop { background: #080b15b8; backdrop-filter: blur(5px); }
.vn-dialog h2 { font: 700 30px/1.1 var(--g-cond); margin: 8px 0 10px; letter-spacing: 0.01em; }
.vn-dialog h3 { font: 700 15px var(--g-cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-muted); margin: 20px 0 8px; }
.vn-dialog p { color: #b9bdca; margin: 0 0 12px; }
/* Inputs, selects, checkboxes and sliders are styled by ui-kit.css. */
.vn-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: #c9cbd6; font-size: 28px; cursor: pointer; z-index: 2; }

/* ---------------- role cards ---------------- */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.role-card { --rc: #8d96a8; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 12%, transparent), rgba(255,255,255,0.02)); color: #eef1f6; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.role-card.vn-role-criminal { --rc: #ff4d5e; } .role-card.vn-role-police { --rc: #5fa8ff; } .role-card.vn-role-civilian { --rc: #3dff9a; }
.role-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--rc); }
.role-card.selected { border-color: var(--rc); box-shadow: 0 0 0 1px var(--rc), 0 0 30px color-mix(in srgb, var(--rc) 30%, transparent); }
.role-icon { font-size: 28px; }
.role-card b { font: 700 18px var(--g-cond); text-transform: uppercase; letter-spacing: 0.04em; }
.role-card p { font-size: 12px; line-height: 1.35; color: #c3c9d6; margin: 0 0 4px; }
.role-card ul, .dos-role ul { list-style: none; padding: 0; margin: 2px 0 0; font-size: 12px; line-height: 1.35; }
.role-card li, .dos-role li { padding-left: 15px; position: relative; margin: 2px 0; }
.pros li { color: #b8f5d3; } .pros li::before { content: '✓'; position: absolute; left: 0; color: var(--g-good); }
.cons li { color: #f3c1c6; } .cons li::before { content: '✗'; position: absolute; left: 0; color: var(--g-bad); }

/* ---------------- gate ---------------- */
.vn-dialog.gate { width: min(760px, calc(100vw - 24px)); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.gate-guest { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--g-line); font-size: 14px; color: #c3c9d6; }
.gate-save { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(232,188,103,0.08); border: 1px solid rgba(232,188,103,0.3); font-size: 14px; }
.gate-save > span:first-child { width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; background: #1c2030; }

/* ---------------- character creation ---------------- */
.vn-dialog.onboard { width: min(820px, calc(100vw - 24px)); }
.onboard-note { padding: 8px 12px; border-radius: 9px; background: rgba(61,255,154,0.08); border: 1px solid rgba(61,255,154,0.25); color: #b8f5d3 !important; font-size: 13px; }
.onboard-step { min-height: 200px; }
.onboard-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.onboard-name { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 10px 0; }
.onboard-name > span { grid-row: span 2; width: 110px; display: grid; place-items: center; }
.onboard-name label { display: block; font-weight: 600; font-size: 13px; color: #dbdce4; }
.onboard-name input { display: block; width: 100%; margin-top: 6px; font-size: 20px; }
.onboard-name small { color: var(--g-muted); align-self: start; }

/* ---------------- player menu ---------------- */
.vn-dialog.dossier { width: min(1080px, calc(100vw - 24px)); height: min(800px, calc(100dvh - 32px)); padding: 0; display: none; overflow: hidden; }
.vn-dialog.dossier[open] { display: block; }
.dossier .vn-close { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.dossier .vn-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.vn-close:focus { outline: none; }
.vn-close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232,188,103,0.35); border-radius: 10px; }
.dossier .vn-body { display: grid; height: 100%; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "rail head" "rail sub" "rail panel"; }
.dossier.one-section .vn-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "sub" "panel"; }
.dossier.one-section .dos-rail { display: none; }
/* compact header */
.dos-head { grid-area: head; display: flex; align-items: center; gap: 14px; padding: 14px 64px 12px 22px; background: linear-gradient(120deg, rgba(232,188,103,0.1), transparent 55%); border-bottom: 1px solid var(--g-line); min-width: 0; }
.dos-avatar { width: 56px; height: 56px; flex: none; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #343a52, #191c28); border: 1px solid rgba(232,188,103,0.35); display: grid; place-items: center; }
.dos-avatar svg { width: 56px; height: 56px; display: block; }
.dos-avatar.brand { font: 28px var(--g-display); color: #ff3fb4; text-shadow: 0 0 14px rgba(255,63,180,0.6); }
.dos-id { flex: 1; min-width: 0; }
.dos-id h2 { margin: 0 0 4px; font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dos-id p { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.dos-level { font: 700 14px var(--g-cond); letter-spacing: 0.06em; text-transform: uppercase; color: #eef1f6; }
.xp { display: inline-block; width: 110px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #b8862d, var(--g-gold)); border-radius: 3px; }
.vn-tag.guest { background: rgba(232,188,103,0.12); color: var(--g-gold); border-color: rgba(232,188,103,0.4); }
.dos-money { display: flex; gap: 0; align-items: center; }
.dos-money span { padding: 2px 14px; border-left: 1px solid var(--g-line); }
.dos-money span:first-child { border-left: 0; }
.dos-money label, .dos-stat label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--g-muted); }
.dos-money b { font: 700 20px var(--g-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* section rail */
.dos-rail { grid-area: rail; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 10px; background: linear-gradient(180deg, #11141f, #0c0e16); border-right: 1px solid var(--g-line); overflow-y: auto; scrollbar-width: none; }
.dos-mark { display: grid; place-items: center; height: 40px; margin-bottom: 8px; font: 24px var(--g-display); color: #ff3fb4; text-shadow: 0 0 14px rgba(255,63,180,0.55); }
.dos-rail [role=tab] { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 9px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--g-muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dos-rail [role=tab] .ico { font-size: 22px; line-height: 1; filter: grayscale(0.7) brightness(0.9); transition: filter .15s, transform .2s; }
.dos-rail [role=tab] .lbl { font: 700 12px var(--g-cond); letter-spacing: 0.1em; text-transform: uppercase; }
.dos-rail [role=tab]:hover { color: #eef1f6; background: rgba(255,255,255,0.05); }
.dos-rail [role=tab]:hover .ico { filter: none; }
.dos-rail [role=tab].active { color: var(--g-gold); background: linear-gradient(180deg, rgba(232,188,103,0.16), rgba(232,188,103,0.05)); border-color: rgba(232,188,103,0.4); box-shadow: 0 0 20px rgba(232,188,103,0.1); }
.dos-rail [role=tab].active .ico { filter: none; transform: scale(1.08); }
.dos-rail [role=tab].active::before { content: ''; position: absolute; left: -11px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--g-gold); box-shadow: 0 0 10px var(--g-gold); }
.dos-rail [role=tab]:focus-visible, .dos-sub [role=tab]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232,188,103,0.35); }
.dos-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--g-bad); color: #fff; font: 700 11px/18px var(--g-cond); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #0f1220; }
.dos-badge.pip { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 7px; right: 14px; }
.dos-rail .b:empty, .dos-sub .b:empty { display: none; }
/* sub-nav: segmented pills */
.dos-sub { grid-area: sub; display: flex; gap: 4px; padding: 10px 22px; border-bottom: 1px solid var(--g-line); overflow-x: auto; scrollbar-width: none; background: rgba(8,10,16,0.35); }
.dos-sub::-webkit-scrollbar, .dos-rail::-webkit-scrollbar { display: none; }
.dossier.one-tab .dos-sub { display: none; }
.dos-sub [role=tab] { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.03); color: #b9c0cf; font: 700 14px var(--g-cond); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.dos-sub [role=tab] .ico { font-size: 15px; }
.dos-sub [role=tab]:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.dos-sub [role=tab].active { background: var(--g-gold); border-color: var(--g-gold); color: #171920; box-shadow: 0 4px 16px rgba(232,188,103,0.25); }
.dos-sub .dos-badge { position: static; margin-left: 2px; box-shadow: none; }
.dos-sub .dos-badge.pip { display: inline-block; }
.dos-sub [role=tab].active .dos-badge { background: #171920; color: var(--g-gold); }
.dos-panel { grid-area: panel; overflow: auto; overscroll-behavior: contain; padding: 18px 24px 26px; outline: none; }
.dos-panel > h3:first-child, .dos-panel > .dos-meters:first-child + h3 { margin-top: 4px; }
.dos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; border-radius: 12px; overflow: hidden; background: var(--g-line); }
.dos-stat { background: #131622; padding: 9px 12px; }
.dos-stat b { display: block; font: 600 18px var(--g-cond); font-variant-numeric: tabular-nums; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dos-stat b small { color: var(--g-muted); font-size: 13px; }
.dos-stat.good b { color: var(--g-good); } .dos-stat.bad b { color: #ff8a95; }
.dos-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.dos-meter label { display: flex; justify-content: space-between; font: 700 12px var(--g-cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-muted); margin-bottom: 5px; }
.dos-meter label span { color: #eef1f6; }
.dos-meter > i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dos-meter > i > i { display: block; height: 100%; border-radius: 4px; }
.dos-meter.health > i > i { background: #ff5d6c; } .dos-meter.energy > i > i { background: #ffd23f; } .dos-meter.heat > i > i { background: linear-gradient(90deg, #5fa8ff, #ff4d5e); }
.dos-role { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #131622; }
.dos-foot { color: var(--g-muted) !important; font-size: 13px; margin-top: 14px !important; }
.dos-empty { color: var(--g-muted) !important; padding: 18px 0; }
.dos-callout { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: rgba(232,188,103,0.09); border: 1px solid rgba(232,188,103,0.3); font-size: 14px; }
.dos-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.dos-actions small { color: var(--g-muted); }
.dos-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.dos-table th { text-align: left; font: 700 11px var(--g-cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-muted); padding: 6px 8px; border-bottom: 1px solid var(--g-line); }
.dos-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.dos-table tr[data-prop] { cursor: pointer; }
.dos-table tr[data-prop]:hover td, .dos-table tr[data-prop]:focus td { background: rgba(255,255,255,0.04); }
.dos-prop-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dos-prop-head h3 { margin: 0; color: #eef1f6; font-size: 22px; letter-spacing: 0.02em; }
.dos-prop-head p { margin: 2px 0 0; }
.dos-prop-icon { font-size: 34px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: #1c2030; }
.dos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dos-item { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #131622; border: 1px solid var(--g-line); }
.dos-item.equipped { border-color: rgba(232,188,103,0.55); background: rgba(232,188,103,0.07); }
.dos-item .it-icon { grid-row: span 2; font-size: 26px; }
.dos-item b { font: 700 15px var(--g-cond); }
.dos-item small { color: var(--g-muted); grid-column: 2; }
.dos-item button { grid-column: 3; grid-row: 1 / span 2; }
.dos-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ach { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 12px; border-radius: 12px; background: #131622; border: 1px solid var(--g-line); opacity: 0.45; filter: grayscale(1); }
.ach.got { opacity: 1; filter: none; border-color: rgba(232,188,103,0.4); }
.ach span { grid-row: span 3; font-size: 28px; }
.ach b { font: 700 15px var(--g-cond); }
.ach small { color: var(--g-muted); font-size: 12px; }
.ach em { font-style: normal; color: var(--g-gold); font-size: 11px; }
.dos-feed { list-style: none; padding: 0; margin: 0; }
.dos-feed li, .city-feed li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.dos-feed time, .city-feed time { color: var(--g-muted); white-space: nowrap; font-size: 12px; }
.dos-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dos-filters-top { grid-column: 1 / -1; display: flex; gap: 8px; }
.dos-filters-top input[type=search] { flex: 1; min-width: 0; }
.dos-filters .vn-sel { width: 100%; }
.dos-rules { line-height: 1.6; }
.dos-players { margin-top: 10px; }
.dos-player { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.dos-player:hover, .dos-player:focus { background: rgba(255,255,255,0.04); }
.pl-avatar { position: relative; width: 44px; height: 44px; flex: none; border-radius: 11px; background: #1c2030; }
.pl-avatar > svg { border-radius: 11px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #50586a; }
.pl-avatar .dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px #171a26; }
.dot.online { background: var(--g-good); box-shadow: 0 0 6px var(--g-good); } .dot.active { background: #c5e86b; } .dot.idle { background: #e0a94a; } .dot.stagnant { background: #50586a; }
.pl-name { flex: 1; min-width: 0; }
.pl-name b { font: 700 16px var(--g-cond); letter-spacing: 0.02em; }
.pl-name small { display: block; color: var(--g-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wanted { font-style: normal; font: 700 11px var(--g-cond); color: #ff8f99; letter-spacing: 0.06em; text-transform: uppercase; }
.pl-odds { font: 700 16px var(--g-cond); color: #e0c97a; width: 44px; text-align: right; }
.pl-odds.good { color: var(--g-good); } .pl-odds.bad { color: #ff8a95; }
.dos-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: var(--g-muted); font-size: 13px; }
.dos-profile { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.dos-profile h3 { margin: 0; color: #eef1f6; font-size: 26px; letter-spacing: 0.01em; text-transform: none; }
.pf-avatar { display: grid; place-items: center; padding: 8px 0; border-radius: 16px; background: radial-gradient(circle at 50% 30%, #2d3248, #151824); }
.pf-ach { display: flex; flex-wrap: wrap; gap: 6px; font-size: 24px; }
.pf-props { list-style: none; padding: 0; margin: 0; columns: 2; }
.pf-props a { color: #eef1f6; text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
.pf-props a:hover { color: var(--g-gold); }
.pf-props small { color: var(--g-muted); }
.dos-edit { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
.dos-edit-side { display: flex; flex-direction: column; gap: 10px; }
.dos-edit-side label { font-weight: 600; font-size: 13px; color: #dbdce4; }
.dos-edit-side input { width: 100%; margin-top: 6px; }
.dos-edit-side small { color: var(--g-muted); }

/* ---------------- shop ---------------- */
.vn-dialog.shop { width: min(620px, calc(100vw - 24px)); }
.shop-list { display: grid; gap: 6px; }
.shop-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #131622; border: 1px solid var(--g-line); }
.shop-item.equipped { border-color: rgba(232,188,103,0.55); }
.shop-item .it-icon { font-size: 26px; }
.shop-item b { display: block; font: 700 16px var(--g-cond); }
.shop-item small { color: var(--g-muted); }
.shop-price { font: 700 17px var(--g-cond); color: var(--g-gold); font-variant-numeric: tabular-nums; }
.shop-price s { color: var(--g-muted); font-weight: 500; font-size: 13px; }
.shop-price.deal { color: var(--g-good); }

/* ---------------- city overlays ---------------- */
.gps { position: fixed; right: 12px; top: 80px; width: 280px; max-height: calc(100vh - 290px); display: none; flex-direction: column; z-index: 18; border-radius: 14px; background: rgba(13,15,24,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--g-line); box-shadow: 0 10px 40px rgba(0,0,0,0.45); }
.gps.open { display: flex; }
.gps header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--g-line); font: 700 16px var(--g-cond); letter-spacing: 0.06em; text-transform: uppercase; }
.gps-list { overflow: auto; padding: 4px 6px 8px; }
.gps-list h5 { margin: 10px 6px 4px; font: 700 11px var(--g-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-muted); }
.gps-list summary { list-style: none; cursor: pointer; border-radius: 8px; }
.gps-list summary::-webkit-details-marker { display: none; }
.gps-list summary:hover { background: rgba(255,255,255,0.05); }
.gps-list summary h5 { display: flex; justify-content: space-between; }
.gps-list summary h5::after { content: '▸'; } .gps-list details[open] summary h5::after { content: '▾'; }
.gps-list summary small { margin-left: auto; margin-right: 8px; font-weight: 600; }
.gps-list button { display: grid; grid-template-columns: 28px 1fr; gap: 0 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: #eef1f6; text-align: left; cursor: pointer; }
.gps-list button:hover { background: rgba(255,255,255,0.07); }
.gps-list button span { grid-row: span 2; font-size: 20px; align-self: center; }
.gps-list button b { font: 700 14px var(--g-cond); letter-spacing: 0.03em; text-transform: uppercase; }
.gps-list button small { color: var(--g-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-feed { position: fixed; left: 76px; bottom: 50px; width: min(380px, calc(100vw - 340px)); margin: 0; padding: 0; list-style: none; z-index: 5; }
.city-feed li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-top: 5px; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; background: rgba(10,12,20,0.78); font-size: 12px; color: #d4d8e2; animation: feed-in .35s ease; }
.city-feed li.link { cursor: pointer; }
.city-feed li.link:hover { border-color: rgba(232,188,103,0.5); background: rgba(20,22,34,0.92); }
.city-feed li:nth-child(2) { opacity: 0.8; }
.feed-msg { flex: 1; min-width: 0; }
.feed-name { border: 0; padding: 0; background: none; color: #e8bc67; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.feed-go { flex: none; font-size: 13px; color: #e8bc67; }
@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } }
body.atlas .city-feed { left: 12px; bottom: 54px; }
.chip-owner { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.chip-owner:hover { filter: brightness(1.25); }
.chip-av { width: 18px; height: 18px; border-radius: 5px; overflow: hidden; background: #1c2030; display: inline-block; }
.chip-av svg { width: 18px; height: 18px; display: block; }
.card-guest { margin: 10px 0 0; font-size: 12px; color: #c3c9d6; }

/* Toasts on pages without the city stylesheet. */
.vn-toasts { position: fixed; right: 12px; top: 80px; display: flex; flex-direction: column; gap: 8px; z-index: 1100; pointer-events: none; }
.vn-toasts .toast { max-width: 340px; padding: 10px 14px; border-radius: 12px; font: 13px/1.35 Barlow, sans-serif; color: #eef1f6; background: rgba(12,14,22,0.94); border: 1px solid var(--g-line); border-left: 3px solid var(--g-muted); box-shadow: 0 10px 30px rgba(0,0,0,0.45); transform: translateX(20px); opacity: 0; transition: transform .25s, opacity .25s; }
.vn-toasts .toast.show { transform: none; opacity: 1; }
.vn-toasts .toast.good { border-left-color: var(--g-good); }
.vn-toasts .toast.bad { border-left-color: var(--g-bad); }
.vn-toasts .toast.bounty { border: 1px solid #ffd96b; border-left: 4px solid #ffd96b; background: linear-gradient(135deg, rgba(60,42,6,0.97), rgba(14,12,8,0.97)); box-shadow: 0 0 0 3px rgba(255,217,107,0.15), 0 12px 34px rgba(0,0,0,0.5); font-size: 14px; }
.vn-toasts .toast.bounty b { color: #ffe08a; }

/* ---------------- phones ---------------- */
.topbar-more { display: none; }
@media (max-width: 900px) {
  /* Top bar: brand, cash and your chip; the ☰ button expands cities and stats. */
  .topbar { height: auto; min-height: 52px; flex-wrap: wrap; gap: 8px; padding: 6px 8px 6px 12px; top: 8px; left: 8px; right: 8px; }
  .topbar .brand-nation, .topbar .map-chip { display: none; }
  .topbar .cities { display: none; order: 10; flex: 1 1 100%; }
  .topbar .stats { order: 11; flex: 1 1 100%; display: none; }
  .topbar.expanded .cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; overflow: visible; }
  .topbar.expanded .stats { display: flex; flex-wrap: wrap; }
  .topbar.expanded .stats .stat { display: block !important; flex: 1 1 40%; border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .topbar .player-chip { margin-left: auto; }
  .topbar-more { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #fff; font-size: 18px; cursor: pointer; }
  .auth-trigger { padding: 8px 10px; }
  .city-banner { top: 70px; }
  .city-banner b { font-size: 34px; }

  /* Left toolbar becomes a scrollable bottom dock. */
  .toolbar { top: auto; bottom: 8px; left: 8px; right: 8px; transform: none; flex-direction: row; gap: 2px; padding: 4px; overflow-x: auto; scrollbar-width: none; z-index: 16; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar .tool { flex: none; width: 54px; height: 50px; }
  .toolbar .tool-sep { width: 1px; height: auto; margin: 6px 2px; }
  #btnZoomIn, #btnZoomOut { display: none; }
  .minimap-wrap, .help, .compass { display: none !important; }

  /* Property card as a bottom sheet above the dock. */
  .card, .card.side { left: 8px !important; right: 8px; top: auto !important; bottom: 70px; width: auto; transform: none !important; max-height: calc(100dvh - 150px); overflow-y: auto; z-index: 20; }
  .card::after { display: none; }
  .drawer { bottom: 70px; width: calc(100vw - 16px); }
  .gps { top: 70px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 160px); }
  .loc-bar { top: 68px; }
  .topbar.expanded { z-index: 40; }
  .topbar.expanded ~ .loc-bar { display: none; }
  .drawer:not(.open) { visibility: hidden; }
  .city-feed { display: block; left: 8px; right: 8px; bottom: 68px; width: auto; }
  .city-feed li:nth-child(n+2) { display: none; }
  body.atlas .city-feed { left: 8px; bottom: 68px; }
  #toasts, .toasts { top: auto; bottom: 120px; left: 8px; right: 8px; align-items: stretch; }
  .toast { max-width: none; }

  .chip-text, .player-chip .vn-btn.small { display: none; }
  .chip-me { padding: 3px; }
  .role-cards { grid-template-columns: 1fr; }
  .dos-meters { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dos-role, .dos-profile, .dos-edit { grid-template-columns: 1fr; }
  .pf-props { columns: 1; }
  .gps { left: 12px; right: 12px; width: auto; }
}

.card-perks { margin: 10px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.45; color: #c3c9d6; }
.dos-callout.loc { background: rgba(95,168,255,0.08); border-color: rgba(95,168,255,0.3); }

/* No double-tap page zoom; the map handles its own gestures. */
html { touch-action: manipulation; }

/* Toast stack as a top-layer popover: undo the UA popover box and keep our position. */
#toasts[popover] { position: fixed; inset: 80px 12px auto auto; margin: 0; padding: 0; border: 0; background: transparent; color: #eef1f6; overflow: visible; width: auto; height: auto; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (max-width: 900px) { #toasts[popover] { inset: auto 8px 120px 8px; } }

/* ---- city level locks ---- */
.city-tab { position: relative; }
.city-tab.locked { opacity: 0.6; }
.city-lock { position: absolute; top: 2px; right: 2px; font: 700 10px 'Barlow Condensed', sans-serif; font-style: normal; padding: 1px 4px; border-radius: 6px; background: rgba(0,0,0,0.55); color: #ffd36b; pointer-events: none; }
.card-lock { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,90,79,0.12); color: #ffb0a8; font: 600 14px 'Barlow Condensed', sans-serif; letter-spacing: 0.03em; display: flex; justify-content: space-between; align-items: center; }
.card-lock.open { background: rgba(61,255,154,0.1); color: #8affc0; }
.card-lock small { color: #8d96a8; font-size: 12px; }

/* ---- "fix it" buttons on errors ---- */
.toast.has-fix { pointer-events: auto; }
.fix-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.fix-row small { flex-basis: 100%; color: #a7afc0; font-size: 12px; }
.toast .fix-row .vn-btn { pointer-events: auto; }

/* ---- story snippet on cards ---- */
.card-lore { margin: 4px 0 8px; border-radius: 10px; background: rgba(232,188,103,0.07); border: 1px solid rgba(232,188,103,0.18); }
.card-lore summary { cursor: pointer; padding: 6px 10px; font: 700 13px 'Barlow Condensed', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #e8bc67; list-style: none; }
.card-lore summary::-webkit-details-marker { display: none; }
.card-lore summary::after { content: ' ▸'; }
.card-lore[open] summary::after { content: ' ▾'; }
.card-lore > div { display: flex; gap: 10px; padding: 0 10px 6px; align-items: flex-start; }
.card-lore img { border-radius: 50%; flex: none; background: #0d0f17; }
.card-lore p { margin: 0; font-size: 13px; line-height: 1.4; color: #d4d8e2; font-style: italic; }
.card-lore p b { display: block; font-style: normal; color: #fff; }
.card-lore a { display: block; padding: 0 10px 8px; font-size: 12px; color: #e8bc67; }

/* ---- welcome popup (visitors) ---- */
.vn-dialog.welcome { width: min(620px, calc(100vw - 20px)); padding: 0; overflow: hidden auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: radial-gradient(ellipse at 50% 0%, #3a1d3f 0%, #141623 55%, #0c0d14 100%); }
.vn-dialog.welcome .vn-body { padding: 26px 26px 20px; }
/* Phones: the whole sheet fits the screen (notch and home bar included) and scrolls inside. */
@media (max-width: 520px), (max-height: 700px) {
  .vn-dialog.welcome { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .vn-dialog.welcome .vn-body { padding: max(22px, calc(env(safe-area-inset-top) + 14px)) max(16px, env(safe-area-inset-right)) max(22px, calc(env(safe-area-inset-bottom) + 14px)) max(16px, env(safe-area-inset-left)); }
  .vn-dialog.welcome .vn-close { top: max(10px, env(safe-area-inset-top)); }
  .wl-form { margin-top: 14px; gap: 12px; }
}
.wl-hero { text-align: center; }
.wl-brand { display: flex; justify-content: center; align-items: baseline; gap: 0.3em; font: 400 36px/1 Bungee, Impact, sans-serif; letter-spacing: 0.02em; }
.wl-brand .brand-vice { color: #ff3fb4; text-shadow: 0 0 18px rgba(255,63,180,0.6); }
.wl-brand .brand-vice, .wl-brand .brand-nation { font-size: 1em; line-height: 1; opacity: 1; }
.wl-brand .brand-nation { color: #e8bc67; }
.wl-kicker { margin: 14px 0 2px; font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: #8d96a8; }
.wl-hero h2 { margin: 2px 0 8px; font: 700 clamp(22px, 5vw, 30px)/1.1 'Barlow Condensed', sans-serif; color: #fff; }
.wl-hero .wl-hook { margin: 0 auto; max-width: 52ch; color: #c9cfdb; font-size: 15px; line-height: 1.5; }
.wl-hook b { color: #e8bc67; }
.wl-reason { margin: 10px 0 0; color: #ffd36b; font-size: 13px; }
.wl-form { display: grid; gap: 14px; margin-top: 18px; }
.wl-name > span:first-child { display: block; font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #8d96a8; margin-bottom: 6px; }
.wl-name-row { display: flex; gap: 8px; }
.wl-name input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(232,188,103,0.45); background: #0c0e16; color: #fff; font: 700 22px 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; }
.wl-name input:focus { outline: 2px solid #e8bc67; outline-offset: 1px; }
.wl-dice { width: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: #1a1d2a; font-size: 24px; cursor: pointer; transition: transform .2s; }
.wl-dice:hover { transform: rotate(-12deg) scale(1.06); }
.wl-sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl-side { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: #141724; color: #dfe4ee; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s, background .15s; }
.wl-side:hover { transform: translateY(-2px); }
.wl-side.on { border-color: #e8bc67; background: linear-gradient(180deg, rgba(232,188,103,0.16), #141724); box-shadow: 0 0 0 1px #e8bc67 inset; }
.wl-side-icon { font-size: 26px; }
.wl-side b { font: 700 16px 'Barlow Condensed', sans-serif; }
.wl-side em { font: 700 12px 'Barlow Condensed', sans-serif; font-style: normal; color: #e8bc67; letter-spacing: 0.04em; }
.wl-side small { font-size: 11px; line-height: 1.3; color: #8d96a8; }
.wl-play { width: 100%; font-size: 20px !important; padding: 14px !important; letter-spacing: 0.08em; animation: wl-pulse 2.4s ease-in-out infinite; }
@keyframes wl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,188,103,0.5); } 50% { box-shadow: 0 0 0 10px rgba(232,188,103,0); } }
@media (prefers-reduced-motion: reduce) { .wl-play { animation: none; } }
.wl-fine { margin: -4px 0 0; text-align: center; color: #8d96a8; font-size: 12px; }
.wl-account { display: flex; gap: 6px; justify-content: center; align-items: baseline; flex-wrap: wrap; color: #8d96a8; font-size: 13px; line-height: 1.4; }
.wl-account .vn-link { margin: 0; font-size: 13px; line-height: inherit; }
@media (max-width: 520px) { .wl-sides { grid-template-columns: 1fr; } .wl-side { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 10px; } .wl-side-icon { grid-row: span 3; align-self: center; } .wl-brand { font-size: 30px; } }

/* ---- save-your-progress reminders (guests) ---- */
.chip-save { white-space: nowrap; }
.wl-nudge { position: fixed; right: 16px; bottom: 90px; z-index: 30; width: min(320px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: rgba(14,16,25,0.97); border: 1px solid rgba(232,188,103,0.5); box-shadow: 0 16px 40px rgba(0,0,0,0.55); color: #dfe4ee; transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; }
.wl-nudge.show { transform: none; opacity: 1; pointer-events: auto; }
.wl-nudge b { font: 700 16px 'Barlow Condensed', sans-serif; color: #e8bc67; }
.wl-nudge span { font-size: 13px; line-height: 1.4; color: #c3c9d6; }
.wl-nudge .vn-btn { justify-self: start; }
.wl-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: #8d96a8; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) { .wl-nudge { right: 12px; left: 12px; width: auto; bottom: 150px; } }

/* ---------------- player menu: dashboard and tab extras ---------------- */
.ov-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ov-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: #131622; border: 1px solid var(--g-line); }
.ov-card b { display: block; font: 700 16px/1.15 var(--g-cond); letter-spacing: 0.02em; color: #eef1f6; }
.ov-card small { display: block; color: var(--g-muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ov-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.05); font-size: 21px; }
.ov-card.hot { border-color: rgba(232,188,103,0.5); background: linear-gradient(110deg, rgba(232,188,103,0.14), #131622 70%); }
.ov-card.hot .ov-ico { background: rgba(232,188,103,0.18); box-shadow: 0 0 16px rgba(232,188,103,0.25); }
.ov-card.good { border-color: rgba(61,255,154,0.35); background: linear-gradient(110deg, rgba(61,255,154,0.1), #131622 70%); }
.ov-card.bad { border-color: rgba(255,77,94,0.5); background: linear-gradient(110deg, rgba(255,77,94,0.14), #131622 70%); }
.ov-card.done { opacity: 0.62; }
.ov-done { font-style: normal; color: var(--g-good); font-weight: 700; padding: 0 6px; }
.ov-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ov-safe { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--g-line); }
.ov-safe-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; background: #131622; }
.ov-safe-item > span { font-size: 22px; }
.ov-safe-item b { display: block; font: 700 15px var(--g-cond); letter-spacing: 0.04em; text-transform: uppercase; color: #dfe4ee; }
.ov-safe-item small { display: block; color: #aeb5c4; font-size: 13px; line-height: 1.4; }
.ov-safe-item em { font-style: normal; font-weight: 700; }
.ov-safe-item.on { background: linear-gradient(110deg, rgba(61,255,154,0.1), #131622 70%); }
.ov-guest { display: flex; align-items: center; gap: 12px; }
.ov-guest > span { font-size: 22px; }
.ov-guest p { flex: 1; margin: 0 !important; color: #dfe4ee !important; }
.dos-more { margin-top: 16px; border-radius: 12px; border: 1px solid var(--g-line); background: rgba(255,255,255,0.02); }
.dos-more > summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font: 700 14px var(--g-cond); letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-muted); }
.dos-more > summary::-webkit-details-marker { display: none; }
.dos-more > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--g-gold); border-bottom: 2px solid var(--g-gold); transform: rotate(45deg); transition: transform .2s; }
.dos-more[open] > summary::after { transform: rotate(225deg); }
.dos-more > summary:hover { color: #eef1f6; }
.dos-more > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232,188,103,0.3); border-radius: 12px; }
.dos-more > .dos-grid, .dos-more > .dos-role { margin: 0 12px 12px; }
.dos-more > h3 { margin: 14px 14px 8px; }
.dos-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; margin-bottom: 14px; }
.dos-progress > b { font: 700 16px var(--g-cond); letter-spacing: 0.04em; color: #eef1f6; }
.dos-progress > span { font-size: 13px; color: var(--g-muted); }
.dos-progress > i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dos-progress > i > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b8862d, var(--g-gold)); }
.dos-table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 12px; }
.dos-table-wrap .dos-table { margin-top: 0; min-width: 480px; }
.dos-feed li.new { background: linear-gradient(90deg, rgba(232,188,103,0.1), transparent); border-left: 2px solid var(--g-gold); padding-left: 10px; }
.dos-feed li { align-items: center; }
.dos-feed li > span { flex: 1; min-width: 0; }
.dos-feed .note-ico { flex: none; width: 22px; font-style: normal; text-align: center; }
.dos-feed li.note-bounty { padding: 10px 10px; margin: 4px 0; border-radius: 12px; border: 1px solid rgba(255,217,107,0.55); background: linear-gradient(90deg, rgba(232,188,103,0.22), rgba(232,188,103,0.04)); }
.dos-feed li.note-bounty .note-ico { font-size: 22px; }
.dos-feed li.note-bounty span { color: #fff3cf; }
.dos-feed .note-amt { flex: none; font: 400 18px Bungee, Impact, sans-serif; font-style: normal; color: #ffe08a; text-shadow: 0 2px 0 #000; }
.dos-feed li.note-crew { padding: 8px 10px; margin: 4px 0; border-radius: 12px; border: 1px solid rgba(95,168,255,0.4); background: rgba(95,168,255,0.08); }
.dos-feed li.note-bad span { color: #ffc2c8; }
@media (max-width: 600px) { .dos-feed li { flex-wrap: wrap; } .dos-feed li > time { width: 100%; padding-left: 34px; } }
.vn-tag.new { background: rgba(255,77,94,0.16); color: #ffb3ba; border-color: rgba(255,77,94,0.45); vertical-align: 2px; margin-left: 6px; letter-spacing: 0.06em; }
.vn-link.inline { margin: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.inv-loadout { margin-bottom: 4px; }
.inv-hero { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(110deg, rgba(255,63,180,0.14), rgba(232,188,103,0.08) 60%, transparent); border: 1px solid rgba(255,63,180,0.3); }
.inv-hero > span { font-size: 34px; }
.inv-hero h3 { margin: 0 0 4px !important; color: #fff !important; font-size: 20px !important; letter-spacing: 0.02em !important; text-transform: none !important; }
.inv-hero p { margin: 0 !important; }
.dos-side-card { display: grid; gap: 2px; margin-top: 6px; padding: 12px; border-radius: 12px; background: #131622; border: 1px solid var(--g-line); }
.dos-side-card label { font: 700 11px var(--g-cond) !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-muted) !important; margin-top: 6px; }
.dos-side-card label:first-child { margin-top: 0; }
.dos-side-card p { margin: 0 !important; color: #eef1f6 !important; font-size: 14px; }
.dos-side-card small { color: var(--g-muted); }
.crew-colors { grid-column: 1 / -1; }

/* Phones: the menu fills the screen; sections become a bottom bar, the sub-nav a segmented row. */
@media (max-width: 720px) {
  .vn-dialog.dossier { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .dossier .vn-body, .dossier.one-section .vn-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "head" "sub" "panel" "rail"; }
  .dossier .vn-close { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
  .dos-head { flex-wrap: wrap; gap: 6px 12px; padding: calc(10px + env(safe-area-inset-top)) 52px 10px calc(14px + env(safe-area-inset-left)); }
  .dos-avatar, .dos-avatar svg { width: 42px; height: 42px; border-radius: 11px; }
  .dos-id h2 { font-size: 20px; margin-bottom: 2px; }
  .dos-id p { gap: 6px; font-size: 12px; }
  .xp { width: 64px; }
  .dos-money { width: 100%; margin-right: -38px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 10px; background: rgba(0,0,0,0.25); border: 1px solid var(--g-line); }
  .dos-money span { padding: 5px 10px; }
  .dos-money b { font-size: 17px; }
  .dos-money .vn-btn { grid-column: 1 / -1; margin: 4px; }
  .dos-rail { flex-direction: row; justify-content: space-around; gap: 2px; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--g-line); background: linear-gradient(180deg, #121521, #0a0c13); overflow: visible; }
  .dos-mark { display: none; }
  .dos-rail [role=tab] { flex: 1 1 0; min-width: 0; padding: 7px 2px 6px; border-radius: 12px; }
  .dos-rail [role=tab] .ico { font-size: 20px; }
  .dos-rail [role=tab] .lbl { font-size: 11px; }
  .dos-rail [role=tab].active::before { left: 22%; right: 22%; top: -6px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .dos-badge { right: calc(50% - 22px); top: 2px; }
  .dos-badge.pip { right: calc(50% - 18px); top: 5px; }
  .dos-sub { padding: 8px 10px; gap: 3px; }
  .dos-sub [role=tab] { flex: 1 1 auto; justify-content: center; gap: 4px; padding: 7px 8px; font-size: 12.5px; letter-spacing: 0.03em; }
  .dos-player { align-items: flex-start; padding: 8px 4px; gap: 10px; }
  .pl-name small { white-space: normal; line-height: 1.45; }
  .dos-player > .vn-btn, .dos-player > .pl-odds, .dos-player > .vn-tag { align-self: center; }
  .dos-player .vn-btn[data-goto] { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .dos-sub [role=tab] .ico { display: none; }
  .dos-panel { padding: 14px 14px 22px; padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }
  .dos-filters { grid-template-columns: 1fr 1fr; }
  .ov-next { grid-template-columns: 1fr; }
  .ov-glance { grid-template-columns: 1fr 1fr; }
  .ov-safe-item { grid-template-columns: auto minmax(0, 1fr); }
  .ov-safe-item .vn-btn { grid-column: 2; justify-self: start; }
  .ov-guest { flex-wrap: wrap; }
  .dos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 380px) { .dos-sub [role=tab] { padding: 7px 5px; font-size: 11.5px; letter-spacing: 0.02em; } }
.dos-meters + h3 { margin-top: 18px; }

/* View menu (#viewMenu): flat map, angled city view, 3D street level */
.view-menu { position: fixed; inset: auto; margin: 0; width: 330px; padding: 10px; border-radius: 14px; background: rgba(12,14,22,0.97); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.5); color: #fff; }
.view-menu b { display: block; font: 400 14px 'Bungee', sans-serif; letter-spacing: 0.04em; padding: 4px 8px 8px; color: var(--accent, #e8bc67); }
.view-opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: #dfe4ee; text-align: left; cursor: pointer; font: inherit; }
.view-opt + .view-opt { margin-top: 4px; }
.view-opt:hover:not(:disabled) { background: rgba(255,255,255,0.07); }
.view-opt.on { border-color: var(--accent, #e8bc67); background: rgba(232,188,103,0.1); }
.view-opt .view-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.08); font-size: 18px; }
.view-opt strong { display: flex; align-items: center; gap: 6px; font: 700 16px 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; color: #fff; }
.view-opt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted, #9aa3b5); }
.view-opt kbd { padding: 0 4px; border-radius: 4px; border: 1px solid var(--line); font: 600 10px 'Barlow Condensed', sans-serif; }
.view-new { font: 700 10px 'Barlow Condensed', sans-serif; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; background: #ff3fb4; color: #fff; }
.view-opt.soon { cursor: default; opacity: 0.6; }
.view-opt.soon .view-new { background: rgba(255,255,255,0.14); color: #dfe4ee; }
@media (max-width: 720px) { .view-menu { inset: auto 8px 66px 8px; width: auto; } }

/* Street level (js/street.js, styled by css/street3d.css once loaded): the 3D view covers the map and
 * the map-only chrome steps aside. These few rules are here so the loading screen looks right at once. */
body.street-on :is(#world, .vignette, .minimap-wrap, .help, #btnHome, #overlayLegend, .city-feed, #lazyLoad, #placeHint, #tooltip, #cityBanner, #btnZoomIn, #btnZoomOut, #btnPeople, [data-overlay="turf"]) { display: none !important; }
.sv-root { position: fixed; inset: 0; background: #0b0d12; }
.sv-loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 40%, #1a2030, #0b0d12 70%); color: var(--text); font: 600 18px var(--cond); }
.sv-loading p { margin: 0; }
.sv-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.15); border-top-color: var(--accent); animation: sv-spin 0.9s linear infinite; }
.sv-loading.is-error .sv-spinner { display: none; }
.sv-retry { display: block; margin: 14px auto 0; padding: 9px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: #fff; font: 600 15px var(--cond); cursor: pointer; }
@keyframes sv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sv-spinner { animation: none; } }
