:root {
  color-scheme: dark;
  --ink: #071018;
  --panel: rgba(7, 15, 22, .88);
  --panel-solid: #0b151d;
  --line: rgba(205, 226, 237, .16);
  --muted: #8da0aa;
  --white: #f3f5f3;
  --amber: #ffc55f;
  --cyan: #73e8ec;
  --red: #ff665f;
  --green: #81e6a9;
  --radius: 3px;
  --shadow: 0 22px 80px rgba(0, 0, 0, .48);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--ink); color: var(--white); }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(28, 72, 80, .36), transparent 32%),
    linear-gradient(145deg, #08131b, #03070a 70%);
  transition: opacity .55s ease, visibility .55s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark, .brand-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-weight: 950;
  font-style: italic;
  color: #081015;
  background: linear-gradient(145deg, #fff4ba, var(--amber) 52%, #e39735);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  box-shadow: 0 0 45px rgba(255, 197, 95, .3);
}
.boot-mark { width: 72px; height: 72px; font-size: 44px; transform: skew(-5deg); }
.boot-word { margin-top: 16px; font-size: clamp(30px, 5vw, 54px); font-weight: 950; letter-spacing: .12em; font-style: italic; }
.boot-city { margin-top: 4px; color: var(--cyan); letter-spacing: .3em; font-size: 10px; font-weight: 800; }
.boot-track { width: min(360px, 62vw); height: 2px; margin-top: 42px; background: rgba(255,255,255,.12); overflow: hidden; }
.boot-track i { display: block; width: 12%; height: 100%; background: linear-gradient(90deg, var(--amber), #fff); box-shadow: 0 0 16px var(--amber); transition: width .35s ease; }
.boot-label { margin-top: 12px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.boot-retry { margin-top: 20px; border: 1px solid rgba(115,232,236,.45); padding: 10px 15px; color: var(--cyan); background: rgba(115,232,236,.09); cursor: pointer; text-transform: uppercase; font: inherit; font-size: 9px; letter-spacing: .14em; }

.auth {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(430px, 560px);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
  padding: clamp(28px, 5vw, 86px);
  background:
    linear-gradient(90deg, rgba(2, 7, 11, .94) 0%, rgba(2, 7, 11, .68) 38%, rgba(2, 7, 11, .14) 70%),
    linear-gradient(0deg, rgba(4, 12, 18, .72), transparent 40%),
    url("/media/neonhafen-hamburg-hero-v1.png") center / cover no-repeat;
}
.auth::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 58%, rgba(115, 232, 236, .11)); pointer-events: none; }
.auth-grain { position: absolute; inset: 0; backdrop-filter: saturate(.88) contrast(1.05); pointer-events: none; }
.auth-copy, .auth-card { position: relative; z-index: 1; }
.auth-copy { align-self: end; padding-bottom: 5vh; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 850; letter-spacing: .22em; color: var(--cyan); }
.eyebrow i { width: 28px; height: 2px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.auth-copy h1 { margin: 20px 0 18px; font-size: clamp(48px, 7.2vw, 112px); line-height: .82; letter-spacing: -.055em; font-weight: 950; font-style: italic; text-shadow: 0 8px 45px rgba(0,0,0,.8); }
.auth-copy h1 em { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.82); font-style: inherit; }
.auth-copy > p { max-width: 620px; margin: 0; color: #c5d1d6; font-size: clamp(14px, 1.35vw, 19px); line-height: 1.6; text-shadow: 0 3px 20px #000; }
.auth-facts { display: flex; gap: 30px; margin-top: 34px; }
.auth-facts span { display: grid; gap: 2px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.auth-facts b { color: var(--white); font-size: 19px; letter-spacing: .03em; }

.auth-card {
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px 30px 22px;
  border: 1px solid rgba(196, 221, 231, .2);
  background: linear-gradient(145deg, rgba(10, 22, 30, .94), rgba(5, 12, 18, .9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
}
.auth-card::after { content: ""; position: absolute; inset: 0; border-top: 2px solid rgba(115,232,236,.38); pointer-events: none; }
.auth-card > header, .brand-lockup, .game-brand { display: flex; align-items: center; }
.auth-card > header { justify-content: space-between; padding-bottom: 24px; }
.brand-n { width: 38px; height: 38px; font-size: 23px; flex: 0 0 auto; }
.brand-lockup, .game-brand { gap: 10px; }
.brand-lockup div, .game-brand div { display: grid; }
.brand-lockup strong, .game-brand strong { font-weight: 950; font-style: italic; letter-spacing: .08em; }
.brand-lockup small, .game-brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .19em; }
.server-led { display: flex; align-items: center; gap: 7px; font-size: 8px; color: var(--green); letter-spacing: .13em; font-weight: 800; }
.server-led i, .online-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { opacity: .42; } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 13px 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-tabs button.active { color: var(--white); border-color: var(--amber); }
.auth-card h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.auth-card form > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field { display: grid; gap: 8px; position: relative; margin-bottom: 16px; }
.field > span { color: #cbd6d9; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.field > span b { float: right; color: var(--cyan); font-size: 7px; }
.field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(190, 214, 224, .18);
  border-radius: 2px;
  outline: 0;
  padding: 0 14px;
  color: var(--white);
  background: rgba(2, 8, 12, .6);
  transition: border .18s, box-shadow .18s;
}
.field input:focus { border-color: rgba(115,232,236,.72); box-shadow: 0 0 0 3px rgba(115,232,236,.08); }
.field input::placeholder { color: #52636d; }
.address-results { position: absolute; z-index: 20; left: 0; right: 0; top: 74px; max-height: 260px; overflow: auto; border: 1px solid rgba(115,232,236,.32); background: #071219; box-shadow: 0 18px 45px rgba(0,0,0,.55); }
.address-result { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 11px 13px; text-align: left; background: transparent; cursor: pointer; }
.address-result:hover, .address-result:focus { background: rgba(115,232,236,.09); outline: 0; }
.address-result > i { color: var(--cyan); font-style: normal; }
.address-result span { display: grid; min-width: 0; }
.address-result b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.address-result small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.form-error { padding: 10px 12px; margin: 4px 0 14px; border-left: 2px solid var(--red); background: rgba(255,102,95,.1); color: #ffc6c2; font-size: 11px; }
.primary-action { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 0; padding: 16px 18px; color: #101419; background: linear-gradient(105deg, #ffe18d, var(--amber)); cursor: pointer; font-size: 11px; font-weight: 950; letter-spacing: .15em; box-shadow: 0 10px 35px rgba(255,197,95,.16); }
.primary-action:hover { filter: brightness(1.07); transform: translateY(-1px); }
.primary-action:disabled { filter: grayscale(1); opacity: .55; cursor: wait; }
.primary-action b { font-size: 20px; }
.auth-card footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: #637680; font-size: 8px; line-height: 1.4; }
.auth-card footer a { color: #8ea4ad; }

.briefing { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; background: rgba(1,5,8,.82); backdrop-filter: blur(15px); }
.briefing-card { width: min(520px, 100%); padding: 28px; border: 1px solid var(--line); background: linear-gradient(150deg, #111e27, #071018); box-shadow: var(--shadow); }
.briefing-index { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.briefing-art { position: relative; height: 180px; margin: 22px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, #20343d, #0b141a); }
.briefing-art::before, .briefing-art::after { content: ""; position: absolute; }
.briefing-art.art-home::before { width: 140px; height: 90px; left: calc(50% - 70px); bottom: 30px; border: 2px solid var(--amber); border-top: 0; box-shadow: 0 0 28px rgba(255,197,95,.2); }
.briefing-art.art-home::after { width: 98px; height: 98px; left: calc(50% - 49px); top: 24px; border-left: 2px solid var(--amber); border-top: 2px solid var(--amber); transform: rotate(45deg); }
.briefing-art.art-drive::before { inset: 28px 80px; border-left: 3px solid rgba(255,255,255,.55); border-right: 3px solid rgba(255,255,255,.55); transform: perspective(120px) rotateX(18deg); }
.briefing-art.art-drive::after { left: calc(50% - 35px); bottom: 24px; width: 70px; height: 42px; border-radius: 18px 18px 6px 6px; background: linear-gradient(#6e8792, #18242b); box-shadow: 0 0 22px rgba(115,232,236,.34); }
.briefing-art.art-gang::before { left: calc(50% - 70px); top: 24px; width: 140px; height: 140px; border: 2px solid var(--cyan); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.briefing-art.art-gang::after { content: "N"; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 950; color: var(--cyan); }
.briefing-card h2 { margin: 0 0 10px; font-size: 30px; }
.briefing-card p { min-height: 54px; margin: 0; color: #aebdc3; line-height: 1.6; font-size: 13px; }
.briefing-dots { display: flex; gap: 6px; margin: 24px 0; }
.briefing-dots i { width: 24px; height: 2px; background: #3b4b53; }
.briefing-dots i.active { background: var(--amber); }

.game-shell, #map { position: fixed; inset: 0; }
#map { background: #0b1820; }
.maplibregl-canvas { outline: 0; }
.maplibregl-ctrl-bottom-right { bottom: 84px; right: 12px; z-index: 15; }
.maplibregl-ctrl-attrib { color: #8998a0 !important; background: rgba(5,11,16,.68) !important; font-size: 9px !important; }
.maplibregl-ctrl-attrib a { color: #abc1ca !important; }
.atmosphere { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(6,15,21,.12), transparent 42%, rgba(2,6,9,.26)); box-shadow: inset 0 0 140px rgba(0,0,0,.35); }
.speed-lines { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .3s; background: repeating-conic-gradient(from 90deg at 50% 78%, transparent 0deg 2.8deg, rgba(220,245,255,.16) 3deg 3.1deg); mask-image: radial-gradient(ellipse at 50% 72%, transparent 0 25%, #000 72%, transparent 74%); }
.speed-lines.fast { opacity: .22; animation: roadRush .38s linear infinite; }
@keyframes roadRush { to { transform: scale(1.018); } }

.game-topbar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; pointer-events: none; background: linear-gradient(180deg, rgba(3,9,13,.88), rgba(3,9,13,.28) 70%, transparent); }
.game-brand .brand-n { width: 35px; height: 35px; }
.game-brand strong { font-size: 14px; }
.game-brand small b { color: var(--green); }
.top-location { display: grid; justify-items: center; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
.top-location span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .25em; }
.top-location b { margin-top: 3px; font-size: 13px; letter-spacing: .1em; }
.top-status { justify-self: end; display: flex; gap: 17px; align-items: center; color: #afbdc3; font-size: 9px; letter-spacing: .12em; }
.online-count { display: flex; align-items: center; gap: 6px; }
.online-count b { color: var(--white); }

.mission-hud { position: absolute; z-index: 20; left: 24px; top: 92px; width: min(330px, calc(100vw - 48px)); padding: 15px 16px 13px; border-left: 2px solid var(--amber); background: linear-gradient(110deg, rgba(5,13,18,.9), rgba(5,13,18,.58)); box-shadow: 0 10px 35px rgba(0,0,0,.22); pointer-events: none; backdrop-filter: blur(7px); }
.mission-kicker, .mission-reward { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.mission-kicker span { color: var(--amber); font-weight: 900; }
.mission-kicker b { color: var(--white); }
.mission-hud h2 { margin: 8px 0 5px; font-size: 18px; letter-spacing: -.02em; }
.mission-hud p { margin: 0; color: #aab9bf; font-size: 11px; line-height: 1.45; }
.mission-progress { height: 2px; margin: 12px 0 8px; background: rgba(255,255,255,.12); }
.mission-progress i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .4s; }
.mission-reward b { color: var(--green); }

.player-vitals { position: absolute; z-index: 20; left: 24px; top: 258px; display: grid; gap: 7px; width: 230px; pointer-events: none; }
.player-vitals > div { display: grid; grid-template-columns: 42px 1fr 25px; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.player-vitals i { height: 3px; background: rgba(255,255,255,.12); }
.player-vitals i b { display: block; width: 100%; height: 100%; background: var(--green); transition: width .2s; }
.player-vitals > div:nth-child(2) i b { background: var(--cyan); }
.player-vitals em { color: var(--white); font-style: normal; text-align: right; }

.game-actions { position: absolute; z-index: 30; top: 91px; right: 20px; display: grid; gap: 7px; pointer-events: auto; }
.game-actions button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(200,222,231,.15); background: rgba(5,13,18,.72); backdrop-filter: blur(8px); cursor: pointer; position: relative; }
.game-actions button:hover { border-color: rgba(115,232,236,.5); background: rgba(14,31,40,.85); }
.game-actions i { font-style: normal; font-size: 17px; color: #d5e2e6; }
.game-actions span { position: absolute; right: 62px; padding: 6px 8px; opacity: 0; transform: translateX(4px); pointer-events: none; background: #09131a; color: #dce8eb; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; transition: .18s; }
.game-actions button:hover span { opacity: 1; transform: none; }
.game-actions kbd { position: absolute; right: 3px; bottom: 2px; color: #687a84; font-size: 7px; background: transparent; }

.objective-marker { width: 42px; height: 80px; display: grid; justify-items: center; pointer-events: none; filter: drop-shadow(0 3px 10px rgba(0,0,0,.65)); }
.objective-marker i { width: 32px; height: 32px; border: 2px solid var(--amber); border-radius: 50%; position: relative; animation: targetPulse 1.5s ease-in-out infinite; }
.objective-marker i::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 1px; height: 20px; background: linear-gradient(var(--amber), transparent); }
.objective-marker span, .objective-marker b { white-space: nowrap; padding: 2px 5px; background: rgba(3,8,12,.78); font-size: 7px; letter-spacing: .1em; }
.objective-marker span { margin-top: 4px; color: var(--amber); }
.objective-marker b { color: var(--white); }
@keyframes targetPulse { 50% { transform: scale(1.18); box-shadow: 0 0 22px rgba(255,197,95,.58); } }
.crosshair { position: absolute; z-index: 18; left: 50%; top: 48%; width: 18px; height: 18px; opacity: 0; transform: translate(-50%,-50%); pointer-events: none; transition: opacity .16s; }
.crosshair.active { opacity: .8; }
.crosshair i, .crosshair b { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.crosshair b { inset: 7px; background: var(--red); border: 0; }

.chat { position: absolute; z-index: 30; left: 24px; bottom: 104px; width: min(360px, calc(100vw - 48px)); pointer-events: auto; }
.chat-log { max-height: 110px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; margin-bottom: 6px; text-shadow: 0 2px 5px #000; }
.chat-line { font-size: 10px; color: #c8d4d8; animation: chatIn .18s ease; }
.chat-line b { color: var(--cyan); margin-right: 5px; }
.chat-line.system { color: var(--amber); font-style: italic; }
@keyframes chatIn { from { opacity: 0; transform: translateY(4px); } }
.chat form { display: flex; height: 32px; opacity: .28; transition: opacity .2s; }
.chat form:focus-within { opacity: 1; }
.chat form > span { display: grid; place-items: center; padding: 0 9px; color: var(--cyan); background: rgba(5,13,18,.9); font-size: 8px; font-weight: 900; }
.chat input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 8px; color: var(--white); background: rgba(5,13,18,.86); font-size: 10px; }
.chat button { width: 32px; border: 0; background: rgba(115,232,236,.22); cursor: pointer; }

.wanted { position: absolute; z-index: 20; top: 72px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; color: rgba(255,255,255,.22); font-size: 15px; text-shadow: 0 0 12px #000; pointer-events: none; }
.wanted span.active { color: var(--amber); text-shadow: 0 0 13px rgba(255,197,95,.8); }

.driving-hud { position: absolute; z-index: 20; left: 50%; bottom: 18px; width: min(720px, calc(100vw - 36px)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 280px 1fr; align-items: end; pointer-events: none; }
.weapon-card, .money-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; justify-self: start; background: linear-gradient(90deg, rgba(4,10,14,.82), transparent); }
.weapon-card > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); color: var(--amber); font-size: 18px; }
.weapon-card div { display: grid; }
.weapon-card small, .money-card small, .gear small { color: var(--muted); font-size: 7px; letter-spacing: .14em; }
.weapon-card b { font-size: 11px; text-transform: uppercase; }
.weapon-card kbd { color: #778891; font-size: 8px; background: transparent; }
.money-card { justify-self: end; display: grid; justify-items: end; text-align: right; background: linear-gradient(270deg, rgba(4,10,14,.82), transparent); }
.money-card b { font-size: 16px; color: var(--green); }
.money-card span { color: var(--cyan); font-size: 8px; letter-spacing: .12em; }
.speedometer { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 4px; gap: 5px 12px; align-items: end; padding: 9px 18px 12px; background: linear-gradient(120deg, rgba(4,10,14,.88), rgba(11,24,31,.82)); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.speed-number { display: flex; align-items: baseline; gap: 7px; justify-self: end; }
.speed-number b { font-size: 42px; line-height: .8; font-weight: 300; font-variant-numeric: tabular-nums; }
.speed-number span { color: var(--muted); font-size: 7px; letter-spacing: .14em; }
.gear { display: grid; }
.gear b { color: var(--amber); font-size: 20px; }
.speed-gauge { grid-column: 1 / -1; position: relative; height: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.speed-gauge i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber), var(--red)); transition: width .12s linear; }
.controls-hint { position: absolute; z-index: 20; right: 22px; bottom: 98px; display: flex; gap: 13px; color: rgba(215,229,234,.58); font-size: 8px; letter-spacing: .07em; pointer-events: none; }
kbd { border: 1px solid rgba(255,255,255,.18); border-radius: 2px; padding: 1px 4px; color: #d5e0e4; background: rgba(2,7,10,.5); font-family: inherit; }
.touch-controls { display: none; }

.toasts { position: absolute; z-index: 80; top: 78px; left: 50%; width: min(430px, calc(100vw - 36px)); transform: translateX(-50%); display: grid; gap: 7px; pointer-events: none; }
.toast { padding: 11px 14px; border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--cyan); background: rgba(5,13,18,.92); box-shadow: 0 12px 35px rgba(0,0,0,.35); animation: toastIn .28s ease; font-size: 11px; }
.toast strong { color: var(--cyan); margin-right: 7px; }
.toast.warn { border-left-color: var(--amber); }
.toast.warn strong { color: var(--amber); }
.toast.danger { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

.drawer-scrim { position: absolute; z-index: 88; inset: 0; background: rgba(1,5,8,.46); backdrop-filter: blur(2px); pointer-events: auto; }
.drawer { position: absolute; z-index: 90; top: 0; right: 0; bottom: 0; width: min(480px, 94vw); border-left: 1px solid rgba(192,218,229,.17); background: linear-gradient(145deg, rgba(12,25,33,.98), rgba(5,12,17,.98)); box-shadow: -22px 0 70px rgba(0,0,0,.45); pointer-events: auto; animation: drawerIn .25s ease; }
@keyframes drawerIn { from { transform: translateX(100%); } }
.drawer > header { height: 96px; display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer > header span { color: var(--cyan); font-size: 8px; letter-spacing: .18em; }
.drawer > header h2 { margin: 4px 0 0; font-size: 26px; }
.drawer > header button { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
.drawer-content { height: calc(100% - 96px); overflow: auto; padding: 20px 24px 40px; }
.panel-intro { margin: 0 0 18px; color: #9caeb6; font-size: 12px; line-height: 1.55; }
.list-card { position: relative; margin-bottom: 10px; padding: 16px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); }
.list-card.locked { opacity: .46; }
.list-card.active { border-color: rgba(255,197,95,.48); background: rgba(255,197,95,.06); }
.list-card .tag { color: var(--cyan); font-size: 7px; font-weight: 900; letter-spacing: .17em; }
.list-card h3 { margin: 7px 0 5px; font-size: 16px; }
.list-card p { margin: 0; color: #8fa2aa; font-size: 11px; line-height: 1.48; }
.list-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.list-card footer span { color: var(--green); font-size: 9px; }
.small-action { border: 1px solid rgba(115,232,236,.38); padding: 7px 10px; background: rgba(115,232,236,.08); color: #caeff1; cursor: pointer; text-transform: uppercase; font-size: 8px; letter-spacing: .1em; }
.small-action:hover { background: rgba(115,232,236,.16); }
.small-action.danger { border-color: rgba(255,102,95,.38); color: #ffc0bc; background: rgba(255,102,95,.08); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 18px; }
.stat-box { padding: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stat-box small { display: block; color: var(--muted); font-size: 7px; letter-spacing: .13em; }
.stat-box b { display: block; margin-top: 5px; font-size: 17px; }
.panel-form { display: grid; gap: 12px; margin-top: 18px; }
.panel-form label { display: grid; gap: 6px; color: #a9bac1; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; position: relative; }
.panel-form input { height: 43px; border: 1px solid var(--line); outline: 0; padding: 0 11px; color: var(--white); background: #071119; }
.panel-form input:focus { border-color: rgba(115,232,236,.55); }
.color-symbol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gang-banner { display: flex; gap: 14px; align-items: center; padding: 17px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--gang-color, var(--cyan)) 50%, transparent); background: color-mix(in srgb, var(--gang-color, var(--cyan)) 9%, transparent); }
.gang-symbol { display: grid; place-items: center; width: 54px; height: 54px; color: var(--gang-color, var(--cyan)); border: 2px solid currentColor; clip-path: polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%); font-size: 19px; font-weight: 950; }
.gang-banner div { display: grid; gap: 3px; }
.gang-banner small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.gang-banner b { font-size: 19px; }
.gang-banner code { color: var(--gang-color, var(--cyan)); font-size: 12px; letter-spacing: .12em; }
.poi-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 3px; border-bottom: 1px solid rgba(255,255,255,.07); }
.poi-row > i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(115,232,236,.2); color: var(--cyan); font-style: normal; }
.poi-row div { min-width: 0; display: grid; gap: 3px; }
.poi-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.poi-row small, .poi-row > span { color: var(--muted); font-size: 8px; }

.player-marker, .traffic-marker { position: relative; pointer-events: none; }
.player-marker.remote { width: 34px; height: 54px; }
.car-model { position: absolute; left: 50%; bottom: 0; width: 54px; height: 82px; transform: translateX(-50%); filter: drop-shadow(0 14px 8px rgba(0,0,0,.62)); }
.local-player .car-model { width: 68px; height: 104px; }
.car-model::before { content: ""; position: absolute; inset: 5px 7px 4px; border-radius: 18px 18px 10px 10px / 25px 25px 10px 10px; background: linear-gradient(90deg, #111a21 0 9%, #3e505b 18%, #17252d 50%, #52636b 82%, #10181e 92%), var(--car-color, #344650); border: 1px solid rgba(220,240,246,.34); box-shadow: inset 0 -10px 16px rgba(0,0,0,.7), inset 0 6px 11px rgba(174,213,226,.2); }
.car-model::after { content: ""; position: absolute; left: 15px; right: 15px; top: 19px; height: 32px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, rgba(104,145,163,.65), rgba(9,18,25,.93)); border: 1px solid rgba(200,225,233,.18); box-shadow: 0 35px 0 -12px #ff514e, 0 35px 8px -9px rgba(255,81,78,.8); }
.car-model i, .car-model b { position: absolute; z-index: 2; width: 6px; height: 19px; bottom: 14px; border-radius: 3px; background: #05080a; }
.car-model i { left: 2px; }
.car-model b { right: 2px; }
.player-tag { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); display: grid; justify-items: center; white-space: nowrap; text-shadow: 0 2px 6px #000; }
.player-tag b { padding: 2px 5px; color: var(--player-color, var(--cyan)); background: rgba(3,8,12,.72); font-size: 8px; letter-spacing: .06em; }
.player-tag small { color: #d3dfe2; font-size: 7px; }
.traffic-marker { width: 14px; height: 28px; border-radius: 5px 5px 3px 3px; border: 1px solid rgba(255,255,255,.28); background: var(--traffic-color, #d8dde3); box-shadow: 0 5px 5px rgba(0,0,0,.4), inset 0 7px 0 rgba(8,18,25,.72); }
.landmark-marker { display: grid; justify-items: center; pointer-events: none; filter: drop-shadow(0 3px 10px #000); }
.landmark-marker i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(5,13,18,.8); color: var(--cyan); font-style: normal; font-size: 9px; }
.landmark-marker span { margin-top: 3px; padding: 2px 4px; white-space: nowrap; color: #dce5e8; background: rgba(4,10,14,.7); font-size: 7px; letter-spacing: .06em; }
.npc-marker { width: 8px; height: 8px; border-radius: 50%; background: #e6cba4; box-shadow: 0 0 0 3px rgba(7,15,20,.6); }
.npc-marker span { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 170px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(5,12,17,.9); color: #d7e0e3; font-size: 8px; opacity: 0; transition: opacity .2s; }
.npc-marker.talking span { opacity: 1; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; justify-items: center; overflow: auto; padding: 24px; background-position: 62% center; }
  .auth-copy { display: none; }
  .auth-card { max-width: 520px; }
  .game-topbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .top-location { display: none; }
  .mission-hud { left: 12px; top: 75px; width: min(290px, calc(100vw - 82px)); }
  .player-vitals { left: 12px; top: 232px; }
  .game-actions { top: 75px; right: 10px; }
  .driving-hud { grid-template-columns: 1fr 190px 1fr; }
  .speed-number b { font-size: 34px; }
  .controls-hint { display: none; }
  .chat { left: 12px; bottom: 92px; width: 260px; }
}

@media (max-width: 620px) {
  .auth { padding: 0; align-items: stretch; }
  .auth-card { max-height: 100vh; min-height: 100vh; padding: 20px; border: 0; background: linear-gradient(180deg, rgba(6,15,21,.82), #071018 48%), url("/media/neonhafen-hamburg-hero-v1.png") 62% top / auto 48% no-repeat; }
  .auth-card form { margin-top: 24vh; }
  .auth-card > header, .auth-tabs { background: rgba(5,12,17,.45); }
  .game-brand small, .top-status > span:not(.online-count), .player-vitals, .chat, .weapon-card, .money-card { display: none; }
  .game-topbar { height: 56px; }
  .game-actions button { width: 44px; height: 44px; }
  .mission-hud { top: 62px; width: calc(100vw - 72px); }
  .driving-hud { grid-template-columns: 1fr; width: 190px; }
  .speedometer { grid-column: 1; }
  .wanted { top: 58px; }
  .touch-controls { position: absolute; z-index: 35; inset: auto 12px 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; pointer-events: none; user-select: none; touch-action: none; }
  .touch-pad { display: flex; gap: 7px; pointer-events: auto; }
  .touch-drive { justify-self: end; flex-direction: column; gap: 7px; }
  .touch-steer { justify-self: start; }
  .touch-controls button { width: 54px; height: 54px; border: 1px solid rgba(220,240,246,.28); border-radius: 4px; color: #e5f1f3; background: rgba(5,13,18,.68); box-shadow: 0 5px 18px rgba(0,0,0,.3); font: 900 18px/1 sans-serif; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
  .touch-controls button.pressed, .touch-controls button:active { color: #071018; background: var(--amber); border-color: var(--amber); }
  .touch-brake { justify-self: center; align-self: end; width: 62px !important; height: 38px !important; color: var(--amber) !important; font-size: 8px !important; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
