:root {
  --purple: #5b24b9; --violet: #7a3cf6; --pink: #fea9c6; --midnight: #000019; --paper: #f7f5fb;
  --glass: rgba(0, 0, 25, .78); --line: rgba(254, 169, 198, .28);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--midnight); color: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
kbd { font-family: var(--mono); font-size: .82em; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; margin-right: 3px; }
a { color: var(--pink); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; display: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
body.playing #hud { display: block; }
.panel { position: absolute; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; backdrop-filter: blur(6px); }
#mission { top: 14px; left: 14px; max-width: min(360px, 62vw); opacity: 0; transform: translateY(-8px); transition: .25s; }
#mission.show { opacity: 1; transform: none; }
.m-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
#m-title { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
#m-timer { font-family: var(--mono); font-weight: 700; font-size: 20px; display: none; }
#m-timer.show { display: block; } #m-timer.low { color: #ff6b7d; animation: pulse .6s infinite; }
#m-obj { font-size: 17px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
#m-hint { font-size: 12.5px; opacity: .7; margin-top: 2px; }
#m-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } #m-meta:empty { display: none; }
.chip { font-size: 12px; background: rgba(254, 169, 198, .16); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.chip.ok { background: rgba(61, 220, 132, .22); border-color: rgba(61, 220, 132, .6); }
#stats { top: 14px; right: 14px; text-align: right; min-width: 132px; }
#stats .row { display: flex; gap: 12px; justify-content: flex-end; align-items: baseline; }
#stats .small { font-size: 12px; opacity: .8; margin-top: 2px; }
#money { font-family: var(--mono); font-weight: 700; font-size: 20px; transition: color .6s; }
#money.flash-up { animation: up .9s; } #money.flash-down { animation: down .9s; }
#mapwrap { position: absolute; left: 14px; bottom: 14px; }
#minimap { width: 170px; height: 170px; border-radius: 16px; border: 2px solid var(--line); display: block; background: #0c0b22; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
#where { margin-top: 6px; font-size: 13px; text-shadow: 0 1px 4px #000; display: flex; flex-direction: column; min-height: 34px; }
#where b { font-weight: 600; } #where span { opacity: .7; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
#speed { position: absolute; right: 14px; bottom: 14px; text-align: right; opacity: 0; transition: opacity .3s; text-shadow: 0 2px 8px #000; }
#speed.show { opacity: 1; }
#speed b { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: 1; } #speed span { font-size: 12px; opacity: .7; margin-left: 4px; }
.bar { width: 120px; height: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; margin: 6px 0 0 auto; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pink); width: 100%; transition: width .2s; } .bar i.low { background: #ff6b7d; }
#district-toast { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); font-size: clamp(26px, 5vw, 54px); font-weight: 200; letter-spacing: .3em; text-transform: uppercase; opacity: 0; white-space: nowrap; text-shadow: 0 2px 18px rgba(0, 0, 25, .9); }
#district-toast.show { animation: district 3.2s ease-out; }
#banner { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%) scale(.9); text-align: center; opacity: 0; transition: .25s; width: max-content; max-width: 92vw; }
#banner.show { opacity: 1; transform: translate(-50%, -50%); }
#banner b { display: block; font-size: clamp(28px, 6vw, 60px); font-weight: 800; letter-spacing: .04em; text-shadow: 0 3px 0 var(--purple), 0 6px 24px rgba(0, 0, 25, .9); }
#banner span { display: inline-block; margin-top: 6px; font-size: 16px; background: var(--glass); padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); white-space: normal; }
#banner.good b { color: var(--pink); } #banner.bad b { color: #ff6b7d; text-shadow: 0 3px 0 #5a0f1f, 0 6px 24px rgba(0, 0, 25, .9); } #banner.start b { color: #fff; }
#toast, #hint, #prompt { position: absolute; left: 50%; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; font-size: 14px; opacity: 0; transition: opacity .2s; white-space: nowrap; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; }
#toast { top: 76px; } #hint { top: 56%; font-weight: 700; color: var(--pink); } #prompt { bottom: 31%; }
#toast.show, #hint.show, #prompt.show { opacity: 1; }
#dialog, #offer { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); width: min(620px, calc(100vw - 420px)); min-width: min(94vw, 340px); background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; opacity: 0; transition: .25s; pointer-events: none; backdrop-filter: blur(6px); }
#dialog.show, #offer.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }
#dialog img, #offer img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--pink); flex: none; border: 2px solid var(--pink); }
#dialog.angus img, #offer img { object-fit: contain; background: #fff6fa; }
#dialog .who b { color: var(--pink); font-size: 14px; } #dialog .who span { font-size: 11.5px; opacity: .6; margin-left: 8px; }
#dialog p { margin: 3px 0 0; font-size: 16px; line-height: 1.35; }
#offer { border-color: var(--pink); box-shadow: 0 0 0 0 rgba(254, 169, 198, .6); } #offer.show { animation: ringglow 1.4s infinite; }
#dialog.show ~ #offer, #offer.show + #dialog.show { }
#offer div { flex: 1; display: flex; flex-direction: column; } #offer b { font-size: 17px; } #offer span { font-size: 13px; opacity: .75; } #offer em { font-style: normal; font-size: 13px; color: var(--pink); white-space: nowrap; }
#dialog.show + * { }
body.dialog-open #offer { bottom: 110px; }

/* ---------- Touch ---------- */
#touch { display: none; position: fixed; inset: 0; pointer-events: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
body.touch.playing #touch { display: block; }
#stick { position: absolute; left: 22px; bottom: 26px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 2px solid var(--line); pointer-events: auto; }
#knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: var(--pink); opacity: .85; }
#tbtns { position: absolute; right: 16px; bottom: 22px; display: grid; grid-template-columns: repeat(2, auto); gap: 10px; justify-items: end; align-items: end; pointer-events: auto; }
#tbtns .big { grid-column: 1 / 3; }
#ttop { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; gap: 8px; pointer-events: auto; }
.tb.pill { width: auto; height: 34px; border-radius: 99px; padding: 0 14px; font-size: 13px; }
.tb { font: 600 14px var(--sans); color: #fff; background: rgba(0, 0, 25, .6); border: 2px solid var(--line); border-radius: 50%; width: 66px; height: 66px; }
.tb.big { background: var(--purple); border-color: var(--pink); font-size: 22px; width: 78px; height: 78px; } .tb.small { width: 52px; height: 52px; font-size: 12px; }
.tb:active { background: var(--pink); color: var(--midnight); }
body.touch #mapwrap { left: auto; right: 12px; bottom: auto; top: 74px; } body.touch #minimap { width: 104px; height: 104px; border-radius: 12px; } body.touch #where { display: none; }
body.touch #speed { bottom: auto; top: 78px; right: 128px; } body.touch #speed b { font-size: 24px; } body.touch #speed .bar { width: 64px; }
body.touch #stats { top: 10px; right: 12px; padding: 6px 10px; } body.touch #stats .small { display: none; } body.touch #money { font-size: 16px; }
body.touch #mission { top: 10px; left: 12px; max-width: min(300px, 40vw); padding: 7px 10px; } body.touch #m-obj { font-size: 14px; } body.touch #m-hint { display: none; }
body.touch #dialog, body.touch #offer { bottom: 12px; width: calc(100vw - 370px); min-width: 250px; padding: 8px 12px; gap: 10px; border-radius: 14px; }
body.touch #dialog img, body.touch #offer img { width: 40px; height: 40px; } body.touch #dialog p { font-size: 13.5px; line-height: 1.3; } body.touch #dialog .who span { display: none; }
body.touch #offer b { font-size: 14px; } body.touch #offer span { font-size: 11.5px; } body.touch #offer em { font-size: 12px; } body.touch #offer em kbd { display: none; }
body.touch #prompt { bottom: 42%; } body.touch #banner { top: 38%; } body.touch #banner b { font-size: clamp(24px, 6vw, 44px); } body.touch #toast { top: 52px; }
@media (orientation: portrait) { body.touch #dialog, body.touch #offer { bottom: 190px; width: 94vw; } }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 0%, rgba(91, 36, 185, .55), rgba(0, 0, 25, .96) 70%); padding: 18px; overflow: auto; touch-action: pan-y; }
.overlay.show { display: flex; }
#pause, #credits { background: rgba(0, 0, 25, .82); backdrop-filter: blur(5px); }
.card { width: min(680px, 100%); text-align: center; margin: auto; }
.card.wide { text-align: left; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); }
h1 { font-size: clamp(44px, 11vw, 96px); line-height: .92; margin: 10px 0 14px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 5px 0 var(--purple); }
h1 span { color: var(--pink); display: block; font-weight: 200; letter-spacing: .28em; margin-left: .28em; text-shadow: none; font-size: .62em; }
h2 { font-size: clamp(26px, 5vw, 40px); margin: 6px 0 4px; }
.lead { font-size: 17px; line-height: 1.5; opacity: .9; max-width: 34em; margin: 0 auto 18px; }
.sub { opacity: .7; font-size: 14px; margin-bottom: 12px; }
#team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 0 0 18px; }
.tm { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; width: 54px; }
.tm img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); background: var(--pink); } .tm:first-child img { object-fit: contain; background: #fff6fa; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; text-align: left; font-size: 13.5px; background: rgba(0, 0, 25, .45); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 0 auto 18px; max-width: 560px; }
.keys span { opacity: .75; margin-right: 8px; }
button, .btn { font: 600 15px var(--sans); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: rgba(255, 255, 255, .16); }
button.primary, .btn.primary { background: var(--pink); color: var(--midnight); border-color: var(--pink); font-size: 18px; padding: 13px 34px; }
button.primary:hover, .btn.primary:hover { background: #fff; } button:disabled { opacity: .5; cursor: default; } button.ghost { opacity: .6; }
#load-msg { font-size: 13px; opacity: .7; margin-top: 8px; min-height: 18px; } .fine { font-size: 11.5px; opacity: .6; margin-top: 10px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; } #credits .btnrow { justify-content: center; }
.card.wide .primary { font-size: 15px; padding: 10px 22px; }
#mission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 52vh; overflow: auto; }
.mrow { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 12px; padding: 8px 10px; width: 100%; }
.mrow i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 13px; flex: none; }
.mrow.done i { background: var(--pink); color: var(--midnight); } .mrow span { flex: 1; display: flex; flex-direction: column; min-width: 0; } .mrow small { opacity: .65; font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow em { font-style: normal; font-family: var(--mono); font-size: 12px; opacity: .7; } .mrow.next { border-color: var(--pink); } .mrow.next i { background: var(--purple); }
#bigmap { padding: 0; background: #0c0b22; cursor: pointer; } #bigmap canvas { width: 100vw; height: 100vh; height: 100dvh; }
.maphint { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; background: var(--glass); padding: 5px 14px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.dance { width: min(220px, 45vw); animation: dance 1s ease-in-out infinite alternate; }

@keyframes pulse { 50% { opacity: .45; } }
@keyframes up { 0% { color: #8dffb0; transform: scale(1.25); } 100% { color: #fff; } }
@keyframes down { 0% { color: #ff6b7d; transform: scale(1.25); } 100% { color: #fff; } }
@keyframes district { 0% { opacity: 0; letter-spacing: .6em; } 15% { opacity: .9; } 70% { opacity: .9; } 100% { opacity: 0; letter-spacing: .3em; } }
@keyframes ringglow { 0% { box-shadow: 0 0 0 0 rgba(254, 169, 198, .55); } 100% { box-shadow: 0 0 0 16px rgba(254, 169, 198, 0); } }
@keyframes dance { from { transform: rotate(-6deg) translateY(0); } to { transform: rotate(6deg) translateY(-10px); } }
@media (max-width: 720px) {
  #dialog, #offer { width: 94vw; } .keys, #mission-list { grid-template-columns: 1fr; }
  #minimap { width: 120px; height: 120px; } #m-obj { font-size: 15px; } #dialog p { font-size: 14.5px; } #dialog img, #offer img { width: 48px; height: 48px; }
}
@media (max-height: 520px) { h1 { font-size: 44px; margin: 4px 0 8px; } .lead { font-size: 14px; margin-bottom: 8px; } .keys { display: none; } #team-row { margin-bottom: 8px; } .tm img { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { #offer.show, .dance, #m-timer.low { animation: none; } }

/* Fahrzeugname beim Einsteigen */
#vehicle { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%) skewX(-8deg); font: italic 800 30px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 3px 3px 0 #5b24b9, 0 0 18px rgba(0,0,25,.7); opacity: 0; pointer-events: none; white-space: nowrap; text-transform: uppercase; }
#vehicle.show { animation: vehIn 2.6s ease-out forwards; }
@keyframes vehIn { 0% { opacity: 0; transform: translateX(-50%) skewX(-8deg) scale(1.25); } 12% { opacity: 1; transform: translateX(-50%) skewX(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
body.touch #vehicle { bottom: 46%; font-size: 22px; }

/* Fortschritt im Auftragsfenster, gesperrte Aufträge */
#m-prog { display: none; height: 8px; margin-top: 8px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
#m-prog.show { display: block; }
#m-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fea9c6, #fe5fa0); }
.mrow.locked { opacity: .55; }
.mrow i { border: 2px solid transparent; }

/* ---------- Arcade-Look: kantige Tafeln mit hartem Schatten, schräge Schlagzeilen ---------- */
.panel, #dialog, #offer { border-radius: 8px; border: 2px solid rgba(254, 169, 198, .7); box-shadow: 5px 5px 0 rgba(91, 36, 185, .9); background: rgba(6, 4, 30, .9); backdrop-filter: none; }
#offer.show { animation: none; border-color: var(--pink); box-shadow: 5px 5px 0 var(--pink); }
#offer img { object-fit: cover; background: var(--pink); } #offer.angus img { object-fit: contain; background: #fff6fa; }
#toast, #hint, #prompt { border-radius: 6px; border: 2px solid rgba(254, 169, 198, .6); background: rgba(6, 4, 30, .9); }
#minimap { border-radius: 8px; border: 2px solid rgba(254, 169, 198, .7); box-shadow: 5px 5px 0 rgba(91, 36, 185, .9); }
#banner b { font-style: italic; text-transform: uppercase; font-size: clamp(32px, 7vw, 76px); letter-spacing: .01em; transform: skewX(-5deg); -webkit-text-stroke: 2px #000019; paint-order: stroke fill; text-shadow: 5px 5px 0 var(--purple), 0 0 28px rgba(0, 0, 25, .8); }
#banner.bad b { text-shadow: 5px 5px 0 #5a0f1f, 0 0 28px rgba(0, 0, 25, .8); }
#banner span { border-radius: 6px; border: 2px solid rgba(254, 169, 198, .6); font-weight: 600; }
#district-toast { font-weight: 800; font-style: italic; letter-spacing: .14em; -webkit-text-stroke: 1.5px #000019; paint-order: stroke fill; text-shadow: 4px 4px 0 rgba(91, 36, 185, .9); }
#money, #speed b, #m-timer { font-style: italic; }
#speed b { font-size: 46px; -webkit-text-stroke: 1.5px #000019; paint-order: stroke fill; text-shadow: 4px 4px 0 var(--purple); }
#m-obj { font-weight: 700; }
.chip { border-radius: 4px; }
body.touch #district-toast { font-size: clamp(18px, 4.2vw, 30px); top: 24%; letter-spacing: .08em; }

/* ---------- Radio, Stimmung, Läden, Fahrplan, Innenraum ---------- */
#radio { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); display: flex; gap: 10px; align-items: baseline; background: rgba(6, 4, 30, .9); border: 2px solid rgba(254, 169, 198, .7); border-radius: 8px; box-shadow: 5px 5px 0 rgba(91, 36, 185, .9); padding: 6px 14px; opacity: 0; transition: .25s; white-space: nowrap; max-width: 60vw; overflow: hidden; }
#radio.show { opacity: 1; transform: translate(-50%, 0); }
#radio b { color: var(--pink); font-style: italic; } #radio span { font-size: 13px; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
#happy { margin-left: 10px; }
#buffs { display: flex; gap: 5px; justify-content: flex-end; margin-top: 5px; } #buffs:empty { display: none; }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 56vh; overflow: auto; margin-top: 10px; }
.pick .mrow i { font-size: 15px; } .pick .mrow.locked em { color: #ff9aa8; }
.pick .mrow i.ty-U { background: #1f4fd6; color: #fff; } .pick .mrow i.ty-S { background: #1f9a4c; color: #fff; } .pick .mrow i.ty-B { background: #c8273a; color: #fff; font-size: 10px; }
body.indoor #mapwrap, body.indoor #speed, body.riding #mapwrap, body.riding #speed, body.riding #mission, body.riding #stats, body.riding #offer, body.riding #touch { display: none; }
body.touch #radio { top: 46px; font-size: 12px; padding: 4px 10px; }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } }

/* ---------- Handy ---------- */
#phone-btn { position: absolute; right: 14px; bottom: 96px; width: 46px; height: 46px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; pointer-events: auto; background: rgba(6, 4, 30, .9); border: 2px solid rgba(254, 169, 198, .7); box-shadow: 4px 4px 0 rgba(91, 36, 185, .9); color: #fff; }
#phone-btn:hover { background: var(--purple); }
body.touch #phone-btn, body.riding #phone-btn { display: none; }
#phone { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: none; }
#phone.show { display: block; animation: phIn .18s ease-out; }
@keyframes phIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ph-frame { width: 292px; height: min(560px, calc(100dvh - 36px)); background: #0b0a1c; border: 3px solid #2a2850; border-radius: 34px; box-shadow: 8px 8px 0 rgba(91, 36, 185, .9), 0 18px 50px rgba(0, 0, 0, .6); padding: 10px 10px 8px; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; font: 600 11px var(--mono); padding: 2px 12px 8px; opacity: .85; }
#ph-screen { flex: 1; min-height: 0; overflow: auto; border-radius: 22px; background: linear-gradient(160deg, #2a1466, #0e0b2c 70%); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-bar { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 8px; }
#ph-home { width: 92px; height: 8px; border-radius: 6px; border: 0; background: #4a4780; cursor: pointer; } #ph-home:hover { background: var(--pink); }
#ph-close { border: 0; background: none; color: #8a87b8; font-size: 14px; cursor: pointer; }
.ph-widget { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; } .ph-widget b { font-size: 20px; }
.ph-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; margin-top: 6px; }
.ph-app { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 600 11px var(--sans); cursor: pointer; padding: 2px; }
.ph-app i { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-style: normal; font-size: 26px; color: #000019; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); } .ph-app:hover i { transform: translateY(-2px); }
.ph-head { display: flex; align-items: center; gap: 8px; } .ph-head b { font-size: 18px; }
.ph-back { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.ph-row, .ph-now { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: rgba(255, 255, 255, .07); border: 1.5px solid transparent; border-radius: 14px; padding: 7px 9px; color: #fff; font-family: var(--sans); cursor: pointer; }
.ph-row:hover, .ph-now:hover { border-color: var(--pink); } .ph-row.on { border-color: var(--pink); background: rgba(254, 169, 198, .16); }
.ph-row img, .ph-now img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; background: var(--pink); } .ph-row img.angus, .ph-call img.angus { object-fit: contain; background: #fff6fa; }
.ph-row span, .ph-now span { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ph-row b, .ph-now b { font-size: 13.5px; } .ph-row small, .ph-now small { font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row em { font-style: normal; font-size: 10px; font-weight: 700; background: var(--pink); color: #000019; border-radius: 6px; padding: 2px 6px; }
.ph-now { margin-top: auto; }
.ph-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .ph-ctl button, .ph-opt { border: 0; border-radius: 10px; padding: 8px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 12px var(--sans); cursor: pointer; } .ph-ctl button:hover, .ph-opt:hover { background: var(--purple); }
.ph-note { font-size: 11.5px; opacity: .7; margin: 4px 2px; line-height: 1.4; }
.ph-call { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 6px; text-align: center; } .ph-call img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pink); background: var(--pink); } .ph-call b { font-size: 17px; } .ph-call small { font-size: 11.5px; opacity: .75; }
.ph-say { background: #f7f5fb; color: #000019; border-radius: 14px 14px 14px 4px; padding: 9px 11px; margin: 4px 0; font-size: 13.5px; line-height: 1.35; }
.ph-job { background: rgba(254, 169, 198, .16); border: 1.5px solid var(--pink); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; } .ph-job small { color: var(--pink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; } .ph-job span { font-size: 11.5px; opacity: .8; }
.ph-accept, .ph-hang { border: 0; border-radius: 99px; padding: 10px; font: 700 13px var(--sans); cursor: pointer; } .ph-accept { background: #3ddc84; color: #000019; } .ph-hang { background: #ff4b5c; color: #fff; margin-top: auto; }
body.touch #phone { right: 50%; transform: translateX(50%); bottom: 10px; } body.touch #phone.show { animation: none; }
/* Radioanzeige mit Logo */
#radio { align-items: center; } #radio img { width: 34px; height: 34px; border-radius: 8px; } #radio div { display: flex; flex-direction: column; min-width: 0; }
/* Karte: Schnellreise */
#bigmap { cursor: crosshair; }
#travel-quick { position: fixed; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: min(520px, 70vw); }
#travel-quick button, #map-close { border: 2px solid rgba(254, 169, 198, .7); background: rgba(6, 4, 30, .9); color: #fff; border-radius: 8px; padding: 6px 12px; font: 600 13px var(--sans); cursor: pointer; } #travel-quick button:hover, #map-close:hover { background: var(--purple); }
#map-close { position: fixed; top: 12px; right: 12px; }
#travel { position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%); display: none; align-items: center; gap: 10px; background: rgba(6, 4, 30, .95); border: 2px solid var(--pink); border-radius: 10px; box-shadow: 5px 5px 0 rgba(91, 36, 185, .9); padding: 8px 12px; max-width: 94vw; }
#travel.show { display: flex; } #travel span { font-weight: 600; } #travel button { border-radius: 8px; padding: 7px 14px; font: 700 13px var(--sans); cursor: pointer; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); color: #fff; } #travel button.primary { background: var(--pink); color: #000019; border-color: var(--pink); }
#keys .keys { grid-template-columns: 1fr 1fr; } @media (max-width: 640px) { #keys .keys { grid-template-columns: 1fr; } }

/* Mehrspieler und Immobilien */
#mp-row { display: none; align-items: center; gap: 10px; justify-content: center; font-size: 13px; opacity: .9; margin: 4px 0 12px; flex-wrap: wrap; } #mp-row.show { display: flex; }
#mp-row input { font: 600 14px var(--sans); padding: 7px 10px; border-radius: 9px; border: 2px solid var(--pink); background: rgba(255, 255, 255, .08); color: #fff; width: 150px; } #mp-state { font-size: 12px; opacity: .7; }
.ph-sub { font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 6px 2px 0; }
.ph-house { display: flex; align-items: center; gap: 7px; width: 100%; background: rgba(255, 255, 255, .07); border: 1.5px solid transparent; border-radius: 13px; padding: 7px 8px; color: #fff; font-family: var(--sans); cursor: pointer; }
.ph-house.on { border-color: var(--pink); background: rgba(254, 169, 198, .14); } .ph-house.own { cursor: default; }
.ph-house span { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ph-house b { font-size: 12.5px; line-height: 1.25; } .ph-house small { font-size: 10.5px; opacity: .75; line-height: 1.35; }
.ph-house em { font-style: normal; font-size: 10px; font-weight: 700; background: var(--pink); color: #000019; border-radius: 6px; padding: 3px 6px; flex: none; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-buy, .ph-mini { flex: none; border: 0; border-radius: 9px; padding: 7px 8px; font: 700 11.5px var(--sans); cursor: pointer; } .ph-buy { background: var(--pink); color: #000019; } .ph-buy.no { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .6); }
.ph-mini { background: rgba(255, 255, 255, .14); color: #fff; } .ph-mini:hover { background: var(--purple); } .ph-buy:hover { filter: brightness(1.1); }
.ph-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid #000019; }
.ph-name { display: flex; align-items: center; gap: 8px; } .ph-name i { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid #fff; } .ph-name input { flex: 1; min-width: 0; font: 700 14px var(--sans); padding: 7px 9px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.ph-ctl.three { grid-template-columns: 1fr 1fr 1fr; }

/* Rucksack-Leiste, Ortsliste der Karte */
#bag { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 6; } #bag:empty { display: none; } body:not(.playing) #bag, body.indoor #bag.hide { display: none; }
#bag button { display: flex; align-items: center; gap: 4px; background: rgba(6, 4, 30, .88); border: 2px solid rgba(35, 213, 232, .75); border-radius: 10px; padding: 4px 8px 4px 5px; color: #fff; font-size: 19px; cursor: pointer; box-shadow: 3px 3px 0 rgba(91, 36, 185, .8); }
#bag button:hover { background: var(--purple); } #bag kbd { font: 700 10px var(--mono, monospace); background: rgba(255, 255, 255, .16); border-radius: 4px; padding: 1px 4px; } #bag small { font: 700 11px var(--sans); }
#poi-panel { position: fixed; top: 96px; left: 12px; bottom: 60px; width: min(230px, 42vw); display: flex; flex-direction: column; gap: 6px; cursor: default; }
#poi-q { font: 600 13px var(--sans); padding: 7px 10px; border-radius: 8px; border: 2px solid rgba(254, 169, 198, .7); background: rgba(6, 4, 30, .92); color: #fff; }
#poi-list { flex: 1; min-height: 0; overflow: auto; background: rgba(6, 4, 30, .82); border: 1px solid rgba(254, 169, 198, .35); border-radius: 10px; padding: 4px; }
#poi-list button { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; background: none; border: 0; color: #fff; font: 500 12.5px var(--sans); padding: 5px 6px; border-radius: 6px; cursor: pointer; } #poi-list button:hover { background: var(--purple); }
#poi-list i { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1.5px solid rgba(0, 0, 0, .5); } .poi-cat { font: 700 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .6; padding: 7px 6px 2px; }
.ph-ico { font-style: normal; font-size: 22px; width: 30px; text-align: center; flex: none; } .ph-mini.on { background: var(--pink); color: #000019; }
@media (max-width: 760px) { #poi-panel { display: none; } }

/* Crew-Rufe: an Crew-Jobs warten Leute (Zeile antippen; Taste J nimmt die oberste) */
#crewcall { position: absolute; left: 50%; top: 120px; transform: translate(-50%, -8px); display: flex; flex-direction: column; gap: 6px; align-items: stretch; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 94vw; font-size: 14px; text-align: left; }
#crewcall.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#crewcall .cc { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: rgba(6, 4, 30, .94); border: 2px solid #23d5e8; border-radius: 8px; padding: 7px 9px 7px 13px; box-shadow: 4px 4px 0 rgba(35, 213, 232, .35); cursor: pointer; }
#crewcall .cc:hover { background: rgba(20, 40, 70, .96); }
#crewcall b { display: block; color: #23d5e8; } #crewcall span { display: block; font-size: 12.5px; opacity: .9; }
#crewcall em { font-style: normal; font-weight: 700; white-space: nowrap; background: #23d5e8; color: #000019; border-radius: 6px; padding: 6px 10px; }
#crewcall .cc + .cc em { background: none; color: #23d5e8; border: 1.5px solid #23d5e8; padding: 4.5px 9px; }
#crewcall small { align-self: center; font-size: 12px; background: rgba(6, 4, 30, .9); border-radius: 6px; padding: 2px 8px; }
#crewcall .cc.ping { animation: crewping .6s 3; } @keyframes crewping { 50% { box-shadow: 0 0 0 9px rgba(35, 213, 232, .4); } }
/* Chat: unten links über der Minikarte */
#chat { position: absolute; left: 14px; bottom: 236px; width: min(380px, 70vw); display: none; flex-direction: column; gap: 6px; pointer-events: none; font-size: 13.5px; z-index: 6; }
#chat.show, #chat.open { display: flex; }
#chat-log { display: flex; flex-direction: column; gap: 4px; }
#chat .cm { background: rgba(6, 4, 30, .82); border-radius: 8px; padding: 5px 9px; color: #f7f5fb; line-height: 1.35; overflow-wrap: anywhere; align-self: flex-start; max-width: 100%; }
#chat .cm small { color: #a9a4c9; }
#chat .cm.come { border: 2px solid #fe5fa0; box-shadow: 3px 3px 0 rgba(254, 95, 160, .35); }
#chat .cm button { pointer-events: auto; margin-left: 8px; background: #fe5fa0; color: #000019; border: 0; border-radius: 6px; padding: 3px 9px; font: inherit; font-weight: 700; cursor: pointer; }
#chat .cm kbd { font-size: 11px; background: rgba(0, 0, 25, .2); border-radius: 4px; padding: 0 4px; }
#chat-form { display: none; gap: 6px; pointer-events: auto; flex-wrap: wrap; }
#chat.open #chat-form { display: flex; }
#chat-form select, #chat-form input { background: #0f0e2b; color: #f7f5fb; border: 2px solid #5b24b9; border-radius: 8px; padding: 6px 8px; font: inherit; }
#chat-form input { flex: 1 1 160px; min-width: 0; }
#chat-form button { background: #5b24b9; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; cursor: pointer; }
#chat-form #chat-come { background: #fe5fa0; color: #000019; }
body.touch #chat { bottom: 150px; }
@media (max-width: 640px) { #chat { bottom: 170px; } }
/* Handy: Gutscheine, Logo & Link */
.ph-code { display: inline-block; margin-top: 4px; font: 700 13px ui-monospace, Menlo, monospace; background: #fff; color: #000019; border-radius: 6px; padding: 2px 7px; letter-spacing: .04em; user-select: all; }
.ph-deco { display: flex; flex-direction: column; gap: 9px; margin: 6px 0 10px; }
.ph-logo { width: 112px; height: 112px; border-radius: 14px; align-self: center; display: grid; place-items: center; background: repeating-conic-gradient(#2a2850 0 25%, #1c1a3c 0 50%) 0 0 / 16px 16px; border: 2px solid rgba(254, 169, 198, .5); overflow: hidden; }
.ph-logo img { width: 100%; height: 100%; object-fit: contain; } .ph-logo span { color: rgba(255, 255, 255, .6); font-size: 12px; }
.ph-file { align-self: center; background: var(--purple); color: #fff; border-radius: 10px; padding: 8px 14px; font: 700 12.5px var(--sans); cursor: pointer; }
.ph-file input { display: none; }
.ph-url { display: flex; flex-direction: column; gap: 4px; color: rgba(255, 255, 255, .75); font: 600 12px var(--sans); }
.ph-url input { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 10px; color: #fff; padding: 8px 9px; font: 13px var(--sans); }
/* Karte: wem gehört Hamburg */
#own-panel { position: absolute; right: 16px; top: 64px; width: min(270px, 44vw); background: rgba(6, 4, 30, .9); border: 2px solid rgba(254, 169, 198, .6); border-radius: 12px; padding: 10px 12px; color: #f7f5fb; font-size: 13px; z-index: 3; }
#own-panel h3 { margin: 0 0 4px; font-size: 14px; } #own-panel .pbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin: 6px 0 8px; overflow: hidden; } #own-panel .pbar i { display: block; height: 100%; background: #fea9c6; min-width: 2px; }
#own-panel .ow { display: flex; align-items: center; gap: 7px; padding: 3px 0; } #own-panel .ow i.d { width: 10px; height: 10px; border-radius: 50%; flex: none; } #own-panel .ow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#own-panel .ow img { width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 3px; } #own-panel small { color: #a9a4c9; }
#own-panel .live { color: #a9a4c9; margin-top: 6px; } #own-panel .live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
@media (max-width: 760px) { #own-panel { top: auto; bottom: 64px; right: 8px; width: min(240px, 60vw); font-size: 12px; } }
#travel a { border-radius: 8px; padding: 7px 12px; font: 700 13px var(--sans); color: #fea9c6; border: 1px solid var(--pink); text-decoration: none; white-space: nowrap; }

/* Vorträge: Folien von slides.syndicats.de im Spiel */
#talk { padding: 12px; }
.talk-box { width: min(1180px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; gap: 8px; margin: auto; background: rgba(6, 4, 30, .92); border: 2px solid rgba(254, 169, 198, .7); border-radius: 10px; box-shadow: 5px 5px 0 rgba(91, 36, 185, .9); padding: 10px; }
.talk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.talk-head > div:first-child { flex: 1; min-width: 180px; }
.talk-head b { font-size: 18px; }
.talk-head a { color: var(--pink); font-size: 14px; }
.talk-head .primary { font-size: 14px; padding: 8px 16px; }
#talk .talk-stage { flex: 1; position: relative; min-height: 0; }
#talk-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; background: #000; }
#talk-click { position: absolute; inset: 0; cursor: pointer; }
.talk-hint { font-size: 12px; opacity: .7; }

/* Ereignisse: Hinweis mit Schnellreise */
#evcall { position: absolute; right: 16px; top: 104px; display: flex; flex-direction: column; gap: 6px; width: min(360px, calc(100vw - 32px)); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(-8px); font-size: 14px; text-align: left; }
#evcall.show { opacity: 1; transform: none; pointer-events: auto; }
#evcall .ec { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: rgba(6, 4, 30, .94); border: 2px solid var(--ec); border-radius: 8px; padding: 7px 9px 7px 12px; box-shadow: 4px 4px 0 rgba(91, 36, 185, .6); cursor: pointer; }
#evcall .ec:hover { background: rgba(30, 20, 70, .96); }
#evcall b { display: block; color: var(--ec); } #evcall span { display: block; font-size: 12.5px; opacity: .9; }
#evcall em { font-style: normal; font-weight: 700; white-space: nowrap; background: var(--ec); color: #000019; border-radius: 6px; padding: 6px 10px; }
#evcall .ec + .ec em { background: none; color: var(--ec); border: 1.5px solid var(--ec); padding: 4.5px 9px; }
#evcall .ec.ping { animation: evping .6s 3; } @keyframes evping { 50% { box-shadow: 0 0 0 9px rgba(254, 169, 198, .35); } }
@media (max-width: 720px) { #evcall { top: auto; bottom: 150px; right: 50%; transform: translateX(50%); } #evcall.show { transform: translateX(50%); } }

/* Handy: Radioleiste ohne Sender, Link zur Steuerung */
.ph-radio { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; font-style: normal; font-size: 22px; background: #fe5fa0; color: #000019; }
.ph-link { margin-top: 8px; align-self: center; background: none; border: 0; color: rgba(255, 255, 255, .6); font: 12px var(--sans); cursor: pointer; } .ph-link:hover { color: #fff; }
.ph-link kbd { font: 11px var(--mono); border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; padding: 0 4px; }
