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

:root {
  --bg: #0d0d0d;
  --ui-bg: #1a1a1a;
  --accent: #e53935;
  --text: #eee;
  --radius: 10px;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', monospace;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  position: relative;
}

/* ── TOP UI — Safe Area aware (iPhone Notch/Dynamic Island/runde Ecken) ── */
#ui-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  padding-left:  max(14px, env(safe-area-inset-left, 14px));
  padding-right: max(14px, env(safe-area-inset-right, 14px));
  padding-top:   max(6px,  env(safe-area-inset-top, 6px));
  background: var(--ui-bg);
  border-bottom: 1px solid #333;
  min-height: 36px;
  flex-shrink: 0;
  gap: 8px;
  z-index: 1000;
  position: relative;
}
#deaths-label { color: var(--accent); font-weight: bold; font-size: 14px; min-width: 80px; }
#level-label   { font-size: 13px; color: #aaa; letter-spacing: 2px; }
#hint-text {
  font-size: 11px; color: #f9a825;
  text-align: right; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.3s;
}

#menu-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid #444;
  color: #ccc;
  font-size: 18px;
  width: 36px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s, transform 0.1s;
}
#menu-btn:hover { background: rgba(255,255,255,0.18); }
#menu-btn:active { transform: scale(0.93); }

/* ── CANVAS ── */
#canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

/* ── TOUCH ZONES — Display-Hälften ── */
.touch-zone {
  position: fixed;
  top: calc(36px + env(safe-area-inset-top, 0px));
  bottom: env(safe-area-inset-bottom, 0px);
  width: 50%;
  z-index: 20;
  touch-action: none;
  background: transparent;
  display: flex;
  align-items: center;
  pointer-events: auto;
  transition: background 0.08s;
}

#touch-left  { left: env(safe-area-inset-left, 0px);   justify-content: flex-start; }
#touch-right { right: env(safe-area-inset-right, 0px); justify-content: flex-end; }

.zone-hint {
  font-size: 90px;
  color: rgba(255,255,255,0.10);
  padding: 0 24px;
  pointer-events: none;
  transition: color 0.15s, transform 0.15s;
  font-family: monospace;
}

.touch-zone.pressed {
  background: rgba(255,255,255,0.06);
}
.touch-zone.pressed .zone-hint {
  color: rgba(255,255,255,0.5);
  transform: scale(1.15);
}

#jump-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.20);
  font-size: 12px;
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 21;
  background: rgba(0,0,0,0.4);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: opacity 0.6s;
  opacity: 1;
}
#jump-hint.hidden { opacity: 0; }

/* Desktop: Touch-Zonen verbergen */
@media (hover: hover) and (pointer: fine) {
  .touch-zone, #jump-hint { display: none; }
}

/* ── OVERLAY (Level-Start / Game Over / Win) ── */
#overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.86);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
#overlay.hidden { display: none; }
#overlay-box {
  background: #1e1e1e;
  border: 1.5px solid #444;
  border-radius: 14px;
  padding: 32px 40px;
  text-align: center;
  max-width: 340px;
  width: 90%;
}
#overlay-title {
  font-size: 28px; font-weight: bold;
  margin-bottom: 10px;
}
#overlay-sub {
  font-size: 14px; color: #aaa;
  margin-bottom: 24px; line-height: 1.6;
  white-space: pre-line;
}
#overlay-btn {
  background: var(--accent);
  border: none; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: bold;
  padding: 14px 36px; border-radius: 8px;
  cursor: pointer; letter-spacing: 1px;
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#overlay-btn:hover { background: #ef5350; }
#overlay-btn:active { transform: scale(0.95); }

