:root {
  color-scheme: light;
  font-family: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --cream: #fffaf1;
  --paper: rgba(255, 250, 241, 0.94);
  --brown: #5b351e;
  --pink: #d96f78;
  --pink-dark: #ad4f5d;
  --green: #73994f;
  --gold: #d59d32;
  --shadow: 0 18px 48px rgba(55, 31, 12, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #1d2d22; }
button { font: inherit; }
button:focus-visible { outline: 4px solid rgba(255, 220, 95, 0.9); outline-offset: 3px; }
.hidden { display: none !important; }

.game-shell { position: relative; width: 100vw; height: 100dvh; overflow: hidden; background: #d9e7bd; }
.screen { position: absolute; inset: 0; }

.loading-screen { display: grid; place-items: center; background: radial-gradient(circle at top, #fffdf7, #ead8b9); z-index: 50; }
.loading-card { width: min(520px, calc(100vw - 36px)); padding: 32px; border-radius: 28px; text-align: center; color: var(--brown); background: var(--paper); box-shadow: var(--shadow); border: 4px solid rgba(139, 87, 43, 0.24); }
.loading-yarn { font-size: 64px; animation: bob 1.1s ease-in-out infinite alternate; }
.loading-card h2 { margin: 8px 0; font-size: clamp(28px, 6vw, 48px); }
.loading-track { height: 16px; overflow: hidden; border-radius: 999px; background: #e9d9c5; border: 2px solid #b98f6e; }
.loading-bar { width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #f2ac87); transition: width 180ms ease; }

.orientation-gate {
  z-index: 48;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  color: var(--brown);
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.86), transparent 27%),
    linear-gradient(155deg, #fffaf0, #ead8bc 58%, #d9bea0);
}
.orientation-gate__card {
  width: min(560px, 100%);
  padding: clamp(28px, 6vw, 48px);
  border: 4px solid rgba(91,53,30,.2);
  border-radius: 30px;
  background: rgba(255,250,241,.95);
  box-shadow: var(--shadow);
  text-align: center;
}
.orientation-gate__icon { display: block; font-size: clamp(64px, 18vw, 96px); line-height: 1; }
.orientation-gate__kicker { margin: 18px 0 5px; color: var(--pink-dark); font-size: 13px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.orientation-gate h2 { margin: 0; font-size: clamp(32px, 9vw, 54px); line-height: 1.03; }
.orientation-gate__card > p:last-child { margin: 16px auto 0; max-width: 440px; font-size: clamp(16px, 4vw, 20px); line-height: 1.45; }

.start-screen {
  overflow: auto;
  color: var(--brown);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, .74), transparent 28%),
    linear-gradient(180deg, #cce4ed 0%, #e8f0d0 46%, #86b862 100%);
}
.start-screen::before,
.start-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.start-screen::before {
  z-index: 0;
  left: -8vw;
  right: -8vw;
  bottom: -25vh;
  height: 57vh;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .8) 0 3px, transparent 4px),
    radial-gradient(circle at 28% 35%, #f2c6ce 0 4px, transparent 5px),
    radial-gradient(circle at 76% 24%, #fff3bd 0 4px, transparent 5px),
    linear-gradient(180deg, #95c76e, #629747);
  background-size: 65px 55px, 95px 82px, 120px 96px, auto;
  box-shadow: inset 0 14px 30px rgba(255, 255, 255, .24);
}
.start-screen::after {
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 241, .16), transparent 48%, rgba(38, 77, 47, .08));
}
.start-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(350px, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 64px);
  width: min(1480px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 48px) clamp(22px, 4.5vw, 76px);
}
.start-panel {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.8vh, 20px);
  width: min(590px, 100%);
}
.start-logo {
  display: block;
  width: min(540px, 100%);
  max-height: min(25vh, 245px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 18px rgba(42, 24, 11, .2));
}
.start-copy {
  width: 100%;
  padding: clamp(16px, 2.3vw, 26px);
  border: 3px solid rgba(91, 53, 30, .15);
  border-radius: 24px;
  background: rgba(255, 250, 241, .92);
  box-shadow: 0 14px 35px rgba(48, 30, 15, .18);
  backdrop-filter: blur(10px);
}
.start-kicker {
  margin: 0 0 6px !important;
  color: var(--pink-dark);
  font-size: clamp(12px, 1.4vw, 15px) !important;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.start-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 3.3vw, 48px);
  line-height: 1.08;
}
.start-copy p {
  margin: 0;
  font-size: clamp(15px, 1.55vw, 20px);
  line-height: 1.48;
}
.start-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.image-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.image-button:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.05); }
.image-button:active { transform: translateY(1px) scale(.98); }
.image-button img { display: block; width: clamp(190px, 19vw, 265px); height: auto; }
.secondary-button, .primary-text-button, .link-button { border: 0; cursor: pointer; font-weight: 800; }
.secondary-button { padding: 14px 22px; color: var(--brown); background: var(--cream); border-radius: 16px; border: 3px solid rgba(91, 53, 30, .28); box-shadow: 0 7px 15px rgba(55, 31, 12, .18); }
.primary-text-button { padding: 15px 28px; color: white; background: linear-gradient(#82a95c, #648a43); border-radius: 17px; box-shadow: 0 7px 15px rgba(55, 31, 12, .2); }
.link-button { padding: 10px; color: var(--brown); background: transparent; text-decoration: underline; }
.start-highscore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--brown);
  border: 2px solid rgba(91, 53, 30, .12);
  border-radius: 999px;
  background: rgba(255, 250, 241, .92);
  box-shadow: 0 7px 18px rgba(55, 31, 12, .12);
  font-size: clamp(15px, 1.5vw, 18px);
}
.start-scene {
  position: relative;
  min-height: min(720px, calc(100dvh - 42px));
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(243, 239, 222, .88), rgba(233, 245, 254, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.start-scene::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.02));
  pointer-events: none;
}
.start-scene-poster {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
  filter: saturate(1.02) contrast(1.02);
}
  50% { transform: translateY(-8px) rotate(.4deg); }
}

