/* ABGEHAUEN – dunkel, neon, sportlich */
:root {
  --bg: #0B0B0F;
  --surface: #15151C;
  --surface-2: #1F1F29;
  --line: #2C2C38;
  --lime: #C8FF2E;
  --red: #FF3B5C;
  --warn: #FFB020;
  --green: #2BD46B;
  --text: #F4F4F6;
  --muted: #9A9AA8;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }

h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- Screens ---------- */
.screen {
  min-height: 100dvh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(var(--sat) + 20px) calc(var(--sar) + 16px) calc(var(--sab) + 20px) calc(var(--sal) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: enter 320ms var(--ease) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint { font-size: 14px; color: var(--muted); }
.hint-warn {
  color: var(--warn);
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform 140ms var(--ease), opacity 140ms var(--ease), background-color 140ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary { background: var(--lime); color: #0B0B0F; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-green { background: var(--green); color: #06210F; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); min-height: 48px; font-size: 16px; font-weight: 800; }

.link {
  align-self: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: transform 140ms var(--ease), color 140ms var(--ease);
}
.link:active { transform: scale(0.97); }

.iconbtn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: transform 140ms var(--ease);
}
.iconbtn:active { transform: scale(0.97); }
.iconbtn-sm { background: rgba(21, 21, 28, 0.9); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: #d6ff5c; }
  .btn-secondary:hover, .btn-ghost:hover { background: #262632; }
  .btn-green:hover { background: #45e283; }
  .btn-red:hover { background: #ff5673; }
  .link:hover { color: var(--text); }
  .chip:hover { border-color: #47475a; }
}

/* ---------- Eingaben ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }

.input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  transition: border-color 140ms var(--ease);
}
.input::placeholder { color: #5d5d6c; font-weight: 700; }
.input:focus { outline: none; border-color: var(--lime); }

.input-code {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  padding-left: calc(16px + 0.3em);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.input-code::placeholder { letter-spacing: 0.2em; }

/* ---------- Startseite ---------- */
.screen-home { justify-content: space-between; gap: 24px; }
.home-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4vh; }
.logo { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 18px 60px rgba(200, 255, 46, 0.14); }

.wordmark {
  margin-top: 20px;
  font-size: clamp(40px, 12.5vw, 56px);
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
}
.abg { color: var(--lime); }
.slogan { margin-top: 10px; color: var(--muted); font-weight: 800; font-size: 17px; }

.home-form { display: flex; flex-direction: column; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* ---------- Lobby ---------- */
.screen-lobby { padding-bottom: 0; }
.lobby-head { display: flex; align-items: flex-start; justify-content: space-between; }
.bigcode {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  -webkit-user-select: text;
  user-select: text;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.count { color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }

.players { display: flex; flex-direction: column; gap: 8px; }
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 4px 4px 4px 14px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.player.is-new { animation: enter 300ms var(--ease) both; }
.player-name { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-name small { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 6px; }
.player.offline .player-name { opacity: 0.45; }

.badge {
  flex: none;
  min-height: 44px;
  min-width: 112px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 140ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
button.badge:active { transform: scale(0.97); }
.badge.runner { background: rgba(200, 255, 46, 0.14); color: var(--lime); }
.badge.hunter { background: rgba(255, 59, 92, 0.16); color: #ff7088; }
.badge.spectator { background: var(--surface); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  transition: transform 140ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.chip:active { transform: scale(0.97); }
.chip.on { background: var(--lime); border-color: var(--lime); color: #0B0B0F; }
.chips-tight { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.chips-tight .chip { padding: 0; font-variant-numeric: tabular-nums; }

.minimap-wrap { position: relative; height: 190px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); isolation: isolate; }
.minimap { position: absolute; inset: 0; background: var(--surface-2); }
.minimap-empty {
  position: absolute; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: rgba(11, 11, 15, 0.72);
  color: var(--muted); font-weight: 800; font-size: 15px; text-align: center; padding: 16px;
}

.settings { display: flex; flex-direction: column; gap: 18px; }
.setting { display: flex; flex-direction: column; gap: 8px; }
.setting-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.setting-top output { color: var(--lime); font-weight: 900; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--lime); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--lime);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 4px solid var(--bg); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; text-align: left; font-weight: 800;
}
.switch { flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.switch-row[aria-checked="true"] .switch { background: var(--lime); border-color: var(--lime); }
.switch-row[aria-checked="true"] .knob { transform: translateX(20px); background: #0B0B0F; }

.summary { color: var(--text); font-weight: 700; line-height: 1.7; }

.lobby-foot {
  position: sticky; bottom: 0; z-index: 600;
  margin: 0 -16px;
  padding: 14px 16px calc(var(--sab) + 16px);
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0), var(--bg) 26%);
  display: flex; flex-direction: column; gap: 8px;
}
.problem { min-height: 20px; text-align: center; color: var(--warn); font-weight: 800; font-size: 14px; }

/* Rollen-Sichtbarkeit */
body:not(.is-host) .host-only { display: none !important; }
body.is-host .guest-only { display: none !important; }

/* ---------- Spiel ---------- */
.screen-game { position: fixed; inset: 0; max-width: none; padding: 0; display: block; animation: none; overflow: hidden; }
.map { position: absolute; inset: 0; background: #101016; z-index: 0; }
.map-missing { display: grid; place-items: center; padding: 32px; text-align: center; color: var(--muted); font-weight: 800; }

.leaflet-container { background: #101016; font: inherit; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.55); }
.leaflet-control-attribution { background: rgba(11, 11, 15, 0.7) !important; color: var(--muted) !important; font-size: 10px; padding: 1px 6px !important; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.screen-game .leaflet-bottom.leaflet-right { bottom: calc(var(--panel-h, 150px) + 6px); }
.leaflet-div-icon { background: none; border: 0; }
/* feine Linien zwischen den Kacheln vermeiden */
.leaflet-container img.leaflet-tile { mix-blend-mode: plus-lighter; }

.hud-top {
  position: absolute; z-index: 1000; left: 0; right: 0; top: 0;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + 10px) 0 calc(var(--sal) + 10px);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.hud-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(21, 21, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 6px 6px 6px 8px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill { flex: none; min-height: 40px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; font-weight: 900; font-size: 14px; }
.pill.runner { background: var(--lime); color: #0B0B0F; }
.pill.hunter { background: var(--red); color: #fff; }
.pill.spectator { background: var(--surface-2); color: var(--muted); }
.hud-time { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.time { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.time-label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.banner { border-radius: var(--r-sm); padding: 10px 14px; font-weight: 900; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; animation: enter 240ms var(--ease) both; }
.banner-red { background: var(--red); color: #fff; }
.banner-warn { background: var(--warn); color: #1c1300; }

.fxchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 10px; border-radius: 10px;
  background: rgba(21, 21, 28, 0.92); border: 1px solid var(--line);
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.fx.lime { border-color: rgba(200, 255, 46, 0.5); color: var(--lime); }
.fx.red { border-color: rgba(255, 59, 92, 0.6); color: #ff7088; }
.fx.muted { color: var(--muted); }
.arrow { display: inline-block; font-size: 16px; line-height: 1; transition: transform 300ms var(--ease); }

.hud-bottom {
  position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0;
  padding: 0 calc(var(--sar) + 10px) calc(var(--sab) + 10px) calc(var(--sal) + 10px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(21, 21, 28, 0.94); border: 1px solid var(--line);
  color: var(--text); font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: transform 140ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.fab:active { transform: scale(0.97); }
.fab.off { color: var(--lime); border-color: var(--lime); }

.panel {
  width: 100%;
  background: rgba(21, 21, 28, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot {
  min-height: 52px; border-radius: var(--r-sm);
  border: 1px dashed var(--line); color: #5d5d6c;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 800;
}
button.slot {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform 140ms var(--ease);
  animation: enter 280ms var(--ease) both;
}
button.slot:active { transform: scale(0.97); }
.slot .emoji { font-size: 22px; }
.slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.catchcode { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 2px 0; }
.digits { font-size: 52px; line-height: 1.05; font-weight: 900; letter-spacing: 0.14em; padding-left: 0.14em; color: var(--lime); font-variant-numeric: tabular-nums; }
.catchcode .hint { font-size: 13px; }

/* Vorsprung */
.headstart {
  position: absolute; inset: 0; z-index: 1500;
  background: rgba(11, 11, 15, 0.94);
  display: grid; place-items: center;
  padding: calc(var(--sat) + 24px) 24px calc(var(--sab) + 24px);
  animation: fade 260ms var(--ease) both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.headstart-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 100%; max-width: 360px; }
.hs-title { font-size: clamp(52px, 17vw, 80px); line-height: 1; font-weight: 900; font-style: italic; letter-spacing: -0.04em; }
.headstart.runner .hs-title { color: var(--lime); }
.headstart.hunter .hs-title { color: var(--red); }
.hs-count { font-size: clamp(88px, 30vw, 136px); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.hs-sub { color: var(--muted); font-weight: 800; font-size: 17px; margin-bottom: 14px; }

/* Marker */
.mk { position: relative; width: 0; height: 0; }
.mk-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #0B0B0F; }
.mk-label {
  position: absolute; left: 50%; top: 13px; transform: translateX(-50%);
  white-space: nowrap; padding: 2px 7px; border-radius: 8px;
  background: rgba(11, 11, 15, 0.88); border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums;
}
.mk-label small { color: var(--muted); font-weight: 700; margin-left: 4px; font-size: 11px; }
.mk-me .mk-dot { left: -11px; top: -11px; width: 22px; height: 22px; background: #fff; border-color: var(--lime); box-shadow: 0 0 0 6px rgba(200, 255, 46, 0.22); }
.mk-me.hunter .mk-dot { border-color: var(--red); box-shadow: 0 0 0 6px rgba(255, 59, 92, 0.24); }
.mk-team.runner .mk-dot { background: var(--lime); }
.mk-team.hunter .mk-dot { background: var(--red); }
.mk-ping .mk-dot { left: -11px; top: -11px; width: 22px; height: 22px; background: var(--lime); }
.mk-ping .mk-label { top: 16px; border-color: rgba(200, 255, 46, 0.55); }
.mk-ring { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lime); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.9; }
  to { transform: scale(3.4); opacity: 0; }
}
.mk-drop {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 11px;
  background: rgba(21, 21, 28, 0.95); border: 1px solid var(--warn);
  display: grid; place-items: center; font-size: 18px;
}

/* ---------- Ende ---------- */
.screen-end { gap: 14px; }
.end-head { text-align: center; padding: 3vh 0 6px; }
.end-title { font-size: clamp(32px, 9.4vw, 42px); line-height: 1.08; font-weight: 900; font-style: italic; letter-spacing: -0.04em; text-wrap: balance; }
.end-title.runner { color: var(--lime); }
.end-title.hunter { color: var(--red); }
.end-personal { margin-top: 10px; font-size: 19px; font-weight: 900; }
.rank { display: flex; flex-direction: column; gap: 8px; }
.rank li {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  background: var(--surface-2); border-radius: var(--r-sm); font-weight: 800;
  animation: enter 300ms var(--ease) both;
}
.rank li.me { box-shadow: inset 0 0 0 1px var(--lime); }
.rank .pos { color: var(--muted); width: 20px; font-variant-numeric: tabular-nums; }
.rank .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .who small { color: var(--muted); font-weight: 700; margin-left: 6px; font-size: 13px; }
.rank .val { font-weight: 900; font-variant-numeric: tabular-nums; }
.rank .empty { color: var(--muted); background: none; justify-content: center; }
.end-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ---------- Bottom-Sheet ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.62);
  opacity: 0; transition: opacity 240ms var(--ease);
  cursor: pointer; /* iOS feuert click auf einem div nur, wenn es als klickbar gilt */
}
.backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 2001; left: 0; right: 0; bottom: 0;
  max-width: 520px; margin: 0 auto; max-height: 88dvh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 10px 18px calc(var(--sab) + 18px);
  transform: translateY(100%);
  transition: transform 360ms var(--ease-sheet);
  will-change: transform;
}
.sheet.open { transform: translateY(0); }
.sheet.closing { transition-duration: 220ms; }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.sheet-body p { color: #c9c9d3; }
.sheet-body h3 { margin: 6px 0 0; font-size: 15px; font-weight: 900; color: var(--lime); }
.sheet-body .safety { color: #1c1300; background: var(--warn); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 800; }
.sheet-body ul { display: flex; flex-direction: column; gap: 6px; color: #c9c9d3; }
.sheet-body li { padding-left: 18px; position: relative; }
.sheet-body li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.card-big { font-size: 56px; line-height: 1; }
.input-digits { text-align: center; font-size: 40px; font-weight: 900; letter-spacing: 0.3em; padding-left: calc(16px + 0.3em); min-height: 76px; font-variant-numeric: tabular-nums; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 3000; left: 0; right: 0; top: calc(var(--sat) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px; pointer-events: none;
}
body[data-screen="game"] .toasts { top: calc(var(--hud-h, 124px) + 8px); }
.toast {
  max-width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-weight: 800; font-size: 15px; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: var(--red); }
.toast.good { border-color: var(--lime); }
.toast.big { font-size: 20px; padding: 16px 20px; background: var(--lime); border-color: var(--lime); color: #0B0B0F; }
.toast.big.bad { background: var(--red); border-color: var(--red); color: #fff; }

.conn {
  position: fixed; z-index: 3500; left: 50%; bottom: calc(var(--sab) + 12px); transform: translateX(-50%);
  background: var(--warn); color: #1c1300; font-weight: 900; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ================= Feinschliff: Design-Elemente und Animationen ================= */

/* feines Raster im Hintergrund, oben sichtbar, nach unten ausgeblendet */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 100%);
}

/* Startseite: Elemente kommen gestaffelt, Radar-Ringe hinter dem Logo */
.screen-home { animation: none; }
.home-top > *, .home-form > *, .screen-home > .link { animation: enter 420ms var(--ease) both; }
.home-top > :nth-child(2) { animation-delay: 60ms; }
.home-top > :nth-child(3) { animation-delay: 120ms; }
.home-form > :nth-child(1) { animation-delay: 180ms; }
.home-form > :nth-child(2) { animation-delay: 220ms; }
.home-form > :nth-child(3) { animation-delay: 260ms; }
.home-form > :nth-child(4) { animation-delay: 300ms; }
.screen-home > .link { animation-delay: 360ms; }

.logo-wrap { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.logo-wrap .logo { position: relative; z-index: 1; }
.radar { position: absolute; inset: 0; }
.radar span {
  position: absolute; inset: 0; border-radius: 26px;
  border: 1.5px solid rgba(200, 255, 46, 0.5);
  opacity: 0;
  animation: radar 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.radar span:nth-child(2) { animation-delay: 1.2s; }
.radar span:nth-child(3) { animation-delay: 2.4s; }
@keyframes radar {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
.wordmark { text-shadow: 0 0 40px rgba(200, 255, 46, 0.18); }

/* Hauptbuttons mit etwas Tiefe */
.btn-primary { background: linear-gradient(180deg, #d6ff5c 0%, #C8FF2E 55%, #b4ea1c 100%); box-shadow: 0 10px 30px rgba(200, 255, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-red { background: linear-gradient(180deg, #ff5673 0%, #FF3B5C 60%, #ea2748 100%); box-shadow: 0 10px 30px rgba(255, 59, 92, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-green { box-shadow: 0 10px 30px rgba(43, 212, 107, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn:disabled { box-shadow: none; }
.card { background: linear-gradient(180deg, #181820 0%, var(--surface) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset; }

/* Lobby: Code als Kacheln */
.bigcode { display: flex; gap: 8px; margin-top: 8px; font-size: 44px; letter-spacing: 0; transition: transform 140ms var(--ease); }
.bigcode:active { transform: scale(0.97); }
.tile {
  width: 60px; height: 72px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1f1f29 0%, var(--surface) 100%);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.08), 0 10px 26px rgba(200, 255, 46, 0.08);
  animation: enter 420ms var(--ease) both;
}
.code-hint { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #6d6d7c; }

.player { padding-left: 8px; }
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 900; color: #0B0B0F;
}
.player.offline .avatar { opacity: 0.4; }

/* Spiel */
.hud-actions { display: flex; gap: 6px; }
.iconbtn-sm { width: 44px; height: 44px; font-size: 16px; }
.time { transition: color 300ms var(--ease); }
.time.urgent { color: var(--red); }
.pingbar { height: 4px; margin: -2px 16px 0; border-radius: 2px; background: rgba(21, 21, 28, 0.85); overflow: hidden; }
.pingbar i { display: block; height: 100%; border-radius: 2px; background: var(--lime); transform-origin: left center; transition: transform 260ms linear; box-shadow: 0 0 10px rgba(200, 255, 46, 0.7); }
.fx.warn { border-color: rgba(255, 176, 32, 0.6); color: var(--warn); }
.digits { text-shadow: 0 0 26px rgba(200, 255, 46, 0.4); }
button.slot { box-shadow: 0 0 0 1px rgba(200, 255, 46, 0.25), 0 6px 18px rgba(200, 255, 46, 0.1); }

.hs-count.beat { animation: beat 1s var(--ease) infinite; color: var(--warn); }
@keyframes beat {
  0% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* roter Rand, solange man außerhalb der Zone ist */
.vignette {
  position: fixed; inset: 0; z-index: 1100; pointer-events: none;
  box-shadow: inset 0 0 56px 4px rgba(255, 59, 92, 0.5);
  animation: vig 900ms ease-in-out infinite alternate;
}
@keyframes vig { from { opacity: 0.45; } to { opacity: 1; } }

/* Ping-Blitz */
.flash { position: fixed; inset: 0; z-index: 1200; pointer-events: none; display: grid; place-items: center; }
.flash-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--lime); opacity: 0; }
.flash-text { position: relative; font-size: 64px; font-weight: 900; font-style: italic; letter-spacing: -0.04em; color: var(--lime); text-shadow: 0 0 40px rgba(200, 255, 46, 0.6); opacity: 0; }
.flash.run .flash-ring { animation: flashring 1100ms var(--ease) both; }
.flash.run .flash-text { animation: flashtext 1200ms var(--ease) both; }
@keyframes flashring {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(7); opacity: 0; }
}
@keyframes flashtext {
  0% { transform: scale(0.92); opacity: 0; }
  18% { transform: scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: scale(1.04); opacity: 0; }
}

/* Ende */
.end-title { animation: titlein 520ms var(--ease) both; }
@keyframes titlein {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.end-title.runner { text-shadow: 0 0 44px rgba(200, 255, 46, 0.3); }
.end-title.hunter { text-shadow: 0 0 44px rgba(255, 59, 92, 0.35); }
.end-meta { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank .pos { width: 26px; font-size: 18px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2500; pointer-events: none; }

/* ================= ABGEHAUEN × SnackPoint ================= */
.collab { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.collab-x { font-size: 26px; font-weight: 900; color: var(--muted); line-height: 1; }
.collab-logo { width: 132px; height: auto; display: block; filter: drop-shadow(0 6px 18px rgba(255, 46, 147, 0.25)); }
.home-top > :nth-child(4) { animation-delay: 150ms; }
.slogan { margin-top: 4px; }

.chip-sp { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; border-color: rgba(255, 46, 147, 0.55); }
.chip-sp img { display: block; width: 38px; height: auto; }
.chip-sp.on { background: var(--lime); border-color: var(--lime); }

.mk-shop-pin {
  position: absolute; left: -22px; top: -18px; width: 44px; height: 36px; border-radius: 12px;
  background: rgba(11, 11, 15, 0.92); border: 1.5px solid #ff2e93;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(255, 46, 147, 0.35);
}
/* Leaflet setzt für Bilder in Markern width:auto, deshalb hier gezielt überschreiben */
.leaflet-container .leaflet-marker-pane .mk-shop-pin img { display: block; width: 34px; height: auto; }
.mk-shop .mk-label { top: 22px; border-color: rgba(255, 46, 147, 0.6); }

.meet {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: linear-gradient(180deg, #181820 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 46, 147, 0.4); border-radius: var(--r-md);
  animation: enter 420ms var(--ease) 200ms both;
}
.meet img { flex: none; width: 88px; height: auto; display: block; }
.meet strong { display: block; font-weight: 900; font-size: 15px; }
.meet span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; }

/* ================= Runde 3: Werbung, Karten, Effekte ================= */

/* SnackPoint-Hinweise */
.promo, .shopcard {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-decoration: none; color: var(--text); text-align: left;
  background: linear-gradient(180deg, rgba(255, 46, 147, 0.12) 0%, rgba(255, 46, 147, 0.04) 100%);
  border: 1px solid rgba(255, 46, 147, 0.45); border-radius: var(--r-md);
  transition: transform 140ms var(--ease), border-color 200ms var(--ease);
}
.promo:active, .shopcard:active { transform: scale(0.97); }
.promo { margin-top: 16px; padding: 10px 14px; min-height: 56px; }
.shopcard { padding: 10px 14px; min-height: 64px; }
.shopcard img { flex: none; width: 76px; height: auto; display: block; }
.promo-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff2e93; box-shadow: 0 0 0 0 rgba(255, 46, 147, 0.6); animation: dot 1.8s var(--ease) infinite; }
@keyframes dot { from { box-shadow: 0 0 0 0 rgba(255, 46, 147, 0.6); } to { box-shadow: 0 0 0 12px rgba(255, 46, 147, 0); } }
.promo-text, .shopcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo-text strong, .shopcard-text strong { font-weight: 900; font-size: 15px; }
.promo-text span, .shopcard-text span { color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.promo-go { flex: none; font-weight: 900; font-size: 14px; color: #ff6fb5; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.shopcard.here { border-color: var(--lime); background: linear-gradient(180deg, rgba(200, 255, 46, 0.14) 0%, rgba(200, 255, 46, 0.04) 100%); }
.shopcard.here .shopcard-text span { color: var(--lime); }
.home-top > :nth-child(5) { animation-delay: 180ms; }
.meet { align-items: center; }
.meet > div { flex: 1; min-width: 0; }

/* Karten-Marker am SnackPoint */
.mk-drop.shop { border-color: #ff2e93; box-shadow: 0 0 0 4px rgba(255, 46, 147, 0.25); animation: shopdrop 1.6s var(--ease) infinite alternate; }
@keyframes shopdrop { from { transform: translateY(0); } to { transform: translateY(-4px); } }

/* Kartenfiguren in der Hand */
.slot-img { display: block; width: 30px; height: auto; flex: none; }
button.slot { gap: 8px; padding: 0 8px; }

/* Regel-Seite */
.sheet-body .lead { font-size: 17px; font-weight: 700; color: var(--text); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.team-ico { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.team strong { font-weight: 900; font-size: 16px; }
.team span:last-child { font-size: 13px; color: var(--muted); font-weight: 700; }
.team.runner { border-color: rgba(200, 255, 46, 0.45); } .team.runner strong { color: var(--lime); }
.team.hunter { border-color: rgba(255, 59, 92, 0.5); } .team.hunter strong { color: #ff7088; }
.sheet-body .steps { display: flex; flex-direction: column; gap: 0; counter-reset: none; }
.sheet-body .step { display: flex; gap: 12px; padding: 0 0 14px 0; position: relative; }
.sheet-body .step::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; height: auto; border-radius: 1px; background: var(--line); }
.sheet-body .step:last-child::before { display: none; }
.sheet-body .step:last-child { padding-bottom: 0; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0B0B0F; font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.step strong { display: block; font-weight: 900; font-size: 16px; color: var(--text); line-height: 32px; }
.sheet-body .step p { margin-top: -2px; font-size: 15px; }
.ctiles { display: flex; flex-direction: column; gap: 10px; }
.ctile { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.ctile img { flex: none; width: 72px; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.ctile strong { display: inline; font-weight: 900; font-size: 16px; color: var(--text); margin-right: 8px; }
.sheet-body .ctile p { margin-top: 4px; font-size: 14px; }
.ctag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.ctag.hunter { background: rgba(255, 59, 92, 0.18); color: #ff7088; }
.ctag.runner { background: rgba(200, 255, 46, 0.15); color: var(--lime); }
.card-hero { display: grid; place-items: center; padding: 8px 0 4px; }
.card-hero img { width: 150px; height: auto; display: block; transform: rotate(-4deg); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6)); animation: herocard 520ms var(--ease) both; }
@keyframes herocard { from { opacity: 0; transform: rotate(-14deg) translateY(14px) scale(0.92); } to { opacity: 1; transform: rotate(-4deg); } }
.sheet-body.shake { animation: shake 360ms var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

/* Team-Ruf-Knopf */
.fabs { display: flex; flex-direction: column; gap: 10px; }
.fab { font-size: 22px; }
#btn-center { font-size: 26px; }

/* Stempel: ERWISCHT!, GEFANGEN!, LOS! */
.stamp { position: fixed; inset: 0; z-index: 2600; pointer-events: none; display: grid; place-items: center; }
.stamp span {
  font-size: clamp(54px, 17vw, 84px); font-weight: 900; font-style: italic; letter-spacing: -0.04em; line-height: 1;
  padding: 10px 22px 12px; border-radius: 20px; border: 6px solid currentColor;
  background: rgba(11, 11, 15, 0.86); opacity: 0;
}
.stamp.lime span { color: var(--lime); box-shadow: 0 0 60px rgba(200, 255, 46, 0.35); }
.stamp.red span { color: var(--red); box-shadow: 0 0 60px rgba(255, 59, 92, 0.4); }
.stamp.run span { animation: stamp 1400ms var(--ease) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-8deg) scale(1.7); }
  16% { opacity: 1; transform: rotate(-8deg) scale(0.96); }
  24% { transform: rotate(-8deg) scale(1); }
  78% { opacity: 1; transform: rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: rotate(-8deg) scale(1.03); }
}

/* Karten-Einblendung für alle */
.cardfx { position: fixed; inset: 0; z-index: 2550; pointer-events: none; display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, rgba(11, 11, 15, 0.82) 0%, rgba(11, 11, 15, 0.35) 55%, rgba(11, 11, 15, 0) 80%); opacity: 0; }
.cardfx.run { animation: fxbg 2300ms var(--ease) both; }
@keyframes fxbg { 0% { opacity: 0; } 10% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }
.cardfx-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 20px; }
.cardfx img { width: 170px; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7)); }
.cardfx.run img { animation: fxcard 2300ms var(--ease) both; }
@keyframes fxcard {
  0% { transform: perspective(700px) rotateY(88deg) scale(0.78); }
  20% { transform: perspective(700px) rotateY(-10deg) scale(1.06); }
  30% { transform: perspective(700px) rotateY(0deg) rotate(-3deg) scale(1); }
  84% { transform: perspective(700px) rotateY(0deg) rotate(-3deg) scale(1); }
  100% { transform: perspective(700px) rotateY(0deg) rotate(-3deg) translateY(-14px) scale(0.97); }
}
.cardfx-title { margin-top: 12px; font-size: clamp(26px, 8vw, 36px); font-weight: 900; font-style: italic; letter-spacing: -0.03em; line-height: 1.05; }
.cardfx.hunter .cardfx-title { color: var(--red); text-shadow: 0 0 30px rgba(255, 59, 92, 0.5); }
.cardfx.runner .cardfx-title { color: var(--lime); text-shadow: 0 0 30px rgba(200, 255, 46, 0.45); }
.cardfx-sub { font-size: 17px; font-weight: 800; color: var(--text); }
.cardfx.run .cardfx-title, .cardfx.run .cardfx-sub { animation: fxtext 2300ms var(--ease) both; }
@keyframes fxtext { 0%, 14% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; transform: none; } 100% { opacity: 1; } }

/* Radar-Strahl beim Ping */
.flash-sweep { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, rgba(200, 255, 46, 0) 0deg, rgba(200, 255, 46, 0) 300deg, rgba(200, 255, 46, 0.28) 356deg, rgba(200, 255, 46, 0) 360deg); }
.flash.run .flash-sweep { animation: sweep 1200ms linear both; }
@keyframes sweep { 0% { opacity: 0; transform: rotate(0deg); } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(360deg); } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen, .player.is-new, .rank li, button.slot, .banner { animation: fade 200ms ease both; }
  .mk-ring { animation: none; opacity: 0.5; transform: scale(1.8); }
  .sheet { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .sheet.open { opacity: 1; }
  .toast { transform: none; }
  .btn:active, .chip:active, .iconbtn:active, .fab:active, .link:active, button.badge:active, button.slot:active { transform: none; }
  .arrow, .knob { transition: none; }
  .radar span { animation: none; opacity: 0; }
  .home-top > *, .home-form > *, .screen-home > .link, .tile, .end-title { animation: fade 200ms ease both; animation-delay: 0ms; }
  .hs-count.beat { animation: none; }
  .vignette { animation: none; }
  .flash.run .flash-ring { animation: none; }
  .flash.run .flash-text { animation: fade 900ms ease both; opacity: 1; }
  .bigcode:active { transform: none; }
  .promo-dot, .mk-drop.shop, .flash.run .flash-sweep, .sheet-body.shake { animation: none; }
  .stamp.run span, .cardfx.run img, .cardfx.run .cardfx-title, .cardfx.run .cardfx-sub, .card-hero img { animation: fade 300ms ease both; opacity: 1; }
  .cardfx.run { animation: fxbg 2300ms linear both; }
  .promo:active, .shopcard:active { transform: none; }
}

/* Kartenfigur über dem Namen, damit kein Name abgeschnitten wird */
.slot { min-height: 70px; }
button.slot { flex-direction: column; gap: 3px; padding: 6px 4px; }
button.slot .slot-name { font-size: 12px; max-width: 100%; }

/* ---------- Live-Zähler, Durchsage, Bewertung ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding: 6px 12px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.live-pill.hot { color: var(--text); border-color: rgba(200, 255, 46, 0.4); }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.hot .live-pulse { background: var(--lime); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(200, 255, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); } }
.news {
  display: flex; align-items: center; gap: 10px; margin: 10px auto 0; max-width: 360px; text-align: left;
  padding: 10px 12px; border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(255, 176, 32, 0.18), var(--surface));
  border: 1px solid rgba(255, 176, 32, 0.4); font-size: 14px; font-weight: 700;
}
.news img { flex: none; object-fit: contain; }
.announce-pop {
  position: fixed; left: 12px; right: 12px; top: calc(var(--sat) + 12px); z-index: 3000;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: #FFB020; color: #0B0B0F; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(calc(-100% - 40px)); transition: transform 380ms var(--ease);
  max-width: 520px; margin: 0 auto; cursor: pointer;
}
.announce-pop.show { transform: none; }
.announce-pop img { flex: none; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.announce-pop small { display: block; font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.announce-pop strong { display: block; font-size: 16px; line-height: 1.3; }
.rate { text-align: center; }
.rate h2 { font-size: 17px; margin-bottom: 12px; }
.rate-row { display: flex; justify-content: center; gap: 6px; }
.rate-row button {
  font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; transition: transform 140ms var(--ease), opacity 200ms, background-color 200ms;
}
.rate-row button:active { transform: scale(0.92); }
.rate-row button:disabled { opacity: 0.3; cursor: default; }
.rate-row button.picked { opacity: 1; background: rgba(200, 255, 46, 0.18); border-color: var(--lime); transform: scale(1.12); }
.rate-again { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }
.rate-again span { width: 100%; color: var(--muted); font-size: 14px; }
.rate-again button {
  font: inherit; font-weight: 800; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform 140ms var(--ease);
}
.rate-again button:active { transform: scale(0.97); }
.rate.done .rate-row { display: none; }
@media (prefers-reduced-motion: reduce) { .announce-pop { transition: none; } .live-pill.hot .live-pulse { animation: none; } }
.fb { transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.fb.fb-out { opacity: 0; transform: scale(0.97); }
.screen-home .fb { margin: 0; padding: 14px 12px; }
.screen-home .fb h2 { font-size: 15px; margin-bottom: 10px; }
.screen-home .fb .rate-row button { width: 46px; height: 46px; font-size: 26px; }