/* ── PAUSE MENÜ ── */
#menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.86);
  display: flex; align-items: center; justify-content: center;
  z-index: 110;
}
#menu-overlay.hidden { display: none; }
#menu-box {
  background: #1e1e1e;
  border: 1.5px solid #444;
  border-radius: 14px;
  padding: 28px 28px 22px;
  text-align: center;
  max-width: 320px;
  width: 86%;
  position: relative;
}
#menu-title {
  font-size: 22px; font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 6px;
  color: var(--accent);
}
#menu-info {
  font-size: 12px; color: #999;
  margin-bottom: 18px;
}
.menu-action {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid #444;
  color: #eee;
  font-family: inherit;
  font-size: 14px; font-weight: bold;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.menu-action:hover { background: rgba(255,255,255,0.12); border-color: #888; }
.menu-action:active { transform: scale(0.97); }
#menu-resume { background: var(--accent); border-color: var(--accent); }
#menu-resume:hover { background: #ef5350; }

#menu-nav {
  display: flex; gap: 8px;
  margin-top: 4px;
}
.menu-nav-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid #333;
  color: #aaa;
  font-family: inherit;
  font-size: 12px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  touch-action: manipulation;
}
.menu-nav-btn:hover { background: rgba(255,255,255,0.10); color: #ddd; }
.menu-nav-btn:active { transform: scale(0.95); }
.menu-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.menu-clear {
  width: 100%;
  margin-top: 14px;
  color: #888;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-color: #444;
}
.menu-clear:hover { color: #ef5350; border-color: #ef5350; }

.menu-action-small {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  border-radius: 6px;
  background: transparent;
  border-color: #444;
  color: #999;
}
.menu-action-small:hover { color: #eee; background: rgba(255,255,255,0.08); }

/* ── INTRO ── */
#intro {
  position: fixed; inset: 0;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  overflow: hidden;
  font-family: 'Courier New', ui-monospace, monospace;
}
#intro.hidden { display: none; }
#intro.fade-out { animation: intro-out 0.6s forwards; }
@keyframes intro-out {
  to { opacity: 0; pointer-events: none; }
}

#intro-content {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
}
.intro-stars {
  position: absolute;
  inset: -200px;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff 100%, transparent),
    radial-gradient(1px 1px at 70% 15%, #fff 100%, transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6) 100%, transparent),
    radial-gradient(2px 2px at 85% 80%, rgba(229,57,53,0.5) 100%, transparent),
    radial-gradient(1px 1px at 15% 60%, rgba(255,215,0,0.5) 100%, transparent),
    radial-gradient(1px 1px at 90% 40%, #fff 100%, transparent),
    radial-gradient(2px 2px at 55% 25%, rgba(229,57,53,0.4) 100%, transparent);
  background-repeat: repeat;
  background-size: 240px 240px;
  opacity: 0.6;
  animation: stars-drift 60s linear infinite;
  pointer-events: none;
}
@keyframes stars-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-240px, -240px); }
}

.intro-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.intro-text .line {
  opacity: 0;
  transform: translateY(8px);
  letter-spacing: 3px;
  color: #ccc;
  font-size: clamp(15px, 3.4vw, 20px);
  text-shadow: 0 0 18px rgba(229,57,53,0.08);
  animation: line-in 1.4s var(--d, 0s) forwards;
}
@keyframes line-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.intro-text .title {
  font-size: clamp(36px, 9vw, 64px);
  letter-spacing: 12px;
  color: #fff;
  font-weight: bold;
  text-shadow:
    0 0 24px rgba(229,57,53,0.5),
    0 0 4px rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.intro-text .sub {
  color: #888;
  letter-spacing: 4px;
  font-size: clamp(11px, 2.4vw, 13px);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.intro-text .dim { color: #555; font-style: italic; }
.intro-text .bad {
  color: #ef5350;
  text-shadow: 0 0 12px rgba(229,57,53,0.4);
}
.intro-text .glitch {
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: 8px;
  font-weight: bold;
  color: #ef5350;
  text-shadow:
    2px 0 0 rgba(0,200,255,0.6),
    -2px 0 0 rgba(255,80,80,0.6);
  animation: line-in 0.5s var(--d, 0s) forwards, glitch 0.4s var(--d, 0s) infinite;
}
.intro-text .glitch.d1 { animation-delay: var(--d, 0s), 13.7s; }
.intro-text .glitch.d2 { animation-delay: var(--d, 0s), 14.5s; }
@keyframes glitch {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, 1px); }
  80%  { transform: translate(1px, 2px); }
  100% { transform: translate(0); }
}

.intro-cta {
  opacity: 0;
  background: #e53935;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 16px 36px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(229,57,53,0.5);
  animation: cta-in 1s 15.5s forwards;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.intro-cta:hover { background: #ef5350; }
.intro-cta:active { transform: scale(0.96); }
@keyframes cta-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

#intro-skip {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  background: rgba(255,255,255,0.05);
  border: 1px solid #333;
  color: #888;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#intro-skip:hover { color: #fff; border-color: #888; }

/* ── DEATH FLASH ── */
#death-flash {
  position: fixed; inset: 0;
  background: rgba(229,57,53,0.5);
  pointer-events: none; z-index: 50;
  opacity: 0; transition: opacity 0.1s;
}
#death-flash.show { opacity: 1; }


/* ── LEVEL-SELECT / HELP / STATS Overlays ── */
#select-overlay, #help-overlay, #stats-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 120;
  padding: 20px;
}
#select-overlay.hidden, #help-overlay.hidden, #stats-overlay.hidden { display: none; }

#select-box, #help-box, #stats-box {
  background: #1e1e1e;
  border: 1.5px solid #444;
  border-radius: 14px;
  padding: 24px 22px 18px;
  text-align: center;
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  width: 460px;
}