.game-screen { background: #94bd72; }
#gameCanvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: stretch; width: min(1020px, calc(100% - 24px)); pointer-events: none; }
.hud-panel { flex: 1 1 0; min-width: 112px; padding: 8px 14px; border: 3px solid rgba(101, 63, 32, .34); border-radius: 16px; color: var(--brown); background: var(--paper); box-shadow: 0 8px 20px rgba(44, 31, 19, .18); text-align: center; }
.hud-panel span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hud-panel strong { display: block; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.1; }
.hud-icon-button { flex: 0 0 52px; border: 3px solid rgba(101, 63, 32, .34); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 20px rgba(44, 31, 19, .18); cursor: pointer; pointer-events: auto; font-size: 22px; }
.status-pills { position: absolute; z-index: 5; top: 92px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; pointer-events: none; }
.status-pill { padding: 8px 13px; color: var(--brown); background: rgba(255, 250, 241, .92); border-radius: 999px; border: 2px solid rgba(91, 53, 30, .2); font-weight: 800; box-shadow: 0 5px 12px rgba(55,31,12,.15); }
.fact-card { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); padding: 13px 18px; border-radius: 18px; color: var(--brown); background: rgba(255, 250, 241, .94); box-shadow: var(--shadow); text-align: center; font-weight: 700; pointer-events: none; }
.toast { position: absolute; z-index: 8; top: 142px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; color: white; background: rgba(75, 45, 26, .9); box-shadow: 0 8px 24px rgba(0,0,0,.24); font-weight: 800; pointer-events: none; animation: toast-in .22s ease-out; }

