/* Quiz-Arena precedence: dieser Block bleibt absichtlich zuletzt. */
.currency-indicator.shop-trigger {
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(114,221,255,.42);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18,25,61,.96), rgba(7,10,28,.96));
  box-shadow: 0 9px 25px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
}
.home-shell .rank-row,
.home-shell .rank-row.is-me,
.home-shell .rank-row.is-empty { display: block; min-height: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.identity-ranking .player-avatar { position: relative; z-index: 3; width: 56px; height: 56px; border: 2px solid rgba(255,255,255,.45); border-radius: 16px 16px 8px 16px; box-shadow: 3px 4px 0 rgba(4,6,20,.65); transform: none; }
.identity-ranking .player-plaque-label strong { font-size: clamp(.82rem, 2.5vw, 1.02rem); }
.identity-ranking .player-plaque-label small { display: block; margin: 2px 0 0; font-size: .52rem; }
.podium-plaque,
.identity-hero .podium-plaque,
.identity-podium .podium-plaque,
.identity-shopset .podium-plaque {
  position: absolute;
  left: 18%;
  right: 4%;
  bottom: 58px;
  z-index: 3;
  display: grid;
  width: auto;
  height: 102px;
  min-height: 0;
  align-content: center;
  margin: 0;
  padding: 12px 7% 12px 28%;
  overflow: visible;
  border: 4px solid var(--podium-dark);
  border-radius: 18px;
  background: linear-gradient(100deg, var(--podium-main), var(--podium-dark) 80%);
  box-shadow: 0 0 28px var(--podium-glow), 7px 9px 0 rgba(2,4,16,.72), inset 0 0 0 3px var(--podium-edge);
}
.podium-plaque .player-plaque-label,
.identity-hero .podium-plaque .player-plaque-label { padding: 0; text-align: center; }
.podium-plaque strong { font-size: clamp(1.25rem, 5vw, 2rem); }
.podium-plaque small { margin-top: 5px; font-size: .55rem; }
.shop-tabs { position: sticky; top: 77px; z-index: 20; padding: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: rgba(6,9,26,.92); }
@media (max-width: 480px) {
  .podium-plaque,
  .identity-hero .podium-plaque { left: 14%; right: 2%; bottom: 48px; height: 78px; padding-left: 28%; border-width: 3px; }
  .podium-plaque small { font-size: .45rem; }
  .shop-tabs { top: 68px; padding: 5px; }
}

/* Das neutrale Start-Set ist bewusst kompakt: Medaillon über einem kleinen
   Basispult, statt eines rechteckigen Avatars hinter einer riesigen Front. */
.home-player-console .identity-hero.plaque-p00 { height: 222px; }
.home-player-console .plaque-p00 .podium-avatar.is-neutral {
  left: 50%;
  bottom: 88px;
  z-index: 2;
  width: 122px;
  height: 122px;
  transform: translateX(-50%);
}
.home-player-console .plaque-p00 .podium-avatar.is-neutral img {
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 12px 9px rgba(0,0,0,.55));
}
.home-player-console .plaque-p00 .podium-structure {
  right: 20%;
  bottom: 14px;
  left: 20%;
  height: 80px;
}
.home-player-console .plaque-p00 .podium-wing {
  bottom: 15px;
  width: 25%;
  height: 52px;
  border-width: 3px;
}
.home-player-console .plaque-p00 .podium-base {
  right: 8%;
  left: 8%;
  height: 25px;
  border-width: 3px;
}
.home-player-console .plaque-p00 .podium-plaque {
  right: 23%;
  bottom: 38px;
  left: 23%;
  width: auto;
  height: 66px;
  aspect-ratio: auto;
  padding: 8px 9%;
  border: 3px solid #202a4b;
  border-radius: 14px;
  background: linear-gradient(145deg, #394664, #171d38 78%);
  box-shadow: 0 0 20px rgba(114,221,255,.12), 5px 7px 0 rgba(2,4,16,.6), inset 0 0 0 2px #64708b;
}
.home-player-console .plaque-p00 .podium-plaque::before {
  inset: 8px 11px;
  border-color: rgba(141,155,190,.55);
}
.home-player-console .plaque-p00 .podium-plaque .player-plaque-label { padding: 0; }
.home-player-console .plaque-p00 .podium-plaque strong { font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.home-player-console .plaque-p00 .avatar-speech-bubble {
  top: 8px;
  right: auto;
  left: 59%;
  max-width: 34%;
}

.plaque-only-preview .identity-shopset.plaque-p00 .podium-structure {
  right: 15%;
  left: 15%;
}
.plaque-only-preview .identity-shopset.plaque-p00 .podium-plaque {
  right: 18%;
  left: 18%;
  padding-inline: 8%;
}

@media (max-width: 480px) {
  .home-player-console .identity-hero.plaque-p00 { height: 210px; }
  .home-player-console .plaque-p00 .podium-avatar.is-neutral {
    bottom: 82px;
    width: 108px;
    height: 108px;
  }
  .home-player-console .plaque-p00 .podium-structure { right: 11%; left: 11%; }
  .home-player-console .plaque-p00 .podium-plaque { right: 15%; left: 15%; }
  .home-player-console .plaque-p00 .avatar-speech-bubble {
    top: 18px;
    left: 60%;
    max-width: 38%;
  }
}

/* Startausstattung: Die drei Aktionen sitzen unter dem kleinen Pult und
   schneiden weder Medaillon noch Namensplakette an. */

/* Profil: Ausrüstung und Erfolge leben hier, der Shop bleibt ein reiner Laden. */
body:has(.profile-shell) {
  color: #eef2fb;
  background:
    radial-gradient(circle at 10% 4%, rgba(65,205,255,.15), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(125,73,255,.16), transparent 30rem),
    #06091a;
}

.profile-shell {
  width: min(100%, 1040px);
  max-width: 1040px;
  padding-top: 116px;
}

.profile-topbar,
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-topbar a { color: var(--sky); font-size: .8rem; font-weight: 900; text-decoration: none; }
.profile-topbar > span { color: #fff; font-size: 1rem; font-weight: 950; }
.profile-topbar small { margin-left: .3em; color: #8490a8; font-size: .64rem; }
.profile-hero { margin-bottom: 22px; text-align: left; }
.profile-hero h1 { margin: 4px 0 7px; font-size: clamp(2rem, 5vw, 3.3rem); }
.profile-hero > p:last-child { max-width: 700px; margin: 0; color: #98a5bc; line-height: 1.55; }

.profile-current,
.profile-trophies,
.profile-wardrobe {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(114,221,255,.24);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(20,25,67,.92), rgba(7,12,35,.94));
  box-shadow: 0 18px 38px rgba(0,0,0,.23);
}

.profile-section-heading {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}
.profile-section-heading span { color: var(--sky); font-size: .65rem; font-weight: 950; letter-spacing: .14em; }
.profile-section-heading h2 { margin: 4px 0 0; font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.profile-section-heading small { color: #7f8aa1; font-size: .68rem; }
.profile-section-heading > a { color: var(--acid); font-size: .75rem; font-weight: 900; text-decoration: none; }

.profile-current { min-height: 365px; overflow: hidden; }
.profile-current .identity-hero { height: 300px; }
.profile-current .has-podium-art .podium-render { bottom: 1px; width: min(72%, 570px); }
.profile-current .has-podium-art .podium-avatar { bottom: 92px; width: 40%; height: 225px; }
.profile-current .avatar-speech-bubble { top: 10px; right: 8%; max-width: 38%; }
.profile-current .identity-hero.plaque-p00 { height: 286px; }
.profile-current .plaque-p00 .podium-avatar.is-neutral {
  left: 50%;
  bottom: 90px;
  width: 126px;
  height: 126px;
  transform: translateX(-50%);
}
.profile-current .plaque-p00 .podium-avatar.is-neutral img { border: 0; border-radius: 0; background: transparent; }
.profile-current .plaque-p00 .podium-structure { right: 24%; bottom: 20px; left: 24%; height: 82px; }
.profile-current .plaque-p00 .podium-wing { bottom: 16px; width: 25%; height: 50px; border-width: 3px; }
.profile-current .plaque-p00 .podium-base { right: 8%; left: 8%; height: 25px; border-width: 3px; }
.profile-current .plaque-p00 .podium-plaque {
  right: 27%;
  bottom: 44px;
  left: 27%;
  width: auto;
  height: 66px;
  padding: 8px 7%;
  border: 3px solid #202a4b;
  border-radius: 14px;
  background: linear-gradient(145deg, #394664, #171d38 78%);
  box-shadow: 0 0 20px rgba(114,221,255,.12), 5px 7px 0 rgba(2,4,16,.6), inset 0 0 0 2px #64708b;
}
.profile-current .plaque-p00 .podium-plaque .player-plaque-label { padding: 0; }
.profile-current .plaque-p00 .podium-plaque strong { font-size: 1.15rem; }
.profile-current .plaque-p00 .avatar-speech-bubble { top: 20px; right: auto; left: 59%; max-width: 32%; }

.trophy-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.trophy-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}
.trophy-card i { display: grid; width: 51px; height: 51px; flex: 0 0 51px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ffe17d, #c87818); color: #1a1330; box-shadow: inset 0 0 0 3px rgba(255,255,255,.32), 0 7px 16px rgba(0,0,0,.28); font-style: normal; font-size: 1.35rem; font-weight: 1000; }
.trophy-weekly i { background: linear-gradient(145deg, #e9f5ff, #6ca9df); }
.trophy-monthly i { background: linear-gradient(145deg, #d9b6ff, #7548d8); color: #fff; }
.trophy-party i { background: linear-gradient(145deg, #dfff5b, #78be1e); }
.trophy-card strong { display: block; font-size: 1.55rem; line-height: 1; }
.trophy-card span { display: block; margin-top: 5px; color: #aab4c8; font-size: .69rem; font-weight: 850; }

.profile-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 14px; padding: 6px; border-radius: 15px; background: rgba(2,6,23,.64); }
.profile-tabs button { min-height: 45px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: transparent; color: #9ba6bb; cursor: pointer; font-weight: 950; }
.profile-tabs button[aria-selected="true"] { border-color: var(--acid); background: var(--acid); color: #091127; }
.profile-panel[hidden] { display: none; }
.profile-inventory { display: grid; gap: 12px; }
.avatar-inventory { grid-template-columns: repeat(4, minmax(0,1fr)); }
.plaque-inventory { grid-template-columns: repeat(2, minmax(0,1fr)); }
.profile-item { min-width: 0; padding: 11px; border: 1px solid rgba(114,221,255,.17); border-radius: 17px; background: rgba(8,14,43,.72); }
.profile-item.is-equipped { border-color: var(--acid); box-shadow: inset 0 0 0 1px rgba(216,255,66,.16), 0 0 20px rgba(216,255,66,.08); }
.profile-item h3 { margin: 10px 0 3px; font-size: .9rem; }
.profile-item p { min-height: 1.2em; margin: 0 0 10px; color: #8995ab; font-size: .68rem; }
.profile-item form { margin: 0; }
.profile-item button { width: 100%; min-height: 39px; border: 1px solid var(--sky); border-radius: 10px; background: rgba(114,221,255,.08); color: var(--sky); cursor: pointer; font-size: .72rem; font-weight: 950; }
.profile-item button:disabled { border-color: rgba(216,255,66,.55); background: rgba(216,255,66,.08); color: var(--acid); cursor: default; }
.profile-avatar-preview { height: 170px; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 50% 55%, rgba(84,103,190,.42), rgba(7,13,38,.9) 70%); }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 8px rgba(0,0,0,.45)); }
.profile-plaque-preview { height: 170px; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 50% 45%, rgba(71,98,181,.42), rgba(7,13,38,.9) 72%); }
.profile-plaque-preview .identity-shopset { height: 170px; }
.profile-plaque-preview .identity-shopset.has-podium-art .podium-render { bottom: 20px; width: 96%; max-width: none; }
.profile-plaque-preview .identity-shopset.plaque-p00 .podium-structure { right: 8%; bottom: 27px; left: 8%; }
.profile-plaque-preview .identity-shopset.plaque-p00 .podium-plaque { right: 13%; bottom: 48px; left: 13%; height: 65px; padding-inline: 8%; }

.shop-item.is-owned { border-color: rgba(216,255,66,.42); }
.phrase-only-preview { display: grid; min-height: 170px; place-items: center; }
.phrase-only-bubble { position: relative; max-width: 390px; padding: 18px 22px; border: 2px solid var(--sky); border-radius: 22px 22px 22px 6px; background: #f5f9ff; color: #11182f; box-shadow: 6px 8px 0 #303177; font-size: 1rem; font-weight: 950; }
.phrase-only-bubble::after { position: absolute; bottom: -13px; left: 22px; width: 24px; height: 24px; background: #f5f9ff; clip-path: polygon(0 0,100% 0,0 100%); content: ""; }

/* Die Namensfelder sitzen in den Grafiken auf unterschiedlichen Höhen. */
.podium-render-name {
  top: var(--podium-name-y, 52%);
  left: 19%;
  right: 19%;
  color: #fff;
  line-height: 1;
  text-shadow: -2px -1px 1px #071020, 2px -1px 1px #071020, -2px 2px 1px #071020, 2px 2px 1px #071020, 0 0 7px #071020;
}
.podium-render-name strong { display: block; overflow: hidden; font-size: clamp(.95rem, 1.5vw, 1.22rem); font-weight: 1000; letter-spacing: .01em; text-overflow: ellipsis; }
.podium-render-name small { font-weight: 1000; }
.player-identity.plaque-p01 { --podium-name-y: 51%; }
.player-identity.plaque-p02 { --podium-name-y: 52%; }
.player-identity.plaque-p03 { --podium-name-y: 58%; }
.player-identity.plaque-p04 { --podium-name-y: 53%; }
.player-identity.plaque-p05 { --podium-name-y: 46%; }
.player-identity.plaque-p06 { --podium-name-y: 50%; }
.player-identity.plaque-p07 { --podium-name-y: 51%; }
.player-identity.plaque-p08 { --podium-name-y: 53%; }
.player-identity.plaque-p09 { --podium-name-y: 57%; }
.player-identity.plaque-p10 { --podium-name-y: 53%; }
.player-identity.plaque-p11 { --podium-name-y: 55%; }
.player-identity.plaque-p12 { --podium-name-y: 52%; }
.player-identity.plaque-p13 { --podium-name-y: 38%; }
.player-identity.plaque-p00 { --podium-name-y: 44%; }

@media (max-width: 760px) {
  .profile-shell { padding-top: 126px; }
  .profile-current, .profile-trophies, .profile-wardrobe { padding: 16px 13px; border-radius: 20px; }
  .profile-section-heading small { display: none; }
  .trophy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .avatar-inventory, .plaque-inventory { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-current { min-height: 330px; }
  .profile-current .identity-hero { height: 265px; }
  .profile-current .has-podium-art .podium-avatar { bottom: 80px; height: 190px; }
  .profile-current .avatar-speech-bubble { right: 1%; max-width: 43%; }
  .podium-render-name strong { font-size: clamp(.82rem, 3.4vw, 1rem); }
}

@media (max-width: 480px) {
  .profile-topbar small { display: none; }
  .profile-hero h1 { font-size: 2.2rem; }
  .profile-section-heading { align-items: start; }
  .profile-section-heading > a { max-width: 120px; text-align: right; }
  .trophy-card { min-height: 73px; gap: 9px; padding: 9px; }
  .trophy-card i { width: 42px; height: 42px; flex-basis: 42px; font-size: 1rem; }
  .trophy-card strong { font-size: 1.25rem; }
  .avatar-inventory, .plaque-inventory { grid-template-columns: 1fr; }
  .profile-avatar-preview { height: 205px; }
  .profile-current .plaque-p00 .podium-structure { right: 10%; left: 10%; }
  .profile-current .plaque-p00 .podium-plaque { right: 15%; left: 15%; }
  .profile-current .plaque-p00 .avatar-speech-bubble { left: 56%; max-width: 42%; }
}

/* Die versprochene Quiz-Arena bildet auch für Shop und Profil die Bühne. */
body:has(.shop-shell),
body:has(.profile-shell) {
  background:
    linear-gradient(rgba(3,8,27,.28), rgba(3,7,24,.5)),
    url("arena-stage-background-v1.png") center bottom / cover fixed no-repeat,
    #050a20;
}

/* Quiz-Arena: freigegebener Gesamtumbau von Startseite, Spielerkarten und Shop. */
body:has(.home-shell),
body:has(.shop-shell) {
  color: #eef2fb;
  background:
    radial-gradient(circle at 12% 4%, rgba(65, 205, 255, .18), transparent 28rem),
    radial-gradient(circle at 88% 24%, rgba(125, 73, 255, .17), transparent 30rem),
    radial-gradient(circle at 50% 90%, rgba(216, 255, 66, .07), transparent 28rem),
    #06091a;
}

body:has(.home-shell) .noise,
body:has(.shop-shell) .noise { opacity: .055; }

.home-shell,
.shop-shell { width: min(100%, 920px); max-width: 920px; padding-top: 76px; }
.home-shell::before {
  inset: 0 -10vw;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(114,221,255,.035) 50%, transparent 50.2%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: .62;
  filter: none;
  mask-image: linear-gradient(#000, transparent 90%);
}

/* Der Shopknopf ist als eigener kleiner Marktstand lesbar. */
.currency-indicator.shop-trigger {
  gap: 10px;
  min-height: 52px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(114,221,255,.42);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18,25,61,.96), rgba(7,10,28,.96));
  box-shadow: 0 9px 25px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
}
.currency-indicator.shop-trigger .shop-stall-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  background: #11183b;
  fill: none;
  stroke-linejoin: round;
  stroke-width: 2;
}
.shop-stall-icon .stall-roof { fill: #d8ff42; stroke: #0a0d25; }
.shop-stall-icon .stall-stripe { stroke: #ff5c7a; stroke-width: 3; }
.shop-stall-icon .stall-body { fill: #293068; stroke: #72ddff; }
.shop-stall-icon .stall-podium { fill: #7b4cff; stroke: #d8ff42; }
.shop-stall-icon .stall-coin { fill: #d8ff42; stroke: #0a0d25; }
.shop-stall-icon .stall-cow { stroke: #0a0d25; stroke-linecap: round; }
.currency-indicator.shop-trigger b { color: #f4f6fc; font-size: .78rem; }
.currency-indicator.shop-trigger small { color: var(--acid); }

/* Logo: Das Gehirn ist jetzt ein echtes, sichtbares Markenzeichen statt Tapete. */
.arena-brand-lockup {
  display: grid;
  grid-template-columns: 150px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 720px);
  margin: -28px auto 24px;
  text-align: left;
}
.arena-brain { width: 150px; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.brain-outline { fill: url(#brainFill); stroke: #0d1236; stroke-linejoin: round; stroke-width: 7; }
.brain-fold { fill: none; stroke: rgba(8,12,38,.72); stroke-linecap: round; stroke-width: 5; }
.brain-bolt { fill: var(--acid); stroke: #0a0e2c; stroke-linejoin: round; stroke-width: 5; }
.arena-brain circle { fill: var(--coral); stroke: #10163c; stroke-width: 3; }
.arena-wordmark { min-width: 0; transform: translateX(-4px); }
.arena-wordmark > span { display: block; color: #c9d1e3; font-size: clamp(1rem, 3vw, 1.55rem); font-weight: 900; letter-spacing: -.04em; }
.arena-brand-lockup h1 {
  margin: -3px 0 0;
  color: var(--acid);
  font-size: clamp(3rem, 9vw, 5.3rem);
  letter-spacing: -.085em;
  line-height: .86;
  text-transform: lowercase;
  text-shadow: 5px 6px 0 #4d318f, 0 0 28px rgba(216,255,66,.17);
}
.arena-wordmark small { display: block; margin-top: 9px; color: #79859e; font-size: .64rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

/* Arena-Rahmen und Tabs. */
.home-shell .quiz-arena-board {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(114,221,255,.24);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17,24,58,.9), rgba(7,11,31,.88));
  box-shadow: 0 28px 75px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.025);
}
.home-shell .quiz-arena-board::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0, rgba(114,221,255,.09), transparent 38%), radial-gradient(circle at 85% 100%, rgba(126,73,255,.1), transparent 38%);
  content: "";
}
.home-shell .quiz-arena-board > * { position: relative; z-index: 1; }
.home-shell .section-heading { padding: 2px 3px 14px; border: 0; }
.home-shell .section-heading h2 { color: #f4f6fc; font-size: clamp(1.35rem, 4vw, 1.85rem); }
.home-shell .section-kicker { color: var(--sky); }
.home-shell .live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(216,255,66,.12); color: var(--acid); }
.home-shell .live-pill::before { display: none; }
.home-shell .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.home-shell .leaderboard-tabs { gap: 8px; padding: 0 0 14px; }
.home-shell .leaderboard-tabs button { min-height: 42px; border-radius: 12px; background: rgba(255,255,255,.035); }
.home-shell .leaderboard-tabs button[aria-selected="true"] { box-shadow: 0 8px 20px rgba(216,255,66,.12); }
.home-shell .rank-list { gap: 9px; padding: 0 3px 3px; }
.home-shell .rank-list.is-scrollable { max-height: 420px; }
.home-shell .rank-row,
.home-shell .rank-row.is-me,
.home-shell .rank-row.is-empty {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

/* Eine Zeile ist eine einzige Komposition. Die Punktzahl lebt auf demselben Material. */
.player-identity { min-width: 0; background: transparent !important; box-shadow: none !important; }
.identity-ranking { position: relative; display: block; width: 100%; max-width: none; padding-left: 40px; overflow: visible; }
.identity-rank {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid #252e5d;
  border-radius: 50%;
  background: #0d1231;
  color: #aeb8cd;
  box-shadow: 4px 5px 0 rgba(2,4,16,.75);
  font-size: 1rem;
  font-weight: 950;
  transform: translateY(-50%);
}
.rank-1 .identity-rank { border-color: var(--acid); color: var(--acid); }
.rank-2 .identity-rank { border-color: var(--sky); color: var(--sky); }
.rank-3 .identity-rank { border-color: var(--coral); color: var(--coral); }
.player-card-surface {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 70px;
  padding: 7px 18px 7px 7px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(100deg, #48536f, #2a334f 55%, #48536f);
  box-shadow: 0 10px 22px rgba(0,0,0,.27), inset 0 0 0 2px rgba(126,140,177,.6);
}
.player-card-surface::after {
  position: absolute;
  inset: 5px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  content: "";
}
.identity-ranking .player-plaque-art {
  inset: -7% -2%;
  width: 104%;
  height: 114%;
  object-fit: fill;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.48));
}
.identity-ranking .player-avatar {
  position: relative;
  z-index: 3;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 16px 16px 8px 16px;
  background: #101737;
  box-shadow: 3px 4px 0 rgba(4,6,20,.65);
  transform: none;
}
.identity-ranking .player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.identity-ranking .player-avatar.is-neutral { border-color: rgba(114,221,255,.32); }
.identity-ranking .player-plaque-label {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: 0;
  padding: 0;
  text-align: left;
}
.identity-ranking .player-plaque-label strong { overflow: hidden; color: inherit; font-size: clamp(.82rem, 2.5vw, 1.02rem); font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.identity-ranking .player-plaque-label small { margin: 2px 0 0; color: var(--acid); font-size: .52rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.identity-points { position: relative; z-index: 3; display: flex; align-items: baseline; gap: 5px; padding-left: 8px; color: inherit; white-space: nowrap; text-shadow: inherit; }
.identity-points b { font-size: clamp(.86rem, 3vw, 1.1rem); font-variant-numeric: tabular-nums; }
.identity-points small { font-size: .53rem; font-weight: 950; opacity: .72; }
.home-shell .rank-row.is-me .player-card-surface { outline: 2px solid var(--acid); outline-offset: 1px; box-shadow: 0 0 22px rgba(216,255,66,.14), 0 10px 22px rgba(0,0,0,.27); }
.home-shell .rank-row.is-empty { opacity: .42; }
.home-shell .rank-row.is-empty .player-card-surface { box-shadow: none; }

/* Helle Materialien brauchen dunkle Schrift; alle anderen bleiben kontrastreich hell. */
.player-identity { color: #fff8e8; text-shadow: 0 2px 3px rgba(0,0,0,.86); }
.player-identity.plaque-p03,
.player-identity.plaque-p08,
.player-identity.plaque-p13 { color: #10172d; text-shadow: 0 1px 1px rgba(255,255,255,.62); }
.player-identity.plaque-p05 { color: #fff; text-shadow: 0 0 9px rgba(216,255,66,.5), 0 2px 3px #030613; }

/* Materialfamilien treiben nicht nur das Schild, sondern das komplette Pult. */
.player-identity { --podium-main: #394566; --podium-edge: #7d8bac; --podium-dark: #171d38; --podium-glow: rgba(114,221,255,.24); }
.player-identity.plaque-p01 { --podium-main: #70401e; --podium-edge: #bc873f; --podium-dark: #251207; --podium-glow: rgba(225,150,58,.25); }
.player-identity.plaque-p02 { --podium-main: #424957; --podium-edge: #87bdd7; --podium-dark: #181c25; --podium-glow: rgba(120,210,255,.2); }
.player-identity.plaque-p03 { --podium-main: #697789; --podium-edge: #d2e5eb; --podium-dark: #293342; --podium-glow: rgba(216,255,66,.18); }
.player-identity.plaque-p04 { --podium-main: #4c4556; --podium-edge: #d69575; --podium-dark: #211d28; --podium-glow: rgba(255,120,132,.22); }
.player-identity.plaque-p05 { --podium-main: #211b4a; --podium-edge: #ff5b90; --podium-dark: #0d0a2a; --podium-glow: rgba(64,220,255,.55); }
.player-identity.plaque-p06 { --podium-main: #6d2949; --podium-edge: #d8b45c; --podium-dark: #2f1027; --podium-glow: rgba(211,67,130,.25); }
.player-identity.plaque-p07 { --podium-main: #5537a8; --podium-edge: #72ddff; --podium-dark: #24205a; --podium-glow: rgba(255,107,87,.28); }
.player-identity.plaque-p08 { --podium-main: #e6d8b4; --podium-edge: #df594a; --podium-dark: #244c91; --podium-glow: rgba(255,239,192,.22); }
.player-identity.plaque-p09 { --podium-main: #955139; --podium-edge: #51aaa0; --podium-dark: #3a251d; --podium-glow: rgba(75,177,162,.3); }
.player-identity.plaque-p10 { --podium-main: #6c2f28; --podium-edge: #d4ad6f; --podium-dark: #2d1513; --podium-glow: rgba(223,170,94,.22); }
.player-identity.plaque-p11 { --podium-main: #559bd1; --podium-edge: #d4f8ff; --podium-dark: #164687; --podium-glow: rgba(114,221,255,.5); }
.player-identity.plaque-p12 { --podium-main: #4b3b21; --podium-edge: #719743; --podium-dark: #20180d; --podium-glow: rgba(118,180,70,.28); }
.player-identity.plaque-p13 { --podium-main: #797a7c; --podium-edge: #b9ed2e; --podium-dark: #303641; --podium-glow: rgba(185,237,46,.25); }

/* Jedes Set verändert auch die Bauform des Pults, nicht bloß dessen Farbe. */
.player-identity.plaque-p01 .podium-wing { border-radius: 7px 7px 18px 18px; background: repeating-linear-gradient(90deg, #6f3d1b 0 28px, #895326 29px 32px); }
.player-identity.plaque-p01 .podium-base { border-radius: 4px 4px 22px 22px; background: repeating-linear-gradient(0deg, #3b1d0d 0 9px, #6c3d1e 10px 18px); }
.player-identity.plaque-p02 .podium-wing { border-radius: 28px 7px 18px; clip-path: polygon(8% 0, 96% 6%, 100% 82%, 82% 100%, 3% 88%, 0 20%); }
.player-identity.plaque-p02 .podium-base { clip-path: polygon(3% 0, 98% 7%, 94% 100%, 7% 94%); }
.player-identity.plaque-p03 .podium-wing { border-radius: 24px 4px 8px; background: repeating-linear-gradient(0deg, #718092 0 2px, #566374 3px 5px); }
.player-identity.plaque-p04 .podium-wing { border-radius: 8px 28px 8px 20px; background: repeating-linear-gradient(125deg, #302d39 0 9px, #7b5562 10px 12px, #4a5062 13px 20px); }
.player-identity.plaque-p05 .podium-wing { border-color: #ff5b90; border-radius: 40px 12px 34px; background: rgba(21,18,60,.9); box-shadow: inset 0 0 0 3px #45dcff, 0 0 17px #ff5b90, 0 0 28px rgba(69,220,255,.6); }
.player-identity.plaque-p05 .podium-base { border-color: #45dcff; background: #17143d; box-shadow: inset 0 2px #d8ff42, 0 0 19px rgba(69,220,255,.7); }
.player-identity.plaque-p06 .podium-wing { border-radius: 38px 38px 12px 12px; background: radial-gradient(ellipse at 40% 20%, #914262, #43172f 72%); }
.player-identity.plaque-p06 .podium-base { border-radius: 14px 14px 30px 30px; }
.player-identity.plaque-p07 .podium-wing { border-radius: 10px 38px 12px; background: radial-gradient(circle at 22% 24%, #ff6b57 0 3px, transparent 4px), radial-gradient(circle at 70% 65%, #d8ff42 0 3px, transparent 4px), linear-gradient(135deg, rgba(70,199,255,.82), rgba(108,53,184,.9)); background-size: 27px 25px, 31px 29px, auto; }
.player-identity.plaque-p08 .podium-wing { border-radius: 28px 28px 7px 7px; background: #e6d8b4; box-shadow: inset 0 0 0 4px #315b9f, inset 0 0 0 7px #df594a, 0 10px 18px rgba(0,0,0,.35); }
.player-identity.plaque-p09 .podium-wing { border-radius: 38px 9px 28px 12px; background: radial-gradient(circle at 20% 25%, #59a79d 0 3px, transparent 4px), linear-gradient(120deg, #b76337, #54332b 60%); background-size: 22px 24px, auto; }
.player-identity.plaque-p10 .podium-wing { border-radius: 18px; background: linear-gradient(100deg, #4a201b, #7f342c); box-shadow: inset 0 0 0 3px #c99b5d, inset 0 0 0 7px #5a281f, 0 10px 18px rgba(0,0,0,.35); }
.player-identity.plaque-p11 .podium-wing { border-radius: 3px; clip-path: polygon(12% 0, 37% 12%, 57% 0, 100% 18%, 91% 100%, 8% 88%, 0 27%); background: linear-gradient(145deg, rgba(214,248,255,.94), #438bd0 48%, #164687); }
.player-identity.plaque-p11 .podium-base { border-radius: 3px; clip-path: polygon(3% 13%, 17% 0, 30% 12%, 48% 0, 62% 11%, 84% 0, 98% 18%, 92% 100%, 7% 92%); }
.player-identity.plaque-p12 .podium-wing { border-radius: 48% 16% 42% 22%; background: radial-gradient(circle at 18% 70%, #d99b3e 0 4px, transparent 5px), linear-gradient(130deg, #302315, #604727 55%, #345528); background-size: 34px 31px, auto; }
.player-identity.plaque-p12 .podium-base { border-radius: 50% 28% 46% 35%; }
.player-identity.plaque-p13 .podium-wing { border-radius: 3px; background: radial-gradient(circle at 22% 24%, #424751 0 2px, transparent 3px), linear-gradient(130deg, #aaa59c, #676a6e); background-size: 18px 18px, auto; box-shadow: inset 0 0 0 4px #2f62b5, inset 0 0 0 7px #b9ed2e, 0 10px 18px rgba(0,0,0,.35); }
.player-identity.plaque-p13 .podium-base { border-radius: 2px 2px 10px 10px; }

/* Das Spielerprofil ist ein echtes Pult: Avatar vorn, Material als durchgehender Baukörper. */
.home-player-console {
  position: relative;
  margin: 34px 0 0;
  padding: 20px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(114,221,255,.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17,23,55,.78), rgba(8,11,30,.88));
  text-align: left;
}
.console-kicker { display: block; color: var(--sky); font-size: .65rem; font-weight: 950; letter-spacing: .16em; }
.identity-hero,
.identity-podium,
.identity-shopset {
  position: relative;
  display: block;
  width: min(100%, 650px);
  height: 310px;
  margin: 0 auto;
}
.podium-aura { position: absolute; inset: 24% 12% 8%; border-radius: 50%; background: radial-gradient(circle, var(--podium-glow), transparent 68%); filter: blur(14px); }
.podium-avatar {
  position: absolute;
  left: 4%;
  bottom: 76px;
  z-index: 4;
  width: 45%;
  height: 235px;
  pointer-events: none;
}
.podium-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 13px 10px rgba(0,0,0,.52)); }
.podium-avatar.is-neutral { left: 7%; bottom: 90px; width: 34%; height: 190px; }
.podium-avatar.is-neutral img { border: 3px solid rgba(114,221,255,.25); border-radius: 40px 40px 16px 40px; background: #111a40; }
.podium-structure { position: absolute; inset: auto 2% 10px 8%; z-index: 1; height: 145px; }
.podium-wing { position: absolute; bottom: 24px; width: 22%; height: 88px; border: 4px solid var(--podium-dark); background: linear-gradient(145deg, var(--podium-main), var(--podium-dark)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--podium-edge) 45%, transparent), 0 10px 18px rgba(0,0,0,.35); }
.podium-wing-left { left: 0; border-radius: 36px 8px 14px 22px; transform: skewY(-5deg); }
.podium-wing-right { right: 0; border-radius: 8px 36px 22px 14px; transform: skewY(5deg); }
.podium-base { position: absolute; left: 10%; right: 7%; bottom: 0; height: 36px; border: 4px solid var(--podium-dark); border-radius: 8px 8px 24px 24px; background: linear-gradient(var(--podium-main), var(--podium-dark)); box-shadow: inset 0 3px var(--podium-edge), 0 12px 18px rgba(0,0,0,.36); }
.podium-plaque {
  position: absolute;
  left: 18%;
  right: 4%;
  bottom: 58px;
  z-index: 3;
  display: grid;
  height: 102px;
  min-height: 0;
  align-content: center;
  margin: 0;
  padding: 12px 7% 12px 28%;
  overflow: visible;
  border: 4px solid var(--podium-dark);
  border-radius: 18px;
  background: linear-gradient(100deg, var(--podium-main), var(--podium-dark) 80%);
  box-shadow: 0 0 28px var(--podium-glow), 7px 9px 0 rgba(2,4,16,.72), inset 0 0 0 3px var(--podium-edge);
}
.podium-plaque .player-plaque-art { inset: -6%; width: 112%; height: 112%; object-fit: fill; filter: drop-shadow(0 10px 6px rgba(0,0,0,.55)); }
.podium-plaque .player-plaque-label { padding: 0; text-align: center; }
.podium-plaque strong { overflow: hidden; font-size: clamp(1.25rem, 5vw, 2rem); text-overflow: ellipsis; white-space: nowrap; }
.podium-plaque small { margin-top: 5px; color: inherit; font-size: .55rem; font-weight: 950; letter-spacing: .11em; opacity: .76; text-transform: uppercase; }
.profile-console-actions { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 510px); margin: -40px auto 0; }
.profile-console-actions a,
.profile-console-actions button { display: grid; width: 100%; min-height: 46px; place-items: center; border: 1px solid rgba(114,221,255,.35); border-radius: 13px; background: rgba(9,14,38,.88); color: var(--sky); cursor: pointer; text-align: center; text-decoration: none; font-size: .76rem; font-weight: 950; }
.profile-console-actions form { margin: 0; }
.profile-console-actions button { border-color: rgba(255,255,255,.14); color: #9ba6bc; }
.profile-console-actions a:hover { border-color: var(--acid); color: var(--acid); }

.action-dock { padding-inline: 6px; }
.home-action { border-color: #0c1232; border-radius: 18px; box-shadow: 6px 7px 0 #303177; }
.party-mode-link { border-color: rgba(114,221,255,.25); background: linear-gradient(100deg, rgba(35,29,83,.75), rgba(16,25,57,.82)); color: #e1dcff; }

/* Shop: gleiche Bühne und gleiche Materiallogik wie auf der Startseite. */
body:has(.shop-shell) .shop-trigger { display: none; }
.shop-shell { max-width: 1040px; }
.shop-shell .game-header { margin-bottom: 18px; padding-inline: 4px; }
.shop-shell .wordmark { color: #f0f3fb; }
.shop-shell .date-chip { border-color: rgba(255,255,255,.13); background: rgba(11,15,39,.74); color: #8d98ae; }
.shop-topbar { top: 8px; margin: 0 0 30px; border-color: rgba(114,221,255,.18); background: rgba(6,9,26,.92); }
.shop-topbar a { display: inline-flex; align-items: center; gap: 7px; }
.shop-topbar a > span { color: var(--sky); font-size: 1rem; }
.shop-top-balance { display: flex; align-items: baseline; gap: 5px; font-size: .9rem !important; }
.shop-top-balance small { color: #98a3b8; font-size: .58rem; text-transform: uppercase; }
.shop-hero { align-items: center; margin: 0 0 24px; padding: 10px 4px; }
.shop-hero h1 { color: var(--acid); text-shadow: 5px 6px 0 #4d318f; }
.shop-hero p:last-child { color: #a6b0c3; }
.shop-wallet { border-color: rgba(216,255,66,.34); background: linear-gradient(145deg, rgba(216,255,66,.12), rgba(114,221,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.shop-equipped { position: relative; min-height: 370px; padding: 18px 20px 0; border-color: rgba(114,221,255,.24); border-radius: 28px; background: linear-gradient(145deg, rgba(25,26,72,.9), rgba(8,13,38,.9)); }
.shop-equipped::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(114,221,255,.08), transparent 54%); content: ""; }
.shop-equipped > * { position: relative; z-index: 1; }
.shop-equipped-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.shop-equipped-heading span { color: var(--sky); font-size: .65rem; font-weight: 950; letter-spacing: .14em; }
.shop-equipped-heading small { color: #77839a; font-size: .68rem; }
.shop-equipped .identity-hero { height: 310px; }
.shop-tabs { position: sticky; top: 77px; z-index: 20; padding: 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: rgba(6,9,26,.92); backdrop-filter: blur(12px); }
.shop-tabs button { border-radius: 11px; }
.shop-tabs button[aria-selected="true"] { box-shadow: 0 7px 18px rgba(216,255,66,.14); }
.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plaque-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-item { padding: 13px; border-color: rgba(114,221,255,.14); border-radius: 20px; background: linear-gradient(150deg, rgba(24,30,70,.88), rgba(10,14,37,.94)); }
.shop-item.is-equipped { border-color: var(--acid); box-shadow: 0 0 0 2px rgba(216,255,66,.1), 0 16px 32px rgba(0,0,0,.25); }
.shop-avatar-preview { border: 1px solid rgba(114,221,255,.16); border-radius: 16px; background: radial-gradient(circle at 50% 35%, #283b7c, #0b102d 72%); }
.shop-item-copy > span { color: var(--sky); }
.shop-item-copy h2 { color: #f1f4fa; }
.shop-item-copy p { color: #909cb2; }
.shop-item button { border-color: rgba(114,221,255,.5); background: rgba(114,221,255,.08); }
.shop-item button.shop-price-pending { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); color: #737f96; cursor: not-allowed; }
.shop-note { border: 1px solid rgba(114,221,255,.14); background: rgba(114,221,255,.055); }
.shop-note strong { color: #d7eef4; }
.shop-set-preview { height: 225px; overflow: hidden; border: 1px solid rgba(114,221,255,.12); border-radius: 16px; background: radial-gradient(circle at 50% 42%, rgba(65,96,183,.45), #090e2a 72%); }
.identity-shopset { height: 220px; transform: scale(.94); }
.identity-shopset .podium-avatar { bottom: 54px; height: 165px; }
.identity-shopset .podium-avatar.is-neutral { bottom: 67px; height: 125px; }
.identity-shopset .podium-structure { bottom: 0; height: 105px; }
.identity-shopset .podium-wing { bottom: 20px; height: 65px; border-width: 3px; }
.identity-shopset .podium-base { height: 27px; border-width: 3px; }
.identity-shopset .podium-plaque { bottom: 40px; height: 74px; border-width: 3px; padding-left: 28%; }
.identity-shopset .podium-plaque strong { font-size: 1rem; }
.identity-shopset .podium-plaque small { display: none; }
.shop-back { display: inline-block; padding: 12px 2px; color: var(--sky); }

/* Lobby-Karten übernehmen die neue, zusammenhängende Form ohne die Partylogik umzubauen. */
.identity-party { display: block; width: 100%; }
.identity-party .player-card-surface { grid-template-columns: 54px minmax(0,1fr); min-height: 62px; padding-right: 12px; }
.identity-party .player-avatar { position: relative; z-index: 3; width: 50px; height: 50px; border-radius: 14px; }
.identity-party .player-plaque-label { position: relative; z-index: 3; padding: 0; text-align: left; }

@media (max-width: 760px) {
  .home-shell, .shop-shell { padding-inline: 14px; }
  .arena-brand-lockup { grid-template-columns: 112px auto; margin-top: -20px; }
  .arena-brain { width: 112px; }
  .arena-wordmark small { display: none; }
  .home-shell .quiz-arena-board { padding: 13px; border-radius: 22px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plaque-shop-grid { grid-template-columns: 1fr; }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-wallet { grid-template-columns: 1fr auto auto; justify-items: start; }
}

@media (max-width: 480px) {
  .home-shell, .shop-shell { padding-top: 72px; padding-inline: 10px; }
  .rules-button.is-secondary { right: 10px; }
  .currency-indicator.shop-trigger { left: 10px; max-width: 188px; }
  .currency-indicator.shop-trigger .shop-stall-icon { width: 36px; height: 36px; }
  .arena-brand-lockup { grid-template-columns: 84px minmax(0,1fr); gap: 2px; margin: -16px auto 18px; }
  .arena-brain { width: 88px; }
  .arena-brand-lockup h1 { font-size: clamp(2.45rem, 14vw, 3.5rem); }
  .arena-wordmark > span { font-size: .9rem; }
  .home-date span { font-size: .64rem; }
  .home-shell .quiz-arena-board { padding: 11px 8px 10px; }
  .home-shell .section-heading { padding-inline: 4px; }
  .home-shell .leaderboard-tabs { gap: 5px; }
  .home-shell .leaderboard-tabs button { padding-inline: 3px; font-size: .64rem; }
  .identity-ranking { padding-left: 29px; }
  .identity-rank { width: 37px; height: 37px; font-size: .78rem; }
  .player-card-surface { grid-template-columns: 48px minmax(0,1fr) max-content; gap: 6px; min-height: 58px; padding: 5px 10px 5px 5px; border-radius: 14px; }
  .identity-ranking .player-avatar { width: 44px; height: 44px; border-radius: 12px 12px 6px 12px; }
  .identity-ranking .player-plaque-label strong { font-size: .75rem; }
  .identity-ranking .player-plaque-label small { display: none; }
  .identity-points { gap: 3px; padding-left: 2px; }
  .identity-points b { font-size: .76rem; }
  .identity-points small { font-size: .43rem; }
  .home-player-console { padding: 16px 7px 13px; border-radius: 22px; }
  .identity-hero { height: 240px; }
  .podium-avatar { left: 0; bottom: 62px; width: 48%; height: 182px; }
  .podium-avatar.is-neutral { left: 4%; bottom: 70px; width: 37%; height: 140px; }
  .podium-structure { inset: auto 0 8px 4%; height: 112px; }
  .podium-plaque { left: 14%; right: 2%; bottom: 48px; height: 78px; padding-left: 28%; border-width: 3px; }
  .podium-plaque strong { font-size: clamp(1rem, 6vw, 1.4rem); }
  .podium-plaque small { font-size: .45rem; letter-spacing: .07em; }
  .podium-wing { height: 70px; border-width: 3px; }
  .podium-base { height: 29px; border-width: 3px; }
  .profile-console-actions { margin-top: -31px; }
  .profile-console-actions a, .profile-console-actions button { min-height: 42px; font-size: .68rem; }
  .shop-shell .game-header { display: none; }
  .shop-topbar { margin-top: -12px; }
  .shop-hero h1 { font-size: 3rem; }
  .shop-equipped { min-height: 305px; padding-inline: 10px; }
  .shop-equipped-heading small { display: none; }
  .shop-equipped .identity-hero { height: 245px; }
  .shop-tabs { top: 68px; grid-template-columns: 1fr 1.25fr .9fr; gap: 5px; padding: 5px; }
  .shop-tabs button { min-height: 44px; padding-inline: 4px; font-size: .63rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .plaque-shop-grid { grid-template-columns: 1fr; }
  .shop-item { padding: 9px; }
  .shop-item-copy h2 { font-size: .82rem; }
  .shop-item-copy p { font-size: .66rem; }
}

@media (max-width: 350px) {
  .currency-indicator.shop-trigger > span:not(.visually-hidden) { display: none; }
  .currency-indicator.shop-trigger { padding-right: 6px; }
  .identity-ranking { padding-left: 25px; }
  .identity-rank { width: 33px; height: 33px; }
  .player-card-surface { grid-template-columns: 42px minmax(0,1fr) max-content; padding-right: 7px; }
  .identity-ranking .player-avatar { width: 39px; height: 39px; }
  .identity-ranking .player-plaque-label strong { font-size: .68rem; }
  .identity-points b { font-size: .68rem; }
}

/* Korrekturrunde: Die komplette Plakette behält ihre entworfene Form.
   Sie wird bei wenig Platz proportional kleiner, aber niemals auseinandergezogen. */
.player-plaque-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  background: var(--plaque-source) center / 100% 100% no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.5));
}

.identity-ranking { padding-left: 43px; }
.identity-ranking .player-card-surface {
  grid-template-columns: clamp(74px, 22%, 174px) minmax(0, 1fr) max-content;
  gap: clamp(7px, 1.6vw, 14px);
  width: 100%;
  min-height: 0;
  aspect-ratio: 3.05 / 1;
  padding: clamp(8px, 2vw, 18px) clamp(66px, 20.5%, 176px) clamp(8px, 2vw, 18px) clamp(8px, 2vw, 18px);
}
.identity-ranking .player-plaque-art {
  inset: 0;
  width: auto;
  height: auto;
  object-fit: initial;
}
.identity-ranking .player-avatar {
  width: min(100%, 174px);
  height: auto;
  aspect-ratio: 1;
  border-radius: clamp(15px, 2.4vw, 24px) clamp(15px, 2.4vw, 24px) 10px clamp(15px, 2.4vw, 24px);
}
.identity-ranking .player-plaque-label strong {
  font-size: clamp(.88rem, 2.7vw, 1.35rem);
  line-height: 1.05;
}
.identity-points {
  align-self: center;
  padding: 0;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(0,0,0,.92), 0 0 8px rgba(0,0,0,.58);
}
.identity-points b { font-size: clamp(.9rem, 2.65vw, 1.3rem); font-weight: 950; }
.player-identity.plaque-p03 .identity-points,
.player-identity.plaque-p08 .identity-points,
.player-identity.plaque-p13 .identity-points {
  text-shadow: 0 1px 1px rgba(255,255,255,.72), 0 0 5px rgba(255,255,255,.5);
}

.podium-plaque .player-plaque-art,
.identity-hero .podium-plaque .player-plaque-art,
.identity-podium .podium-plaque .player-plaque-art,
.identity-shopset .podium-plaque .player-plaque-art {
  inset: 0;
  width: auto;
  height: auto;
  object-fit: initial;
  filter: drop-shadow(0 10px 6px rgba(0,0,0,.55));
}

.home-shell .rank-list.is-scrollable { max-height: 720px; }

.podium-plaque,
.identity-hero .podium-plaque,
.identity-podium .podium-plaque,
.identity-shopset .podium-plaque {
  left: 7%;
  right: 1%;
  width: auto;
  height: auto;
  aspect-ratio: 3.05 / 1;
  padding: 8% 18% 8% 32%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.identity-hero,
.identity-podium { height: 355px; }
.home-player-console .identity-hero { height: 335px; }
.podium-avatar { left: 1%; bottom: 80px; width: 49%; height: 270px; }
.podium-avatar.is-neutral { left: 4%; bottom: 92px; width: 38%; height: 215px; }
.identity-shopset { height: 275px; }
.identity-shopset .podium-plaque { left: 5%; right: 1%; bottom: 36px; height: auto; padding-left: 31%; }
.identity-shopset .podium-avatar { left: 0; bottom: 65px; width: 48%; height: 205px; }
.identity-shopset .podium-avatar.is-neutral { left: 4%; bottom: 76px; width: 37%; height: 155px; }
.shop-set-preview { height: 280px; }

/* Das Markenzeichen bleibt ein deutliches Gehirn, auch neben dem Wortlogo. */
.arena-brand-lockup { grid-template-columns: 178px auto; gap: 4px; width: min(100%, 790px); }
.arena-brain { width: 178px; }
.brain-hemisphere,
.brain-stem {
  fill: url(#brainFill);
  stroke: #0b1135;
  stroke-linejoin: round;
  stroke-width: 7;
}
.brain-left { filter: saturate(.92) brightness(1.08); }
.brain-right { filter: saturate(1.08); }
.brain-stem { stroke-width: 6; }
.brain-center { fill: none; stroke: #141844; stroke-linecap: round; stroke-width: 6; }
.brain-fold { stroke: rgba(8,12,38,.76); stroke-width: 5; }
.brain-bolt { stroke-width: 5; }

/* Profilpult: Steuerung hat eigene Plätze und verdeckt keine Illustration. */
.home-player-console {
  min-height: 408px;
  padding: 62px 18px 58px;
  overflow: visible;
}
.console-customize {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sky);
  font-size: .76rem;
  font-weight: 950;
  text-decoration: none;
}
.console-customize:hover { color: var(--acid); }
.console-logout {
  position: absolute;
  right: 26px;
  bottom: 20px;
  z-index: 8;
  margin: 0;
}
.console-logout button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #9ba6bc;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 850;
}
.console-logout button:hover { color: #fff; }
.home-player-console .identity-hero { height: 285px; }
.avatar-speech-bubble {
  position: absolute;
  top: 4px;
  right: 3%;
  z-index: 7;
  max-width: 48%;
  padding: 13px 17px;
  border: 2px solid rgba(114,221,255,.7);
  border-radius: 20px 20px 20px 5px;
  background: rgba(245,249,255,.96);
  color: #11182f;
  box-shadow: 5px 7px 0 rgba(42,48,100,.72), 0 12px 28px rgba(0,0,0,.28);
  text-shadow: none;
  font-size: clamp(.78rem, 2vw, .98rem);
  font-weight: 900;
  line-height: 1.25;
}
.avatar-speech-bubble::after {
  position: absolute;
  left: -14px;
  bottom: -2px;
  width: 22px;
  height: 20px;
  border-bottom: 2px solid rgba(114,221,255,.7);
  background: rgba(245,249,255,.96);
  clip-path: polygon(100% 0, 0 100%, 100% 72%);
  content: "";
}

/* Der dritte Shopreiter zeigt die spätere Spruchfunktion, noch ohne Preise. */
.phrase-preview-card {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(114,221,255,.2);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25,30,72,.9), rgba(9,13,36,.94));
}
.phrase-preview-copy > span { color: var(--sky); font-size: .65rem; font-weight: 950; letter-spacing: .16em; }
.phrase-preview-copy h2 { margin: 8px 0; color: #f2f5fb; font-size: clamp(1.35rem, 3vw, 2rem); }
.phrase-preview-copy p { color: #98a4ba; line-height: 1.5; }
.phrase-preview-stage { min-width: 0; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 42% 45%, rgba(78,102,194,.3), transparent 65%); }
.phrase-preview-stage .identity-shopset { transform: none; }
.phrase-preview-card > button { grid-column: 1 / -1; width: 100%; }

/* Tagessieger-Begrüßung beim ersten Login des Tages. */
.winner-dialog {
  width: min(94vw, 920px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(114,221,255,.5);
  border-radius: 30px;
  background: radial-gradient(circle at 50% 52%, #24346f, #090d28 70%);
  color: #f5f7fb;
  box-shadow: 0 30px 90px rgba(0,0,0,.72), inset 0 0 0 2px rgba(255,255,255,.04);
}
.winner-dialog::backdrop { background: rgba(2,4,15,.84); backdrop-filter: blur(9px); }
.winner-celebration { display: grid; min-height: min(780px, 90vh); grid-template-rows: auto minmax(0,1fr) auto; padding: 28px; text-align: center; }
.winner-copy > span { color: var(--acid); font-size: .72rem; font-weight: 950; letter-spacing: .18em; }
.winner-copy h2 { margin: 7px 0 0; font-size: clamp(1.55rem, 4vw, 2.8rem); }
.winner-avatar-stage { position: relative; min-height: 0; }
.winner-avatar-stage img { display: block; width: 100%; height: 100%; max-height: 570px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 15px rgba(0,0,0,.55)); }
.winner-speech {
  position: absolute;
  top: 8%;
  right: 5%;
  z-index: 2;
  max-width: 42%;
  padding: 14px 18px;
  border: 3px solid var(--sky);
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  color: #11172d;
  box-shadow: 6px 7px 0 #4c398f;
  font-size: clamp(.9rem, 2.2vw, 1.2rem);
  font-weight: 950;
}
.winner-congratulate { width: min(100%, 480px); min-height: 54px; border: 0; border-radius: 16px; background: var(--acid); color: #0a0d25; cursor: pointer; font-weight: 950; }

@media (max-width: 760px) {
  .arena-brand-lockup { grid-template-columns: 130px auto; }
  .arena-brain { width: 130px; }
  .identity-ranking .player-card-surface { grid-template-columns: clamp(68px,22%,138px) minmax(0,1fr) max-content; }
  .phrase-preview-card { grid-template-columns: 1fr; }
  .phrase-preview-card > button { grid-column: auto; }
}

@media (max-width: 480px) {
  .arena-brand-lockup { grid-template-columns: 100px minmax(0,1fr); }
  .arena-brain { width: 104px; }
  .identity-ranking { padding-left: 28px; }
  .identity-ranking .player-card-surface { grid-template-columns: 22% minmax(0,1fr) max-content; gap: 5px; padding-right: 20%; }
  .identity-ranking .player-avatar { width: 100%; height: auto; border-radius: 14px 14px 7px 14px; }
  .identity-ranking .player-plaque-label strong { font-size: clamp(.72rem, 3.2vw, .9rem); }
  .identity-points b { font-size: clamp(.72rem, 3.1vw, .9rem); }
  .identity-points small { display: none; }
  .home-player-console { min-height: 350px; padding: 56px 6px 52px; }
  .home-player-console .identity-hero { height: 265px; }
  .console-customize { top: 19px; left: 18px; }
  .console-logout { right: 18px; bottom: 16px; }
  .avatar-speech-bubble { top: 0; right: 2%; max-width: 52%; padding: 10px 12px; }
  .phrase-preview-card { padding: 15px; }
  .winner-celebration { min-height: 88vh; padding: 20px 14px; }
  .winner-avatar-stage img { max-height: 60vh; }
  .winner-speech { top: 9%; right: 1%; max-width: 52%; padding: 10px 12px; border-width: 2px; }
}

@media (max-width: 350px) {
  .identity-ranking .player-card-surface { grid-template-columns: 22% minmax(0,1fr) max-content; padding-right: 19%; }
}

/* Startseite, kompakte Fassung: fünf Plätze bleiben auf einen Blick erfassbar. */
body:has(.home-shell) { padding-bottom: 205px; }
.home-shell .rank-list,
.home-shell .rank-list.is-scrollable { gap: 7px; max-height: 432px; }
.identity-ranking { padding-left: 35px; }
.identity-ranking .player-card-surface {
  grid-template-columns: 72px minmax(0,1fr) max-content;
  gap: 7px;
  min-height: 76px;
  aspect-ratio: auto;
  padding: 5px 70px 5px 3px;
  overflow: visible;
}
.identity-ranking:not(.plaque-p00) .player-card-surface {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.identity-ranking:not(.plaque-p00) .player-card-surface::after { display: none; }
.identity-ranking:not(.plaque-p00) .player-plaque-art {
  inset: 0;
  border-style: solid;
  border-width: 0 62px;
  border-image-source: var(--plaque-source);
  border-image-slice: 0 225 0 225 fill;
  border-image-width: 0 62px;
  border-image-repeat: stretch;
  background: none;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.52));
}
.identity-ranking .player-avatar,
.identity-ranking .player-avatar.is-neutral {
  z-index: 4;
  width: 76px;
  height: 82px;
  margin: -3px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.identity-ranking .player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(3px 5px 3px rgba(0,0,0,.62));
}
.identity-ranking .player-avatar.is-neutral img {
  width: 66px;
  height: 66px;
  margin: 8px auto 0;
  border: 1px solid rgba(114,221,255,.24);
  border-radius: 14px;
  background: #111a40;
  filter: none;
}
.identity-ranking .player-plaque-label strong { font-size: clamp(.8rem, 1.8vw, 1rem); }
.identity-ranking .identity-points b { font-size: clamp(.82rem, 1.9vw, 1.04rem); }
.identity-ranking .identity-points { z-index: 5; }
.identity-rank { width: 43px; height: 43px; font-size: .88rem; }

/* Die drei bisherigen Blöcke werden zu Navigation, Sprechblase und Pultaktion. */
.arena-utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 12px 4px 18px;
}
.arena-utility-row .party-mode-link {
  width: auto;
  min-width: 190px;
  margin: 0;
  padding: 11px 22px;
}
.arena-utility-row .catchup-date { margin: 0 auto 0 0; }

/* Das eigene Pult schwebt dauerhaft am unteren Fensterrand. */
.home-player-console {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  width: min(880px, calc(100vw - 28px));
  min-height: 0;
  height: 180px;
  margin: 0;
  padding: 14px 16px 10px;
  overflow: visible;
  border-color: rgba(114,221,255,.42);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(15,21,52,.96), rgba(6,10,29,.97));
  box-shadow: 0 18px 60px rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,255,255,.035);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.home-player-console .identity-hero {
  width: min(100%, 680px);
  height: 158px;
  margin: 0 auto;
}
.home-player-console .podium-avatar {
  left: 0;
  bottom: 20px;
  width: 34%;
  height: 145px;
}
.home-player-console .podium-avatar.is-neutral {
  left: 4%;
  bottom: 29px;
  width: 24%;
  height: 112px;
}
.home-player-console .podium-structure { inset: auto 4% 0 10%; height: 82px; }
.home-player-console .podium-wing { bottom: 16px; height: 50px; border-width: 3px; }
.home-player-console .podium-base { height: 25px; border-width: 3px; }
.home-player-console .podium-plaque {
  left: 18%;
  right: 5%;
  bottom: 34px;
  height: 92px;
  aspect-ratio: auto;
  padding: 10px 19% 10px 24%;
}
.home-player-console .podium-plaque strong { font-size: clamp(1.05rem, 3vw, 1.5rem); }
.home-player-console .avatar-speech-bubble {
  top: 5px;
  right: 2%;
  max-width: 42%;
  padding: 9px 13px;
  font-size: .78rem;
}
.home-player-console .console-customize { top: 12px; left: 18px; font-size: .68rem; }
.home-player-console .console-logout { right: 18px; bottom: 10px; }
.console-round-action {
  position: absolute;
  right: 12%;
  bottom: 8px;
  z-index: 12;
  width: min(42%, 330px);
}
.console-round-action form { margin: 0; }
.console-round-action .home-action {
  min-height: 39px;
  padding: 5px 12px;
  border-width: 2px;
  border-radius: 12px;
  box-shadow: 3px 4px 0 #303177;
  font-size: .7rem;
}
.console-round-action .button-art { width: 31px; height: 31px; }

/* Begrüßung: nur die freigestellte Siegerfigur mit angehängtem Knopf. */
.winner-dialog {
  width: min(92vw, 760px);
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.winner-dialog::backdrop { background: rgba(2,4,15,.78); backdrop-filter: blur(8px); }
.winner-celebration {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 0 34px;
  background: transparent;
}
.winner-avatar-stage {
  position: relative;
  width: min(88vw, 700px);
  height: min(78vh, 720px);
  margin: 0 auto;
}
.winner-avatar-stage img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 18px rgba(0,0,0,.72));
}
.winner-speech { top: 15%; right: 2%; max-width: 43%; }
.winner-celebration > form {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 4;
  width: min(72%, 440px);
  transform: translateX(-50%);
}
.winner-congratulate {
  width: 100%;
  box-shadow: 0 7px 0 #4d318f, 0 14px 28px rgba(0,0,0,.42);
}

@media (max-width: 760px) {
  body:has(.home-shell) { padding-bottom: 184px; }
  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable { max-height: 402px; }
  .identity-ranking .player-card-surface { grid-template-columns: 64px minmax(0,1fr) max-content; min-height: 69px; padding-right: 59px; }
  .identity-ranking:not(.plaque-p00) .player-plaque-art { border-width: 0 52px; border-image-width: 0 52px; }
  .identity-ranking .player-avatar,
  .identity-ranking .player-avatar.is-neutral { width: 68px; height: 74px; }
  .identity-ranking .player-avatar.is-neutral img { width: 58px; height: 58px; }
  .home-player-console { height: 160px; }
  .home-player-console .identity-hero { height: 140px; }
  .home-player-console .podium-avatar { height: 128px; }
  .home-player-console .podium-avatar.is-neutral { height: 100px; }
  .home-player-console .podium-plaque { bottom: 30px; height: 80px; }
  .home-player-console .podium-structure { height: 70px; }
}

@media (max-width: 480px) {
  body:has(.home-shell) { padding-bottom: 165px; }
  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable { max-height: 370px; }
  .identity-ranking { padding-left: 27px; }
  .identity-ranking .player-card-surface { grid-template-columns: 54px minmax(0,1fr) max-content; min-height: 63px; padding: 4px 48px 4px 1px; }
  .identity-ranking:not(.plaque-p00) .player-plaque-art { border-width: 0 42px; border-image-width: 0 42px; }
  .identity-ranking .player-avatar,
  .identity-ranking .player-avatar.is-neutral { width: 58px; height: 66px; }
  .identity-ranking .player-avatar.is-neutral img { width: 50px; height: 50px; margin-top: 8px; }
  .identity-ranking .player-plaque-label strong { font-size: .72rem; }
  .identity-ranking .identity-points b { font-size: .74rem; }
  .identity-rank { width: 35px; height: 35px; }
  .arena-utility-row { margin-bottom: 12px; }
  .arena-utility-row .party-mode-link { min-width: 160px; padding: 9px 14px; }
  .home-player-console { bottom: 7px; width: calc(100vw - 14px); height: 145px; padding-inline: 7px; border-radius: 18px; }
  .home-player-console .identity-hero { height: 126px; }
  .home-player-console .podium-avatar { bottom: 16px; width: 36%; height: 112px; }
  .home-player-console .podium-avatar.is-neutral { bottom: 24px; height: 85px; }
  .home-player-console .podium-plaque { left: 16%; right: 1%; bottom: 27px; height: 72px; padding-left: 28%; }
  .home-player-console .podium-plaque strong { font-size: .9rem; }
  .home-player-console .avatar-speech-bubble { top: 0; right: 0; max-width: 46%; padding: 7px 9px; font-size: .62rem; }
  .home-player-console .console-customize { left: 11px; top: 9px; }
  .home-player-console .console-logout { right: 11px; bottom: 7px; }
  .console-round-action { right: 10%; bottom: 5px; width: 48%; }
  .console-round-action .home-action { min-height: 34px; font-size: .6rem; }
  .console-round-action .button-art { display: none; }
  .winner-avatar-stage { height: min(74vh, 620px); }
  .winner-speech { top: 14%; right: 0; max-width: 50%; padding: 10px 12px; }
  .winner-celebration > form { width: 78%; }
}

/* Präzisierung: bis zu zehn Plätze wachsen natürlich, erst danach wird gescrollt. */
.home-shell .rank-list { max-height: none; padding-top: 16px; }
.home-shell .rank-list.is-scrollable { max-height: 900px; }
.identity-ranking .player-card-surface { min-height: 82px; }
.identity-ranking:not(.plaque-p00) .player-plaque-art {
  top: 12px;
  bottom: 1px;
}
.identity-ranking .player-avatar,
.identity-ranking .player-avatar.is-neutral {
  z-index: 7;
  width: 82px;
  height: 94px;
  margin: -10px 0 -2px;
  transform: translateY(-3px);
}
.identity-ranking .player-avatar.is-neutral img { margin-top: 15px; }
.identity-ranking .player-plaque-label,
.identity-ranking .identity-points { padding-top: 10px; }

/* Das Pult folgt direkt auf die Rangliste. Es bleibt nur beim Scrollen am
   unteren Rand hängen, statt dort unabhängig vom Seiteninhalt festzukleben. */
body:has(.home-shell) { padding-bottom: 0; }
.home-player-console {
  position: sticky;
  left: auto;
  bottom: 10px;
  width: 100%;
  height: 300px;
  margin: 14px 0 10px;
  padding: 18px 16px 58px;
  transform: none;
}
.home-player-console .identity-hero {
  width: min(100%, 720px);
  height: 224px;
}
/* Bühne: Figur hinten, Pultkörper und Plakette deutlich davor. */
.identity-hero .podium-avatar,
.identity-podium .podium-avatar,
.identity-shopset .podium-avatar { z-index: 2; }
.identity-hero .podium-plaque,
.identity-podium .podium-plaque,
.identity-shopset .podium-plaque { z-index: 5; }
.home-player-console .podium-avatar {
  left: 7%;
  bottom: 52px;
  width: 43%;
  height: 205px;
}
.home-player-console .podium-avatar.is-neutral {
  left: 10%;
  bottom: 61px;
  width: 30%;
  height: 155px;
}
.home-player-console .podium-structure { inset: auto 3% 14px 8%; height: 105px; }
.home-player-console .podium-wing { bottom: 21px; height: 67px; }
.home-player-console .podium-base { height: 32px; }
.home-player-console .podium-plaque {
  left: 14%;
  right: 3%;
  bottom: 52px;
  height: 112px;
  padding-left: 31%;
}
.home-player-console .avatar-speech-bubble { top: 8px; right: 1%; }
.console-round-action {
  right: 19%;
  bottom: 10px;
  width: min(46%, 360px);
}
.home-player-console .console-logout { right: 18px; bottom: 14px; }

/* Die Seite bleibt hinter der Siegerfigur sichtbar. */
.winner-dialog::backdrop { background: rgba(2,4,15,.3); backdrop-filter: none; }

@media (max-width: 760px) {
  .home-shell .rank-list { max-height: none; }
  .home-shell .rank-list.is-scrollable { max-height: 820px; }
  .identity-ranking .player-card-surface { min-height: 75px; }
  .identity-ranking .player-avatar,
  .identity-ranking .player-avatar.is-neutral { width: 72px; height: 84px; margin-top: -8px; }
  .home-player-console { height: 270px; padding-bottom: 53px; }
  .home-player-console .identity-hero { height: 198px; }
  .home-player-console .podium-avatar { bottom: 45px; height: 181px; }
  .home-player-console .podium-avatar.is-neutral { bottom: 54px; height: 136px; }
  .home-player-console .podium-plaque { bottom: 44px; height: 98px; }
  .home-player-console .podium-structure { height: 92px; }
}

@media (max-width: 480px) {
  .home-shell .rank-list { max-height: none; }
  .home-shell .rank-list.is-scrollable { max-height: 720px; }
  .identity-ranking .player-card-surface { min-height: 68px; }
  .identity-ranking:not(.plaque-p00) .player-plaque-art { top: 9px; }
  .identity-ranking .player-avatar,
  .identity-ranking .player-avatar.is-neutral { width: 62px; height: 75px; margin-top: -7px; }
  .identity-ranking .player-avatar.is-neutral img { margin-top: 12px; }
  .identity-ranking .player-plaque-label,
  .identity-ranking .identity-points { padding-top: 8px; }
  .home-player-console {
    bottom: 6px;
    width: 100%;
    height: 225px;
    padding: 13px 7px 48px;
  }
  .home-player-console .identity-hero { height: 164px; }
  .home-player-console .podium-avatar { left: 4%; bottom: 36px; height: 150px; }
  .home-player-console .podium-avatar.is-neutral { bottom: 43px; height: 110px; }
  .home-player-console .podium-plaque { left: 11%; bottom: 35px; height: 82px; padding-left: 32%; }
  .home-player-console .podium-structure { height: 75px; }
  .console-round-action { right: 14%; bottom: 7px; width: 55%; }
  .home-player-console .console-logout { bottom: 9px; }
}

/* Strikte Trennung: Plakettenbilder existieren nur im Highscore. Die Bühne
   baut stattdessen eine massive Vorderseite aus dem gewählten Pultmaterial. */
.identity-hero .podium-front,
.identity-podium .podium-front,
.identity-shopset .podium-front {
  overflow: hidden;
  border: 4px solid var(--podium-dark);
  border-radius: 18px 18px 25px 25px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--podium-edge) 58%, #fff 8%) 0 5px, transparent 5px),
    linear-gradient(105deg, var(--podium-main), var(--podium-dark) 82%);
  box-shadow:
    0 0 25px var(--podium-glow),
    7px 9px 0 rgba(2,4,16,.68),
    inset 0 0 0 3px color-mix(in srgb, var(--podium-edge) 58%, transparent);
}
.identity-hero .podium-front::before,
.identity-podium .podium-front::before,
.identity-shopset .podium-front::before {
  position: absolute;
  inset: 13px 18px;
  z-index: 0;
  pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--podium-edge) 62%, transparent);
  border-radius: 10px 10px 16px 16px;
  content: "";
}
.podium-front .player-plaque-label { z-index: 2; }
.player-identity.plaque-p01 .podium-front { background: repeating-linear-gradient(90deg, #71401f 0 44px, #875127 45px 48px); }
.player-identity.plaque-p02 .podium-front { background: linear-gradient(145deg, #555d6b, #1d222c 72%); clip-path: polygon(2% 3%, 98% 0, 100% 88%, 95% 100%, 4% 96%, 0 14%); }
.player-identity.plaque-p03 .podium-front { background: repeating-linear-gradient(0deg, #82909e 0 2px, #596675 3px 5px); }
.player-identity.plaque-p04 .podium-front { background: repeating-linear-gradient(125deg, #37333f 0 9px, #76505d 10px 12px, #4f5668 13px 20px); }
.player-identity.plaque-p05 .podium-front { border-color: #ff5b90; background: #17143d; box-shadow: inset 0 0 0 3px #45dcff, 0 0 20px #ff5b90, 0 0 32px rgba(69,220,255,.62); }
.player-identity.plaque-p06 .podium-front { background: radial-gradient(ellipse at 42% 18%, #954767, #43172f 72%); }
.player-identity.plaque-p07 .podium-front { background: radial-gradient(circle at 18% 24%, #ff6b57 0 3px, transparent 4px), radial-gradient(circle at 72% 66%, #d8ff42 0 3px, transparent 4px), linear-gradient(135deg, #45bde9, #5635a4); background-size: 28px 25px, 33px 30px, auto; }
.player-identity.plaque-p08 .podium-front { background: #e6d8b4; box-shadow: inset 0 0 0 4px #315b9f, inset 0 0 0 8px #df594a, 7px 9px 0 rgba(2,4,16,.68); }
.player-identity.plaque-p09 .podium-front { background: radial-gradient(circle at 20% 25%, #59a79d 0 3px, transparent 4px), linear-gradient(120deg, #b76337, #54332b 60%); background-size: 24px 25px, auto; }
.player-identity.plaque-p10 .podium-front { background: linear-gradient(100deg, #4a201b, #7f342c); box-shadow: inset 0 0 0 3px #c99b5d, inset 0 0 0 7px #5a281f, 7px 9px 0 rgba(2,4,16,.68); }
.player-identity.plaque-p11 .podium-front { background: linear-gradient(145deg, rgba(214,248,255,.95), #438bd0 48%, #164687); clip-path: polygon(2% 9%, 12% 0, 27% 7%, 44% 0, 61% 7%, 84% 0, 99% 11%, 96% 100%, 5% 94%); }
.player-identity.plaque-p12 .podium-front { background: radial-gradient(circle at 18% 70%, #d99b3e 0 4px, transparent 5px), linear-gradient(130deg, #302315, #604727 55%, #345528); background-size: 35px 32px, auto; border-radius: 34px 15px 31px 18px; }
.player-identity.plaque-p13 .podium-front { background: radial-gradient(circle at 22% 24%, #424751 0 2px, transparent 3px), linear-gradient(130deg, #aaa59c, #676a6e); background-size: 18px 18px, auto; box-shadow: inset 0 0 0 4px #2f62b5, inset 0 0 0 8px #b9ed2e, 7px 9px 0 rgba(2,4,16,.68); }

/* Echte Pultgrafiken ersetzen die provisorisch konstruierten Flächen komplett. */
.has-podium-art .podium-avatar {
  left: 50%;
  bottom: 124px;
  z-index: 2;
  width: 43%;
  height: 245px;
  transform: translateX(-50%);
}
.has-podium-art .podium-render {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 6;
  width: min(61%, 440px);
  aspect-ratio: 1.5 / 1;
  transform: translateX(-50%);
}
.has-podium-art .podium-render > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 10px rgba(0,0,0,.58));
}
.podium-render-name {
  position: absolute;
  top: 27%;
  left: 25%;
  right: 25%;
  z-index: 2;
  overflow: hidden;
  color: #111927;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255,255,255,.72);
  white-space: nowrap;
}
.podium-render-name strong { font-size: clamp(.82rem, 2.2vw, 1.28rem); text-overflow: ellipsis; }
.home-player-console:has(.has-podium-art) { height: 400px; padding-bottom: 58px; }
.home-player-console .has-podium-art.identity-hero { height: 330px; }
.home-player-console .has-podium-art .podium-avatar { bottom: 125px; height: 260px; }
.home-player-console .has-podium-art .avatar-speech-bubble { top: 12px; right: 0; }
.podium-asset-pending {
  position: absolute;
  left: 18%;
  right: 8%;
  bottom: 35%;
  z-index: 5;
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px dashed rgba(114,221,255,.35);
  border-radius: 15px;
  background: rgba(8,13,37,.82);
  color: #8ea0ba;
  text-shadow: none;
  font-size: .72rem;
  font-weight: 850;
}
.identity-shopset.has-podium-art { height: 275px; }
.identity-shopset.has-podium-art .podium-render { width: min(72%, 320px); }
.identity-shopset.has-podium-art .podium-avatar { bottom: 87px; width: 44%; height: 172px; }

@media (max-width: 760px) {
  .home-player-console:has(.has-podium-art) { height: 350px; }
  .home-player-console .has-podium-art.identity-hero { height: 285px; }
  .home-player-console .has-podium-art .podium-render { width: min(66%, 380px); }
  .home-player-console .has-podium-art .podium-avatar { bottom: 108px; height: 225px; }
}

@media (max-width: 480px) {
  .home-player-console:has(.has-podium-art) { height: 285px; }
  .home-player-console .has-podium-art.identity-hero { height: 220px; }
  .home-player-console .has-podium-art .podium-render { width: min(74%, 315px); }
  .home-player-console .has-podium-art .podium-avatar { bottom: 86px; width: 48%; height: 180px; }
  .podium-render-name { top: 26%; }
  .podium-render-name strong { font-size: .72rem; }
}

/* Eigenständige Desktop-Komposition: Die Arena und das Spielerpult stehen
   nebeneinander. Erst auf kleineren Bildschirmen wird daraus eine Spalte. */
@media (min-width: 880px) {
  .home-shell {
    width: min(100%, 1500px);
    max-width: 1500px;
    padding: 68px clamp(16px, 2.5vw, 46px) 42px;
  }

  .home-shell::before { inset-inline: 0; }

  .arena-brand-lockup {
    grid-template-columns: 136px auto;
    width: min(100%, 690px);
    margin: -24px auto 22px;
  }

  .arena-brain { width: 136px; }
  .arena-brand-lockup h1 { font-size: clamp(4rem, 5.2vw, 5.15rem); }

  .home-arena-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(330px, .88fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 16px 24px;
  }

  .home-arena-layout > .quiz-arena-board {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .home-arena-layout > .home-player-console {
    position: sticky;
    left: auto;
    bottom: auto;
    top: 78px;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 510px;
    margin: 0;
    padding: 44px 12px 66px;
    transform: none;
  }

  .home-player-console .has-podium-art.identity-hero {
    width: 100%;
    height: 400px;
  }

  .home-player-console .has-podium-art .podium-render {
    bottom: 4px;
    width: min(94%, 440px);
  }

  .home-player-console .has-podium-art .podium-avatar {
    bottom: 148px;
    width: 58%;
    height: 270px;
  }

  .home-player-console .has-podium-art .avatar-speech-bubble {
    top: 7px;
    right: 0;
    max-width: 48%;
  }

  .home-player-console .console-customize { top: 18px; left: 20px; }
  .home-player-console .console-logout { right: 18px; bottom: 15px; }

  .home-player-console .console-round-action {
    left: 50%;
    right: auto;
    bottom: 12px;
    width: min(68%, 320px);
    transform: translateX(-50%);
  }

  .home-arena-layout > .arena-utility-row {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    gap: 9px;
    width: 100%;
    margin: 0;
  }

  .home-arena-layout > .arena-utility-row .party-mode-link {
    width: 100%;
    min-width: 0;
  }

  .home-shell .rank-list { padding-top: 12px; }
}

/* Desktop-QuizArena: eine zusammenhängende Spielshow-Bühne statt zweier
   Dashboard-Karten. Unter 880px bleibt die eigenständige Mobilkomposition. */
.quiz-show-stage { position: relative; }
.arena-host,
.arena-wall-slogan,
.arena-light-rig,
.arena-floor { display: none; }
.podium-render-name small {
  margin-left: .45em;
  font-size: .62em;
  font-weight: 950;
  white-space: nowrap;
}

.player-identity.plaque-p03 .podium-render { aspect-ratio: 3 / 1; }

@media (min-width: 880px) {
  body:has(.home-shell) {
    height: 100svh;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    background:
      radial-gradient(ellipse at 50% 8%, rgba(37,101,194,.34), transparent 40%),
      radial-gradient(ellipse at 50% 102%, rgba(41,83,185,.4), transparent 45%),
      linear-gradient(180deg, #07112c 0%, #05091b 62%, #09102a 100%);
  }

  body:has(.home-shell) .currency-indicator.shop-trigger {
    position: fixed;
    top: 18px;
    right: max(22px, env(safe-area-inset-right));
    left: auto;
    z-index: 80;
    min-width: 190px;
    border-color: rgba(114,221,255,.72);
    box-shadow: 0 0 26px rgba(57,206,255,.16), inset 0 0 0 1px rgba(255,255,255,.08);
  }

  body:has(.home-shell) .rules-button.is-secondary {
    top: 22px;
    right: auto;
    left: max(22px, env(safe-area-inset-left));
    z-index: 80;
  }

  .home-date {
    position: fixed;
    top: 27px;
    right: 235px;
    z-index: 80;
    min-height: 0;
  }

  .home-date span {
    padding: 9px 17px;
    border: 1px solid rgba(142,128,255,.55);
    border-radius: 999px;
    background: rgba(10,15,43,.88);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  }

  .home-shell {
    --home-stage-inset: 16px;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 16px 20px 0;
  }

  .app-shell.has-account-bar.home-shell {
    padding-top: var(--home-stage-inset);
  }

  .home-shell::before {
    position: fixed;
    inset: 0;
    background:
      linear-gradient(90deg, transparent 49.85%, rgba(114,221,255,.045) 50%, transparent 50.15%),
      linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    mask-image: linear-gradient(#000 0 65%, transparent 96%);
  }

  .quiz-show-stage {
    display: grid;
    min-height: calc(100vh - 16px);
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    isolation: isolate;
  }

  .quiz-show-stage::before {
    position: absolute;
    inset: 8% 11% 13%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(20,81,175,.3), rgba(4,8,28,0) 68%);
    filter: blur(16px);
    content: "";
  }

  .arena-light-rig {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }

  .arena-light-rig::before,
  .arena-light-rig::after {
    position: absolute;
    top: -7%;
    width: 22%;
    height: 82%;
    background: linear-gradient(165deg, rgba(46,170,255,.22), transparent 67%);
    filter: blur(8px);
    content: "";
    transform-origin: top;
  }

  .arena-light-rig::before { left: 4%; transform: rotate(-9deg); }
  .arena-light-rig::after { right: 4%; transform: rotate(9deg) scaleX(-1); }
  .arena-light-rig i {
    position: absolute;
    top: 2%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #72ddff;
    box-shadow: 0 0 12px 5px rgba(114,221,255,.7), 0 0 42px 15px rgba(94,94,255,.35);
  }
  .arena-light-rig i:nth-child(1) { left: 18%; }
  .arena-light-rig i:nth-child(2) { left: 34%; background: #d8ff42; }
  .arena-light-rig i:nth-child(3) { right: 34%; background: #ff6b86; }
  .arena-light-rig i:nth-child(4) { right: 18%; }

  .quiz-show-stage > .arena-brand-lockup {
    position: relative;
    z-index: 20;
    grid-row: 1;
    grid-template-columns: clamp(102px, 8vw, 142px) auto;
    width: min(660px, 56vw);
    margin: -8px auto -7px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.55));
  }

  .quiz-show-stage > .arena-brand-lockup .arena-brain { width: clamp(102px, 8vw, 142px); }
  .quiz-show-stage > .arena-brand-lockup h1 {
    font-size: clamp(3.65rem, 5.2vw, 5.35rem);
    text-shadow: 0 5px 0 #4e328e, 0 0 18px rgba(114,221,255,.32);
  }

  .quiz-show-stage > .arena-brand-lockup .arena-wordmark > span { font-size: clamp(1.05rem, 1.8vw, 1.55rem); }

  .home-arena-layout {
    position: relative;
    z-index: 20;
    display: grid;
    width: min(900px, 64vw);
    grid-row: 2 / span 2;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-self: start;
    gap: 8px;
  }

  .home-arena-layout > .quiz-arena-board {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-arena-layout > .quiz-arena-board::before { display: none; }

  .home-shell .section-heading {
    padding: 0 8px 8px;
    text-shadow: 0 3px 8px rgba(0,0,0,.8);
  }

  .home-shell .section-heading h2 { font-size: clamp(1.5rem, 2.25vw, 2.08rem); }
  .home-shell .section-kicker { color: #72ddff; }
  .home-shell .live-pill { box-shadow: 0 0 18px rgba(216,255,66,.24); }

  .home-shell .leaderboard-tabs {
    gap: 12px;
    padding: 0 7% 9px;
  }

  .home-shell .leaderboard-tabs button {
    min-height: 37px;
    border-color: rgba(142,128,255,.45);
    background: linear-gradient(180deg, rgba(25,35,77,.88), rgba(9,14,40,.86));
    box-shadow: inset 0 1px rgba(255,255,255,.06);
  }

  .home-shell .leaderboard-tabs button[aria-selected="true"] {
    border-color: #d8ff42;
    background: linear-gradient(180deg, #dcff4d, #b9ee26);
    box-shadow: 0 0 20px rgba(216,255,66,.2);
  }

  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    gap: 2px;
    max-height: min(540px, 57vh);
    padding: 5px 4px 4px;
  }

  .home-shell .identity-ranking { padding-left: 52px; }
  .home-shell .identity-ranking .player-card-surface {
    grid-template-columns: 70px minmax(0,1fr) max-content;
    min-height: 64px;
    padding: 1px 76px 1px 2px;
  }

  .home-shell .identity-ranking.plaque-p00 .player-card-surface {
    width: 92%;
    min-height: 58px;
    margin-left: 2%;
    border-radius: 15px;
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art {
    top: 15px;
    bottom: -3px;
  }

  .home-shell .identity-ranking .player-avatar,
  .home-shell .identity-ranking .player-avatar.is-neutral {
    width: 80px;
    height: 92px;
    margin: -19px 0 -5px;
  }

  .home-shell .identity-ranking .player-avatar.is-neutral img {
    width: 55px;
    height: 55px;
    margin-top: 11px;
  }

  .home-shell .identity-ranking .player-plaque-label,
  .home-shell .identity-ranking .identity-points { padding-top: 12px; }
  .home-shell .identity-ranking .player-plaque-label strong { font-size: clamp(.85rem, 1.3vw, 1.06rem); }
  .home-shell .identity-ranking .identity-points b { font-size: clamp(.86rem, 1.28vw, 1.08rem); }
  .home-shell .identity-rank { width: 45px; height: 45px; }

  .home-arena-layout > .arena-utility-row {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: 6px;
    width: min(80%, 680px);
    margin: 1px auto 0;
  }

  .home-arena-layout > .arena-utility-row .party-mode-link {
    width: 100%;
    min-width: 0;
    padding: 9px 22px;
    border-color: rgba(142,128,255,.7);
    background: linear-gradient(180deg, rgba(44,35,103,.9), rgba(15,18,54,.92));
    box-shadow: 0 0 22px rgba(116,79,255,.14), inset 0 1px rgba(255,255,255,.08);
  }

  .home-arena-layout > .arena-utility-row .catchup-date { width: 100%; margin: 0; text-align: center; }

  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    grid-row: 3;
    width: min(760px, 86%);
    height: 270px;
    min-height: 0;
    margin: -4px auto 0;
    padding: 24px 8px 48px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
  }

  .home-player-console::before {
    position: absolute;
    inset: 40% -8% -8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(41,111,226,.46), rgba(5,9,27,0) 72%);
    filter: blur(9px);
    content: "";
  }

  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero {
    width: 100%;
    height: 222px;
  }

  .home-player-console .has-podium-art .podium-render {
    bottom: 1px;
    width: min(58%, 430px);
  }

  .home-player-console .has-podium-art .podium-avatar {
    bottom: 56px;
    width: 47%;
    height: 245px;
  }

  .home-player-console .has-podium-art .avatar-speech-bubble {
    top: -12px;
    right: 5%;
    max-width: 36%;
  }

  .home-player-console .console-customize {
    top: 54%;
    left: 17%;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(114,221,255,.42);
    border-radius: 9px;
    background: rgba(8,13,38,.85);
  }

  .home-player-console .console-logout {
    right: 18%;
    bottom: 32%;
  }

  .home-player-console .console-round-action {
    left: 50%;
    right: auto;
    bottom: 2px;
    width: min(47%, 330px);
    transform: translateX(-50%);
  }

  .home-player-console .console-round-action .home-action {
    min-height: 40px;
    border-color: #72ddff;
    box-shadow: 0 0 20px rgba(114,221,255,.16), 3px 4px 0 #303177;
  }

  .podium-render-name {
    top: 31%;
    left: 34%;
    right: 34%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .45em;
  }

  .podium-render-name strong { font-size: clamp(.82rem, 1.4vw, 1.15rem); }
  .podium-render-name small { margin: 0; }

  .arena-floor {
    position: absolute;
    right: -20px;
    bottom: 0;
    left: -20px;
    z-index: 1;
    display: block;
    height: 190px;
    overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 50% 100%, rgba(69,118,255,.42), transparent 56%),
      linear-gradient(180deg, transparent, rgba(2,6,20,.88));
    mask-image: linear-gradient(transparent, #000 32%);
  }

  .arena-floor::before,
  .arena-floor::after {
    position: absolute;
    left: 50%;
    bottom: -80px;
    width: 78%;
    aspect-ratio: 4 / 1;
    border: 3px solid rgba(64,220,255,.64);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(64,220,255,.58), inset 0 0 25px rgba(119,77,255,.32);
    content: "";
    transform: translateX(-50%);
  }

  .arena-floor::after { bottom: -45px; width: 48%; border-color: rgba(120,80,255,.66); }
}

@media (min-width: 1180px) {
  .arena-host {
    position: absolute;
    top: clamp(70px, 7vh, 100px);
    bottom: auto;
    z-index: 7;
    display: block;
    width: clamp(470px, 31vw, 690px);
    height: min(72vh, 760px);
    margin: 0;
    pointer-events: none;
  }

  .arena-host .arena-host-character {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 82%;
    height: 82%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 16px rgba(0,0,0,.7));
    transform: translateX(-50%);
  }

  .arena-host .arena-host-desk {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 16px rgba(0,0,0,.68));
  }

  .arena-host-left { left: clamp(-160px, -5vw, -46px); }
  .arena-host-right { right: clamp(-160px, -5vw, -46px); }
  .arena-host-left .arena-host-desk { transform: scaleX(-1); }

  .arena-buzzer { display: none; }

  .arena-wall-slogan {
    position: absolute;
    bottom: 10%;
    z-index: 3;
    display: block;
    width: clamp(150px, 14vw, 230px);
    padding: 16px;
    border: 2px solid rgba(71,122,222,.35);
    background: rgba(5,12,36,.62);
    color: #8f65ff;
    font-size: clamp(.82rem, 1.45vw, 1.35rem);
    font-weight: 950;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 0 11px rgba(143,101,255,.72);
    transform: rotate(-3deg);
  }

  .arena-wall-slogan-left { left: 1%; }
  .arena-wall-slogan-right { right: 1%; transform: rotate(3deg); }
}

@media (min-width: 1500px) {
  .home-arena-layout { width: min(900px, 55vw); }
}

@media (min-width: 880px) and (max-height: 850px) {
  .quiz-show-stage > .arena-brand-lockup {
    grid-template-columns: 92px auto;
    width: 570px;
    margin-top: -14px;
    margin-bottom: -14px;
  }
  .quiz-show-stage > .arena-brand-lockup .arena-brain { width: 92px; }
  .quiz-show-stage > .arena-brand-lockup h1 { font-size: 3.8rem; }
  .quiz-show-stage > .arena-brand-lockup .arena-wordmark > span { font-size: 1rem; }
  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable { max-height: 405px; }
  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) { height: 225px; }
  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero { height: 185px; }
  .home-player-console .has-podium-art .podium-render { bottom: 0; width: min(54%, 385px); }
  .home-player-console .has-podium-art .podium-avatar { bottom: 48px; width: 45%; height: 218px; }
  .home-player-console .has-podium-art .avatar-speech-bubble { top: 4px; }
  .arena-host { top: 56px; height: min(74vh, 650px); }
}

/* Arena-Ausbau: zentrale Bereichsnavigation, echte Kulisse und finale Pultsets. */
.arena-main-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 92;
  display: flex;
  gap: 7px;
  width: min(760px, calc(100vw - 580px));
  min-width: 560px;
  padding: 5px;
  border: 1px solid rgba(114,221,255,.32);
  border-radius: 16px;
  background: rgba(7,12,34,.9);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.arena-nav-cluster {
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
  padding: 2px;
  border-radius: 12px;
}
.arena-nav-home {
  flex-grow: .92;
  background: rgba(114,221,255,.045);
}
.arena-main-nav a,
.arena-main-nav span {
  display: grid;
  min-height: 38px;
  flex: 1 1 auto;
  place-items: center;
  padding: 5px 10px;
  border-radius: 11px;
  color: #bdc7da;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.arena-main-nav a:hover { background: rgba(114,221,255,.09); color: #fff; }
.arena-main-nav a.is-active {
  background: linear-gradient(180deg, #e1ff58, #b9ed27);
  color: #0a1126;
  box-shadow: 0 0 18px rgba(216,255,66,.18);
}
.arena-main-nav span { color: #66718a; cursor: not-allowed; }

.has-podium-art .podium-render { aspect-ratio: 3 / 1; }
.podium-render-name {
  top: 52%;
  left: 22%;
  right: 22%;
  transform: translateY(-50%);
}

.plaque-only-preview .identity-shopset.has-podium-art {
  height: 220px;
  transform: none;
}
.plaque-only-preview .identity-shopset.has-podium-art .podium-render {
  bottom: 42px;
  width: 96%;
  max-width: none;
}
.plaque-only-preview .identity-shopset.no-avatar .podium-aura {
  top: 38%;
  bottom: 7%;
}
.plaque-only-preview .identity-shopset .podium-render-name strong { font-size: clamp(.74rem, 1.35vw, 1rem); }
.plaque-only-preview .identity-shopset.plaque-p00 .podium-structure { left: 5%; right: 5%; bottom: 42px; }
.plaque-only-preview .identity-shopset.plaque-p00 .podium-plaque {
  left: 8%;
  right: 8%;
  bottom: 62px;
  height: 72px;
  padding-left: 7%;
}

@media (min-width: 880px) {
  body:has(.home-shell) {
    background-color: #050a20;
    background-image:
      linear-gradient(180deg, rgba(2,6,22,.05), rgba(2,5,18,.24)),
      url('/static/arena-stage-background-v1.png');
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
  }
  body:has(.home-shell) .home-shell::before { opacity: .32; }
  .quiz-show-stage > .arena-brand-lockup { margin-top: 42px; }
  .arena-floor { opacity: .38; }

  .home-player-console .has-podium-art .podium-render {
    bottom: 0;
    width: min(58%, 430px);
  }
  .home-player-console .has-podium-art .podium-avatar {
    bottom: 66px;
    width: 37%;
    height: 235px;
  }
  .home-player-console .has-podium-art .avatar-speech-bubble {
    top: -20px;
    right: auto;
    left: 59%;
    max-width: 34%;
  }
  .home-player-console .has-podium-art .avatar-speech-bubble::after {
    top: 32%;
    bottom: auto;
  }
}

@media (min-width: 1180px) {
  .arena-host-slogan {
    position: absolute;
    bottom: 5.5%;
    left: 21%;
    z-index: 4;
    display: grid;
    width: 58%;
    height: 18%;
    place-items: center;
    color: #c6b4ff;
    font-size: clamp(.62rem, .82vw, .9rem);
    font-weight: 950;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 0 10px rgba(108,80,255,.95), 0 2px 2px #07091c;
  }
  .arena-host-left .arena-host-slogan { color: #ffd5df; text-shadow: 0 0 10px rgba(255,70,106,.9), 0 2px 2px #07091c; }
}

@media (min-width: 880px) and (max-height: 850px) {
  .quiz-show-stage > .arena-brand-lockup { margin-top: 38px; }
  .home-player-console .has-podium-art .podium-avatar { bottom: 58px; width: 36%; height: 205px; }
  .home-player-console .has-podium-art .avatar-speech-bubble { top: -16px; left: 59%; }
}

@media (max-width: 1499px) {
  .arena-main-nav {
    top: 66px;
    width: min(720px, calc(100vw - 32px));
    min-width: 0;
  }
  .home-shell {
    --home-stage-inset: 116px;
    padding-top: var(--home-stage-inset);
  }
  .shop-shell { padding-top: 126px; }
}

@media (max-width: 760px) {
  .arena-main-nav {
    right: 8px;
    left: 8px;
    width: auto;
    overflow-x: auto;
    transform: none;
  }
  .arena-main-nav a,
  .arena-main-nav span { min-width: max-content; padding-inline: 12px; }
  .arena-nav-cluster { min-width: max-content; }
  .plaque-only-preview .identity-shopset.has-podium-art .podium-render { bottom: 50px; width: 98%; }
}

@media (max-width: 480px) {
  .home-shell .arena-brand-lockup {
    grid-template-columns: 70px minmax(0, 1fr);
    width: 100%;
    gap: 0;
  }
  .home-shell .arena-brain { width: 74px; }
  .home-shell .arena-brand-lockup h1 { font-size: 2.55rem; }
  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    position: relative;
    bottom: auto;
    height: 285px;
    margin-top: 14px;
  }
}

/* Letzte Priorität für die Startausstattung. */
.home-player-console:has(.plaque-p00) .console-customize {
  top: auto;
  bottom: 7px;
  left: 5%;
}

.home-player-console:has(.plaque-p00) .console-logout {
  right: 6%;
  bottom: 13px;
}

@media (max-width: 760px) {
  .home-player-console:has(.plaque-p00) .console-customize {
    bottom: 49px;
    left: 8px;
  }

  .home-player-console:has(.plaque-p00) .console-logout {
    right: 12px;
    bottom: 56px;
  }
}

/* Finale visuelle Priorität: dieselbe Arena in Spiel, Profil und Shop. */
body:has(.home-shell),
body:has(.shop-shell),
body:has(.profile-shell) {
  background:
    linear-gradient(rgba(3,8,27,.2), rgba(3,7,24,.42)),
    url("arena-stage-background-v1.png") center bottom / cover fixed no-repeat,
    #050a20 !important;
}

.podium-render-name {
  top: var(--podium-name-y, 52%) !important;
  left: 19%;
  right: 19%;
  color: #fff;
  line-height: 1;
  text-shadow: -2px -1px 1px #071020, 2px -1px 1px #071020, -2px 2px 1px #071020, 2px 2px 1px #071020, 0 0 7px #071020;
}

.podium-render-name strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: clamp(.95rem, 1.5vw, 1.22rem) !important;
  font-weight: 1000;
  letter-spacing: .01em;
  line-height: 1;
  text-overflow: ellipsis;
}

.player-identity.plaque-p03 .podium-render-name { left: 34%; right: 34%; }
.player-identity.plaque-p08 .podium-render-name,
.player-identity.plaque-p13 .podium-render-name {
  color: #101a31;
  text-shadow: 0 1px 1px rgba(255,255,255,.9), 0 0 5px rgba(255,255,255,.9);
}

.home-player-console .podium-render-name {
  display: grid;
  align-content: center;
  gap: 2px;
}

.home-player-console .podium-render-name small { margin: 0; line-height: 1; }

.home-player-console .plaque-p00.has-podium-art .podium-render {
  bottom: 0;
  width: min(58%, 430px);
}

.home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
  left: 50%;
  bottom: 67px;
  width: 132px;
  height: 132px;
  transform: translateX(-50%);
}

.home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral img {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-current .plaque-p00.has-podium-art .podium-avatar {
  bottom: 20px;
}

@media (max-width: 760px) {
  .podium-render-name strong { font-size: clamp(.82rem, 3.4vw, 1rem) !important; }
  .home-player-console .plaque-p00.has-podium-art .podium-render { width: min(74%, 340px); }
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 58px;
    width: 116px;
    height: 116px;
  }
}

/* Ansichtskorrektur: Highscore, eigenes Pult und Profil teilen sich jetzt eine
   klare Tiefenlogik. Figuren stehen hinter den Pulten; das eigene Set steht
   sichtbar im Vordergrund, die Moderatoren weiter hinten im Raum. */
html:has(.home-shell) { overflow-x: clip; }

.home-shell .identity-ranking .player-card-surface {
  column-gap: clamp(14px, 1.35vw, 22px);
}

.home-shell .identity-ranking.plaque-p00 .player-avatar {
  margin-left: 7px;
}

/* Das Profil ist die große Vorschau desselben Sets, das in der Arena steht. */
.profile-current {
  min-height: 430px;
  padding-bottom: 10px;
}

.profile-current .identity-hero,
.profile-current .identity-hero.plaque-p00 {
  width: min(100%, 760px);
  height: 350px;
}

.profile-current .has-podium-art .podium-render,
.profile-current .plaque-p00.has-podium-art .podium-render {
  bottom: 0;
  width: min(78%, 620px);
}

.profile-current .has-podium-art .podium-avatar,
.profile-current .plaque-p00.has-podium-art .podium-avatar,
.profile-current .plaque-p00.has-podium-art .podium-avatar.is-neutral {
  left: 50%;
  bottom: 104px;
  z-index: 2;
  width: 46%;
  height: 285px;
  transform: translateX(-50%);
}

.profile-current .has-podium-art .avatar-speech-bubble,
.profile-current .plaque-p00.has-podium-art .avatar-speech-bubble {
  top: 16px;
  right: 3%;
  left: auto;
  max-width: 34%;
}

@media (min-width: 880px) {
  .home-arena-layout {
    height: calc(100vh - 174px);
    min-height: 650px;
  }

  /* Das eigene Set steht frei auf dem Arenaboden. Seine Figur darf bewusst in
     den unteren Rand des Highscores ragen. */
  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    position: absolute;
    top: auto;
    right: auto;
    bottom: clamp(28px, 3.5vh, 43px);
    left: 50%;
    width: min(940px, 98%);
    height: 340px;
    margin: 0;
    padding: 24px 8px 48px;
    transform: translateX(-50%);
  }

  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero {
    height: 290px;
  }

  .home-player-console .has-podium-art .podium-render,
  .home-player-console .plaque-p00.has-podium-art .podium-render {
    --podium-name-y: 25%;
    bottom: 0;
    width: min(78%, 610px);
  }

  /* Die eigenen Pultgrafiken waren mit 3:1 deutlich flacher als die beiden
     Seitenpulte. Die höhere Front verdeckt nun den Unterkörper und lässt die
     Figur erkennbar hinter statt auf dem Pult stehen. */
  .home-player-console .has-podium-art .podium-render > img {
    transform: scaleY(1.36);
    transform-origin: center bottom;
  }

  .home-player-console .has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    left: 50%;
    bottom: 169px;
    z-index: 2;
    width: 53%;
    height: 390px;
    transform: translateX(-50%);
  }

  .home-player-console .has-podium-art .avatar-speech-bubble,
  .home-player-console .plaque-p00.has-podium-art .avatar-speech-bubble {
    top: -97px;
    right: -1%;
    left: auto;
    max-width: 32%;
  }

  .home-player-console .console-customize {
    top: auto;
    bottom: 73px;
    left: 7%;
  }

  .home-player-console .console-logout {
    right: 7%;
    bottom: 74px;
  }

  .home-player-console .console-round-action {
    bottom: 28px;
    width: min(47%, 360px);
  }

  .home-player-console:has(.plaque-p00) .console-customize {
    bottom: 39px;
    left: 7%;
  }

  .home-player-console:has(.plaque-p00) .console-logout {
    right: 7%;
    bottom: 45px;
  }
}

.home-player-console .podium-scoreline {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: clamp(8px, 1.25vw, 16px);
  width: 100%;
  margin: 4px auto 0;
  color: #82dcff;
  font-size: clamp(.5rem, .66vw, .64rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
  text-shadow: 0 1px 0 #06152f, 0 0 5px rgba(64,213,255,.72);
  white-space: nowrap;
}

.home-player-console .podium-scoreline span { display: inline-flex; gap: 4px; }
.home-player-console .podium-scoreline b {
  color: #d8ff42;
  font: inherit;
  text-shadow: 0 1px 0 #17240a, 0 0 6px rgba(216,255,66,.48);
}

.home-player-console .podium-render-name {
  justify-items: center;
  color: #eafaff;
  text-shadow: 0 2px 0 #06152f, 0 0 6px rgba(64,213,255,.76);
  transform: translateY(-50%) scaleY(.94);
  transform-origin: center;
}

.home-player-console .podium-render-name strong {
  letter-spacing: .025em;
  text-shadow: 0 2px 0 #06152f, 0 0 7px rgba(64,213,255,.8);
}

.home-shell .arena-wordmark > span {
  color: #f4fbff;
  text-shadow: 0 2px 2px #070c25, 0 0 10px rgba(114,221,255,.58);
}

.home-shell .arena-wordmark small {
  margin-top: 14px;
  color: #c9f5ff;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-align: center;
  text-shadow: 0 2px 2px #070c25, 0 0 8px rgba(114,221,255,.42);
}

@media (min-width: 880px) {
  /* Die beiden Wortmarken gehören bei jeder Desktopbreite sichtbar zusammen;
     die Beziehung darf nicht von hochauflösenden Pixelmaßen abhängen. */
  .quiz-show-stage > .arena-brand-lockup .arena-wordmark > span {
    position: relative;
    z-index: 1;
    transform: translateY(.32em);
  }
}

@media (min-width: 1180px) {
  /* Die Moderatoren stehen räumlich weiter hinten: höher auf dem Boden und
     deutlich kleiner als das eigene Set im Vordergrund. */
  .arena-host {
    top: auto;
    bottom: clamp(132px, 14vh, 182px);
    width: clamp(340px, 22vw, 470px);
    height: min(53vh, 560px);
  }

  .arena-host .arena-host-character {
    width: 76%;
    height: 76%;
  }

  .arena-host-right .arena-host-character {
    transform: translate(-50%, 9%);
  }

  .arena-host-left { left: 0; }
  .arena-host-right { right: 0; }
}

@media (min-width: 1500px) {
  /* Der komplette Markenblock sitzt unter der Navigation. Stormseed´s bleibt
     dabei bewusst eng mit dem Guesstimate-Schriftzug verbunden. */
  .quiz-show-stage > .arena-brand-lockup { margin-top: 68px; }
}

@media (min-width: 880px) and (min-height: 851px) and (max-height: 1000px) {
  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    bottom: 24px;
    height: 310px;
  }

  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero { height: 260px; }

  .home-player-console .has-podium-art .podium-render,
  .home-player-console .plaque-p00.has-podium-art .podium-render {
    width: min(75%, 570px);
  }

  .home-player-console .has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 145px;
    width: 50%;
    height: 350px;
  }

  .home-player-console .has-podium-art .avatar-speech-bubble,
  .home-player-console .plaque-p00.has-podium-art .avatar-speech-bubble {
    top: -75px;
  }
}

@media (min-width: 880px) and (max-height: 850px) {
  .home-arena-layout {
    height: calc(100vh - 142px);
    min-height: 590px;
  }

  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    bottom: 18px;
    height: 270px;
  }

  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero { height: 225px; }

  .home-player-console .has-podium-art .podium-render,
  .home-player-console .plaque-p00.has-podium-art .podium-render {
    width: min(72%, 520px);
  }

  .home-player-console .has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 132px;
    width: 48%;
    height: 305px;
  }

  .home-player-console .has-podium-art .avatar-speech-bubble,
  .home-player-console .plaque-p00.has-podium-art .avatar-speech-bubble {
    top: -58px;
  }

  .home-player-console .console-round-action { bottom: 18px; }
  .home-player-console:has(.plaque-p00) .console-customize { bottom: 28px; }
  .home-player-console:has(.plaque-p00) .console-logout { bottom: 34px; }

  .arena-host {
    bottom: 90px;
    height: min(52vh, 420px);
  }
}

@media (max-width: 760px) {
  .profile-current { min-height: 365px; }
  .profile-current .identity-hero,
  .profile-current .identity-hero.plaque-p00 { height: 290px; }
  .profile-current .has-podium-art .podium-render,
  .profile-current .plaque-p00.has-podium-art .podium-render { width: min(84%, 500px); }
  .profile-current .has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 82px;
    width: 50%;
    height: 225px;
  }
}

@media (max-width: 480px) {
  .home-shell .identity-ranking .player-card-surface { column-gap: 10px; }
  .home-shell .identity-ranking.plaque-p00 .player-avatar { margin-left: 3px; }
  .profile-current { min-height: 330px; }
  .profile-current .identity-hero,
  .profile-current .identity-hero.plaque-p00 { height: 260px; }
  .profile-current .has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 72px;
    width: 54%;
    height: 205px;
  }
  .profile-current .has-podium-art .avatar-speech-bubble,
  .profile-current .plaque-p00.has-podium-art .avatar-speech-bubble {
    top: 8px;
    right: 0;
    left: auto;
    max-width: 42%;
  }
}

/* Party-Finale: kompakte Bühnenkarten, auf denen jede Figur tatsächlich
   hinter ihrem Pult steht. So bleiben auch längere Ergebnislisten sichtbar. */
.party-finale { margin-bottom: 14px; }
.party-podium { gap: 8px; }
.party-podium li {
  min-height: 164px;
  padding: 7px 14px;
}
.party-podium .identity-podium {
  width: min(100%, 360px);
  height: 148px;
}
.party-podium .identity-podium.has-podium-art .podium-render {
  bottom: 0;
  width: min(78%, 250px);
}
.party-podium .identity-podium.has-podium-art .podium-avatar,
.party-podium .identity-podium.plaque-p00.has-podium-art .podium-avatar.is-neutral {
  left: 50%;
  bottom: 38px;
  width: 58%;
  height: 110px;
  transform: translateX(-50%);
}
.party-podium .identity-podium.has-podium-art .podium-avatar img {
  object-position: center bottom;
}
.party-podium .identity-podium .podium-aura { inset: 18% 16% 3%; }
.party-podium .podium-render-name strong { font-size: clamp(.76rem, 2vw, 1rem) !important; }

@media (max-width: 700px) {
  .party-podium li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; }
  .party-podium li > b { grid-column: 3; margin: 0; }
  .party-podium .identity-podium.has-podium-art .podium-render { width: min(84%, 238px); }
}

/* Persönliche Hintergründe: ein Asset für Shopkarte, Spielerfenster und Bühne. */

/* Perfect keeps its own lobby-browser artwork. The Classic overview deliberately
   inherits the same player background as its opened lobby. */
body.has-player-background:has(.perfect-index-shell),
body:has(.perfect-index-shell) {
  background-color: #24100c !important;
  background-image: url("carousel-stormseeds-perfect-v1.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
body:has(.perfect-index-shell) .noise { display: none; }

/* Profilkopie: Die spätere Variante-A-Grundregel setzt min-height: 0.
   Hier wird das eigenständige Profilfenster deshalb bewusst zuletzt fixiert. */

/* Profil-Neufassung: große Originalbühne mit Garderobe daneben. */
@media (min-width: 1021px) {
  .arena-main-nav {
    grid-template-columns: 270px minmax(520px, 1fr) max-content max-content;
    width: min(1840px, calc(100vw - 48px));
  }
  .arena-main-nav .arena-nav-brand { padding-inline: 10px 18px; }
  .arena-main-nav .arena-nav-brand small {
    margin: 0 0 -3px 2px;
    font-size: .82rem;
    line-height: .85;
  }
  .arena-main-nav .arena-nav-brand strong {
    font-size: clamp(1.8rem, 2.05vw, 2.35rem);
    line-height: .9;
  }
  .arena-main-nav a,
  .arena-main-nav button,
  .arena-main-nav > .arena-nav-date { font-size: clamp(.82rem, .9vw, .98rem); }
  .arena-nav-home > a,
  .arena-nav-home > button { min-width: 118px; }
}

body:has(.profile-shell) { overflow-x: hidden; }
.profile-shell {
  width: min(1540px, calc(100% - 38px));
  max-width: 1540px;
  padding-top: 116px;
}
.profile-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding-inline: 3px;
}
.profile-hero h1 { margin: 1px 0 0; font-size: clamp(2rem, 3vw, 2.85rem); }
.profile-hero > div > p:last-child { margin: 1px 0 0; color: #b9c8df; font-weight: 700; }
.profile-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.profile-hero-actions > strong { color: #fff; font-size: 1.02rem; white-space: nowrap; }
.profile-hero-actions > strong small { color: #91a2bc; font-size: .72rem; }
.profile-hero .developer-toggle { margin: 0; }
.profile-hero .developer-toggle label { padding: 8px 12px; }

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(440px, 38fr) minmax(650px, 62fr);
  gap: 14px;
  align-items: stretch;
}
.profile-workspace .profile-current,
.profile-workspace .profile-wardrobe {
  min-width: 0;
  min-height: 620px;
  margin: 0;
}
.profile-workspace .profile-current { padding: 0; }
.profile-workspace .profile-wardrobe { padding: 18px 20px; }
.profile-window-copy { width: 100%; height: 100%; margin: 0; }
.profile-window-copy > .variant-a-profile {
  width: 100%;
  min-height: 620px;
  height: 100%;
  grid-template-rows: 1fr;
  border: 0;
  border-radius: 23px;
  box-shadow: none;
}
.profile-wardrobe .profile-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.profile-wardrobe .avatar-inventory,
.profile-wardrobe .plaque-inventory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-wardrobe .profile-panel { max-height: 516px; overflow: auto; padding-right: 3px; scrollbar-color: rgba(114,221,255,.38) transparent; }
.profile-wardrobe .profile-avatar-preview,
.profile-wardrobe .profile-plaque-preview { height: 142px; }
.profile-wardrobe .profile-plaque-preview .identity-shopset { height: 142px; }
.profile-wardrobe .background-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-wardrobe .phrase-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-trophies { margin-top: 14px; padding: 14px 20px; }
.profile-trophies .profile-section-heading { align-items: center; }
.profile-trophies .profile-section-heading h2 { font-size: 1.2rem; }
.profile-trophies .trophy-grid { margin-top: 12px; }
.profile-trophies .trophy-card { min-height: 70px; }

@media (max-width: 1180px) {
  .profile-workspace { grid-template-columns: minmax(390px, 42fr) minmax(540px, 58fr); }
  .profile-wardrobe .avatar-inventory,
  .profile-wardrobe .plaque-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-shell { width: min(100% - 20px, 720px); padding-top: 24px; }
  .profile-hero { align-items: flex-start; flex-direction: column; }
  .profile-workspace { grid-template-columns: 1fr; }
  .profile-workspace .profile-current,
  .profile-workspace .profile-wardrobe { min-height: 0; }
  .profile-wardrobe .profile-panel { max-height: none; }
}
@media (max-width: 560px) {
  .profile-hero-actions { align-items: flex-start; flex-direction: column; }
  .profile-wardrobe .profile-tabs { grid-template-columns: repeat(2, 1fr); }
  .profile-wardrobe .avatar-inventory,
  .profile-wardrobe .plaque-inventory,
  .profile-wardrobe .background-inventory,
  .profile-wardrobe .phrase-inventory { grid-template-columns: 1fr; }
}

/* Exakte Profilkopie: dieselbe .variant-a-profile-Komponente wie auf Home. */
.profile-window-copy {
  width: min(100%, 430px);
  margin: 16px auto 0;
}
.profile-window-copy > .variant-a-profile {
  width: 100%;
  min-height: 780px;
}
.profile-window-copy .variant-a-profile-scene { min-height: 570px; }
@media (max-width: 520px) {
  .profile-window-copy > .variant-a-profile { min-height: 690px; }
  .profile-window-copy .variant-a-profile-scene { min-height: 490px; }
}

.developer-toggle {
  display: flex;
  margin: 18px 0 0;
}
.developer-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(216, 255, 66, .42);
  border-radius: 12px;
  background: rgba(5, 19, 48, .82);
  color: #d8ff42;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 900;
}
.developer-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.developer-toggle label > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #7f91ad;
  border-radius: 6px;
  background: #07142f;
}
.developer-toggle input:checked + span {
  border-color: #d8ff42;
  background: #d8ff42;
  color: #071124;
}
.developer-toggle input:checked + span::after { content: "✓"; font-weight: 1000; }
.developer-toggle input:focus-visible + span { outline: 3px solid #72ddff; outline-offset: 3px; }
.profile-current-phrase {
  margin: 12px 0 0;
  padding: 13px 18px;
  border: 1px solid rgba(91, 144, 223, .42);
  border-radius: 13px;
  background: rgba(5, 19, 48, .76);
  color: #c9d8ef;
  font-size: .84rem;
  font-style: italic;
  text-align: center;
}

.shop-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.background-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-background-preview,
.profile-background-preview {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(114, 221, 255, .2);
  border-radius: 14px;
  background: #07152f;
}
.shop-background-preview img,
.profile-background-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.background-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phrase-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phrase-shop-item .phrase-only-bubble { display: grid; min-height: 120px; max-width: none; place-items: center; text-align: center; }
.phrase-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phrase-profile-item blockquote { min-height: 70px; margin: 0; padding: 14px; border: 1px solid rgba(114,221,255,.22); border-radius: 14px; background: rgba(7,16,45,.76); color: #d9e5f8; line-height: 1.4; }
.active-player-phrase { margin: 0 0 12px; color: #aebbd2; font-size: .78rem; font-style: italic; text-align: center; }

@media (max-width: 760px) {
  .shop-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .background-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrase-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .profile-tabs { grid-template-columns: 1fr; }
  .background-inventory,
  .background-shop-grid,
  .phrase-inventory,
  .phrase-shop-grid { grid-template-columns: 1fr; }
}

/* Das Plus des Start-Avatars ist im Spiel eine echte Navigation zum Profil. */
.podium-avatar.has-avatar-action,
.player-avatar.has-avatar-action { pointer-events: auto; }
.avatar-profile-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.avatar-profile-link:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}
.avatar-profile-link img { transition: filter .18s ease, transform .18s ease; }
.avatar-profile-link:hover img {
  filter: drop-shadow(0 0 12px rgba(216,255,66,.7));
  transform: translateY(-2px);
}

/* Wochenfortschritt als Kreide-Strichliste: vier Striche, der fünfte quer;
   Samstag und Sonntag beginnen rechts eine neue Gruppe. */
#tab-weekly {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 12px);
}
.week-tally {
  display: inline-flex;
  min-width: 34px;
  min-height: 20px;
  align-items: center;
  gap: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(220,242,244,.22);
  border-radius: 6px;
  background: rgba(4,10,28,.58);
  box-shadow: inset 0 0 8px rgba(0,0,0,.28);
}
.tally-group {
  position: relative;
  display: inline-flex;
  height: 15px;
  align-items: center;
  gap: 3px;
}
.tally-group i {
  display: block;
  width: 2px;
  height: 13px;
  border-radius: 2px;
  background: #e5f4ee;
  box-shadow: 0 0 3px rgba(229,244,238,.5);
  transform: rotate(-3deg);
}
.tally-group i:nth-child(even) { transform: rotate(3deg); }
.tally-group.is-five::after {
  position: absolute;
  top: 6px;
  left: -2px;
  width: calc(100% + 4px);
  height: 2px;
  border-radius: 2px;
  background: #e5f4ee;
  box-shadow: 0 0 3px rgba(229,244,238,.5);
  content: "";
  transform: rotate(-18deg);
}

@media (max-width: 480px) {
  #tab-weekly { gap: 4px; }
  .week-tally { min-width: 28px; gap: 5px; padding-inline: 4px; }
  .tally-group { gap: 2px; }
}

/* In der Wochenliga zeigt jede Spielerzeile ihre eigene Teilnahmezahl. */
.home-shell .identity-ranking.has-week-tally .player-card-surface {
  grid-template-columns: clamp(54px, 8vw, 70px) minmax(0, 1fr) max-content max-content;
}
.player-week-tally {
  position: relative;
  z-index: 8;
  align-self: center;
  justify-self: end;
  pointer-events: none;
}

@media (min-width: 880px) {
  .player-week-tally { transform: translateY(6px); }
}

@media (max-width: 480px) {
  .home-shell .identity-ranking.has-week-tally .player-card-surface {
    grid-template-columns: 54px minmax(0, 1fr) max-content max-content;
    gap: 6px;
  }
  .player-week-tally { transform: translateY(4px) scale(.88); transform-origin: right center; }
}

/* Korrektur 33: Das gemeinsame Highscore-Markup darf auf Ergebnis- und
   Nachschulseiten nicht in der alten 38-Pixel-Rangspalte stecken. */
.quiz-arena-board .rank-row,
.quiz-arena-board .rank-row.is-me,
.quiz-arena-board .rank-row.is-empty {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.quiz-arena-board .rank-row.is-me .player-card-surface {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
}

.quiz-arena-board .rank-row.is-empty { opacity: .42; }

@media (min-width: 880px) {
  /* Die Markenleiste belegt ihre natürliche Höhe; die Arena erhält exakt den
     verbleibenden Teil des Fensters. So bleibt auch die Ergebnisaktion unten
     sichtbar, unabhängig vom breiten oder hohen Seitenverhältnis. */
  .quiz-show-stage {
    height: calc(100svh - var(--home-stage-inset, 16px));
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: clip;
  }

  .home-arena-layout {
    grid-row: 2;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  /* Am Desktop bekommen die echten Pultgrafiken wieder genügend Höhe. Fünf
     Plätze bleiben sichtbar; Avatar und Rang dürfen über die Front hinausragen. */
  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    gap: 1px;
    padding-top: 3px;
  }

  .home-shell .identity-ranking .player-card-surface {
    grid-template-columns: 86px minmax(0, 1fr) max-content;
    min-height: 72px;
    padding: 2px 82px 2px 2px;
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art {
    top: 2px;
    bottom: -4px;
    border-width: 0 72px;
    border-image-width: 0 72px;
  }

  .home-shell .identity-ranking .player-avatar,
  .home-shell .identity-ranking .player-avatar.is-neutral {
    width: 88px;
    height: 100px;
    margin: -16px 0 -8px;
  }

  .home-shell .identity-ranking .player-avatar.is-neutral img {
    width: 62px;
    height: 62px;
  }

  .home-shell .identity-ranking.plaque-p00 .player-card-surface {
    min-height: 64px;
  }
}

@media (min-width: 880px) and (max-height: 850px) {
  .home-shell .identity-ranking .player-card-surface {
    min-height: 64px;
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art {
    top: 1px;
    bottom: -3px;
  }

  .home-shell .identity-ranking .player-avatar,
  .home-shell .identity-ranking .player-avatar.is-neutral {
    width: 80px;
    height: 92px;
    margin-top: -15px;
  }
}

/* Normalmonitor-Modus: Die bisherige Desktop-Komposition entstand auf einem
   49-Zoll-Ultrawide. Bei typischen 16:9/16:10-Fenstern braucht die gesamte
   Anwendung eine geringere Dichte, nicht nur eine kleinere Startfigur. */
@media (min-width: 880px) and (max-height: 1100px) and (max-aspect-ratio: 5 / 2) {
  html { font-size: 15px; }

  .arena-main-nav {
    top: 8px;
    width: min(660px, calc(100vw - 520px));
    padding: 4px;
    border-radius: 14px;
  }

  .arena-main-nav a,
  .arena-main-nav span {
    min-height: 32px;
    padding-block: 3px;
    font-size: .64rem;
  }

  body:has(.home-shell) .currency-indicator.shop-trigger {
    top: 9px;
    min-width: 168px;
    min-height: 44px;
    transform: scale(.9);
    transform-origin: right top;
  }

  body:has(.home-shell) .rules-button.is-secondary {
    top: 14px;
    transform-origin: left top;
  }

  .home-date {
    top: 16px;
    right: 210px;
    transform: scale(.9);
    transform-origin: right top;
  }

  .app-shell.has-account-bar:not(.home-shell) {
    padding-top: 66px;
    padding-bottom: 28px;
  }

  .app-shell.has-account-bar.home-shell {
    --home-stage-inset: 16px;
    padding-top: var(--home-stage-inset);
  }

  /* Startseite: exakt fünf gut lesbare Plätze, weitere Spieler scrollen in
     der Liste. Das eigene Set beginnt erst im unteren Bühnendrittel. */
  .quiz-show-stage > .arena-brand-lockup {
    grid-template-columns: 96px auto;
    width: 560px;
    margin-top: 46px;
    margin-bottom: -10px;
  }

  .quiz-show-stage > .arena-brand-lockup .arena-brain { width: 96px; }
  .quiz-show-stage > .arena-brand-lockup h1 { font-size: 4rem; }
  .quiz-show-stage > .arena-brand-lockup .arena-wordmark > span { font-size: 1rem; }
  .home-shell .arena-wordmark small { margin-top: 9px; font-size: .62rem; }

  .home-arena-layout { width: min(840px, 58vw); }
  .home-shell .section-heading { padding-bottom: 5px; }
  .home-shell .section-heading h2 { font-size: 1.55rem; }
  .home-shell .leaderboard-tabs { padding-bottom: 5px; }
  .home-shell .leaderboard-tabs button { min-height: 34px; }

  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    max-height: 301px;
    overflow-x: clip;
  }

  .home-shell .rank-list.is-scrollable {
    overflow-y: auto;
    scrollbar-color: rgba(114,221,255,.55) rgba(255,255,255,.06);
    scrollbar-width: thin;
  }

  .home-shell .identity-ranking .player-card-surface {
    grid-template-columns: 78px minmax(0, 1fr) max-content;
    min-height: 59px;
    padding: 1px 72px 1px 2px;
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art {
    top: 1px;
    bottom: -3px;
    border-width: 0 64px;
    border-image-width: 0 64px;
  }

  .home-shell .identity-ranking .player-avatar,
  .home-shell .identity-ranking .player-avatar.is-neutral {
    width: 80px;
    height: 90px;
    margin: -15px 0 -12px;
  }

  .home-shell .identity-ranking .player-avatar.is-neutral img {
    width: 56px;
    height: 56px;
    margin-top: 10px;
  }

  .home-shell .identity-ranking.plaque-p00 .player-card-surface { min-height: 56px; }
  .home-shell .identity-ranking .player-plaque-label,
  .home-shell .identity-ranking .identity-points { padding-top: 7px; }
  .home-shell .identity-rank { width: 39px; height: 39px; }

  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) {
    bottom: 0;
    height: clamp(190px, 26svh, 240px);
    padding: 10px 8px 43px;
  }

  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero {
    height: clamp(150px, 21svh, 198px);
  }

  .home-player-console .has-podium-art .podium-render,
  .home-player-console .plaque-p00.has-podium-art .podium-render {
    bottom: 0;
    width: min(65%, 500px);
  }

  .home-player-console .has-podium-art .podium-render > img {
    transform: scaleY(1.24);
  }

  .home-player-console .has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: clamp(48px, 7svh, 64px);
    width: 45%;
    height: clamp(200px, 28svh, 255px);
  }

  .home-player-console .has-podium-art .avatar-speech-bubble,
  .home-player-console .plaque-p00.has-podium-art .avatar-speech-bubble {
    top: -22px;
    right: 1%;
    max-width: 31%;
  }

  .home-player-console .console-customize { bottom: 26px; left: 7%; }
  .home-player-console .console-logout { right: 7%; bottom: 31px; }
  .home-player-console .console-round-action { bottom: 4px; }

  .arena-host {
    bottom: 84px;
    width: clamp(290px, 18vw, 340px);
    height: min(41vh, 370px);
  }

  .arena-floor { height: 150px; }

  /* Profil und Shop verwenden dieselbe kompaktere Bühnenskala. */
  .profile-shell,
  .shop-shell { max-width: 920px; }
  .profile-topbar,
  .shop-topbar { margin-bottom: 14px; }
  .profile-hero,
  .shop-hero { margin-bottom: 14px; }
  .profile-hero h1 { font-size: 2.55rem; }

  .profile-current,
  .profile-trophies,
  .profile-wardrobe {
    margin-bottom: 14px;
    padding: 15px 18px;
  }

  .profile-current { min-height: 310px; }
  .profile-current .identity-hero,
  .profile-current .identity-hero.plaque-p00 { height: 245px; }
  .profile-current .has-podium-art .podium-render,
  .profile-current .plaque-p00.has-podium-art .podium-render { width: min(72%, 510px); }
  .profile-current .has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar,
  .profile-current .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 76px;
    width: 43%;
    height: 205px;
  }
  .profile-current .has-podium-art .avatar-speech-bubble,
  .profile-current .plaque-p00.has-podium-art .avatar-speech-bubble { top: 4px; }

  .trophy-grid { margin-top: 12px; }
  .trophy-card { min-height: 70px; padding: 9px; }
  .trophy-card i { width: 43px; height: 43px; flex-basis: 43px; font-size: 1.05rem; }
  .trophy-card strong { font-size: 1.25rem; }
  .profile-tabs { margin-block: 13px 10px; }
  .profile-avatar-preview,
  .profile-plaque-preview,
  .profile-plaque-preview .identity-shopset { height: 140px; }

  .shop-hero h1 { font-size: 2.55rem; }
  .shop-tabs { top: 52px; margin-block: 15px 13px; padding: 5px; }
  .shop-tabs button { min-height: 39px; }
  .avatar-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-grid { gap: 11px; }
  .shop-item { gap: 8px; padding: 9px; }
  .shop-item button { min-height: 36px; }
  .shop-set-preview { height: 190px; }
  .plaque-only-preview .identity-shopset.has-podium-art { height: 190px; }

  /* Quiz-, Ergebnis- und Partyseiten bleiben großzügig, verlieren aber die
     für Ultrawide gedachten übergroßen Abstände und Illustrationen. */
  .question-card { padding: 26px 29px; }
  .question-card h1 { margin-bottom: 18px; font-size: 1.85rem; }
  .primary-button { min-height: 50px; padding-block: 12px; }

  .result-hero { margin-bottom: 18px; }
  .score-orbit { width: 132px; height: 132px; margin-bottom: 16px; }
  .score-orbit .score { font-size: 2.7rem; }
  .result-hero h1 { font-size: 2rem; }
  .app-shell:not(.home-shell) .quiz-arena-board .player-card-surface { min-height: 66px; }
  .app-shell:not(.home-shell) .quiz-arena-board .player-avatar { width: 68px; height: 74px; }
  .result-belt { margin-top: 14px; padding-block: 13px; }
  .answer-review { margin-top: 20px; }

  .party-head { margin-bottom: 16px; }
  .party-head h1 { font-size: 3.35rem; }
  .party-tile,
  .party-members li { padding: 12px; }
  .party-countdown-card { min-height: min(58vh, 440px); padding: 32px; }
  .party-countdown-number { font-size: 7rem; }
}

@media (min-width: 880px) and (max-height: 850px) and (max-aspect-ratio: 5 / 2) {
  .quiz-show-stage > .arena-brand-lockup {
    grid-template-columns: 82px auto;
    width: 500px;
    margin-top: 28px;
  }
  .quiz-show-stage > .arena-brand-lockup .arena-brain { width: 82px; }
  .quiz-show-stage > .arena-brand-lockup h1 { font-size: 3.45rem; }

  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable { max-height: 271px; }
  .home-shell .identity-ranking .player-card-surface { min-height: 53px; }
  .home-shell .identity-ranking .player-avatar,
  .home-shell .identity-ranking .player-avatar.is-neutral {
    width: 72px;
    height: 80px;
    margin-top: -13px;
  }

  .home-arena-layout > .home-player-console,
  .home-player-console:has(.has-podium-art) { height: 190px; }
  .home-player-console .has-podium-art.identity-hero,
  .home-player-console .identity-hero { height: 150px; }
  .home-player-console .has-podium-art .podium-render,
  .home-player-console .plaque-p00.has-podium-art .podium-render { width: min(62%, 440px); }
  .home-player-console .has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar,
  .home-player-console .plaque-p00.has-podium-art .podium-avatar.is-neutral {
    bottom: 45px;
    height: 200px;
  }
  .arena-host { bottom: 62px; height: min(40vh, 325px); }
}

/* Profilinventar: Die Pultgrafik wird innerhalb des Vorschaufensters
   zentriert. Die allgemeine Shopset-Höhe darf sie hier nicht nach unten aus
   dem sichtbaren Bereich schieben. */
.profile-plaque-preview .identity-shopset,
.profile-plaque-preview .identity-shopset.has-podium-art {
  width: 100%;
  height: 100%;
  transform: none;
}

.profile-plaque-preview .identity-shopset.has-podium-art .podium-render {
  top: 50%;
  bottom: auto;
  width: 94%;
  max-width: none;
  height: 86%;
  aspect-ratio: auto;
  transform: translate(-50%, -50%);
}

/* Ranglistenplaketten: vollständige feste Ansicht im Originalverhältnis.
   Die Plakette ist das Namensschild; eine eigene Score-Leiste übernimmt den
   breiten Teil der Zeile. So muss kein Motiv gedehnt oder beschnitten werden. */
.identity-ranking:not(.plaque-p00) .player-plaque-art,
.home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art,
.home-shell .identity-ranking.has-week-tally:not(.plaque-p00) .player-plaque-art {
  inset: auto;
  top: 50%;
  left: 64px;
  width: min(230px, 39%);
  height: auto;
  aspect-ratio: 3 / 1;
  z-index: 1;
  border: 0;
  border-image: none;
  background-image: var(--plaque-source);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,.52));
  transform: translateY(-50%);
}

.home-shell .identity-ranking:not(.plaque-p00) .player-card-surface {
  width: 100%;
  grid-template-columns: 86px minmax(110px, 1fr) max-content;
  column-gap: 12px;
  min-height: 60px;
  padding: 2px 26px 2px 2px;
  overflow: visible;
}

.home-shell .identity-ranking.has-week-tally:not(.plaque-p00) .player-card-surface {
  width: 100%;
  grid-template-columns: 86px minmax(110px, 1fr) max-content max-content;
  column-gap: 10px;
  padding-right: 24px;
}

.home-shell .identity-ranking.has-week-tally:not(.plaque-p00) .player-plaque-art {
  left: 64px;
}

.home-shell .identity-ranking:not(.plaque-p00) .player-card-surface::after {
  position: absolute;
  top: 11px;
  right: 4px;
  bottom: 9px;
  left: min(245px, 38%);
  z-index: 0;
  display: block;
  border: 1px solid rgba(114,221,255,.22);
  border-radius: 6px 15px 15px 6px;
  background: linear-gradient(90deg, rgba(14,22,53,.78), rgba(8,13,37,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 5px 14px rgba(0,0,0,.3);
  content: "";
}

.home-shell .identity-ranking:not(.plaque-p00) .player-plaque-label {
  width: min(135px, 100%);
  max-width: 135px;
}

.home-shell .identity-ranking:not(.plaque-p00) .identity-points,
.home-shell .identity-ranking:not(.plaque-p00) .player-week-tally {
  z-index: 3;
}

@media (max-width: 760px) {
  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art {
    left: 46px;
    width: min(190px, 48%);
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-card-surface,
  .home-shell .identity-ranking.has-week-tally:not(.plaque-p00) .player-card-surface {
    grid-template-columns: 58px minmax(78px, 1fr) max-content max-content;
    column-gap: 5px;
    padding-right: 9px;
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-card-surface::after {
    left: min(190px, 43%);
  }

  .home-shell .identity-ranking:not(.plaque-p00) .player-plaque-label {
    width: min(105px, 100%);
    max-width: 105px;
  }
}

/* Ranglisten-Skin als zusammenhängende Anzeige: Der Avatar überlappt links,
   Name und Punktzahl liegen auf dem Material. Die Endbeschläge bleiben per
   Nine-Slice unverzerrt, während nur die Holz-/Metallfläche mitwächst. */
.quiz-arena-board .identity-ranking:not(.plaque-p00) {
  --ranking-plaque-cap: clamp(42px, 5vw, 72px);
  --ranking-label-inset: clamp(28px, 3vw, 42px);
}

.home-shell .identity-ranking:not(.plaque-p00) .player-plaque-art,
.home-shell .identity-ranking.has-week-tally:not(.plaque-p00) .player-plaque-art {
  inset: 0 0 0 clamp(46px, 8vw, 64px);
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-style: solid;
  border-width: 0 var(--ranking-plaque-cap);
  border-image-source: var(--plaque-source);
  border-image-slice: 0 225 0 225 fill;
  border-image-width: 0 var(--ranking-plaque-cap);
  border-image-repeat: stretch;
  background: none;
  transform: none;
}

.home-shell .identity-ranking:not(.plaque-p00) .player-plaque-label {
  width: auto;
  max-width: none;
  padding-left: 0;
}

.home-shell .identity-ranking:not(.plaque-p00) .player-card-surface::after {
  display: none;
}

/* Die Liste endet zusammen mit der Plakette. Dadurch bleiben weder rechts
   eine leere Score-Leiste noch eine abgesetzte Scrollflaeche stehen. */
@media (min-width: 761px) {
  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    width: 86%;
    margin-right: 14%;
  }
}

/* Auf dem im Referenzbild gezeigten Desktopformat belegt jede Plakette genau
   ein volles Rangsegment; alle fünf Positionen reichen bis zum Spielerpult. */
@media (min-width: 880px) and (min-height: 851px) and (max-height: 1100px) and (max-aspect-ratio: 5 / 2) {
  .quiz-show-stage > .arena-brand-lockup {
    margin-top: 31px;
  }

  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    gap: 1px;
    max-height: 430px;
  }

  .home-shell .identity-ranking .player-card-surface,
  .home-shell .identity-ranking:not(.plaque-p00) .player-card-surface,
  .home-shell .identity-ranking.plaque-p00 .player-card-surface {
    min-height: 84px;
  }
}

@media (min-width: 880px) and (max-height: 850px) and (max-aspect-ratio: 5 / 2) {
  .quiz-show-stage > .arena-brand-lockup {
    margin-top: 8px;
  }

  .home-shell .rank-list,
  .home-shell .rank-list.is-scrollable {
    max-height: 306px;
  }

  .home-shell .identity-ranking .player-card-surface,
  .home-shell .identity-ranking:not(.plaque-p00) .player-card-surface,
  .home-shell .identity-ranking.plaque-p00 .player-card-surface {
    min-height: 60px;
  }
}

/* Ergebnis- und Nachschulseiten verwenden dieselbe geschlossene Rangkarte
   wie die Startseite: Avatar am linken Rand, alle Werte auf dem Skin. */
.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking .player-card-surface {
  grid-template-columns: 82px minmax(0, 1fr) max-content;
  column-gap: 10px;
  width: 100%;
  min-height: 82px;
  padding: 4px 18px 4px 2px;
  overflow: visible;
}

.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking.has-week-tally .player-card-surface {
  grid-template-columns: 82px minmax(0, 1fr) max-content max-content;
  column-gap: 8px;
}

.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-plaque-art,
.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking.has-week-tally:not(.plaque-p00) .player-plaque-art {
  inset: 0 0 0 64px;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-style: solid;
  border-width: 0 var(--ranking-plaque-cap);
  border-image-source: var(--plaque-source);
  border-image-slice: 0 225 0 225 fill;
  border-image-width: 0 var(--ranking-plaque-cap);
  border-image-repeat: stretch;
  background: none;
  transform: none;
}

.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-card-surface::after {
  display: none;
}

.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-plaque-label {
  width: auto;
  max-width: none;
  padding-left: 0;
}

.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking .identity-points,
.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking .player-week-tally {
  z-index: 4;
  align-self: center;
  padding-top: 0;
}

@media (max-width: 760px) {
  .app-shell:not(.home-shell) .quiz-arena-board .identity-ranking .player-card-surface {
    grid-template-columns: 64px minmax(0, 1fr) max-content;
    column-gap: 6px;
    padding-right: 10px;
  }

  .app-shell:not(.home-shell) .quiz-arena-board .identity-ranking.has-week-tally .player-card-surface {
    grid-template-columns: 64px minmax(0, 1fr) max-content max-content;
    column-gap: 5px;
  }

  .app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-plaque-art,
  .app-shell:not(.home-shell) .quiz-arena-board .identity-ranking.has-week-tally:not(.plaque-p00) .player-plaque-art {
    left: 50px;
  }
}

/* Text und Werte bleiben auf allen Seiten und Breiten aus den dekorativen
   Anfangs- und Endbeschlägen heraus. */
.home-shell .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-card-surface,
.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-card-surface {
  padding-right: var(--ranking-plaque-cap);
}

.home-shell .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-plaque-label,
.app-shell:not(.home-shell) .quiz-arena-board .identity-ranking:not(.plaque-p00) .player-plaque-label {
  padding-left: var(--ranking-label-inset);
}

/* --------------------------------------------------------------------------
   STARTSEITE – VARIANTE A (20.10.2026)
   Dreiteilige Lobby mit persönlicher Skin-Vitrine, Spiel-Diashow und Rangliste.
   Dieser Block ist absichtlich vollständig über .home-variant-a gekapselt.
   -------------------------------------------------------------------------- */
:root {
  --variant-a-border: rgba(68, 144, 255, .58);
  --variant-a-panel: rgba(5, 17, 45, .9);
  --variant-a-acid: #d8ff31;
}

body:has(.home-variant-a) {
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(32, 105, 197, .32), transparent 38%),
    linear-gradient(140deg, #020713 0%, #061630 55%, #020713 100%);
}

body:has(.home-variant-a)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(3, 11, 29, .67), rgba(3, 10, 28, .9)),
    url("/static/stormseeds-perfect-clubroom-v1.png") center / cover;
  content: "";
}

.arena-main-nav {
  top: 14px;
  display: grid;
  grid-template-columns: minmax(145px, .82fr) minmax(620px, 3.5fr) max-content max-content;
  align-items: stretch;
  gap: 8px;
  width: min(1760px, calc(100vw - 48px));
  min-width: 0;
  min-height: 78px;
  padding: 8px;
  border-color: rgba(72, 154, 255, .52);
  border-radius: 22px;
  background: rgba(3, 13, 36, .93);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.arena-main-nav .arena-nav-brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 12px;
  color: #eff6ff;
  text-align: left;
}
.arena-main-nav .arena-nav-brand small {
  min-height: 0;
  padding: 0;
  color: #e8f1ff;
  font-size: .68rem;
  line-height: 1;
}
.arena-main-nav .arena-nav-brand strong {
  color: var(--variant-a-acid);
  font-size: clamp(1.02rem, 1.3vw, 1.42rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.arena-main-nav .arena-nav-cluster {
  gap: 3px;
  padding: 2px;
  background: transparent;
}
.arena-main-nav a,
.arena-main-nav button,
.arena-main-nav > .arena-nav-date {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 0;
  border-radius: 13px;
  background: rgba(14, 34, 72, .72);
  color: #c6d5ee;
  font: inherit;
  font-size: clamp(.63rem, .72vw, .76rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.arena-main-nav a > span,
.arena-main-nav button > span,
.arena-main-nav .arena-nav-date > span {
  display: inline;
  min-height: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  white-space: inherit;
  cursor: inherit;
}
.arena-main-nav button:hover,
.arena-main-nav a:hover { background: rgba(25, 55, 105, .88); color: #fff; }
.arena-main-nav a.is-active,
.arena-main-nav button.is-active {
  background: linear-gradient(180deg, #a8e18e, #64b96d);
  color: #071a12;
  box-shadow: 0 0 22px rgba(100, 185, 109, .24);
}
.arena-main-nav .nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.arena-main-nav .arena-nav-tabletop {
  min-width: max-content;
  margin-left: 18px;
  padding-inline: 17px;
  flex-direction: column;
  gap: 0;
  line-height: 1.02;
}
.arena-main-nav .arena-nav-date {
  align-self: center;
  border: 1px solid rgba(106, 157, 232, .38);
  background: rgba(7, 22, 54, .7);
  color: #d9e6fb;
  font-variant-numeric: tabular-nums;
}

.app-shell.has-account-bar.home-variant-a {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 112px 34px 30px;
}
.app-shell.has-account-bar:not(.home-variant-a) { padding-top: 112px; }
.home-variant-a::before { display: none; }

.variant-a-stage {
  display: grid;
  grid-template-columns: minmax(290px, 28fr) minmax(430px, 42fr) minmax(330px, 30fr);
  gap: 15px;
  width: min(1840px, 100%);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
}
.variant-a-profile,
.variant-a-showcase,
.variant-a-ranking {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--variant-a-border);
  border-radius: 24px;
  background: var(--variant-a-panel);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.variant-a-profile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(380px, 1fr) auto;
}
.variant-a-profile-scene {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 22, .16) 0%, rgba(2, 8, 22, .08) 50%, rgba(2, 8, 22, .78) 100%),
    url("/static/stormseeds-perfect-clubroom-v1.png") center / cover;
}
.variant-a-profile-scene::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 -45px 60px rgba(3, 12, 32, .78);
  content: "";
}
.variant-a-hanging-plaque {
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 6;
  display: grid;
  width: min(70%, 300px);
  aspect-ratio: 3.1 / 1;
  place-items: center;
  border: 2px solid #c59243;
  border-radius: 17px;
  background: linear-gradient(180deg, #523016, #241207);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .55), inset 0 0 18px rgba(255, 180, 67, .28);
  transform: translateX(-50%);
}
.variant-a-hanging-plaque i {
  position: absolute;
  bottom: 96%;
  width: 2px;
  height: 64px;
  background: linear-gradient(#19120d, #c2914b);
  transform-origin: bottom;
}
.variant-a-hanging-plaque i:first-child { left: 23%; transform: rotate(11deg); }
.variant-a-hanging-plaque i:nth-child(2) { right: 23%; transform: rotate(-11deg); }
.variant-a-hanging-plaque img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(0, 0, 0, .55));
}
.variant-a-hanging-plaque.has-art { border: 0; background: transparent; box-shadow: none; }
.variant-a-hanging-plaque span {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 0 12%;
  color: #fff5d5;
  font-size: clamp(.68rem, .95vw, .92rem);
  font-weight: 950;
  text-align: center;
  text-shadow: 0 2px 4px #000;
  white-space: nowrap;
  cursor: default;
}
.variant-a-avatar {
  position: absolute;
  bottom: 27%;
  left: 50%;
  z-index: 2;
  width: 65%;
  height: 60%;
  transform: translateX(-50%);
}
.variant-a-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .52));
}
.variant-a-podium {
  position: absolute;
  bottom: -1%;
  left: 50%;
  z-index: 4;
  width: 88%;
  aspect-ratio: 1.13 / 1;
  transform: translateX(-50%);
}
.variant-a-podium img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 13px rgba(0, 0, 0, .54));
}
.variant-a-podium strong {
  position: absolute;
  top: 47%;
  left: 26%;
  right: 26%;
  overflow: hidden;
  color: #fff8e8;
  font-size: clamp(.8rem, 1.12vw, 1.12rem);
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px #000;
  white-space: nowrap;
}
.variant-a-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #7aa7e9;
  border-radius: 50%;
  background: rgba(4, 18, 48, .82);
  color: white;
  text-decoration: none;
}
.variant-a-profile-details { padding: 0 22px 18px; }
.variant-a-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  color: var(--variant-a-acid);
  font-size: 1.1rem;
  text-decoration: none;
}
.variant-a-profile-details blockquote {
  min-height: 70px;
  margin: 0;
  padding: 15px 18px;
  border: 1px solid rgba(91, 144, 223, .42);
  border-radius: 14px;
  background: rgba(5, 19, 48, .74);
  color: #c9d8ef;
  font-size: .88rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}
.variant-a-trophies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(111, 159, 226, .34);
}
.variant-a-trophies span { display: grid; place-items: center; gap: 2px; color: #eef5ff; }
.variant-a-trophies span + span { border-left: 1px solid rgba(111, 159, 226, .27); }
.variant-a-trophies i { color: #f9ca45; font-size: 1.1rem; font-style: normal; }
.variant-a-trophies b { font-size: 1.15rem; }
.variant-a-trophies small { color: #8fa6c9; font-size: .52rem; font-weight: 850; text-align: center; text-transform: lowercase; }

.variant-a-showcase {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.variant-a-slides {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--variant-a-border);
  border-radius: 24px;
  background: #06142e;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.variant-a-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  animation: variant-a-fade .45s ease both;
}
.variant-a-slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 20, .04) 22%, rgba(2, 8, 23, .75) 67%, #031027 100%);
  content: "";
}
.variant-a-slide.slide-guesstimate { background-image: url("carousel-daily-quiz-v1.png"); }
.variant-a-slide.slide-party { background-image: url("carousel-party-classic-v1.png"); }
.variant-a-slide.slide-perfect { background-image: url("carousel-stormseeds-perfect-v1.png"); }
.variant-a-slide.slide-playtable { background-image: url("carousel-playtable-v1.png"); }
.variant-a-slide.slide-birthday {
  background-color: #071633;
  background-image: url("carousel-birthday-jenny-v1.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.variant-a-slide.slide-birthday::before { background: rgba(2, 7, 20, .06); }
.variant-a-slide[hidden] { display: none; }
@keyframes variant-a-fade { from { opacity: .4; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
.variant-a-slide-copy {
  position: absolute;
  right: 9%;
  bottom: 8%;
  left: 9%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .92);
}
.variant-a-slide-copy p { margin: 0 0 7px; color: #80ddff; font-size: .7rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.variant-a-slide-copy h1,
.variant-a-slide-copy h2 { margin: 0; color: var(--variant-a-acid); font-size: clamp(2rem, 3.2vw, 4rem); font-weight: 1000; line-height: .92; letter-spacing: -.065em; }
.variant-a-slide-copy h1 small { display: block; margin-bottom: 4px; color: white; font-size: .34em; letter-spacing: -.02em; }
.variant-a-slide-copy > strong { margin-top: 14px; color: white; font-size: clamp(.84rem, 1.1vw, 1.1rem); text-transform: lowercase; }
.variant-a-slide-copy > span { max-width: 540px; margin-top: 7px; color: #c6d7ed; font-size: .78rem; line-height: 1.45; }
.variant-a-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(126, 177, 240, .52);
  border-radius: 14px;
  background: rgba(3, 14, 38, .74);
  color: #e8f3ff;
  font-size: 2rem;
  transform: translateY(-50%);
  cursor: pointer;
}
.variant-a-carousel-arrow:hover { border-color: var(--variant-a-acid); color: var(--variant-a-acid); }
.variant-a-carousel-arrow.is-prev { left: 14px; }
.variant-a-carousel-arrow.is-next { right: 14px; }
.variant-a-carousel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid rgba(73, 137, 225, .44);
  border-radius: 16px;
  background: rgba(4, 16, 42, .88);
}
.variant-a-carousel-tabs button {
  min-width: 0;
  min-height: 39px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #90a6c8;
  font-size: .67rem;
  font-weight: 900;
  cursor: pointer;
}
.variant-a-carousel-tabs button.is-active { background: #1a3460; color: white; box-shadow: inset 0 -2px var(--variant-a-acid); }
.variant-a-actions { display: grid; min-height: 78px; place-items: center; padding-top: 14px; }
.variant-a-action { width: min(430px, 82%); }
.variant-a-action[hidden] { display: none; }
.variant-a-action form { margin: 0; }
.variant-a-action .primary-button {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, #e5ff53, #b9ed22);
  color: #071124;
  box-shadow: 0 0 25px rgba(216, 255, 49, .34), 0 12px 28px rgba(0, 0, 0, .3);
  font-size: 1rem;
  font-weight: 950;
  text-transform: lowercase;
}
.variant-a-action .primary-button span { margin-left: 14px; font-size: 1.35em; }
.variant-a-action .primary-button:disabled {
  background: #596171;
  color: #c5cbd5;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
.variant-a-action form.variant-a-catchup-launch { margin-top: 8px; }
.variant-a-catchup-launch .secondary-button {
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 13px;
  font-size: .78rem;
}
.variant-a-catchup { margin: 4px 0 0; color: #b4c5dd; font-size: .7rem; text-align: center; }

.variant-a-ranking { padding: 18px; }
.home-variant-a .variant-a-leaderboard {
  height: 100%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-variant-a .variant-a-leaderboard::before { display: none; }
.home-variant-a .variant-a-leaderboard .section-heading { padding: 2px 4px 15px; }
.home-variant-a .variant-a-leaderboard .section-heading h2 { font-size: clamp(1.35rem, 1.65vw, 1.8rem); text-transform: lowercase; }
.home-variant-a .variant-a-leaderboard .leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 0 0 14px;
}
.home-variant-a .variant-a-leaderboard .leaderboard-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 5px 3px;
  font-size: clamp(.53rem, .63vw, .68rem);
  line-height: 1.08;
  text-transform: lowercase;
}
.home-variant-a .variant-a-leaderboard .rank-list,
.home-variant-a .variant-a-leaderboard .rank-list.is-scrollable {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 285px);
  padding: 3px 3px 8px;
  overflow-y: auto;
  scrollbar-color: rgba(105, 159, 233, .55) transparent;
}
.home-variant-a .variant-a-leaderboard .identity-ranking { padding-left: 42px; }
.home-variant-a .variant-a-leaderboard .identity-ranking .player-card-surface { min-height: 72px; }
.home-variant-a .variant-a-leaderboard .identity-ranking .identity-rank { width: 40px; height: 40px; }
.home-variant-a .variant-a-leaderboard .identity-ranking .player-avatar,
.home-variant-a .variant-a-leaderboard .identity-ranking .player-avatar.is-neutral { width: 63px; height: 70px; }
.home-variant-a .variant-a-leaderboard .identity-ranking .player-plaque-label,
.home-variant-a .variant-a-leaderboard .identity-ranking .identity-points { padding-top: 0; }

.variant-a-logout { position: fixed; right: 18px; bottom: 12px; z-index: 20; margin: 0; }
.variant-a-logout button { border: 0; background: transparent; color: #7789a5; font-size: .62rem; cursor: pointer; }

@media (max-width: 1280px) {
  .arena-main-nav {
    grid-template-columns: 120px minmax(520px, 1fr) max-content max-content;
    width: calc(100vw - 24px);
  }
  .arena-main-nav a,
  .arena-main-nav button,
  .arena-main-nav > .arena-nav-date { padding-inline: 7px; font-size: .6rem; }
  .variant-a-stage { grid-template-columns: minmax(250px, 27fr) minmax(390px, 40fr) minmax(310px, 33fr); }
  .app-shell.has-account-bar.home-variant-a { padding-inline: 14px; }
}

@media (max-width: 1020px) {
  .arena-main-nav {
    position: sticky;
    top: 0;
    left: 0;
    grid-template-columns: 130px 1fr max-content;
    width: 100%;
    border-radius: 0 0 18px 18px;
    transform: none;
  }
  .arena-nav-home { overflow-x: auto; }
  .arena-main-nav .arena-nav-tabletop { margin-left: 8px; }
  .arena-main-nav .arena-nav-date { position: absolute; top: 10px; right: 10px; }
  .arena-main-nav .arena-nav-brand { padding-right: 112px; }
  .app-shell.has-account-bar.home-variant-a { padding-top: 18px; }
  .app-shell.has-account-bar:not(.home-variant-a) { padding-top: 24px; }
  .variant-a-stage { grid-template-columns: 1fr 1fr; }
  .variant-a-profile { min-height: 780px; }
  .variant-a-showcase { min-height: 720px; }
  .variant-a-ranking { grid-column: 1 / -1; }
  .home-variant-a .variant-a-leaderboard .rank-list,
  .home-variant-a .variant-a-leaderboard .rank-list.is-scrollable { max-height: 560px; }
}

@media (max-width: 700px) {
  .arena-main-nav { display: flex; overflow-x: auto; padding: 7px; }
  .arena-main-nav .arena-nav-brand { display: none; }
  .arena-main-nav .arena-nav-home { flex: 0 0 auto; }
  .arena-main-nav .arena-nav-tabletop { flex: 0 0 auto; margin-left: 8px; }
  .arena-main-nav .arena-nav-date { position: static; flex: 0 0 auto; }
  .arena-main-nav a,
  .arena-main-nav button,
  .arena-main-nav > .arena-nav-date { min-height: 42px; font-size: .59rem; }
  .app-shell.has-account-bar.home-variant-a { padding: 14px 10px 36px; }
  .variant-a-stage { display: flex; flex-direction: column; gap: 12px; }
  .variant-a-profile { min-height: 730px; }
  .variant-a-profile-scene { min-height: 500px; }
  .variant-a-showcase { min-height: 650px; }
  .variant-a-slides { min-height: 520px; }
  .variant-a-ranking { padding: 13px 9px; }
  .home-variant-a .variant-a-leaderboard .leaderboard-tabs { grid-template-columns: repeat(2, 1fr); }
  .home-variant-a .variant-a-leaderboard .rank-list,
  .home-variant-a .variant-a-leaderboard .rank-list.is-scrollable { max-height: 620px; }
}

/* Finale Priorität für die persönliche Kulisse; ersetzt ältere feste Arena-URLs. */
body.has-player-background {
  background-color: #050a20 !important;
  background-image:
    linear-gradient(180deg, rgba(2, 7, 20, .38), rgba(2, 7, 20, .64)),
    var(--player-background-image) !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
body.has-player-background:has(.home-variant-a)::before {
  background:
    linear-gradient(rgba(3, 11, 29, .55), rgba(3, 10, 28, .78)),
    var(--player-background-image) center / cover !important;
}
.variant-a-profile-scene {
  background-image:
    linear-gradient(180deg, rgba(2, 8, 22, .14) 0%, rgba(2, 8, 22, .05) 50%, rgba(2, 8, 22, .8) 100%),
    var(--profile-window-background) !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Die Profilkopie benötigt eine eigene feste Szenenhöhe. */