.aux-title {
  font-size: 18px; font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 4px;
  color: var(--accent);
}
.aux-sub {
  font-size: 11px; color: #888;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* ── Level-Select Grid ── */
#select-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.select-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid #333;
  color: #aaa;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 0 4px;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s, border-color 0.1s, transform 0.08s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.select-btn:hover { background: rgba(255,255,255,0.10); border-color: #666; color: #ddd; }
.select-btn:active { transform: scale(0.94); }
.select-btn.current { border-color: var(--accent); color: var(--accent); }
.select-btn.cleared { border-color: #2e7d32; color: #66bb6a; }
.select-btn.cleared.current { border-color: var(--accent); color: var(--accent); }
.select-btn .sb-num { font-size: 13px; }
.select-btn .sb-deaths { font-size: 9px; opacity: 0.7; letter-spacing: 0.5px; }

/* ── Help Sections ── */
.help-section {
  text-align: left;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.help-h {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.help-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ccc;
  padding: 3px 0;
}
.help-row b { color: #fff; letter-spacing: 1px; }
.help-row span { color: #aaa; }
.help-tiles {
  font-size: 11px;
  color: #ccc;
  line-height: 1.9;
}
.help-tiles span {
  display: inline-block;
  font-weight: bold;
  font-size: 13px;
}
.t-good { color: #6d4c41; }
.t-spike { color: #e53935; }
.t-saw { color: #b0bec5; }
.t-bounce { color: #7e57c2; }
.t-ice { color: #80deea; }
.t-chk { color: #66bb6a; }
.t-fake { color: #43a047; opacity: 0.7; }
.t-exit { color: #ffd700; }
.t-fakeexit { color: #ffd700; opacity: 0.5; }
.t-rev { color: #ff9800; }
.t-grav { color: #4fc3f7; }

/* ── Stats Content ── */
#stats-content {
  text-align: left;
  font-size: 13px;
  color: #ccc;
  line-height: 1.7;
}
#stats-content .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #2a2a2a;
}
#stats-content .stat-row b { color: #fff; }
#stats-content .stat-row span { color: var(--accent); font-weight: bold; }
#stats-content .stat-h {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 12px 0 6px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 4px;
}

@media (max-width: 480px) {
  #select-grid { grid-template-columns: repeat(5, 1fr); }
}


/* ── Achievement Toast ── */
.ach-toast {
  position: fixed;
  top: 70px;
  right: 16px;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2018 100%);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 12px 18px 14px;
  min-width: 200px;
  max-width: 280px;
  z-index: 200;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
  pointer-events: none;
}
.ach-toast.show { transform: translateX(0); }
.ach-toast-h {
  font-size: 10px;
  color: #ffd700;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 4px;
}
.ach-toast-name {
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.ach-toast-desc {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* Achievement rows in stats */
.ach-row.ach-locked b { color: #777 !important; }
.ach-row.ach-locked span { color: #555 !important; }
.ach-row.ach-unlocked b { color: #ffd700 !important; }
.ach-row.ach-unlocked span { color: #ddd !important; }


/* ═══════════════════════════════════════════════════════════════
   LANDSCAPE-MODE auf Mobile (Höhe < 500px)
   Menü + Overlays kompakter — 2-Spalten-Layout
   ═══════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 500px) {
  /* Menü-Box: 2 Spalten Buttons, kompakter */
  #menu-box {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    max-width: 480px;
    width: auto;
    padding: 12px 14px 10px;
    gap: 5px 6px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #menu-title, #menu-info, #menu-resume,
  #menu-nav, .menu-clear {
    flex: 1 0 100%;
    margin: 0;
  }
  .menu-action {
    flex: 1 0 calc(50% - 3px);
    margin: 0;
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  #menu-resume { padding: 10px 14px; font-size: 13px; }
  #menu-title { font-size: 16px; margin-bottom: 2px; }
  #menu-info { font-size: 10px; margin-bottom: 6px; }
  #menu-nav { margin-top: 4px; }
  .menu-nav-btn { font-size: 11px; padding: 6px; }
  .menu-clear { margin-top: 6px; font-size: 10px; padding: 8px; }
  .menu-action-small { width: 24px; height: 24px; font-size: 12px; top: 6px; right: 6px; }

  /* Level-Select Grid — kompakter */
  #select-box, #help-box, #stats-box {
    padding: 14px 16px 10px;
    max-height: calc(100dvh - 24px);
    width: 92vw;
    max-width: 680px;
  }
  .aux-title { font-size: 14px; margin-bottom: 2px; }
  .aux-sub { font-size: 10px; margin-bottom: 8px; }
  #select-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
  }
  .select-btn { padding: 6px 0 2px; font-size: 11px; }
  .select-btn .sb-num { font-size: 11px; }
  .select-btn .sb-deaths { font-size: 8px; }

  /* Help-Box: Sections nebeneinander statt unter */
  #help-box {
    width: 92vw;
    max-width: 720px;
  }
  #help-box .help-section {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 4px);
    margin-right: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  #help-box .help-section:last-of-type {
    display: block;
    width: 100%;
    margin-right: 0;
  }
  .help-h { font-size: 11px; margin-bottom: 5px; }
  .help-row { font-size: 11px; padding: 2px 0; }
  .help-tiles { font-size: 10px; line-height: 1.7; }

  /* Stats-Box: kompakter */
  #stats-content { font-size: 11px; line-height: 1.4; }
  #stats-content .stat-row { padding: 2px 0; }
  #stats-content .stat-h { font-size: 11px; margin: 8px 0 4px; }
}

/* Kleine Portrait-Geräte: Höhe-Sicherheit */
@media (orientation: portrait) and (max-width: 480px) {
  #menu-box, #select-box, #help-box, #stats-box {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ── Leaderboard ── */
#lb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 120; padding: 20px;
}
#lb-overlay.hidden { display: none; }
#lb-box {
  background: #1e1e1e;
  border: 1.5px solid #444;
  border-radius: 14px;
  padding: 22px 22px 18px;
  text-align: center;
  position: relative;
  width: 460px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
}
#lb-submit-row { display: flex; gap: 6px; margin-bottom: 8px; }
#lb-name {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid #333;
  border-radius: 6px;
  color: #fff; font-family: inherit; font-size: 13px;
  padding: 8px 12px; letter-spacing: 1px; outline: none; text-align: center;
}
#lb-name:focus { border-color: var(--accent); }
#lb-submit-btn {
  background: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 6px; color: #fff;
  font-family: inherit; font-size: 11px; font-weight: bold;
  padding: 8px 12px; letter-spacing: 1.5px;
  cursor: pointer; touch-action: manipulation;
}
#lb-submit-btn:active { transform: scale(0.96); }
#lb-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#lb-status {
  font-size: 11px; color: #f9a825;
  margin-bottom: 8px; min-height: 14px; letter-spacing: 0.5px;
}
#lb-list { text-align: left; font-size: 12px; color: #ccc; }
.lb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 8px; padding: 5px 6px;
  border-bottom: 1px dashed #2a2a2a; align-items: center;
}
.lb-row.lb-self {
  background: rgba(229,57,53,0.10);
  border-color: var(--accent); border-radius: 4px;
}
.lb-rank { font-weight: bold; color: #888; text-align: center; }
.lb-row.lb-top-3 .lb-rank { color: #ffd700; }
.lb-name { color: #fff; font-weight: bold; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
.lb-cleared { color: #66bb6a; font-weight: bold; min-width: 36px; text-align: right; }
.lb-deaths { color: var(--accent); min-width: 50px; text-align: right; font-size: 11px; }
.lb-row.lb-completed .lb-name::after { content: ' ★'; color: #ffd700; }

@media (orientation: landscape) and (max-height: 500px) {
  #lb-box { width: 92vw; max-width: 720px; padding: 14px 16px 10px; }
  .lb-row { padding: 3px 4px; font-size: 11px; }
}