.touch-controls { display: none; position: absolute; z-index: 6; left: max(18px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); width: 150px; height: 150px; user-select: none; }
.touch-joystick { appearance: none; display: block; width: 150px; height: 150px; margin: 0; padding: 0; position: relative; overflow: hidden; border: 3px solid rgba(255,255,255,.72); border-radius: 50%; color: white; background: radial-gradient(circle at 50% 45%, rgba(244,222,196,.34), rgba(75,50,34,.72)); backdrop-filter: blur(6px); box-shadow: 0 10px 26px rgba(0,0,0,.25), inset 0 0 0 8px rgba(255,255,255,.1); touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.touch-joystick__cross { background: rgba(255,255,255,.3); border-radius: 999px; left: 50%; pointer-events: none; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.touch-joystick__cross--horizontal { height: 18px; width: 104px; }
.touch-joystick__cross--vertical { height: 104px; width: 18px; }
.touch-joystick__knob { background: linear-gradient(145deg, #f2adad, #c94f60); border: 3px solid rgba(255,255,255,.86); border-radius: 50%; box-shadow: 0 7px 18px rgba(68,32,22,.34); height: 62px; left: calc(50% - 31px); pointer-events: none; position: absolute; top: calc(50% - 31px); transition: transform 120ms ease; width: 62px; }
.touch-joystick.is-active .touch-joystick__knob { transition: none; }

.modal-layer { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(32, 47, 34, .62); backdrop-filter: blur(8px); }
.modal-card { width: min(480px, 96vw); max-height: 92vh; overflow: auto; padding: 24px; border-radius: 28px; color: var(--brown); background: var(--paper); border: 4px solid rgba(91,53,30,.22); box-shadow: var(--shadow); text-align: center; }
.modal-character { width: min(210px, 52vw); max-height: 230px; object-fit: contain; margin: -6px auto 0; }
.modal-card h2 { margin: 4px 0 8px; font-size: clamp(26px, 6vw, 42px); }
.modal-card p { font-size: 17px; }
.modal-card > button { display: block; width: 100%; margin-top: 10px; }
.help-card { text-align: left; }
.help-card h2 { text-align: center; }
.help-card ol { padding-left: 24px; line-height: 1.55; }
.result-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; margin: 18px 0; padding: 16px; border-radius: 18px; background: #f3e8d7; text-align: left; font-size: 18px; }
.result-grid strong { text-align: right; }
.new-highscore { color: #a46300; font-weight: 900; font-size: 21px !important; }

@keyframes bob { to { transform: translateY(-10px) rotate(4deg); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.95); } }

@media (max-width: 980px) {
  .start-layout {
    grid-template-columns: minmax(310px, .95fr) minmax(330px, 1.05fr);
    gap: 12px;
    padding-inline: clamp(18px, 3vw, 34px);
  }
  .start-scene { min-height: min(680px, calc(100dvh - 34px)); }
}

@media (max-width: 760px), (pointer: coarse) {
  .touch-controls { display: block; }
  .hud { top: max(8px, env(safe-area-inset-top)); gap: 5px; }
  .hud-panel { min-width: 0; padding: 7px 5px; border-width: 2px; border-radius: 12px; }
  .hud-panel.highscore { display: none; }
  .hud-icon-button { flex-basis: 44px; border-radius: 12px; }
  .status-pills { top: 112px; }
  .mission-guide { top: 70px; }
  .fact-card { bottom: 12px; width: calc(100% - 210px); left: auto; right: 12px; transform: none; font-size: 13px; text-align: left; }

  .start-layout {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    min-height: auto;
    padding: max(16px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  }
  .start-panel { align-items: center; width: 100%; gap: 10px; }
  .start-logo { width: min(440px, 92vw); max-height: 150px; object-position: center; }
  .start-copy { max-width: 620px; padding: 14px 17px; text-align: center; }
  .start-copy h1 { font-size: clamp(25px, 7vw, 36px); }
  .start-actions { justify-content: center; }
  .start-highscore { margin-inline: auto; }
  .start-scene { min-height: 390px; height: 42vh; max-height: 520px; width: 100%; }
  .start-scene-poster { object-position: center top; }
}

@media (max-width: 480px) {
  .start-logo { max-height: 118px; }
  .start-kicker { display: none; }
  .start-copy p { font-size: 14px; }
  .start-actions { width: 100%; gap: 8px; }
  .image-button img { width: min(220px, 64vw); }
  .secondary-button { padding: 11px 15px; font-size: 14px; }
  .start-scene { height: 38vh; min-height: 320px; }
  .start-scene-poster { object-position: center top; }
}

@media (max-height: 650px) and (min-width: 761px) {
  .start-layout { padding-block: 14px; }
  .start-panel { gap: 8px; }
  .start-logo { max-height: 145px; width: min(420px, 100%); }
  .start-copy { padding: 12px 16px; }
  .start-copy h1 { font-size: clamp(24px, 3.5vw, 34px); }
  .start-copy p { font-size: 14px; }
  .image-button img { width: 190px; }
  .secondary-button { padding: 11px 16px; }
  .start-highscore { padding: 8px 13px; font-size: 15px; }
  .start-scene { min-height: calc(100dvh - 28px); }
}

@media (max-height: 560px) and (orientation: landscape) {
  .touch-controls { transform: scale(.82); transform-origin: left bottom; }
  body.controls-right .touch-controls { transform-origin: right bottom; }
  .fact-card { display: none !important; }
}

/* Rangliste V4 */
.start-ranking {
  width: min(430px, 100%);
  padding: 12px 15px;
  border: 2px solid rgba(91, 53, 30, .14);
  border-radius: 20px;
  background: rgba(255, 250, 241, .92);
  box-shadow: 0 9px 22px rgba(55, 31, 12, .14);
}
.ranking-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}
.ranking-heading-row h2,
.result-ranking h3 {
  margin: 0;
  color: var(--brown);
  font-size: 17px;
}
.ranking-link {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--pink-dark);
  cursor: pointer;
  font-weight: 900;
}
.leaderboard-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ranking;
}
.leaderboard-entry {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 13px;
  color: var(--brown);
  background: #f3e8d7;
  border: 2px solid rgba(91, 53, 30, .08);
}
.leaderboard-entry:nth-child(1) { background: #fff2bf; }
.leaderboard-entry:nth-child(2) { background: #efeee9; }
.leaderboard-entry:nth-child(3) { background: #f1dac3; }
.leaderboard-rank { text-align: center; font-weight: 900; }
.leaderboard-initials { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.leaderboard-score { font-weight: 900; font-variant-numeric: tabular-nums; }
.leaderboard-empty {
  padding: 12px;
  border-radius: 13px;
  color: rgba(91,53,30,.76);
  background: #f3e8d7;
  text-align: center;
  font-weight: 700;
}
.leaderboard-entry.is-new-entry {
  outline: 4px solid rgba(217, 111, 120, .45);
  animation: ranking-pop .55s ease both;
}
.leaderboard-list.compact { gap: 5px; }
.leaderboard-list.compact .leaderboard-entry { min-height: 31px; padding-block: 4px; }
.mobile-note { margin: 9px 0 0; font-size: 13px; font-weight: 800; opacity: .78; }

.result-card { width: min(650px, 96vw); }
.result-ranking {
  margin: 14px 0;
  padding: 13px;
  border-radius: 18px;
  background: rgba(243, 232, 215, .72);
  text-align: left;
}
.result-ranking h3 { margin-bottom: 9px; text-align: center; font-size: 20px; }
.initials-form {
  margin: 14px 0 9px;
  padding: 15px;
  border-radius: 18px;
  background: #fff2d3;
  border: 3px solid rgba(213,157,50,.36);
  text-align: left;
}
.initials-form label { display: block; margin-bottom: 9px; font-weight: 900; }
.initials-row { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 10px; align-items: center; }
.initials-row input {
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 3px solid rgba(91,53,30,.3);
  border-radius: 14px;
  color: var(--brown);
  background: white;
  font: 800 20px/1.1 ui-rounded, system-ui, sans-serif;
  letter-spacing: .02em;
  text-align: left;
}
.initials-row .primary-text-button { margin: 0; }
.initials-form small { display: block; margin-top: 8px; opacity: .72; }
.qualification-message { margin: 8px 0 0 !important; font-weight: 800; }
.leaderboard-modal-card { width: min(540px, 96vw); }
.leaderboard-modal-card > p { margin-top: 4px; }

/* Spielfeld ohne Verzerrung: Desktop und Handy nutzen immer 16:9. */
.game-screen {
  display: grid;
  place-items: center;
  background: #1d2d22;
}
.game-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#gameCanvas {
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  max-width: 100%;
  max-height: 100%;
  background: #94bd72;
  box-shadow: 0 0 50px rgba(0,0,0,.38);
}
.orientation-hint {
  display: none;
  position: absolute;
  z-index: 40;
  inset: 0;
  place-content: center;
  gap: 8px;
  padding: 28px;
  color: var(--brown);
  background: linear-gradient(180deg, #f9f0df, #e8d5b8);
  text-align: center;
}
.orientation-hint span { font-size: 68px; }
.orientation-hint strong { font-size: 24px; }
.orientation-hint small { font-size: 15px; }

.control-side-layer {
  position: absolute;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(30, 43, 32, .70);
  backdrop-filter: blur(9px);
}
.control-side-layer.hidden { display: none; }
.control-side-card {
  width: min(680px, 96vw);
  max-height: 94dvh;
  overflow: auto;
  padding: 20px 22px;
  border: 4px solid rgba(91,53,30,.24);
  border-radius: 28px;
  color: var(--brown);
  background: linear-gradient(180deg, #fffaf0, #f3e3cc);
  box-shadow: var(--shadow);
  text-align: center;
}
.control-side-icon { font-size: 34px; line-height: 1; }
.control-side-kicker { margin: 7px 0 1px; color: var(--pink-dark); font-size: 12px; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.control-side-card h2 { margin: 3px 0 5px; font-size: clamp(24px, 4.8vw, 36px); }
.control-side-card > p:not(.control-side-kicker) { margin: 0 auto 14px; max-width: 560px; font-size: 15px; font-weight: 700; }
.control-side-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.control-side-option {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 3px solid rgba(91,53,30,.18);
  border-radius: 20px;
  color: var(--brown);
  background: rgba(255,255,255,.78);
  box-shadow: 0 7px 16px rgba(55,31,12,.11);
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.control-side-option:hover,
.control-side-option:focus-visible { border-color: var(--pink-dark); outline: 3px solid rgba(217,111,120,.28); outline-offset: 2px; transform: translateY(-1px); }
.control-side-option strong { font-size: 18px; }
.control-side-option small { font-size: 12px; line-height: 1.3; opacity: .78; }
.control-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 8px 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, #badca0, #79ad5f);
}
.control-preview i { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.86); border-radius: 50%; background: rgba(75,50,34,.66); box-shadow: inset 0 0 0 8px rgba(255,255,255,.12); }
.control-preview b { font-size: 31px; line-height: 1; }

.mission-guide {
  position: absolute;
  z-index: 6;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  border: 3px solid rgba(91,53,30,.22);
  border-radius: 999px;
  color: var(--brown);
  background: rgba(255,248,214,.96);
  box-shadow: 0 7px 18px rgba(55,31,12,.18);
  font-size: clamp(13px, 1.7vw, 17px);
  font-weight: 950;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}
.mission-guide.is-deliver { background: rgba(255,226,123,.97); border-color: rgba(174,111,21,.38); animation: mission-pulse 1.15s ease-in-out infinite alternate; }
.game-screen:not(.round-active) .mission-guide { display: none; }
@keyframes mission-pulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.035); } }

body.controls-right .touch-controls { left: auto; right: max(18px, env(safe-area-inset-right)); }

.control-side-card { width: min(620px, 94vw); }
.control-side-card__icon { display: block; font-size: clamp(44px, 9vw, 68px); line-height: 1; }
.control-side-card > p { margin-inline: auto; max-width: 32rem; }
.control-side-card__actions { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.control-side-button { align-items: center; background: linear-gradient(180deg, #fffaf1, #f0dfc9); border: 3px solid rgba(91,53,30,.24); border-radius: 18px; color: var(--brown); cursor: pointer; display: flex; font-size: 19px; gap: 12px; justify-content: center; min-height: 76px; padding: 14px; }
.control-side-button:hover, .control-side-button:focus-visible { background: #fff2bf; border-color: var(--gold); }
.control-side-button span { color: var(--pink-dark); font-size: 30px; }
.leaderboard-status { background: #eef4e6; border: 2px solid rgba(115,153,79,.2); border-radius: 13px; color: #49652f; font-size: 14px !important; font-weight: 800; margin: 10px 0 14px !important; padding: 9px 12px; }
.leaderboard-status.is-local { background: #fff2d3; border-color: rgba(213,157,50,.35); color: #765315; }

/* Ranglistenwerte bleiben in jeder Ansicht sauber in drei bündigen Spalten. */
.leaderboard-list .leaderboard-entry {
  grid-template-columns: 2.8rem minmax(0, 1fr) minmax(5.5rem, auto);
  width: 100%;
}
.leaderboard-list .leaderboard-rank { justify-self: center; }
.leaderboard-list .leaderboard-initials { justify-self: stretch; text-align: left; }
.leaderboard-list .leaderboard-score { justify-self: end; min-width: 5.5rem; text-align: right; }

@media (max-width: 520px) {
  .control-side-card__actions { grid-template-columns: 1fr; }
}
body.controls-right .site-back-link { right: auto; left: max(12px, env(safe-area-inset-left)); }
.touch-joystick {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes ranking-pop {
  0% { transform: scale(.93); opacity: .35; }
  70% { transform: scale(1.025); }
  100% { transform: scale(1); opacity: 1; }
}

@media (pointer: coarse) and (orientation: portrait) {
  .game-screen.round-active:not(.hidden) .orientation-hint { display: grid; }
  .game-screen.round-active:not(.hidden) .hud,
  .game-screen.round-active:not(.hidden) .touch-controls,
  .game-screen.round-active:not(.hidden) .mission-guide,
  .game-screen.round-active:not(.hidden) .status-pills,
  .game-screen.round-active:not(.hidden) .fact-card,
  .game-screen.round-active:not(.hidden) .toast { visibility: hidden; }
}

@media (max-width: 760px), (pointer: coarse) {
  .start-ranking { width: min(500px, 100%); }
  .mobile-note { text-align: center; }
  .result-card { width: min(680px, 98vw); padding: 16px; }
  .result-card .modal-character { display: none; }
  .result-grid { margin: 7px 0; padding: 10px 13px; font-size: 15px; }
  .result-ranking { margin: 9px 0; padding: 9px; }
  .leaderboard-entry { min-height: 31px; padding: 4px 8px; }
  .initials-form { margin: 9px 0; padding: 11px; }
}

@media (max-height: 560px) and (orientation: landscape) and (pointer: coarse) {
  .hud { width: min(940px, calc(100% - 180px)); left: calc(50% + 60px); }
  body.controls-right .hud { left: calc(50% - 60px); }
  .hud-panel { padding-block: 4px; }
  .hud-panel span { font-size: 9px; }
  .hud-panel strong { font-size: 17px; }
  .hud-icon-button { flex-basis: 40px; font-size: 18px; }
  .status-pills { display: none; }
  .touch-controls { left: max(8px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); transform: scale(.78); }
  body.controls-right .touch-controls { left: auto; right: max(8px, env(safe-area-inset-right)); transform-origin: right bottom; }
  .mission-guide { top: 60px; max-width: calc(100% - 210px); padding: 6px 11px; font-size: 12px; }
  body.controls-left .mission-guide { left: calc(50% + 58px); }
  body.controls-right .mission-guide { left: calc(50% - 58px); }
  .toast { top: 94px; font-size: 13px; }
  .control-side-card { width: min(620px, 95vw); padding: 12px 15px; }
  .control-side-icon { display: none; }
  .control-side-card h2 { font-size: 22px; }
  .control-side-card > p:not(.control-side-kicker) { margin-bottom: 8px; font-size: 12px; }
  .control-side-options { gap: 9px; }
  .control-side-option { grid-template-columns: 92px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 9px; padding: 8px; text-align: left; }
  .control-side-option .control-preview { grid-row: 1 / 3; width: 92px; min-height: 50px; padding: 6px 8px; }
  .control-preview i { width: 34px; height: 34px; border-width: 3px; }
  .control-preview b { font-size: 25px; }
  .control-side-option strong { font-size: 15px; }
  .control-side-option small { font-size: 10px; }
  .modal-card { max-height: 96dvh; }
}

@media (max-width: 640px) {
  .initials-row { grid-template-columns: 1fr; }
  .initials-row input { min-height: 50px; }
}

.site-back-link {
  position: fixed;
  z-index: 120;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 2px solid rgba(91, 53, 30, .24);
  border-radius: 999px;
  color: var(--brown);
  background: rgba(255, 250, 239, .9);
  box-shadow: 0 8px 22px rgba(46, 29, 19, .16);
  font: 850 13px/1.1 ui-rounded, system-ui, sans-serif;
  text-decoration: none;
  backdrop-filter: blur(9px);
}

.site-back-link:hover,
.site-back-link:focus-visible {
  background: #fffaf0;
  outline: 3px solid #f1b247;
  outline-offset: 2px;
}

@media (max-height: 560px) and (orientation: landscape) {
  .site-back-link {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* =========================================================
   V46 – kompakter Startscreen ohne Scrollen
   ========================================================= */
.start-screen {
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 11%, rgba(139, 153, 73, .13), transparent 17%),
    radial-gradient(circle at 92% 85%, rgba(217, 111, 120, .11), transparent 18%),
    linear-gradient(180deg, #fffaf0 0%, #f8efd9 100%);
}
.start-screen::before {
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 2% 15%, rgba(108, 135, 63, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 98% 86%, rgba(217, 111, 120, .18) 0 3px, transparent 4px);
  background-size: 78px 68px, 96px 82px;
  box-shadow: inset 0 0 90px rgba(117, 83, 42, .06);
}
.start-screen::after {
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.10), transparent 55%, rgba(100, 124, 61, .04));
}
.start-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 52px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.start-layout {
  display: grid;
  grid-template-columns: minmax(430px, .86fr) minmax(560px, 1.14fr);
  align-items: stretch;
  gap: clamp(20px, 2.6vw, 44px);
  width: min(1540px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px, 2.3vh, 28px) clamp(22px, 3.4vw, 54px) clamp(14px, 1.8vh, 22px);
}
.start-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr) auto;
  align-content: center;
  gap: clamp(7px, 1.1vh, 12px);
  width: 100%;
  min-width: 0;
  height: 100%;
  max-height: 800px;
  align-self: center;
}
.start-logo {
  width: min(510px, 100%);
  max-height: clamp(105px, 17vh, 160px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 12px rgba(42, 24, 11, .16));
}
.start-copy {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.start-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 clamp(6px, .8vh, 10px) 18% !important;
  padding: 5px 22px 6px;
  color: #fffaf1;
  border-radius: 4px;
  background: linear-gradient(180deg, #df7a83, #c65b68);
  box-shadow: inset 0 0 0 2px rgba(128, 65, 56, .18), 0 4px 10px rgba(93, 48, 35, .12);
  font-size: clamp(11px, 1.2vw, 14px) !important;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
  transform: rotate(-.35deg);
}
.start-copy h1 {
  margin: 0 0 clamp(5px, .7vh, 9px);
  font-size: clamp(33px, 3.35vw, 55px);
  line-height: .99;
  letter-spacing: -.035em;
}
.start-copy p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(14px, 1.25vw, 19px);
  line-height: 1.36;
}
.start-copy p strong { color: var(--pink-dark); }
.start-actions {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(155px, .85fr);
  align-items: center;
  gap: 12px;
  width: min(590px, 100%);
  flex-wrap: nowrap;
}
.start-button { width: 100%; }
.start-button img {
  width: 100%;
  max-width: 330px;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}
.start-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 14px;
  border-width: 2px;
  border-radius: 16px;
  background: rgba(255, 250, 241, .94);
  font-size: clamp(13px, 1.15vw, 17px);
}
.start-meta-grid {
  display: grid;
  grid-template-columns: minmax(180px, .82fr) minmax(230px, 1.18fr);
  gap: 12px;
  width: min(590px, 100%);
  min-height: 0;
}
.start-highscore {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 3px solid rgba(115, 78, 39, .20);
  border-radius: 20px;
  background: rgba(255, 250, 241, .93);
  box-shadow: 0 8px 18px rgba(75, 48, 29, .11), inset 0 0 0 1px rgba(255,255,255,.65);
}
.start-highscore-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 34px;
  filter: drop-shadow(0 3px 3px rgba(100, 61, 20, .18));
}
.start-highscore-copy { min-width: 0; }
.start-highscore-copy span {
  display: block;
  font-size: clamp(10px, .92vw, 13px);
  font-weight: 850;
  line-height: 1.15;
}
.start-highscore-copy strong {
  display: block;
  margin-top: 3px;
  color: #c64d5b;
  font-size: clamp(28px, 3vw, 46px);
  line-height: .95;
  font-variant-numeric: tabular-nums;
}
.start-ranking {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 8px 10px 10px;
  border: 3px solid rgba(115, 78, 39, .20);
  border-radius: 20px;
  background: rgba(255, 250, 241, .93);
  box-shadow: 0 8px 18px rgba(75, 48, 29, .11), inset 0 0 0 1px rgba(255,255,255,.65);
}
.start-ranking .ranking-heading-row {
  min-height: 27px;
  margin: -17px 6px 5px;
  justify-content: center;
  gap: 8px;
}
.start-ranking .ranking-heading-row h2 {
  min-width: 112px;
  margin: 0;
  padding: 5px 14px;
  color: #fffaf1;
  border-radius: 5px;
  background: linear-gradient(180deg, #df7a83, #c65b68);
  box-shadow: 0 3px 8px rgba(93, 48, 35, .16);
  font-size: 13px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.start-ranking .ranking-link {
  position: absolute;
  right: 7px;
  padding: 4px 7px;
  font-size: 10px;
}
.start-ranking .leaderboard-list.compact {
  gap: 3px;
}
.start-ranking .leaderboard-list.compact .leaderboard-entry {
  min-height: 28px;
  padding: 3px 7px;
  border-radius: 9px;
  font-size: clamp(10px, .92vw, 13px);
}
.start-ranking .leaderboard-empty {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 6px;
  font-size: 11px;
  text-align: center;
}
.mobile-note {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  opacity: .68;
}
.start-scene {
  position: relative;
  align-self: center;
  width: 100%;
  height: min(100%, 760px);
  min-height: 0;
  border: 9px solid #f6ecd6;
  border-radius: 32px;
  overflow: hidden;
  background: #e8d7b5;
  box-shadow:
    0 15px 34px rgba(61, 43, 25, .18),
    inset 0 0 0 3px rgba(120, 82, 43, .22),
    inset 0 0 0 7px rgba(255,255,255,.42);
}
.start-scene::before {
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px rgba(108, 74, 38, .20);
  background: transparent;
}
.start-scene-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.02) contrast(1.01);
}
.start-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 7px clamp(24px, 4vw, 64px);
  color: #fff7e6;
  background: linear-gradient(180deg, #668746, #4e6f35);
  border-top: 3px solid rgba(77, 54, 28, .30);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.08);
  font-size: clamp(11px, .95vw, 14px);
}
.start-footer span:nth-child(2) { text-align: center; }
.start-footer span:nth-child(3) { text-align: right; }

@media (max-height: 760px) and (min-width: 880px) {
  .start-page { grid-template-rows: minmax(0, 1fr) 40px; }
  .start-layout { padding-top: 10px; padding-bottom: 9px; }
  .start-panel { gap: 5px; }
  .start-logo { max-height: 108px; width: min(430px, 100%); }
  .start-kicker { min-height: 24px; padding-block: 3px; margin-bottom: 4px !important; }
  .start-copy h1 { font-size: clamp(31px, 3.05vw, 44px); }
  .start-copy p { font-size: clamp(12px, 1.05vw, 16px); line-height: 1.27; }
  .start-button img { max-height: 72px; }
  .start-help-button { min-height: 48px; }
  .start-meta-grid { min-height: 108px; }
  .start-highscore { padding: 8px 10px; }
  .start-highscore-icon { width: 38px; height: 38px; font-size: 28px; }
  .start-highscore-copy strong { font-size: 32px; }
  .start-ranking { padding-bottom: 6px; }
  .mobile-note { display: none; }
  .start-footer { min-height: 40px; padding-block: 4px; }
}

@media (max-width: 980px) {
  .start-layout {
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    gap: 16px;
    padding-inline: 18px;
  }
  .start-copy h1 { font-size: clamp(30px, 4vw, 45px); }
  .start-scene { height: min(96%, 700px); }
}

@media (max-width: 820px), (pointer: coarse) {
  .start-page { grid-template-rows: 1fr; }
  .start-footer { display: none; }
  .start-layout {
    grid-template-columns: minmax(300px, .94fr) minmax(340px, 1.06fr);
    gap: 10px;
    width: 100%;
    padding: max(7px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .start-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(88px, 1fr);
    align-items: start;
    gap: 4px;
  }
  .start-logo { width: min(350px, 94%); max-height: 80px; }
  .start-kicker { display: inline-flex; min-height: 20px; margin: 0 0 2px 12% !important; padding: 2px 10px; font-size: 9px !important; }
  .start-copy { text-align: left; }
  .start-copy h1 { margin-bottom: 3px; font-size: clamp(22px, 4.7vw, 31px); line-height: .98; }
  .start-copy p { font-size: clamp(10px, 1.75vw, 13px); line-height: 1.2; }
  .start-actions { gap: 6px; }
  .start-button img { max-height: 58px; }
  .start-help-button { min-height: 40px; padding: 6px 8px; font-size: 11px; }
  .start-meta-grid { grid-template-columns: .8fr 1.2fr; gap: 6px; min-height: 84px; }
  .start-highscore { padding: 6px 7px; border-width: 2px; border-radius: 13px; }
  .start-highscore-icon { width: 28px; height: 28px; font-size: 21px; }
  .start-highscore-copy span { font-size: 8px; }
  .start-highscore-copy strong { font-size: 24px; }
  .start-ranking { padding: 5px 5px 4px; border-width: 2px; border-radius: 13px; }
  .start-ranking .ranking-heading-row { min-height: 19px; margin: -10px 3px 2px; }
  .start-ranking .ranking-heading-row h2 { min-width: 74px; padding: 3px 7px; font-size: 9px; }
  .start-ranking .ranking-link { display: none; }
  .start-ranking .leaderboard-list.compact .leaderboard-entry { min-height: 20px; padding: 1px 4px; font-size: 8px; }
  .start-ranking .leaderboard-empty { min-height: 46px; font-size: 8px; }
  .mobile-note { display: none; }
  .start-scene { width: 100%; height: 100%; min-height: 0; border-width: 5px; border-radius: 20px; }
  .start-scene-poster { border-radius: 14px; object-fit: cover; }
}

@media (orientation: portrait) and (max-width: 760px) {
  .start-screen { overflow: auto; }
  .start-page { height: auto; min-height: 100%; overflow: visible; }
  .start-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
    padding: 12px 14px 18px;
  }
  .start-panel { height: auto; max-height: none; justify-items: center; }
  .start-logo { width: min(420px, 88vw); max-height: 110px; object-position: center; }
  .start-copy { text-align: center; }
  .start-copy h1 br { display: none; }
  .start-actions, .start-meta-grid { width: min(560px, 100%); }
  .start-scene { min-height: 42vh; height: 42vh; }
}


/* ===== V47 approved start-screen rebuild ===== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.start-screen {
  background: linear-gradient(180deg, #d8e7f0, #dce8de 52%, #d4e0c9);
  overflow: hidden;
}
.start-screen::before,
.start-screen::after { display: none !important; }
.start-reference-shell {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 12px 14px;
  box-sizing: border-box;
}
.start-reference-stage {
  position: relative;
  width: min(calc((100dvh - 42px) * 1.93295), calc(100vw - 24px));
  max-width: 1672px;
  aspect-ratio: 1672 / 865;
}
.start-reference-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}
.start-highscore-live {
  position: absolute;
  left: 11.8%;
  top: 77.2%;
  width: 7.9%;
  height: 7.7%;
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
}
.start-highscore-live strong {
  color: #d65c67;
  font-size: clamp(30px, 3.45vw, 62px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.start-ranking-live {
  position: absolute;
  left: 23.75%;
  top: 72.75%;
  width: 17.45%;
  height: 13.25%;
  padding: .4% .45%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.start-ranking-live .leaderboard-list.compact {
  height: 100%;
  gap: 2px;
}
.start-ranking-live .leaderboard-list.compact .leaderboard-entry {
  min-height: 0;
  height: calc((100% - 4px) / 3);
  padding: 0 6px;
  border-radius: 8px;
  font-size: clamp(8px, .78vw, 14px);
  line-height: 1;
}
.start-ranking-live .leaderboard-list.compact .leaderboard-entry .leaderboard-rank {
  width: 18px;
  height: 18px;
  font-size: clamp(9px, .72vw, 12px);
}
.start-ranking-live .leaderboard-list.compact .leaderboard-name {
  font-weight: 800;
}
.start-ranking-live .leaderboard-list.compact .leaderboard-score {
  font-weight: 900;
}
.start-hotspot {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 22px;
}
.start-hotspot:hover {
  outline: none;
  background: transparent;
}
.start-hotspot:focus,
.start-hotspot:active {
  outline: none;
}
.start-hotspot:focus-visible::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  box-shadow: 0 0 0 3px rgba(255, 215, 126, .82);
  pointer-events: none;
}
.start-hotspot--start {
  left: 4.62%;
  top: 58.35%;
  width: 19.95%;
  height: 9.55%;
  border-radius: 28px;
}
.start-hotspot--help {
  left: 25.62%;
  top: 59.45%;
  width: 15.95%;
  height: 6.9%;
  border-radius: 18px;
}
.start-hotspot--leaderboard {
  left: 25.2%;
  top: 73.2%;
  width: 18.6%;
  height: 18.0%;
  border-radius: 20px;
}
.mobile-note {
  margin: 8px 0 0;
  color: rgba(83, 56, 33, .8);
  font-size: 12px;
  font-weight: 800;
}
.start-reference-shell .mobile-note { display: none; }

@media (max-width: 760px), (pointer: coarse) {
  .start-reference-shell {
    padding: max(8px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom));
  }
  .start-reference-stage {
    width: min(calc((100dvh - 20px) * 1.93295), calc(100vw - 16px));
  }
  .start-highscore-live { border-radius: 0; }
  .start-ranking-live { border-radius: 0; }
  .start-ranking-live .leaderboard-list.compact .leaderboard-entry {
    padding-inline: 4px;
    font-size: clamp(7px, 1.5vw, 10px);
  }
}

@media (orientation: portrait) and (max-width: 760px) {
  .start-screen { overflow: auto; }
  .start-reference-shell {
    height: auto;
    min-height: 100%;
    align-content: start;
  }
  .start-reference-stage {
    width: min(100%, calc(100vw - 12px));
  }
}

/* Die laufende Runde bleibt bewusst frei von aufblendenden Textkarten. */
.mission-guide,
.status-pills,
.fact-card,
.toast { display: none !important; }

/* Finale Ranglisten-Geometrie: gilt auch fuer das bildbasierte Startmenue. */
.leaderboard-list .leaderboard-entry {
  grid-template-columns: 2.8rem minmax(0, 1fr) minmax(5.5rem, auto);
  width: 100%;
}
.leaderboard-list .leaderboard-rank { justify-self: center; }
.leaderboard-list .leaderboard-initials { justify-self: stretch; min-width: 0; text-align: left; }
.leaderboard-list .leaderboard-score { justify-self: end; min-width: 5.5rem; text-align: right; }
.start-ranking-live .leaderboard-list.compact .leaderboard-entry {
  grid-template-columns: clamp(16px, 1.5vw, 24px) minmax(0, 1fr) minmax(2.8rem, auto);
}
.start-ranking-live .leaderboard-list.compact .leaderboard-score { min-width: 2.8rem; }
