@font-face {
      font-family: 'Bebas Neue';
      src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Serif Display';
      src: url('fonts/DMSerifDisplay-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Sans';
      src: url('fonts/DMSans-Light.ttf') format('truetype');
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Sans';
      src: url('fonts/DMSans-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Sans';
      src: url('fonts/DMSans-Medium.ttf') format('truetype');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Sans';
      src: url('fonts/DMSans-SemiBold.ttf') format('truetype');
      font-weight: 600;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Sans';
      src: url('fonts/DMSans-Italic.ttf') format('truetype');
      font-weight: 400;
      font-style: italic;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Mono';
      src: url('fonts/DMMono-Regular.ttf') format('truetype');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'DM Mono';
      src: url('fonts/DMMono-Medium.ttf') format('truetype');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

:root {
      /* Gemeinsame Typografie. Sonder- und responsive Größen bleiben lokal. */
      --font-body: 'DM Sans', sans-serif;
      --font-heading: 'Bebas Neue', sans-serif;
      --font-newspaper: 'DM Serif Display', Georgia, serif;
      --font-mono: 'DM Mono', monospace;
      --text-xs: 0.7rem;
      --text-sm: 0.85rem;
      --text-base: 1rem;
      --text-heading: 2rem;

      --bg:         #07080C;
      --surface:    #0E1017;
      --surface2:   #1A1F2C;
      --border:     #29303F;
      --accent:     #d4f53a;
      --accent2:    #5B8DEF;
      --positiv:    #3af5b4;
      --negativ:    #FF3F5E;
      --team-one:   #B58CFF;
      --team-two:   #FF9A4D;
      --gold:       #FFD000;
      --silver:     #ADC8D8;
      --cup-gold:   #C59600;
      --cup-silver: #7F98A8;
      --bronze:     #C97B2E;
      --text:       #F3F4F1;
      --muted:      #7E828B;
      --dim:        #B9BBC2;
      --envidual:   #2E8FC4;
      --hanako:     #2B6D88;
      --headsquare: #E70713;
      --row-alt:    #0E1017;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    [hidden] { display: none !important; }
    html { scroll-behavior: smooth; scrollbar-gutter: stable; }
    html.instant-scroll,
    html.instant-scroll * {
      scroll-behavior: auto !important;
    }
    body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100vh; touch-action: manipulation; }
    html:has(dialog:modal),
    body:has(dialog:modal) {
      overflow: hidden;
      overscroll-behavior: none;
    }
    * { touch-action: manipulation; }
    button {
      caret-color: transparent;
      -webkit-user-select: none;
      user-select: none;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      clip-path: inset(50%);
      white-space: nowrap;
    }

    /* ── INITIAL LOADING SKELETONS ── */
    .loading-skeleton {
      --skeleton-base: color-mix(in srgb, var(--surface2) 78%, var(--border));
      --skeleton-highlight: color-mix(in srgb, var(--text) 11%, var(--surface2));
    }
    .loading-skeleton span,
    .loading-skeleton li::before {
      background: linear-gradient(
        100deg,
        var(--skeleton-base) 20%,
        var(--skeleton-highlight) 38%,
        var(--skeleton-base) 56%
      );
      background-size: 220% 100%;
      animation: skeleton-shimmer 1.45s ease-in-out infinite;
    }
    .skeleton-pill {
      display: inline-block;
      width: 7.5rem;
      height: 0.85rem;
      border-radius: 999px;
      vertical-align: middle;
    }
    .skeleton-article {
      display: grid;
      gap: 0.7rem;
    }
    .skeleton-line {
      display: block;
      width: 100%;
      height: 0.75rem;
      border-radius: 999px;
    }
    .skeleton-line-kicker { width: 28%; height: 0.6rem; }
    .skeleton-line-title { width: 68%; height: 1.75rem; margin: 0.1rem 0 0.3rem; }
    .skeleton-line-medium { width: 72%; }
    .skeleton-article-large { min-height: 10rem; align-content: start; }
    .skeleton-ranking-row {
      display: grid;
      grid-template-columns: 26px minmax(0, 1fr) 76px;
      gap: 10px;
      align-items: center;
      min-height: 2.5rem;
      border-bottom: 1px solid var(--border);
    }
    .skeleton-ranking-row:last-child { border-bottom: 0; }
    .skeleton-ranking-row span {
      display: block;
      height: 0.75rem;
      border-radius: 999px;
    }
    .skeleton-ranking-row span:first-child { width: 1rem; }
    .skeleton-ranking-row span:nth-child(2) { width: min(75%, 9rem); }
    .skeleton-ranking-row span:last-child { width: 4.75rem; }
    .skeleton-match-list { display: grid; gap: 10px; }
    .skeleton-match-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr);
      gap: 0.65rem 1rem;
      min-height: 6.15rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
    }
    .skeleton-match-card span {
      display: block;
      height: 0.72rem;
      border-radius: 999px;
    }
    .skeleton-match-card span:first-child { grid-column: 1 / -1; width: 42%; height: 0.6rem; }
    .skeleton-match-card span:nth-child(2) { width: 78%; align-self: center; }
    .skeleton-match-card span:nth-child(3) { width: 100%; align-self: center; }
    .skeleton-match-card span:last-child { width: 78%; justify-self: end; align-self: center; }
    .skeleton-short-info { display: grid; gap: 0.7rem; }
    .clean-list.skeleton-short-info li {
      display: grid;
      grid-template-columns: 0.65rem minmax(0, 1fr);
      gap: 0.55rem;
      align-items: center;
      padding-left: 0;
    }
    .clean-list.skeleton-short-info li::before {
      content: "";
      position: static;
      width: 0.42rem;
      height: 0.42rem;
      border-radius: 50%;
    }
    .skeleton-short-info li span {
      display: block;
      width: 88%;
      height: 0.7rem;
      border-radius: 999px;
    }
    .skeleton-short-info li:nth-child(2) span { width: 72%; }
    .skeleton-short-info li:nth-child(3) span { width: 82%; }
    @keyframes skeleton-shimmer {
      from { background-position: 100% 0; }
      to { background-position: -120% 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      .loading-skeleton span,
      .loading-skeleton li::before,
      .live-overview-poll-swap { animation: none; }
      .info-menu,
      .info-menu-chevron { transition: none !important; }
    }

    /* ── HEADER ── */
    .site-header {
      background: var(--bg);
    }
    .hero {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2.35rem 1rem 1.1rem;
    }
    .hero-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    .hero-eyebrow {
      color: var(--text);
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.18em;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .context-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }
    #live-ticker-link { color: var(--negativ); }
    #live-ticker-link:hover { border-color: var(--negativ); }
    #live-ticker-link .global-action-icon { animation: live-pulse 1.15s ease-in-out infinite; padding-right: 4px; }
    @keyframes live-pulse { 50% { opacity: 0.25; } }
    .season-picker {
      position: relative;
      display: inline-flex;
      align-items: center;
    }
    .season-picker .secondary-button--dropdown {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: 112px;
    }
    .season-picker-trophy {
      display: inline-flex;
      width: 20px;
      height: 20px;
      flex: 0 0 auto;
      align-items: center;
    }
    .season-picker-trophy svg {
      display: block;
      width: 100%;
      height: 100%;
      overflow: visible;
    }
    .season-picker-trophy-line {
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.65;
      vector-effect: non-scaling-stroke;
    }
    .context-link {
      display: inline-flex;
      align-items: center;
      color: var(--accent);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
      transition: opacity 160ms ease;
    }
    .hero-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }
    .hero h1 { font-family: var(--font-heading); font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: 0.9; letter-spacing: 0.02em; }
    .hero h1 em { color: var(--accent); font-style: normal; }
    .hero-home-button {
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      letter-spacing: inherit;
      line-height: inherit;
      padding: 0;
    }
    .hero-home-button:focus-visible {
      border-radius: 6px;
      outline: 2px solid var(--accent);
      outline-offset: 6px;
    }
    .hero-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }
    .header-icon-link,
    .external-game-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: var(--surface);
      color: var(--text);
      text-decoration: none;
    }
    .header-icon-link svg,
    .external-game-link svg,
    .context-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .context-link svg { display: none; }
    .header-icon-link:hover, .header-icon-link:focus-visible,
    .external-game-link:hover, .external-game-link:focus-visible { color: var(--accent); border-color: var(--accent); }
    .header-icon-link:focus-visible,
    .external-game-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .hero-sub { color: var(--dim); font-size: var(--text-sm); font-weight: 300; margin-top: 1rem; }
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 200;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      gap: 8px;
      max-width: 1100px;
      margin: 0 auto 2rem;
      padding: 10px 1rem 0.5rem;
      background-color: var(--bg);
    }
    .site-nav button,
    .final-four-view-nav button {
      min-width: 0;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--dim);
      cursor: pointer;
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 500;
      padding: 0.55rem 0;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .site-nav button:hover,
    .final-four-view-nav button:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
    .site-nav button.active,
    .final-four-view-nav button.active {
      color: var(--accent);
      background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    }
    .viewer-picker {
      position: relative;
      flex: 0 0 auto;
    }
    .viewer-split-button {
      display: inline-flex;
      align-items: stretch;
      min-height: 38px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface);
      transition: border-color 0.15s;
    }
    .viewer-split-button:focus-within { border-color: var(--accent); }
    .viewer-split-button .secondary-button {
      min-height: 36px;
      min-width: 120px;
      border: 0;
      border-radius: 0;
      background: transparent;
      transition: color 0.15s, background 0.15s;
    }
    .viewer-combobox {
      position: relative;
      display: flex;
      min-width: 0;
    }
    .viewer-combobox::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 0.85rem;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      pointer-events: none;
      transform: translateY(-65%) rotate(45deg);
      transform-origin: center;
      transition: transform 160ms ease;
    }
    .viewer-combobox .secondary-button--dropdown::after { display: none; }
    .viewer-search-input {
      appearance: none;
      -webkit-appearance: none;
      position: absolute;
      inset: 0;
      z-index: 1;
      display: none;
      width: 100%;
      min-width: 0;
      border: 0;
      background: transparent;
      color: var(--text);
      font: 500 var(--text-sm) var(--font-body);
      outline: none;
      padding: 0.5rem 1.8rem 0.5rem 0.85rem;
    }
    .viewer-search-input::placeholder { color: var(--dim); opacity: 1; }
    .viewer-search-input::-webkit-search-cancel-button { display: none; }
    .viewer-picker.open .viewer-combobox .secondary-button { visibility: hidden; }
    .viewer-picker.open .viewer-search-input { display: block; }
    .viewer-profile-button {
      display: grid;
      flex: 0 0 38px;
      width: 38px;
      min-height: 36px;
      place-items: center;
      border: 0;
      border-right: 1px solid var(--border);
      background: transparent;
      color: var(--text);
      cursor: pointer;
      transition: color 0.15s, background 0.15s;
    }
    .viewer-profile-emoji { font-size: 1.1rem; line-height: 1; }
    .viewer-profile-image {
      width: 28px;
      height: 28px;
      display: block;
      border-radius: 50%;
      object-fit: cover;
    }
    .viewer-profile-image[hidden],
    .viewer-profile-emoji[hidden] { display: none; }
    .viewer-profile-button:hover,
    .viewer-profile-button:focus-visible {
      background: color-mix(in srgb, var(--accent) 8%, transparent);
      color: var(--accent);
      outline: none;
    }
    .viewer-profile-button:disabled {
      color: var(--dim);
      cursor: default;
      opacity: 0.45;
    }
    .viewer-profile-button:disabled:hover { background: transparent; }
    .training-picker { display: grid; position: relative; gap: 4px; min-width: 0; }
    .viewer-label-short { display: none; }
    .viewer-menu,
    .season-menu {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      z-index: 250;
      display: none;
      width: 164px;
      max-height: 360px;
      overflow-y: auto;
      padding: 6px;
      background: rgba(12,12,15,0.98);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 18px 45px rgba(0,0,0,0.45);
      text-transform: none;
      letter-spacing: normal;
    }
    .viewer-picker.open .viewer-menu,
    .season-picker.open .season-menu,
    .training-picker.open .training-picker-menu { display: grid; gap: 2px; }
    .viewer-option,
    .season-option {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      width: 100%;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      text-align: left;
      padding: 0.55rem 0.65rem;
      cursor: pointer;
    }
    .viewer-option:hover,
    .season-option:hover {
      background: var(--surface);
      color: var(--text);
    }
    .viewer-option.active,
    .season-option.active {
      background: color-mix(in srgb, var(--accent) 15%, transparent);
      color: var(--accent);
    }
    .picker-search-empty {
      color: var(--muted);
      font-size: 0.8rem;
      padding: 0.7rem 0.65rem;
      text-align: center;
    }
    #training-format-menu-0, #training-pairing-menu-0 { width: 100%; }
    #training-format-menu-0 .training-picker-display-line { white-space: inherit; }


    /* Public player profile */
    .player-profile-link {
      appearance: none;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      font-weight: inherit;
      line-height: inherit;
      margin: 0;
      padding: 0;
      text-align: inherit;
      text-decoration: none;
    }
    .player-profile-link:hover { color: var(--accent) !important; }
    .player-profile-link:focus-visible {
      border-radius: 3px;
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }
    .player-profile-dialog {
      width: min(calc(100vw - 28px), 1200px);
      height: min(calc(100vh - 64px), 900px);
      max-width: none;
      max-height: min(calc(100vh - 64px), 900px);
      margin: auto;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--bg);
      color: var(--text);
      box-shadow: 0 34px 120px rgba(0,0,0,0.72);
      overflow: hidden;
      padding: 0;
    }
    .player-profile-dialog::backdrop {
      background: rgba(3,4,8,0.7);
      backdrop-filter: blur(2px);
    }
    html.is-detail-embed,
    html.is-detail-embed body { background: transparent; }
    html.is-detail-embed body > :not(dialog):not(#player-profile-modal-host) { display: none !important; }
    .liga-detail-frame {
      position: fixed;
      inset: 0;
      z-index: 1300;
      width: 100%;
      height: 100%;
      border: 0;
      background: transparent;
      color-scheme: normal;
    }
    .liga-detail-frame.is-loading { background: rgba(3,4,8,0.7); }
    html:has(.liga-detail-frame:not([hidden])) { overflow: hidden; }
    .player-profile-shell {
      box-sizing: border-box;
      height: 100%;
      min-height: 360px;
      max-height: inherit;
      overflow: auto;
      overscroll-behavior: contain;
      padding: 2rem;
    }
    .player-profile-content {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4rem;
    }
    .player-profile-content > .player-profile-widget {
      min-width: 0;
      margin: 0;
    }
    .player-profile-hero-block { grid-column: 1 / -1; }
    .player-profile-elo-panel { grid-column: 1 / 3; }
    .player-profile-participations-panel { grid-column: 3; }
    .player-profile-relationships { grid-column: 1; align-self: start; }
    .player-profile-history { grid-column: 2 / 4; }
    .player-profile-hero-block > .player-profile-stats-widget {
      margin: 0;
      overflow: hidden;
      padding: 0;
    }
    .modal-close-button {
      position: absolute;
      z-index: 20;
      top: 12px;
      right: 24px;
      display: grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: rgba(7,8,12,0.86);
      color: var(--text);
      cursor: pointer;
      padding: 0;
    }
    .modal-close-button svg {
      display: block;
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-width: 3.2;
      pointer-events: none;
    }
    .modal-close-button:hover { color: var(--accent); border-color: var(--accent); }
    .player-profile-state {
      box-sizing: border-box;
      display: grid;
      min-height: 100%;
      place-items: center;
      color: var(--dim);
      font-family: var(--font-mono);
      padding: 3rem 4.5rem;
      text-align: center;
    }
    .player-profile-state[hidden],
    .player-profile-content[hidden] { display: none; }
    .player-profile-avatar {
      position: relative;
      overflow: hidden;
      background-color: #141925;
      background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 14px, transparent 14px 28px);
      color: var(--dim);
      font-family: var(--font-mono);
      text-transform: uppercase;
    }
    .player-profile-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .player-profile-avatar-placeholder {
      font-family: system-ui, sans-serif;
      font-size: clamp(4.5rem, 8vw, 6.5rem);
      line-height: 1;
      text-transform: none;
    }
    .player-profile-identity-row {
      display: grid;
      grid-template-columns: 168px minmax(240px, 1fr) minmax(50px, 420px);
      align-items: center;
      gap: 32px;
      margin-bottom: 2rem;
    }
    .player-profile-avatar {
      display: grid;
      width: 168px;
      aspect-ratio: 1;
      border: 1px solid var(--border);
      border-radius: 12px;
      place-items: center;
      text-align: center;
    }
    .player-profile-identity .player-profile-company { margin: 6px 0 0; }
    .player-profile-identity h2 {
      font-family: var(--font-heading);
      font-size: clamp(2.4rem, 4vw, 4rem);
      letter-spacing: 0.05em;
      margin-bottom: 0;
      overflow: hidden;
      text-wrap: nowrap;
      text-overflow: ellipsis;
    }
    .player-profile-achievements {
      display: flex;
      flex-wrap: wrap;
      align-content: center;
      justify-content: center;
      gap: 12px;
    }
    .player-profile-achievement {
      display: flex;
      align-items: center;
      color: var(--achievement-color);
      text-align: center;
    }
    .player-profile-achievement-winner { --achievement-color: var(--gold); }
    .player-profile-achievement-final-four,
    .player-profile-achievement-finalist { --achievement-color: var(--silver); }
    .player-profile-achievement-winner.player-profile-achievement-cup { --achievement-color: var(--cup-gold); }
    .player-profile-achievement-final-four.player-profile-achievement-cup,
    .player-profile-achievement-finalist.player-profile-achievement-cup { --achievement-color: var(--cup-silver); }
    .player-profile-achievement-custom { --achievement-color: var(--accent2); }
    .achievement-symbols {
      position: absolute;
      width: 0;
      height: 0;
      overflow: hidden;
      pointer-events: none;
    }
    .player-profile-achievement-laurel {
      display: block;
      width: 28px;
      height: 52px;
      color: inherit;
      overflow: visible;
    }
    .player-profile-achievement-copy { min-width: 0; }
    .player-profile-achievement-title {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .player-profile-achievement-subtitle {
      font-size: var(--text-xs);
      font-weight: 400;
      margin-top: -6px;
      white-space: nowrap;
    }
    .player-profile-stats {
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
    .player-profile-stat-fraction { font-size: var(--text-base); }
    .player-profile-stat-symbol { font-family: var(--font-body); }
    .player-profile-stat {
      border-right: 1px solid var(--border);
      padding: 0 2px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
    }
    .player-profile-stat:last-child { border-right: 0; }
    .player-profile-stat-value {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .player-profile-stat-value.positive { color: var(--positiv); }
    .player-profile-stat-value.negative { color: var(--negativ); }
    .player-profile-section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .player-profile-section-heading h3 {
      margin: 0;
    }
    .player-profile-section-heading span {
      color: var(--dim);
      font-size: var(--text-xs);
      letter-spacing: 0.12em;
    }
    .player-profile-chart-wrap { position: relative; height: 270px; margin-top: 18px; }
    .player-profile-chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 22px;
      margin-top: 16px;
    }
    .player-profile-chart-legend span,
    .player-profile-participation-marker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--dim);
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .player-profile-chart-legend i,
    .player-profile-participation-marker i {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--profile-season-color);
    }
    .player-profile-participations {
      display: grid;
      margin-top: 18px;
      gap: 18px;
    }
    .player-profile-participation {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 4px 12px;
    }
    .player-profile-participation:last-child { border-bottom: 0; }
    .player-profile-participation-name { font-size: var(--text-base); font-weight: 500; }
    .player-profile-participation-status {
      margin-left: 6px;
      color: var(--dim);
      font-size: var(--text-sm);
      font-style: italic;
      font-weight: 400;
    }
    .player-profile-season-participation { display: block; }
    .player-profile-participation-phases {
      display: grid;
      gap: 12px;
      margin: 4px 0 0;
    }
    .player-profile-participation-phase {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
    }
    .player-profile-participation-phase-content { min-width: 0; }
    .player-profile-participation-phase-heading {
      margin-bottom: 2px;
      color: var(--dim);
      font-size: var(--text-xs);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .player-profile-participation-phase-result {
      align-self: center;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0;
      text-transform: none;
    }
    .player-profile-participation-phase-result.player-profile-participation-placement {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      font-weight: 400;
      line-height: 1;
    }
    .player-profile-participation-phase-result.r1 { color: var(--gold); }
    .player-profile-participation-phase-result.r2 { color: var(--silver); }
    .player-profile-participation-phase-result.r3 { color: var(--bronze); }
    .player-profile-training-participation { --profile-season-color: var(--dim); }
    .player-profile-training-participation .stat-meta-line { grid-column: 1 / -1; }
    #player-profile-relationships { margin-top: 18px; }
    #player-profile-relationships.has-results { margin-top: 0; }
    .player-profile-relationships .stat-shift-value { font-family: var(--font-mono); }
    /* Eigene Vergleichsfarben, damit Violett und Kupfer nicht mit den Saisonfarben verwechselt werden. */
    .player-profile-compare {
      --team-one: var(--accent2);
      --team-two: var(--text);
      margin-top: 2rem;
      min-height: 360px;
    }
    .player-profile-compare-result { display: grid; gap: 12px; }
    .player-profile-compare-result:empty { display: none; }
    #player-profile-compare-menu { max-height: 200px; }
    .player-profile-compare .stat-meta-line { margin-top: 12px; }
    .player-profile-compare .player-profile-compare-names {
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 600;
      margin-top: 4px;
    }
    .player-profile-compare-row .match-forecast-percentages {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .player-profile-compare-row .match-forecast-percentages span:last-child { text-align: right; }
    .player-profile-compare-label {
      color: var(--dim);
      font-family: var(--font-body);
      font-weight: 400;
      text-align: center;
    }
    .player-profile-match-list { margin-top: 8px; }
    .player-profile-match-group {
      padding: 4px 0;
    }
    .player-profile-match {
      display: grid;
      grid-template-columns: 64px 32px minmax(0, 1fr) 132px 84px;
      align-items: center;
      gap: 16px;
      padding: 2px 0;
    }
    .player-profile-match-date,
    .player-profile-match-season {
      color: var(--dim);
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .player-profile-match-date { white-space: nowrap; }
    .player-profile-match-outcome {
      display: grid;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--positiv);
      color: #07100d;
      font-family: var(--font-mono);
      font-size: var(--text-sm);
      font-weight: 600;
      place-items: center;
    }
    .player-profile-match-outcome.loss { background: var(--negativ); color: #17040a; }
    .player-profile-match-outcome.draw { border: 2px dashed var(--positiv); background: transparent; color: var(--positiv); }
    .player-profile-match-outcome.unfinished { border: 2px dashed var(--dim); background: transparent; color: var(--dim); }
    .player-profile-match-group.training .player-profile-match-outcome {
      border: 2px solid currentColor;
      background: transparent;
    }
    .player-profile-match-group.training .player-profile-match-outcome.win { color: var(--positiv); }
    .player-profile-match-group.training .player-profile-match-outcome.loss { color: var(--negativ); }
    .player-profile-match-group.training .player-profile-match-outcome.draw,
    .player-profile-match-group.training .player-profile-match-outcome.unfinished { color: var(--dim); }
    .player-profile-match-teams {
      display: flex;
      align-items: baseline;
      gap: 0.25rem;
    }
    .player-profile-match-team-line {
      display: inline-flex;
      align-items: baseline;
      gap: 0.25rem;
      text-wrap: nowrap;
    }
    .player-profile-match-teams span { color: var(--muted); }
    .player-profile-match-score {
      font-family: var(--font-body);
      font-weight: 600;
      white-space: nowrap;
    }
    button.player-profile-match-score {
      appearance: none;
      border: 0;
      background: transparent;
      cursor: pointer;
      font: inherit;
      padding: 0;
      text-align: inherit;
      text-decoration: underline;
      text-decoration-color: transparent;
      text-underline-offset: 3px;
    }
    button.player-profile-match-score:hover,
    button.player-profile-match-score:focus-visible { text-decoration-color: currentColor; }
    .player-profile-score-set { white-space: nowrap; }
    .player-profile-score-divider { color: var(--dim); }
    .player-profile-set-tiebreak { font-size: var(--text-xs); }
    .player-profile-score-partial { color: var(--dim); font-style: italic; font-weight: 500; }
    .player-profile-match.win .player-profile-match-score { color: var(--positiv); }
    .player-profile-match.loss .player-profile-match-score { color: var(--negativ); }
    .player-profile-match.unfinished .player-profile-match-score {
      color: var(--dim);
      font-style: italic;
      font-weight: 500;
    }
    .player-profile-unrated-result {
      color: var(--dim);
      font-style: italic;
      font-weight: 500;
    }
    .player-profile-match-season { text-align: right; }
    .player-profile-match.upcoming .player-profile-match-score { color: var(--text); }
    .player-profile-win-chance-label {
      color: var(--dim);
      font-size: var(--text-xs);
      font-weight: 500;
    }
    .player-profile-show-all {
      width: 100%;
      margin-top: 24px;
    }
    .player-profile-show-all[hidden] { display: none; }
    @media (max-width: 1199px) {
      .player-profile-match-teams {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
      }
    }
    @media (max-width: 1024px) {
      .player-profile-identity-row {
        grid-template-columns: 168px minmax(0, 1fr);
      }
      .player-profile-achievements {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-self: center;
        width: min(100%, 760px);
      }
    }

    @media (max-width: 999px) {
      .player-profile-match {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px 12px;
      }
      .player-profile-match-group.training,
      .player-profile-match-group.final-four { padding: 4px 0px; }
      .player-profile-match-group.training .player-profile-match,
      .player-profile-match-group.final-four .player-profile-match { padding: 4px 0; }
      .player-profile-match-date { grid-column: 1; grid-row: 1; }
      .player-profile-match-outcome { grid-row: 2; }
      .player-profile-match-teams { grid-row: 2; }
      .player-profile-match-score {
        display: flex;
        grid-column: 3;
        grid-row: 2;
        align-items: flex-start;
        justify-content: flex-end;
        min-height: 44px;
        text-align: right;
      }
      .player-profile-match-season { grid-column: 3; grid-row: 1; }
    }

    @media (max-width: 768px) {
      .player-profile-dialog {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 20px;
      }
      .player-profile-shell { padding: 1rem; }
      .player-profile-content { grid-template-columns: 1fr; }
      .player-profile-content > .player-profile-widget { grid-column: 1; }
      .player-profile-hero-block { margin: -12px -12px 0; }
      .modal-close-button { top: 16px; right: 16px; width: 32px; height: 32px; }
      .player-profile-identity-row {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 20px;
        min-height: 0;
        padding: 40px 12px 12px;
      }
      .player-profile-avatar { width: 116px; border-radius: 20px; }
      .player-profile-avatar-placeholder { font-size: 4.5rem; }
      .player-profile-achievements {
        gap: 8px;
        min-width: 0;
        width: 100%;
      }
      .player-profile-achievement-laurel { width: 24px; height: 44px; }
      .player-profile-achievement-title { font-size: 1.8rem; }
      .player-profile-achievement-subtitle { letter-spacing: -0.03rem; }
      .player-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .player-profile-stat { border-bottom: 1px solid var(--border); padding: 1rem; }
      .player-profile-stat:nth-child(even) { border-right: 0; }
      .player-profile-stat:nth-last-child(-n + 2) { border-bottom: 0; }
      .player-profile-chart-wrap { height: 210px; }
    }

    /* Die schmale Paneldarstellung folgt dem mobilen Profil, obwohl der Viewport breit ist. */
    .player-profile-dialog[data-presentation="panel"] {
      position: relative;
      inset: auto;
      width: 100%;
      height: 100%;
      max-width: none;
      max-height: none;
      margin: 0;
      border-radius: 20px;
      box-shadow: 0 24px 72px rgba(0,0,0,0.56);
      animation: player-profile-panel-in 220ms ease-out;
    }
    .player-profile-dialog[data-presentation="panel"].is-closing {
      opacity: 0;
      transform: translateX(calc(100% + 24px));
      transition: opacity 220ms ease, transform 220ms ease;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-shell { padding: 1rem; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-content {
      grid-template-columns: 1fr;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-content > .player-profile-widget {
      grid-column: 1;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-hero-block {
      grid-column: 1;
      margin: -12px -12px 0;
    }
    .player-profile-dialog[data-presentation="panel"] .modal-close-button {
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-identity-row {
      grid-template-columns: 116px minmax(0, 1fr);
      gap: 20px;
      min-height: 0;
      padding: 40px 12px 12px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-avatar {
      width: 116px;
      border-radius: 20px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-avatar-placeholder { font-size: 4.5rem; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-achievements {
      grid-column: 1 / -1;
      gap: 8px;
      min-width: 0;
      width: 100%;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-achievement-laurel {
      width: 24px;
      height: 44px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-achievement-title { font-size: 1.8rem; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-achievement-subtitle { letter-spacing: -0.03rem; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-stats {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-stat {
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 1rem 0.35rem;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-stat:nth-child(4n) { border-right: 0; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-stat:nth-last-child(-n + 4) { border-bottom: 0; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-chart-wrap { height: 210px; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-teams {
      align-items: flex-start;
      flex-direction: column;
      gap: 2px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match {
      grid-template-columns: 30px minmax(0, 1fr) auto;
      gap: 8px 12px;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-group.training,
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-group.final-four { padding: 4px 0; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-group.training .player-profile-match,
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-group.final-four .player-profile-match { padding: 4px 0; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-date { grid-column: 1; grid-row: 1; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-outcome { grid-row: 2; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-teams { grid-row: 2; }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-score {
      display: flex;
      grid-column: 3;
      grid-row: 2;
      align-items: flex-start;
      justify-content: flex-end;
      min-height: 44px;
      text-align: right;
    }
    .player-profile-dialog[data-presentation="panel"] .player-profile-match-season {
      grid-column: 3;
      grid-row: 1;
    }
    @keyframes player-profile-panel-in {
      from { opacity: 0; transform: translateX(calc(100% + 24px)); }
      to { opacity: 1; transform: translateX(0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .player-profile-dialog[data-presentation="panel"],
      .player-profile-dialog[data-presentation="panel"].is-closing {
        animation: none;
        transition: none;
      }
    }


    /* ── TIPPSPIEL & AUTH ── */
    .prediction-overview-loading {
      min-height: 220px;
      display: grid;
      place-items: center;
      color: var(--dim);
      font-size: var(--text-sm);
    }
    .prediction-overview-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
      gap: 4rem;
      align-items: start;
    }
    .prediction-overview-column {
      display: grid;
      gap: 4rem;
      min-width: 0;
      align-content: start;
    }
    .prediction-overview-block {
      min-width: 0;
    }
    .prediction-overview-block p {
      max-width: 54ch;
      color: var(--dim);
      font-size: var(--text-sm);
      line-height: 1.5;
    }
    .prediction-overview-block .primary-button,
    .prediction-overview-block .secondary-button { margin-top: 1rem; }
    .prediction-overview-account {
      overflow: hidden;
      color: var(--text);
      font-size: var(--text-base);
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .prediction-overview-scoreline {
      display: flex;
      align-items: flex-end;
      gap: clamp(2rem, 7vw, 5rem);
      margin: 1.35rem 0 1rem;
    }
    .prediction-overview-personal-stand {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
      align-items: end;
      gap: clamp(1rem, 3vw, 2.5rem);
    }
    .prediction-overview-stand-copy { min-width: 0; }
    .prediction-overview-stand-copy p { margin-top: 1rem; }
    .prediction-overview-personal-stand .prediction-overview-scoreline { display: contents; }
    .prediction-overview-personal-stand .prediction-overview-scoreline > div { min-width: 0; text-align: center; }
    .prediction-passive-points-value {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
    }
    .prediction-passive-points-help { transform: translateY(-0.08em); }
    .prediction-ranking-passive-help { justify-content: flex-end; }
    @media (min-width: 769px) {
      .tip-page #tippuebersicht .ranking-wrap { overflow: visible; }
    }
    .prediction-overview-action {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    /*.prediction-overview-action p { margin-top: 0.7rem; }
    .prediction-overview-action .primary-button,
    .prediction-overview-action .secondary-button { margin-top: auto; padding-top: 0.55rem; }*/
    .prediction-overview-ranks { display: grid; }
    .prediction-overview-rank-separated { margin-top: 10px; border-top: 1px solid var(--border); }
    .prediction-overview-empty { color: var(--dim); font-size: var(--text-sm); padding: 0.65rem 0; }
    .prediction-overview-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 2rem;
      margin-top: 0.9rem;
    }
    .prediction-overview-stats > div {
      display: grid;
      gap: 0.25rem;
      min-width: 0;
      text-align: center;
    }
    .prediction-overview-stats strong {
      color: var(--accent2);
      font-family: var(--font-heading);
      font-size: 2rem;
      font-weight: 400;
      line-height: 1;
    }
    .prediction-overview-community .prediction-overview-scoreline { margin: 0; }

    .prediction-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
      gap: 18px;
      align-items: start;
    }
    .prediction-info-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
      gap: 4rem;
      align-items: start;
      min-width: 0;
    }
    .prediction-info-layout > * { min-width: 0; }
    .prediction-info-sidebar {
      display: grid;
      gap: 4rem;
    }
    .prediction-info-sidebar .prediction-login-hint,
    .prediction-info-sidebar .prediction-session-note {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
      overflow-wrap: anywhere;
    }
    .prediction-info-sidebar .prediction-login-hint .primary-button { width: 100%; }
    .prediction-info-sidebar .prediction-rule-grid { grid-template-columns: 1fr; }
    .prediction-rules { padding-bottom: 1.1rem; }
    .prediction-rule-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .prediction-rule-grid > div {
      display: grid;
      grid-template-columns: auto 1fr;
      column-gap: 10px;
      align-items: center;
    }
    .prediction-rule-grid strong {
      grid-row: 1 / 3;
      color: var(--accent2);
      font-family: var(--font-heading);
      font-size: 2.4rem;
      font-weight: 400;
      line-height: 1;
    }
    .prediction-rule-grid span { color: var(--text); font-size: 0.9rem; font-weight: 600; }
    .prediction-rule-grid small { color: var(--dim); font-size: 0.74rem; }
    .prediction-login-hint,
    .prediction-session-note {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
      border-radius: 12px;
      background: color-mix(in srgb, var(--accent) 7%, transparent);
      padding: 1rem 1.15rem;
    }
    .prediction-login-hint > div { display: grid; gap: 3px; }
    .prediction-login-hint span,
    .prediction-session-note { color: var(--dim); font-size: 0.86rem; }
    .prediction-session-note strong { color: var(--text); }
    .primary-button {
      min-height: 38px;
      border: 1px solid var(--accent);
      border-radius: 999px;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 700;
      padding: 0.5rem 0.85rem;
    }
    .primary-button { background: var(--accent); color: var(--bg); }
    .danger-button {
      min-height: 38px;
      border: 1px solid var(--negativ);
      border-radius: 999px;
      background: var(--negativ);
      color: #17040a;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 700;
      padding: 0.5rem 0.85rem;
    }
    .danger-button:hover,
    .danger-button:focus-visible { filter: brightness(1.08); }
    .danger-button:disabled { cursor: wait; opacity: 0.55; }
    .secondary-button {
      min-height: 38px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 500;
      padding: 0.5rem 0.85rem;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .secondary-button:hover,
    .secondary-button:focus-visible { border-color: var(--accent); color: var(--accent); }
    .secondary-button--dropdown {
      position: relative;
      padding-right: 1.8rem;
    }
    .secondary-button--dropdown::after {
      content: '';
      position: absolute;
      top: 50%;
      right: 0.85rem;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: translateY(-65%) rotate(45deg);
      transform-origin: center;
      transition: transform 160ms ease;
    }
    .season-picker.open .secondary-button--dropdown,
    .training-picker.open .secondary-button--dropdown {
      border-color: var(--accent);
      color: var(--accent);
    }
    .viewer-picker.open .viewer-split-button { border-color: var(--accent); }
    .viewer-picker.open .secondary-button--dropdown { color: var(--accent); }
    .viewer-picker.open .viewer-combobox { color: var(--accent); }
    .viewer-picker.open .viewer-combobox::after { transform: translateY(-35%) rotate(225deg); }
    .season-picker.open .secondary-button--dropdown::after,
    .viewer-picker.open .secondary-button--dropdown::after,
    .training-picker.open .secondary-button--dropdown::after {
      transform: translateY(-35%) rotate(225deg);
    }
    .primary-button:disabled { cursor: wait; opacity: 0.55; }
    .prediction-match-list { display: grid; gap: 20px; }
    .prediction-match-group { display: grid; margin-bottom: 4rem; }
    .prediction-match-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: transparent;
      padding: 1rem 1.15rem;
    }
    .prediction-match-card.has-prediction {
      border-color: var(--border);
      background: var(--surface);
    }
    .prediction-match-card.is-locked { background: color-mix(in srgb, var(--surface) 54%, transparent); }
    .prediction-match-meta {
      grid-column: 1;
      grid-row: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--dim);
    }
    .prediction-match-number { min-width: 0; white-space: nowrap; }
    .prediction-status {
      grid-column: 2;
      grid-row: 1;
      align-self: start;
      justify-self: end;
      flex: 0 0 auto;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 2px 7px;
      font-size: var(--text-xs);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .prediction-status.is-open { border-color: var(--positiv); color: var(--positiv); }
    .prediction-status.is-locked { color: var(--dim); }
    .prediction-status.points-4 { border-color: var(--gold); color: var(--gold); }
    .prediction-status.points-2 { border-color: var(--silver); color: var(--silver); }
    .prediction-status.points-0 { border-color: var(--border); color: var(--dim); }
    .prediction-status.is-own-match { border-color: var(--accent2); color: var(--accent2); }
    .prediction-status.is-upcoming { color: var(--dim); }
    .prediction-teams {
      grid-column: 1 / -1;
      grid-row: 2;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(66px, auto) minmax(0, 1fr);
      align-items: center;
      gap: 10px;
    }
    .prediction-team {
      color: var(--text);
      font-size: var(--text-base);
      font-weight: 600;
      line-height: 1.25;
      text-wrap: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .prediction-team-2 { text-align: right; }
    .prediction-player { text-wrap: nowrap; }
    .prediction-player.is-authenticated-player { color: var(--accent2); }
    table.prediction-ranking-table tbody tr.authenticated-player-highlight td {
      background: color-mix(in srgb, var(--accent2) 20%, transparent);
    }
    table.prediction-ranking-table tbody tr.authenticated-player-highlight td:first-child {
      box-shadow: inset 3px 0 0 var(--accent2);
    }
    table.prediction-ranking-table tbody tr.authenticated-player-highlight .pname {
      color: var(--accent2);
      font-weight: 700;
    }
    table.prediction-ranking-table tbody td.col-bonus {
      color: var(--accent2);
      font-weight: 400;
    }
    table.prediction-ranking-table tbody td.col-passive {
      color: var(--accent2);
      font-weight: 400;
    }
    .prediction-match-center {
      color: var(--dim);
      font-size: var(--text-sm);
      font-weight: 500;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
    }
    .prediction-match-center--result {
      font-family: var(--font-heading);
      font-size: 1.5rem;
      color: var(--text);
    }
    .prediction-match-center-link {
      border-radius: 5px;
      padding: 0.35rem 0.2rem;
      text-decoration: none;
    }
    .prediction-match-center-link:hover { color: var(--accent); }
    .prediction-match-center-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .prediction-options {
      grid-column: 1 / -1;
      grid-row: 3;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 7px;
      margin-left: 3vw;
    }
    .prediction-options--upcoming {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      color: var(--dim);
      font-size: var(--text-sm);
      text-align: center;
    }
    .prediction-option {
      min-height: 42px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--dim);
      cursor: pointer;
      font-size: var(--text-base);
      font-weight: 600;
    }
    .prediction-option:hover { border-color: var(--accent); color: var(--text); }
    .prediction-option.active { border-color: var(--accent); background: var(--accent); color: var(--bg); }
    .prediction-option:disabled { cursor: not-allowed; opacity: 0.46; }
    .prediction-option.is-own-floor { border-color: var(--muted); background: var(--muted); color: var(--bg); }
    .prediction-option.active:disabled,
    .prediction-option.is-own-floor:disabled,
    .prediction-option.is-result:disabled { opacity: 1; }
    .prediction-option.is-result { border-color: var(--positiv); box-shadow: inset 0 0 0 2px var(--positiv); }
    .prediction-option.active.is-result {
      border: 3px solid var(--positiv);
      background: var(--accent);
      box-shadow: inset 0 0 0 2px var(--bg);
    }
    .prediction-option.is-own-floor.is-result {
      border: 3px solid var(--positiv);
      background: var(--muted);
      box-shadow: inset 0 0 0 2px var(--bg);
    }
    @media (min-width: 840px) {
      .prediction-match-card:not(.is-single-set) {
        grid-template-columns: 130px minmax(240px, 2fr) minmax(168px, 1fr) 112px;
        align-items: center;
        gap: 1rem;
        min-height: 80px;
        padding: 0.8rem 1rem;
      }
      .prediction-match-card:not(.is-single-set) .prediction-match-meta {
        grid-column: 1;
        grid-row: 1;
      }
      .prediction-match-card:not(.is-single-set) .prediction-teams {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: minmax(0, 1fr) minmax(62px, auto) minmax(0, 1fr);
        gap: 8px;
      }
      .prediction-match-card:not(.is-single-set) .prediction-team { font-size: var(--text-base); }
      .prediction-match-card:not(.is-single-set) .prediction-options {
        grid-column: 3;
        grid-row: 1;
        gap: 5px;
      }
      .prediction-match-card:not(.is-single-set) .prediction-options--upcoming { min-height: 38px; }
      .prediction-match-card:not(.is-single-set) .prediction-option {
        min-height: 38px;
        font-size: var(--text-sm);
      }
      .prediction-match-card:not(.is-single-set) .prediction-status {
        grid-column: 4;
        grid-row: 1;
        align-self: center;
      }
    }
    .prediction-bonus-copy {
      grid-column: 1;
      grid-row: 1;
      display: flex;
      align-items: baseline;
      gap: 0.6rem;
      min-width: 0;
      align-items: center;
    }
    @media (max-width: 768px) {
    .prediction-bonus-copy {
      flex-wrap: wrap;
    }
    }
    .prediction-bonus-copy strong {
      flex: 0 0 auto;
      color: var(--text);
      font-size: var(--text-base);
      line-height: 1.25;
    }
    .prediction-bonus-copy span,
    .prediction-bonus-answer,
    .prediction-bonus-result {
      color: var(--dim);
      font-size: var(--text-sm);
      line-height: 1.35;
    }
    .prediction-bonus-copy span {
      min-width: 0;
      text-wrap: balance;
    }
    .prediction-bonus-options {
      grid-column: 1 / -1;
      grid-row: 2;
      display: grid;
      gap: 5px;
      min-width: 0;
    }
    .prediction-bonus-selects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 6px;
    }
    .prediction-bonus-picker,
    .prediction-bonus-picker .viewer-split-button,
    .prediction-bonus-picker .viewer-combobox { width: 100%; }
    .prediction-bonus-picker .secondary-button {
      justify-content: flex-start;
      width: 100%;
      min-height: 42px;
      min-width: 0;
      overflow: hidden;
      text-align: left;
      text-overflow: ellipsis;
    }
    .prediction-bonus-picker .secondary-button span {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .viewer-picker.open.prediction-bonus-picker--no-search .viewer-combobox .secondary-button {
      visibility: visible;
    }
    .prediction-bonus-picker-menu {
      right: 0;
      width: max(100%, 190px);
    }
    .prediction-bonus-picker .viewer-option:disabled {
      cursor: not-allowed;
      opacity: 0.35;
    }
    .prediction-bonus-result { color: var(--positiv); }
    @media (min-width: 840px) {
      .prediction-match-card.prediction-bonus-card {
        grid-template-columns: minmax(280px, 2fr) minmax(260px, 1.4fr) 112px;
        align-items: center;
        gap: 1rem;
        min-height: 80px;
        padding: 0.8rem 1rem;
      }
      .prediction-match-card.prediction-bonus-card .prediction-bonus-copy {
        grid-column: 1;
        grid-row: 1;
      }
      .prediction-match-card.prediction-bonus-card .prediction-bonus-options {
        grid-column: 2;
        grid-row: 1;
      }
      .prediction-match-card.prediction-bonus-card .prediction-status {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
      }
      .prediction-bonus-picker .secondary-button { min-height: 38px; }
    }
    .prediction-error {
      display: grid;
      gap: 4px;
      border: 1px solid color-mix(in srgb, var(--negativ) 50%, var(--border));
      border-radius: 12px;
      color: var(--text);
      padding: 1rem;
    }
    .prediction-error small { color: var(--dim); }

    /* ── MAIN ── */
    main { max-width: 1100px; margin: 0 auto; padding: 0 1rem 6rem; }
    .ranking-profile-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
      align-items: start;
      gap: 0;
      transition: grid-template-columns 220ms ease, gap 220ms ease;
    }
    .ranking-profile-main { min-width: 0; }
    .ranking-profile-host {
      position: sticky;
      z-index: 90;
      top: 78px;
      width: 100%;
      height: 0;
      min-width: 0;
      overflow: hidden;
    }
    body.player-profile-panel-open main {
      width: auto;
      max-width: none;
      margin-right: 16px;
      margin-left: var(--ranking-profile-split-left, 16px);
      padding-right: 0;
      padding-left: 0;
    }
    body.player-profile-panel-open .ranking-profile-layout {
      grid-template-columns: minmax(600px, 1fr) var(--player-profile-panel-width, 460px);
      gap: 24px;
    }
    body.player-profile-panel-open .ranking-profile-host,
    .ranking-profile-host:has(.player-profile-dialog.is-closing) {
      height: calc(100dvh - 94px);
      overflow: visible;
    }
    @media (prefers-reduced-motion: reduce) {
      .ranking-profile-layout { transition: none; }
    }
    .section { display: none; }
    .section.active { display: block; }
    .swipe-in-from-right { animation: swipe-in-right 0.22s ease-out; }
    .swipe-in-from-left { animation: swipe-in-left 0.22s ease-out; }
    @keyframes swipe-in-right { from { opacity: 0; transform: translateX(32px); } }
    @keyframes swipe-in-left { from { opacity: 0; transform: translateX(-32px); } }
    @media (prefers-reduced-motion: reduce) {
      .swipe-in-from-right,
      .swipe-in-from-left { animation: none; }
    }

    /* ── SECTION HEADER ── */
    .sh {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 1rem;
    }
    .sh-with-control { align-items: center; justify-content: space-between; }
    #ranking-profile-main > .sh-with-control,
    #partien > .sh-with-control,
    #tippen > .sh-with-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 18px;
    }
    .sh-heading { display: flex; align-items: baseline; gap: 12px; }
    .sh-title { font-family: var(--font-heading); font-size: var(--text-heading); font-weight: 400; letter-spacing: 0.05em; }
    .sh-title-with-help {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }
    .sh-meta { font-size: var(--text-sm); color: var(--muted); }
    .table-note { font-size: var(--text-xs); }
    .section-subheading { margin-top: 4rem; }
    #ranking-profile-main > #final-four-ranking-section:first-child .section-subheading,
    #league-calculator[hidden] + #final-four-calculator .section-subheading { margin-top: 0; }
    .match-scope-toggle {
      display: inline-flex;
      padding: 3px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: rgba(255,255,255,0.04);
    }
    .match-scope-toggle button {
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--dim);
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.35rem 0.75rem;
      cursor: pointer;
      transition: color 0.15s ease;
    }
    .match-scope-toggle:not(.disabled) button:not(:disabled):hover {
      color: var(--accent);
    }
    .match-scope-toggle button.active {
      background: var(--surface2);
      color: var(--accent);
    }
    .match-scope-toggle button:disabled {
      opacity: 0.45;
      cursor: default;
    }
    .match-scope-toggle.disabled {
      opacity: 0.55;
    }
    .match-scope-toggle.disabled button {
      cursor: default;
    }
    .ranking-sort-toggle {
      justify-self: center;
      gap: 12px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }
    .ranking-sort-toggle button {
      border-radius: 0;
      border-bottom: 1px solid transparent;
      padding: 0.15rem 0;
    }
    .ranking-sort-toggle button.active {
      background: transparent;
      border-color: var(--accent);
      color: var(--accent);
    }
    .ranking-controls {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .ranking-view-toggle {
      justify-self: end;
    }
    .all-time-ranking > .sh-with-control {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 18px;
    }
    .all-time-ranking-controls {
      align-items: center;
      justify-self: end;
    }
    #all-time-ranking-scope-toggle button { white-space: nowrap; }
    #match-scope-toggle { justify-self: end; }

    /* ── HOME / INFO WIDGETS ── */
    .home-grid {
      display: grid;
      grid-template-columns: minmax(320px, 1.4fr) minmax(320px, 1fr);
      gap: 4rem;
      align-items: start;
    }
    .home-side { display: grid; gap: 4rem; }
    .home-main { display: grid; gap: 4rem; align-content: start; }
    .home-season-podium {
      overflow: hidden;
      margin-bottom: 4rem;
      background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 38%);
      text-align: center;
    }
    .home-season-podium-kicker {
      color: var(--accent);
      font-family: var(--font-body);
      font-size: var(--text-xs);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }
    .home-season-podium h2 {
      margin-top: 0.35rem;
      font-family: var(--font-heading);
      font-size: clamp(2.35rem, 6vw, 4rem);
      font-weight: 400;
      letter-spacing: 0.035em;
      line-height: 1;
    }
    .home-season-podium-steps {
      display: grid;
      width: min(700px, 100%);
      margin: 1.15rem auto 0;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
      align-items: end;
      gap: 8px;
    }
    .home-season-podium-place {
      display: flex;
      min-width: 0;
      flex-direction: column;
      justify-content: flex-end;
    }
    .home-season-podium-place .cup-trophy {
      width: 58px;
      margin: 0 auto 0.3rem;
      color: var(--accent);
      filter: none;
    }
    .wanderpokal-outline {
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 3;
    }
    .home-season-podium-player {
      overflow: hidden;
      margin-bottom: 0.7rem;
      color: var(--text);
      font-size: clamp(0.86rem, 2.5vw, 1.3rem);
      font-weight: 600;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .home-season-podium-place--1 .home-season-podium-player {
      color: var(--accent);
      font-size: clamp(1.1rem, 3.4vw, 1.75rem);
    }
    .home-season-podium-step {
      display: grid;
      width: 100%;
      min-height: 64px;
      place-items: center;
      padding: 0;
      border-top: 1px solid color-mix(in srgb, var(--dim) 34%, transparent);
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
      background: color-mix(in srgb, var(--surface2) 64%, var(--surface));
    }
    button.home-season-podium-step {
      cursor: pointer;
      transition: background-color 0.15s, border-color 0.15s;
    }
    button.home-season-podium-step:hover {
      border-top-color: var(--accent);
      background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    }
    button.home-season-podium-step:focus-visible {
      z-index: 1;
      outline: 2px solid var(--accent);
      outline-offset: -3px;
    }
    .home-season-podium-step span {
      color: color-mix(in srgb, var(--text) 26%, transparent);
      font-family: var(--font-heading);
      font-size: 3rem;
      line-height: 1;
    }
    .home-season-podium-place--1 .home-season-podium-step {
      min-height: 96px;
      border-top-color: var(--accent);
      background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    }
    .home-season-podium-place--1 .home-season-podium-step span { color: var(--accent); }
    .home-season-podium-place--3 .home-season-podium-step { min-height: 52px; }
    @media (max-width: 600px) {
      .home-season-podium {
        padding: 1.25rem 0.75rem 0;
      }
      .home-season-podium h2 { font-size: 2.55rem; }
      .home-season-podium-steps { gap: 5px; }
      .home-season-podium-place .cup-trophy { width: 48px; }
      .home-season-podium-player { font-size: 0.74rem; }
      .home-season-podium-place--1 .home-season-podium-player { font-size: 0.92rem; }
      .home-season-podium-step { min-height: 58px; }
      .home-season-podium-place--1 .home-season-podium-step { min-height: 84px; }
      .home-season-podium-place--3 .home-season-podium-step { min-height: 46px; }
      .home-season-podium-step span { font-size: 2.4rem; }
    }
    .home-app-hint {
      position: relative;
      border: 1px solid var(--accent2) !important;
      padding-right: 3.25rem;
    }
    .home-app-hint .widget-label { color: var(--accent2); margin-bottom: 0.4rem; }
    .home-app-hint-text { color: var(--dim); line-height: 1.5; font-size: 0.92rem; margin: 0; }
    .home-app-hint-close {
      position: absolute;
      top: 0.55rem;
      right: 0.6rem;
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--dim);
      cursor: pointer;
      font-family: var(--font-body);
      font-size: 1.35rem;
      line-height: 1;
    }
    .home-app-hint-close:hover {
      background: color-mix(in srgb, var(--accent2) 12%, transparent);
      color: var(--accent2);
    }
    .home-app-hint-close:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 1px;
    }
    .is-standalone .home-app-hint { display: none; }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 4rem;
      margin-bottom: 4rem;
    }
    .stats-heading { align-items: center; }
    .statistics-load-error {
      margin: -0.5rem 0 1.5rem;
      border: 1px solid color-mix(in srgb, var(--negativ) 55%, var(--border));
      border-radius: 10px;
      background: color-mix(in srgb, var(--negativ) 8%, transparent);
      color: var(--negativ);
      padding: 0.75rem 0.9rem;
      font-size: 0.88rem;
    }
    .statistics-load-error[hidden],
    [data-season-only-statistic][hidden] { display: none; }
    .widget-label,
    .article-kicker {
      font-size: var(--text-sm);
      color: var(--dim);
      letter-spacing: 0.1rem;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
      font-weight: 600;
    }
    .widget h2 {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      letter-spacing: 0.04em;
      margin-bottom: 0.5rem;
    }
    .info-card h2 {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      font-weight: 400;
      letter-spacing: 0.05em;
      line-height: 1;
      margin-bottom: 0.85rem;
    }
    .clean-list { display: grid; gap: 0.65rem; list-style: none; color: var(--dim); line-height: 1.42; }
    .clean-list li { position: relative; padding-left: 1rem; }
    .clean-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent2); }
    .qualification-flow {
      display: grid;
      grid-template-columns: minmax(58px, 0.72fr) 22px minmax(112px, 1.35fr) 22px minmax(90px, 0.9fr);
      align-items: center;
      gap: 8px;
      width: 100%;
      max-width: 680px;
      margin: 1.5rem 0 0;
    }
    .qualification-flow-stage {
      display: grid;
      align-content: center;
      gap: 6px;
      min-width: 0;
    }
    .qualification-flow-label {
      overflow: hidden;
      color: var(--text);
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.06em;
      text-align: center;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .qualification-flow-stage small {
      color: var(--dim);
      font-size: var(--text-xs);
      line-height: 1.2;
      text-align: center;
    }
    .qualification-flow-ranks {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: color-mix(in srgb, var(--surface2) 72%, transparent);
    }
    .qualification-flow-ranks span {
      display: grid;
      min-height: 24px;
      place-items: center;
      border-bottom: 1px solid var(--border);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
    }
    .qualification-flow-ranks span:nth-child(odd) {
      border-right: 1px solid var(--border);
    }
    .qualification-flow-ranks span:nth-last-child(-n + 2) { border-bottom: 0; }
    .qualification-flow-match {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      min-height: 38px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: color-mix(in srgb, var(--surface2) 72%, transparent);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      text-align: center;
    }
    .qualification-flow-match span { padding: 0 4px; }
    .qualification-flow-match b {
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-xs);
      font-weight: 400;
      text-transform: uppercase;
    }
    .qualification-flow-arrow {
      position: relative;
      display: block;
      height: 2px;
      background: var(--muted);
    }
    .qualification-flow-arrow::after {
      content: "";
      position: absolute;
      top: 50%;
      right: -1px;
      width: 7px;
      height: 7px;
      border-top: 2px solid var(--muted);
      border-right: 2px solid var(--muted);
      transform: translateY(-50%) rotate(45deg);
    }
    .qualification-flow-final {
      justify-items: center;
    }
    .qualification-flow-final-card {
      display: grid;
      width: 100%;
      min-height: 84px;
      align-content: center;
      justify-items: center;
      gap: 6px;
      padding: 10px 6px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: color-mix(in srgb, var(--surface2) 72%, transparent);
      box-sizing: border-box;
    }
    .qualification-flow-final-players {
      display: grid;
      grid-template-columns: repeat(2, 14px);
      gap: 4px;
    }
    .qualification-flow-final-players span {
      width: 14px;
      height: 14px;
      border: 1px solid var(--muted);
      border-radius: 50%;
      background: color-mix(in srgb, var(--muted) 22%, transparent);
    }
    .qualification-flow-final-card strong {
      color: var(--text);
      font-size: var(--text-xs);
      font-weight: 600;
      text-align: center;
    }
    .stat-main {
      font-family: var(--font-heading);
      font-size: 4rem;
      line-height: 0.9;
      color: var(--accent2);
      letter-spacing: 0.02em;
      margin-bottom: 0.75rem;
    }
    #tippstart .stat-main { margin-bottom: 0; }
    .stat-copy {
      color: var(--dim);
      font-size: var(--text-sm);
    }
    .stat-team-players .mc-player-sep { color: var(--dim); margin: 0 0.2rem; }
    .stat-meta-line {
      display: block;
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      line-height: 1.35;
    }
    #player-profile-stats .stat-meta-line {
      text-align: center;
    }
    @media (min-width: 768px) and (max-width: 840px) {
      #player-profile-stats .stat-meta-line {
        font-size: var(--text-xs);
    }
    }
    .stat-split-score {
      display: grid;
      gap: 0.55rem;
      margin-bottom: 0.85rem;
    }
    .stat-split-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.8rem;
    }
    .stat-split-label {
      color: var(--dim);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space : nowrap;
    }
    .stat-split-value {
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      line-height: 0.9;
      color: var(--accent2);
      letter-spacing: 0.1rem;
      white-space: nowrap;
    }
    .stat-shift-groups {
      display: grid;
      gap: 2rem;
    }
    .stat-shift-list {
      display: grid;
      gap: 0.5rem;
    }
    .stat-shift-item {
      display: grid;
      gap: 0.08rem;
    }
    .stat-shift-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
    }
    .stat-shift-name {
      font-weight: 500;
      min-width: 0;
    }
    .stat-shift-name.viewer-player {
      color: var(--accent2);
      font-weight: 700;
    }
    .stat-shift-value {
      flex: 0 0 auto;
      font-weight: 600;
    }
    .stat-time-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    .stat-time-text {
      min-width: 0;
      display: grid;
      gap: 0.08rem;
    }
    .text-link {
      display: inline-flex;
      margin-top: 0.75rem;
      background: none;
      border: 0;
      color: var(--accent);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: opacity 160ms ease;
    }
    .text-link:hover,
    .context-link:hover { opacity: 0.7; }
    .inline-link { margin-top: 0; }

    .home-widget-links {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
      margin-top: 1rem;
    }
    .home-widget-note {
      display: flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 0.35rem;
      margin-top: 0;
      margin-left: auto;
      color: var(--dim);
      font-size: var(--text-sm);
      line-height: 1.35;
      white-space: nowrap;
    }
    .home-widget-note .inline-link {
      flex: 0 0 auto;
      white-space: nowrap;
    }

    .home-announcement .article-card {
      background: transparent;
      border: 0;
      padding: 0;
    }
    .home-announcement .article-card h3 {
      font-size: var(--text-heading);
      margin: 1rem 0;
      text-align: left;
      padding: 0;
    }
    .home-announcement .article-body p:last-child {
      margin-bottom: 0;
    }
    .article-card {
      border: 1px solid var(--border);
      padding: 1rem;
      background: var(--surface);
      border-radius: 12px;
    }
    .article-newspaper-header {
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
    }
    .article-newspaper-masthead {
      text-align: center;
      padding-bottom: 1rem;
      font-family: var(--font-newspaper);
      font-size: 2.2rem;
      line-height: 1;
    }
    .article-newspaper-masthead span:last-child { color: var(--accent); }
    .article-card h3 { 
      margin: 0 auto 0.75rem;
      font-size: clamp(2rem, 4vw, 2.6rem);
      line-height: 1.1;
      text-align: center;
      text-wrap: balance;
      padding: 0 32px;
    }
    .article-newspaper-publisher {
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: 0.04em;
      text-align: center;
      text-transform: uppercase;
    }
    .article-card p,
    .info-card p { color: var(--dim); line-height: 1.5; margin-bottom: 0.8rem; }
    .article-meta {
      display: flex;
      justify-content: space-between;
      padding: 4px 0;
      font-family: var(--font-body);
      font-size: var(--text-xs);
      color: var(--dim);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);

    }
    .article-meta span:last-child {
      text-align: right;
    }
    .article-body { margin-top: 1rem; }
    .article-body h4 {
      color: var(--text);
      font-size: 1.2rem;
      line-height: 1.25;
      margin: 2rem 0 0.2rem;
    }
    .article-match {
      color: var(--accent2);
      display: grid;
      gap: 0.25rem;
      margin-bottom: 0.35rem;
    }
    .article-match-result {
      color: var(--muted);
    }
    .article-body blockquote {
      border-left: 3px solid var(--accent2);
      margin: 1rem 0;
      padding: 0.2rem 0 0.2rem 1rem;
    }
    .article-body blockquote p {
      color: var(--text);
      font-size: var(--text-base);
      font-style: italic;
      margin-bottom: 0.1rem;
    }
    .article-body cite {
      color: var(--accent2);
      font-size: var(--text-sm);
      font-style: normal;
    }
    .article-body cite::before { content: "- "; }
    .article-readmore,
    .info-article-readmore { display: none; }
    .prediction-overview-article .home-article-preview {
      position: relative;
      max-height: 320px;
      overflow: hidden;
    }
    .prediction-overview-article .home-article-preview::after {
      content: "";
      position: absolute;
      z-index: 2;
      right: 0;
      bottom: 0;
      left: 0;
      height: 96px;
      background: linear-gradient(to bottom, rgba(7,8,12,0), var(--surface));
      pointer-events: none;
    }
    .prediction-overview-article .home-article-preview.expanded { max-height: none; }
    .prediction-overview-article .home-article-preview.expanded::after { display: none; }
    .prediction-overview-article .article-readmore { display: inline-flex; }
    .mini-rank-row,
    .mini-match-row {
      border-bottom: 1px solid var(--border);
      padding: 0.65rem 0;
    }
    .mini-rank-row {
      display: grid;
      grid-template-columns: 26px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
    }
    .mini-rank-row:first-child { padding-top: 0; }
    .mini-rank-row:last-child { border-bottom: 0; padding-bottom: 0; }
    .mini-rank-row .rank-position,
    .mini-rank-row .rank-score {
      font-family: var(--font-mono);
      font-size: var(--text-sm);
    }
    .mini-rank-row .rank-position,
    .mini-match-meta {
      color: var(--dim);
    }
    .mini-rank-row .rank-position {
      padding-left: 8px;
    }
    .mini-rank-name { min-width: 0; font-weight: 500; }
    .prediction-rank-account {
      display: inline-flex;
      max-width: 100%;
      min-width: 0;
      align-items: center;
      gap: 4px;
      vertical-align: middle;
    }
    .prediction-rank-account-name {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .prediction-account-type-icon {
      display: inline-flex;
      width: 15px;
      height: 15px;
      flex: 0 0 15px;
      align-items: center;
      justify-content: center;
      color: var(--dim);
    }
    .prediction-account-type-icon svg {
      display: block;
      width: 100%;
      height: 100%;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.7;
    }
    .prediction-achievement-icon {
      display: inline-flex;
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      align-items: center;
      justify-content: center;
    }
    .prediction-achievement-icon--winner { color: var(--gold); }
    .prediction-achievement-icon--final-four { color: var(--silver); }
    .prediction-achievement-icon svg {
      display: block;
      width: 100%;
      height: 100%;
      overflow: visible;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.7;
    }
    .prediction-achievement-laurel {
      display: block;
      width: 100%;
      height: 100%;
      background: currentColor;
      -webkit-mask: url('assets/icons/achievement-laurel.svg') center / contain no-repeat;
      mask: url('assets/icons/achievement-laurel.svg') center / contain no-repeat;
    }
    .mini-rank-values {
      display: grid;
      grid-template-columns: repeat(3, 3ch);
      gap: 10px;
      justify-items: end;
      align-items: center;
    }
    .mini-rank-games,
    .mini-rank-diff {
      font-family: var(--font-mono);
      color: var(--dim);
      font-size: var(--text-sm);
      font-weight: 700;
    }
    .mini-rank-row.r4 .rank-position { color: var(--dim); font-weight: 500; }
    .mini-rank-row.viewer-highlight {
      margin-left: -0.45rem;
      margin-right: -0.45rem;
      padding-top: 0.65rem;
      padding-bottom: 0.65rem;
      padding-left: 0.45rem;
      padding-right: 0.45rem;
      background: color-mix(in srgb, var(--accent2) 20%, transparent);
      box-shadow: inset 3px 0 0 var(--accent2);
    }
    .mini-rank-row.viewer-highlight .mini-rank-name {
      color: var(--accent2);
      font-weight: 700;
    }
    .mini-rank-name.viewer-player {
      color: var(--accent2);
      font-weight: 700;
    }
    .mini-match-meta {
      margin-bottom: .35rem;
      text-align: center;
      font-size: var(--text-sm);
    }
    .mini-match-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 18px;
      align-items: center;
    }
    .mini-match-row {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      background: transparent;
      max-width: 418.3px;
    }
    #home-next-matches,
    #home-recent-matches {
      display: grid;
      gap: 10px;
    }
    .mini-match-team {
      display: flex;
      flex-direction: column;
      gap: 2px;
      color: var(--text);
      font-weight: 500;
      font-size: var(--text-base);
      line-height: 1.16;
      min-width: 0;
    }
    .mini-match-team .mc-player-sep { display: none; }
    .mini-match-winner {
      color: var(--text);
      font-weight: 700;
    }
    .mini-match-loser { color: var(--dim); }
    .mini-match-team-2 {
      text-align: right;
      align-items: flex-end;
    }
    .mini-match-status {
      color: var(--dim);
      white-space: nowrap;
      text-align: center;
    }
    .mini-match-status-action {
      appearance: none;
      border: 0;
      border-radius: 7px;
      margin: -.3rem;
      padding: .3rem;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
    }
    .mini-match-status-action:hover :is(.mini-match-prob, .mini-match-label),
    .mini-match-status-action:focus-visible :is(.mini-match-prob, .mini-match-label) { color: var(--accent); }
    .mini-match-status-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .mini-match-prob {
      font-size: var(--text-sm);
    }
    .mini-match-status-played .mini-match-prob {
      color: var(--text);
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 1;
    }
    .mini-match-status-unrated .mini-match-prob {
      color: var(--dim);
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 1;
    }
    .mini-match-status-unrated .mini-match-label { font-style: italic; }
    .mini-match-label {
      font-family: var(--font-body);
      font-size: var(--text-sm);
    }
    .mini-training-players {
      display: flex;
      text-align: center;
      justify-content: space-between;
      gap: 8px;
    }
    .mini-training-player {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mini-training-player.viewer-player {
      color: var(--accent2);
      font-weight: 700;
    }
    .mini-training-summary {
      margin-top: .35rem;
      color: var(--dim);
      font-size: var(--text-sm);
      text-align: center;
    }
    .empty-state { color: var(--dim); font-size: var(--text-sm); }
    .mini-match-row.viewer-match,
    .mc.viewer-match {
      border-color: var(--accent2);
    }
    .mc.viewer-win  { 
      background: color-mix(in srgb, var(--positiv) 8%, transparent); 
      border-color: var(--positiv);
    }
    .mc.viewer-loss { 
      background: color-mix(in srgb, var(--negativ) 8%, transparent); 
      border-color: var(--negativ);
    }
    .mc-player-name.viewer-player {
      color: var(--accent2);
      font-weight: 700;
    }

    .info-layout {
      display: grid;
      grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
      gap: 4rem;
      align-items: start;
    }
    .info-layout > .info-card { position: sticky; top: 78px; }
    .info-sections { display: grid; gap: 4rem; }
    .info-anchor { scroll-margin-top: 82px; }
    .info-menu-toggle { display: none; }
    .info-menu {
      display: grid;
    }
    .info-menu-list,
    .info-menu-submenu,
    .info-menu-subitems {
      display: grid;
      gap: 2px;
    }
    aside.info-card.info-menu-card .widget-label { text-align: center;}
    .info-menu a {
      color: var(--dim);
      text-decoration: none;
      font-size: var(--text-base);
      padding: 0.45rem;
      text-align: center;
      border-radius: 6px;
    }
    .info-menu a.is-sub {
      color: var(--dim);
      font-size: var(--text-xs);
    }
    .info-menu a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);}
    .info-menu a:last-child { border-bottom: 0; }
    .info-menu-chevron {
      display: block;
      flex: 0 0 0.55rem;
      width: 0.55rem;
      height: 0.55rem;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
      transition: transform 0.2s ease;
    }
    .info-group { margin-top: 1rem; }
    .info-group h3 { font-size: var(--text-base); margin-bottom: 0.65rem; }
    .info-note {
      font-size: var(--text-sm);
      color: var(--muted) !important;
      margin-top: 1rem;
    }
    .info-table-wrap { overflow-x: auto; margin: 1rem 0; }
    .info-table { width: 100%; border-collapse: collapse; }
    .info-table th,
    .info-table td {
      padding: 0.65rem;
      border-bottom: 1px solid var(--border);
      text-align: left;
      color: var(--dim);
    }
    .info-table th { color: var(--dim); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; }
    .info-articles-stack { display: grid; gap: 4rem; }
    .info-article-preview {
      position: relative;
      max-height: 620px;
      overflow: hidden;
    }
    .info-article-preview::after {
      content: "";
      position: absolute;
      z-index: 2;
      left: 0;
      right: 0;
      bottom: 0;
      height: 104px;
      background: linear-gradient(to bottom, rgba(7,8,12,0), var(--surface));
      pointer-events: none;
    }
    .info-article-preview.expanded {
      max-height: none;
    }
    .info-article-preview.expanded::after {
      display: none;
    }
    .info-article-readmore { display: inline-flex; }

    /* ── RANKING TABLE ── */
    .ranking-wrap { overflow-x: auto; overflow-y: hidden; margin-bottom: 0.75rem; }
    .ranking-main-wrap[data-ranking-view="compact"] { overflow: visible; }
    .ranking-note { margin-bottom: 4rem; }
    .ranking-absence-note { display: block; margin-top: 0.4rem; }
    table.rt { width: 100%; border-collapse: collapse; margin-bottom: 1rem;}
    .ranking-wrap > table.rt { margin-bottom: 0; }
    .ranking-table { --rank-col-left: 0px; --name-col-left: 74px; }
    .ranking-table.compact .col-gv,
    .ranking-table.compact .col-form,
    .ranking-table.compact .col-winrate,
    .ranking-table.compact .col-draw-factor { display: none; }
    .ranking-table .col-rank { width: 74px; }
    .ranking-table .col-name { width: 200px; }
    .ranking-table .col-winrate { min-width: 110px; }
    .ranking-table .col-draw-factor { min-width: 172px; }
    .ranking-table .col-form { min-width: 114px; }
    table.rt th {
      text-align: right; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--dim); padding: 10px 16px;
      border-bottom: 1px solid var(--border);
    }
    table.rt td { padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: right; }
    table.rt .col-rank,
    table.rt .col-name,
    table.rt .col-company { text-align: left; }
    table.ranking-table th,
    table.ranking-table td {
      padding-left: 20px;
      padding-right: 20px;
    }
    body.player-profile-panel-open #ranking-profile-main table.rt th,
    body.player-profile-panel-open #ranking-profile-main table.rt td {
      padding-left: 8px;
      padding-right: 8px;
    }
    table.rt th.col-rank {padding-left: 20px;}
    table.rt tr:last-child td { border-bottom: none; }
    table.rt tbody tr { transition: background 0.1s; }
    table.rt tbody tr:nth-child(even) { background: var(--row-alt); }
    table.rt tbody tr:hover { background: color-mix(in srgb, var(--dim) 20%, transparent); }
    table.rt tbody tr.top-four-highlight td:first-child {
      box-shadow: inset 3px 0 0 var(--dim);
    }
    table.rt tbody tr.viewer-highlight td {
      background: color-mix(in srgb, var(--accent2) 20%, transparent);
    }
    table.rt tbody tr.viewer-highlight td:first-child {
      box-shadow: inset 3px 0 0 var(--accent2);
    }
    table.rt tbody tr.viewer-highlight .pname {
      color: var(--accent2);
      font-weight: 700;
    }
    table.rt tbody tr.profile-open-highlight td {
      background: color-mix(in srgb, var(--accent) 16%, transparent);
    }
    table.rt tbody tr.profile-open-highlight td:first-child {
      box-shadow: inset 3px 0 0 var(--accent);
    }
    table.rt tbody tr.profile-open-highlight .pname {
      color: var(--accent);
      font-weight: 700;
    }
    .col-rank.rank-position {
      font-family: var(--font-mono);
      font-size: var(--text-base);
      color: var(--text);
    }
    table.rt td:is(
      .col-participants,
      .col-games,
      .col-passive,
      .col-bonus,
      .col-wins,
      .col-points,
      .col-gv,
      .col-diff,
      .col-elo,
      .col-average-points,
      .col-winrate,
      .col-draw-factor,
      .col-points-per-player
    ) {
      font-family: var(--font-mono);
      font-size: var(--text-base);
    }
    .ranking-table .col-rank {
      width: 74px;
      min-width: 74px;
      max-width: 74px;
      box-sizing: border-box;
      padding-left: 12px;
      padding-right: 4px;
    }
    .ranking-table.expanded .col-rank,
    .ranking-table.expanded .col-name {
      position: sticky;
      z-index: 4;
      background: var(--bg);
    }
    .ranking-table.expanded .col-rank { left: var(--rank-col-left); z-index: 5;}
    .ranking-table.expanded .col-name {
      left: var(--name-col-left);
      box-shadow: 12px 0 18px rgba(0,0,0,0.22);
      white-space: nowrap;
    }
    .ranking-table .col-name {
      white-space: nowrap;
      padding-left: 8px;
    }
    .player-cell-inner {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
    }
    .ranking-player-name {
      display: inline-flex;
      min-width: 0;
      align-items: center;
      gap: 2px;
    }
    .ranking-absence-mark {
      flex: 0 0 auto;
      align-self: flex-start;
      margin: -0.1em 0.35rem 0 0.06rem;
      font-size: 0.78em;
      line-height: 1;
    }
    .ranking-table.expanded thead .col-rank,
    .ranking-table.expanded thead .col-name {
      z-index: 6;
      background: var(--bg);
    }
    .ranking-table.expanded tbody tr:nth-child(even) .col-rank,
    .ranking-table.expanded tbody tr:nth-child(even) .col-name {
      background: var(--row-alt);
    }
    .ranking-table.expanded tbody tr:hover .col-rank,
    .ranking-table.expanded tbody tr:hover .col-name {
      background: var(--surface);
    }
    .ranking-table.expanded tbody tr.viewer-highlight .col-rank,
    .ranking-table.expanded tbody tr.viewer-highlight .col-name {
      background: color-mix(in srgb, var(--accent2) 20%, var(--bg));
    }
    .ranking-table .col-name .pname,
    .ranking-table .col-name .firma-badge {
      white-space: nowrap;
    }
    .th-help-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 5px;
    }
    .help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px;
      height: 14px;
      border: 1px solid var(--dim);
      border-radius: 50%;
      background: var(--dim);
      color: var(--bg);
      font-family: var(--font-body);
      font-size: 0.68rem;
      font-weight: 700;
      cursor: help;
      outline: none;
      text-transform: none;
      letter-spacing: 0;
    }
    .help-tooltip {
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      z-index: 1001;
      width: 260px;
      padding: 0.65rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: rgba(12,12,15,0.98);
      color: var(--dim);
      box-shadow: 0 14px 36px rgba(0,0,0,0.35);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      line-height: 1.35;
      letter-spacing: 0;
      text-align: left;
      text-transform: none;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.12s ease;
    }
    .ranking-games-value {
      display: inline-flex;
      align-items: baseline;
      justify-content: flex-end;
      gap: 2px;
    }
    .ranking-unrated-wrap { gap: 0; }
    .ranking-unrated-count {
      appearance: none;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--dim);
      cursor: help;
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      font-weight: 500;
      line-height: 1;
      outline: none;
      transform: translateY(-0.15em);
    }
    .ranking-unrated-count:focus-visible {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .ranking-unrated-wrap .help-tooltip { white-space: normal; }
    .ranking-table th.col-winrate,
    .ranking-table th.col-draw-factor {
      position: relative;
      z-index: auto;
    }
    @media (min-width: 769px) {
      #all-time-ranking-view-toggle { display: none; }
      #all-time-ranking-table.compact .col-gv { display: table-cell; }
      .th-help-wrap.help-tooltip-opens-right .help-tooltip,
      .th-help-wrap.help-tooltip-opens-left .help-tooltip {
        top: var(--help-tooltip-anchor-y);
        transform: none;
      }
      .th-help-wrap.help-tooltip-opens-right .help-tooltip {
        right: auto;
        left: calc(var(--help-tooltip-anchor-x) + 10px);
      }
      .th-help-wrap.help-tooltip-opens-left .help-tooltip {
        right: calc(100% - var(--help-tooltip-anchor-x) + 10px);
        left: auto;
      }
    }
    .ranking-unrated-wrap.help-tooltip-opens-right .help-tooltip,
    .ranking-unrated-wrap.help-tooltip-opens-left .help-tooltip {
      position: fixed;
      top: var(--ranking-tooltip-top);
      right: auto;
      left: var(--ranking-tooltip-left);
      transform: none;
    }
    table.ranking-table th:hover .help-tooltip,
    .th-help-wrap:hover .help-tooltip,
    .th-help-wrap:focus-within .help-tooltip,
    .th-help-wrap.is-open .help-tooltip {
      opacity: 1;
    }
    .ranking-table td.col-draw-factor {
      white-space: nowrap;
    }
    .draw-factor-muted {
      color: var(--dim);
      font-size: var(--text-xs);
    }
    .ranking-table td.col-form {
      white-space: nowrap;
      text-align: right;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }
    .form-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      color: #000;
      font-family: var(--font-body);
      font-size: 0.72rem;
      font-weight: 700;
      margin-left: 4px;
      cursor: help;
      outline: none;
    }
    .form-chip:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
    .form-chip:first-child { margin-left: 0; }
    .form-win { background: var(--positiv); }
    .form-loss { background: var(--negativ); color: var(--text); }
    .form-win.form-tiebreak { background: color-mix(in srgb, var(--positiv) 35%, orange); }
    .form-loss.form-tiebreak { background: color-mix(in srgb, var(--negativ) 35%, orange); color: #000; }
    .form-recency-0 { opacity: 1; }
    .form-recency-1 { opacity: 0.68; }
    .form-recency-2 { opacity: 0.42; }

    .rn { font-family: var(--font-mono); font-size: var(--text-base); color: var(--text); width: 36px; text-align: left !important; }
    .rank-score {
      color: var(--accent2);
      font-family: var(--font-mono);
      font-size: var(--text-base);
      font-weight: 700;
    }
    .r1 .rank-position { color: var(--gold); font-weight: 700; }
    .r2 .rank-position { color: var(--silver); font-weight: 700; }
    .r3 .rank-position { color: var(--bronze); font-weight: 700; }
    .rank-cell-inner {
      display: inline-flex;
      align-items: baseline;
      gap: 7px;
    }
    .rank-main {
      min-width: 1.2em;
      text-align: right;
    }
    .points-rank-ref {
      display: inline-flex;
      align-items: baseline;
      gap: 4px;
      color: var(--dim);
      font-size: var(--text-xs);
      font-weight: 500;
      white-space: nowrap;
    }
    .points-rank-delta {
      font-weight: 700;
    }
    .points-rank-delta.pos { color: var(--positiv); }
    .points-rank-delta.neg { color: var(--negativ); }
    .points-rank-delta.neu { color: var(--dim); }

    .pname { font-weight: 500; font-size: var(--text-base); }
    .firma-badge {
      display: inline-block; font-size: var(--text-xs); font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      padding: 2px 7px; border-radius: 100px; margin-left: 8px;
    }
    .firma-short { display: none; }
    .th-label-short { display: none; }
    .firma-Envidual   { background: var(--surface2); color: var(--envidual); }
    .firma-Hanako     { background: var(--surface2); color: var(--hanako); }
    .firma-Headsquare { background: var(--surface2); color: rgba(231,7,19,0.7); }

    .elo-val    { font-family: var(--font-mono); font-size: var(--text-base); font-weight: 400; color: var(--text); }
    .num-val    { font-family: var(--font-mono); font-size: var(--text-base); color: var(--text); }
    .pos { color: var(--positiv); }
    .neg { color: var(--negativ); }
    .neu { color: var(--dim); }

    /* ── CHART ── */
    .chart-box {
      margin-bottom: 4rem;
    }
    .filter-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
    .filter-row { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
    .filter-toggle-btns { display: flex; flex-wrap: wrap; flex-direction: column; gap: 6px; }
    .filter-toggle-all { display: flex; gap: 6px; }
    .filter-company-row { display: flex; flex-wrap: wrap; gap: 6px; }
    .fb {
      font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
      padding: 2px 8px; border-radius: 100px; border: 1px solid var(--border);
      background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s;
    }
    .fb.on { background: var(--player-color); color: #000; border-color: transparent; }
    @media (hover: hover) {
      .fb:hover { opacity: 0.7; }
    }
    .fb-selected-icon { display: inline-flex; vertical-align: -2px; margin-left: 4px; }
    .fb-selected-icon svg {
      width: 15px; height: 15px;
      fill: none; stroke: currentColor; stroke-width: 2.4;
    }
    .fb-selected-icon-dot { fill: currentColor; stroke: none; }
    .fb-toggle {
      font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
      padding: 4px 12px; border-radius: 100px; border: 1px solid var(--border);
      background: var(--surface2); color: var(--dim); cursor: pointer;
      transition: all 0.15s; white-space: nowrap;
    }
    .fb-toggle:hover { border-color: var(--accent); color: var(--accent); }
    .fb-company-Envidual   { --company-color: var(--envidual); }
    .fb-company-Hanako     { --company-color: var(--hanako); }
    .fb-company-Headsquare { --company-color: var(--headsquare); }
    .fb-company {
      padding: 2px 8px;
    }
    .fb-company:hover { opacity: .7; border-color: var(--border); color: var(--dim); }
    .fb-company.on { background: color-mix(in srgb, var(--company-color) 60%, var(--text)); border-color: color-mix(in srgb, var(--company-color) 60%, var(--text)); color: var(--bg); }
    .chart-wrap { position: relative; height: 620px; }
    .placement-chart-wrap { position: relative; height: 520px; }
    .chart-custom-tooltip {
      position: absolute;
      z-index: 10;
      max-width: calc(100% - 24px);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.08s ease;
      background: rgba(12,12,15,0.96);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 0.82rem;
      line-height: 1.35;
      padding: 0.7rem 0.8rem;
      box-shadow: 0 14px 36px rgba(0,0,0,0.35);
    }
    .elo-chart-tooltip { width: 260px; }
    .placement-chart-tooltip { width: 220px; }
    .player-profile-chart-tooltip {
      width: auto;
      min-width: 210px;
    }
    .form-custom-tooltip {
      position: fixed;
      z-index: 1000;
      width: 260px;
      max-width: min(260px, calc(100vw - 24px));
    }
    .elo-tooltip-title {
      color: var(--muted);
      font-family: var(--font-body);
      font-size: 0.74rem;
      letter-spacing: 0.04rem;
      margin-bottom: 0.45rem;
    }
    .elo-tooltip-item + .elo-tooltip-item {
      border-top: 1px solid var(--border);
      margin-top: 0.45rem;
      padding-top: 0.45rem;
    }
    .elo-tooltip-name {
      color: var(--text);
      font-weight: 700;
      margin-bottom: 0.2rem;
    }
    .elo-tooltip-main {
      color: var(--text);
      margin-bottom: 0.2rem;
    }
    .elo-tooltip-intervening {
      border-left: 2px solid var(--accent2);
      color: var(--muted);
      margin: 0.35rem 0 0.5rem;
      padding-left: 0.55rem;
    }
    .elo-tooltip-intervening > span {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.68rem;
      margin-bottom: 0.2rem;
      text-transform: uppercase;
    }
    .elo-tooltip-intervening strong { font-family: var(--font-mono); }
    .elo-tooltip-intervening strong.pos { color: var(--green); }
    .elo-tooltip-intervening strong.neg { color: var(--red); }
    .elo-tooltip-delta {
      font-family: var(--font-mono);
      font-weight: 700;
      margin-left: 0.25rem;
    }

    /* ── MATCHES ── */
    .spieltag-group { margin-bottom: 4rem; }
    .spieltag-label {
      display: flex;
      width: 100%;
      justify-content: space-between;
      align-items: baseline;
      gap: 18px;
      font-size: var(--text-sm);
      font-weight: 600; 
      letter-spacing: 0.1rem; 
      text-transform: uppercase;
      color: var(--dim); 
      margin-bottom: 18px; 
    }
    .spieltag-label span:first-child {
      white-space: nowrap;
    }
    .spieltag-label span + span {
      margin-left: auto;
      text-align: right;
    }
    .matchday-break .spieltag-label { margin-bottom: 0; }
    .match-list { display: flex; flex-direction: column; gap: 12px; }
    .final-four-detail-link {
      align-items: center;
      gap: 0.35rem;
      margin-left: auto;
      white-space: nowrap;
    }
    .mc {
      background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
      padding: .9rem 1.5rem;
      display: grid;
      grid-template-columns: 300px 1fr 130px 1fr;
      align-items: center; 
      gap: 24px;
      min-height: 84px;
    }
    :is(#spielplan, #final-four-spielplan) .mc.played .mc-score-detail,
    :is(#spielplan, #final-four-spielplan) .mc.played .mc-result-prob {
      opacity: 0;
      pointer-events: none;
      transition: opacity 160ms ease;
    }
    :is(#spielplan, #final-four-spielplan).played-details-visible .mc.played .mc-score-detail,
    :is(#spielplan, #final-four-spielplan).played-details-visible .mc.played .mc-result-prob {
      opacity: 1;
    }
    @media (min-width: 769px) {
      :is(#spielplan, #final-four-spielplan):has(.mc.played:hover) .mc.played .mc-score-detail,
      :is(#spielplan, #final-four-spielplan):has(.mc.played:hover) .mc.played .mc-result-prob,
      :is(#spielplan, #final-four-spielplan):has(.mc.played:focus-within) .mc.played .mc-score-detail,
      :is(#spielplan, #final-four-spielplan):has(.mc.played:focus-within) .mc.played .mc-result-prob {
        opacity: 1;
      }
    }

    .mc.pending { background: transparent; }
    .mc-meta { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
    .mc-date { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--dim); }
    .mc-team { display: flex; flex-direction: column; gap: 2px; }
    .mc-team-2 { text-align: right; align-items: flex-end; }
    .mc-team.win .mc-players { font-weight: 600; color: var(--text); }
    .mc-team:not(.win) .mc-players { color: var(--muted); }
    .mc-players { font-size: 1.1rem; }
    .mc-player-sep { margin: 0 0.15em; color: var(--muted); font-weight: 400; }
    .mc-score { 
      text-align: center; 
      position: relative; }
    button.mc-score {
      appearance: none;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      padding: 0;
    }
    :is(#spielplan, #final-four-spielplan) .mc.played button.mc-score .mc-score-detail {
      pointer-events: auto;
    }
    button.mc-score:hover :is(.mc-score-main, .mc-prob, .mc-result-prob, .mc-pending-label, .mc-score-detail, .mc-score-details-icon),
    button.mc-score:focus-visible :is(.mc-score-main, .mc-prob, .mc-result-prob, .mc-pending-label, .mc-score-detail, .mc-score-details-icon) {
      color: var(--accent);
    }
    .played .mc-score {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .mc-result-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
    .mc-score-main { font-family: var(--font-heading); font-size: var(--text-heading); letter-spacing: 0.05em; color: var(--text); line-height: 1; }
    .mc-score-detail { 
      font-size: var(--text-sm);
      color: var(--dim); 
      position: absolute;
      width: max-content;
      top: 30px;
    }
    .mc-score-live { color: var(--negativ); white-space: nowrap; width: 100%; }
    .mc-score-live-dot {
      display: inline-block;
      margin-right: 0.3rem;
      animation: live-pulse 1.15s ease-in-out infinite;
      font-size: 0.65em;
      vertical-align: 0.12em;
    }
    .mc-score-result-with-details,
    .mc-pending-label:has(.mc-score-details-icon) {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .mc-score-details-icon {
      display: inline-flex;
      position: static;
      flex: 0 0 auto;
      width: 15px;
      height: 15px;
      margin-left: 5px;
      color: var(--dim);
      transform: none;
    }
    .mc-score-details-icon svg {
      display: block;
      width: 100%;
      height: 100%;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .mc-prob,
    .mc-result-prob { font-size: var(--text-sm); color: var(--dim); }
    .mc-prob { margin-bottom: 4px; }
    .mc-forecast-line {
      display: block;
      position: relative;
      width: 76px;
      height: 4px;
      margin: 0 auto;
      overflow: hidden;
      border: 0;
      border-radius: 999px;
      background: transparent;
    }
    .mc-forecast-line::before,
    .mc-forecast-line::after {
      content: "";
      position: absolute;
      z-index: 0;
      top: 0;
      width: calc(50% - 1px);
      height: 100%;
      border-radius: inherit;
      background: var(--border);
    }
    .mc-forecast-line::before { left: 0; }
    .mc-forecast-line::after { right: 0; }
    .mc-forecast-line > span {
      position: absolute;
      z-index: 1;
      top: 0;
      height: 100%;
      border-radius: inherit;
    }
    .mc-forecast-team-one { right: 50%; background: var(--team-one); }
    .mc-forecast-team-two { left: 50%; background: var(--team-two); }
    .mc-forecast-line.has-both-team-colors .mc-forecast-team-one { right: calc(50% + 1px); }
    .mc-forecast-line.has-both-team-colors .mc-forecast-team-two { left: calc(50% + 1px); }
    .mc-result-prob { min-width: 34px; text-align: center; }
    .match-probability {
      display: inline-grid;
      grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
      align-items: center;
      column-gap: 0.4rem;
    }
    .match-probability-value {
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: normal;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
    }
    .match-probability-separator {
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: normal;
      line-height: 1;
    }
    .mc-pending-label { font-size: var(--text-sm); color: var(--dim); text-align: center; }
    .mc-nr { 
      font-family: var(--font-body);
      font-size: var(--text-sm);
      color: var(--dim);
      text-align: left;
      letter-spacing: 0.03rem;
    }

    .detail-view-dialog {
      inset: 0;
      width: 100vw;
      max-width: none;
      height: 100vh;
      height: 100dvh;
      max-height: none;
      margin: 0;
      overflow: hidden;
      border: 0;
      background: var(--bg);
      color: var(--text);
      padding: 0;
    }
    .detail-view-dialog::backdrop { background: var(--bg); }
    .detail-view-shell {
      height: 100vh;
      height: 100dvh;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
    }
    .detail-view-header {
      position: sticky;
      z-index: 50;
      top: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      min-height: 97px;
      background: color-mix(in srgb, var(--bg) 92%, transparent);
      backdrop-filter: blur(14px);
      margin: 2rem auto 0;
      width: min(calc(100% - 2rem), 1100px);
      padding: 1.5rem 0 0.85rem;
    }
    .detail-view-back { justify-self: start; }
    .detail-view-pager {
      grid-column: 3;
      justify-self: end;
      display: flex;
      gap: 0.4rem;
    }
    .detail-view-pager[hidden] { display: none; }
    .detail-view-step {
      display: inline-grid;
      place-items: center;
      width: 40px;
      min-height: 40px;
      padding: 0;
    }
    .detail-view-step svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .detail-view-step:disabled { opacity: 0.3; cursor: default; }
    .detail-view-swipe-hint { display: none; }
    .detail-view-heading {
      grid-column: 2;
      min-width: 0;
      text-align: center;
    }
    .detail-view-played-order {
      margin-top: 0.1rem;
      color: var(--dim);
      font-size: var(--text-xs);
    }
    .detail-view-heading .sh-meta { font-size: var(--text-sm); margin-top: 0.15rem; color: var(--dim); }
    .detail-view-content {
      width: min(calc(100% - 2rem), 1100px);
      margin: 0 auto;
      padding: 0 0 5rem;
    }
    #final-four-view-switcher {
      position: sticky;
      z-index: 40;
      top: 90px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
      margin: 0 auto 1.5rem;
      padding: 10px 0 0.5rem;
      background-color: var(--bg);
    }
    #detail-view-body {
      display: grid;
      gap: 4rem;
      margin-top: 1rem;
    }
    .live-overview {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
      gap: 4rem;
      align-items: start;
    }
    .live-overview-podium {
      grid-column: 1 / -1;
      min-width: 0;
      overflow: hidden;
    }
    .live-overview-podium .home-season-podium-steps { margin-top: 0; }
    .live-overview-section { min-width: 0; }
    .live-overview-matches {
      display: grid;
      gap: 0.7rem;
    }
    .live-overview-match {
      display: grid;
      gap: 8px;
      padding: 0.5rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      text-align: left;
    }
    .live-overview-match.is-finished { background: var(--surface); }
    .live-overview-match:hover,
    .live-overview-match:focus-visible { border-color: var(--accent); }
    .live-overview-match-meta {
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      position: relative;
      text-align: center;
    }
    .live-overview-live {
      color: var(--negativ);
      font-family: var(--font-body);
      position: absolute;
      right: 0;
    }
    .live-overview-matchup {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 1rem;
    }
    .live-overview-team {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.25rem 0.45rem;
      min-width: 0;
      font-size: var(--text-base);
      font-weight: 500;
      line-height: 1.16;
    }
    .live-overview-team-2 {
      justify-content: flex-end;
      text-align: right;
    }
    .live-overview-team-separator {
      color: var(--muted);
      font-weight: 400;
    }
    .live-overview-match.is-finished .live-overview-team:not(.is-winner) { color: var(--muted); }
    .live-overview-team.is-winner {
      color: var(--text);
      font-weight: 600;
    }
    .live-overview-result {
      display: grid;
      min-width: 74px;
      justify-items: center;
    }
    .live-overview-result strong {
      color: var(--text);
      font-family: var(--font-heading);
      font-size: var(--text-heading);
      font-weight: 400;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .live-overview-probability {
      column-gap: 9px;
      width: 110px;
    }
    .live-overview-score-dot {
      display: inline-block;
      margin-right: 0.3rem;
      animation: live-pulse 1.15s ease-in-out infinite;
      font-size: 0.65em;
      vertical-align: 0.08em;
    }
    .live-overview-table {
      margin-bottom: 0 !important;
    }
    .live-overview-table .player-profile-link {
      color: inherit;
      font: inherit;
    }
    .live-overview-note { line-height: 1.45; }
    .live-overview-prematch-section {
      grid-column: 1 / -1;
      min-width: 0;
    }
    .live-overview-prematch-heading {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      width: fit-content;
      margin-bottom: 0.85rem;
    }
    .live-overview-prematch-heading .widget-label { margin-bottom: 0; }
    .live-overview-prematch-heading .help-tooltip {
      right: auto;
      left: 0;
    }
    .live-overview-prematch-tooltip-paragraph {
      display: block;
      margin-top: 0.65rem;
    }
    .live-overview-prematch-grid {
      --prematch-row-count: 5;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-template-rows: repeat(var(--prematch-row-count), auto);
      gap: 1.5rem 2rem;
    }
    .live-overview-prematch-grid.has-relationships { --prematch-row-count: 6; }
    .live-overview-prematch-player {
      display: grid;
      grid-row: 1 / span var(--prematch-row-count);
      grid-template-rows: subgrid;
      gap: inherit;
      min-width: 0;
      text-align: center;
    }
    .live-overview-prematch-player-1 { grid-column: 1; }
    .live-overview-prematch-player-2 { grid-column: 2; }
    .live-overview-prematch-player-3 { grid-column: 3; }
    .live-overview-prematch-player-4 { grid-column: 4; }
    .live-overview-withdrawn-section {
      grid-column: 1 / -1;
      min-width: 0;
    }
    .live-overview-withdrawn-section > .widget-label { margin-bottom: 0.85rem; }
    .live-overview-prematch-withdrawn {
      display: grid;
      grid-template-columns: minmax(170px, 1.25fr) repeat(4, minmax(0, 1fr));
      align-items: start;
      gap: 0.85rem 1rem;
    }
    .live-overview-prematch-withdrawn-identity {
      display: grid;
      justify-items: center;
      gap: 0.35rem;
      min-width: 0;
      text-align: center;
    }
    .live-overview-prematch-withdrawn .live-overview-prematch-fact {
      align-self: stretch;
      align-content: start;
      padding: 2.2rem 0.35rem 0 1rem;
      border-top: 0;
      border-left: 1px solid var(--border);
    }
    .live-overview-prematch-withdrawn .live-overview-prematch-forecast strong {
      font-size: 2.2rem;
    }
    .live-overview-prematch-card {
      width: 100%;
      height: 100%;
      align-self: stretch;
      color: inherit;
      cursor: pointer;
      font: inherit;
    }
    .live-overview-prematch-fact {
      display: grid;
      align-content: start;
      justify-items: center;
      gap: 0.2rem;
      min-width: 0;
      color: var(--text);
      line-height: 1.35;
    }
    .live-overview-prematch-label {
      color: var(--dim);
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .live-overview-prematch-forecast strong {
      font-family: var(--font-heading);
      font-size: clamp(2.2rem, 4vw, 3.35rem);
      font-weight: 400;
      letter-spacing: 0.03em;
      line-height: 1;
    }
    .live-overview-prematch-history {
      display: grid;
      grid-template-columns: repeat(6, 32px);
      justify-content: center;
      gap: 0.35rem;
    }
    .live-overview-prematch-withdrawn .live-overview-prematch-history {
      grid-template-columns: repeat(3, 32px);
    }
    .live-overview-prematch-relationships {
      display: grid;
      justify-items: center;
      gap: 0.55rem;
      width: 100%;
    }
    .live-overview-prematch-relationships > div {
      display: grid;
      justify-items: center;
      gap: 0.1rem;
    }
    .live-overview-prematch-relationships .player-profile-link {
      border: 0;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-weight: 600;
      padding: 0;
    }
    .live-overview-prematch-relationships .player-profile-link:hover,
    .live-overview-prematch-relationships .player-profile-link:focus-visible { color: var(--accent); }
    .live-overview-prematch-relationships small,
    .live-overview-prematch-empty { color: var(--dim); }
    .live-overview-prematch-status {
      padding: 1rem 1.1rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      color: var(--dim);
    }
    .live-overview-poll-section {
      grid-column: 1 / -1;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
    .live-overview-poll-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .live-overview-poll-heading .widget-label { margin-bottom: 0; }
    .live-overview-poll-heading .sh-meta { width: 41%; text-align: right; }
    .live-overview-poll-choices {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .live-overview-poll-choice { min-height: 88px; }
    .live-overview-poll-swap {
      position: relative;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      min-height: 88px;
      animation: live-overview-poll-slide-in 240ms ease-out both;
    }
    @keyframes live-overview-poll-slide-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .live-overview-poll-result {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
      padding-top: 0.25rem;
    }
    .live-overview-poll-segments {
      display: grid;
      align-items: end;
      gap: clamp(3px, 0.6vw, 6px);
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
    .live-overview-poll-segment {
      container: live-overview-poll-segment / inline-size;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(1.5rem, auto) 30px;
      min-width: 0;
      gap: 0.4rem;
      text-align: center;
    }
    .live-overview-poll-name {
      position: relative;
      z-index: 1;
      justify-self: center;
      width: max-content;
      max-width: none;
      font-size: var(--text-sm);
      line-height: 1.25;
      white-space: nowrap;
    }
    .live-overview-poll-name-short { display: none; }
    @container live-overview-poll-segment (max-width: 80px) {
      .live-overview-poll-name-full { display: none; }
      .live-overview-poll-name-short { display: inline; }
    }
    .live-overview-poll-segment:first-child.is-poll-name-overflowing .live-overview-poll-name {
      justify-self: start;
      text-align: left;
    }
    .live-overview-poll-segment:last-child.is-poll-name-overflowing .live-overview-poll-name {
      justify-self: end;
      text-align: right;
    }
    .live-overview-poll-bar {
      display: grid;
      place-items: center;
      box-sizing: border-box;
      min-width: 0;
      overflow: visible;
      border: 1px solid var(--accent);
      border-radius: 0;
      background: color-mix(in srgb, var(--accent) 5%, var(--surface));
      color: #fff;
      font-size: var(--text-xs);
      letter-spacing: 0.05rem;
    }
    .live-overview-poll-percentage { display: none; }
    .live-overview-poll-segment:first-child .live-overview-poll-bar {
      border-radius: 8px 0 0 8px;
    }
    .live-overview-poll-segment:last-child .live-overview-poll-bar {
      border-radius: 0 8px 8px 0;
    }
    .live-overview-poll-segment:only-child .live-overview-poll-bar {
      border-radius: 8px;
    }
    .live-overview-poll-change {
      display: block;
      position: absolute;
      bottom: 0;
      left: 50%;
      margin: 0;
      transform: translateX(-50%);
    }
    .live-overview-poll-status,
    .live-overview-poll-message {
      padding: 1rem 1.1rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      color: var(--dim);
      text-align: center;
    }
    .live-overview-poll-message { margin-top: 0.8rem; }
    .match-detail-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.75rem;
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-xs);
    }
    .match-detail-matchup {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) minmax(0, 1fr);
      align-items: center;
      gap: 1.5rem;
    }
    .match-detail-team {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.9rem;
      min-width: 0;
    }
    .match-detail-player {
      display: grid;
      position: relative;
      min-width: 0;
      justify-items: center;
      gap: 0.45rem;
      padding: 0.9rem 0.5rem 0.75rem;
      border: 1px solid transparent;
      border-radius: 9px;
      background: var(--surface2);
      text-align: center;
      border: 1px solid var(--border);
    }
    .match-detail-player:hover { border-color: var(--accent); opacity: 1; }
    .match-detail-player-photo {
      display: grid;
      width: 68px;
      height: 68px;
      place-items: center;
      overflow: hidden;
      border-radius: 50%;
      background: var(--bg);
    }
    .match-detail-player-image {
      display: block;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
    }
    .match-detail-player-image[hidden],
    .match-detail-player-emoji[hidden] { display: none; }
    .match-detail-player-emoji {
      font-size: var(--text-heading);
      line-height: 1;
    }
    .match-detail-player-name {
      max-width: 100%;
      overflow: hidden;
      font-size: var(--text-base);
      font-weight: 500;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .match-detail-player-elo {
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
    }
    .live-ticker-serve {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      display: grid;
      color: var(--accent);
      font-size: var(--text-heading);
      line-height: 100%;
    }
    .match-detail-scoreboard {
      display: grid;
      justify-items: center;
      gap: 0;
    }
    .match-detail-score-label {
      color: var(--dim);
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 0.35rem;
    }
    .match-detail-score,
    .live-ticker-points,
    .live-ticker-game-score {
      color: var(--text);
      font-family: var(--font-heading);
      font-weight: 400;
      letter-spacing: 0.05em;
      line-height: 1;
    }
    .match-detail-score { font-size: clamp(3.6rem, 8vw, 4.8rem); }
    .match-detail-probability :is(.match-probability-value, .match-probability-separator) {
      font-family: var(--font-heading);
      font-size: clamp(2rem, 4vw, 3rem);
    }
    .live-ticker-points {
      color: var(--accent);
      font-size: 1.8rem;
    }
    .match-detail-status {
      color: var(--dim);
      font-size: var(--text-xs);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .match-detail-status.is-live { color: var(--negativ); }
    .match-detail-status.is-finished { color: var(--positiv); }
    .live-ticker-mode {
      color: var(--dim);
      font-size: var(--text-xs);
      letter-spacing: 0.05em;
    }
    .match-detail-score-note {
      color: var(--muted);
      font-size: var(--text-sm);
      text-align: center;
    }
    .live-ticker-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      padding: 0.9rem 1.1rem;
      border-top: 1px solid var(--border);
      color: var(--dim);
      font-size: var(--text-sm);
    }
    .live-ticker-history-section { margin-top: 2rem; }
    .live-ticker-history {
      display: grid;
      border-top: 1px solid var(--border);
    }
    .live-ticker-game {
      display: grid;
      align-content: center;
      gap: 0.45rem;
      min-height: 72px;
      border-bottom: 1px solid var(--border);
      padding: 0.8rem 1.1rem;
    }
    .live-ticker-game-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 1rem;
      width: min(100%, 620px);
      margin: 0 auto;
    }
    .live-ticker-game-server {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      min-width: 0;
      color: var(--dim);
      font-size: var(--text-xs);
      font-weight: 500;
      white-space: nowrap;
    }
    .live-ticker-game-server-1 { justify-self: end; text-align: right; }
    .live-ticker-game-server-2 { justify-self: start; text-align: left; }
    .live-ticker-game-server span { color: var(--accent); }
    .live-ticker-game-server strong {
      color: var(--negativ);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .live-ticker-game-score {
      font-size: var(--text-heading);
      text-align: center;
    }
    .live-ticker-game-points {
      color: var(--dim);
      font-size: 0.8rem;
      font-weight: 500;
      line-height: 1.6;
      text-align: center;
    }
    .live-ticker-empty {
      border-top: 1px solid var(--border);
      color: var(--muted);
      padding: 3.6rem 1.25rem;
      text-align: center;
    }

    /* ── CUP BRACKET ── */
    .cup-bracket {
      display: grid;
      gap: 24px;
      padding: 8px 0 32px;
    }
    .cup-trophy {
      width: 132px;
      margin: 0 auto -8px;
      color: var(--accent);
      filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 20%, transparent));
    }
    .cup-trophy svg { display: block; width: 100%; height: auto; overflow: visible; }
    .cup-trophy-glow {
      fill: color-mix(in srgb, var(--accent) 9%, transparent);
      stroke: none;
    }
    .cup-trophy-line {
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 3;
    }
    .cup-trophy-accent { fill: var(--accent2); }
    .cup-round {
      display: grid;
      gap: 12px;
      width: 100%;
      margin: 0 auto;
    }
    .cup-round-final { max-width: 360px; }
    .cup-round-semifinal { max-width: 780px; }
    .cup-round-quarterfinal { max-width: 1100px; }
    .cup-round-title {
      color: var(--dim);
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-align: center;
      text-transform: uppercase;
    }
    .cup-round-content { display: contents; }
    .cup-round-final .cup-trophy { order: -1; }
    .cup-round-matches { display: grid; gap: 12px; }
    .cup-round-final .cup-round-matches { grid-template-columns: 1fr; }
    .cup-round-semifinal .cup-round-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cup-round-quarterfinal .cup-round-matches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cup-match-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    }
    .cup-match-label {
      padding: 8px 12px;
      border-bottom: 1px solid var(--border);
      color: var(--accent);
      font-family: var(--font-mono);
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-align: center;
      text-transform: uppercase;
    }
    .cup-match-team {
      display: flex;
      min-height: 44px;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 12px;
      color: var(--dim);
      font-size: var(--text-base);
      text-align: center;
    }
    .cup-match-team .mc-player-name { min-width: 0; }
    .cup-match-team.is-winner { color: var(--text); font-weight: 700; }
    .cup-match-team.is-winner::before { content: '✓'; color: var(--accent); }
    .cup-match-team.is-loser { opacity: 0.55; }
    .cup-match-status {
      display: flex;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 7px 10px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.12);
      color: var(--dim);
      font-size: 0.76rem;
      text-align: center;
    }
    .cup-match-status strong {
      color: var(--text);
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 400;
      letter-spacing: 0.05em;
    }
    .cup-redraw {
      display: flex;
      width: min(82%, 880px);
      align-items: center;
      gap: 14px;
      margin: 0 auto;
      color: var(--dim);
    }
    .cup-redraw-line {
      height: 1px;
      flex: 1;
      background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, var(--border)));
    }
    .cup-redraw-line:last-child { transform: scaleX(-1); }
    .cup-redraw-label {
      flex: 0 0 auto;
      padding: 6px 12px;
      border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
      border-radius: 999px;
      background: color-mix(in srgb, var(--surface) 88%, transparent);
      font-size: var(--text-xs);
      letter-spacing: 0.04em;
      text-align: center;
    }

    @media (max-width: 768px) {
      .cup-bracket {
        display: flex;
        width: 100%;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0 0 20px;
        scroll-snap-type: x mandatory;
        scrollbar-color: var(--accent) var(--surface);
        -webkit-overflow-scrolling: touch;
      }
      .cup-round-final .cup-trophy {
        order: 0;
        width: 104px;
        margin: 0 auto -8px;
      }
      .cup-round,
      .cup-round-final,
      .cup-round-semifinal,
      .cup-round-quarterfinal {
        display: flex;
        flex: 0 0 80%;
        flex-direction: column;
        max-width: none;
        scroll-snap-align: start;
      }
      .cup-round-content {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
      }
      .cup-round-quarterfinal { order: 1; }
      .cup-round-semifinal { order: 3; }
      .cup-round-final { order: 5; }
      .cup-round-final .cup-round-content { flex: 0.8 1 auto; }
      .cup-round-semifinal .cup-round-matches,
      .cup-round-quarterfinal .cup-round-matches { grid-template-columns: 1fr; }
      .cup-match-team { min-height: 52px; }
      .cup-redraw {
        flex: 0 0 116px;
        flex-direction: column;
        padding: 32px 8px 0;
      }
      .cup-redraw-quarterfinal { order: 2; }
      .cup-redraw-semifinal { order: 4; }
      .cup-redraw-line {
        width: 1px;
        height: auto;
        flex: 1 1 0;
        background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 55%, var(--border)));
      }
      .cup-redraw-line:last-child { transform: scaleY(-1); }
      .cup-redraw-label {
        border-radius: 16px;
      }
    }

    /* ── CALCULATOR ── */
    .calculator-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
      gap: 4rem;
      align-items: start;
    }
    .calculator-ranking-panel {
      position: sticky;
      top: 78px;
    }
    .calculator-mobile-game-area {
      display: contents;
    }
    .calculator-match-column {
      min-width: 0;
    }
    .calculator-mobile-mini-ranking {
      display: none;
    }
    .calculator-autotip-bar {
      margin-bottom: 1rem;
    }
    .calculator-autotip-bar[hidden] { display: none; }
    .calculator-autotip-switch {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 7px 14px 7px 9px;
      cursor: pointer;
      color: var(--dim);
      font: inherit;
      font-size: var(--text-sm);
      font-weight: 600;
      transition: border-color 0.15s, color 0.15s;
    }
    .calculator-autotip-switch:hover { border-color: var(--surface2); }
    .calculator-autotip-track {
      position: relative;
      width: 34px;
      height: 20px;
      border-radius: 999px;
      background: var(--surface2);
      transition: background 0.18s;
      flex: none;
    }
    .calculator-autotip-knob {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--dim);
      transition: transform 0.18s, background 0.18s;
    }
    .calculator-autotip-switch.is-on {
      color: var(--accent);
      border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    }
    .calculator-autotip-switch.is-on .calculator-autotip-track { background: var(--accent); }
    .calculator-autotip-switch.is-on .calculator-autotip-knob {
      background: #000;
      transform: translateX(14px);
    }
    .calculator-match-list {
      display: grid;
      gap: 10px;
    }
    .calculator-match-card {
      display: grid;
      gap: 0.35rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: .7rem 1rem;
      background: transparent;
    }
    .calculator-match-card.calculator-match-complete {
      background: var(--surface);
      border-color: var(--border);
    }
    .calculator-match-card.viewer-match {
      border-color: var(--accent2);
    }
    .calculator-match-card.calculator-match-active:not(.calculator-match-complete) {
      border-color: var(--accent);
    }
    .calculator-match-head {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      min-height: 20px;
    }
    .calculator-match-meta {
      font-size: var(--text-sm);
      color: var(--dim);
      white-space: nowrap;
    }
    .calculator-match-teams {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(86px, auto) minmax(0, 1fr);
      gap: 12px;
      align-items: center;
    }
    .calculator-match-team {
      font-size: var(--text-base);
      font-weight: 500;
      line-height: 1.22;
      min-width: 0;
    }
    .calculator-match-team-2 {
      text-align: right;
    }
    .calculator-live-result {
      min-width: 86px;
      text-align: center;
    }
    .calculator-live-result .mc-score-main {
      font-size: 1.85rem;
    }
    .calculator-live-result .calculator-probability {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--dim);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0;
      line-height: 1;
      min-height: 1.85rem;
    }
    .calculator-probability-button {
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font: inherit;
      font-weight: 600;
      margin: 0;
      padding: 5px 3px;
      touch-action: manipulation;
    }
    .calculator-probability-button:hover { color: var(--accent); }
    .calculator-probability-button:focus-visible {
      border-radius: 4px;
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }
    .calculator-score-line {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      max-width: 100%;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: thin;
    }
    .score-counter-pair {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      gap: 4px;
      color: var(--dim);
      font-family: var(--font-mono);
    }
    .score-counter-pair.score-counter-pair-active .score-counter-field {
      box-shadow: inset 0 0 0 1px var(--accent);
    }
    .calculator-tiebreak-line {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      max-width: 100%;
    }
    .calculator-tiebreak-line[hidden] { display: none; }
    .calculator-set-separator {
      flex: 0 0 auto;
      color: var(--dim);
      font-family: var(--font-mono);
      font-size: var(--text-base);
    }
    .score-counter-field {
      display: inline-grid;
      grid-template-columns: 22px 34px 22px;
      align-items: center;
      flex: 0 0 auto;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
    }
    .score-counter-step {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 34px;
      border: 0;
      background: transparent;
      color: var(--dim);
      font-family: var(--font-mono);
      font-size: 1.02rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .score-counter-step:first-child {
      border-radius: 999px 0 0 999px;
    }
    .score-counter-step:last-child {
      border-radius: 0 999px 999px 0;
    }
    .score-counter-step:hover {
      background: rgba(255,255,255,0.08);
      color: var(--accent);
    }
    .score-counter-step:disabled {
      cursor: not-allowed;
    }
    .score-counter-separator {
      color: var(--dim);
      font-family: var(--font-mono);
      font-size: var(--text-base);
    }
    .score-counter-field input {
      width: 34px;
      min-width: 0;
      height: 34px;
      min-height: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      text-align: center;
      outline: none;
      padding: 0;
      touch-action: manipulation;
      appearance: textfield;
      -moz-appearance: textfield;
    }
    .score-counter-field input::-webkit-inner-spin-button,
    .score-counter-field input::-webkit-outer-spin-button {
      margin: 0;
      appearance: none;
      -webkit-appearance: none;
    }
    .score-counter-field input:focus {
      color: var(--accent);
      box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 65%, transparent);
    }
    .calculator-status {
      color: var(--muted);
      font-size: var(--text-xs);
      line-height: 1.35;
      min-width: 0;
      text-align: right;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .calculator-status.complete { color: var(--positiv); }
    .calculator-status.invalid { color: var(--negativ); }
    .calculator-status.partial { color: var(--accent); }
    table.calculator-ranking-table {
      table-layout: fixed;
      min-width: 0;
      margin-bottom: 0;
    }
    table.calculator-ranking-table th,
    table.calculator-ranking-table td {
      padding-left: 12px;
      padding-right: 12px;
    }
    table.calculator-ranking-table th {
      padding-top: 8px;
      padding-bottom: 8px;
    }
    table.calculator-ranking-table td {
      padding-top: 8px;
      padding-bottom: 8px;
    }
    .ranking-row { transform-origin: center; }
    .mc,
    .calculator-ranking-row,
    .calculator-mini-rank-row {
      transform-origin: center;
      will-change: transform;
    }
    table.calculator-ranking-table tbody tr.calculator-active-match-player td {
      background: color-mix(in srgb, var(--accent) 14%, transparent);
    }
    table.calculator-ranking-table tbody tr.calculator-active-match-player .pname {
      color: var(--text);
    }
    table.calculator-ranking-table tbody tr.calculator-active-match-player.viewer-highlight .pname {
      color: var(--accent2);
    }
    table.rt.calculator-ranking-table .col-rank { width: 40px; text-align: right; }
    table.rt.calculator-ranking-table .col-name { width: auto; }
    table.rt.calculator-ranking-table .col-games,
    table.rt.calculator-ranking-table .col-points { width: 74px; }
    table.rt.calculator-ranking-table .col-wins { width: 64px; }
    table.rt.calculator-ranking-table .col-gv,
    table.rt.calculator-ranking-table .col-diff { width: 56px; }

    @media (max-width: 768px) {
      .detail-view-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        min-height: 94px;
        margin-top: 1.5rem;
        padding: 1.5rem 0 0.65rem;
        width: calc(100% - 1.5rem);
      }
      .detail-view-back {
        min-height: 36px;
        padding: 0.4rem 0.65rem;
      }
      .detail-view-pager {
        position: relative;
        gap: 0.3rem;
      }
      .detail-view-step {
        width: 36px;
        min-height: 36px;
      }
      /* Mobil zeigen die Pfeile nur an, dass gewischt werden kann; der Hinweis überlagert sie. */
      .detail-view-pager .detail-view-step {
        opacity: 0.25;
        pointer-events: none;
      }
      .detail-view-swipe-hint {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        pointer-events: none;
        color: var(--text);
      }
      .detail-view-swipe-hint svg {
        width: 34px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        animation: detail-view-swipe-nudge 1.6s ease-in-out 0.4s 2;
      }
      @keyframes detail-view-swipe-nudge {
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
      }
      @media (prefers-reduced-motion: reduce) {
        .detail-view-swipe-hint svg { animation: none; }
      }
      .detail-view-content {
        width: calc(100% - 1.5rem);
      }
      #final-four-view-switcher {
        top: 94px;
        gap: 4px;
        margin-bottom: 1.25rem;
        padding: 0.35rem;
      }
      .hero {
        padding: 1.35rem 1rem 0.85rem;
      }
      .hero-eyebrow {
        white-space: nowrap;
      }
      .hero-topbar {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 0.65rem;
      }
      .context-actions { gap: 5px; width: 100%; }
      .context-link { font-size: 0.75rem; }
      .secondary-button--dropdown::after { right: 0.65rem; }
      .viewer-combobox::after { right: 0.65rem; }
      .season-menu {
        width: min(240px, calc(100vw - 1.5rem));
        max-height: 420px;
      }
      .hero-title-row { gap: 0.75rem; }
      .hero h1 { flex: 1 1 auto; min-width: 0; }
      .hero-actions { gap: 5px; }
      .site-nav {
        margin-bottom: 1.25rem;
        padding: 0.35rem 1rem;
      }
      .viewer-label-full { display: none; }
      .viewer-label-short { display: inline; }
      .viewer-menu {
        width: min(260px, calc(100vw - 1.5rem));
        max-height: 420px;
      }
      .viewer-split-button .secondary-button {
      min-width: 90px;
      }
      main {
        padding-left: 1rem; 
        padding-right: 1rem; 
      }
      .sh-with-control {
        align-items: flex-start;
        gap: 0.8rem;
      }
      #ranking-profile-main > .sh-with-control,
      #partien > .sh-with-control,
      #tippen > .sh-with-control {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem 0.8rem;
        margin-bottom: 1.5rem;
      }
      #rangliste .sh-heading,
      #partien .sh-heading,
      #tippen .sh-heading {
        grid-column: 1;
        grid-row: 1;
      }
      #ranking-view-toggle {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
      }
      #ranking-sort-toggle,
      #match-sort-toggle,
      #prediction-sort-toggle {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
      }
      #match-scope-toggle {
        grid-column: 2;
        grid-row: 1;
      }
      .all-time-ranking > .sh-with-control {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.8rem;
        justify-content: center;
      }
      #all-time-ranking-sort-toggle {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
      }
      .all-time-ranking > .sh-with-control .sh-heading {
        flex: 1 1 0;
        min-width: 0;
      }
      .all-time-ranking-controls { display: contents; }
      #all-time-ranking-scope-toggle {
        order: 2;
      }
      #all-time-ranking-scope-toggle button { flex: 1; }
      .sh-heading {
        flex-wrap: wrap;
        row-gap: 0.2rem;
      }
      .match-scope-toggle button {
        padding: 0.32rem 0.6rem;
        font-size: var(--text-xs);
      }
      .home-grid,
      .stats-grid,
      .info-layout { grid-template-columns: 1fr; }
      .qualification-flow {
        grid-template-columns: minmax(48px, 0.72fr) 16px minmax(92px, 1.35fr) 16px minmax(82px, 0.9fr);
        gap: 5px;
      }
      .home-article-preview {
        position: relative;
        max-height: 320px;
        overflow: hidden;
      }
      .article-newspaper-masthead {
        font-size: 2.6rem;
      }
      .article-card h3 { font-size: 2rem; padding: 0; }
      .home-article-preview::after {
        content: "";
        position: absolute;
        z-index: 2;
        left: 0;
        right: 0; 
        bottom: 0;
        height: 96px;
        background: linear-gradient(to bottom, rgba(7,8,12,0), var(--surface));
        pointer-events: none;
      }
      .home-article-preview.expanded {
        max-height: none;
      }
      .home-article-preview.expanded::after {
        display: none;
      }
      .article-readmore { display: inline-flex; }
      .info-layout,
      .info-layout > *,
      .info-menu,
      .info-menu-toggle {
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }
      .info-layout > .info-menu-card {
        position: static;
      }
      .info-menu-desktop-label { display: none; }
      .info-menu-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        border: 0;
        background: transparent;
        color: var(--text);
        cursor: pointer;
        font-family: var(--font-body);
        font-size: var(--text-sm);
        font-weight: 600;
        letter-spacing: 0.1rem;
        text-align: left;
        text-transform: uppercase;
      }
      .info-menu-toggle { padding: 0.85rem 0.15rem 0.85rem 0; justify-content: center; gap: 16px; }
      .info-menu-toggle:focus-visible {
        outline: 2px solid var(--accent2);
        outline-offset: 2px;
      }
      .info-menu {
        grid-template-rows: 0fr;
        visibility: hidden;
        opacity: 0;
        transition: grid-template-rows 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
      }
      .info-menu-card.is-expanded .info-menu {
        grid-template-rows: 1fr;
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
      }
      .info-menu-card.is-expanded > .info-menu-toggle .info-menu-chevron {
        transform: rotate(225deg);
      }
      .info-menu-list {
        min-height: 0;
        overflow: hidden;
      }
      .info-menu-subitems {
        display: none;
      }
      .ranking-wrap { margin-left: 0; margin-right: 0; }
      table.rt { min-width: 500px; }
      .final-four-ranking-wrap,
      .live-overview-ranking-wrap { overflow-x: hidden; }
      table.rt.final-four-table,
      table.rt.final-four-calculator-ranking-table,
      table.rt.live-overview-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
      }
      table.rt.final-four-table .col-elo { display: none; }
      table.rt.final-four-table .col-rank,
      table.rt.final-four-calculator-ranking-table .col-rank,
      table.rt.live-overview-table .col-rank {
        width: 42px;
        padding-left: 12px;
        padding-right: 4px;
      }
      table.rt.final-four-table .col-name,
      table.rt.final-four-calculator-ranking-table .col-name,
      table.rt.live-overview-table .col-name {
        width: auto;
        overflow: hidden;
      }
      table.rt.final-four-table .col-wins,
      table.rt.final-four-calculator-ranking-table .col-wins,
      table.rt.live-overview-table .col-wins,
      table.rt.final-four-table .col-diff,
      table.rt.final-four-calculator-ranking-table .col-diff,
      table.rt.live-overview-table .col-diff {
        width: 54px;
      }
      table.rt.final-four-table .col-gv,
      table.rt.final-four-calculator-ranking-table .col-gv,
      table.rt.live-overview-table .col-gv {
        width: 62px;
      }
      .final-four-table th:not(.col-rank):not(.col-name),
      .final-four-table td:not(.col-rank):not(.col-name),
      .final-four-calculator-ranking-table th:not(.col-rank):not(.col-name),
      .final-four-calculator-ranking-table td:not(.col-rank):not(.col-name),
      .live-overview-table th:not(.col-rank):not(.col-name),
      .live-overview-table td:not(.col-rank):not(.col-name) {
        padding-left: 4px;
        padding-right: 4px;
      }
      .final-four-table .pname,
      .final-four-calculator-ranking-table .pname,
      .live-overview-table .pname {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ranking-table {
        --rank-col-left: 0px;
        --name-col-left: 70px;
        --mobile-rank-col-width: 70px;
      }
      .ranking-table[data-ranking-sort="points"] {
        --name-col-left: 42px;
        --mobile-rank-col-width: 42px;
      }
      .ranking-table.compact {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
      }
      .ranking-table.compact .col-games,
      .prediction-ranking-table.compact .col-passive,
      .prediction-ranking-table.compact .col-wins,
      .ranking-table.compact .col-points {
        width: 58px;
        min-width: 58px;
      }
      #all-time-ranking-table.compact .col-games,
      #all-time-ranking-table.compact .col-points,
      #all-time-ranking-table.compact .col-average-points {
        width: 46px;
        min-width: 46px;
      }
      #all-time-ranking-table.compact .firma-badge { display: none; }
      #all-time-ranking-table.compact .th-label-full { display: none; }
      #all-time-ranking-table.compact .th-label-short { display: inline; }
      #all-time-ranking-table.compact th { white-space: nowrap; }
      .ranking-table.compact .col-diff {
        width: 40px;
        min-width: 40px;
      }
      .ranking-table.expanded {
        width: max-content;
        min-width: 100%;
        table-layout: auto;
      }
      .ranking-table.compact .col-wins,
      .ranking-table.compact .col-elo {
        display: none;
      }
      .prediction-ranking-table.compact .col-passive { display: none; }
      .prediction-ranking-table.compact .col-bonus { display: none; }
      .prediction-ranking-table.compact .col-wins { display: table-cell; }
      .ranking-table.expanded .firma-badge {
        display: none;
      }
      .ranking-table.expanded th,
      .ranking-table.expanded td {
        white-space: nowrap;
      }
      .ranking-table .col-rank { width: var(--mobile-rank-col-width); }
      table.rt .col-name { width: auto; }
      table.rt .col-games,
      table.rt .col-passive,
      table.rt .col-bonus,
      table.rt .col-points,
      table.rt .col-elo,
      table.rt .col-winrate { min-width: 64px; }
      table.rt .col-form { min-width: 80px; }
      table.rt .col-wins { min-width: 60px; }
      table.rt .col-diff { min-width: 40px;}
      table.rt .col-winrate { min-width: 84px; }
      table.rt .col-gv { min-width: 76px; }
      table.rt .col-draw-factor { min-width: 150px; }
      .ranking-table.compact th,
      .ranking-table.compact td {
        overflow: hidden;
      }
      .ranking-table.compact td.col-games { overflow: visible; }
      .ranking-table.compact th:not(.col-rank):not(.col-name) {
        padding-left: 4px;
        padding-right: 4px;
      }
      .ranking-table.compact .col-name {
        width: auto;
        min-width: 0;
      }
      .ranking-table.compact .player-cell-inner {
        display: flex;
        width: 100%;
        max-width: 100%;
      }
      .ranking-table.compact .pname {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ranking-table.compact .firma-badge {
        flex: 0 0 auto;
      }
      .ranking-table.expanded .col-games,
      .ranking-table.expanded .col-wins,
      .ranking-table.expanded .col-points,
      .ranking-table.expanded .col-gv,
      .ranking-table.expanded .col-diff,
      .ranking-table.expanded .col-elo,
      .ranking-table.expanded .col-average-points,
      .ranking-table.expanded .col-form,
      .ranking-table.expanded .col-winrate,
      .ranking-table.expanded .col-draw-factor { width: 1%; }
      table.rt th { padding: 8px 4px; letter-spacing: 0.09em; }
      table.ranking-table th {
        font-size: var(--text-xs);
        letter-spacing: 0.06em;
      }
      table.rt td { padding: 8px 4px; }
      .ranking-table tbody tr,
      .ranking-table tbody td {
        height: 36px;
      }
      .ranking-table td.col-form {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
      }
      .form-chip {
        width: 18px;
        height: 18px;
        font-size: 0.64rem;
        margin-left: 2px;
      }
      .ranking-table .col-rank {
        width: var(--mobile-rank-col-width);
        min-width: var(--mobile-rank-col-width);
        max-width: var(--mobile-rank-col-width);
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 4px;
      }
      .ranking-table.expanded .col-rank,
      .ranking-table.expanded .col-name {
        position: sticky;
        z-index: 4;
        background: var(--bg);
      }
      .ranking-table.expanded .col-rank { left: var(--rank-col-left); }
      .ranking-table.expanded .col-name {
        left: var(--name-col-left);
        padding-left: 8px;
        width: max-content;
        min-width: max-content;
      }
      .ranking-table.expanded thead .col-rank,
      .ranking-table.expanded thead .col-name {
        z-index: 6;
        background: var(--bg);
      }
      .ranking-table.expanded tbody tr:nth-child(even) .col-rank,
      .ranking-table.expanded tbody tr:nth-child(even) .col-name {
        background: var(--row-alt);
      }
      .ranking-table.expanded tbody tr:hover .col-rank,
      .ranking-table.expanded tbody tr:hover .col-name {
        background: var(--surface);
      }
      .ranking-table.expanded tbody tr.viewer-highlight .col-rank,
      .ranking-table.expanded tbody tr.viewer-highlight .col-name {
        background: color-mix(in srgb, var(--accent2) 20%, var(--bg));
      }
      .ranking-table.expanded tbody tr.profile-open-highlight .col-rank,
      .ranking-table.expanded tbody tr.profile-open-highlight .col-name {
        background: color-mix(in srgb, var(--accent) 16%, var(--bg));
      }
      .help-tooltip {
        right: 0;
        left: auto;
        width: min(190px, calc(100vw - 32px));
        white-space: normal;
      }
      .ranking-table th.col-winrate .help-tooltip,
      .ranking-table th.col-draw-factor .help-tooltip {
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        transform: none;
      }
      .sh-title-with-help .help-tooltip {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
      }
      .ranking-table[data-ranking-sort="points"] .col-rank {
        padding-right: 2px;
      }
      .company-ranking-table .col-rank,
      .calculator-ranking-table .col-rank {
        padding-left: 12px !important;
      }
      .points-rank-ref {
        gap: 3px;
        font-size: 0.64rem;
      }
      .pname { font-size: var(--text-base); white-space: nowrap; }
      .firma-badge {
        font-size: var(--text-xs);
        letter-spacing: 0.04em;
        padding: 1px 5px;
        margin-left: 5px;
        vertical-align: 0.08em;
      }
      .firma-full { display: none; }
      .firma-short { display: inline; }
      .filter-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }
      .filter-toggle-btns {
        width: 100%;
      }
      .filter-row {
        width: 100%;
        flex: none;
      }
      .chart-custom-tooltip {
        max-width: calc(100vw - 32px);
        min-width: min(260px, calc(100vw - 32px));
      }
      .mc {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas:
          "meta meta meta"
          "team1 score team2";
        gap: 8px 10px;
        padding: 1rem 0.95rem;
      }
      .mc-meta { grid-area: meta; justify-content: center; gap: 12px; }
      .mc-team-1 { grid-area: team1; min-width: 0; }
      .mc-score { 
        grid-area: score; 
      }
      .mc-team-2 { grid-area: team2; min-width: 0; }
      .mc-players { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; }
      .mc-players .mc-player-sep { display: none; }
      .mc-score-main { font-size: var(--text-heading); }
      .mc-prob,
      .mc-result-prob { font-size: var(--text-sm); white-space: nowrap; }
      .mc-result-row { gap: 7px; }
      .mc-result-prob { min-width: 30px; }
      .live-overview {
        grid-template-columns: 1fr;
      }
      .live-overview-matchup { gap: 0.6rem; }
      .live-overview-match { padding: 0.5rem 0.85rem; }
      .live-overview-team {
        display: grid;
        gap: 0.1rem;
      }
      .live-overview-team-2 { justify-content: stretch; }
      .live-overview-team-separator { display: none; }
      .live-overview-result { min-width: 78px; }
      .live-overview-prematch-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 4rem;
      }
      .live-overview-prematch-player,
      .live-overview-prematch-player-1,
      .live-overview-prematch-player-2,
      .live-overview-prematch-player-3,
      .live-overview-prematch-player-4 {
        grid-column: 1;
        grid-row: auto;
        grid-template-rows: none;
        gap: 1.5rem;
      }
      .live-overview-prematch-withdrawn {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
      }
      .live-overview-prematch-withdrawn-identity {
        grid-column: 1;
      }
      .live-overview-prematch-withdrawn .live-overview-prematch-fact {
        padding: 0;
        border-left: 0;
      }
      .live-overview-prematch-withdrawn .live-overview-prematch-history {
        grid-template-columns: repeat(6, 32px);
      }
      .live-overview-prematch-heading .help-tooltip {
        right: auto;
        left: 0;
        transform: none;
      }
      .live-overview-prematch-forecast strong { font-size: 2.8rem; }
      .live-overview-poll-section { margin-top: 2.5rem; }
      .live-overview-poll-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .live-overview-poll-swap.is-result {
        display: grid;
        align-items: center;
      }
      .live-overview-poll-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
      }
      .live-overview-poll-segment {
        grid-template-rows: minmax(1.4rem, auto) 28px minmax(1.2rem, auto);
        gap: 0.35rem;
      }
      .live-overview-poll-name { font-size: var(--text-xs); }
      .live-overview-poll-bar { font-size: var(--text-xs); }
      .live-overview-poll-bar-value { display: none; }
      .live-overview-poll-percentage {
        display: block;
        justify-self: center;
        width: max-content;
        color: var(--text);
        font-size: var(--text-xs);
        letter-spacing: 0.05rem;
      }
      .live-overview-poll-segment:first-child.is-poll-percentage-overflowing .live-overview-poll-percentage {
        justify-self: start;
        text-align: left;
      }
      .live-overview-poll-segment:last-child.is-poll-percentage-overflowing .live-overview-poll-percentage {
        justify-self: end;
        text-align: right;
      }
      .match-detail-matchup {
        grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
        gap: 0.5rem;
      }
      .match-detail-team {
        grid-template-columns: 1fr;
        gap: 0.65rem;
      }
      .match-detail-player {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        text-align: center;
      }
      .match-detail-player-photo {
        width: 50px;
        height: 50px;
        grid-row: auto;
        border-radius: 50%;
      }
      .match-detail-player-image {
        width: 46px;
        height: 46px;
        border-radius: 50%;
      }
      .match-detail-player-emoji { font-size: 1.7rem; }
      .match-detail-player-name { font-size: var(--text-sm); }
      .match-detail-player-elo { font-size: var(--text-xs); }
      .live-ticker-serve {
        font-size: 1.5rem;
      }
      .match-detail-score { font-size: 3rem; }
      .live-ticker-points { font-size: 1.5rem; }
      .live-ticker-actions {
        flex-wrap: wrap;
      }
      .live-ticker-game { padding: 0.8rem 0.3rem; }
      .live-ticker-game-line {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0.45rem;
      }
      .live-ticker-game-server { font-size: var(--text-xs); }
      .live-ticker-game-server strong {
        display: block;
        font-size: var(--text-xs);
        margin-top: 0.1rem;
      }
      .live-ticker-game-score { font-size: var(--text-heading); }
      .live-ticker-game-points {
        font-size: var(--text-sm);
        line-height: 1.5;
      }
      .calculator-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
      }
      .calculator-mobile-game-area {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 8px;
        align-items: start;
      }
      .calculator-ranking-panel {
        position: static;
      }
      .calculator-match-column {
        min-width: 0;
      }
      .calculator-match-card {
        padding: 0.75rem;
      }
      .calculator-mobile-mini-ranking {
        position: sticky;
        top: 72px;
        display: block;
        min-width: 0;
        overflow: hidden;
      }
      .calculator-mini-title {
        color: var(--dim);
        font-family: var(--font-body);
        font-size: 0.76rem;
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.45rem;
        text-align: center;
      }
      #calculator-mini-ranking {
        display: grid;
        gap: 0;
      }
      .calculator-mini-rank-row {
        display: grid;
        grid-template-columns: 18px 1fr;
        align-items: center;
        min-height: 28px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
      }
      .calculator-mini-rank-row.top-four-highlight {
        box-shadow: inset 2px 0 0 var(--dim);
      }
      .calculator-mini-rank-row.calculator-active-match-player {
        background: color-mix(in srgb, var(--accent) 18%, transparent);
      }
      .calculator-rank-position {
        color: var(--text);
        font-family: var(--font-mono);
        font-size: var(--text-xs);
        font-weight: 700;
        padding-left: 8px;
      }
      .calculator-mini-rank-initials {
        color: var(--dim);
        font-family: var(--font-mono);
        font-size: var(--text-xs);
        font-weight: 400;
        justify-self: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .calculator-mini-rank-row.viewer-highlight .calculator-mini-rank-initials {
        color: var(--accent2);
        font-weight: 700;
      }
      .calculator-mini-rank-row.calculator-active-match-player.viewer-highlight .calculator-mini-rank-initials {
        color: var(--accent2);
      }
      .calculator-mini-rank-row.viewer-highlight {
        box-shadow: inset 4px 0 0 var(--accent2);
      }
      .calculator-match-teams {
        gap: 4px;
      }
      .calculator-match-team {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: var(--text-base);
      }
      .calculator-match-team .mc-player-sep {
        display: none;
      }
      .calculator-match-teams {
        grid-template-columns: minmax(0, 1fr) minmax(74px, auto) minmax(0, 1fr);
      }
      .calculator-live-result {
        min-width: 74px;
      }
      .calculator-live-result .mc-score-main {
        font-size: 1.65rem;
      }
      .calculator-live-result .calculator-probability {
        font-size: 0.82rem;
        min-height: 1.65rem;
      }
      .calculator-score-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 2px;
        overflow: visible;
        padding-top: 8px;
      }
      .calculator-tiebreak-line {
        gap: 2px;
      }
      .calculator-set-separator {
        font-size: 0.9rem;
      }
      .score-counter-pair {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 2px;
        width: 100%;
        min-width: 0;
      }
      .calculator-tiebreak-line .score-counter-pair {
        max-width: none;
      }
      .score-counter-field {
        grid-template-columns: 30% 40% 30%;
        width: 100%;
      }
      .score-counter-step {
        width: 100%;
        height: 34px;
        font-size: var(--text-sm);
      }
      .score-counter-field input {
        width: 100%;
        min-width: 0;
        height: 34px;
        font-size: 16px;
      }
      table.calculator-ranking-table {
        min-width: 100%;
      }
      table.calculator-ranking-table th,
      table.calculator-ranking-table td {
        padding-left: 4px;
        padding-right: 4px;
      }
      table.rt.calculator-ranking-table .col-rank { width: 42px; }
      table.rt.calculator-ranking-table .col-games,
      table.rt.calculator-ranking-table .col-wins,
      table.rt.calculator-ranking-table .col-points,
      table.rt.calculator-ranking-table .col-diff { width: 58px; }
      .calculator-ranking-table .pname {
        display: inline-block;
        max-width: 100%;
        padding-right: 6px;
      }
      .prediction-layout { grid-template-columns: 1fr; gap: 12px; }
      .tip-site-nav { gap: 4px; }
      .tip-site-nav button { font-size: 0.72rem; }
      .prediction-overview-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 4rem;
      }
      .prediction-overview-column { display: contents; }
      .prediction-overview-action { order: 1; }
      .prediction-overview-stand { order: 2; }
      .prediction-overview-article { order: 3; }
      .prediction-overview-latest { order: 4; }
      .prediction-overview-balance { order: 5; }
      .prediction-overview-leaders { order: 6; }
      .prediction-overview-grid.is-guest .prediction-overview-stand { order: 1; }
      .prediction-overview-grid.is-guest .prediction-overview-action { order: 2; }
      .prediction-overview-grid.is-guest .prediction-overview-community { order: 3; }
      .prediction-overview-grid.is-guest .prediction-overview-leaders { order: 4; }
      .prediction-overview-grid.is-guest .prediction-overview-article { order: 5; }
      .prediction-overview-personal-stand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .prediction-overview-stand-copy { grid-column: 1 / -1; }
      .prediction-overview-scoreline { gap: 2.5rem; }
      .prediction-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
      }
      .prediction-info-layout { grid-template-columns: 1fr;}
      .prediction-rule-grid { grid-template-columns: 1fr; gap: 10px; }
      .prediction-rule-grid > div { grid-template-columns: 34px 1fr; }
      .prediction-rule-grid strong { font-size: var(--text-heading); }
      .prediction-login-hint,
      .prediction-session-note { align-items: flex-start; flex-direction: column; gap: 10px; }
      .prediction-login-hint .primary-button { width: 100%; }
      .prediction-match-meta { align-items: flex-start; }
      .prediction-teams { gap: 5px; }
      .prediction-team {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 0.94rem;
      }
      .prediction-team .mc-player-sep { display: none; }
      .prediction-options { gap: 5px; }
      .prediction-option { min-height: 40px; font-size: 0.9rem; }
    }

    /* Final4 uses the league calculator's desktop and mobile components. */
    .calculator-score-line.calculator-single-set {
      display: flex;
      justify-content: center;
    }
    .final-four-calculator-winner { margin-top: 1rem; color: var(--text); font-size: var(--text-sm); }
    .final-four-outcomes-panel { margin-top: 2rem; }
    #final-four-outcomes-note { line-height: 1.6; margin: 0; }
    .final-four-outcome-row { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border); }
    .final-four-outcome-winner { margin-bottom: 0.65rem; }
    .final-four-outcome-scores { display: flex; flex-wrap: wrap; gap: 8px; }
    .final-four-outcome-score { font-family: var(--font-mono); padding: 0.4rem 0.8rem; }
    .final-four-outcome-score[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
    .final-four-eliminated-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px;
      padding-top: 1rem;
      margin-top: 1rem;
      border-top: 1px solid var(--border);
    }
    .final-four-eliminated-players { display: inline-flex; flex-wrap: wrap; gap: 5px; }
    #final-four-calculator-mini-ranking { display: grid; }

    /* Globale Aktionen: Desktop-Zeile, mobil als Speed Dial. */
    .global-actions-list { display: contents; }
    .global-actions-toggle,
    .global-actions-dismiss { display: none; }
    .global-action--mobile-only { display: none; }
    .global-action-label,
    .auth-button.is-authenticated .auth-button-label { display: none; }
    @media (min-width: 769px) {
      .header-icon-link#tipp-link {
        gap: 8px;
        width: auto;
        border-radius: 999px;
        padding: 0 0.85rem;
        font-family: var(--font-body);
        font-size: var(--text-sm);
        font-weight: 600;
        white-space: nowrap;
      }
      .header-icon-link#tipp-link .global-action-label { display: inline; }
    }

    @media (max-width: 768px) {
      main { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
      .hero-actions:not(:has(.viewer-picker:not([hidden]))) { display: none; }

      .context-actions.global-actions {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        width: auto;
        pointer-events: none;
      }
      body:has(dialog[open]) .context-actions.global-actions { display: none; }
      .global-actions-dismiss {
        position: fixed;
        z-index: 0;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(0,0,0,0.46);
        cursor: default;
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease;
      }
      .global-actions.open .global-actions-dismiss {
        opacity: 1;
        pointer-events: auto;
      }
      .global-actions-list {
        position: absolute;
        z-index: 1;
        right: max(16px, env(safe-area-inset-right));
        bottom: calc(130px + env(safe-area-inset-bottom) + var(--global-actions-keyboard-offset, 0px));
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        max-height: calc(var(--global-actions-viewport-height, 100dvh) - 98px - env(safe-area-inset-bottom));
        pointer-events: none;
      }
      .global-actions-list > * {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
        transform-origin: right bottom;
        transition: opacity 150ms ease, transform 180ms ease, visibility 180ms;
        visibility: hidden;
      }
      .global-actions.open .global-actions-list {
        pointer-events: auto;
      }
      .global-actions.open .global-actions-list > * {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
      }
      .global-actions.open .global-actions-list > :nth-last-child(1) { transition-delay: 25ms; }
      .global-actions.open .global-actions-list > :nth-last-child(2) { transition-delay: 50ms; }
      .global-actions.open .global-actions-list > :nth-last-child(3) { transition-delay: 75ms; }
      .global-actions.open .global-actions-list > :nth-last-child(4) { transition-delay: 100ms; }
      .global-actions.open .global-actions-list > :nth-last-child(5) { transition-delay: 125ms; }
      .global-actions.open .global-actions-list > :nth-last-child(6) { transition-delay: 150ms; }
      .global-actions.open .global-actions-list > :nth-last-child(7) { transition-delay: 175ms; }

      .global-actions .viewer-picker { max-width: calc(100vw - 32px); }
      .global-actions .viewer-split-button {
        display: flex;
        min-height: 44px;
        min-width: 160px;
        background: var(--surface);
        box-shadow: 0 10px 30px rgba(0,0,0,0.38);
      }
      .global-actions .viewer-profile-button {
        flex-basis: 44px;
        width: 44px;
        min-height: 44px;
      }
      .global-actions .viewer-combobox { flex: 1; }
      .global-actions .viewer-split-button .secondary-button {
        width: 100%;
        min-height: 44px;
        min-width: 127px;
        font-weight: 600;
        text-align: left;
      }
      .global-actions .viewer-label-full { display: inline; }
      .global-actions .viewer-label-short { display: none; }
      .global-actions .viewer-picker--empty .viewer-label-full { display: none; }
      .global-actions .viewer-picker--empty .viewer-label-short { display: inline; }
      .global-actions-list:has(.viewer-picker.open) > :not(.viewer-picker) {
        display: none;
      }
      .global-actions .viewer-picker.open {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
      }
      .global-actions .viewer-picker.open .viewer-split-button { flex-shrink: 0; }
      .global-actions .viewer-menu {
        position: static;
        width: 100%;
        max-height: 260px;
        min-height: 0;
        overscroll-behavior: contain;
      }
      .global-action,
      .global-actions .auth-button.global-action,
      .global-actions .auth-button.is-authenticated,
      .global-actions .auth-button.is-authenticated.secondary-button {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        width: auto;
        min-width: 160px;
        min-height: 44px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface);
        color: var(--text);
        box-shadow: 0 10px 30px rgba(0,0,0,0.38);
        font-family: var(--font-body);
        font-size: var(--text-sm);
        font-weight: 600;
        line-height: 1;
        padding: 0.65rem 1rem;
        text-decoration: none;
        white-space: nowrap;
      }
      .global-actions .auth-button.global-action:not(.is-authenticated) {
        border-color: var(--accent);
        background: var(--accent);
        color: var(--bg);
      }
      .global-actions .auth-button.global-action.is-authenticated {
        border-color: var(--border);
        background: rgba(14,16,23,0.98);
        color: var(--text);
      }
      .global-actions .season-picker { display: block; }
      .global-action--mobile-only { display: inline-flex; }
      .global-action-label,
      .global-actions .auth-button.is-authenticated .auth-button-label { display: inline; }
      .global-action-icon {
        display: inline-grid;
        min-width: 18px;
        place-items: center;
        color: var(--accent);
        font-weight: 800;
      }
      .global-actions .external-game-link.global-action svg {
        width: 20px;
        height: 20px;
      }
      .global-actions .context-link svg { display: block; }
      .global-actions .auth-user-icon { width: 19px; height: 19px; }
      .global-actions.has-account-tasks .auth-button {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 48%, transparent), 0 10px 30px rgba(0,0,0,0.38);
      }
      .global-action--live {
        border-color: var(--negativ);
        color: var(--negativ);
      }
      .global-action--live .global-action-icon { color: currentColor; }

      .global-actions-toggle {
        position: absolute;
        z-index: 2;
        right: max(16px, env(safe-area-inset-right));
        bottom: calc(64px + env(safe-area-inset-bottom) + var(--global-actions-keyboard-offset, 0px));
        display: grid;
        width: 56px;
        height: 56px;
        border: 1px solid var(--muted);
        border-radius: 50%;
        background: var(--surface2);
        color: var(--text);
        box-shadow: 0 12px 34px rgba(0,0,0,0.48);
        cursor: pointer;
        padding: 0;
        place-items: center;
        pointer-events: auto;
        transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
      }
      .global-actions-toggle:hover,
      .global-actions-toggle:focus-visible {
        border-color: var(--accent);
        color: var(--accent);
        outline: none;
      }
      .global-actions-toggle svg {
        grid-area: 1 / 1;
        width: 24px;
        height: 24px;
        fill: currentColor;
        transition: opacity 140ms ease, transform 180ms ease;
      }
      .global-actions-toggle-close {
        fill: none !important;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
        opacity: 0;
        transform: rotate(-45deg) scale(0.8);
      }
      .global-actions.open .global-actions-toggle-menu {
        opacity: 0;
        transform: rotate(45deg) scale(0.8);
      }
      .global-actions.open .global-actions-toggle-close {
        opacity: 1;
        transform: rotate(0) scale(1);
      }
      .global-actions-toggle-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        display: grid;
        min-width: 20px;
        height: 20px;
        border-radius: 999px;
        background: var(--accent);
        color: var(--bg);
        box-shadow: 0 0 0 2px var(--bg);
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0 5px;
        place-items: center;
      }
      .global-actions.open .global-actions-toggle-badge {
        display: none;
      }
      .global-actions.has-account-tasks:not(.has-live) .global-actions-toggle {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 48%, transparent), 0 12px 34px rgba(0,0,0,0.48);
      }
      .global-actions.has-live .global-actions-toggle {
        border-color: var(--negativ);
        color: var(--negativ);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--negativ) 48%, transparent), 0 12px 34px rgba(0,0,0,0.48);
      }
      .global-actions.has-live .global-actions-toggle-badge {
        background: var(--negativ);
        color: var(--text);
      }

      .global-actions .season-menu {
        top: 50%;
        right: calc(100% + 8px);
        width: min(140px, calc(100vw - 155px));
        max-height: min(420px, calc(100vh - 32px));
        transform: translateY(-50%);
      }
    }

    @media (max-width: 768px) and (max-height: 440px) {
      .global-actions-list:not(:has(.viewer-picker.open, .season-picker.open)) {
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px;
        margin-right: -4px;
      }
      .global-actions-list > * { flex-shrink: 0; }
      .global-actions .viewer-picker.open { flex-shrink: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
      .global-actions-list > *,
      .global-actions-dismiss,
      .global-actions-toggle,
      .global-actions-toggle svg { transition: none !important; }
    }
