    :root {
      --bg: #020a10;
      --panel: rgba(7, 20, 30, 0.96);
      --panel-2: rgba(13, 32, 45, 0.96);
      --text: #f5f8fb;
      --muted: #aeb9c2;
      --red: #f02432;
      --blue: #1688ff;
      --yellow: #ffd34d;
      --line: rgba(226,237,244,0.14);
      --green: #2fd16c;
      --ui-card-padding: 12px;
      --ui-section-gap: 12px;
      --ui-row-height: 38px;
      --ui-icon-size: 16px;
      --ui-section-title-size: 13px;
      --ui-eyebrow-size: 11px;
      --ui-body-size: 13px;
      --ui-action-size: 12px;
      --ui-label-tracking: 1px;
      --ui-card-radius: 8px;
      --ui-card-border: rgba(226,237,244,0.12);
      --ui-card-bg: linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.026));
      --ui-divider: rgba(226,237,244,0.10);
      --ui-muted-text: rgba(202,214,224,0.68);
      --btn-height: 38px;
      --btn-radius: 7px;
      --btn-padding-x: 10px;
      --btn-font-size: 12px;
      --btn-font-weight: 900;
      --btn-letter-spacing: 0.5px;
      --btn-transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 120ms ease;
      --btn-primary-bg: linear-gradient(180deg, #ff2636, #d50818);
      --btn-primary-shadow: 0 0 24px rgba(240, 36, 50, 0.26);
      --btn-secondary-bg: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      --btn-action-bg: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
    }

    * { box-sizing: border-box; }

    html,
    body {
      margin: 0;
      width: 100%;
      height: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      background: var(--bg);
      color: var(--text);
      font-family: Arial, Helvetica, sans-serif;
      overflow: hidden;
    }

    body {
      display: grid;
      grid-template-columns: 360px 1fr;
      height: 100vh;
      height: 100dvh;
    }

    aside {
      background:
        linear-gradient(180deg, rgba(4,14,22,0.98), rgba(7,23,35,0.96)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
      border-right: 1px solid var(--line);
      padding: 14px;
      overflow: auto;
      height: 100vh;
      height: 100dvh;
      box-shadow: 12px 0 36px rgba(0,0,0,0.28);
      z-index: 2;
    }

    .kicker {
      color: var(--red);
      font-size: 12.5px;
      font-weight: 900;
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .brand-lockup {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      align-items: center;
      margin-bottom: 8px;
      cursor: pointer;
      border-radius: 8px;
    }

    .header-actions {
      display: none;
    }

    .brand-lockup:focus-visible {
      outline: 2px solid rgba(22,136,255,0.85);
      outline-offset: 4px;
    }

    .brand-lockup .kicker {
      margin-top: 3px;
      margin-bottom: 0;
      color: rgba(240, 36, 50, 0.78);
      font-size: 10px;
      line-height: 1.05;
      letter-spacing: 1.45px;
      overflow-wrap: anywhere;
    }

    h1 {
      margin: 0;
      font-size: 27px;
      line-height: 0.98;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }

    .brand-lockup h1 {
      font-size: 23px;
      line-height: 0.96;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .subhead {
      display: none;
      margin: 8px 0 12px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .steps {
      display: grid;
      gap: 8px;
      margin-bottom: 18px;
    }

    .step {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid var(--line);
      border-right: 3px solid var(--red);
      border-radius: 8px;
      background: linear-gradient(90deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-size: 12px;
    }

    .step span:first-child {
      width: 26px;
      height: 26px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--red);
      color: white;
      box-shadow: 0 0 18px rgba(240,36,50,0.36);
    }

    .step small {
      color: var(--muted);
      font-size: 10px;
      letter-spacing: 0.7px;
    }

    .ui-card,
    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--ui-card-radius);
      padding: var(--ui-card-padding);
      margin-bottom: 10px;
    }

    details.card summary {
      cursor: pointer;
      color: #dbe4ea;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      list-style: none;
    }

    details.card summary::-webkit-details-marker {
      display: none;
    }

    details.card summary::after {
      content: '+';
      float: right;
      color: var(--red);
      font-size: 20px;
      line-height: 12px;
    }

    details.card[open] summary {
      margin-bottom: 12px;
    }

    details.card[open] summary::after {
      content: '-';
    }

    .ui-section-title,
    label {
      display: block;
      margin-bottom: 7px;
      color: #dbe4ea;
      font-size: var(--ui-section-title-size);
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .ui-eyebrow {
      color: var(--ui-muted-text);
      font-size: var(--ui-eyebrow-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.15;
      text-transform: uppercase;
    }

    .ui-body {
      color: rgba(226,237,244,0.82);
      font-size: var(--ui-body-size);
      font-weight: 700;
      line-height: 1.4;
    }

    .ui-muted {
      color: var(--ui-muted-text);
      font-size: 11.5px;
      font-weight: 750;
      line-height: 1.35;
    }

    .ui-divider {
      border-top: 1px solid var(--ui-divider);
    }

    .ui-info-card,
    .ui-stat-tile,
    .ui-empty-state,
    .ui-action-row {
      border: 1px solid var(--ui-card-border);
      border-radius: var(--ui-card-radius);
      background: var(--ui-card-bg);
    }

    .ui-info-card,
    .ui-empty-state {
      padding: var(--ui-card-padding);
    }

    .ui-stat-tile {
      padding: 10px;
      min-height: 56px;
    }

    .ui-coming-soon,
    .coming-soon-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 18px;
      padding: 3px 7px;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 999px;
      color: rgba(202,214,224,0.72);
      background: rgba(255,255,255,0.045);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      line-height: 1;
      text-transform: uppercase;
    }

    input,
    select,
    button,
    textarea {
      width: 100%;
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      color: var(--text);
      padding: 9px 10px;
      font-size: 13px;
      font-weight: 700;
      touch-action: manipulation;
    }

    select[size] {
      min-height: 146px;
    }

    #boxList {
      height: 138px;
      min-height: 138px;
    }

    select::-webkit-scrollbar,
    aside::-webkit-scrollbar,
    .live-player-list::-webkit-scrollbar,
    .round-results-panel::-webkit-scrollbar,
    .street-list::-webkit-scrollbar {
      width: 10px;
    }

    select::-webkit-scrollbar-track,
    aside::-webkit-scrollbar-track,
    .live-player-list::-webkit-scrollbar-track,
    .round-results-panel::-webkit-scrollbar-track,
    .street-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.05);
      border-radius: 999px;
    }

    select::-webkit-scrollbar-thumb,
    aside::-webkit-scrollbar-thumb,
    .live-player-list::-webkit-scrollbar-thumb,
    .round-results-panel::-webkit-scrollbar-thumb,
    .street-list::-webkit-scrollbar-thumb {
      background: rgba(174,185,194,0.42);
      border-radius: 999px;
      border: 2px solid rgba(7,20,30,0.96);
    }

    select::-webkit-scrollbar-thumb:hover,
    aside::-webkit-scrollbar-thumb:hover,
    .live-player-list::-webkit-scrollbar-thumb:hover,
    .round-results-panel::-webkit-scrollbar-thumb:hover,
    .street-list::-webkit-scrollbar-thumb:hover {
      background: rgba(224,234,242,0.58);
    }

    select:not([size]) {
      min-height: 44px;
    }

    select option {
      background: #142431;
      color: #f5f8fb;
    }

    select option:checked {
      background: #1f6fd0;
      color: #ffffff;
    }

    .hidden {
      display: none !important;
    }

    button {
      cursor: pointer;
      border: none;
      background: rgba(255,255,255,0.14);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    button.primary {
      background: var(--red);
      color: white;
    }

    button:disabled,
    button.primary:disabled {
      cursor: not-allowed;
      background: rgba(255,255,255,0.14);
      color: rgba(245,248,251,0.72);
    }

    button.is-disabled,
    button.primary.is-disabled {
      cursor: not-allowed;
      background: rgba(255,255,255,0.14);
      color: rgba(245,248,251,0.72);
    }

    button.secondary {
      background: rgba(22,136,255,0.2);
      color: #dceeff;
      border: 1px solid rgba(22,136,255,0.45);
    }

    button.primary,
    button.secondary,
    .btn-primary,
    .btn-secondary,
    .btn-action-row {
      min-height: var(--btn-height);
      border-radius: var(--btn-radius);
      padding: 0 var(--btn-padding-x);
      font-size: var(--btn-font-size);
      font-weight: var(--btn-font-weight);
      letter-spacing: var(--btn-letter-spacing);
      line-height: 1;
      transition: var(--btn-transition);
    }

    button.primary,
    .btn-primary {
      border: 1px solid rgba(240,36,50,0.70);
      background: var(--btn-primary-bg);
      color: #fff;
      box-shadow: var(--btn-primary-shadow);
    }

    button.primary:hover,
    button.primary:focus-visible,
    .btn-primary:hover,
    .btn-primary:focus-visible {
      border-color: rgba(255, 102, 116, 0.82);
      background: linear-gradient(180deg, #ff3444, #e00b1d);
      box-shadow: 0 0 28px rgba(240, 36, 50, 0.34);
      outline: none;
    }

    button.primary:active,
    .btn-primary:active {
      transform: translateY(1px);
      box-shadow: 0 0 18px rgba(240, 36, 50, 0.24);
    }

    button.secondary,
    .btn-secondary {
      border: 1px solid rgba(226,237,244,0.12);
      background: var(--btn-secondary-bg);
      color: #f5f8fb;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }

    button.secondary:hover,
    button.secondary:focus-visible,
    .btn-secondary:hover,
    .btn-secondary:focus-visible {
      border-color: rgba(226,237,244,0.22);
      background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
      outline: none;
    }

    button.secondary:active,
    .btn-secondary:active {
      transform: translateY(1px);
    }

    .btn-action-row {
      width: 100%;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(226,237,244,0.12);
      background: var(--btn-action-bg);
      color: #f5f8fb;
      text-align: left;
      text-transform: uppercase;
    }

    .btn-action-row:hover,
    .btn-action-row:focus-visible {
      border-color: rgba(87,169,255,0.34);
      background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(22,136,255,0.07));
      outline: none;
    }

    .btn-primary:disabled,
    .btn-primary.is-disabled,
    button.primary:disabled,
    button.primary.is-disabled,
    .btn-secondary:disabled,
    .btn-secondary[aria-disabled="true"],
    .btn-secondary.is-disabled,
    button.secondary:disabled,
    button.secondary.is-disabled,
    .btn-action-row:disabled,
    .btn-action-row[aria-disabled="true"],
    .btn-action-row.is-disabled {
      cursor: default;
      opacity: 0.62;
      transform: none;
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .status {
      min-height: 42px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .home-actions {
      margin-top: 7px;
    }

    .box-tools {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 6px;
    }

    .box-tools button {
      padding-inline: 8px;
      font-size: 12px;
      white-space: normal;
      min-height: 38px;
    }

    .selection-note {
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.3;
    }

    .copyright-note {
      margin-top: 12px;
      color: rgba(174,185,194,0.74);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.25;
      text-align: center;
    }

    .version-link {
      display: inline;
      width: auto;
      margin: 0 0 0 8px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--blue);
      font: inherit;
      font-weight: 900;
      letter-spacing: 0;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
    }

    .version-link:hover,
    .version-link:focus-visible {
      color: #f5f8fb;
      background: transparent;
      box-shadow: none;
      transform: none;
    }

    .round-limit {
      display: grid;
      gap: 7px;
      margin-top: 4px;
    }

    .identity-grid {
      display: grid;
      gap: 8px;
      margin-top: 4px;
    }

    .identity-grid .row {
      grid-template-columns: 1fr 1fr;
    }

    .round-limit input {
      min-height: 44px;
    }

    .zoom-assist-option {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 38px;
      padding: 9px 10px;
      border: 1px solid rgba(226, 237, 244, 0.13);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      color: rgba(245, 248, 251, 0.86);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.4px;
      user-select: none;
    }

    .drill-help-option {
      position: relative;
      justify-content: space-between;
    }

    .drill-option-label {
      display: inline-flex;
      align-items: center;
      gap: inherit;
      min-width: 0;
      margin: 0;
      color: inherit;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
      cursor: pointer;
    }

    .drill-settings-group .zoom-assist-option {
      min-height: 28px;
      padding: 6px 10px;
      border: 0;
      border-radius: 0;
      background: transparent;
      gap: 8px;
      font-size: 11px;
      letter-spacing: 0.35px;
    }

    #desktopDrillSettingsGroup .zoom-assist-option,
    .desktop-live-panel.is-host-setup .live-tournament-option {
      min-height: 0;
      height: 100%;
      padding: 0 10px;
    }

    .drill-settings-group .zoom-assist-option + .zoom-assist-option,
    .desktop-live-panel.is-host-setup .live-tournament-option + .live-tournament-option {
      border-top: 1px solid rgba(226, 237, 244, 0.10);
    }

    .zoom-assist-option input {
      width: 16px;
      height: 16px;
      min-height: 0;
      accent-color: var(--red);
      flex: 0 0 auto;
    }

    .drill-settings-group .zoom-assist-option input {
      width: 14px;
      height: 14px;
    }

    #desktopDrillSettingsGroup .zoom-assist-option input,
    .desktop-live-panel.is-host-setup .live-tournament-option input {
      width: 14px;
      min-width: 14px;
      max-width: 14px;
      height: 14px;
      min-height: 14px;
      max-height: 14px;
      margin: 0;
      padding: 0;
      flex: 0 0 14px;
      box-sizing: border-box;
      transform: none;
    }

    .zoom-assist-option span {
      min-width: 0;
    }

    .zoom-assist-option.is-disabled {
      cursor: not-allowed;
    }

    .zoom-assist-option.is-disabled .drill-option-label {
      opacity: 0.58;
      cursor: not-allowed;
    }

    .drill-settings-group .zoom-assist-option.is-tooltip-open,
    .drill-settings-group .zoom-assist-option:has(.option-info-button:hover),
    .drill-settings-group .zoom-assist-option:has(.option-info-button.is-tooltip-open),
    .drill-settings-group .zoom-assist-option:focus-within {
      position: relative;
      z-index: 80;
    }

    .option-info-button {
      position: relative;
      flex: 0 0 auto;
      display: inline-grid;
      place-items: center;
      width: 20px;
      height: 20px;
      min-height: 20px;
      padding: 0;
      border: 1px solid rgba(87, 169, 255, 0.55);
      border-radius: 999px;
      background: rgba(22, 136, 255, 0.12);
      color: rgba(220, 238, 255, 0.92);
      font-size: 13px;
      font-weight: 1000;
      line-height: 1;
      text-transform: none;
      cursor: help;
    }

    .option-info-button::before {
      content: 'i';
      transform: translateY(-0.5px);
    }

    .option-info-button::after {
      content: attr(data-tooltip);
      position: absolute;
      right: calc(100% + 10px);
      top: 50%;
      z-index: 20;
      width: min(210px, calc(100vw - 72px));
      padding: 10px 12px;
      border: 1px solid rgba(87, 169, 255, 0.44);
      border-radius: 8px;
      background: rgba(5, 18, 28, 0.98);
      box-shadow: 0 14px 36px rgba(0,0,0,0.42);
      color: rgba(245, 248, 251, 0.94);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.1px;
      line-height: 1.35;
      text-align: left;
      text-transform: none;
      white-space: normal;
      opacity: 0;
      pointer-events: none;
      transform: translate(4px, -50%);
      transition: opacity 140ms ease, transform 140ms ease;
    }

    .option-info-button:hover,
    .option-info-button:focus-visible,
    .option-info-button.is-tooltip-open {
      border-color: rgba(220, 238, 255, 0.80);
      background: rgba(22, 136, 255, 0.24);
      color: #ffffff;
      outline: none;
    }

    .option-info-button:hover::after,
    .option-info-button:focus-visible::after,
    .option-info-button.is-tooltip-open::after {
      opacity: 1;
      transform: translate(0, -50%);
    }

    .stepper-input {
      display: grid;
      grid-template-columns: 1fr 28px;
      align-items: stretch;
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }

    .stepper-input:focus-within {
      border-color: rgba(255,255,255,0.9);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.55);
    }

    .stepper-input.is-disabled {
      opacity: 0.58;
    }

    .stepper-input input {
      min-height: 44px;
      border: 0;
      border-radius: 0;
      background: transparent;
      padding-right: 8px;
      appearance: textfield;
      -moz-appearance: textfield;
    }

    .stepper-input input::-webkit-outer-spin-button,
    .stepper-input input::-webkit-inner-spin-button {
      appearance: none;
      -webkit-appearance: none;
      margin: 0;
    }

    .stepper-buttons {
      display: grid;
      grid-template-rows: 1fr 1fr;
      background: rgba(7,20,30,0.62);
      border-left: 1px solid rgba(255,255,255,0.12);
    }

    .stepper-buttons button {
      width: 28px;
      min-height: 0;
      padding: 0;
      border-radius: 0;
      background: rgba(174,185,194,0.24);
      color: #f5f8fb;
      font-size: 14px;
      line-height: 1;
      letter-spacing: 0;
      display: grid;
      place-items: center;
    }

    .stepper-buttons button:first-child {
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .stepper-buttons button:hover,
    .stepper-buttons button:focus-visible {
      background: rgba(224,234,242,0.42);
      outline: none;
    }

    .stepper-input.is-disabled .stepper-buttons button {
      cursor: not-allowed;
      background: rgba(174,185,194,0.16);
    }

    .stepper-buttons button::before {
      content: "";
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
    }

    .stepper-up::before {
      border-bottom: 6px solid rgba(245,248,251,0.88);
    }

    .stepper-down::before {
      border-top: 6px solid rgba(245,248,251,0.88);
    }

    .street-list {
      display: grid;
      gap: 8px;
      max-height: 230px;
      overflow: auto;
      padding-right: 4px;
    }

    .street-item {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      padding: 9px;
      font-size: 13px;
      font-weight: 800;
    }

    .drill-readout {
      display: grid;
      gap: 8px;
    }

    #activeDrillControls {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 0;
    }

    .drill-settings-group {
      display: grid;
      gap: 0;
      border: 1px solid rgba(226, 237, 244, 0.13);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      overflow: hidden;
    }

    #desktopDrillSettingsGroup {
      min-height: 96px;
      grid-template-rows: repeat(3, 32px);
      overflow: visible;
    }

    .desktop-live-panel.is-host-setup {
      min-height: 128px;
      grid-template-rows: repeat(4, 32px);
    }

    .drill-action-stack {
      display: grid;
      flex: 0 0 auto;
      gap: 5px;
      margin-top: auto;
    }

    .drill-action-stack #resetDrillBtn {
      order: 1;
    }

    .drill-action-stack #startDrillBtn,
    .drill-action-stack #liveCreateRoomBtn,
    .drill-action-stack #liveStartRoomBtn {
      order: 2;
    }

    .drill-action-stack .hidden {
      display: none !important;
    }

    #drillPanel.is-live-lobby-setup .drill-action-stack #resetDrillBtn {
      display: none !important;
    }

    #drillPanel.is-desktop-live-setup .loaded-drill-card,
    #drillPanel.is-desktop-live-setup #roundLimitControl,
    #drillPanel.is-desktop-live-setup .drill-action-stack #resetDrillBtn {
      display: none !important;
    }

    .desktop-live-panel {
      display: grid;
      gap: 8px;
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
    }

    .desktop-live-role-panel,
    .desktop-live-join-panel {
      display: grid;
      gap: 10px;
    }

    .desktop-live-role-copy,
    .desktop-live-join-copy {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .desktop-live-role-copy strong,
    .desktop-live-join-copy strong {
      color: #f5f8fb;
      font-size: 13px;
      font-weight: 1000;
      letter-spacing: 0.35px;
      line-height: 1.15;
      text-transform: uppercase;
    }

    .desktop-live-role-copy span,
    .desktop-live-join-copy span {
      color: rgba(202, 214, 224, 0.78);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.3;
    }

    .desktop-live-role-actions {
      display: grid;
      gap: 8px;
    }

    .desktop-live-role-button {
      display: grid;
      justify-items: start;
      gap: 3px;
      min-height: 58px;
      height: auto;
      padding: 9px 10px;
      border: 1px solid rgba(87, 169, 255, 0.24);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(87,169,255,0.13), rgba(255,255,255,0.035));
      color: #f5f8fb;
      text-align: left;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }

    .desktop-live-role-button:hover,
    .desktop-live-role-button:focus-visible {
      border-color: rgba(87, 169, 255, 0.55);
      background: linear-gradient(180deg, rgba(87,169,255,0.20), rgba(255,255,255,0.055));
    }

    .desktop-live-role-button strong {
      font-size: 12px;
      font-weight: 1000;
      letter-spacing: 0.5px;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .desktop-live-role-button span {
      color: rgba(220, 238, 255, 0.74);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.2px;
      line-height: 1.25;
      text-transform: none;
    }

    .desktop-live-join-fields {
      display: grid;
      gap: 8px;
    }

    .desktop-live-join-fields label {
      display: grid;
      gap: 4px;
    }

    .desktop-live-inline-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    #drillPanel.is-live-lobby-setup .desktop-live-panel,
    #drillPanel.is-live-results .desktop-live-panel {
      flex: 1 1 auto;
      min-height: 0;
    }

    #drillPanel.is-live-host-active .desktop-live-panel {
      flex: 1 1 auto;
      min-height: 0;
      grid-template-rows: minmax(0, 1fr) auto;
    }

    #drillPanel.is-live-host-active .loaded-drill-card {
      display: none !important;
    }

    #drillPanel.is-live-lobby-setup .desktop-live-lobby-panel,
    #drillPanel.is-live-results .desktop-live-lobby-panel {
      min-height: 0;
      height: 100%;
      grid-template-rows: auto auto minmax(0, 1fr);
    }

    #drillPanel.is-live-host-active .desktop-live-lobby-panel {
      min-height: 0;
      height: 100%;
      gap: 6px;
      grid-template-rows: minmax(0, 1fr);
    }

    #drillPanel.is-live-host-active .live-lobby-meta,
    #drillPanel.is-live-host-active .live-setup-status {
      display: none !important;
    }

    #drillPanel.is-live-results .live-lobby-meta,
    #drillPanel.is-live-results .live-setup-status {
      display: none !important;
    }

    #drillPanel.is-live-results .live-player-list {
      gap: 10px;
      overflow: auto;
      padding-right: 3px;
      scrollbar-width: thin;
      scrollbar-color: rgba(174,185,194,0.42) rgba(255,255,255,0.05);
    }

    #drillPanel.is-live-results .live-results-trophy-panel {
      display: grid;
      align-content: start;
      gap: 10px;
      min-width: 0;
    }

    #drillPanel.is-live-results .live-results-trophy-panel .leaderboard-stat {
      min-height: 86px;
      grid-template-columns: 68px minmax(0, 1fr);
      gap: 12px;
      padding: 12px;
      border: 1px solid rgba(87, 169, 255, 0.20);
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(240,36,50,0.13), rgba(255,255,255,0.035)),
        rgba(3, 37, 67, 0.20);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
    }

    #drillPanel.is-live-results .live-results-trophy-panel .live-results-achievement {
      border-color: color-mix(in srgb, var(--trophy-accent, #84a2b7) 45%, rgba(87, 169, 255, 0.20));
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--trophy-accent, #84a2b7) 18%, transparent), rgba(255,255,255,0.035)),
        rgba(3, 37, 67, 0.20);
    }

    #drillPanel.is-live-results .live-results-trophy-panel .leaderboard-stat-trophy,
    #drillPanel.is-live-results .live-results-trophy-panel .leaderboard-stat-trophy img {
      width: 58px;
      height: 58px;
    }

    #drillPanel.is-live-results .live-results-trophy-panel .live-results-stat-icon {
      display: grid;
      place-items: center;
      border: 1px solid rgba(87, 169, 255, 0.28);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(87, 169, 255, 0.18), rgba(255,255,255,0.045));
      color: #f5f8fb;
      font-size: 18px;
      font-weight: 1000;
      line-height: 1;
      text-transform: uppercase;
    }

    #drillPanel.is-live-results .live-results-trophy-panel .live-results-achievement strong {
      color: color-mix(in srgb, var(--trophy-accent, #84a2b7) 42%, #f5f8fb);
    }

    #drillPanel.is-live-results .live-results-trophy-panel .leaderboard-stat strong {
      font-size: 18px;
    }

    #drillPanel.is-live-results .live-results-trophy-panel .leaderboard-stat span {
      font-size: 10px;
      line-height: 1.25;
    }

    .leaderboard-stat-rule {
      display: block;
      margin-top: 5px;
      color: rgba(220, 238, 255, 0.68);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.25px;
      line-height: 1.25;
      text-transform: none;
    }

    .desktop-live-panel.is-host-setup {
      display: grid;
      gap: 0;
      min-height: 128px;
      height: auto;
      padding: 0;
      border: 1px solid rgba(226, 237, 244, 0.13);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      overflow: visible;
    }

    .desktop-live-panel.hidden,
    .desktop-live-panel .hidden {
      display: none !important;
    }

    .desktop-live-panel.is-host-setup .desktop-live-host-panel {
      gap: 0;
      height: auto;
      grid-template-rows: repeat(4, 32px);
      border: 0;
      border-radius: 0;
      background: transparent;
      overflow: visible;
    }

    .desktop-live-panel label {
      margin: 0;
      color: rgba(202, 214, 224, 0.82);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .desktop-live-panel input:not([type="checkbox"]) {
      min-height: 38px;
      padding: 8px 10px;
      border-radius: 8px;
    }

    .live-tournament-option {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 32px;
      height: 32px;
      padding: 0 10px;
      margin: 0;
      color: rgba(245, 248, 251, 0.86);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0.35px;
      text-transform: uppercase;
    }

    .live-tournament-option input {
      width: 14px;
      height: 14px;
      margin: 0;
      min-height: 0;
      padding: 0;
      accent-color: var(--red);
      flex: 0 0 auto;
    }

    .desktop-live-panel.is-host-setup input:not([type="checkbox"]) {
      min-height: 26px;
      height: 26px;
      padding: 3px 10px;
    }

    .desktop-live-panel.is-host-setup .live-tournament-option input {
      min-height: 0;
      width: 14px;
      height: 14px;
      margin: 0;
      padding: 0;
    }

    .desktop-live-panel.is-host-setup .live-tournament-option {
      min-height: 32px;
      height: 32px;
      padding: 0 10px;
      gap: 8px;
      border-radius: 0;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.35px;
      line-height: 1.1;
    }

    .desktop-live-panel.is-host-setup .live-setup-status {
      display: none;
    }

    .desktop-live-panel button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      height: 28px;
      padding: 0 9px;
      border-radius: 7px;
      font-size: 10px;
      letter-spacing: 0.7px;
      line-height: 1;
    }

    .desktop-live-panel .desktop-live-role-button {
      display: grid;
      justify-content: start;
      align-items: center;
      min-height: 58px;
      height: auto;
      padding: 9px 10px;
      line-height: 1.15;
      letter-spacing: 0.2px;
    }

    .desktop-live-panel .option-info-button {
      display: inline-grid;
      width: 20px;
      min-width: 20px;
      max-width: 20px;
      height: 20px;
      min-height: 20px;
      max-height: 20px;
      padding: 0;
      border-radius: 999px;
      font-size: 13px;
      letter-spacing: 0;
    }

    .desktop-live-panel button.primary {
      background: linear-gradient(180deg, #ff2636, #d50818);
      box-shadow: 0 0 24px rgba(240, 36, 50, 0.26);
    }

    .desktop-live-panel button:disabled,
    .desktop-live-panel button.primary:disabled {
      cursor: not-allowed;
      background: rgba(255,255,255,0.14);
      box-shadow: none;
      color: rgba(245,248,251,0.72);
    }

    .desktop-live-panel .live-room-code {
      padding: 10px;
    }

    .desktop-live-panel .live-room-code strong {
      font-size: 30px;
    }

    .desktop-live-lobby-panel.is-active-room .live-room-code,
    #drillPanel.is-live-results .live-room-code {
      display: none;
    }

    .desktop-live-panel .live-player-list {
      max-height: 94px;
    }

    #drillPanel.is-live-lobby-setup .desktop-live-panel .live-player-list,
    #drillPanel.is-live-results .desktop-live-panel .live-player-list {
      align-content: start;
      max-height: none;
      min-height: 0;
    }

    #drillPanel.is-live-host-active .desktop-live-panel .live-player-list {
      align-content: start;
      grid-template-columns: minmax(0, 1fr);
      gap: 5px;
      max-height: none;
      min-height: 0;
      overflow: hidden;
    }

    #drillPanel.is-live-host-active .live-player-row,
    #drillPanel.is-live-host-active .live-player-empty {
      min-height: 28px;
      padding: 5px 7px;
      border-radius: 6px;
    }

    #drillPanel.is-live-host-active .live-player-row {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 5px;
    }

    #drillPanel.is-live-host-active .live-player-row.is-remove-confirm {
      grid-template-columns: minmax(0, 1fr) auto 22px;
    }

    #drillPanel.is-live-host-active .live-player-row.is-assigned-turn {
      border-color: rgba(87, 169, 255, 0.85);
      background: linear-gradient(180deg, rgba(0, 58, 101, 0.74), rgba(0, 39, 72, 0.58));
      box-shadow:
        inset 0 0 0 1px rgba(87, 169, 255, 0.22),
        0 0 18px rgba(22, 136, 255, 0.22);
    }

    #drillPanel.is-live-host-active .live-player-row strong {
      gap: 0;
      font-size: 13px;
      line-height: 1;
    }

    #drillPanel.is-live-host-active .live-player-row small {
      font-size: 9px;
      letter-spacing: 0.35px;
      line-height: 1;
    }

    #drillPanel.is-live-host-active .live-player-row span {
      font-size: 9px;
      letter-spacing: 0.35px;
      line-height: 1;
      text-align: right;
    }

    #drillPanel.is-live-host-active .live-player-row.is-remove-confirm span {
      color: #ffb4bd;
    }

    #drillPanel.is-live-host-active .live-player-remove {
      width: 22px;
      min-width: 22px;
      height: 22px;
      min-height: 22px;
      padding: 0;
      font-size: 16px;
    }

    .target {
      border: 1px solid rgba(22,136,255,0.4);
      border-radius: 10px;
      background: rgba(22,136,255,0.11);
      padding: 12px;
    }

    .target small {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .target strong {
      display: block;
      font-size: 22px;
      line-height: 1.1;
    }

    #drillPanel.is-live-dispatching .target {
      display: grid;
      place-items: center;
      align-self: start;
      width: 100%;
      min-height: 64px;
      padding: 10px 12px;
      border: 1px solid rgba(240,36,50,0.70);
      background:
        linear-gradient(90deg, rgba(240,36,50,0.18), rgba(22,136,255,0.06)),
        rgba(22,136,255,0.08);
      box-shadow: 0 0 24px rgba(240,36,50,0.22);
    }

    #drillPanel.is-live-dispatching .target small {
      display: none;
    }

    #drillPanel.is-live-dispatching .target strong {
      color: #ffeff1;
      text-align: center;
      text-transform: uppercase;
      text-shadow: 0 0 18px rgba(240,36,50,0.45);
    }

    .answer-submit-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 116px;
      align-items: center;
      gap: 12px;
      border: 1px solid rgba(240, 36, 50, 0.48);
      border-radius: 8px;
      background: rgba(240, 36, 50, 0.13);
      padding: 12px 14px;
    }

    .answer-submit-panel.hidden {
      display: none;
    }

    .answer-submit-panel small,
    .answer-submit-panel strong {
      display: block;
    }

    .answer-submit-panel small {
      color: rgba(202, 214, 224, 0.86);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }

    .answer-submit-panel strong {
      margin-top: 3px;
      color: #f5f8fb;
      font-size: 14px;
      line-height: 1.18;
    }

    .answer-submit-panel button {
      width: 116px;
      min-height: 40px;
      padding: 0 12px;
      border: 1px solid rgba(240,36,50,0.72);
      background: linear-gradient(180deg, #ff2636, #d50818);
      box-shadow: 0 0 24px rgba(240,36,50,0.26);
      color: #fff;
      white-space: nowrap;
    }

      .score-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      .score-grid.is-hidden {
        display: none;
      }

      .score-tile {
        border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      padding: 8px;
    }

    .score-tile span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .score-tile strong {
      font-size: 17px;
    }

    .timer-green { color: var(--green); }
    .timer-blue { color: #57a9ff; }
    .timer-yellow { color: var(--yellow); }
    .timer-red { color: #ff5d5d; }

    .mode-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .mode-choice {
      display: inline-grid;
      grid-template-columns: auto minmax(0, auto);
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      padding: 11px 12px;
      text-align: center;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .mode-choice.is-active {
      border-color: rgba(22,136,255,0.82);
      background: rgba(22,136,255,0.24);
      color: #e5f3ff;
    }

    .mode-choice.is-disabled {
      cursor: not-allowed;
      opacity: 0.52;
      filter: grayscale(0.35);
    }

    .mode-choice.is-disabled:not(.is-active) {
      border-color: rgba(132, 162, 183, 0.22);
      background: rgba(255,255,255,0.045);
      color: rgba(202, 214, 224, 0.72);
    }

    .mode-choice svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    #practiceModeButton svg {
      width: 20px;
      height: 20px;
      stroke-width: 2.4;
    }

    .live-setup-card {
      width: min(560px, calc(100vw - 28px));
      border-color: rgba(87, 169, 255, 0.34);
    }

    .live-setup-card .competitive-modal-icon {
      border-color: rgba(87, 169, 255, 0.58);
      color: #57a9ff;
      background: rgba(22, 136, 255, 0.10);
      box-shadow: inset 0 0 0 1px rgba(87, 169, 255, 0.12);
    }

    .live-setup-card .competitive-title-lockup {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0;
    }

    .live-setup-card .live-setup-icon {
      position: relative;
      width: 50px;
      height: 50px;
      overflow: hidden;
    }

    .live-setup-card .live-setup-icon svg {
      display: none;
    }

    .live-person {
      position: absolute;
      display: block;
      color: currentColor;
    }

    .live-person::before,
    .live-person::after {
      content: "";
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      background: currentColor;
    }

    .live-person::before {
      border-radius: 999px;
    }

    .live-person::after {
      bottom: 0;
    }

    .live-person-center {
      left: 50%;
      bottom: 10px;
      width: 25px;
      height: 30px;
      transform: translateX(-50%);
      z-index: 3;
    }

    .live-person-center::before {
      top: 0;
      width: 14px;
      height: 14px;
      box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.96);
    }

    .live-person-center::after {
      width: 25px;
      height: 16px;
      border-radius: 13px 13px 5px 5px;
      box-shadow: 0 0 0 2px rgba(4, 18, 28, 0.96);
    }

    .live-person-left,
    .live-person-right {
      bottom: 11px;
      width: 17px;
      height: 24px;
      opacity: 0.88;
      z-index: 1;
    }

    .live-person-left {
      left: 7px;
    }

    .live-person-right {
      right: 7px;
    }

    .live-person-left::before,
    .live-person-right::before {
      top: 1px;
      width: 10px;
      height: 10px;
    }

    .live-person-left::after,
    .live-person-right::after {
      width: 17px;
      height: 13px;
      border-radius: 10px 10px 4px 4px;
    }

    .mode-team-icon {
      position: relative;
      display: inline-block;
      flex: 0 0 auto;
      width: 24px;
      height: 20px;
      color: rgba(202, 214, 224, 0.78);
    }

    .mode-choice.is-active .mode-team-icon {
      color: #57a9ff;
    }

    .mode-team-icon .live-person {
      bottom: 1px;
    }

    .mode-team-icon .live-person-center {
      width: 15px;
      height: 18px;
      bottom: 1px;
    }

    .mode-team-icon .live-person-center::before {
      width: 8px;
      height: 8px;
      box-shadow: 0 0 0 1px rgba(13, 20, 28, 0.95);
    }

    .mode-team-icon .live-person-center::after {
      width: 15px;
      height: 9px;
      border-radius: 9px 9px 3px 3px;
      box-shadow: 0 0 0 1px rgba(13, 20, 28, 0.95);
    }

    .mode-team-icon .live-person-left,
    .mode-team-icon .live-person-right {
      width: 11px;
      height: 15px;
      bottom: 2px;
    }

    .mode-team-icon .live-person-left {
      left: 1px;
    }

    .mode-team-icon .live-person-right {
      right: 1px;
    }

    .mode-team-icon .live-person-left::before,
    .mode-team-icon .live-person-right::before {
      width: 6px;
      height: 6px;
    }

    .mode-team-icon .live-person-left::after,
    .mode-team-icon .live-person-right::after {
      width: 11px;
      height: 8px;
      border-radius: 7px 7px 2px 2px;
    }

    .live-role-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .live-role-button {
      display: grid;
      gap: 7px;
      border: 1px solid rgba(132, 162, 183, 0.24);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
      color: var(--text);
      padding: 14px;
      text-align: left;
    }

    .live-role-button:hover,
    .live-role-button:focus-visible {
      border-color: rgba(87, 169, 255, 0.72);
      background: linear-gradient(180deg, rgba(22, 136, 255, 0.18), rgba(255,255,255,0.05));
      outline: none;
    }

    .live-role-button strong {
      font-size: 14px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .live-role-button span {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .live-panel {
      display: grid;
      gap: 12px;
    }

    .live-room-code {
      display: grid;
      justify-items: center;
      gap: 4px;
      border: 1px solid rgba(87,169,255,0.28);
      border-radius: 8px;
      background: rgba(22,136,255,0.12);
      padding: 14px;
    }

    .live-room-code span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .live-room-code strong {
      font-size: 34px;
      line-height: 1;
      letter-spacing: 4px;
    }

    .live-lobby-meta,
    .live-setup-status {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .live-player-list {
      display: grid;
      gap: 8px;
      max-height: 220px;
      overflow: auto;
    }

    .live-player-row,
    .live-player-empty {
      border: 1px solid rgba(132, 162, 183, 0.20);
      border-radius: 8px;
      background: rgba(255,255,255,0.045);
      padding: 10px 12px;
    }

    .live-player-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
    }

    .live-player-row.is-remove-confirm {
      grid-template-columns: minmax(0, 1fr) auto 26px;
    }

    .live-player-row.can-remove-player {
      cursor: pointer;
    }

    .live-player-row.can-remove-player:focus-visible {
      outline: 2px solid rgba(0, 212, 255, 0.86);
      outline-offset: 2px;
    }

    .live-player-row.is-remove-confirm span {
      color: #ffb4bd;
    }

    .live-player-row strong {
      display: grid;
      gap: 2px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .live-player-row small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .live-player-row span,
    .live-player-empty {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .live-player-remove {
      flex: 0 0 auto;
      display: inline-grid;
      place-items: center;
      width: 26px;
      min-width: 26px;
      height: 26px;
      min-height: 26px;
      padding: 0;
      border: 1px solid rgba(240, 36, 50, 0.58);
      border-radius: 6px;
      background: rgba(240, 36, 50, 0.12);
      color: #ff8d98;
      font-size: 18px;
      font-weight: 900;
      line-height: 1;
      cursor: pointer;
    }

    .live-player-remove:hover {
      background: rgba(240, 36, 50, 0.22);
      color: #ffffff;
    }

    .live-squad-board,
    .live-squad-results-board {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .live-squad-zone,
    .live-squad-result {
      border: 1px solid color-mix(in srgb, var(--squad-accent, #84a2b7) 48%, rgba(132,162,183,0.18));
      border-radius: 8px;
      background: linear-gradient(180deg, color-mix(in srgb, var(--squad-accent, #84a2b7) 12%, rgba(4,14,22,0.96)), rgba(255,255,255,0.025));
      padding: 8px;
      min-width: 0;
    }

    .live-squad-zone.is-drag-over {
      border-color: var(--squad-accent, #84a2b7);
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--squad-accent, #84a2b7) 36%, transparent);
    }

    .live-squad-zone-head,
    .live-squad-result-head,
    .live-squad-result-meta,
    .live-squad-player-result {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
    }

    .live-squad-zone-head,
    .live-squad-result-head {
      margin-bottom: 7px;
    }

    .live-squad-zone-head strong,
    .live-squad-result-head strong {
      display: grid;
      gap: 2px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #f5f8fb;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .live-squad-zone-head strong small {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      color: var(--muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }

    .live-squad-zone-head span,
    .live-squad-result-head span,
    .live-squad-result-head em {
      border-radius: 999px;
      background: color-mix(in srgb, var(--squad-accent, #84a2b7) 18%, rgba(255,255,255,0.05));
      color: #f5f8fb;
      padding: 4px 7px;
      font-size: 11px;
      font-style: normal;
      font-weight: 900;
      line-height: 1;
    }

    .live-squad-zone-body,
    .live-squad-player-results {
      display: grid;
      gap: 6px;
    }

    .live-squad-player.can-drag-player {
      cursor: grab;
      user-select: none;
    }

    .live-squad-player.can-drag-player:active {
      cursor: grabbing;
    }

    .live-squad-empty {
      border: 1px dashed rgba(132,162,183,0.26);
      border-radius: 7px;
      color: rgba(202,214,224,0.60);
      padding: 8px;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.5px;
      text-align: center;
      text-transform: uppercase;
    }

    .live-squad-result.rank-1 {
      border-color: color-mix(in srgb, var(--squad-accent, #f02432) 75%, rgba(255,255,255,0.20));
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--squad-accent, #f02432) 32%, transparent);
    }

    .live-squad-result-meta {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-bottom: 8px;
    }

    .live-squad-result-meta span,
    .live-squad-player-result span,
    .live-squad-player-result small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }

    .live-squad-player-result {
      border-top: 1px solid rgba(226,237,244,0.08);
      padding-top: 6px;
    }

    .live-squad-player-result strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .live-squad-player-result small {
      grid-column: 1 / -1;
    }

    .live-results-board {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .live-results-header {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr) 76px;
      gap: 8px;
      padding: 0 8px 2px;
      color: rgba(202,214,224,0.78);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .live-results-header span:last-child {
      text-align: right;
    }

    .live-results-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) 76px;
      grid-template-areas:
        "rank name score"
        "rank last score"
        "breakdown breakdown breakdown";
      align-items: center;
      gap: 4px 8px;
      border: 1px solid rgba(132, 162, 183, 0.20);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      padding: 8px;
      min-width: 0;
      box-shadow: inset 0 0 0 1px rgba(226,237,244,0.04);
    }

    .live-results-row.rank-1 {
      border-color: rgba(240,36,50,0.72);
      background: linear-gradient(90deg, rgba(240,36,50,0.23), rgba(255,255,255,0.035));
      box-shadow: inset 0 0 0 1px rgba(240,36,50,0.28), 0 0 18px rgba(240,36,50,0.14);
    }

    .live-results-row.rank-2 {
      border-color: rgba(202,214,224,0.36);
    }

    .live-results-row.rank-3 {
      border-color: rgba(205,119,51,0.52);
    }

    .live-results-rank {
      grid-area: rank;
      display: grid;
      place-items: center;
    }

    .live-results-rank .rank-medal {
      margin: 0;
    }

    .live-results-person {
      grid-area: name;
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .live-results-person strong {
      overflow: hidden;
      color: #f5f8fb;
      font-size: 15px;
      line-height: 1.05;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .live-results-person small,
    .live-results-last {
      overflow: hidden;
      color: rgba(202,214,224,0.74);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.35px;
      line-height: 1.15;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .live-results-score {
      grid-area: score;
      display: grid;
      justify-items: end;
      align-content: center;
      gap: 1px;
      min-width: 0;
    }

    .live-results-score strong {
      color: var(--red);
      font-size: 20px;
      line-height: 1;
      letter-spacing: 0.3px;
    }

    .live-results-score span {
      color: rgba(202,214,224,0.76);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .live-results-last {
      grid-area: last;
      color: rgba(245,248,251,0.78);
    }

    .live-results-breakdown {
      grid-area: breakdown;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 4px;
      padding-top: 3px;
    }

    .live-results-breakdown span {
      display: inline-grid;
      place-items: center;
      min-height: 20px;
      border: 1px solid rgba(132,162,183,0.18);
      border-radius: 5px;
      background: rgba(2,10,16,0.30);
      color: rgba(202,214,224,0.78);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.35px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    @media (max-width: 700px) {
      .live-role-grid {
        grid-template-columns: 1fr;
      }

      .live-room-code strong {
        font-size: 30px;
      }
    }

    .round-summary {
      display: none;
      align-content: start;
      align-self: start;
      grid-template-rows: auto auto;
      border: 1px solid rgba(47,209,108,0.34);
      border-radius: 10px;
      background: linear-gradient(180deg, rgba(47,209,108,0.13), rgba(255,255,255,0.045));
      overflow: hidden;
      min-width: 0;
    }

    .round-summary.visible {
      display: grid;
    }

    .round-summary [hidden] {
      display: none !important;
    }

    .summary-bar {
      display: none;
      height: 0;
      background: var(--green);
    }

    .summary-body {
      display: grid;
      align-content: start;
      gap: 9px;
      padding: 12px;
    }

    .round-summary.visible .summary-body {
      min-height: 0;
    }

    .summary-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
      border: 1px solid rgba(132, 162, 183, 0.18);
      border-radius: 9px;
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--summary-accent, var(--blue)) 10%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    }

    .summary-hero strong {
      display: block;
      font-size: 36px;
      line-height: 1;
    }

    .summary-progress {
      width: 100%;
      height: 7px;
      margin-top: 7px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(132, 162, 183, 0.18);
      box-shadow: inset 0 1px 4px rgba(0,0,0,0.36);
    }

    .summary-progress-fill {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: var(--summary-accent, var(--blue));
      box-shadow:
        0 0 14px color-mix(in srgb, var(--summary-accent, var(--blue)) 55%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.30);
      transition: width 420ms ease;
      }

    .summary-hero span,
    .summary-subtitle {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .summary-subtitle {
      display: grid;
      gap: 4px;
      margin: 0;
      padding: 9px 10px;
      border: 1px solid rgba(132, 162, 183, 0.18);
      border-radius: 8px;
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--summary-accent, var(--blue)) 11%, transparent), transparent 62%),
        rgba(255,255,255,0.035);
      line-height: 1.25;
    }

    .summary-feedback-label {
      color: rgba(202, 214, 224, 0.68);
      font-size: 9px;
      font-weight: 1000;
      letter-spacing: 1px;
      line-height: 1;
      text-transform: uppercase;
    }

    .summary-feedback-main {
      color: #f5f8fb;
      font-size: 12.5px;
      font-weight: 900;
      line-height: 1.25;
    }

    .summary-feedback-focus {
      color: rgba(220, 238, 255, 0.88);
      font-size: 11.5px;
      font-weight: 800;
      line-height: 1.3;
    }

    .summary-feedback-score {
      display: none;
      color: rgba(202, 214, 224, 0.72);
      font-size: 11px;
      font-weight: 900;
      line-height: 1.2;
    }

    .performance-badge {
      width: fit-content;
      max-width: 100%;
      border: 1px solid color-mix(in srgb, var(--summary-accent, var(--green)) 55%, rgba(255,255,255,0.12));
      border-radius: 8px;
      padding: 7px 10px;
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--summary-accent, var(--green)) 20%, rgba(255,255,255,0.06)), rgba(255,255,255,0.025)),
        rgba(5, 20, 31, 0.86);
      color: var(--summary-accent, var(--green));
      font-size: 11px;
      font-weight: 1000;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      white-space: nowrap;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 18px color-mix(in srgb, var(--summary-accent, var(--green)) 20%, transparent);
    }

    .summary-trophy-card {
      display: grid;
      grid-template-columns: 54px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border: 1px solid color-mix(in srgb, var(--trophy-accent, #84a2b7) 48%, rgba(132, 162, 183, 0.18));
      border-radius: 9px;
      background:
        linear-gradient(90deg, color-mix(in srgb, var(--trophy-accent, #84a2b7) 18%, transparent), transparent 72%),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
      overflow: hidden;
    }

    .summary-trophy-card img {
      width: 54px;
      height: 54px;
      object-fit: contain;
      filter: drop-shadow(0 8px 16px rgba(0,0,0,0.36));
    }

    .summary-trophy-card span {
      display: block;
      color: color-mix(in srgb, var(--trophy-accent, #84a2b7) 72%, rgba(202, 214, 224, 0.72));
      font-size: 9px;
      font-weight: 1000;
      letter-spacing: 1px;
      line-height: 1;
      text-transform: uppercase;
    }

    .summary-trophy-card strong {
      display: block;
      margin-top: 4px;
      color: #f5f8fb;
      font-size: 16px;
      font-weight: 1000;
      line-height: 1.05;
      overflow-wrap: anywhere;
    }

    .summary-trophy-card p {
      display: grid;
      gap: 2px;
      margin: 5px 0 0;
      color: rgba(220, 238, 255, 0.84);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.25;
    }

    .summary-trophy-tier,
    .summary-trophy-rule,
    .summary-trophy-why {
      display: block;
    }

    .summary-trophy-tier {
      color: color-mix(in srgb, var(--trophy-accent, #84a2b7) 78%, #ffffff);
    }

    .summary-trophy-rule {
      display: none;
      color: rgba(202, 214, 224, 0.78);
    }

    .summary-trophy-why {
      color: rgba(245, 248, 251, 0.92);
    }

    .summary-metrics,
    .tier-grid {
      display: none;
      gap: 8px;
    }

    .round-summary.street-summary-open .summary-metrics,
    .round-summary.street-summary-open .tier-grid {
      display: grid;
    }

    .round-summary:not(.street-summary-open) .summary-metrics,
    .round-summary:not(.street-summary-open) .tier-grid,
    .round-summary:not(.street-summary-open) .street-summary-strip,
    .round-summary:not(.street-summary-open) .round-results-panel {
      display: none !important;
    }

    .round-summary.street-summary-open .summary-metrics,
    .round-summary.street-summary-open .tier-grid {
      display: grid !important;
    }

    .summary-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

      .tier-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

    .summary-metric,
    .tier-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      padding: 9px;
      min-width: 0;
    }

    .summary-metric span,
    .tier-card span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
      margin-bottom: 4px;
      overflow-wrap: anywhere;
      line-height: 1.15;
    }

    .summary-metric strong,
    .tier-card strong {
      font-size: 17px;
      overflow-wrap: anywhere;
    }

    .tier-card strong {
      display: block;
      font-size: 24px;
      line-height: 1;
    }

    .summary-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .summary-actions button {
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere;
      padding-inline: 8px;
    }

    .round-results-panel {
      display: none;
      gap: 8px;
      max-height: 360px;
      overflow: auto;
      padding-right: 3px;
    }

    .round-results-panel.visible {
      display: grid;
    }

    .round-summary.street-summary-open {
      align-self: stretch;
      overflow: auto;
    }

    .round-summary.street-summary-open .summary-body {
      grid-template-rows: none;
      min-height: 0;
    }

    .round-summary.street-summary-open .summary-metrics {
      margin-top: 8px;
    }

    .round-summary.street-summary-open #toggleRoundResultsBtn {
      order: 6;
    }

    .round-summary.street-summary-open .summary-metrics {
      order: 1;
    }

    .round-summary.street-summary-open .tier-grid {
      order: 3;
    }

    .round-summary.street-summary-open .street-summary-strip {
      order: 2;
    }

    .round-summary.street-summary-open .round-results-panel {
      order: 4;
    }

    .round-summary.street-summary-open .summary-actions {
      order: 7;
    }

    .round-summary.street-summary-open .round-results-panel.visible {
      align-content: start;
      min-height: 0;
      max-height: 360px;
    }

    .round-result-item {
      border: 1px solid var(--line);
      border-left-width: 4px;
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      padding: 8px 10px;
      min-width: 0;
    }

    .round-result-focus {
      border-color: rgba(255, 211, 77, 0.42);
      box-shadow:
        inset 0 0 0 1px rgba(255, 211, 77, 0.12),
        0 0 20px rgba(255, 211, 77, 0.08);
    }

    .street-summary-strip {
      display: none;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
    }

    .street-summary-strip.visible {
      display: grid;
    }

    .street-summary-strip span {
      display: grid;
      gap: 2px;
      min-width: 0;
      padding: 8px;
      border: 1px solid rgba(226, 237, 244, 0.10);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .street-summary-strip strong {
      color: #f5f8fb;
      font-size: 15px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: none;
      overflow-wrap: anywhere;
    }

    .round-result-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: start;
    }

    .round-result-name {
      display: block;
      font-size: 14px;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .round-result-meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, auto));
      justify-content: start;
      gap: 6px 10px;
      margin-top: 5px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.15;
    }

    .round-result-tier {
      font-weight: 900;
      text-align: right;
      white-space: nowrap;
    }

    .round-result-badges {
      display: grid;
      justify-items: end;
      gap: 4px;
      min-width: 0;
    }

    .round-result-review {
      border: 1px solid rgba(255, 211, 77, 0.34);
      border-radius: 999px;
      padding: 2px 6px;
      color: #ffd34d;
      background: rgba(255, 211, 77, 0.10);
      font-size: 8px;
      font-weight: 900;
      letter-spacing: 0.7px;
      line-height: 1;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .round-result-label {
      color: rgba(202, 214, 224, 0.62);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .result-firstdue,
    .result-1stdue { border-left-color: #2fd16c; background: rgba(47,209,108,0.12); }
    .result-firstdue .round-result-tier,
    .result-1stdue .round-result-tier { color: #2fd16c; }
    .result-seconddue,
    .result-2nddue { border-left-color: #57a9ff; background: rgba(87,169,255,0.12); }
    .result-seconddue .round-result-tier,
    .result-2nddue .round-result-tier { color: #57a9ff; }
    .result-thirddue,
    .result-3rddue { border-left-color: #ffd34d; background: rgba(255,211,77,0.12); }
    .result-thirddue .round-result-tier,
    .result-3rddue .round-result-tier { color: #ffd34d; }
    .result-rit,
    .result-miss { border-left-color: #ff5d5d; background: rgba(255,93,93,0.12); }
    .result-rit .round-result-tier,
    .result-miss .round-result-tier { color: #ff5d5d; }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 240;
      display: grid;
      place-items: center;
      background: rgba(0, 0, 0, 0.62);
      padding: 20px;
    }

    .modal-card {
      width: min(1220px, calc(100vw - 48px));
      max-height: min(88vh, 820px);
      overflow: auto;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 12px;
      background: rgba(8, 28, 40, 0.98);
      box-shadow: 0 26px 80px rgba(0,0,0,0.46);
      padding: 20px;
    }

    .competitive-setup-card {
      width: min(680px, calc(100vw - 48px));
      overflow: hidden;
      border-color: rgba(240,36,50,0.28);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7, 24, 36, 0.96), rgba(4, 15, 24, 0.985)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
      box-shadow:
        0 28px 80px rgba(0,0,0,0.52),
        inset 0 1px 0 rgba(255,255,255,0.04);
      padding: 18px;
    }

    .modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
    }

    .modal-head h2 {
      margin: 0 0 6px;
      font-size: 24px;
    }

    .modal-head p {
      margin: 0;
      color: var(--muted);
    }

    .modal-close {
      width: auto;
      min-width: 46px;
      padding: 10px 14px;
      background: rgba(255,255,255,0.14);
    }

    .changelog-card {
      width: min(760px, calc(100vw - 48px));
      max-height: min(78vh, 840px);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      border-radius: 8px;
      border-color: rgba(22,136,255,0.42);
      background:
        radial-gradient(circle at 86% 0%, rgba(22,136,255,0.18), transparent 40%),
        radial-gradient(circle at 8% 16%, rgba(22,136,255,0.12), transparent 34%),
        linear-gradient(135deg, rgba(9, 31, 45, 0.98), rgba(3, 14, 23, 0.985) 58%, rgba(6, 24, 36, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.026) 0 8px, transparent 8px 18px);
      box-shadow:
        0 28px 90px rgba(0,0,0,0.62),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 0 42px rgba(22,136,255,0.08);
    }

    .changelog-card .modal-head {
      position: relative;
      z-index: 2;
      align-items: center;
      margin: -20px -20px 0;
      padding: 20px 20px 16px;
      border-bottom: 1px solid rgba(226, 237, 244, 0.10);
      background:
        linear-gradient(180deg, rgba(8, 28, 40, 0.40), rgba(8, 28, 40, 0.12));
    }

    .changelog-card .leaderboard-title-icon svg {
      width: 25px;
      height: 25px;
    }

    .changelog-card .leaderboard-title-icon {
      border-color: rgba(22,136,255,0.58);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
      color: #57a9ff;
      box-shadow:
        inset 0 0 18px rgba(22,136,255,0.08),
        0 0 18px rgba(22,136,255,0.16);
    }

    .changelog-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 32px;
      line-height: 0.95;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .changelog-card .modal-head p {
      margin-top: 8px;
      color: rgba(202, 214, 224, 0.82);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 1.1px;
      line-height: 1.05;
      text-transform: uppercase;
    }

    .changelog-card .modal-close {
      flex: 0 0 auto;
      min-width: 42px;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 22px rgba(0,0,0,0.18);
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }

    .changelog-card .modal-close:hover,
    .changelog-card .modal-close:focus-visible {
      border-color: rgba(226,237,244,0.24);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
      outline: none;
    }

    .profile-details-card {
      width: min(520px, calc(100vw - 48px));
      overflow: hidden;
      border-radius: 8px;
      border-color: rgba(22,136,255,0.38);
      background:
        radial-gradient(circle at 88% 0%, rgba(22,136,255,0.16), transparent 38%),
        linear-gradient(135deg, rgba(9, 31, 45, 0.98), rgba(3, 14, 23, 0.985) 62%, rgba(6, 24, 36, 0.98));
      box-shadow:
        0 28px 90px rgba(0,0,0,0.62),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 0 42px rgba(22,136,255,0.08);
    }

    .profile-details-card .modal-head {
      align-items: center;
      margin: -20px -20px 0;
      padding: 20px 20px 16px;
      border-bottom: 1px solid rgba(226, 237, 244, 0.10);
      background:
        linear-gradient(180deg, rgba(8, 28, 40, 0.40), rgba(8, 28, 40, 0.12));
    }

    .profile-details-card .leaderboard-title-icon {
      border-color: rgba(22,136,255,0.58);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
      color: #57a9ff;
      box-shadow:
        inset 0 0 18px rgba(22,136,255,0.08),
        0 0 18px rgba(22,136,255,0.16);
    }

    .profile-details-card .leaderboard-title-icon svg {
      width: 25px;
      height: 25px;
    }

    .profile-details-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 26px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .profile-details-card .modal-head p {
      margin-top: 7px;
      color: rgba(202, 214, 224, 0.82);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      line-height: 1.05;
      text-transform: uppercase;
    }

    .profile-details-card .modal-close {
      flex: 0 0 auto;
      min-width: 42px;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 22px rgba(0,0,0,0.18);
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }

    .profile-details-card .modal-close:hover,
    .profile-details-card .modal-close:focus-visible {
      border-color: rgba(226,237,244,0.24);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
      outline: none;
    }

    .profile-details-card .profile-future-fields {
      margin-top: 14px;
      padding-top: 0;
    }

    .changelog-list {
      display: grid;
      gap: 16px;
      min-height: 0;
      margin-top: 0;
      padding-top: 18px;
      overflow: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
    }

    .changelog-list::-webkit-scrollbar {
      width: 8px;
    }

    .changelog-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.035);
      border-left: 1px solid rgba(226, 237, 244, 0.08);
      border-radius: 999px;
      margin: 8px 2px;
    }

    .changelog-list::-webkit-scrollbar-thumb {
      min-height: 32px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
      border: 2px solid rgba(5, 18, 28, 0.96);
    }

    .changelog-list::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(240, 248, 252, 0.84), rgba(160, 190, 210, 0.64));
    }

    .document-view {
      min-height: 0;
      margin-top: 0;
      padding-top: 18px;
      overflow: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
    }

    .document-view::-webkit-scrollbar {
      width: 8px;
    }

    .document-view::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.035);
      border-left: 1px solid rgba(226, 237, 244, 0.08);
      border-radius: 999px;
      margin: 8px 2px;
    }

    .document-view::-webkit-scrollbar-thumb {
      min-height: 32px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
      border: 2px solid rgba(5, 18, 28, 0.96);
    }

    .document-title {
      margin: 0;
    }

    .document-subtitle {
      margin-top: 8px;
    }

    .document-section {
      padding: 0 0 18px;
      border-bottom: 1px solid rgba(226,237,244,0.09);
    }

    .document-section + .document-section {
      margin-top: 18px;
    }

    .document-section:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .document-heading {
      margin: 0 0 9px;
      color: rgba(202,214,224,0.86);
      font-size: var(--ui-section-title-size);
      font-weight: 950;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.2;
      text-transform: uppercase;
    }

    .document-body {
      color: rgba(226,237,244,0.86);
      font-size: 14px;
      font-weight: 750;
      line-height: 1.58;
    }

    .document-body p,
    .document-body dl,
    .document-body ul {
      margin: 0;
    }

    .document-body p + p,
    .document-body p + dl,
    .document-body dl + p,
    .document-body p + ul,
    .document-body ul + p {
      margin-top: 10px;
    }

    .document-body ul {
      padding-left: 18px;
    }

    .changelog-entry {
      padding: 14px;
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 8px;
      background: rgba(255,255,255,0.035);
    }

    .changelog-entry h3 {
      margin: 0 0 8px;
      color: #f5f8fb;
      font-size: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .changelog-entry ul {
      margin: 0;
      padding-left: 18px;
      color: rgba(226,237,244,0.86);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.55;
    }

    .version-info-body {
      gap: 14px;
    }

    .version-info-summary {
      background:
        linear-gradient(180deg, rgba(22,136,255,0.12), rgba(255,255,255,0.035));
    }

    .version-info-list {
      display: grid;
      gap: 10px;
      margin: 0;
    }

    .version-info-list div {
      display: grid;
      grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1fr);
      gap: 12px;
      align-items: baseline;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(226,237,244,0.08);
    }

    .version-info-list div:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .version-info-list dt,
    .version-info-list dd {
      margin: 0;
    }

    .version-info-list dt {
      color: rgba(202,214,224,0.72);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.9px;
      line-height: 1.25;
      text-transform: uppercase;
    }

    .version-info-list dd {
      color: #f5f8fb;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.35;
    }

    .training-guide-card {
      width: min(860px, calc(100vw - 48px));
      max-height: min(84vh, 860px);
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr);
      overflow: hidden;
      border-radius: 8px;
      border-color: rgba(87,169,255,0.36);
      background:
        radial-gradient(circle at 88% 0%, rgba(47,209,108,0.12), transparent 38%),
        radial-gradient(circle at 10% 18%, rgba(87,169,255,0.14), transparent 36%),
        linear-gradient(135deg, rgba(8, 29, 43, 0.985), rgba(3, 14, 23, 0.99) 62%, rgba(7, 24, 36, 0.985));
      box-shadow:
        0 28px 90px rgba(0,0,0,0.62),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .training-guide-card .modal-head {
      align-items: center;
      margin: -20px -20px 0;
      padding: 20px 20px 16px;
      border-bottom: 1px solid rgba(226,237,244,0.10);
      background: linear-gradient(180deg, rgba(8,28,40,0.42), rgba(8,28,40,0.10));
    }

    .training-guide-card .leaderboard-title-icon {
      color: #57a9ff;
      border-color: rgba(87,169,255,0.58);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
    }

    .training-guide-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 30px;
      line-height: 0.96;
      text-transform: uppercase;
    }

    .training-guide-card .modal-head p {
      margin-top: 8px;
      color: rgba(202,214,224,0.82);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.9px;
      text-transform: uppercase;
    }

    .training-guide-card .modal-close {
      min-width: 42px;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      font-size: 15px;
      font-weight: 900;
    }

    .about-app-card {
      width: min(780px, calc(100vw - 48px));
      max-height: min(82vh, 840px);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      overflow: hidden;
      border-radius: 8px;
      border-color: rgba(87,169,255,0.34);
      background:
        linear-gradient(135deg, rgba(8, 29, 43, 0.985), rgba(3, 14, 23, 0.99) 62%, rgba(7, 24, 36, 0.985));
      box-shadow:
        0 28px 90px rgba(0,0,0,0.62),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .about-app-card .modal-head {
      align-items: center;
      margin: -20px -20px 0;
      padding: 20px 20px 16px;
      border-bottom: 1px solid rgba(226,237,244,0.10);
      background: linear-gradient(180deg, rgba(8,28,40,0.42), rgba(8,28,40,0.10));
    }

    .about-app-card .leaderboard-title-icon {
      color: #57a9ff;
      border-color: rgba(87,169,255,0.58);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
    }

    .about-app-card .leaderboard-title-icon svg {
      width: 25px;
      height: 25px;
    }

    .about-app-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 30px;
      line-height: 0.96;
      text-transform: uppercase;
    }

    .about-app-card .modal-head p {
      margin-top: 8px;
      color: rgba(202,214,224,0.82);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.9px;
      line-height: 1.24;
      text-transform: uppercase;
    }

    .about-app-card .modal-close {
      min-width: 42px;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      font-size: 15px;
      font-weight: 900;
    }

    .about-app-body {
      display: grid;
      gap: 8px;
      min-height: 0;
      overflow: auto;
      padding-top: 12px;
      scrollbar-width: thin;
      scrollbar-color: rgba(202,214,224,0.48) rgba(255,255,255,0.035);
    }

    .about-app-section {
      padding: 14px;
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 8px;
      background: rgba(255,255,255,0.04);
    }

    details.about-app-section {
      padding: 0;
      overflow: hidden;
    }

    .about-app-section[open] {
      border-color: rgba(87,169,255,0.36);
      background:
        linear-gradient(180deg, rgba(22,136,255,0.11), rgba(255,255,255,0.04));
    }

    .about-app-section summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-height: var(--btn-height);
      padding: 0 var(--btn-padding-x);
      color: #f5f8fb;
      cursor: pointer;
      font-size: var(--btn-font-size);
      font-weight: var(--btn-font-weight);
      letter-spacing: var(--btn-letter-spacing);
      line-height: 1;
      list-style: none;
      text-transform: uppercase;
    }

    .about-app-section summary::-webkit-details-marker {
      display: none;
    }

    .about-app-section summary::after {
      content: "+";
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 7px;
      background: rgba(255,255,255,0.06);
      color: rgba(226,237,244,0.86);
      font-size: 14px;
      line-height: 1;
    }

    .about-app-section[open] summary::after {
      content: "-";
      border-color: rgba(87,169,255,0.42);
      color: #f5f8fb;
    }

    .about-app-section-content {
      padding: 10px 14px 14px;
      border-top: 1px solid rgba(226,237,244,0.08);
    }

    section.about-app-section .about-app-section-content {
      padding: 0;
      border-top: 0;
    }

    .about-app-section h3 {
      margin: 0 0 10px;
      color: #f5f8fb;
      font-size: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .about-app-section p {
      margin: 0;
      color: rgba(226,237,244,0.86);
      font-size: 14px;
      font-weight: 750;
      line-height: 1.55;
    }

    .about-app-section p + p {
      margin-top: 10px;
    }

    .training-guide-tabs {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      padding: 14px 0 12px;
      border-bottom: 1px solid rgba(226,237,244,0.08);
    }

    .training-guide-tab {
      min-height: 38px;
      border-radius: 7px;
      border: 1px solid rgba(226,237,244,0.12);
      background: rgba(255,255,255,0.06);
      color: rgba(226,237,244,0.84);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .training-guide-tab.is-active {
      border-color: rgba(87,169,255,0.76);
      background: linear-gradient(180deg, rgba(22,136,255,0.30), rgba(3,55,92,0.20));
      color: #f5f8fb;
      box-shadow: inset 0 0 0 1px rgba(87,169,255,0.18);
    }

    .training-guide-body {
      min-height: 0;
      overflow: auto;
      padding-top: 14px;
      scrollbar-width: thin;
      scrollbar-color: rgba(202,214,224,0.48) rgba(255,255,255,0.035);
    }

    .training-guide-panel {
      display: none;
    }

    .training-guide-panel.is-active {
      display: block;
    }

    .training-guide-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .training-guide-score-grid {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .training-guide-info-card,
    .training-badge-card,
    .training-guide-callout {
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 8px;
      background: rgba(255,255,255,0.045);
      padding: 14px;
    }

    .training-guide-info-card h3,
    .training-badge-tier h3 {
      margin: 0 0 10px;
      color: #f5f8fb;
      font-size: 15px;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .training-guide-info-card p,
    .training-guide-info-card li,
    .training-guide-callout {
      color: rgba(226,237,244,0.84);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.45;
    }

    .training-guide-info-card p {
      margin: 0 0 10px;
    }

    .training-guide-info-card p:last-child {
      margin-bottom: 0;
    }

    .training-guide-info-card ul {
      margin: 0;
      padding-left: 18px;
    }

    .score-rule-list {
      display: grid;
      gap: 8px;
    }

    .score-rule-list div {
      display: grid;
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.75fr) minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      padding: 8px 10px;
      border-radius: 7px;
      background: rgba(4,18,28,0.46);
      color: rgba(226,237,244,0.86);
      font-size: 12px;
      font-weight: 900;
    }

    .score-rule-list strong {
      color: #f5f8fb;
    }

    .score-rule-list em {
      justify-self: end;
      color: rgba(202,214,224,0.84);
      font-style: normal;
    }

    .training-guide-callout {
      margin-bottom: 14px;
      border-color: rgba(255,211,77,0.34);
      background: rgba(255,211,77,0.08);
      color: rgba(255,239,184,0.94);
    }

    .training-badge-list {
      display: grid;
      gap: 14px;
    }

    .training-badge-tier {
      display: grid;
      gap: 9px;
    }

    .training-badge-tier h3 {
      color: var(--badge-tier-color);
    }

    .training-badge-tier-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }

    .training-badge-card {
      border-left: 4px solid var(--badge-tier-color);
      padding: 11px 12px;
    }

    .training-badge-card strong {
      display: block;
      margin-bottom: 5px;
      color: #f5f8fb;
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .training-badge-card span {
      display: block;
      color: rgba(226,237,244,0.82);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.38;
    }

    .competitive-setup-card .modal-head {
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(226, 237, 244, 0.08);
    }

    .competitive-title-lockup {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .competitive-modal-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(240,36,50,0.56);
      border-radius: 7px;
      color: var(--red);
      background: rgba(240,36,50,0.08);
      box-shadow: inset 0 0 0 1px rgba(240,36,50,0.08);
    }

    .competitive-modal-icon svg {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .competitive-setup-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 20px;
      line-height: 1.05;
      letter-spacing: 0.3px;
    }

    .competitive-setup-card .modal-head p {
      margin-top: 5px;
      color: rgba(202, 214, 224, 0.78);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.35;
    }

    .competitive-setup-card .modal-close {
      min-width: 34px;
      width: 34px;
      height: 34px;
      padding: 0;
      border-radius: 7px;
      border-color: rgba(226,237,244,0.14);
      background: rgba(255,255,255,0.07);
      color: #f5f8fb;
      font-size: 14px;
      font-weight: 900;
      line-height: 1;
    }

    .competitive-setup-card .modal-close:hover,
    .competitive-setup-card .modal-close:focus-visible {
      border-color: rgba(240,36,50,0.58);
      background: rgba(240,36,50,0.12);
      outline: none;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .competitive-setup-fields {
      gap: 10px;
      align-items: end;
    }

    .competitive-setup-fields > div {
      min-width: 0;
    }

    .competitive-setup-fields label {
      margin-bottom: 7px;
      color: #f2f7fb;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 1.15px;
      line-height: 1;
      text-transform: uppercase;
    }

    .competitive-setup-fields select {
      min-height: 38px;
      padding: 8px 30px 8px 10px;
      border-radius: 7px;
      border-color: rgba(226, 237, 244, 0.16);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
      color: #f5f8fb;
      box-shadow: inset 0 0 18px rgba(255,255,255,0.018);
      font-size: 12px;
      font-weight: 800;
    }

    .competitive-setup-card .modal-actions {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(226, 237, 244, 0.08);
    }

    .competitive-setup-card .modal-actions button {
      min-width: 220px;
      min-height: 38px;
      border-radius: 7px;
      font-size: 12px;
      letter-spacing: 0.85px;
    }

    .active-drill-confirm-card {
      width: min(720px, calc(100vw - 48px));
      border-color: rgba(240, 36, 50, 0.30);
      background:
        radial-gradient(circle at 88% 0%, rgba(22, 136, 255, 0.16), transparent 38%),
        radial-gradient(circle at 8% 18%, rgba(240, 36, 50, 0.13), transparent 32%),
        linear-gradient(135deg, rgba(9, 31, 45, 0.98), rgba(3, 14, 23, 0.985) 58%, rgba(6, 24, 36, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.026) 0 8px, transparent 8px 18px);
      box-shadow:
        0 28px 90px rgba(0,0,0,0.62),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 0 42px rgba(22,136,255,0.055);
      padding: 20px 26px 26px;
    }

    .active-drill-confirm-card .modal-head {
      margin-bottom: 18px;
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(226, 237, 244, 0.11);
    }

    .active-drill-confirm-card .competitive-title-lockup {
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 14px;
    }

    .active-drill-confirm-card .competitive-modal-icon {
      width: 42px;
      height: 42px;
      border-color: rgba(240, 36, 50, 0.72);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(240,36,50,0.16), rgba(240,36,50,0.055));
      box-shadow:
        inset 0 0 0 1px rgba(240,36,50,0.14),
        0 0 22px rgba(240,36,50,0.16);
    }

    .active-drill-confirm-card .competitive-modal-icon svg {
      width: 23px;
      height: 23px;
    }

    .active-drill-confirm-card .modal-head h2 {
      font-size: 24px;
      letter-spacing: 0;
    }

    .active-drill-confirm-card .modal-head p {
      margin-top: 7px;
      color: rgba(222, 232, 239, 0.82);
      font-size: 13px;
      font-weight: 800;
    }

    .active-drill-confirm-card .modal-close {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .active-drill-confirm-card .modal-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 10px;
      margin-top: 0;
      padding-top: 4px;
      border-top: 1px solid rgba(226, 237, 244, 0.05);
    }

    .active-drill-confirm-card .modal-actions button {
      width: 100%;
      min-width: 0;
      min-height: 46px;
      border-radius: 8px;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 12px 28px rgba(0,0,0,0.24);
    }

    #activeDrillCancelBtn {
      color: #f5f8fb;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      border: 1px solid rgba(226, 237, 244, 0.12);
    }

    #activeDrillConfirmBtn {
      background:
        linear-gradient(180deg, #ff2636, #d50818);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 28px rgba(240,36,50,0.22);
    }

    .live-removed-card .modal-actions {
      grid-template-columns: minmax(0, 1fr);
    }

    .live-removed-card #liveRemovedMainMenuBtn {
      background:
        linear-gradient(180deg, #1688ff, #0758b9);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 28px rgba(22,136,255,0.22);
    }

    #competitiveStartBtn {
      display: inline-grid;
      grid-template-columns: auto minmax(0, auto);
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-width: 190px;
      min-height: 34px;
      border: 1px solid rgba(240,36,50,0.72);
      background:
        linear-gradient(180deg, #ff2636, #d50818);
      color: #fff;
      box-shadow: 0 0 24px rgba(240,36,50,0.26);
      text-shadow: none;
    }

    #competitiveStartBtn::before {
      content: "";
      width: 11px;
      height: 6px;
      border-left: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      rotate: -45deg;
      filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2));
    }

    #competitiveStartBtn:not(.is-disabled):not(:disabled):hover,
    #competitiveStartBtn:not(.is-disabled):not(:disabled):focus-visible {
      border-color: rgba(240,36,50,0.82);
      background:
        linear-gradient(180deg, #ff3140, #d50818);
      color: #fff;
      box-shadow: 0 0 28px rgba(240,36,50,0.30);
      outline: none;
    }

    #competitiveStartBtn.is-disabled,
    #competitiveStartBtn:disabled {
      border-color: rgba(226, 237, 244, 0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
      color: rgba(245,248,251,0.58);
      box-shadow: none;
      text-shadow: none;
    }

    .leaderboard-card {
      width: 100%;
      height: 100%;
      max-height: none;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      border: 0;
      border-radius: 0;
      background:
        radial-gradient(circle at 12% 8%, rgba(22,136,255,0.08), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(87,169,255,0.035), transparent 38%),
        linear-gradient(135deg, rgba(5, 17, 27, 0.98), rgba(2, 10, 16, 0.99) 58%, rgba(5, 20, 31, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 46px rgba(22,136,255,0.025);
      padding: 22px 26px;
    }

    #leaderboardModal {
      position: absolute;
      inset: 0;
      z-index: 8;
      display: block;
      padding: 0;
      background:
        linear-gradient(180deg, rgba(0,0,0,0.70), rgba(0,0,0,0.82)),
        radial-gradient(circle at 50% 0%, rgba(22,136,255,0.08), transparent 42%);
    }

    .leaderboard-card .modal-head {
      align-items: center;
      margin-bottom: 16px;
    }

    .leaderboard-title-lockup {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
    }

    .leaderboard-title-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(240,36,50,0.58);
      border-radius: 6px;
      background:
        linear-gradient(180deg, rgba(240,36,50,0.16), rgba(240,36,50,0.055));
      color: var(--red);
      box-shadow:
        inset 0 0 0 1px rgba(240,36,50,0.12),
        0 0 22px rgba(240,36,50,0.14);
    }

    .leaderboard-title-icon svg {
      width: 25px;
      height: 25px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.25;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .leaderboard-card .modal-head h2 {
      margin: 0;
      font-size: 24px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .leaderboard-card .modal-head p {
      margin-top: 5px;
      color: rgba(202,214,224,0.74);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .leaderboard-scope-note {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 10px;
      border: 1px solid rgba(87,169,255,0.28);
      border-radius: 999px;
      background: rgba(22,136,255,0.10);
      color: rgba(220,238,255,0.86);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .leaderboard-card .modal-head .leaderboard-scope-note {
      margin-left: auto;
      margin-right: 10px;
    }

    .leaderboard-card .modal-close {
      min-width: 42px;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 22px rgba(0,0,0,0.18);
      font-size: 15px;
      font-weight: 900;
      line-height: 1;
    }

    .leaderboard-card .modal-close:hover,
    .leaderboard-card .modal-close:focus-visible {
      border-color: rgba(226,237,244,0.24);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
      outline: none;
    }

    .leaderboard-shell {
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr) auto;
      gap: 12px;
      min-height: 0;
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(132,162,183,0.24);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7,22,34,0.74), rgba(3,13,21,0.88)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 8px, transparent 8px 18px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        inset 0 0 30px rgba(22,136,255,0.025);
    }

    .leaderboard-filters {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(170px, 230px);
      gap: 10px;
      margin-bottom: 0;
      min-width: 0;
    }

    .leaderboard-access-gate,
    .leaderboard-scope-tabs,
    .leaderboard-no-data-panel,
    .mobile-leaderboard-cards {
      display: none;
    }

    .leaderboard-shell.is-account-locked {
      grid-template-rows: minmax(0, 1fr);
      height: 100%;
      min-height: 100%;
      align-self: stretch;
      padding: clamp(22px, 4vw, 56px);
      border-color: rgba(132,162,183,0.24);
      background:
        radial-gradient(circle at 12% 16%, rgba(240,36,50,0.12), transparent 28%),
        radial-gradient(circle at 78% 0%, rgba(87,169,255,0.10), transparent 36%),
        linear-gradient(180deg, rgba(7,22,34,0.80), rgba(3,13,21,0.94));
    }

    .leaderboard-shell.is-account-locked > :not(.leaderboard-access-gate) {
      display: none !important;
    }

    .leaderboard-shell.is-account-locked .leaderboard-dashboard-view,
    .leaderboard-shell.is-account-locked .leaderboard-workspace,
    .leaderboard-shell.is-account-locked .leaderboard-table-wrap,
    .leaderboard-shell.is-account-locked .leaderboard-insights,
    .leaderboard-shell.is-account-locked .leaderboard-footer {
      display: none !important;
    }

    .leaderboard-access-gate {
      min-height: clamp(340px, 52vh, 620px);
      align-content: center;
      justify-items: center;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: rgba(202,214,224,0.72);
      text-align: center;
      box-shadow: none;
    }

    .leaderboard-access-gate:not(.hidden) {
      display: grid;
    }

    .leaderboard-access-content {
      width: min(980px, 100%);
      display: grid;
      justify-items: center;
      gap: 12px;
    }

    .leaderboard-access-lock {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(240,36,50,0.38);
      border-radius: 12px;
      background:
        linear-gradient(180deg, rgba(240,36,50,0.14), rgba(240,36,50,0.045));
      color: var(--red);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        0 12px 28px rgba(240,36,50,0.10);
    }

    .leaderboard-access-lock svg {
      width: 28px;
      height: 28px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.1;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .leaderboard-access-kicker {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border: 1px solid rgba(87,169,255,0.24);
      border-radius: 999px;
      background: rgba(22,136,255,0.08);
      color: rgba(220,238,255,0.82);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .leaderboard-access-gate strong {
      color: #f5f8fb;
      font-size: clamp(28px, 3vw, 52px);
      font-weight: 950;
      line-height: 1.08;
    }

    .leaderboard-access-gate p {
      max-width: 600px;
      margin: 0;
      color: rgba(202,214,224,0.72);
      font-size: 15px;
      font-weight: 750;
      line-height: 1.42;
    }

    .leaderboard-access-features {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .leaderboard-access-features div {
      min-height: 112px;
      display: grid;
      align-content: start;
      gap: 5px;
      padding: 14px;
      border: 1px solid rgba(226,237,244,0.10);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      text-align: left;
    }

    .leaderboard-access-features span {
      color: rgba(202,214,224,0.56);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .leaderboard-access-features strong {
      font-size: 18px;
      line-height: 1.1;
    }

    .leaderboard-access-features small,
    .leaderboard-access-direction {
      color: rgba(202,214,224,0.62);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.35;
    }

    .leaderboard-access-direction {
      margin-top: 4px;
      color: rgba(220,238,255,0.70);
    }

    .leaderboard-filters input,
    .leaderboard-filters button {
      min-width: 0;
      min-height: 34px;
      border-radius: 6px;
      font-size: 12px;
    }

    .leaderboard-stats {
      display: grid;
      grid-template-columns: 1.35fr repeat(4, 1fr);
      border: 1px solid rgba(240,36,50,0.46);
      border-radius: 6px;
      background:
        linear-gradient(90deg, rgba(240,36,50,0.12), rgba(255,255,255,0.028)),
        radial-gradient(circle at 10% 50%, rgba(240,36,50,0.10), transparent 46%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 0 20px rgba(240,36,50,0.08);
      overflow: hidden;
      min-width: 0;
    }

    .leaderboard-stat {
      min-width: 0;
      min-height: 58px;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-right: 1px solid rgba(226,237,244,0.08);
    }

    .leaderboard-stat:last-child {
      border-right: 0;
    }

    .leaderboard-stat-icon {
      width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      color: var(--red);
    }

    .leaderboard-stat-icon svg {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .leaderboard-stat-trophy {
      width: 46px;
      height: 46px;
      color: inherit;
    }

    .leaderboard-stat-trophy img {
      width: 46px;
      height: 46px;
      object-fit: contain;
      filter: drop-shadow(0 6px 12px rgba(0,0,0,0.38));
    }

    .leaderboard-stat strong {
      display: block;
      color: #f5f8fb;
      font-size: 16px;
      line-height: 1.05;
    }

    .leaderboard-stat span {
      display: block;
      margin-top: 3px;
      color: rgba(202,214,224,0.76);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }

    .modal-actions {
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
    }

    .modal-actions button {
      width: auto;
      min-width: 160px;
    }

    .leaderboard-table-wrap {
      overflow-x: hidden;
      overflow-y: auto;
      border: 0;
      border-radius: 0;
      min-height: 0;
      max-height: none;
      scrollbar-width: thin;
      scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
    }

    .leaderboard-table-wrap::-webkit-scrollbar {
      width: 8px;
    }

    .leaderboard-table-wrap::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.035);
      border-left: 1px solid rgba(226, 237, 244, 0.08);
      border-radius: 999px;
      margin: 4px 2px;
    }

    .leaderboard-table-wrap::-webkit-scrollbar-thumb {
      min-height: 32px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
      border: 2px solid rgba(5, 18, 28, 0.96);
    }

    .leaderboard-table {
      width: 100%;
      min-width: 0;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0 5px;
      font-size: 12px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
      padding: 8px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .leaderboard-table th {
      color: rgba(202,214,224,0.78);
      font-size: 10px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      background: rgba(2,10,16,0.48);
      border-bottom: 0;
    }

    .leaderboard-table tbody tr {
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      box-shadow: inset 0 0 0 1px rgba(226,237,244,0.08);
    }

    .leaderboard-table tbody tr.rank-1 {
      background: linear-gradient(90deg, rgba(240,36,50,0.23), rgba(255,255,255,0.035));
      box-shadow: inset 0 0 0 1px rgba(240,36,50,0.72), 0 0 20px rgba(240,36,50,0.18);
    }

    .leaderboard-table tbody tr.rank-2 {
      box-shadow: inset 0 0 0 1px rgba(202,214,224,0.36);
    }

    .leaderboard-table tbody tr.rank-3 {
      box-shadow: inset 0 0 0 1px rgba(205,119,51,0.52);
    }

    .leaderboard-table tbody td {
      height: 52px;
    }

    .leaderboard-table tbody td:first-child {
      border-radius: 6px 0 0 6px;
      text-align: center;
      font-weight: 900;
      overflow: visible;
    }

    .leaderboard-table tbody td:last-child {
      border-radius: 0 6px 6px 0;
    }

    .leaderboard-score {
      color: var(--red);
      font-size: 17px;
      letter-spacing: 0.4px;
    }

    .rank-medal {
      position: relative;
      display: inline-grid;
      place-items: center;
      width: 25px;
      height: 25px;
      margin-right: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      color: #f5f8fb;
      font-size: 11px;
      font-weight: 900;
      box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.38),
        inset 0 -3px 0 rgba(0,0,0,0.24),
        0 0 14px rgba(0,0,0,0.28);
      vertical-align: middle;
    }

    .rank-medal::before,
    .rank-medal::after {
      content: "";
      position: absolute;
      top: -8px;
      width: 8px;
      height: 12px;
      border-radius: 2px 2px 1px 1px;
      background: rgba(240,36,50,0.82);
      z-index: -1;
    }

    .rank-medal::before {
      left: 5px;
      rotate: -20deg;
      clip-path: polygon(0 0, 100% 0, 82% 100%, 42% 76%, 0 100%);
    }

    .rank-medal::after {
      right: 5px;
      rotate: 20deg;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 58% 76%, 18% 100%);
    }

    .rank-medal .rank-medal-number {
      position: relative;
      z-index: 1;
    }

    .rank-medal .rank-medal-number::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      width: 17px;
      height: 17px;
      translate: -50% -50%;
      border-radius: 999px;
      border: 1px solid rgba(0,0,0,0.16);
      z-index: -1;
    }

    .rank-1 .rank-medal { background: radial-gradient(circle at 35% 28%, #fff2a3, #ffd34d 48%, #d99012); color: #07131d; }
    .rank-2 .rank-medal { background: radial-gradient(circle at 35% 28%, #ffffff, #dce7ee 48%, #8ea2ae); color: #07131d; }
    .rank-3 .rank-medal { background: radial-gradient(circle at 35% 28%, #ffc07a, #c77a3d 50%, #804117); color: #07131d; }

    .leaderboard-footer {
      display: grid;
      grid-template-columns: minmax(150px, 0.85fr) minmax(270px, 1.35fr) minmax(210px, 1fr) minmax(180px, auto);
      align-items: stretch;
      border: 1px solid rgba(132,162,183,0.24);
      border-radius: 7px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(7,22,34,0.82), rgba(3,13,21,0.90));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 24px rgba(240,36,50,0.028);
      min-width: 0;
    }

    .leaderboard-footer-card {
      display: grid;
      align-content: center;
      gap: 4px;
      padding: 10px 24px;
      border-right: 1px solid rgba(226,237,244,0.08);
      min-width: 0;
    }

    .leaderboard-footer-card.is-best {
      background:
        linear-gradient(90deg, rgba(240,36,50,0.18), rgba(240,36,50,0.04));
      border-color: rgba(240,36,50,0.28);
    }

    .leaderboard-footer-card span {
      display: block;
      color: var(--red);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.9px;
      text-transform: uppercase;
      margin-bottom: 2px;
    }

    .leaderboard-footer-card strong {
      display: block;
      color: #f5f8fb;
      font-size: 21px;
      line-height: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leaderboard-footer-card small {
      display: block;
      margin-top: 2px;
      color: rgba(202,214,224,0.72);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.3;
      white-space: normal;
    }

    .leaderboard-footer-card small .leaderboard-meta-line {
      display: block;
    }

    #leaderboardMapBtn {
      align-self: center;
      justify-self: end;
      width: 160px;
      min-width: 0;
      height: 34px;
      margin: 0 24px 0 16px;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #57a9ff;
      border: 1px solid rgba(22,136,255,0.72);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
      box-shadow:
        inset 0 0 18px rgba(22,136,255,0.08),
        0 0 18px rgba(22,136,255,0.14);
      font-size: 10px;
      letter-spacing: 0.7px;
    }

    #leaderboardMapBtn svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
    }

    .leaderboard-table th:nth-child(1),
    .leaderboard-table td:nth-child(1) { width: 64px; }
    .leaderboard-table th:nth-child(2),
    .leaderboard-table td:nth-child(2) { width: 34%; }
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) { width: 70px; }
    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4) { width: 86px; }
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) { width: 88px; }
    .leaderboard-table th:nth-child(6),
    .leaderboard-table td:nth-child(6) { width: 100px; }
    .leaderboard-table th:nth-child(7),
    .leaderboard-table td:nth-child(7),
    .leaderboard-table th:nth-child(8),
    .leaderboard-table td:nth-child(8),
    .leaderboard-table th:nth-child(9),
    .leaderboard-table td:nth-child(9),
    .leaderboard-table th:nth-child(10),
    .leaderboard-table td:nth-child(10),
    .leaderboard-table th:nth-child(11),
    .leaderboard-table td:nth-child(11) {
      width: 46px;
      text-align: center;
    }
    .leaderboard-table th:nth-child(12),
    .leaderboard-table td:nth-child(12) { width: 100px; }

    .leaderboard-table th:nth-child(10),
    .leaderboard-table td:nth-child(10),
    .leaderboard-table th:nth-child(11),
    .leaderboard-table td:nth-child(11) {
      display: none;
    }

    .leaderboard-empty {
      padding: 16px;
      color: var(--muted);
      text-align: center;
    }

    .leaderboard-hidden-filter {
      display: none !important;
    }

    .leaderboard-card {
      padding: 24px 30px;
    }

    .leaderboard-card .modal-head {
      margin-bottom: 14px;
    }

    .leaderboard-shell {
      grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
      gap: 14px;
      padding: 14px;
    }

    .leaderboard-scope-tabs {
      display: inline-grid;
      grid-template-columns: repeat(3, minmax(118px, auto));
      justify-content: start;
      gap: 8px;
    }

    .leaderboard-scope-tabs button {
      min-height: 36px;
      padding: 0 14px;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 7px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.026));
      color: rgba(202,214,224,0.76);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.45px;
      text-transform: uppercase;
    }

    .leaderboard-scope-tabs button.is-active {
      border-color: rgba(240,36,50,0.64);
      background:
        linear-gradient(180deg, rgba(240,36,50,0.22), rgba(240,36,50,0.07));
      color: #f5f8fb;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 0 18px rgba(240,36,50,0.12);
    }

    .leaderboard-filters {
      grid-template-columns: 0.82fr 0.95fr 0.95fr 1.45fr 1.15fr 1fr;
      gap: 8px;
      padding: 10px;
      border: 1px solid rgba(132,162,183,0.18);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(2,10,16,0.38), rgba(2,10,16,0.18));
    }

    .leaderboard-filters label {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .leaderboard-filters label span {
      color: rgba(202,214,224,0.68);
      font-size: 9px;
      font-weight: 950;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .leaderboard-filters input,
    .leaderboard-filters select,
    .leaderboard-filters button {
      width: 100%;
      min-width: 0;
      min-height: 38px;
      border-radius: 7px;
      border: 1px solid rgba(226,237,244,0.14);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
      color: #f5f8fb;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
      font-size: 12px;
      font-weight: 850;
    }

    .leaderboard-filters select {
      appearance: none;
      padding-right: 28px;
      background-image:
        linear-gradient(45deg, transparent 50%, rgba(202,214,224,0.92) 50%),
        linear-gradient(135deg, rgba(202,214,224,0.92) 50%, transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
      background-position:
        calc(100% - 16px) 17px,
        calc(100% - 10px) 17px,
        0 0;
      background-size: 6px 6px, 6px 6px, 100% 100%;
      background-repeat: no-repeat;
    }

    .leaderboard-stats {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      overflow: visible;
    }

    .leaderboard-stat {
      min-height: 88px;
      align-items: start;
      padding: 13px;
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 8px;
      background:
        radial-gradient(circle at 92% 10%, rgba(22,136,255,0.08), transparent 42%),
        linear-gradient(180deg, rgba(12,31,44,0.82), rgba(4,15,24,0.94));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 14px 30px rgba(0,0,0,0.14);
    }

    .leaderboard-stat:last-child {
      border-right: 1px solid rgba(226,237,244,0.12);
    }

    .leaderboard-stat-icon {
      width: 24px;
      height: 24px;
      margin-top: 1px;
    }

    .leaderboard-stat strong {
      font-size: 20px;
      letter-spacing: 0;
    }

    .leaderboard-stat span {
      margin-top: 5px;
      font-size: 9px;
      letter-spacing: 0.7px;
    }

    .leaderboard-stat small {
      display: block;
      margin-top: 6px;
      color: rgba(132,162,183,0.82);
      font-size: 10px;
      font-weight: 800;
      line-height: 1.25;
    }

    .leaderboard-dashboard-view {
      display: none;
      min-height: 0;
      min-width: 0;
    }

    .leaderboard-dashboard-view.is-active {
      display: grid;
      gap: 12px;
    }

    .leaderboard-workspace {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
      gap: 12px;
      min-height: 0;
      min-width: 0;
    }

    .leaderboard-main-panel,
    .leaderboard-detail-panel,
    .leaderboard-history-panel,
    .leaderboard-analytics-card {
      border: 1px solid rgba(132,162,183,0.18);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7,22,34,0.76), rgba(3,13,21,0.90));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 28px rgba(22,136,255,0.022);
      min-width: 0;
    }

    .leaderboard-main-panel {
      min-height: 0;
      padding: 8px;
    }

    .leaderboard-table {
      border-spacing: 0 7px;
      font-size: 12px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
      padding: 9px 10px;
    }

    .leaderboard-table th {
      font-size: 9px;
      letter-spacing: 0.72px;
      background: rgba(2,10,16,0.62);
    }

    .leaderboard-table tbody tr {
      cursor: pointer;
      transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .leaderboard-table tbody tr:hover,
    .leaderboard-table tbody tr.is-selected {
      background:
        linear-gradient(90deg, rgba(240,36,50,0.18), rgba(255,255,255,0.035));
      box-shadow:
        inset 0 0 0 1px rgba(240,36,50,0.55),
        0 0 18px rgba(240,36,50,0.12);
    }

    .leaderboard-table tbody td {
      height: 62px;
      vertical-align: middle;
    }

    .leaderboard-table td strong:not(.leaderboard-score) {
      display: block;
      color: #f5f8fb;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leaderboard-table td small {
      display: block;
      margin-top: 3px;
      color: rgba(202,214,224,0.56);
      font-size: 10px;
      font-weight: 750;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

      .leaderboard-table th:nth-child(1),
      .leaderboard-table td:nth-child(1) { width: 7%; }
      .leaderboard-table th:nth-child(2),
      .leaderboard-table td:nth-child(2) { width: 20%; }
      .leaderboard-table th:nth-child(3),
      .leaderboard-table td:nth-child(3) { width: 17%; }
      .leaderboard-table th:nth-child(4),
      .leaderboard-table td:nth-child(4) { width: 7%; }
      .leaderboard-table th:nth-child(5),
      .leaderboard-table td:nth-child(5) { width: 8%; }
      .leaderboard-table th:nth-child(6),
      .leaderboard-table td:nth-child(6) { width: 8%; }
      .leaderboard-table th:nth-child(7),
      .leaderboard-table td:nth-child(7) { width: 8%; }
      .leaderboard-table th:nth-child(8),
      .leaderboard-table td:nth-child(8) { width: 9%; }
      .leaderboard-table th:nth-child(9),
      .leaderboard-table td:nth-child(9) { width: 9%; }
      .leaderboard-table th:nth-child(10),
      .leaderboard-table td:nth-child(10) {
        display: table-cell;
        width: 7%;
        text-align: left;
      }

    .rank-number {
      vertical-align: middle;
    }

    .leaderboard-run-btn {
      min-height: 30px;
      padding: 0 10px;
      border: 1px solid rgba(87,169,255,0.42);
      border-radius: 6px;
      background: rgba(22,136,255,0.10);
      color: #9bd0ff;
      box-shadow: none;
      font-size: 9px;
      font-weight: 950;
      letter-spacing: 0.55px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .leaderboard-detail-panel {
      position: relative;
      display: grid;
      min-height: 100%;
      padding: 16px;
    }

    .leaderboard-detail-empty {
      align-self: center;
      justify-self: center;
      max-width: 210px;
      color: rgba(202,214,224,0.66);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.35;
      text-align: center;
    }

    .leaderboard-detail-content {
      display: grid;
      align-content: start;
      gap: 10px;
      min-width: 0;
    }

    .leaderboard-detail-content.hidden {
      display: none;
    }

    .leaderboard-detail-kicker,
    .leaderboard-insight-card span,
    .leaderboard-analytics-card > span,
    .leaderboard-history-head span {
      color: var(--red);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.85px;
      text-transform: uppercase;
    }

    .leaderboard-detail-content h3 {
      margin: 0;
      color: #f5f8fb;
      font-size: 20px;
      line-height: 1;
      text-transform: uppercase;
    }

    .leaderboard-detail-content > strong {
      color: #f5f8fb;
      font-size: 15px;
      line-height: 1.18;
    }

    .leaderboard-detail-content > span:not(.leaderboard-detail-kicker) {
      color: rgba(202,214,224,0.72);
      font-size: 12px;
      font-weight: 800;
    }

    .leaderboard-detail-content dl {
      display: grid;
      gap: 7px;
      margin: 6px 0 0;
    }

    .leaderboard-detail-content dl div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 7px;
      border-bottom: 1px solid rgba(226,237,244,0.08);
    }

    .leaderboard-detail-content dt {
      color: rgba(202,214,224,0.58);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.55px;
      text-transform: uppercase;
    }

    .leaderboard-detail-content dd {
      margin: 0;
      color: #f5f8fb;
      font-size: 12px;
      font-weight: 900;
      text-align: right;
    }

    .leaderboard-detail-actions {
      display: grid;
      gap: 8px;
      margin-top: 6px;
    }

    .leaderboard-map-btn,
    .leaderboard-followup-btn {
      width: 100%;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 7px;
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .leaderboard-map-btn {
      color: #57a9ff;
      border: 1px solid rgba(22,136,255,0.68);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
      box-shadow:
        inset 0 0 18px rgba(22,136,255,0.08),
        0 0 18px rgba(22,136,255,0.12);
    }

    #leaderboardMapBtn.leaderboard-map-btn {
      width: 100%;
      min-width: 0;
      height: auto;
      margin: 0;
      padding: 0 14px;
    }

    .leaderboard-followup-btn {
      color: rgba(202,214,224,0.64);
      border: 1px solid rgba(226,237,244,0.12);
      background: rgba(255,255,255,0.035);
      box-shadow: none;
    }

    .leaderboard-map-btn svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .leaderboard-insights {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .leaderboard-insight-card {
      display: grid;
      align-content: center;
      min-height: 76px;
      gap: 5px;
      padding: 13px 14px;
      border: 1px solid rgba(132,162,183,0.18);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7,22,34,0.72), rgba(3,13,21,0.88));
    }

    .leaderboard-insight-card.is-attention {
      border-color: rgba(240,36,50,0.28);
      background:
        linear-gradient(90deg, rgba(240,36,50,0.12), rgba(7,22,34,0.72));
    }

    .leaderboard-insight-card strong {
      color: #f5f8fb;
      font-size: 18px;
      line-height: 1.05;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .leaderboard-insight-card small,
    .leaderboard-analytics-card small,
    .leaderboard-history-head small {
      color: rgba(202,214,224,0.64);
      font-size: 11px;
      font-weight: 800;
      line-height: 1.25;
    }

    .leaderboard-analytics-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      min-height: 0;
    }

    .leaderboard-analytics-card {
      display: grid;
      align-content: start;
      gap: 12px;
      min-height: 170px;
      padding: 16px;
    }

    .leaderboard-analytics-wide {
      grid-column: span 2;
    }

    .leaderboard-mini-chart {
      height: 82px;
      display: flex;
      align-items: end;
      gap: 6px;
      padding: 10px;
      border: 1px solid rgba(226,237,244,0.08);
      border-radius: 7px;
      background: rgba(2,10,16,0.34);
    }

    .leaderboard-mini-chart i {
      flex: 1 1 0;
      min-width: 5px;
      border-radius: 3px 3px 0 0;
      background: linear-gradient(180deg, rgba(240,36,50,0.92), rgba(87,169,255,0.62));
      box-shadow: 0 0 12px rgba(240,36,50,0.12);
    }

    .leaderboard-mini-chart span {
      align-self: center;
      margin: auto;
      color: rgba(202,214,224,0.58);
      font-size: 12px;
      font-weight: 800;
    }

    .leaderboard-analytics-card ul {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .leaderboard-analytics-card li {
      padding: 9px 10px;
      border: 1px solid rgba(226,237,244,0.08);
      border-radius: 6px;
      color: rgba(245,248,251,0.88);
      background: rgba(2,10,16,0.28);
      font-size: 12px;
      font-weight: 800;
    }

    .leaderboard-station-bars {
      display: grid;
      gap: 9px;
    }

    .leaderboard-station-bars div {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      min-height: 32px;
      padding: 0 10px;
      overflow: hidden;
      border-radius: 6px;
      background: rgba(2,10,16,0.32);
    }

    .leaderboard-station-bars i {
      position: absolute;
      inset: 0 auto 0 0;
      z-index: 0;
      background: linear-gradient(90deg, rgba(240,36,50,0.22), rgba(22,136,255,0.08));
    }

    .leaderboard-station-bars span,
    .leaderboard-station-bars strong {
      position: relative;
      z-index: 1;
      color: #f5f8fb;
      font-size: 12px;
      font-weight: 900;
    }

    .leaderboard-history-panel {
      display: grid;
      align-content: start;
      gap: 12px;
      padding: 14px;
      min-height: 0;
    }

    .leaderboard-history-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(226,237,244,0.08);
    }

    .leaderboard-history-list {
      display: grid;
      gap: 8px;
      min-height: 0;
      overflow: auto;
    }

    .leaderboard-history-row {
      display: grid;
      grid-template-columns: 0.8fr 1.45fr 1.25fr 0.65fr 0.5fr 0.8fr;
      align-items: center;
      gap: 12px;
      min-height: 54px;
      padding: 0 12px;
      border: 1px solid rgba(226,237,244,0.10);
      border-radius: 7px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      color: rgba(202,214,224,0.78);
      box-shadow: none;
      text-align: left;
      text-transform: none;
    }

    .leaderboard-history-row strong {
      color: #f5f8fb;
    }

    .leaderboard-history-score {
      color: var(--red);
      font-weight: 950;
    }

    @media (max-width: 1500px) and (min-width: 701px) {
      .leaderboard-workspace {
        grid-template-columns: 1fr;
      }

      .leaderboard-detail-panel {
        min-height: 0;
      }

      .leaderboard-detail-content dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .leaderboard-detail-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .leaderboard-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .live-results-overlay {
      position: absolute;
      inset: 24px;
      z-index: 18;
      display: grid;
      min-width: 0;
      min-height: 0;
      pointer-events: auto;
    }

    .live-results-overlay.hidden {
      display: none !important;
    }

    .live-results-stage-card {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      min-width: 0;
      min-height: 0;
      padding: 28px;
      border: 1px solid rgba(240,36,50,0.36);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(4,17,27,0.94), rgba(2,10,16,0.98)),
        radial-gradient(circle at 82% 12%, rgba(22,136,255,0.10), transparent 30%),
        radial-gradient(circle at 8% 8%, rgba(240,36,50,0.11), transparent 26%);
      box-shadow:
        0 22px 70px rgba(0,0,0,0.52),
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 42px rgba(22,136,255,0.03);
      overflow: hidden;
    }

    .live-results-stage-head {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      min-width: 0;
    }

    .live-results-stage-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 28px;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    .live-results-stage-head p {
      margin-top: 6px;
      color: rgba(202,214,224,0.74);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }

    .live-results-stage-shell {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 14px;
      min-width: 0;
      min-height: 0;
      padding: 12px;
      border: 1px solid rgba(132,162,183,0.24);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(7,22,34,0.74), rgba(3,13,21,0.90)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 8px, transparent 8px 18px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        inset 0 0 30px rgba(22,136,255,0.025);
      overflow: hidden;
    }

    .live-results-stage-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid rgba(240,36,50,0.46);
      border-radius: 6px;
      background:
        linear-gradient(90deg, rgba(240,36,50,0.12), rgba(255,255,255,0.028)),
        radial-gradient(circle at 10% 50%, rgba(240,36,50,0.10), transparent 46%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 0 20px rgba(240,36,50,0.08);
      overflow: hidden;
      min-width: 0;
    }

    .live-results-stage-stats.hidden {
      display: none !important;
    }

    .live-results-stage-stats .leaderboard-stat {
      grid-template-columns: 56px minmax(0, 1fr);
      gap: 14px;
      min-height: 76px;
    }

    .live-results-stage-table-wrap {
      min-width: 0;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
    }

    .live-results-stage-table-wrap::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    .live-results-stage-table-wrap::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.035);
      border-radius: 999px;
    }

    .live-results-stage-table-wrap::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
      border: 2px solid rgba(5, 18, 28, 0.96);
    }

    .live-results-stage-table {
      width: 100%;
      min-width: 0;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0 6px;
      font-size: 13px;
    }

    .live-results-stage-table th,
    .live-results-stage-table td {
      padding: 9px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .live-results-stage-table th {
      color: rgba(202,214,224,0.78);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      background: rgba(2,10,16,0.54);
      border-bottom: 0;
    }

    .live-results-stage-table tbody tr {
      background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      box-shadow: inset 0 0 0 1px rgba(226,237,244,0.08);
    }

    .live-results-stage-table tbody tr.rank-1 {
      background: linear-gradient(90deg, rgba(240,36,50,0.23), rgba(255,255,255,0.035));
      box-shadow: inset 0 0 0 1px rgba(240,36,50,0.72), 0 0 20px rgba(240,36,50,0.18);
    }

    .live-results-stage-table tbody tr.rank-2 {
      box-shadow: inset 0 0 0 1px rgba(202,214,224,0.36);
    }

    .live-results-stage-table tbody tr.rank-3 {
      box-shadow: inset 0 0 0 1px rgba(205,119,51,0.52);
    }

    .live-results-stage-table tbody td {
      height: 58px;
      color: rgba(245,248,251,0.92);
      font-weight: 800;
    }

    .live-results-stage-table tbody td:first-child {
      border-radius: 6px 0 0 6px;
      overflow: visible;
      text-align: center;
      font-weight: 900;
    }

    .live-results-stage-table tbody td:first-child span:last-child {
      vertical-align: middle;
    }

    .live-results-stage-table tbody td:last-child {
      border-radius: 0 6px 6px 0;
    }

    .live-results-stage-table td strong:not(.leaderboard-score) {
      display: block;
      overflow: hidden;
      color: #f5f8fb;
      font-size: 15px;
      line-height: 1.1;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .live-results-stage-table td small {
      display: block;
      margin-top: 4px;
      overflow: hidden;
      color: rgba(202,214,224,0.68);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.55px;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .live-results-stage-table th:nth-child(1),
    .live-results-stage-table td:nth-child(1) { width: 70px; }
    .live-results-stage-table th:nth-child(2),
    .live-results-stage-table td:nth-child(2) { width: auto; }
    .live-results-stage-table th:nth-child(3),
    .live-results-stage-table td:nth-child(3) { width: 84px; }
    .live-results-stage-table th:nth-child(4),
    .live-results-stage-table td:nth-child(4) { width: 88px; }
    .live-results-stage-table th:nth-child(5),
    .live-results-stage-table td:nth-child(5) { width: 96px; }
    .live-results-stage-table th:nth-child(6),
    .live-results-stage-table td:nth-child(6),
    .live-results-stage-table th:nth-child(7),
    .live-results-stage-table td:nth-child(7),
    .live-results-stage-table th:nth-child(8),
    .live-results-stage-table td:nth-child(8),
    .live-results-stage-table th:nth-child(9),
    .live-results-stage-table td:nth-child(9),
    .live-results-stage-table th:nth-child(10),
    .live-results-stage-table td:nth-child(10) {
      width: 48px;
      text-align: center;
    }

    @media (max-width: 1100px) {
      .live-results-overlay {
        inset: 14px;
      }

      .live-results-stage-card {
        padding: 18px;
      }

      .live-results-stage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 700px) {
      .live-results-overlay {
        display: none !important;
      }
    }

    #mapStage {
      position: relative;
      height: 100vh;
      height: 100dvh;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      overflow: hidden;
      background: #020a10;
    }

    #viewDiv {
      height: 100%;
      width: 100%;
      min-height: 100%;
    }

    body.mobile-map-preview-active .esri-zoom,
    body.mobile-map-preview-active .esri-attribution,
    .mobile-shell.mobile-state-profile ~ .esri-zoom,
    .mobile-shell.mobile-state-profile ~ .esri-attribution,
    body.mobile-play-active .esri-zoom,
    body.mobile-play-active .esri-attribution {
      display: none !important;
    }

    .splash-screen {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: grid;
      place-items: center;
      background: #020a10;
      opacity: 1;
      transition: opacity 220ms ease;
      pointer-events: none;
    }

    .splash-screen.hidden {
      opacity: 0;
      visibility: hidden;
    }

    .splash-screen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .tablet-orientation-lock {
      display: none;
    }

    .phone-orientation-lock {
      display: none;
    }

    .tablet-orientation-card,
    .phone-orientation-card {
      width: min(420px, calc(100vw - 48px));
      display: grid;
      justify-items: center;
      gap: 12px;
      border: 1px solid rgba(87, 169, 255, 0.30);
      border-radius: 10px;
      background:
        linear-gradient(180deg, rgba(9, 25, 37, 0.98), rgba(4, 14, 22, 0.99)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
      box-shadow: 0 22px 60px rgba(0,0,0,0.42);
      padding: 28px 24px;
      text-align: center;
    }

    .tablet-orientation-icon,
    .phone-orientation-icon {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      border: 1px solid rgba(240,36,50,0.44);
      background: rgba(240,36,50,0.12);
      color: var(--red);
    }

    .tablet-orientation-icon svg,
    .phone-orientation-icon svg {
      width: 32px;
      height: 32px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .phone-orientation-icon svg {
      width: 42px;
      height: 42px;
      stroke-width: 4.8;
    }

    .phone-orientation-icon {
      width: 60px;
      height: 60px;
    }

    .phone-orientation-icon .phone-rotate-device {
      stroke-width: 4.4;
    }

    .phone-orientation-icon .phone-rotate-arrow,
    .phone-orientation-icon .phone-rotate-arrowhead {
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .tablet-orientation-card strong,
    .phone-orientation-card strong {
      color: #f5f8fb;
      font-size: 24px;
      font-weight: 1000;
      letter-spacing: 1px;
      line-height: 1;
      text-transform: uppercase;
    }

    .tablet-orientation-card span:last-child,
    .phone-orientation-card span:last-child {
      color: rgba(202, 214, 224, 0.82);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.35;
    }

    @media (min-width: 701px) and (max-width: 1180px) and (orientation: portrait) {
      .tablet-orientation-lock {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: grid;
        place-items: center;
        background:
          radial-gradient(circle at 50% 18%, rgba(22, 136, 255, 0.14), transparent 34%),
          radial-gradient(circle at 20% 80%, rgba(240, 36, 50, 0.12), transparent 34%),
          rgba(2, 10, 16, 0.985);
        padding: 24px;
      }
    }

    @media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
      .phone-orientation-lock {
        position: fixed;
        inset: 0;
        z-index: 101;
        display: grid;
        place-items: center;
        background:
          radial-gradient(circle at 50% 18%, rgba(240, 36, 50, 0.14), transparent 34%),
          radial-gradient(circle at 82% 74%, rgba(22, 136, 255, 0.12), transparent 34%),
          rgba(2, 10, 16, 0.988);
        padding: 20px;
      }

      .phone-orientation-card {
        width: min(360px, calc(100vw - 40px));
        padding: 22px 20px;
      }
    }

    @media (min-width: 701px) and (max-width: 1180px) and (orientation: landscape) {
      .splash-screen {
        background:
          radial-gradient(circle at 50% 50%, rgba(22, 136, 255, 0.06), transparent 52%),
          #020a10 url('../tablet_splash.png') center center / contain no-repeat;
      }

      .splash-screen img,
      .splash-screen::after {
        display: none;
      }
    }

    @media (min-width: 701px) {
      body {
        grid-template-columns: 360px minmax(0, 1fr);
      }

      aside {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 6px;
        padding: 10px 12px 7px;
        overflow: auto;
        background:
          radial-gradient(circle at 18% 10%, rgba(22, 136, 255, 0.10), transparent 30%),
          linear-gradient(180deg, rgba(3, 13, 21, 0.985), rgba(4, 18, 28, 0.98)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 8px, transparent 8px 18px);
        border-right: 1px solid rgba(87, 169, 255, 0.10);
        box-shadow: 18px 0 44px rgba(0, 0, 0, 0.46);
      }

      #mapStage::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        width: 2px;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(3, 13, 21, 0.99), rgba(4, 18, 28, 0.99));
      }

      .brand-lockup {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        align-items: center;
        margin: 0;
        padding: 0 4px 8px;
        border-bottom: 1px solid rgba(226, 237, 244, 0.10);
      }

      #boxSelectionPanel,
      #desktopScoresPanel,
      #desktopProfileRail,
      #drillPanel {
        grid-row: 2;
        min-height: 0;
      }

      .desktop-bottom-nav {
        grid-row: 3;
        align-self: end;
      }

      .brand-main {
        display: contents;
        cursor: pointer;
      }

      .brand-lockup .kicker {
        color: rgba(240, 36, 50, 0.78);
        margin-top: 3px;
        font-size: 9.5px;
        letter-spacing: 1.25px;
        line-height: 1.15;
      }

      .brand-lockup h1 {
        font-size: 22px;
        line-height: 0.96;
        letter-spacing: 0;
        white-space: nowrap;
      }

      .card {
        border-radius: 8px;
        border-color: rgba(132, 162, 183, 0.22);
        background:
          linear-gradient(180deg, rgba(8, 24, 36, 0.92), rgba(4, 15, 24, 0.965)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
      }

      #boxSelectionPanel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto auto auto minmax(90px, 1fr) auto;
        gap: 6px 8px;
        min-height: 0;
        height: 100%;
        overflow: hidden;
        padding: 10px;
        margin-bottom: 0;
        border-color: rgba(87, 169, 255, 0.22);
      }

      #boxSelectionPanel > label,
      .field-firstdue,
      .field-search,
      #boxList,
      #desktopBoxList,
      .fire-box-list-head,
      .box-action-panel {
        grid-column: 1 / -1;
      }

      #boxSelectionPanel > label,
      #desktopScoresPanel > label,
      #desktopProfileRail > label,
      #drillPanel > label {
        margin: 0 0 2px;
        color: #f2f7fb;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 1.2px;
        line-height: 1.1;
      }

      input,
      select,
      button,
      textarea {
        border-radius: 7px;
        border-color: rgba(226, 237, 244, 0.16);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        color: #f5f8fb;
      }

      .desktop-field {
        position: relative;
        min-width: 0;
      }

      .desktop-field-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        width: 18px;
        height: 18px;
        translate: 0 -50%;
        display: grid;
        place-items: center;
        color: var(--red);
        pointer-events: none;
        z-index: 1;
      }

      .desktop-field-icon svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .desktop-field select,
      .desktop-field input {
        min-height: var(--ui-row-height);
        padding: 6px 9px 6px 38px;
        font-size: 12px;
        border-radius: var(--btn-radius);
      }

      .desktop-field select,
      .desktop-field input {
        box-shadow: inset 0 0 18px rgba(255,255,255,0.018);
      }

      .desktop-select-field > select {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
      }

      .desktop-select-trigger {
        width: 100%;
        min-width: 0;
        min-height: 33px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 6px 9px 6px 38px;
        border: 1px solid rgba(226, 237, 244, 0.16);
        border-radius: 7px;
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        color: #f5f8fb;
        box-shadow: inset 0 0 18px rgba(255,255,255,0.018);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
      }

      .desktop-select-trigger span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .field-division .desktop-select-trigger,
      .field-battalion .desktop-select-trigger {
        gap: 6px;
        padding-left: 32px;
        padding-right: 6px;
        font-size: 11px;
      }

      .field-division .desktop-field-icon,
      .field-battalion .desktop-field-icon {
        left: 9px;
      }

      .desktop-select-trigger::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(238, 246, 250, 0.86);
        border-bottom: 2px solid rgba(238, 246, 250, 0.86);
        rotate: 45deg;
        margin-top: -4px;
      }

      .desktop-select-field.is-open .desktop-select-trigger::after {
        rotate: 225deg;
        margin-top: 4px;
      }

      .desktop-select-menu {
        position: absolute;
        z-index: 12;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        display: none;
        max-height: min(260px, 42vh);
        overflow: auto;
        border: 1px solid rgba(226, 237, 244, 0.16);
        border-radius: 7px;
        background:
          linear-gradient(180deg, rgba(7, 24, 36, 0.98), rgba(5, 18, 28, 0.98));
        box-shadow: 0 18px 36px rgba(0,0,0,0.42);
        padding: 4px 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
      }

      .desktop-select-field.is-open .desktop-select-menu {
        display: grid;
      }

      .desktop-select-menu::-webkit-scrollbar {
        width: 8px;
      }

      .desktop-select-menu::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.035);
        border-left: 1px solid rgba(226, 237, 244, 0.08);
        border-radius: 999px;
        margin: 4px 2px;
      }

      .desktop-select-menu::-webkit-scrollbar-thumb {
        min-height: 32px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
        border: 2px solid rgba(5, 18, 28, 0.96);
      }

      .desktop-select-option {
        min-height: 28px;
        padding: 6px 10px 6px 38px;
        border: 0;
        border-bottom: 1px solid rgba(226, 237, 244, 0.06);
        border-radius: 0;
        background: transparent;
        color: #f5f8fb;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
      }

      .desktop-select-option:hover,
      .desktop-select-option:focus-visible {
        background: rgba(255,255,255,0.065);
        outline: none;
      }

      .desktop-select-option.is-selected {
        background: rgba(240, 36, 50, 0.09);
        box-shadow: inset 3px 0 0 var(--red);
        color: #ffffff;
      }

      #boxSearch::placeholder {
        color: rgba(207, 216, 224, 0.58);
      }

      #boxList {
        display: none;
      }

      .desktop-box-list {
        align-self: stretch;
        height: 100%;
        min-height: 0;
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
        border-radius: 7px;
        background:
          linear-gradient(180deg, rgba(7, 24, 36, 0.92), rgba(5, 18, 28, 0.94));
        border-color: rgba(226, 237, 244, 0.14);
        padding: 5px 0;
        font-size: 13px;
      }

      .desktop-box-list::-webkit-scrollbar {
        width: 8px;
      }

      .desktop-box-list::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.035);
        border-left: 1px solid rgba(226, 237, 244, 0.08);
        border-radius: 999px;
        margin: 4px 2px;
      }

      .desktop-box-list::-webkit-scrollbar-thumb {
        min-height: 32px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
        border: 2px solid rgba(5, 18, 28, 0.96);
      }

      .desktop-box-list::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(240, 248, 252, 0.84), rgba(160, 190, 210, 0.64));
      }

      .desktop-box-row {
        width: 100%;
        min-height: 25px;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        gap: 7px;
        padding: 3px 10px;
        border: 0;
        border-bottom: 1px solid rgba(226, 237, 244, 0.06);
        background: transparent;
        color: #f5f8fb;
        text-align: left;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: none;
      }

      .desktop-box-row:hover,
      .desktop-box-row:focus-visible {
        background: rgba(255,255,255,0.055);
        outline: none;
      }

      .desktop-box-check {
        width: 13px;
        height: 13px;
        border-radius: 3px;
        border: 1px solid rgba(202, 214, 224, 0.42);
        background: rgba(255,255,255,0.035);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
      }

      .desktop-box-row.is-selected {
        background: rgba(240, 36, 50, 0.09);
        box-shadow: inset 3px 0 0 var(--red);
      }

      .desktop-box-row.is-selected .desktop-box-check {
        border-color: var(--red);
        background: rgba(240, 36, 50, 0.12);
        position: relative;
      }

      .desktop-box-row.is-selected .desktop-box-check::after {
        content: "";
        position: absolute;
        left: 3px;
        top: 1px;
        width: 5px;
        height: 8px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        rotate: 45deg;
      }

      .desktop-box-row span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .desktop-box-empty {
        padding: 10px;
        color: rgba(202, 214, 224, 0.72);
        font-size: 12px;
        font-weight: 800;
      }

      .fire-box-list-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 3px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .select-all-boxes {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 26px;
        width: 100%;
        margin: 0;
        padding: 4px 9px;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.035);
        color: rgba(202, 214, 224, 0.74);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.7px;
        line-height: 1;
        cursor: pointer;
        user-select: none;
        transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
      }

      .select-all-boxes input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }

      .select-all-boxes:hover {
        border-color: rgba(87, 169, 255, 0.38);
        background: rgba(3, 55, 92, 0.18);
        color: #f5f8fb;
      }

      .select-all-boxes.is-all-selected {
        border-color: rgba(47, 209, 108, 0.34);
        background: rgba(47, 209, 108, 0.08);
        color: rgba(223, 253, 234, 0.86);
      }

      .select-all-boxes.is-some-selected {
        border-color: rgba(87, 169, 255, 0.40);
        background: rgba(22, 136, 255, 0.09);
        color: rgba(220, 238, 255, 0.86);
      }

      .select-all-boxes.is-disabled {
        cursor: not-allowed;
        opacity: 0.48;
      }

      .filter-utility-action {
        text-transform: uppercase;
      }

      #clearBoxFiltersBtn.filter-utility-action {
        min-height: 26px;
        height: 26px;
        padding: 4px 9px;
        gap: 7px;
        border-radius: 7px;
        color: rgba(202, 214, 224, 0.74);
        font-size: 9px;
        letter-spacing: 0.7px;
      }

      .highway-box-toggle.is-all-selected {
        border-color: rgba(255, 211, 77, 0.36);
        background: rgba(255, 211, 77, 0.08);
        color: rgba(255, 235, 170, 0.90);
      }

      .select-all-mark {
        position: relative;
        width: 12px;
        height: 12px;
        border: 1px solid currentColor;
        border-radius: 3px;
        flex: 0 0 auto;
        opacity: 0.92;
      }

      .select-all-boxes.is-all-selected .select-all-mark::after {
        content: "";
        position: absolute;
        left: 2px;
        top: 1px;
        width: 5px;
        height: 3px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        rotate: -45deg;
      }

      .select-all-boxes.is-some-selected .select-all-mark::after {
        content: "";
        position: absolute;
        left: 2px;
        right: 2px;
        top: 4px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
      }

      .filter-utility-action .select-all-mark::before,
      .filter-utility-action .select-all-mark::after {
        content: "";
        position: absolute;
        background: currentColor;
        border-radius: 999px;
      }

      .filter-utility-action .select-all-mark::before {
        left: 2px;
        right: 2px;
        top: 5px;
        height: 1px;
        rotate: 45deg;
      }

      .filter-utility-action .select-all-mark::after {
        left: 2px;
        right: 2px;
        top: 5px;
        height: 1px;
        rotate: -45deg;
      }

      #boxList option:checked {
        background: linear-gradient(90deg, rgba(240, 36, 50, 0.45), rgba(22, 136, 255, 0.18));
      }

      .selection-note {
        position: relative;
        margin: 0;
        padding: 4px 8px 1px 34px;
        min-height: 30px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(222, 232, 239, 0.84);
        font-size: 12px;
      }

      .selection-note::before {
        content: "";
        position: absolute;
        left: 9px;
        top: 7px;
        width: 20px;
        height: 18px;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23f02432' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5.5 12 2l8 3.5-8 3.5-8-3.5Z'/%3E%3Cpath d='M4 10.5 12 14l8-3.5'/%3E%3Cpath d='M4 15.5 12 19l8-3.5'/%3E%3Cpath d='M4 5.5v10'/%3E%3Cpath d='M20 5.5v10'/%3E%3C/g%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 0.95;
      }

      .selection-note strong,
      .selection-note span {
        display: block;
      }

      .selection-note strong {
        color: #f5f8fb;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.6px;
        text-transform: uppercase;
      }

      .selection-note span {
        margin-top: 1px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 9px;
        font-weight: 800;
        line-height: 1.2;
      }

      #clearBoxFiltersBtn,
      #filterOptionsBtn,
      #loadDrillBtn,
      #trainingGuideBtn,
      #homeLeaderboardBtn,
      #startDrillBtn,
      #liveCreateRoomBtn,
      #liveStartRoomBtn,
      #resetDrillBtn {
        min-height: var(--btn-height);
        height: var(--btn-height);
        padding: 0 var(--btn-padding-x);
        border-radius: var(--btn-radius);
        font-size: var(--btn-font-size);
        letter-spacing: var(--btn-letter-spacing);
        line-height: 1;
      }

      #clearBoxFiltersBtn,
      #filterOptionsBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      #loadDrillBtn,
      #startDrillBtn,
      #liveCreateRoomBtn,
      #liveStartRoomBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--btn-primary-bg);
        box-shadow: var(--btn-primary-shadow);
      }

      #loadDrillBtn:disabled,
      #loadDrillBtn[aria-disabled="true"],
      #liveStartRoomBtn:disabled,
      #liveStartRoomBtn[aria-disabled="true"] {
        background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
        border-color: rgba(255,255,255,0.10);
        box-shadow: none;
        color: rgba(202,214,224,0.58);
      }

      #loadDrillBtn:disabled .play-icon,
      #loadDrillBtn[aria-disabled="true"] .play-icon {
        opacity: 0.48;
      }

      .play-icon svg {
        color: #fff;
        fill: currentColor;
        stroke: none;
      }

      #trainingGuideBtn,
      #homeLeaderboardBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #57a9ff;
        border: 1px solid rgba(22, 136, 255, 0.55);
        background: rgba(3, 37, 67, 0.38);
      }

      .button-icon {
        width: 16px;
        height: 16px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
      }

      .button-icon svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .btn-primary .play-icon svg,
      button.primary .play-icon svg {
        color: #fff;
        fill: #fff;
        stroke: none;
      }

      .btn-primary .play-icon path,
      button.primary .play-icon path {
        fill: #fff;
        stroke: none;
      }

      .box-action-panel {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        min-height: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .filter-options-panel {
        display: grid;
        gap: 5px;
        padding: 5px;
        margin-top: auto;
        border: 1px solid rgba(132, 162, 183, 0.14);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.025);
      }

      .filter-options-panel.hidden {
        display: none !important;
      }

      .filter-options-panel.hidden + #filterOptionsBtn {
        margin-top: 0;
      }

      aside > .copyright-note {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px 8px;
        margin-top: 0;
        font-size: 9px;
        line-height: 1;
        align-self: end;
      }

      #drillPanel {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 8px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        padding: 10px;
        border-color: rgba(87, 169, 255, 0.22);
      }

      #drillPanel.is-live-lobby-setup .setup-cues,
      #drillPanel.is-live-lobby-setup .loaded-drill-card,
      #drillPanel.is-live-lobby-setup #roundLimitControl,
      #drillPanel.is-live-lobby-setup .target,
      #drillPanel.is-live-results .setup-cues,
      #drillPanel.is-live-results .loaded-drill-card,
      #drillPanel.is-live-results #roundLimitControl,
      #drillPanel.is-live-results .target {
        display: none !important;
      }

      .drill-readout,
      #activeDrillControls {
        min-height: 0;
      }

      .drill-readout,
      #activeDrillControls {
        height: 100%;
      }

      #activeDrillControls {
        gap: 7px;
      }

      #activeDrillControls .mode-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .mode-choice {
        min-height: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 6px;
        border: 1px solid rgba(226, 237, 244, 0.16);
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        color: rgba(245, 248, 251, 0.88);
        font-size: 11px;
        letter-spacing: 0.8px;
      }

      .mode-choice.is-active {
        border-color: rgba(22, 136, 255, 0.78);
        background: linear-gradient(180deg, rgba(3, 55, 96, 0.82), rgba(3, 32, 58, 0.88));
        box-shadow:
          inset 0 0 0 1px rgba(87, 169, 255, 0.18),
          0 0 18px rgba(22, 136, 255, 0.16);
        color: #57a9ff;
      }

      #competitiveModeButton.is-active {
        border-color: rgba(22, 136, 255, 0.78);
        background: linear-gradient(180deg, rgba(3, 55, 96, 0.82), rgba(3, 32, 58, 0.88));
        box-shadow:
          inset 0 0 0 1px rgba(87, 169, 255, 0.18),
          0 0 18px rgba(22, 136, 255, 0.16);
        color: #57a9ff;
      }

      .loaded-drill-card {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 7px;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid rgba(132, 162, 183, 0.18);
        background:
          linear-gradient(180deg, rgba(11, 28, 41, 0.86), rgba(5, 17, 27, 0.92));
      }

      .loaded-drill-main,
      .loaded-drill-stat {
        min-width: 0;
      }

      .loaded-drill-card span {
        display: block;
        margin-bottom: 3px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.75px;
        line-height: 1.05;
        text-transform: uppercase;
      }

      .loaded-drill-card strong {
        display: block;
        color: #f5f8fb;
        font-size: 15px;
        line-height: 1.05;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .setup-cues {
        display: grid;
        gap: 4px;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(22, 136, 255, 0.26);
        background:
          linear-gradient(180deg, rgba(3, 37, 67, 0.36), rgba(5, 17, 27, 0.82));
      }

      .setup-cues.is-hidden {
        display: none;
      }

      .setup-mode-title {
        color: #57a9ff;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.65px;
        line-height: 1.15;
        text-transform: uppercase;
      }

      .setup-mode-copy {
        margin: 0;
        color: rgba(202, 214, 224, 0.86);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.32;
      }

      .setup-cues.is-competitive {
        border-color: rgba(240, 36, 50, 0.28);
        background:
          linear-gradient(180deg, rgba(88, 16, 25, 0.26), rgba(5, 17, 27, 0.84));
      }

      .setup-cues.is-competitive .setup-mode-title {
        color: #ff3445;
      }

      .setup-cue {
        display: grid;
        grid-template-columns: 18px 1fr;
        gap: 8px;
        align-items: start;
        min-width: 0;
        color: rgba(226, 237, 244, 0.86);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
      }

      .setup-cue-icon {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        color: #57a9ff;
        border: 1px solid rgba(87, 169, 255, 0.44);
        background: rgba(22, 136, 255, 0.12);
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
      }

      .setup-cue strong {
        display: block;
        margin-bottom: 1px;
        color: #f5f8fb;
        font-size: 10px;
        letter-spacing: 0.75px;
        line-height: 1.1;
        text-transform: uppercase;
      }

      .round-limit {
        gap: 5px;
        margin-top: 2px;
      }

      .round-limit label,
      .identity-grid label {
        margin-bottom: 4px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        letter-spacing: 0.9px;
      }

      .round-limit input,
      .identity-grid select {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
      }

      .zoom-assist-option,
      .live-tournament-option {
        min-height: 32px;
        padding: 7px 9px;
        border-radius: 6px;
        font-size: 10px;
        letter-spacing: 0.7px;
        text-transform: uppercase;
      }

      .zoom-assist-option input,
      .live-tournament-option input {
        width: 14px;
        height: 14px;
      }

      .stepper-input .stepper-buttons {
        width: 34px;
      }

      .target {
        position: relative;
        min-height: 64px;
        padding: 10px 12px;
        border-radius: 8px;
        border-color: rgba(22,136,255,0.62);
        background:
          linear-gradient(180deg, rgba(3, 42, 73, 0.86), rgba(4, 25, 40, 0.92));
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
      }

      .target small {
        margin-bottom: 4px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        letter-spacing: 0.9px;
      }

      .target strong {
        font-size: 19px;
        letter-spacing: -0.2px;
        overflow-wrap: anywhere;
      }

      .score-grid {
        gap: 7px;
      }

      .score-tile {
        min-height: 53px;
        padding: 8px 9px;
        border-color: rgba(132, 162, 183, 0.18);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      }

      .score-tile span {
        margin-bottom: 4px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 9px;
        line-height: 1.05;
        letter-spacing: 0.7px;
      }

      .score-tile strong {
        font-size: 18px;
        line-height: 1.05;
      }

      #startDrillBtn,
      #liveCreateRoomBtn,
      #liveStartRoomBtn,
      #nextStreetBtn,
      #resetDrillBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin-top: 0;
        min-height: var(--btn-height);
        height: var(--btn-height);
        padding: 0 var(--btn-padding-x);
        border-radius: var(--btn-radius);
        font-size: var(--btn-font-size);
        letter-spacing: var(--btn-letter-spacing);
      }

      .drill-action-stack {
        gap: 5px;
      }

      #resetDrillBtn {
        color: #f5f8fb;
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        border: 1px solid rgba(226, 237, 244, 0.10);
      }

      #startDrillBtn.is-new-round {
        color: #f5f8fb;
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        border: 1px solid rgba(226, 237, 244, 0.10);
        box-shadow: none;
      }

      #nextStreetBtn {
        color: #57a9ff;
        border: 1px solid rgba(22, 136, 255, 0.55);
        background: rgba(3, 37, 67, 0.38);
      }

      #nextStreetBtn.is-live-manual-ready:not(:disabled) {
        color: #fff;
        border-color: rgba(87, 169, 255, 0.86);
        background: linear-gradient(180deg, rgba(22, 136, 255, 0.92), rgba(3, 80, 154, 0.96));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.18),
          0 0 24px rgba(22, 136, 255, 0.34);
      }

      .round-summary {
        align-self: stretch;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        grid-template-rows: minmax(0, 1fr);
        border-radius: 8px;
        border-color: rgba(87, 169, 255, 0.22);
        background:
          linear-gradient(180deg, rgba(8, 24, 36, 0.92), rgba(4, 15, 24, 0.965));
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
      }

      .round-summary::-webkit-scrollbar {
        width: 8px;
      }

      .round-summary::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.035);
        border-left: 1px solid rgba(226, 237, 244, 0.08);
        border-radius: 999px;
        margin: 4px 2px;
      }

      .round-summary::-webkit-scrollbar-thumb {
        min-height: 32px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
        border: 2px solid rgba(5, 18, 28, 0.96);
      }

      .summary-body {
        gap: 5px;
        min-height: 100%;
        padding: 6px 10px 7px;
      }

      .round-summary:not(.street-summary-open) .summary-body {
        align-content: stretch;
        grid-template-rows: auto auto auto auto auto minmax(8px, 1fr) auto auto;
      }

      .round-summary:not(.street-summary-open) #toggleRoundResultsBtn {
        grid-row: 7;
      }

      .round-summary:not(.street-summary-open) .summary-actions {
        grid-row: 8;
      }

      .summary-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        padding: 8px 9px;
        border: 1px solid rgba(132, 162, 183, 0.16);
        border-radius: 8px;
        background:
          linear-gradient(90deg, color-mix(in srgb, var(--summary-accent, var(--blue)) 10%, transparent), transparent 70%),
          linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.018));
      }

      .summary-hero > div:first-child {
        min-width: 0;
      }

      .summary-hero span,
      .summary-subtitle {
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        line-height: 1.15;
      }

      .summary-subtitle {
        gap: 4px;
        margin: 0;
        padding: 8px 9px;
      }

      .summary-feedback-label {
        font-size: 8px;
      }

      .summary-feedback-main {
        font-size: 12px;
      }

      .summary-feedback-score {
        display: none;
      }

      .summary-feedback-focus {
        display: block;
        font-size: 11px;
      }

      .summary-trophy-card {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 8px;
        padding: 7px 8px;
      }

      .summary-trophy-card img {
        width: 50px;
        height: 50px;
      }

      .summary-trophy-card strong {
        font-size: 14px;
      }

      .summary-trophy-card p {
        font-size: 10px;
        line-height: 1.2;
      }

      .summary-hero strong {
        font-size: 29px;
        letter-spacing: -0.4px;
      }

      .summary-progress {
        height: 5px;
        margin-top: 6px;
      }

      .performance-badge {
        padding: 8px 10px;
        border-radius: 7px;
        font-size: 10px;
        letter-spacing: 0.7px;
        align-self: center;
      }

      .summary-metrics,
      .tier-grid {
        gap: 6px;
      }

      .summary-metric,
      .tier-card {
        border-color: rgba(132, 162, 183, 0.16);
        background: rgba(255,255,255,0.035);
        padding: 6px 7px;
      }

      .summary-metric span,
      .tier-card span {
        margin-bottom: 0;
        color: rgba(202, 214, 224, 0.78);
        font-size: 8px;
        line-height: 1.05;
        letter-spacing: 0.7px;
        white-space: nowrap;
      }

      .summary-metric strong {
        font-size: 17px;
        line-height: 1.05;
      }

      .tier-card strong {
        font-size: 17px;
        margin-bottom: 0;
      }

      #toggleRoundResultsBtn,
      .summary-actions button {
        min-height: 28px;
        height: 28px;
        padding: 0 7px;
        border-radius: 7px;
        font-size: 9px;
        letter-spacing: 0.55px;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
      }

      #toggleRoundResultsBtn {
        color: #57a9ff;
        border: 1px solid rgba(22, 136, 255, 0.55);
        background: rgba(3, 37, 67, 0.38);
      }

      #mainMenuBtn {
        color: #f5f8fb;
        border: 1px solid rgba(226, 237, 244, 0.10);
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
      }

      #tryAgainBtn {
        color: #fff;
        border: 1px solid rgba(240,36,50,0.72);
        background: linear-gradient(180deg, #ff2636, #d50818);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
      }

      .summary-actions {
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 4px;
        padding-top: 9px;
        border-top: 1px solid rgba(226, 237, 244, 0.08);
        background:
          linear-gradient(180deg, rgba(5, 18, 28, 0), rgba(5, 18, 28, 0.42));
      }

      .round-results-panel {
        max-height: 165px;
        gap: 5px;
      }

      .round-summary.street-summary-open .summary-body {
        grid-template-rows: none;
        gap: 5px;
        padding-top: 8px;
        min-height: 0;
      }

      .round-summary.street-summary-open .round-results-panel.visible {
        max-height: 165px;
        overflow: auto;
      }

      .round-result-item {
        padding: 7px 9px;
        border-left-width: 3px;
        border-top-color: rgba(132, 162, 183, 0.18);
        border-right-color: rgba(132, 162, 183, 0.18);
        border-bottom-color: rgba(132, 162, 183, 0.18);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      }

      .result-firstdue,
      .result-1stdue {
        border-left-color: #2fd16c;
        background: linear-gradient(180deg, rgba(47,209,108,0.105), rgba(255,255,255,0.025));
      }

      .result-seconddue,
      .result-2nddue {
        border-left-color: #57a9ff;
        background: linear-gradient(180deg, rgba(87,169,255,0.105), rgba(255,255,255,0.025));
      }

      .result-thirddue,
      .result-3rddue {
        border-left-color: #ffd34d;
        background: linear-gradient(180deg, rgba(255,211,77,0.105), rgba(255,255,255,0.025));
      }

      .result-rit,
      .result-miss {
        border-left-color: #ff5d5d;
        background: linear-gradient(180deg, rgba(255,93,93,0.105), rgba(255,255,255,0.025));
      }

      .round-result-focus {
        border-top-color: rgba(255, 211, 77, 0.34);
        border-right-color: rgba(255, 211, 77, 0.34);
        border-bottom-color: rgba(255, 211, 77, 0.34);
      }

      .street-summary-strip {
        gap: 5px;
        padding: 0;
      }

      .street-summary-strip span {
        font-size: 8px;
        padding: 7px;
      }

      .street-summary-strip strong {
        font-size: 13px;
      }

      .round-result-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .round-result-name {
        font-size: 12px;
      }

      .round-result-meta {
        grid-template-columns: repeat(3, minmax(0, auto));
        gap: 3px 8px;
        margin-top: 4px;
        font-size: 10px;
      }

      .round-result-tier {
        font-size: 10px;
      }

      .round-result-review {
        padding: 2px 5px;
        font-size: 7px;
      }

      .round-result-label {
        font-size: 8px;
      }

      .splash-screen {
        background:
          radial-gradient(circle at 48% 42%, rgba(240, 36, 50, 0.08), transparent 28%),
          #020a10;
      }

      .splash-screen::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
          linear-gradient(90deg, rgba(2,10,16,0.28), transparent 16%, transparent 78%, rgba(2,10,16,0.22)),
          linear-gradient(180deg, rgba(2,10,16,0.12), transparent 38%, rgba(2,10,16,0.16));
      }
    }

    @media (min-width: 701px) and (max-width: 900px) {
      body {
        grid-template-columns: minmax(340px, 48vw) minmax(0, 1fr);
      }

      .splash-screen {
        background: #020a10 url('../foldable_splash.png') center center / cover no-repeat;
      }

      .splash-screen img,
      .splash-screen::after {
        display: none;
      }
    }

    .mobile-shell,
    .mobile-play-hud {
      display: none;
    }

    @media (max-width: 700px) {
      body {
        --mobile-panel-bg:
          linear-gradient(180deg, rgba(7, 24, 36, 0.94), rgba(4, 16, 26, 0.985));
        --mobile-card-bg:
          linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.026));
        --mobile-action-bg:
          linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
        --mobile-action-border: rgba(226, 237, 244, 0.12);
        --mobile-blue-action-bg:
          linear-gradient(180deg, rgba(3, 55, 92, 0.58), rgba(3, 30, 54, 0.48));
        --mobile-blue-action-border: rgba(22,136,255,0.58);
        --mobile-red-action-bg:
          linear-gradient(180deg, #ff2636, #d50818);
        --mobile-disabled-bg:
          linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.055));
        display: block;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        overscroll-behavior: none;
      }

      aside {
        display: none;
      }

      #mapStage {
        position: fixed;
        inset: 0;
        z-index: 0;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
      }

      .splash-screen {
        place-items: start center;
        background: #020a10 url('../mobile_splash.png?v=20260625-mobile-banner') center top / cover no-repeat;
        bottom: auto;
        height: clamp(180px, 24vh, 240px);
      }

      .splash-screen img {
        display: none;
      }

      .mobile-shell {
        position: fixed;
        inset: 0;
        z-index: 14;
        display: none;
        pointer-events: none;
        -webkit-tap-highlight-color: transparent;
      }

      .mobile-shell.is-ready {
        display: block;
      }

      .mobile-shell.mobile-leaderboard-open {
        display: none !important;
      }

      .mobile-topbar {
        position: absolute;
        top: calc(10px + env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        display: none;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
      }

      .mobile-shell.mobile-state-ready .mobile-topbar,
      .mobile-shell.mobile-state-result .mobile-topbar {
        display: none;
      }

      .mobile-search-pill,
      .mobile-icon-button,
      .mobile-sheet,
      .mobile-play-hud {
        pointer-events: auto;
      }

      .mobile-search-pill {
        min-width: 0;
        min-height: 54px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        border: 0;
        border-radius: 12px;
        background:
          linear-gradient(180deg, rgba(8, 24, 36, 0.96), rgba(4, 14, 22, 0.94)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 8px, transparent 8px 18px);
        color: #f5f8fb;
        padding: 10px 16px;
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 12px 30px rgba(0,0,0,0.42);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .mobile-search-pill span:first-child {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        display: grid;
        place-items: center;
        background: var(--red);
        color: #fff;
        font-size: 14px;
        box-shadow: 0 0 18px rgba(240,36,50,0.38);
      }

      .mobile-search-pill strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px;
        color: #f5f8fb;
      }

      .mobile-icon-button {
        width: 54px;
        height: 54px;
        min-height: 54px;
        border-radius: 12px;
        background: var(--mobile-action-bg);
        color: #f5f8fb;
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 12px 30px rgba(0,0,0,0.42);
        font-size: 12px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
      }

      .mobile-map-buttons {
        position: absolute;
        right: 14px;
        top: calc(88px + env(safe-area-inset-top));
        display: none;
        gap: 10px;
      }

      .mobile-shell.mobile-state-ready .mobile-map-buttons,
      .mobile-shell.mobile-state-result .mobile-map-buttons {
        display: none;
      }

      .mobile-sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(58vh, 560px);
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        border-radius: 22px 22px 0 0;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.98), rgba(4, 14, 22, 0.98)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
        color: #f5f8fb;
        border: 1px solid rgba(255,255,255,0.16);
        border-bottom: 0;
        box-shadow: 0 -18px 50px rgba(0,0,0,0.35);
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
      }

      .mobile-shell.mobile-state-home .mobile-map-buttons,
      .mobile-shell.mobile-state-home .mobile-topbar,
      .mobile-shell.mobile-state-box .mobile-map-buttons {
        display: none;
      }

      .mobile-shell.mobile-state-home::before {
        content: "";
        position: absolute;
        top: clamp(180px, 24vh, 240px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        pointer-events: none;
        background:
          linear-gradient(180deg, rgba(4, 15, 24, 0.98), rgba(2, 10, 16, 0.995)),
          repeating-linear-gradient(135deg, rgba(87,169,255,0.022) 0 8px, transparent 8px 20px);
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-box #mobileBoxSheet {
        top: auto;
        bottom: 0;
        max-height: min(40vh, 410px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 22px 22px 0 0;
        border-top: 1px solid rgba(255,255,255,0.16);
        box-shadow: 0 -18px 44px rgba(0,0,0,0.42);
        padding-top: 18px;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet {
        max-height: min(52vh, 520px);
        padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-home .mobile-sheet-handle {
        display: none;
      }

      .mobile-shell.mobile-state-box #mobileBoxSheet {
        overflow: auto;
      }

      .mobile-sheet::-webkit-scrollbar {
        display: none;
      }

      .mobile-sheet::before {
        display: none;
      }

      .mobile-sheet-handle {
        width: 72px;
        min-height: 28px;
        height: 28px;
        display: block;
        margin: -8px auto 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        touch-action: none;
        position: relative;
        z-index: 2;
      }

      .mobile-sheet-handle::before {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        top: 12px;
        height: 4px;
        border-radius: 999px;
        background: rgba(224,234,242,0.44);
      }

      .mobile-sheet h2 {
        margin: 0 0 4px;
        color: #f5f8fb;
        font-size: 26px;
        line-height: 1.05;
        letter-spacing: 0;
      }

      .mobile-shell.mobile-state-home .mobile-sheet h2,
      .mobile-shell.mobile-state-box .mobile-sheet h2 {
        max-width: none;
        margin: 0;
        font-size: clamp(26px, 7.5vw, 36px);
        line-height: 0.98;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .mobile-shell.mobile-state-home .mobile-sheet p,
      .mobile-shell.mobile-state-box .mobile-sheet p {
        max-width: 30ch;
        margin: 6px 0 0;
        font-size: 16px;
        line-height: 1.35;
      }

      .mobile-home-lockup {
        display: block;
      }

      .mobile-home-search {
        width: 100%;
        min-height: 62px;
        margin-top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.22);
        background: rgba(255,255,255,0.09);
        color: #f5f8fb;
        padding: 12px 14px;
        text-align: left;
      }

      .mobile-home-search span {
        color: rgba(245,248,251,0.76);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-transform: none;
        letter-spacing: 0;
      }

      .mobile-home-search strong {
        min-width: 50px;
        border-radius: 9px;
        background: var(--red);
        color: #fff;
        padding: 10px 12px;
        text-align: center;
        text-transform: uppercase;
        box-shadow: 0 0 20px rgba(240,36,50,0.24);
      }

      .mobile-home-filters {
        display: grid;
        gap: 9px;
        margin-top: 18px;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
      }

      .mobile-shell.mobile-state-home.mobile-expanding .mobile-home-filters,
      .mobile-shell.mobile-state-home.mobile-expanding .mobile-home-actions {
        display: none;
        pointer-events: none;
      }

      .mobile-home-filters select {
        width: 100%;
        min-height: 48px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.075);
        color: #f5f8fb;
        padding: 8px 12px;
        font-size: 16px;
        font-weight: 900;
      }

      .mobile-home-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 18px;
      }

      .mobile-home-actions button {
        width: 100%;
        min-height: 48px;
      }

      .mobile-sheet p {
        margin: 0 0 14px;
        color: var(--muted);
        font-size: 14px;
        font-weight: 700;
      }

      .mobile-sheet-actions,
      .mobile-mode-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }

      .mobile-sheet button,
      .mobile-sheet input,
      .mobile-sheet select {
        min-height: 50px;
        border-radius: 10px;
        font-size: 16px;
        letter-spacing: 0.4px;
        text-transform: uppercase;
      }

      .mobile-sheet button {
        background: var(--mobile-action-bg);
        color: #dceeff;
        border: 1px solid var(--mobile-action-border);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.08),
          0 10px 18px rgba(0,0,0,0.10);
      }

      .mobile-sheet button.primary {
        background: var(--btn-primary-bg);
        color: #fff;
        border-color: rgba(240,36,50,0.72);
        box-shadow: var(--btn-primary-shadow);
      }

      .mobile-sheet .btn-primary,
      .mobile-sheet .btn-secondary,
      .mobile-sheet .btn-action-row {
        min-height: var(--btn-height);
        border-radius: var(--btn-radius);
        font-size: var(--btn-font-size);
        font-weight: var(--btn-font-weight);
        letter-spacing: var(--btn-letter-spacing);
      }

      #liveSetupModal #liveJoinRoomBtn {
        min-height: var(--btn-height);
        border-color: rgba(240,36,50,0.72);
        border-radius: var(--btn-radius);
        background: var(--btn-primary-bg);
        color: #fff;
        box-shadow: var(--btn-primary-shadow);
        font-size: var(--btn-font-size);
        font-weight: var(--btn-font-weight);
        letter-spacing: var(--btn-letter-spacing);
      }

      #liveSetupModal #liveJoinRoomBtn:disabled {
        background: var(--mobile-disabled-bg);
        border-color: rgba(255,255,255,0.11);
        color: rgba(202,214,224,0.58);
        box-shadow: none;
      }

      .mobile-sheet button:disabled {
        background: var(--mobile-disabled-bg);
        color: rgba(245,248,251,0.56);
        border-color: rgba(255,255,255,0.10);
        box-shadow: none;
      }

      .mobile-shell .option-info-button,
      .mobile-sheet .option-info-button,
      .mobile-hud-actions .option-info-button {
        display: inline-grid;
        width: 20px;
        min-width: 20px;
        max-width: 20px;
        height: 20px;
        min-height: 20px;
        max-height: 20px;
        padding: 0;
        border-radius: 999px;
        font-size: 13px;
        letter-spacing: 0;
        text-transform: none;
      }

      .mobile-shell .option-info-button::after {
        z-index: 120;
        width: min(190px, calc(100vw - 92px));
      }

      .mobile-sheet input,
      .mobile-sheet select {
        margin-bottom: 8px;
        border: 1px solid rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.08);
        color: #f5f8fb;
        text-transform: none;
      }

      .mobile-mode-row button.is-active {
        background: var(--mobile-blue-action-bg);
        color: #fff;
        border-color: rgba(22,136,255,0.82);
      }

      .mobile-box-results {
        display: grid;
        gap: 8px;
        max-height: 230px;
        overflow: auto;
        margin: 4px 0 12px;
        scrollbar-width: none;
      }

      .mobile-box-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        min-height: 54px;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 10px;
        background: var(--mobile-card-bg);
        padding: 10px 12px;
        color: #f5f8fb;
        font-size: 17px;
        font-weight: 900;
      }

      .mobile-box-row.is-selected {
        border-color: rgba(240,36,50,0.82);
        background: linear-gradient(180deg, rgba(240,36,50,0.22), rgba(96,13,24,0.38));
      }

      .mobile-ready-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 12px 0;
      }

      .mobile-ready-stat {
        border-radius: 10px;
        background: var(--mobile-card-bg);
        border: 1px solid rgba(255,255,255,0.12);
        padding: 12px;
      }

      .mobile-ready-stat span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.6px;
      }

      .mobile-ready-stat strong {
        display: block;
        margin-top: 4px;
        color: #f5f8fb;
        font-size: 20px;
      }

      .mobile-play-hud {
        display: grid;
        position: absolute;
        top: calc(10px + env(safe-area-inset-top));
        left: calc(var(--mobile-vv-left, 0px) + max(12px, env(safe-area-inset-left)));
        right: auto;
        width: calc(var(--mobile-vv-width, 100vw) - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        z-index: 16;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        border-radius: 12px;
        background: var(--mobile-panel-bg);
        color: #fff;
        padding: 14px;
        border: 1px solid rgba(255,255,255,0.18);
        border-left: 5px solid var(--red);
        box-shadow: 0 12px 30px rgba(0,0,0,0.34);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 0, 0);
        transition: opacity 120ms ease;
      }

      .mobile-play-hud.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      .mobile-play-hud.is-expanded {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
      }

      .mobile-play-hud small {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 1px;
        text-transform: uppercase;
        opacity: 0.78;
      }

      .mobile-play-hud strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 23px;
        line-height: 1.05;
      }

      .mobile-play-hud.is-dispatching {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        border-color: rgba(240,36,50,0.74);
        background:
          linear-gradient(90deg, rgba(240,36,50,0.20), rgba(22,136,255,0.06)),
          linear-gradient(180deg, rgba(9,25,37,0.98), rgba(3,13,21,0.98));
        box-shadow:
          0 0 30px rgba(240,36,50,0.28),
          0 12px 30px rgba(0,0,0,0.34);
      }

      .mobile-play-hud.is-dispatching small,
      .mobile-play-hud.is-dispatching .mobile-hud-meta {
        display: none;
      }

      .mobile-play-hud.is-dispatching strong {
        color: #ffeff1;
        font-size: 34px;
        letter-spacing: 1px;
        text-shadow: 0 0 18px rgba(240,36,50,0.52);
        text-align: center;
      }

      .mobile-hud-meta {
        text-align: right;
        font-weight: 900;
      }

      .mobile-hud-expanded {
        display: none;
        grid-column: 1 / -1;
        gap: 10px;
        margin-top: 4px;
      }

      .mobile-play-hud.is-expanded .mobile-hud-expanded {
        display: grid;
      }

      .mobile-hud-stat-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .mobile-hud-stat {
        min-width: 0;
        border: 1px solid rgba(226, 237, 244, 0.14);
        border-radius: 8px;
        background: var(--mobile-card-bg);
        padding: 8px 10px;
      }

      .mobile-hud-stat span {
        display: block;
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .mobile-hud-stat strong {
        margin-top: 4px;
        font-size: 18px;
        line-height: 1;
      }

      .mobile-hud-actions {
        display: grid;
        gap: 8px;
      }

      .mobile-hud-zoom-option {
        margin: 0;
        height: 38px;
        border-radius: 8px;
      }

      .mobile-hud-actions button {
        min-height: 36px;
        border-radius: 8px;
        background: var(--mobile-action-bg);
        border: 1px solid var(--mobile-action-border);
        color: #f5f8fb;
      }

      .mobile-hud-actions .mobile-hud-submit {
        background: linear-gradient(180deg, #ff2636, #d50818);
        border-color: rgba(240,36,50,0.72);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
      }

      .mobile-hidden {
        display: none !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet {
        top: 33vh;
        bottom: 0;
        max-height: none;
        overflow: auto;
        border-radius: 8px 8px 0 0;
        padding: 14px 12px calc(12px + env(safe-area-inset-bottom));
      }

      .mobile-panel-label {
        display: block;
        margin: 0 0 8px;
        color: #f5f8fb;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 1.4px;
        text-transform: uppercase;
      }

      .mobile-shell.mobile-state-home .mobile-home-lockup,
      .mobile-shell.mobile-state-home .mobile-home-search {
        display: none;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        display: grid;
        gap: 4px;
        margin: 0;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters select,
      #mobileHomeBoxSearch {
        width: 100%;
        min-height: 39px;
        margin: 0;
        border-radius: 7px;
        border: 1px solid rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.075);
        color: #f5f8fb;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 900;
      }

      #mobileHomeBoxSearch {
        margin-top: 4px;
      }

      .mobile-shell.mobile-state-home .mobile-box-results {
        display: grid;
        gap: 0;
        max-height: min(30vh, 320px);
        margin: 4px 0 8px;
        overflow: auto;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 7px;
        background: rgba(12, 31, 44, 0.70);
      }

      .mobile-shell.mobile-state-home .mobile-box-row {
        min-height: 23px;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 1px 10px;
        font-size: 15px;
        letter-spacing: 0;
      }

      .mobile-shell.mobile-state-home .mobile-box-row span:last-child {
        display: none;
      }

      #mobileHomeClearBtn,
      #mobileHomeLoadDrillBtn,
      #mobileLeaderboardBtn,
      #mobileTrainingGuideBtn {
        width: 100%;
        min-height: 34px;
        border-radius: 7px;
        font-size: 13px;
      }

      .mobile-selection-note {
        margin: 8px 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
      }

      .mobile-copyright-note {
        margin-top: 14px;
        color: rgba(174,185,194,0.74);
        font-size: 11px;
        font-weight: 700;
        text-align: center;
      }

      .splash-screen {
        background-size: cover;
        background-position: center top;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet {
        top: clamp(188px, 24vh, 228px);
        bottom: 0;
        z-index: 1;
        min-height: 0;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 24px 24px 0 0;
        padding: 13px 16px calc(16px + env(safe-area-inset-bottom));
        background:
          radial-gradient(circle at 18% 14%, rgba(21, 64, 84, 0.35), transparent 34%),
          linear-gradient(180deg, rgba(7, 24, 36, 0.96), rgba(3, 13, 21, 0.985));
        border-color: rgba(177, 206, 223, 0.22);
        box-shadow: 0 -20px 55px rgba(0,0,0,0.56);
      }

      .mobile-shell.mobile-state-home .mobile-sheet-handle {
        display: none;
      }

      .mobile-shell.mobile-state-home .mobile-sheet-handle::before {
        left: 11px;
        right: 11px;
        top: 7px;
        height: 4px;
        background: rgba(213, 225, 233, 0.68);
      }

      .mobile-shell.mobile-state-home .mobile-panel-label {
        margin: 0 0 3px;
        color: #f3f8fb;
        font-size: 12px;
        letter-spacing: 1.6px;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        display: grid;
        flex: 0 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 8px 0 8px;
      }

      .mobile-menu-row {
        min-height: 48px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        border: 1px solid rgba(226, 237, 244, 0.21);
        background:
          linear-gradient(90deg, rgba(255,255,255,0.072), rgba(255,255,255,0.028)),
          rgba(4, 15, 24, 0.72);
        box-shadow:
          inset 0 0 18px rgba(255,255,255,0.018),
          0 8px 24px rgba(0,0,0,0.14);
        padding: 6px 10px;
      }

      .mobile-menu-icon {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 0;
        display: grid;
        place-items: center;
        color: var(--red);
        font-size: 0;
        font-weight: 900;
      }

      .mobile-menu-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-control-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .mobile-control-copy small {
        color: rgba(202, 214, 224, 0.66);
        font-size: 0;
        font-weight: 900;
        letter-spacing: 1.1px;
        text-transform: uppercase;
      }

      .mobile-menu-row-select::after {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 3px solid rgba(238, 246, 250, 0.84);
        border-bottom: 3px solid rgba(238, 246, 250, 0.84);
        rotate: 45deg;
        margin-top: -5px;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters select,
      .mobile-menu-row-search #mobileHomeBoxSearch {
        min-height: 28px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #f5f8fb;
        padding: 0;
        font-size: 16px;
        font-weight: 900;
        outline: 0;
        letter-spacing: 0;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters select {
        appearance: none;
      }

      .mobile-menu-row-search {
        flex: 0 0 auto;
        display: grid;
        margin-top: 0;
        grid-template-columns: 34px minmax(0, 1fr);
      }

      .mobile-menu-row-firstdue {
        grid-column: 1 / -1;
      }

      .mobile-filter-clear {
        grid-column: 1 / -1;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 8px;
        background: rgba(255,255,255,0.075);
        border: 1px solid rgba(255,255,255,0.14);
        color: rgba(220,238,255,0.88);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row-search,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-menu-row-search,
      .mobile-shell.mobile-state-home.has-mobile-selection .mobile-menu-row-search {
        display: grid;
      }

      .mobile-menu-row-search #mobileHomeBoxSearch::placeholder {
        color: rgba(207, 216, 224, 0.58);
        opacity: 1;
      }

      .mobile-shell.mobile-state-home .mobile-copyright-note {
        display: none;
      }

      .mobile-shell.mobile-state-home .mobile-box-results {
        display: grid;
        gap: 0;
        align-content: start;
        flex: 1 1 auto;
        min-height: 86px;
        max-height: none;
        margin: 5px 0 14px;
        padding-bottom: 10px;
        overflow: auto;
        border: 1px solid rgba(226, 237, 244, 0.17);
        border-radius: 8px;
        background: rgba(11, 29, 42, 0.72);
      }

      .mobile-fire-box-list-head {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 6px 2px 5px;
        color: rgba(202, 214, 224, 0.82);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 1.2px;
        text-transform: uppercase;
      }

      .mobile-selection-note {
        min-height: 48px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin: 8px 0 0;
        padding: 7px 13px 6px;
        border: 0;
        border-bottom: 0;
        border-radius: 0;
        background:
          linear-gradient(180deg, rgba(8, 29, 43, 0.92), rgba(5, 20, 31, 0.96)),
          rgba(3, 13, 21, 0.92);
        color: rgba(218, 229, 237, 0.88);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.4px;
        line-height: 1.18;
        text-transform: none;
      }

      .mobile-selection-note .mobile-selection-mark {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
        color: var(--red);
      }

      .mobile-selection-note .mobile-selection-mark svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-selection-note strong,
      .mobile-selection-note small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .mobile-selection-note strong {
        color: #f5f8fb;
        font-size: 12px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .mobile-selection-note small {
        margin-top: 2px;
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        letter-spacing: 0.2px;
        text-transform: none;
      }

      .mobile-filter-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 10px 2px;
        background:
          var(--mobile-panel-bg),
          rgba(3, 13, 21, 0.90);
      }

      .mobile-filter-options.hidden {
        display: none !important;
      }

      .mobile-action-panel .mobile-filter-option {
        min-height: 31px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        margin: 0;
        padding: 5px 9px;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 7px;
        background: var(--mobile-action-bg);
        color: rgba(202,214,224,0.76);
        box-shadow: none;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.75px;
        line-height: 1;
        text-transform: uppercase;
      }

      .mobile-action-panel .mobile-filter-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }

      .mobile-action-panel .mobile-filter-option.is-all-selected {
        border-color: rgba(47, 209, 108, 0.34);
        background: linear-gradient(180deg, rgba(47, 209, 108, 0.14), rgba(14, 76, 42, 0.20));
        color: rgba(223, 253, 234, 0.90);
      }

      .mobile-action-panel .mobile-filter-option.is-some-selected {
        border-color: rgba(87, 169, 255, 0.40);
        background: var(--mobile-blue-action-bg);
        color: rgba(220, 238, 255, 0.90);
      }

      .mobile-action-panel .mobile-filter-option.highway-box-toggle.is-all-selected {
        border-color: rgba(255, 211, 77, 0.36);
        background: rgba(255, 211, 77, 0.08);
        color: rgba(255, 235, 170, 0.92);
      }

      .mobile-action-panel .mobile-filter-option.is-disabled {
        opacity: 0.48;
      }

      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet {
        top: clamp(188px, 24vh, 228px);
      }

      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet {
        top: clamp(188px, 24vh, 228px);
      }

      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results {
        display: grid;
        gap: 0;
        align-content: start;
        flex: 1 1 auto;
        min-height: 86px;
        max-height: none;
        margin: 5px 0 14px;
        padding-bottom: 10px;
        overflow: auto;
        border: 1px solid rgba(226, 237, 244, 0.17);
        border-radius: 9px;
        background: rgba(11, 29, 42, 0.72);
      }

      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(164px, 21vh, 196px);
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters {
        gap: 7px;
        margin: 6px 0;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 43px;
        padding-block: 5px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto;
        min-height: 150px;
        max-height: none;
        margin-bottom: 8px;
        padding-bottom: 0;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        flex: 0 0 auto;
        margin-top: 0;
        margin-bottom: 0;
        overflow: visible;
      }

      .mobile-shell.mobile-state-home .mobile-box-row {
        min-height: 34px;
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        border: 0;
        border-bottom: 1px solid rgba(226, 237, 244, 0.09);
        border-radius: 0;
        background: transparent;
        padding: 5px 12px;
        font-size: 15px;
        text-align: left;
        letter-spacing: 0;
      }

      .mobile-box-check {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        border: 1px solid rgba(202, 214, 224, 0.42);
        background: rgba(255,255,255,0.035);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
      }

      .mobile-box-row.is-selected {
        background: linear-gradient(90deg, rgba(240, 36, 50, 0.45), rgba(22, 136, 255, 0.18));
        box-shadow: inset 3px 0 0 var(--red);
      }

      .mobile-box-row.is-selected .mobile-box-check {
        border-color: var(--red);
        background: rgba(240, 36, 50, 0.15);
        position: relative;
      }

      .mobile-box-row.is-selected .mobile-box-check::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 6px;
        height: 10px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        rotate: 45deg;
      }

      .mobile-shell.mobile-state-home .mobile-box-row:last-child {
        border-bottom: 0;
      }

      .mobile-shell.mobile-state-home .mobile-box-row span:last-child {
        color: rgba(245,248,251,0.56);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
      }

      .mobile-home-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
        padding: 8px 10px 10px;
        border-left: 0;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(7, 24, 36, 0.84), rgba(4, 16, 26, 0.90));
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
      }

      .mobile-action-panel {
        flex: 0 0 auto;
        margin-top: auto;
        overflow: hidden;
        border: 1px solid rgba(132, 162, 183, 0.18);
        border-left: 4px solid var(--red);
        border-radius: 8px;
        background: var(--mobile-panel-bg);
      }

      .mobile-action-panel .button-icon {
        width: 16px;
        height: 16px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 16px;
      }

      .mobile-action-panel .button-icon svg {
        width: 16px;
        height: 16px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      #mobileJoinStationBtn .button-icon {
        overflow: visible;
      }

      #mobileJoinStationBtn .mode-team-icon {
        width: 20px;
        height: 18px;
        color: currentColor;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
      }

      #mobileHomeLoadDrillBtn {
        display: block;
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
        min-height: 38px;
        border-radius: 8px;
        background: var(--mobile-red-action-bg);
        border-color: rgba(240,36,50,0.72);
        color: #fff;
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
        font-size: 14px;
        letter-spacing: 1.1px;
      }

      #mobileHomeLoadDrillBtn:disabled {
        background: var(--mobile-disabled-bg);
        border-color: rgba(255,255,255,0.11);
        color: rgba(202,214,224,0.58);
        box-shadow: none;
      }

      #mobileHomeLoadDrillBtn:disabled .play-icon {
        opacity: 0.48;
      }

      .mobile-quick-actions {
        order: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 34px;
        border-radius: 8px;
        background: var(--mobile-action-bg);
        border: 1px solid transparent;
        color: #f5f8fb;
        font-size: 12px;
        letter-spacing: 0.9px;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn {
        order: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 34px;
        border-radius: 8px;
        border-color: rgba(22,136,255,0.72);
        background: var(--mobile-blue-action-bg);
        color: #57a9ff;
        box-shadow:
          inset 0 0 18px rgba(22,136,255,0.08),
          0 0 18px rgba(22,136,255,0.16);
        font-size: 12px;
        letter-spacing: 0.5px;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn.is-active {
        border: 1px solid rgba(87,169,255,0.36);
        background: var(--mobile-blue-action-bg);
        color: #dceeff;
      }

      .mobile-quick-actions button,
      #mobileLeaderboardBtn,
      #mobileTrainingGuideBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 34px;
        border-radius: 8px;
        background: var(--mobile-blue-action-bg);
        border-color: rgba(87,169,255,0.30);
        color: rgba(220,238,255,0.90);
        font-size: 12px;
        letter-spacing: 0.5px;
      }

      #mobileLeaderboardBtn,
      #mobileTrainingGuideBtn {
        grid-column: 1 / -1;
        color: #57a9ff;
        border-color: rgba(22,136,255,0.72);
        background: var(--mobile-blue-action-bg);
        box-shadow:
          inset 0 0 18px rgba(22,136,255,0.08),
          0 0 18px rgba(22,136,255,0.16);
        font-size: 12px;
      }

      #mobileHomeLoadDrillBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      #mobileHomeLoadDrillBtn .play-icon svg {
        color: #fff;
        fill: #fff;
        stroke: none;
      }

      #mobileHomeLoadDrillBtn .play-icon path {
        fill: #fff;
        stroke: none;
      }

      .mobile-quick-actions button:disabled {
        color: rgba(220,238,255,0.42);
        background: var(--mobile-disabled-bg);
        border-color: rgba(255,255,255,0.09);
      }

      @media (min-width: 600px) {
        .splash-screen {
          height: clamp(168px, 23vh, 230px);
          background-position: center 18%;
        }

        .mobile-shell.mobile-state-home::before {
          top: clamp(168px, 23vh, 230px);
        }

        .mobile-shell.mobile-state-home #mobileHomeSheet,
        .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
        .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet {
          top: clamp(168px, 23vh, 230px);
          padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        }

        .mobile-shell.mobile-state-home .mobile-home-filters {
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 8px;
          margin: 7px 0;
        }

        .mobile-menu-row-firstdue {
          grid-column: auto;
        }

        .mobile-menu-row {
          min-height: 44px;
        }

        .mobile-shell.mobile-state-home .mobile-box-results,
        .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results {
          min-height: 74px;
          margin-bottom: 10px;
          padding-bottom: 4px;
        }

        .mobile-action-panel {
          display: grid;
          grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
          align-items: stretch;
        }

        .mobile-selection-note {
          min-height: 100%;
          margin: 0;
          border-right: 1px solid rgba(132, 162, 183, 0.14);
        }

        .mobile-filter-options {
          grid-column: 1 / -1;
          grid-template-columns: repeat(3, minmax(0, 1fr));
          padding: 7px 9px;
        }

        .mobile-home-actions {
          grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
          align-content: center;
          padding: 8px 10px;
        }

        .mobile-shell.mobile-state-home #mobileHomeClearBtn,
        #mobileLeaderboardBtn,
        #mobileTrainingGuideBtn {
          min-height: 34px;
        }

        .mobile-quick-actions {
          order: 1;
        }

        .mobile-shell.mobile-state-home #mobileHomeClearBtn {
          order: 2;
        }

        #mobileHomeLoadDrillBtn {
          order: 3;
          min-height: 36px;
        }
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: min(58vh, 520px);
        overflow: auto;
        border-radius: 18px 18px 0 0;
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
        background:
          radial-gradient(circle at 18% 10%, rgba(21, 64, 84, 0.28), transparent 34%),
          var(--mobile-panel-bg);
      }

      .mobile-shell.mobile-state-ready .mobile-sheet-handle {
        display: none;
      }

      .mobile-shell.mobile-state-ready .mobile-panel-label {
        margin: 0 0 8px;
        font-size: 12px;
        letter-spacing: 1.5px;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet p {
        margin: 6px 0 8px;
        color: rgba(202, 214, 224, 0.80);
        font-size: 12px;
        font-weight: 800;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stats {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 0 0 8px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat {
        border-color: rgba(226, 237, 244, 0.14);
        background: var(--mobile-card-bg);
        padding: 8px 10px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat strong {
        font-size: 19px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row {
        gap: 6px;
        margin: 0 0 6px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice,
      .mobile-shell.mobile-state-ready #mobileStartBtn {
        min-height: 38px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice {
        display: inline-grid;
        grid-template-columns: auto minmax(0, auto);
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgba(226, 237, 244, 0.14);
        border-radius: 8px;
        background: var(--mobile-action-bg);
        color: rgba(245,248,251,0.88);
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.6px;
        text-transform: uppercase;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice.is-active {
        border-color: rgba(22,136,255,0.82);
        background: var(--mobile-blue-action-bg);
        color: #e5f3ff;
      }

      .mobile-shell.mobile-state-ready #mobileCompetitiveBtn.mode-choice.is-active {
        border-color: rgba(22,136,255,0.82);
        background: var(--mobile-blue-action-bg);
        color: #e5f3ff;
        box-shadow:
          inset 0 0 0 1px rgba(87,169,255,0.18),
          0 0 18px rgba(22,136,255,0.16);
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-shell.mobile-state-ready #mobileStartBtn {
        width: 100%;
        margin-top: 6px;
        border-radius: 9px;
        border-color: rgba(240,36,50,0.72);
        background: var(--mobile-red-action-bg);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
      }

      .mobile-setup-label {
        display: block;
        margin: 6px 0 5px;
        color: #f5f8fb;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 1.1px;
        text-transform: uppercase;
      }

      .mobile-stepper-input {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px;
        align-items: stretch;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 8px;
        overflow: hidden;
        background: var(--mobile-action-bg);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14);
      }

      .mobile-street-limit {
        min-width: 0;
        width: auto;
        min-height: 44px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #f5f8fb;
        padding: 9px 10px;
        padding-right: 8px;
        font-size: 13px;
        font-weight: 900;
        appearance: textfield;
        -moz-appearance: textfield;
      }

      .mobile-shell.mobile-state-ready .mobile-stepper-input .mobile-street-limit {
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        outline: 0;
      }

      .mobile-street-limit::-webkit-outer-spin-button,
      .mobile-street-limit::-webkit-inner-spin-button {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
      }

      .mobile-stepper-input .stepper-buttons button {
        width: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(174,185,194,0.24);
        color: #f5f8fb;
        font-size: 14px;
        line-height: 1;
        letter-spacing: 0;
        display: grid;
        place-items: center;
      }

      .mobile-stepper-input .stepper-buttons {
        width: 100%;
        height: 100%;
        align-self: stretch;
        background: rgba(7,20,30,0.62);
        border-left: 1px solid rgba(255,255,255,0.12);
      }

      .mobile-stepper-input .stepper-buttons button:first-child {
        border-bottom: 1px solid rgba(255,255,255,0.12);
      }

      .mobile-stepper-input .stepper-buttons button::before {
        border-left-width: 4px;
        border-right-width: 4px;
      }

      .mobile-stepper-input .stepper-up::before {
        border-bottom: 6px solid rgba(245,248,251,0.88);
      }

      .mobile-stepper-input .stepper-down::before {
        border-top: 6px solid rgba(245,248,251,0.88);
      }

      .mobile-shell .zoom-assist-option {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 8px 0 6px;
        min-height: 0;
        height: 44px;
        border-radius: 8px;
        padding: 9px 10px;
        font-size: 12px;
      }

      .mobile-shell .drill-settings-group {
        margin: 8px 0 6px;
        overflow: visible;
      }

      .mobile-shell .drill-settings-group .zoom-assist-option {
        position: relative;
        margin: 0;
        height: 32px;
        min-height: 32px;
        padding: 6px 9px;
      }

      .mobile-shell .drill-settings-group .zoom-assist-option.is-tooltip-open,
      .mobile-shell .drill-settings-group .zoom-assist-option:has(.option-info-button.is-tooltip-open),
      .mobile-shell .drill-settings-group .zoom-assist-option:focus-within {
        z-index: 60;
      }

      .mobile-shell .zoom-assist-option input {
        width: 15px;
        height: 15px;
      }

      .mobile-shell .zoom-assist-option span {
        display: block;
        color: rgba(245, 248, 251, 0.86);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.6px;
        line-height: 1.1;
        text-transform: uppercase;
      }

      .mobile-score-tile span {
        display: block;
        color: rgba(202, 214, 224, 0.86);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.9px;
        text-transform: uppercase;
      }

      .mobile-answer-submit-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 92px;
        align-items: center;
        gap: 8px;
        margin: 6px 0;
        border-radius: 9px;
        border: 1px solid rgba(240, 36, 50, 0.48);
        background: rgba(240, 36, 50, 0.13);
        padding: 8px 9px;
      }

      .mobile-answer-submit-panel.hidden {
        display: none;
      }

      .mobile-answer-submit-panel span,
      .mobile-answer-submit-panel strong {
        display: block;
      }

      .mobile-answer-submit-panel span {
        color: rgba(202, 214, 224, 0.86);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .mobile-answer-submit-panel strong {
        margin-top: 2px;
        color: #f5f8fb;
        font-size: 12px;
        line-height: 1.2;
      }

      .mobile-answer-submit-panel button {
        width: 92px;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 8px;
        border-color: rgba(240,36,50,0.72);
        background: linear-gradient(180deg, #ff2636, #d50818);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
        color: #fff;
        white-space: nowrap;
      }

      .mobile-score-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
      }

      .mobile-shell.mobile-state-ready .mobile-score-grid {
        display: none;
      }

      .mobile-score-tile {
        min-width: 0;
        border-radius: 9px;
        border: 1px solid rgba(226, 237, 244, 0.14);
        background: var(--mobile-card-bg);
        padding: 7px 8px;
      }

      .mobile-score-tile strong {
        display: block;
        margin-top: 4px;
        color: #f5f8fb;
        font-size: 15px;
        line-height: 1.1;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        height: min(66vh, 620px);
        max-height: min(66vh, 620px);
        overflow: auto;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet.mobile-street-summary-open {
        overflow: hidden;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet .mobile-sheet-handle {
        display: none;
      }

      .mobile-result-summary {
        display: block;
        gap: 8px;
        min-height: 100%;
        margin-bottom: 0;
        border: 1px solid rgba(87, 169, 255, 0.22);
        border-radius: 8px;
        background:
          var(--mobile-panel-bg),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
        overflow: visible;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet > h2,
      .mobile-shell.mobile-state-result #mobileResultText {
        display: none;
      }

      .mobile-result-bar {
        display: none;
        height: 0;
        background: var(--green);
      }

      .mobile-result-body {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-height: 100%;
        overflow: visible;
        padding: 0 12px 12px;
      }

      .mobile-result-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        margin-top: 8px;
        padding: 8px 9px;
        border: 1px solid rgba(132, 162, 183, 0.16);
        border-radius: 8px;
        background:
          linear-gradient(90deg, color-mix(in srgb, var(--summary-accent, var(--blue)) 10%, transparent), transparent 70%),
          linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.018));
      }

      .mobile-result-hero span,
      .mobile-result-detail,
      .mobile-result-metric span,
      .mobile-result-tier span {
        color: rgba(202, 214, 224, 0.78);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.8px;
        line-height: 1.15;
        text-transform: uppercase;
      }

      .mobile-result-hero strong {
        display: block;
        color: #f5f8fb;
        font-size: 31px;
        line-height: 1;
      }

      .mobile-result-badge {
        align-self: center;
        border: 1px solid color-mix(in srgb, var(--summary-accent, var(--green)) 55%, rgba(255,255,255,0.12));
        border-radius: 7px;
        padding: 8px 10px;
        background:
          linear-gradient(180deg, color-mix(in srgb, var(--summary-accent, var(--green)) 20%, rgba(255,255,255,0.06)), rgba(255,255,255,0.025)),
          rgba(5, 20, 31, 0.86);
        color: var(--summary-accent, var(--green));
        font-size: 10px;
        font-style: normal;
        font-weight: 1000;
        letter-spacing: 0.7px;
        line-height: 1;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .mobile-summary-trophy-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 9px;
        padding: 7px 9px;
        border-radius: 8px;
      }

      .mobile-summary-trophy-card img {
        width: 58px;
        height: 58px;
      }

      .mobile-summary-trophy-card strong {
        font-size: 15px;
      }

      .mobile-summary-trophy-card p {
        font-size: 11px;
        line-height: 1.2;
      }

      .mobile-result-detail {
        text-transform: none;
        letter-spacing: 0;
        display: grid;
        gap: 4px;
        padding: 8px 9px;
        border: 1px solid rgba(132, 162, 183, 0.18);
        border-radius: 7px;
        background:
          linear-gradient(90deg, color-mix(in srgb, var(--summary-accent, var(--blue)) 11%, transparent), transparent 62%),
          rgba(255,255,255,0.035);
      }

      .mobile-result-metrics,
      .mobile-result-tiers {
        display: none;
        gap: 5px;
      }

      .mobile-result-summary.street-summary-open .mobile-result-metrics,
      .mobile-result-summary.street-summary-open .mobile-result-tiers {
        display: grid;
      }

      .mobile-result-summary.street-summary-open .mobile-result-metrics {
        margin-top: 8px;
      }

      .mobile-result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .mobile-result-tiers {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      .mobile-result-metric,
      .mobile-result-tier {
        min-width: 0;
        border: 1px solid rgba(132, 162, 183, 0.18);
        border-radius: 7px;
        background: var(--mobile-card-bg);
        padding: 7px 9px;
      }

      .mobile-result-tier {
        padding: 6px 5px;
      }

      .mobile-result-metric strong,
      .mobile-result-tier strong {
        display: block;
        color: #f5f8fb;
        font-size: 17px;
        line-height: 1.05;
        overflow-wrap: anywhere;
      }

      .mobile-result-tier span {
        display: block;
        margin: 0 0 3px;
        font-size: 8px;
        letter-spacing: 0.45px;
        white-space: nowrap;
      }

      #mobileToggleRoundResultsBtn {
        width: 100%;
        min-height: 38px;
        margin-top: auto;
        flex: 0 0 auto;
        color: #57a9ff;
        border: 1px solid rgba(22,136,255,0.72);
        background: var(--mobile-blue-action-bg);
        font-size: 12px;
        letter-spacing: 0.55px;
      }

      .mobile-live-scorecard {
        display: grid;
        gap: 7px;
        padding: 8px;
        border: 1px solid rgba(240, 36, 50, 0.62);
        border-radius: 8px;
        background:
          linear-gradient(90deg, rgba(240, 36, 50, 0.16), rgba(22, 136, 255, 0.06)),
          rgba(255,255,255,0.035);
        box-shadow:
          inset 3px 0 0 rgba(240,36,50,0.92),
          inset 0 0 18px rgba(240,36,50,0.05);
      }

      .mobile-live-scorecard.hidden {
        display: none !important;
      }

      .mobile-live-scorecard-head,
      .mobile-live-scorecard-player,
      .mobile-live-breakdown {
        min-width: 0;
      }

      .mobile-live-scorecard-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: rgba(202, 214, 224, 0.82);
        font-size: 10px;
        font-weight: 1000;
        letter-spacing: 0.85px;
        line-height: 1;
        text-transform: uppercase;
      }

      .mobile-live-scorecard-head strong {
        color: #ffd84d;
        font-size: 13px;
      }

      .mobile-live-scorecard-player {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
      }

      .mobile-live-rank {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background:
          radial-gradient(circle at 35% 30%, #fff7b9, #ffd84d 44%, #c98100 78%);
        color: #2a1a00;
        box-shadow:
          inset 0 0 0 2px rgba(255,255,255,0.32),
          0 0 18px rgba(255,216,77,0.20);
        font-size: 17px;
        font-weight: 1000;
      }

      .mobile-live-person {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .mobile-live-person strong,
      .mobile-live-score strong {
        color: #f5f8fb;
        line-height: 1;
      }

      .mobile-live-person strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px;
      }

      .mobile-live-person small,
      .mobile-live-person em,
      .mobile-live-score span,
      .mobile-live-breakdown span {
        color: rgba(202, 214, 224, 0.78);
        font-size: 9px;
        font-style: normal;
        font-weight: 1000;
        letter-spacing: 0.55px;
        line-height: 1.15;
        text-transform: uppercase;
      }

      .mobile-live-person em {
        color: #ffb4bd;
      }

      .mobile-live-score {
        display: grid;
        justify-items: end;
        gap: 1px;
        min-width: 54px;
      }

      .mobile-live-score strong {
        color: #ff2636;
        font-size: 26px;
      }

      .mobile-live-breakdown {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
      }

      .mobile-live-breakdown span {
        min-width: 0;
        padding: 5px 4px;
        border: 1px solid rgba(132, 162, 183, 0.18);
        border-radius: 6px;
        background: rgba(5, 20, 31, 0.70);
        color: rgba(220, 238, 255, 0.88);
        text-align: center;
        white-space: nowrap;
      }

      #mobileStreetSummaryStrip {
        margin-top: 8px;
      }

      #mobileRoundResultsPanel {
        display: none;
        max-height: 260px;
        overflow: auto;
      }

      #mobileRoundResultsPanel.visible {
        display: grid;
        gap: 6px;
      }

      .mobile-result-summary.street-summary-open .mobile-result-hero,
      .mobile-result-summary.street-summary-open .summary-trophy-card,
      .mobile-result-summary.street-summary-open .mobile-result-detail,
      .mobile-result-summary.street-summary-open .mobile-live-scorecard {
        display: none;
      }

      .mobile-result-summary.mobile-live-result-summary .mobile-result-hero,
      .mobile-result-summary.mobile-live-result-summary .summary-trophy-card,
      .mobile-result-summary.mobile-live-result-summary .mobile-result-detail,
      .mobile-result-summary.mobile-live-result-summary:not(.street-summary-open) .mobile-result-metrics,
      .mobile-result-summary.mobile-live-result-summary:not(.street-summary-open) .mobile-result-tiers {
        display: none;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet.mobile-live-result-sheet:not(.mobile-street-summary-open),
      .mobile-shell.mobile-state-result #mobileResultSheet:has(.mobile-result-summary.mobile-live-result-summary:not(.street-summary-open)) {
        height: auto;
        min-height: 0;
        max-height: calc(var(--mobile-vv-height, 100dvh) - 96px);
        overflow: visible;
      }

      .mobile-result-summary.mobile-live-result-summary:not(.street-summary-open) {
        min-height: 0;
        height: auto;
      }

      .mobile-result-summary.mobile-live-result-summary:not(.street-summary-open) .mobile-result-body {
        min-height: 0;
        height: auto;
        overflow: visible;
      }

      .mobile-result-summary.mobile-live-result-summary:not(.street-summary-open) .mobile-sheet-actions {
        margin-top: 8px;
      }

      .mobile-result-summary.street-summary-open .mobile-result-body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
      }

      .mobile-result-summary.street-summary-open {
        height: 100%;
        min-height: 0;
        margin-bottom: 0;
      }

      .mobile-result-summary.street-summary-open #mobileStreetSummaryStrip {
        display: none;
      }

      .mobile-result-summary.street-summary-open #mobileRoundResultsPanel {
        order: 1;
      }

      .mobile-result-summary.street-summary-open #mobileToggleRoundResultsBtn {
        order: 2;
      }

      .mobile-result-summary.street-summary-open .mobile-sheet-actions {
        order: 3;
      }

      .mobile-result-summary.street-summary-open #mobileRoundResultsPanel.visible {
        align-content: start;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        flex: 0 0 auto;
        margin-top: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(226, 237, 244, 0.08);
        background: transparent;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions button {
        min-height: 40px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.55px;
      }

      .mobile-shell.mobile-state-result #mobileResultsHomeBtn {
        order: 1;
        color: #f5f8fb;
        background: var(--mobile-action-bg);
        border-color: rgba(226, 237, 244, 0.10);
      }

      .mobile-shell.mobile-state-result #mobileTryAgainBtn {
        order: 2;
        min-height: 42px;
        color: #fff;
        border-color: rgba(240,36,50,0.72);
        background: var(--mobile-red-action-bg);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
      }

      .mobile-shell.mobile-state-result.mobile-live-result #mobileTryAgainBtn {
        display: none !important;
      }

      .mobile-shell.mobile-state-ready .mobile-search-pill strong,
      .mobile-shell.mobile-state-result .mobile-search-pill strong {
        font-size: 14px;
      }

      .mobile-shell.mobile-state-ready .mobile-search-pill,
      .mobile-shell.mobile-state-result .mobile-search-pill {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 44px;
        border-radius: 10px;
        padding: 8px 12px;
      }

      .mobile-shell.mobile-state-ready .mobile-search-pill span:first-child,
      .mobile-shell.mobile-state-result .mobile-search-pill span:first-child {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(22,136,255,0.9);
      }

      .mobile-shell.mobile-state-ready .mobile-search-pill::after,
      .mobile-shell.mobile-state-result .mobile-search-pill::after {
        content: "Change";
        color: rgba(245,248,251,0.58);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.8px;
      }

      .mobile-shell.mobile-state-ready .mobile-icon-button,
      .mobile-shell.mobile-state-result .mobile-icon-button {
        width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 10px;
      }

      .mobile-shell.mobile-state-ready .mobile-map-buttons,
      .mobile-shell.mobile-state-result .mobile-map-buttons {
        top: calc(78px + env(safe-area-inset-top));
      }
    }

    @media (max-width: 430px) {
      .mobile-shell.mobile-state-home #mobileHomeSheet {
        top: clamp(176px, 24vh, 210px);
        padding-inline: 12px;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet {
        top: auto;
        max-height: min(60vh, 520px);
      }

      .mobile-menu-row {
        min-height: 48px;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 6px 10px;
      }

      .mobile-menu-icon {
        width: 24px;
        height: 24px;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters select,
      .mobile-menu-row-search #mobileHomeBoxSearch {
        font-size: 16px;
      }

      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet {
        top: clamp(176px, 24vh, 210px);
      }

      .mobile-ready-stats,
      .mobile-score-grid {
        gap: 6px;
      }

      .mobile-score-tile {
        padding: 8px 7px;
      }

      .mobile-score-tile span {
        font-size: 10px;
      }

      .mobile-score-tile strong {
        font-size: 15px;
      }

      .mobile-result-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }

      .mobile-result-badge {
        padding-inline: 10px;
        font-size: 10px;
      }

      .mobile-result-tier {
        padding-inline: 4px;
      }

      .mobile-result-tier span {
        font-size: 7px;
        letter-spacing: 0.35px;
      }
    }

    @media (max-width: 430px) and (max-height: 720px) {
      .mobile-shell.mobile-state-ready #mobileReadySheet {
        max-height: min(72vh, 540px);
        padding: 9px 12px calc(8px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-ready .mobile-panel-label {
        margin-bottom: 6px;
        font-size: 11px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stats {
        margin-bottom: 6px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat {
        padding: 6px 9px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat strong {
        font-size: 17px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row {
        margin-bottom: 5px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice,
      .mobile-shell.mobile-state-ready #mobileStartBtn {
        min-height: 34px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice {
        gap: 6px;
      }

      .mobile-shell.mobile-state-ready .mobile-setup-label {
        margin: 4px 0;
      }

      .mobile-shell.mobile-state-ready .mobile-stepper-input {
        min-height: 40px;
      }

      .mobile-shell.mobile-state-ready .zoom-assist-option {
        min-height: 42px;
        margin-top: 6px;
        padding: 8px 10px;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet p {
        display: none;
      }

      .mobile-shell.mobile-state-ready #mobileStartBtn {
        margin-top: 5px;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet {
        height: min(72vh, 540px);
        max-height: min(72vh, 540px);
      }

      .mobile-shell.mobile-state-result .mobile-result-body {
        gap: 6px;
        padding: 0 10px 10px;
      }

      .mobile-shell.mobile-state-result .mobile-result-hero {
        padding: 7px 9px;
      }

      .mobile-shell.mobile-state-result .mobile-result-hero strong {
        font-size: 28px;
      }

      .mobile-shell.mobile-state-result .mobile-result-badge {
        padding: 6px 9px;
      }

      .mobile-shell.mobile-state-result .mobile-summary-trophy-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 7px;
        padding: 6px 8px;
      }

      .mobile-shell.mobile-state-result .mobile-summary-trophy-card img {
        width: 46px;
        height: 46px;
      }

      .mobile-shell.mobile-state-result .mobile-summary-trophy-card strong {
        font-size: 13px;
      }

      .mobile-shell.mobile-state-result .mobile-summary-trophy-card p {
        font-size: 10px;
      }

      .mobile-shell.mobile-state-result .mobile-result-detail {
        gap: 3px;
        padding: 7px 9px;
      }

      .mobile-shell.mobile-state-result .mobile-result-metric,
      .mobile-shell.mobile-state-result .mobile-result-tier {
        padding: 6px 8px;
      }

      .mobile-shell.mobile-state-result .mobile-result-tier {
        padding-inline: 4px;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions {
        gap: 6px;
        padding-top: 7px;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions button,
      .mobile-shell.mobile-state-result #mobileTryAgainBtn {
        min-height: var(--btn-height);
      }
    }

    @media (max-width: 520px) {
      .box-tools,
      .row,
      .identity-grid .row,
      .leaderboard-filters,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .score-grid,
      .summary-metrics,
      .tier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .modal-backdrop {
        align-items: end;
        padding: 0;
      }

      .modal-card,
      .competitive-setup-card {
        box-sizing: border-box;
        width: min(100%, calc(100vw - 28px));
        max-height: min(88vh, 760px);
        border-radius: 18px 18px 0 0;
        padding: 16px;
      }

      #changelogModal,
      #aboutStreetModal,
      #aboutAppModal,
      #privacyPolicyModal,
      #termsOfUseModal {
        align-items: end;
        padding-bottom: var(--mobile-bottom-nav-space, 0px);
      }

      #changelogModal .changelog-card,
      #aboutStreetModal .about-app-card,
      #aboutAppModal .about-app-card,
      #privacyPolicyModal .about-app-card,
      #termsOfUseModal .about-app-card {
        max-height: calc(100dvh - var(--mobile-bottom-nav-space, 0px) - 20px);
        border-radius: 18px 18px 0 0;
      }

      #changelogModal .document-view,
      #aboutStreetModal .document-view,
      #aboutAppModal .document-view,
      #privacyPolicyModal .document-view,
      #termsOfUseModal .document-view {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(18px + env(safe-area-inset-bottom));
      }

      #profileDetailsModal {
        align-items: end;
        padding-bottom: var(--mobile-bottom-nav-space, 0px);
      }

      #profileDetailsModal .profile-details-card {
        max-height: calc(100dvh - var(--mobile-bottom-nav-space, 0px) - 20px);
        border-radius: 18px 18px 0 0;
      }

      .version-info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      #liveSetupModal {
        align-items: end;
        justify-items: center;
        padding-inline: 14px;
      }

      #liveSetupModal .competitive-setup-card {
        width: min(100%, calc(100vw - 28px));
        max-width: 480px;
        overflow-x: hidden;
      }

      #liveSetupModal .competitive-setup-fields,
      #liveSetupModal .competitive-setup-fields > div,
      #liveSetupModal input,
      #liveSetupModal .modal-actions,
      #liveSetupModal .modal-actions button {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }

      #liveSetupModal input {
        min-height: 44px;
        font-size: 16px;
        line-height: 1.2;
      }

      .competitive-title-lockup {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
      }

      .competitive-modal-icon {
        width: 30px;
        height: 30px;
      }

      .competitive-setup-card .modal-head h2 {
        font-size: 18px;
      }

      .competitive-setup-card .modal-actions button {
        width: 100%;
        min-width: 0;
      }

      .active-drill-confirm-card {
        padding: 16px;
      }

      .active-drill-confirm-card .modal-actions {
        grid-template-columns: 1fr;
      }

      .leaderboard-table-wrap {
        overflow-x: auto;
      }

      .leaderboard-table {
        min-width: 760px;
      }

      .leaderboard-stats,
      .leaderboard-footer {
        grid-template-columns: 1fr;
      }

      .training-guide-card {
        width: min(100%, calc(100vw - 28px));
        max-height: min(88vh, 760px);
        border-radius: 18px 18px 0 0;
      }

      .training-guide-card .modal-head {
        margin: -16px -16px 0;
        padding: 16px 16px 13px;
      }

      .training-guide-card .modal-head h2 {
        font-size: 22px;
      }

      .training-guide-card .modal-head p {
        font-size: 11px;
        line-height: 1.25;
      }

      .training-guide-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .training-guide-grid,
      .training-guide-score-grid,
      .training-badge-tier-list {
        grid-template-columns: 1fr;
      }

      .score-rule-list div {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.72fr);
      }

      .score-rule-list em {
        grid-column: 1 / -1;
        justify-self: start;
      }

      .leaderboard-stat,
      .leaderboard-footer-card {
        border-right: 0;
        border-bottom: 1px solid rgba(226,237,244,0.08);
      }

      #leaderboardMapBtn {
        width: calc(100% - 32px);
      }

      #leaderboardModal {
        position: fixed;
        top: var(--mobile-home-preview-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--mobile-browser-bottom-inset, 0px) + var(--mobile-bottom-nav-space) - 12px) !important;
        z-index: 30;
        display: grid;
        place-items: stretch;
        padding: 0 !important;
        border-radius: 22px 22px 0 0;
        overflow: hidden;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.99), rgba(4, 14, 22, 0.995)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
      }

      .leaderboard-card {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
        overflow: hidden;
        grid-template-rows: auto minmax(0, 1fr);
      }

      .leaderboard-card .modal-head {
        margin-bottom: 10px;
        gap: 10px;
      }

      .leaderboard-title-lockup {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
      }

      .leaderboard-title-icon {
        width: 38px;
        height: 38px;
      }

      .leaderboard-card .modal-head h2 {
        font-size: clamp(22px, 8vw, 28px);
      }

      .leaderboard-card .modal-head p {
        margin-top: 4px;
        font-size: 11px;
      }

      .leaderboard-card .modal-close {
        width: 44px;
        min-width: 44px;
        height: 44px;
      }

      .leaderboard-shell {
        display: block;
        min-height: 0;
        overflow: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
      }

      .leaderboard-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .leaderboard-filters input,
      .leaderboard-filters button {
        min-height: 38px;
      }

      .leaderboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
      }

      .leaderboard-stat {
        min-height: 52px;
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 10px;
        border-right: 1px solid rgba(226,237,244,0.08);
      }

      .leaderboard-stat:nth-child(2n) {
        border-right: 0;
      }

      .leaderboard-stat strong {
        font-size: 15px;
      }

      .leaderboard-stat span {
        font-size: 9px;
      }

      .leaderboard-table-wrap {
        margin-top: 10px;
        max-height: 260px;
        overflow: auto;
      }

      .leaderboard-footer {
        grid-template-columns: 1fr;
        margin-top: 10px;
      }

      .leaderboard-footer-card {
        min-height: 70px;
        padding: 10px 14px;
      }

      #leaderboardMapBtn {
        width: calc(100% - 20px);
        margin: 10px;
        justify-self: stretch;
      }
    }

    @media (min-width: 701px) {
      #activeDrillControls > .mode-row.hidden {
        display: none !important;
      }

      #activeDrillControls > .mode-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
      }

      #activeDrillControls > .mode-row > .mode-choice {
        width: 100% !important;
        min-height: 34px !important;
        height: 34px !important;
        padding: 0 10px !important;
      }
    }

    #homeLeaderboardBtn,
    #mobileLeaderboardBtn,
    #mobileLeaderboardTopBtn {
      display: none !important;
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home .mobile-action-panel {
        flex: 0 0 auto;
        margin-top: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0;
        background: transparent;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1;
        grid-column: 1 / -1;
        min-height: 38px;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn {
        order: 2;
        grid-column: 1 / -1;
        min-height: 38px;
      }

      .mobile-shell.mobile-state-home #mobileJoinStationBtn {
        order: 3;
        grid-column: 1 / -1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 38px;
        border-radius: 8px;
        border-color: rgba(87,169,255,0.55);
        background: var(--mobile-blue-action-bg);
        color: #dceeff;
        font-size: 12px;
        letter-spacing: 0.9px;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        order: 4;
        grid-column: 1 / -1;
        min-height: 38px;
      }

      .mobile-shell.mobile-state-home .mobile-quick-actions {
        display: none !important;
      }
    }

    .mobile-shell.mobile-state-ready #mobileModeRow {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    .mobile-shell.mobile-state-ready #mobilePracticeBtn {
      grid-column: 1 / -1;
      width: 100%;
    }

    @media (max-width: 900px) and (pointer: coarse) {
      .mobile-shell.mobile-state-home .mobile-action-panel {
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0;
        background: transparent;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 38px;
      }
    }

    @media (max-width: 700px) and (max-height: 720px) {
      .splash-screen {
        height: clamp(146px, 21vh, 182px);
      }

      .mobile-shell.mobile-state-home::before {
        top: clamp(146px, 21vh, 182px);
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet {
        top: clamp(146px, 21vh, 182px);
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        gap: 6px;
        margin: 6px 0;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 40px;
        padding-block: 5px;
      }

      .mobile-shell.mobile-state-home .mobile-box-results,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results {
        min-height: 58px;
        margin: 4px 0 8px;
        padding-bottom: 0;
      }

      .mobile-selection-note {
        min-height: 40px;
        padding: 5px 10px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-filter-options {
        gap: 5px;
        padding: 6px 8px 2px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 0 1 clamp(122px, 18vh, 168px);
        min-height: 112px;
        max-height: clamp(122px, 18vh, 168px);
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        margin-top: 0;
        overflow: visible;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        grid-column: auto;
      }

      #mobileHomeClearBtn,
      #mobileHomeLoadDrillBtn {
        min-height: 36px;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 132px !important;
        max-height: none !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        margin-top: 0 !important;
      }
    }

    @media (max-width: 430px) {
      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet {
        top: clamp(150px, 25vh, 198px);
        padding: 10px 10px calc(8px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        gap: 5px;
        grid-template-columns: 1fr !important;
        margin: 5px 0;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row-firstdue {
        grid-column: auto;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 39px;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 6px;
        padding: 5px 9px;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row-search {
        grid-template-columns: 28px minmax(0, 1fr);
      }

      .mobile-shell.mobile-state-home .mobile-box-results,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results {
        margin: 3px 0 8px;
      }

      .mobile-shell.mobile-state-home .mobile-box-row {
        min-height: 31px;
        padding: 2px 9px;
      }

      .mobile-selection-note {
        min-height: 42px;
        margin-top: 6px;
        padding: 5px 9px;
      }

      .mobile-selection-note .mobile-selection-mark {
        width: 22px;
        height: 22px;
      }

      .mobile-selection-note .mobile-selection-mark svg {
        width: 21px;
        height: 21px;
      }

      .mobile-selection-note strong {
        font-size: 11px;
      }

      .mobile-selection-note small {
        font-size: 9px;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        gap: 8px;
      }

      #mobileHomeLoadDrillBtn,
      #mobileHomeClearBtn,
      #mobileTrainingGuideBtn,
      #mobileJoinStationBtn,
      #mobileFilterOptionsBtn {
        min-height: 48px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(118px, 18vh, 152px) !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters {
        gap: 4px;
        margin: 4px 0;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 36px;
        padding-block: 4px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 0 0 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        margin-bottom: 5px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-selection-note {
        min-height: 37px;
        margin-top: 4px;
        padding-block: 4px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-filter-options {
        gap: 4px;
        padding: 4px 0 2px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel .mobile-filter-option {
        min-height: 25px;
        padding: 3px 8px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        gap: 6px;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileFilterOptionsBtn {
        min-height: 32px;
      }
    }

    @media (max-width: 390px) and (max-height: 680px) {
      .splash-screen {
        height: clamp(128px, 20vh, 150px);
      }

      .mobile-shell.mobile-state-home::before {
        top: clamp(128px, 20vh, 150px);
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet {
        top: clamp(128px, 20vh, 150px);
      }

      .mobile-shell.mobile-state-home .mobile-panel-label {
        margin-bottom: 4px;
        font-size: 10px;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 36px;
        padding-block: 4px;
      }

      .mobile-shell.mobile-state-home .mobile-box-row {
        min-height: 29px;
      }

      .mobile-shell.mobile-state-home .mobile-fire-box-list-head {
        margin: 4px 2px 3px;
        font-size: 10px;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        gap: 6px;
      }

      #mobileHomeLoadDrillBtn,
      #mobileHomeClearBtn,
      #mobileTrainingGuideBtn,
      #mobileJoinStationBtn,
      #mobileFilterOptionsBtn {
        min-height: 42px;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet {
        max-height: min(78vh, 520px);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-ready .mobile-panel-label {
        margin-bottom: 5px;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stats,
      .mobile-shell.mobile-state-ready .mobile-mode-row {
        gap: 5px;
        margin-bottom: 5px;
      }

      .mobile-shell.mobile-state-ready #mobileModeRow {
        grid-template-columns: 1fr;
      }

      .mobile-shell.mobile-state-ready #mobilePracticeBtn {
        grid-column: 1 / -1;
        width: 100%;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat,
      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice {
        padding-block: 6px;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice,
      .mobile-shell.mobile-state-ready #mobileStartBtn {
        min-height: 32px;
      }

      .mobile-shell.mobile-state-ready .mobile-stepper-input {
        min-height: 38px;
      }

      .mobile-shell.mobile-state-ready .zoom-assist-option {
        height: 38px;
        margin: 5px 0;
        padding-block: 7px;
      }

      .mobile-shell.mobile-state-ready .drill-settings-group .zoom-assist-option {
        height: 30px;
        min-height: 30px;
        margin: 0;
        padding-block: 5px;
      }

      .mobile-shell.mobile-state-result #mobileResultSheet {
        height: min(78vh, 520px);
        max-height: min(78vh, 520px);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
      }

      .mobile-shell.mobile-state-result .mobile-result-body {
        gap: 5px;
        padding: 0 8px 8px;
      }

      .mobile-shell.mobile-state-result .mobile-result-hero {
        padding: 6px 8px;
      }

      .mobile-shell.mobile-state-result .mobile-result-hero strong {
        font-size: 26px;
      }

      .mobile-shell.mobile-state-result .mobile-result-detail {
        padding: 6px 8px;
      }

      .mobile-shell.mobile-state-result .mobile-result-metrics,
      .mobile-shell.mobile-state-result .mobile-result-tiers {
        gap: 4px;
      }

      .mobile-shell.mobile-state-result .mobile-result-metric,
      .mobile-shell.mobile-state-result .mobile-result-tier {
        padding: 5px 6px;
      }

      .mobile-shell.mobile-state-result .mobile-result-metric strong,
      .mobile-shell.mobile-state-result .mobile-result-tier strong {
        font-size: 15px;
      }

      #mobileToggleRoundResultsBtn {
        min-height: 34px;
        margin-top: auto;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions {
        gap: 5px;
        padding-top: 6px;
      }

      .mobile-shell.mobile-state-result .mobile-sheet-actions button,
      .mobile-shell.mobile-state-result #mobileTryAgainBtn {
        min-height: 34px;
      }

      .leaderboard-card {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
      }

      .leaderboard-card .modal-head {
        margin-bottom: 6px;
      }

      .leaderboard-title-lockup {
        grid-template-columns: 32px minmax(0, 1fr);
      }

      .leaderboard-title-icon,
      .leaderboard-card .modal-close {
        width: 32px;
        min-width: 32px;
        height: 32px;
      }

      .leaderboard-card .modal-head h2 {
        font-size: 20px;
      }

      .leaderboard-shell {
        padding: 8px;
      }

      .leaderboard-stats {
        gap: 0;
        margin-top: 8px;
      }

      .leaderboard-stat {
        min-height: 46px;
        padding: 7px 8px;
      }

      .leaderboard-table-wrap {
        max-height: 210px;
      }

      .leaderboard-footer-card {
        min-height: 58px;
        padding: 8px 10px;
      }

      .modal-card,
      .competitive-setup-card,
      .active-drill-confirm-card {
        max-height: min(92vh, 620px);
        padding: 12px;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(180px, 24vh, 240px) !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 72px !important;
        max-height: none !important;
      }
    }

    @media (max-width: 700px) and (max-height: 720px) {
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(146px, 21vh, 182px) !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        min-height: 58px !important;
      }
    }

    @media (max-width: 430px) {
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(150px, 25vh, 198px) !important;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
      }
    }

    @media (max-width: 390px) and (max-height: 680px) {
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(128px, 20vh, 150px) !important;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home .mobile-action-panel {
        position: relative;
        overflow: visible !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(46px + env(safe-area-inset-bottom));
        z-index: 3;
        padding: 8px 0;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 9px;
        background:
          linear-gradient(180deg, rgba(7, 24, 36, 0.98), rgba(3, 13, 21, 0.99)),
          rgba(3, 13, 21, 0.96);
        box-shadow: 0 -16px 28px rgba(0,0,0,0.28);
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        margin-top: inherit;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        margin: 3px 0 8px !important;
        padding-bottom: 0 !important;
      }
    }

    @media (max-width: 430px) {
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters {
        gap: 5px !important;
        margin: 5px 0 !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 39px !important;
        padding-block: 5px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 58px !important;
        max-height: none !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-selection-note {
        min-height: 42px !important;
        margin-top: 6px !important;
        padding-block: 5px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        gap: 8px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileFilterOptionsBtn {
        min-height: 48px !important;
      }
    }

    @media (max-width: 390px) and (max-height: 680px) {
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 36px !important;
        padding-block: 4px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileFilterOptionsBtn {
        min-height: 42px !important;
      }
    }

    @media (max-width: 390px) and (max-height: 680px) {
      .splash-screen {
        height: clamp(118px, 19vh, 132px) !important;
        background-size: 100% auto !important;
        background-position: center 44% !important;
      }

      .mobile-shell.mobile-state-home::before {
        top: clamp(118px, 19vh, 132px) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(118px, 19vh, 132px) !important;
      }

      .mobile-shell.mobile-state-home .mobile-box-results,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 0 1 clamp(186px, 29vh, 204px) !important;
        max-height: clamp(186px, 29vh, 204px) !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-height: 38px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1 !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        order: 3 !important;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn {
        order: 2 !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options {
        bottom: calc(86px + env(safe-area-inset-bottom)) !important;
      }
    }

    @media (max-width: 430px) {
      .mobile-shell.mobile-state-home .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-height: 38px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1 !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        order: 3 !important;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn {
        order: 2 !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options {
        bottom: calc(86px + env(safe-area-inset-bottom)) !important;
      }
    }

    @media (min-width: 701px) and (max-width: 1050px) and (orientation: landscape) {
      .splash-screen {
        background:
          radial-gradient(circle at 50% 50%, rgba(22, 136, 255, 0.06), transparent 52%),
          linear-gradient(180deg, rgba(2, 10, 16, 0.20), rgba(2, 10, 16, 0.72)),
          #020a10 url('../tablet_splash.png') center center / contain no-repeat !important;
      }

      .splash-screen img,
      .splash-screen::after {
        display: none !important;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home .mobile-filter-options {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        width: 100%;
        margin: 0 0 8px !important;
        padding: 6px 8px !important;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(7, 24, 36, 0.78), rgba(3, 13, 21, 0.86)),
          rgba(3, 13, 21, 0.72);
        box-shadow: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options.hidden {
        display: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option {
        min-height: 34px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding: 5px 8px !important;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 7px;
        background: var(--mobile-action-bg);
        box-shadow: none !important;
        color: rgba(202,214,224,0.82);
        font-size: 10px !important;
        font-weight: 900;
        letter-spacing: 0.75px;
        line-height: 1.12;
        text-align: center;
        text-transform: uppercase;
        white-space: normal;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option .select-all-mark {
        display: none !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters {
        gap: 8px !important;
        margin: 8px 0 !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 48px !important;
        padding-block: 6px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 96px !important;
        max-height: none !important;
        margin: 5px 0 8px !important;
        padding-bottom: 0 !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        flex: 0 0 auto !important;
        margin-top: auto !important;
      }
    }

    @media (min-width: 1051px) and (max-width: 1180px) and (orientation: landscape) {
      .splash-screen {
        background:
          radial-gradient(circle at 50% 50%, rgba(22, 136, 255, 0.06), transparent 52%),
          #020a10 url('../tablet_splash.png') center center / cover no-repeat !important;
      }

      .splash-screen img,
      .splash-screen::after {
        display: none !important;
      }
    }

    @media (min-width: 701px) and (max-width: 980px) and (min-height: 600px) and (max-aspect-ratio: 1.45) and (orientation: landscape) {
      .splash-screen {
        background: #020a10 url('../foldable_splash.png') center center / cover no-repeat !important;
      }

      .splash-screen img,
      .splash-screen::after {
        display: none !important;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        bottom: max(0px, calc(100dvh - var(--mobile-vv-height, 100dvh))) !important;
        max-height: calc(var(--mobile-vv-height, 100dvh) - 118px) !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home .mobile-box-results,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 112px !important;
        max-height: none !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
      }

      .mobile-shell.mobile-state-home .mobile-action-panel,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        flex: 0 0 auto !important;
        margin-top: 6px !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn {
        grid-column: 1 / -1 !important;
        min-height: 38px !important;
      }
    }

    @media (max-width: 430px) and (max-height: 820px) {
      .splash-screen {
        height: clamp(106px, 17vh, 136px) !important;
        background-size: 100% auto !important;
        background-position: center 42% !important;
      }

      .mobile-shell.mobile-state-home::before {
        top: clamp(106px, 17vh, 136px) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: clamp(106px, 17vh, 136px) !important;
        max-height: calc(var(--mobile-vv-height, 100dvh) - 104px) !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        gap: 4px !important;
        margin: 4px 0 !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 36px !important;
        padding-block: 4px !important;
      }

      .mobile-shell.mobile-state-home .mobile-box-results,
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        min-height: 128px !important;
        margin-bottom: 5px !important;
      }

      .mobile-selection-note {
        min-height: 36px !important;
        margin-top: 4px !important;
        padding-block: 4px !important;
      }

      .mobile-selection-note small {
        display: none;
      }
    }

    @media (max-width: 700px) {
      .mobile-shell.mobile-state-home #mobileHomeSheet {
        position: absolute;
        padding-bottom: calc(178px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home .mobile-selection-note {
        display: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options {
        position: absolute !important;
        left: 14px !important;
        right: 14px !important;
        bottom: calc(74px + env(safe-area-inset-bottom)) !important;
        z-index: 6 !important;
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        width: auto;
        margin: 0 !important;
        padding: 6px 8px !important;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(7, 24, 36, 0.96), rgba(3, 13, 21, 0.98)),
          rgba(3, 13, 21, 0.94);
        box-shadow: 0 -14px 26px rgba(0,0,0,0.30) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1 !important;
      }

      .mobile-shell.mobile-state-home #mobileJoinStationBtn {
        order: 2 !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        order: 3 !important;
      }

      .mobile-shell.mobile-state-home .mobile-quick-actions {
        display: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-options.hidden {
        display: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option {
        min-height: 34px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 7px;
        background: var(--mobile-action-bg);
        color: rgba(202,214,224,0.82);
        box-shadow: none !important;
        padding: 5px 8px !important;
        font-size: 10px !important;
        font-weight: 900;
        letter-spacing: 0.75px;
        line-height: 1.12;
        white-space: normal;
        text-transform: uppercase;
        text-align: center;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none;
      }

      .mobile-shell.mobile-state-home .mobile-filter-option .select-all-mark {
        display: none !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-filters {
        gap: 8px !important;
        margin: 8px 0 !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-menu-row {
        min-height: 48px !important;
        padding-block: 6px !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results {
        flex: 1 1 auto !important;
        min-height: 128px !important;
        max-height: none !important;
        padding-bottom: 0 !important;
        margin: 5px 0 8px !important;
        overflow: auto !important;
      }

      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        flex: 0 0 auto !important;
        margin-top: auto !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        display: grid !important;
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        top: auto !important;
        bottom: calc(30px + env(safe-area-inset-bottom)) !important;
        z-index: 7 !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(3, 38px) !important;
        grid-auto-rows: 0 !important;
        align-content: start !important;
        gap: 6px !important;
        height: 126px !important;
        min-height: 126px !important;
        max-height: 126px !important;
        overflow: hidden !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background:
          linear-gradient(180deg, rgba(3, 18, 29, 0.98), rgba(2, 12, 20, 1)),
          #020c14 !important;
        box-shadow: 0 -18px 26px rgba(0, 0, 0, 0.42) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        margin: 0 !important;
        box-sizing: border-box;
        transform: none !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn {
        bottom: 132px !important;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn {
        bottom: 88px !important;
      }

      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn {
        bottom: 44px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn {
        bottom: 0 !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn.is-active {
        outline: 1px solid rgba(87,169,255,0.36);
        outline-offset: -1px;
        border-color: rgba(87,169,255,0.18) !important;
      }

      .mobile-shell.mobile-state-home.mobile-home-search-active .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-home-search-active .mobile-filter-options {
        display: none !important;
        pointer-events: none !important;
      }
    }

    .mobile-shell.mobile-state-home .mobile-box-results.is-short-result-list,
    .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results.is-short-result-list,
    .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results.is-short-result-list {
      flex: 0 0 var(--mobile-box-results-fit-height) !important;
      height: var(--mobile-box-results-fit-height) !important;
      min-height: var(--mobile-box-results-fit-height) !important;
      max-height: var(--mobile-box-results-fit-height) !important;
      padding-bottom: 0 !important;
      overflow: hidden !important;
    }

    .mobile-shell.mobile-state-home .mobile-box-results:not(.is-short-result-list),
    .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results:not(.is-short-result-list),
    .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results:not(.is-short-result-list) {
      flex: 1 1 auto !important;
      min-height: 128px !important;
      max-height: clamp(172px, calc(var(--mobile-vv-height, 100dvh) - 650px - env(safe-area-inset-bottom)), 230px) !important;
      padding-bottom: 0 !important;
      padding-right: 4px !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: rgba(202, 214, 224, 0.48) rgba(255,255,255,0.035);
    }

    .mobile-shell.mobile-state-home .mobile-box-results::-webkit-scrollbar {
      width: 8px;
    }

    .mobile-shell.mobile-state-home .mobile-box-results::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.035);
      border-left: 1px solid rgba(226, 237, 244, 0.08);
      border-radius: 999px;
      margin: 4px 2px;
    }

    .mobile-shell.mobile-state-home .mobile-box-results::-webkit-scrollbar-thumb {
      min-height: 32px;
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(202, 214, 224, 0.72), rgba(132, 162, 183, 0.50));
      border: 2px solid rgba(5, 18, 28, 0.96);
    }

    .mobile-shell.mobile-state-home .mobile-box-results::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(240, 248, 252, 0.84), rgba(160, 190, 210, 0.64));
    }

    @media (max-width: 700px) and (min-height: 850px) {
      .mobile-shell.mobile-state-home .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results:not(.is-short-result-list) {
        max-height: clamp(252px, calc(var(--mobile-vv-height, 100dvh) - 620px - env(safe-area-inset-bottom)), 390px) !important;
      }
    }

    @media (min-width: 390px) and (max-width: 700px) and (min-height: 760px) {
      .mobile-shell.mobile-state-home .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results:not(.is-short-result-list) {
        min-height: 208px !important;
        max-height: clamp(208px, calc(var(--mobile-vv-height, 100dvh) - 602px - env(safe-area-inset-bottom)), 258px) !important;
      }
    }

    @media (min-width: 391px) and (max-width: 430px) {
      .splash-screen {
        height: clamp(214px, 26vh, 228px) !important;
        background-size: 100% auto !important;
        background-position: center top !important;
      }

      .mobile-shell.mobile-state-home::before {
        top: clamp(214px, 26vh, 228px) !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 8px 0 8px !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row-firstdue,
      .mobile-shell.mobile-state-home .mobile-menu-row-search {
        grid-column: 1 / -1 !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 48px !important;
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 6px 10px !important;
      }
    }

    @media (min-width: 320px) and (max-width: 390px) {
      .mobile-shell.mobile-state-home .mobile-home-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 8px 0 8px !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row-firstdue,
      .mobile-shell.mobile-state-home .mobile-menu-row-search {
        grid-column: 1 / -1 !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 6px 10px !important;
      }
    }

    @media (max-width: 700px) {
      :root {
        --mobile-browser-bottom-inset: 0px;
        --mobile-effective-height: var(--mobile-vv-height, 100dvh);
      }

      :root.ios-webkit:not(.standalone-display) {
        --mobile-browser-bottom-inset: min(max(var(--mobile-vv-bottom, 0px), env(safe-area-inset-bottom)), 44px);
        --mobile-effective-height: calc(var(--mobile-vv-height, 100dvh) - var(--mobile-browser-bottom-inset));
      }

      body {
        --mobile-home-preview-height: calc(var(--mobile-effective-height, var(--mobile-vv-height, 100dvh)) * 0.266);
        --mobile-home-panel-height: calc(var(--mobile-effective-height, var(--mobile-vv-height, 100dvh)) * 0.734);
      }

      .splash-screen {
        height: var(--mobile-home-preview-height) !important;
        background-size: 100% auto !important;
        background-position: center top !important;
      }

      .mobile-shell.mobile-state-home::before {
        top: var(--mobile-home-preview-height) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        top: var(--mobile-home-preview-height) !important;
        bottom: var(--mobile-browser-bottom-inset) !important;
        display: flex !important;
        flex-direction: column !important;
        height: var(--mobile-home-panel-height) !important;
        max-height: var(--mobile-home-panel-height) !important;
        overflow: hidden !important;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet {
        top: var(--mobile-home-preview-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: var(--mobile-browser-bottom-inset) !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: var(--mobile-home-panel-height) !important;
        max-height: var(--mobile-home-panel-height) !important;
        overflow: hidden !important;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-ready .mobile-panel-label,
      .mobile-shell.mobile-state-ready .mobile-ready-stats,
      .mobile-shell.mobile-state-ready .mobile-mode-row,
      .mobile-shell.mobile-state-ready .mobile-setup-label,
      .mobile-shell.mobile-state-ready .mobile-stepper-input,
      .mobile-shell.mobile-state-ready .drill-settings-group {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .mobile-shell.mobile-state-ready .mobile-panel-label {
        margin-bottom: 6px !important;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stats,
      .mobile-shell.mobile-state-ready .mobile-mode-row {
        gap: 6px !important;
        margin-bottom: 6px !important;
      }

      .mobile-shell.mobile-state-ready .mobile-ready-stat {
        padding: 7px 10px !important;
      }

      .mobile-shell.mobile-state-ready .mobile-mode-row .mode-choice,
      .mobile-shell.mobile-state-ready #mobileStartBtn {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
      }

      .mobile-shell.mobile-state-ready .mobile-stepper-input {
        min-height: 42px !important;
      }

      .mobile-shell.mobile-state-ready .drill-settings-group {
        margin-top: 8px !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 30 !important;
      }

      .mobile-shell.mobile-state-ready .zoom-assist-option {
        position: relative !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding-block: 8px !important;
      }

      .mobile-shell.mobile-state-ready .zoom-assist-option.is-tooltip-open,
      .mobile-shell.mobile-state-ready .zoom-assist-option:focus-within {
        z-index: 80 !important;
      }

      .mobile-shell.mobile-state-ready .option-info-button.is-tooltip-open::after,
      .mobile-shell.mobile-state-ready .option-info-button:focus-visible::after {
        z-index: 160 !important;
      }

      .mobile-shell.mobile-state-ready #mobileReadyText {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        margin: 8px 0 8px !important;
        overflow: hidden !important;
      }

      .mobile-shell.mobile-state-ready #mobileStartBtn {
        flex: 0 0 auto !important;
        width: 100% !important;
        margin-top: 6px !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-filters {
        flex: 0 0 auto !important;
        gap: 6px !important;
        margin: 6px 0 !important;
      }

      .mobile-shell.mobile-state-home .mobile-menu-row {
        min-height: 44px !important;
        padding-block: 5px !important;
      }

      .mobile-shell.mobile-state-home .mobile-fire-box-list-head {
        flex: 0 0 auto !important;
      }

      .mobile-shell.mobile-state-home .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.has-mobile-filter .mobile-box-results:not(.is-short-result-list),
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-box-results:not(.is-short-result-list) {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 8px !important;
        overflow-y: auto !important;
      }

      .mobile-shell.mobile-state-home .mobile-action-panel,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        overflow: visible !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions,
      .mobile-shell.mobile-state-home.mobile-filters-open .mobile-home-actions {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        grid-template-rows: none !important;
        grid-auto-rows: auto !important;
        gap: 6px !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn {
        position: static !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
      }
    }

    #trainingGuideBtn,
    #mobileTrainingGuideBtn {
      display: none !important;
    }

    @media (min-width: 701px) {
      .box-action-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 5px;
      }

      .box-action-panel .selection-note,
      .box-action-panel .filter-options-panel {
        grid-column: 1 / -1;
      }

      .box-action-panel .home-actions {
        margin-top: 0;
        width: 100%;
        min-width: 0;
      }

      #filterOptionsBtn {
        grid-column: 1;
      }

      #loadDrillBtn {
        grid-column: 2;
      }
    }

    .mobile-shell.mobile-state-home #mobileJoinStationBtn,
    .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn {
      order: 2 !important;
    }

    .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
    .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeLoadDrillBtn {
      order: 3 !important;
    }

    .mobile-shell.mobile-state-home #mobileHomeClearBtn,
    .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn {
      bottom: 88px !important;
    }

    .mobile-shell.mobile-state-home .mobile-action-panel .mobile-filter-options,
    .mobile-shell.mobile-state-home.mobile-filters-open .mobile-action-panel .mobile-filter-options {
      position: static !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      z-index: auto !important;
      width: 100% !important;
      margin: 0 0 8px !important;
      box-shadow: none !important;
    }

    .mobile-bottom-submit {
      display: none;
    }

    .desktop-bottom-nav,
    .mobile-bottom-nav {
      display: none;
    }

    .desktop-scores-panel {
      gap: var(--ui-section-gap);
      max-height: calc(100dvh - 202px);
      overflow-y: auto;
      padding-bottom: 10px;
    }

    .desktop-scores-panel.is-auth-required {
      align-content: start;
      max-height: none;
      overflow: visible;
      padding-bottom: var(--ui-card-padding);
    }

    .desktop-profile-rail,
    .desktop-scores-panel.is-auth-required {
      align-content: start;
      gap: var(--ui-section-gap);
      max-height: none;
      overflow: visible;
    }

    #desktopScoresPanel,
    #desktopProfileRail {
      display: grid;
      align-content: start;
      row-gap: 6px;
      padding: 10px;
      border-color: rgba(87, 169, 255, 0.22);
    }

    #desktopScoresPanel > label,
    #desktopProfileRail > label {
      margin: 0 0 2px;
      color: #f2f7fb;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1.2px;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .desktop-scores-panel.is-empty {
      gap: 10px;
      max-height: none;
      overflow: visible;
      padding-bottom: 0;
    }

    .score-rail-auth-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(132,162,183,0.16);
      border-radius: var(--ui-card-radius);
      background:
        linear-gradient(135deg, rgba(240,36,50,0.10), transparent 52%),
        var(--ui-card-bg);
    }

    .score-rail-auth-card strong {
      color: #f5f8fb;
      font-size: 16px;
      font-weight: 950;
      line-height: 1.16;
    }

    .score-rail-auth-card p {
      margin: -2px 0 0;
      color: rgba(202,214,224,0.72);
      font-size: 11.5px;
      font-weight: 750;
      line-height: 1.35;
    }

    .score-rail-auth-card button {
      width: 100%;
      margin-top: 4px;
    }

    .score-rail-status {
      display: grid;
      gap: 4px;
      padding: var(--ui-card-padding);
      border: 1px solid var(--ui-card-border);
      border-radius: var(--ui-card-radius);
      background:
        linear-gradient(135deg, rgba(87,169,255,0.12), transparent 56%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
    }

    .score-rail-status span,
    .score-rail-section > span,
    .score-rail-stat span,
    .score-rail-row small {
      color: var(--ui-muted-text);
      font-size: var(--ui-eyebrow-size);
      font-weight: 950;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.15;
      text-transform: uppercase;
    }

    .score-rail-status strong {
      color: #f5f8fb;
      font-size: 18px;
      font-weight: 950;
      line-height: 1.08;
    }

    .score-rail-status small {
      color: var(--ui-muted-text);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.3;
    }

    .score-rail-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .score-rail-stat,
    .score-rail-section,
    .score-rail-empty-card,
    .score-rail-account-teaser {
      border: 1px solid rgba(132,162,183,0.16);
      border-radius: var(--ui-card-radius);
      background: var(--ui-card-bg);
    }

    .score-rail-stat {
      display: grid;
      gap: 6px;
      min-height: 58px;
      align-content: center;
      padding: 10px;
    }

    .score-rail-stat strong {
      color: #f5f8fb;
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
    }

    .score-rail-section {
      display: grid;
      gap: 9px;
      padding: 11px;
    }

    .score-rail-empty-card {
      display: grid;
      gap: 5px;
      padding: var(--ui-card-padding);
      background:
        linear-gradient(135deg, rgba(87,169,255,0.12), transparent 54%),
        linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.016));
    }

    .score-rail-empty-card.hidden {
      display: none !important;
    }

    .score-rail-empty-card span {
      color: var(--ui-muted-text);
      font-size: var(--ui-eyebrow-size);
      font-weight: 950;
      letter-spacing: var(--ui-label-tracking);
      text-transform: uppercase;
    }

    .score-rail-empty-card strong {
      color: #f5f8fb;
      font-size: 15px;
      font-weight: 900;
      line-height: 1.16;
    }

    .score-rail-empty-card p {
      margin: 0;
      color: rgba(202,214,224,0.68);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.32;
    }

    .score-rail-account-teaser {
      display: grid;
      gap: 4px;
      padding: 9px 11px;
    }

    .score-rail-account-teaser strong {
      color: rgba(245,248,251,0.78);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.25;
    }

    .score-rail-account-teaser p {
      margin: 0;
      color: rgba(202,214,224,0.72);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.35px;
      line-height: 1.2;
    }

    .desktop-scores-panel.is-empty .score-rail-data-only {
      display: none !important;
    }

    .desktop-scores-panel.is-empty .score-rail-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-scores-panel.is-empty .score-rail-stat {
      align-content: start;
      gap: 5px;
      min-height: 54px;
      padding: 9px 10px;
    }

    .desktop-scores-panel.is-empty .score-rail-stat strong {
      font-size: 20px;
      text-align: left;
    }

    .desktop-scores-panel.is-empty .score-rail-stat span {
      max-width: 100%;
    }

    .score-rail-row,
    .score-rail-recent-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 34px;
      padding: 8px 0;
      border-top: 1px solid rgba(132,162,183,0.12);
    }

    .score-rail-row:first-of-type,
    .score-rail-recent-row:first-child {
      border-top: 0;
    }

    .score-rail-row strong,
    .score-rail-recent-row strong {
      color: #f5f8fb;
      font-size: 15px;
      font-weight: 950;
      line-height: 1.1;
      text-align: right;
    }

    .score-rail-row.is-attention strong {
      color: #ff3041;
    }

    .score-rail-recent {
      display: grid;
      min-height: 42px;
    }

    .score-rail-recent p {
      margin: 0;
      color: rgba(202,214,224,0.62);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.3;
    }

    .score-rail-recent-row {
      grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .score-rail-recent-row span,
    .score-rail-recent-row small {
      min-width: 0;
      color: rgba(202,214,224,0.68);
      font-size: 11px;
      font-weight: 850;
    }

    .score-rail-recent-row span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .score-rail-recent-row small {
      text-align: right;
    }

    .score-rail-action {
      width: 100%;
      min-height: var(--btn-height);
      position: sticky;
      bottom: 0;
      z-index: 1;
    }

    .desktop-scores-panel.is-empty .score-rail-action {
      position: static;
      min-height: var(--btn-height);
      margin-top: 2px;
    }

    .desktop-profile-view {
      position: absolute;
      inset: 0;
      z-index: 8;
      display: grid;
      align-items: stretch;
      justify-items: stretch;
      overflow: hidden;
      box-sizing: border-box;
      padding: 0;
      background:
        radial-gradient(circle at 12% 8%, rgba(22,136,255,0.08), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(87,169,255,0.035), transparent 38%),
        linear-gradient(135deg, rgba(5, 17, 27, 0.98), rgba(2, 10, 16, 0.99) 58%, rgba(5, 20, 31, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 46px rgba(22,136,255,0.025);
      pointer-events: auto;
    }

    .desktop-profile-card {
      width: 100%;
      height: 100%;
      max-height: none;
      min-height: 0;
      box-sizing: border-box;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      gap: 12px;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 22px 26px;
      border: 0;
      border-radius: 0;
      background:
        radial-gradient(circle at 12% 8%, rgba(22,136,255,0.08), transparent 36%),
        radial-gradient(circle at 88% 0%, rgba(87,169,255,0.035), transparent 38%),
        linear-gradient(135deg, rgba(5, 17, 27, 0.98), rgba(2, 10, 16, 0.99) 58%, rgba(5, 20, 31, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 8px, transparent 8px 18px);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 46px rgba(22,136,255,0.025);
    }

    .profile-workspace-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: end;
      border-bottom: 1px solid rgba(226,237,244,0.10);
    }

    .profile-workspace-tab {
      width: min(22%, 260px);
      min-width: 160px;
      padding: 6px 0 11px;
      border-bottom: 3px solid #ff1b35;
      color: #f5f8fb;
      font-size: var(--ui-action-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1;
      text-align: center;
      text-transform: uppercase;
    }

    .profile-workspace-head p {
      margin: 0 0 10px;
      color: rgba(202,214,224,0.48);
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 0.3px;
      line-height: 1.25;
      text-align: right;
    }

    .desktop-profile-card .modal-head {
      align-items: center;
      margin: 0;
      padding: 0 0 18px;
      border-bottom: 1px solid rgba(226,237,244,0.10);
      background: transparent;
    }

    .desktop-profile-card .leaderboard-title-icon {
      color: #57a9ff;
      border-color: rgba(87,169,255,0.58);
      background: linear-gradient(180deg, rgba(3,55,92,0.58), rgba(3,30,54,0.48));
    }

    .desktop-profile-card .leaderboard-title-icon svg {
      width: 25px;
      height: 25px;
    }

    .desktop-profile-card .modal-head h2 {
      margin: 0;
      color: #f5f8fb;
      font-size: 30px;
      line-height: 0.96;
      text-transform: uppercase;
    }

    .desktop-profile-card .modal-head p {
      margin-top: 8px;
      color: rgba(202,214,224,0.82);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.9px;
      line-height: 1.24;
      text-transform: uppercase;
    }

    .desktop-profile-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
      gap: 12px;
      min-height: 0;
      overflow: visible;
      padding-top: 0;
    }

    .profile-main-column,
    .profile-side-column {
      display: grid;
      gap: var(--ui-section-gap);
      align-content: start;
      align-self: stretch;
      min-width: 0;
      min-height: 0;
      max-height: none;
      overflow: visible;
    }

    .profile-panel,
    .desktop-profile-body .mobile-profile-card,
    .desktop-profile-rail .mobile-profile-card,
    .desktop-scores-panel .mobile-profile-card {
      border: 1px solid var(--ui-card-border);
      border-radius: var(--ui-card-radius);
      background: var(--ui-card-bg);
    }

    .profile-panel {
      padding: var(--ui-card-padding);
    }

    .profile-status-column {
      display: grid;
      align-content: start;
      align-self: start;
      gap: 12px;
      min-width: 0;
      min-height: 0;
    }

    .profile-status-panel,
    .profile-future-panel {
      align-self: start;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.020)),
        rgba(5, 18, 29, 0.72);
      box-shadow: inset 1px 0 0 rgba(255,255,255,0.035);
    }

    .profile-status-panel h3,
    .profile-future-panel h3 {
      margin: 0;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--ui-divider);
      color: #dbe4ea;
      font-size: var(--ui-section-title-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.1;
      text-transform: uppercase;
    }

    .profile-status-list {
      display: grid;
      gap: 0;
      margin: 0;
    }

    .profile-status-list div {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      min-height: 36px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(226,237,244,0.08);
    }

    .profile-status-list div:last-child {
      border-bottom: 0;
    }

    .profile-status-list dt {
      color: rgba(202,214,224,0.72);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.15;
      text-transform: uppercase;
      min-width: 0;
    }

    .profile-status-list dd {
      margin: 0;
      color: #f5f8fb;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.15;
      text-align: right;
      white-space: nowrap;
    }

    .profile-status-panel p {
      margin: 0;
      padding-top: 0;
      color: rgba(202,214,224,0.58);
      font-size: 10.5px;
      font-weight: 750;
      line-height: 1.35;
    }

    .profile-onboarding-card {
      display: grid;
      gap: 12px;
      padding-top: calc(var(--ui-card-padding) + 2px);
      padding-bottom: calc(var(--ui-card-padding) + 4px);
      background:
        linear-gradient(135deg, rgba(245,35,58,0.12), rgba(22,136,255,0.055) 56%, rgba(255,255,255,0.025)),
        var(--ui-card-bg);
    }

    .profile-onboarding-card h3 {
      margin-bottom: 0;
    }

    .profile-onboarding-card p,
    .profile-onboarding-card small,
    .profile-support-note p {
      margin: 0;
      color: rgba(226,237,244,0.72);
      font-size: var(--ui-body-size);
      font-weight: 750;
      line-height: 1.45;
    }

    .profile-onboarding-card small {
      color: rgba(202,214,224,0.52);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.15px;
    }

    .profile-onboarding-actions {
      display: grid;
      grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.62fr);
      gap: 8px;
      align-items: center;
      padding-top: 4px;
    }

    .profile-onboarding-actions .btn-primary,
    .profile-onboarding-actions .btn-secondary {
      min-height: var(--btn-height);
      justify-content: center;
      text-align: center;
    }

    .profile-guest-link {
      width: fit-content;
      min-height: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      justify-self: start;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: rgba(87,169,255,0.88);
      padding: 3px 0 0;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: 0.15px;
      line-height: 1.2;
      text-align: center;
      text-transform: none;
      transition: color 120ms ease, transform 120ms ease;
    }

    .profile-onboarding-actions .profile-guest-link {
      grid-column: 1 / -1;
    }

    .profile-guest-link:hover,
    .profile-guest-link:focus-visible {
      color: #f5f8fb;
      outline: none;
    }

    .profile-guest-link:active {
      transform: translateY(1px);
    }

    .profile-benefits-section {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.022)),
        rgba(5, 18, 29, 0.72);
    }

    .profile-benefit-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .profile-benefit-card {
      min-width: 0;
      display: grid;
      gap: 6px;
      padding: 10px;
      border: 1px solid rgba(226,237,244,0.095);
      border-radius: var(--ui-card-radius);
      background: rgba(2, 10, 16, 0.24);
    }

    .profile-benefit-card span {
      color: rgba(255,48,65,0.82);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.9px;
      line-height: 1;
    }

    .profile-benefit-card strong,
    .profile-trust-grid strong {
      color: #f5f8fb;
      font-size: var(--ui-body-size);
      font-weight: 900;
      letter-spacing: 0;
      line-height: 1.2;
      text-transform: none;
    }

    .profile-benefit-card p {
      margin: 0;
      color: rgba(202,214,224,0.70);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.35;
    }

    .profile-trust-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .profile-trust-grid > div {
      min-width: 0;
      padding: 10px;
      border: 1px solid rgba(226,237,244,0.085);
      border-radius: var(--ui-card-radius);
      background: rgba(2, 10, 16, 0.20);
    }

    .profile-trust-grid ul {
      display: grid;
      gap: 5px;
      margin: 8px 0 0;
      padding-left: 17px;
      color: rgba(202,214,224,0.70);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.3;
    }

    .profile-app-info-section,
    .profile-support-note {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
        rgba(5, 18, 29, 0.64);
    }

    .profile-rail-note-card {
      display: grid;
      gap: 7px;
      margin-top: 10px;
      padding: 12px;
      border: 1px solid var(--ui-card-border);
      border-radius: var(--ui-card-radius);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
        rgba(5, 18, 29, 0.58);
    }

    .profile-rail-note-card strong {
      color: #f5f8fb;
      font-size: var(--ui-body-size);
      font-weight: 900;
      line-height: 1.18;
    }

    .profile-rail-note-card p {
      margin: 0;
      color: rgba(202,214,224,0.70);
      font-size: 11px;
      font-weight: 720;
      line-height: 1.38;
    }

    .profile-future-panel ul {
      display: grid;
      gap: 5px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .profile-future-panel li {
      min-height: 24px;
      display: flex;
      align-items: center;
      padding: 0 0 0 16px;
      position: relative;
      color: rgba(226,237,244,0.72);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
    }

    .profile-future-panel li::before {
      content: "";
      position: absolute;
      left: 0;
      width: 5px;
      height: 5px;
      border: 1px solid rgba(255,48,65,0.45);
      border-radius: 50%;
      background: rgba(202,214,224,0.08);
    }

    .profile-panel h3 {
      margin: 0 0 8px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--ui-divider);
      color: #dbe4ea;
      font-size: var(--ui-section-title-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.1;
      text-transform: uppercase;
    }

    .profile-panel > summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      margin: 0;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--ui-divider);
      color: #dbe4ea;
      cursor: pointer;
      font-size: var(--ui-section-title-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.1;
      list-style: none;
      text-transform: uppercase;
    }

    .profile-panel[open] > summary {
      margin-bottom: 8px;
    }

    .profile-panel > summary::-webkit-details-marker {
      display: none;
    }

    .profile-panel > summary::after {
      content: "+";
      width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 7px;
      color: rgba(226,237,244,0.72);
      background: rgba(255,255,255,0.045);
      font-size: 13px;
      line-height: 1;
    }

    .profile-panel[open] > summary::after {
      content: "-";
    }

    .profile-hero-card {
      display: grid;
      gap: var(--ui-section-gap);
      padding: var(--ui-card-padding);
      background:
        linear-gradient(135deg, rgba(245, 35, 58, 0.16), rgba(18, 38, 52, 0) 46%),
        linear-gradient(180deg, rgba(18, 38, 52, 0.96), rgba(10, 25, 37, 0.96));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 18px 44px rgba(0,0,0,0.18);
    }

    .profile-hero-main {
      min-width: 0;
    }

    .desktop-profile-body .mobile-profile-card span,
    .desktop-profile-rail .mobile-profile-card span,
    .desktop-scores-panel .mobile-profile-card span {
      display: block;
      margin-bottom: 5px;
      color: rgba(202,214,224,0.76);
      font-size: var(--ui-eyebrow-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      text-transform: uppercase;
    }

    .desktop-profile-body .mobile-profile-card strong,
    .desktop-profile-rail .mobile-profile-card strong,
    .desktop-scores-panel .mobile-profile-card strong {
      display: block;
      color: #f5f8fb;
      font-size: 24px;
      font-weight: 900;
      line-height: 1.08;
      text-transform: uppercase;
    }

    .desktop-profile-rail .profile-hero-card,
    .desktop-scores-panel .profile-hero-card {
      gap: 10px;
      padding: 12px;
    }

    .desktop-profile-rail .mobile-profile-card strong,
    .desktop-scores-panel .mobile-profile-card strong {
      font-size: 22px;
      letter-spacing: 0;
    }

    .desktop-profile-body .mobile-profile-card p,
    .desktop-profile-rail .mobile-profile-card p,
    .desktop-scores-panel .mobile-profile-card p {
      margin: 6px 0 0;
      color: rgba(226,237,244,0.82);
      font-size: var(--ui-body-size);
      font-weight: 700;
      line-height: 1.45;
    }

    .profile-guest-benefits {
      padding-top: 8px;
      border-top: 1px solid rgba(226,237,244,0.10);
    }

    .profile-guest-benefits p {
      margin: 0 0 6px;
      color: rgba(245,248,251,0.92);
      font-size: var(--ui-body-size);
      font-weight: 800;
    }

    .profile-guest-benefits ul {
      display: grid;
      gap: 4px;
      margin: 0;
      padding-left: 18px;
      color: rgba(226,237,244,0.84);
      font-size: var(--ui-body-size);
      font-weight: 700;
      line-height: 1.35;
    }

    .desktop-profile-rail .profile-guest-benefits p,
    .desktop-scores-panel .profile-guest-benefits p,
    .desktop-profile-rail .profile-guest-benefits ul,
    .desktop-scores-panel .profile-guest-benefits ul {
      font-size: var(--ui-body-size);
      line-height: 1.35;
    }

    .profile-hero-actions {
      display: grid;
      gap: 8px;
      padding-top: 0;
    }

    .profile-hero-actions .mobile-account-action {
      min-height: var(--btn-height);
      justify-content: center;
      border-radius: var(--btn-radius);
      border: 1px solid rgba(240,36,50,0.70);
      background: var(--btn-primary-bg);
      color: #fff;
      box-shadow: var(--btn-primary-shadow);
      font-size: var(--btn-font-size);
      font-weight: var(--btn-font-weight);
      letter-spacing: var(--btn-letter-spacing);
      text-align: center;
      text-transform: none;
    }

    .profile-hero-actions .mobile-account-action span,
    .mobile-profile-actions button > span:not(.button-icon),
    .desktop-profile-actions button > span:not(.button-icon) {
      margin: 0;
      color: inherit;
      font: inherit;
      letter-spacing: inherit;
      line-height: inherit;
      text-transform: inherit;
    }

    .profile-signin-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: center;
      gap: 6px;
      padding: 4px 0 0;
    }

    .profile-signin-row > span {
      color: rgba(202,214,224,0.72);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.7px;
    }

    .profile-signin-button {
      width: 100%;
      min-height: var(--btn-height);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #f5f8fb;
      text-align: center;
      text-transform: none;
    }

    .profile-hero-actions .profile-signin-button {
      text-transform: none;
    }

    .profile-future-fields,
    .training-summary-list {
      display: grid;
      gap: 0;
      margin: 0;
    }

    .profile-future-fields {
      grid-template-columns: 1fr;
      padding-top: 6px;
    }

    .profile-details-row {
      width: 100%;
      min-height: 32px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      margin: 0;
      padding: 8px 0 0;
      border: 0;
      border-top: 1px solid var(--ui-divider);
      border-radius: 0;
      background: transparent;
      color: rgba(202,214,224,0.76);
      cursor: pointer;
      font-size: var(--ui-eyebrow-size);
      font-weight: 900;
      letter-spacing: var(--ui-label-tracking);
      line-height: 1.2;
      text-transform: uppercase;
    }

    .desktop-profile-body .mobile-profile-card .profile-details-row span,
    .mobile-profile-card .profile-details-row span {
      display: block;
      margin: 0;
      color: inherit;
      font: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
    }

    .profile-details-row::after {
      content: "+";
      width: 20px;
      height: 20px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(226,237,244,0.12);
      border-radius: 7px;
      color: rgba(226,237,244,0.72);
      background: rgba(255,255,255,0.045);
      font-size: 12px;
      line-height: 1;
    }

    .profile-details-row:hover,
    .profile-details-row:focus-visible {
      color: rgba(245,248,251,0.92);
      outline: none;
    }

    .profile-details-row:hover::after,
    .profile-details-row:focus-visible::after {
      border-color: rgba(87,169,255,0.36);
      color: #f5f8fb;
      background: rgba(22,136,255,0.10);
    }

    .profile-future-fields div,
    .training-summary-list div {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: baseline;
      padding: 6px 0;
      border-bottom: 1px solid rgba(226,237,244,0.075);
    }

    .profile-future-fields div:nth-last-child(-n + 1),
    .training-summary-list div:last-child {
      border-bottom: 0;
    }

    .profile-future-fields dt,
    .profile-future-fields dd,
    .training-summary-list dt,
    .training-summary-list dd {
      margin: 0;
    }

    .profile-future-fields dt,
    .training-summary-list dt {
      color: rgba(202,214,224,0.68);
      font-size: var(--ui-eyebrow-size);
      font-weight: 900;
      letter-spacing: 0.7px;
      line-height: 1.25;
      text-transform: uppercase;
    }

    .profile-future-fields dd,
    .training-summary-list dd {
      color: #f5f8fb;
      font-size: var(--ui-body-size);
      font-weight: 900;
      line-height: 1.25;
      text-align: right;
      white-space: nowrap;
    }

    .training-summary-card {
      background:
        linear-gradient(180deg, rgba(22,136,255,0.08), rgba(255,255,255,0.026));
    }

    .profile-support-section {
      opacity: 0.86;
    }

    .profile-support-section .desktop-profile-actions,
    .profile-support-section .mobile-profile-actions {
      gap: 7px;
    }

    .profile-support-section button {
      min-height: 34px;
    }

    .desktop-profile-actions {
      display: grid;
      gap: 8px;
    }

    .desktop-profile-actions button {
      min-height: 34px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      border-radius: var(--btn-radius);
      border: 1px solid rgba(226,237,244,0.12);
      background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
      color: #f5f8fb;
      padding: 7px var(--btn-padding-x);
      font-size: var(--btn-font-size);
      font-weight: var(--btn-font-weight);
      letter-spacing: var(--btn-letter-spacing);
      line-height: 1;
      text-align: left;
      text-transform: uppercase;
    }

    .desktop-profile-actions button.primary {
      border-color: rgba(240,36,50,0.70);
      background: var(--btn-primary-bg);
      box-shadow: var(--btn-primary-shadow);
    }

    .desktop-profile-actions button[aria-disabled="true"],
    .desktop-profile-actions .mobile-account-action[aria-disabled="true"] {
      opacity: 0.62;
      cursor: default;
    }

    .desktop-profile-actions small {
      justify-self: end;
      min-height: 18px;
      display: inline-flex;
      align-items: center;
      padding: 3px 7px;
      border: 1px solid rgba(226,237,244,0.14);
      border-radius: 999px;
      background: rgba(255,255,255,0.045);
      color: rgba(202,214,224,0.72);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.6px;
      line-height: 1;
      text-transform: uppercase;
    }

    .desktop-profile-actions .button-icon {
      width: var(--ui-icon-size);
      height: var(--ui-icon-size);
      display: grid;
      place-items: center;
    }

    .desktop-profile-actions .button-icon svg {
      width: var(--ui-icon-size);
      height: var(--ui-icon-size);
      fill: none;
      stroke: currentColor;
      stroke-width: 1.9;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    @media (min-width: 701px) {
      .desktop-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        gap: 4px;
        min-height: 58px;
        margin-top: 2px;
        padding: 6px;
        border: 1px solid rgba(226, 237, 244, 0.12);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(7, 22, 34, 0.97), rgba(2, 10, 16, 0.995)),
          rgba(2, 10, 16, 0.96);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.035),
          0 10px 24px rgba(0,0,0,0.20);
        pointer-events: auto;
      }

      body.mobile-play-active .desktop-bottom-nav {
        display: none;
      }

      .desktop-bottom-nav-item {
        position: relative;
        min-width: 0;
        min-height: 46px;
        display: grid;
        grid-template-rows: 22px auto;
        place-items: center;
        gap: 2px;
        padding: 4px 2px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: rgba(202,214,224,0.68);
        box-shadow: none;
        font-size: 11px;
        font-weight: 850;
        letter-spacing: 0;
        line-height: 1;
        text-transform: none;
      }

      .desktop-bottom-nav-item svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.15;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .desktop-bottom-nav-item .mode-team-icon {
        width: 23px;
        height: 20px;
      }

      .desktop-bottom-nav-item span:last-child {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .desktop-bottom-nav-item.is-active {
        color: #f4fbff;
        background: linear-gradient(180deg, rgba(22,136,255,0.24), rgba(22,136,255,0.10));
        box-shadow: inset 0 1px 0 rgba(87,169,255,0.26);
        font-weight: 950;
      }

      .desktop-bottom-nav-item:hover,
      .desktop-bottom-nav-item:focus-visible {
        color: #f4fbff;
        background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
        outline: none;
      }
    }

    @media (min-width: 701px) and (max-width: 1080px) {
      .desktop-profile-view {
        padding: 0;
      }

      .desktop-profile-card {
        min-height: auto;
      }

      .profile-workspace-head {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .profile-workspace-tab {
        width: 100%;
      }

      .profile-workspace-head p {
        margin-bottom: 12px;
        text-align: left;
      }

      .desktop-profile-body {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      body {
        --mobile-bottom-nav-height: 72px;
        --mobile-bottom-nav-space: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
      }

      .mobile-bottom-nav {
        position: fixed;
        left: var(--mobile-vv-left, 0px);
        right: auto;
        bottom: var(--mobile-browser-bottom-inset, 0px);
        z-index: 2147483645;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        width: var(--mobile-vv-width, 100vw);
        min-height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
        padding: 7px max(10px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        border-top: 1px solid rgba(226, 237, 244, 0.14);
        background:
          linear-gradient(180deg, rgba(7, 22, 34, 0.97), rgba(2, 10, 16, 0.995)),
          rgba(2, 10, 16, 0.96);
        box-shadow: 0 -16px 32px rgba(0,0,0,0.34);
        pointer-events: auto;
      }

      body.mobile-play-active .mobile-bottom-nav {
        display: none;
      }

      .mobile-bottom-nav-item {
        position: relative;
        min-width: 0;
        min-height: 50px;
        display: grid;
        grid-template-rows: 24px auto;
        place-items: center;
        gap: 2px;
        padding: 4px 2px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: rgba(202,214,224,0.68);
        box-shadow: none;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1;
        text-transform: none;
      }

      .mobile-bottom-nav-item svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.15;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-bottom-nav-item .mode-team-icon {
        width: 25px;
        height: 22px;
      }

      .mobile-bottom-nav-item span:last-child {
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .mobile-bottom-nav-item.is-active {
        color: #f4fbff;
        background: linear-gradient(180deg, rgba(22,136,255,0.24), rgba(22,136,255,0.10));
        box-shadow: inset 0 1px 0 rgba(87,169,255,0.26);
        font-weight: 950;
      }

      .mobile-bottom-nav-item:active {
        transform: scale(0.97);
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet,
      .mobile-shell.mobile-state-ready #mobileReadySheet,
      .mobile-shell.mobile-state-result #mobileResultSheet,
      .mobile-shell.mobile-state-profile #mobileProfileSheet {
        bottom: calc(var(--mobile-browser-bottom-inset, 0px) + var(--mobile-bottom-nav-space)) !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet,
      .mobile-shell.mobile-state-ready #mobileReadySheet {
        height: calc(var(--mobile-home-panel-height) - var(--mobile-bottom-nav-space)) !important;
        max-height: calc(var(--mobile-home-panel-height) - var(--mobile-bottom-nav-space)) !important;
      }

      .mobile-shell.mobile-state-profile #mobileProfileSheet {
        z-index: 1 !important;
        top: var(--mobile-home-preview-height) !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: var(--ui-section-gap);
        width: 100% !important;
        height: calc(var(--mobile-home-panel-height) - var(--mobile-bottom-nav-space) + 12px) !important;
        max-height: calc(var(--mobile-home-panel-height) - var(--mobile-bottom-nav-space) + 12px) !important;
        overflow: auto !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 12px 12px 16px !important;
        background:
          linear-gradient(180deg, rgb(9, 25, 37), rgb(4, 14, 22)),
          #04101a !important;
      }

      .mobile-shell.mobile-state-profile::after {
        content: "";
        position: absolute;
        top: var(--mobile-home-preview-height);
        left: 0;
        right: 0;
        height: 32px;
        z-index: 0;
        pointer-events: none;
        background: #020a10;
      }

      .mobile-shell.mobile-state-profile #mobileProfileSheet .mobile-sheet-handle {
        display: none !important;
      }

      #mobileProfileSheet .profile-benefits-section,
      #mobileProfileSheet .mobile-guest-mode-panel,
      #mobileProfileSheet .profile-trust-section {
        display: none !important;
      }

      .mobile-profile-card {
        display: grid;
        gap: var(--ui-section-gap);
        border: 1px solid rgba(226, 237, 244, 0.12);
        border-radius: 8px;
        background:
          linear-gradient(135deg, rgba(245, 35, 58, 0.16), rgba(18, 38, 52, 0) 46%),
          linear-gradient(180deg, rgb(18, 38, 52), rgb(10, 25, 37));
        padding: var(--ui-card-padding);
      }

      .mobile-profile-card span {
        display: block;
        color: rgba(202,214,224,0.72);
        font-size: var(--ui-eyebrow-size);
        font-weight: 900;
        letter-spacing: var(--ui-label-tracking);
        text-transform: uppercase;
      }

      .mobile-profile-card strong {
        display: block;
        color: #f5f8fb;
        font-size: 22px;
        font-weight: 900;
        line-height: 1.08;
      }

      .mobile-profile-card p {
        margin: 0;
        color: rgba(202,214,224,0.82);
        font-size: var(--ui-body-size);
        font-weight: 700;
        line-height: 1.35;
      }

      .profile-main-column,
      .profile-side-column {
        display: contents;
      }

      .profile-panel {
        padding: var(--ui-card-padding);
        border: 1px solid rgba(226, 237, 244, 0.12);
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.026));
      }

      .profile-panel > summary {
        margin: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(226,237,244,0.10);
        color: #dbe4ea;
        cursor: pointer;
        font-size: var(--ui-section-title-size);
        font-weight: 900;
        letter-spacing: var(--ui-label-tracking);
        list-style: none;
        text-transform: uppercase;
      }

      .profile-panel[open] > summary {
        margin-bottom: 8px;
      }

      .profile-hero-main {
        min-width: 0;
      }

      .profile-guest-benefits {
        padding-top: 8px;
      }

      .profile-guest-benefits p {
        font-size: var(--ui-body-size);
      }

      .profile-guest-benefits ul {
        gap: 3px;
        font-size: var(--ui-body-size);
      }

      .profile-hero-actions .mobile-account-action {
        width: 100%;
        min-height: var(--btn-height);
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .profile-signin-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-top: 2px;
      }

      .profile-signin-row > span {
        font-size: 11px;
        text-align: center;
      }

      .profile-signin-button {
        width: 100%;
      }

      .profile-onboarding-actions,
      .profile-benefit-grid,
      .profile-trust-grid {
        grid-template-columns: 1fr;
      }

      .profile-hero-actions .profile-guest-link,
      .profile-onboarding-actions .profile-guest-link {
        justify-self: center;
      }

      .profile-benefit-card,
      .profile-trust-grid > div {
        padding: 9px;
      }

      .profile-future-fields {
        grid-template-columns: 1fr;
      }

      .profile-future-fields div,
      .training-summary-list div {
        padding: 6px 0;
      }

      .profile-future-fields dt,
      .training-summary-list dt {
        font-size: 10px;
      }

      .profile-future-fields dd,
      .training-summary-list dd {
        font-size: 12px;
      }

      #desktopProfileModal .profile-trust-section,
      .mobile-shell.mobile-state-profile #mobileProfileSheet .profile-benefits-section,
      .mobile-shell.mobile-state-profile #mobileProfileSheet .mobile-guest-mode-panel,
      .mobile-shell.mobile-state-profile #mobileProfileSheet .profile-trust-section {
        display: none !important;
      }

      .mobile-profile-actions {
        display: grid;
        gap: 8px;
      }

      #mobileProfileSheet .mobile-profile-app-info:not([open]) .mobile-profile-actions {
        display: none !important;
      }

      #mobileProfileSheet .mobile-profile-support:not([open]) .mobile-support-content {
        display: none !important;
      }

      .mobile-profile-actions button {
        display: inline-grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        justify-items: start;
        gap: 8px;
        min-height: var(--btn-height);
        padding: 8px 10px;
        border-radius: var(--btn-radius);
        font-size: var(--btn-font-size);
        font-weight: var(--btn-font-weight);
        letter-spacing: var(--btn-letter-spacing);
        line-height: 1;
        text-align: left;
      }

      .mobile-profile-actions .mobile-account-action {
        min-height: var(--btn-height);
      }

      .mobile-profile-actions button[aria-disabled="true"],
      .mobile-profile-actions .mobile-account-action[aria-disabled="true"] {
        opacity: 0.62;
        cursor: default;
      }

      .mobile-profile-actions small {
        justify-self: end;
        padding: 4px 6px;
        border: 1px solid rgba(226, 237, 244, 0.14);
        border-radius: 999px;
        color: rgba(202,214,224,0.72);
        background: rgba(2, 10, 16, 0.28);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.6px;
        line-height: 1;
        text-transform: uppercase;
      }

      .mobile-profile-actions .mobile-account-action.primary small {
        border-color: rgba(255,255,255,0.24);
        color: rgba(255,255,255,0.82);
        background: rgba(255,255,255,0.12);
      }

      .mobile-profile-actions #mobileProfileVersionBtn {
        min-height: var(--btn-height);
      }

      .mobile-profile-actions .button-icon,
      .mobile-profile-actions .button-icon svg {
        width: var(--ui-icon-size);
        height: var(--ui-icon-size);
      }

      .mobile-profile-actions .button-icon svg {
        width: var(--ui-icon-size);
        height: var(--ui-icon-size);
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn {
        display: none !important;
      }

      #leaderboardModal,
      #liveSetupModal {
        z-index: 30;
      }

      #leaderboardModal {
        top: var(--mobile-home-preview-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--mobile-browser-bottom-inset, 0px) + var(--mobile-bottom-nav-space) - 12px) !important;
        display: grid;
        place-items: stretch;
        padding: 0 !important;
        border-radius: 0;
        overflow: hidden;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.99), rgba(4, 14, 22, 0.995)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
      }

      #liveSetupModal {
        top: var(--mobile-home-preview-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--mobile-browser-bottom-inset, 0px) + var(--mobile-bottom-nav-space)) !important;
        display: grid;
        place-items: stretch;
        padding: 0 !important;
        border-radius: 22px 22px 0 0;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.99), rgba(4, 14, 22, 0.995)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
        overflow: hidden;
      }

      #liveSetupModal .live-setup-card {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 22px 22px 0 0 !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        border-bottom: 0 !important;
        padding: 12px 12px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.99), rgba(4, 14, 22, 0.995)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px);
        box-shadow: none;
        overflow: auto;
      }

      #liveSetupModal .modal-head {
        display: block;
        margin: 0 0 8px !important;
        padding: 0 !important;
        border: 0 !important;
      }

      #liveSetupModal .competitive-title-lockup {
        display: block;
      }

      #liveSetupModal .modal-head h2 {
        display: block;
        margin: 0 0 3px;
        color: #f5f8fb;
        font-size: 12px !important;
        font-weight: 900;
        letter-spacing: 1.6px;
        line-height: normal;
        text-transform: uppercase;
      }

      #liveSetupModal .modal-head p {
        display: none;
      }

      #liveSetupModal .live-join-panel {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      #liveSetupModal .live-mobile-lobby-panel {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      #liveSetupModal.is-live-prejoin-preview .live-join-panel {
        flex: 0 0 auto;
      }

      #liveSetupModal.is-live-prejoin-preview .live-mobile-lobby-panel {
        flex: 1 1 auto;
      }

      #liveSetupModal.is-live-prejoin-preview .mobile-live-lobby-summary,
      #liveSetupModal.is-live-prejoin-preview .mobile-live-lobby-actions {
        display: none;
      }

      #liveSetupModal .mobile-live-lobby-summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 44px;
        padding: 8px 10px;
        border: 1px solid rgba(132, 162, 183, 0.24);
        border-radius: 7px;
        background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      }

      #liveSetupModal .mobile-live-lobby-summary span {
        color: rgba(202,214,224,0.78);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.9px;
        line-height: 1;
        text-transform: uppercase;
      }

      #liveSetupModal .mobile-live-lobby-summary strong {
        color: #f5f8fb;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 2px;
        line-height: 1;
      }

      #liveSetupModal .mobile-live-lobby-meta {
        display: flex;
        align-items: center;
        min-height: 20px;
        color: rgba(202,214,224,0.76);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.4px;
        line-height: 1.2;
        text-transform: uppercase;
      }

      #liveSetupModal .mobile-live-player-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding-right: 3px;
        overflow: auto;
        border: 1px solid rgba(132, 162, 183, 0.18);
        border-radius: 7px;
        background: rgba(0, 12, 19, 0.34);
      }

      #liveSetupModal .mobile-live-player-list .live-player-row,
      #liveSetupModal .mobile-live-player-list .live-player-empty {
        border-width: 0 0 1px;
        border-radius: 0;
        background: transparent;
      }

      #liveSetupModal .mobile-live-player-list .mobile-live-host-instructions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 14px;
        color: rgba(202,214,224,0.82);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.35;
        text-transform: none;
      }

      #liveSetupModal .mobile-live-host-instructions strong {
        color: #f5f8fb;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 1.1px;
        line-height: 1.1;
        text-transform: uppercase;
      }

      #liveSetupModal .mobile-live-host-instructions span,
      #liveSetupModal .mobile-live-host-instructions em {
        display: block;
        font-style: normal;
      }

      #liveSetupModal .mobile-live-host-instructions em {
        color: rgba(202,214,224,0.66);
        font-size: 11px;
      }

      #liveSetupModal .mobile-live-player-list .live-player-row:last-child,
      #liveSetupModal .mobile-live-player-list .live-player-empty:last-child {
        border-bottom: 0;
      }

      #liveSetupModal .live-join-fields {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
      }

      #liveSetupModal .live-join-field {
        min-height: 52px;
      }

      #liveSetupModal .live-join-field label {
        margin: 0 0 4px;
        color: rgba(202,214,224,0.78);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.9px;
        line-height: 1;
        text-transform: uppercase;
      }

      #liveSetupModal .live-join-field input {
        width: 100%;
        min-height: 22px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #f5f8fb;
        font-size: 14px;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 1.2;
        text-transform: none;
      }

      #liveSetupModal .live-join-field input::placeholder {
        color: rgba(202,214,224,0.56);
        font-weight: 900;
      }

      #liveSetupModal .live-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: auto !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(226,237,244,0.08);
      }

      #liveSetupModal .live-mobile-actions button {
        width: 100%;
        min-width: 0 !important;
      }

      #liveSetupModal .live-mobile-actions:has(#liveBackFromJoinBtn.hidden) #liveJoinRoomBtn {
        grid-column: 1 / -1;
      }

      #liveSetupModal .mobile-live-lobby-actions {
        grid-template-columns: 1fr;
      }

      #liveSetupModal #mobileLiveWaitingBtn:disabled {
        background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.055));
        box-shadow: none;
        color: rgba(202,214,224,0.78);
        cursor: default;
        opacity: 1;
      }

      #liveSetupModal #closeLiveSetupBtn {
        display: none;
      }

      #leaderboardModal .leaderboard-card {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 22px 22px 0 0 !important;
        border-bottom: 0 !important;
        padding-bottom: 14px !important;
      }

      #leaderboardModal .leaderboard-card {
        border: 1px solid rgba(255,255,255,0.16) !important;
        border-bottom: 0 !important;
        background:
          linear-gradient(180deg, rgba(9, 25, 37, 0.98), rgba(4, 14, 22, 0.98)),
          repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 18px) !important;
        box-shadow: 0 -18px 50px rgba(0,0,0,0.35) !important;
        padding: 12px 12px 16px !important;
      }

      #leaderboardModal .leaderboard-card .modal-head {
        display: block;
        margin: 0 0 12px !important;
      }

      #leaderboardModal .leaderboard-title-lockup {
        display: block;
      }

      #leaderboardModal .leaderboard-title-icon,
      #leaderboardModal .modal-close,
      #leaderboardModal .leaderboard-card .modal-head p {
        display: none !important;
      }

      #leaderboardModal .leaderboard-card .modal-head h2 {
        color: #f5f8fb;
        font-size: 13px !important;
        font-weight: 950;
        letter-spacing: 2.5px;
        line-height: 1;
        text-transform: uppercase;
      }

      .mobile-tab-header,
      #liveSetupModal .modal-head h2.mobile-tab-header,
      #leaderboardModal .leaderboard-card .modal-head h2.mobile-tab-header,
      .mobile-shell.mobile-state-home .mobile-panel-label.mobile-tab-header,
      .mobile-shell.mobile-state-profile .mobile-panel-label.mobile-tab-header {
        display: block !important;
        margin: 0 0 3px !important;
        color: #f5f8fb !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        letter-spacing: 1.6px !important;
        line-height: normal !important;
        text-transform: uppercase !important;
      }

      #leaderboardModal .leaderboard-card .mobile-tab-modal-head {
        display: block !important;
        min-height: 0 !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        border: 0 !important;
      }

      #leaderboardModal .mobile-tab-modal-head .leaderboard-title-lockup {
        display: block !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-filter #mobileHomeSheet,
      .mobile-shell.mobile-state-home.has-mobile-selection #mobileHomeSheet,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeSheet {
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
      }

      .mobile-shell.mobile-state-profile #mobileProfileSheet {
        gap: 8px !important;
      }

      #leaderboardModal .leaderboard-shell {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
      }

      #leaderboardModal .leaderboard-shell.is-account-locked {
        padding: 12px !important;
        border: 1px solid rgba(132,162,183,0.22) !important;
        border-radius: 8px !important;
        background:
          radial-gradient(circle at 12% 16%, rgba(240,36,50,0.10), transparent 30%),
          radial-gradient(circle at 82% 0%, rgba(87,169,255,0.09), transparent 38%),
          linear-gradient(180deg, rgba(7,22,34,0.80), rgba(3,13,21,0.94)) !important;
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.045) !important;
      }

      #leaderboardModal .leaderboard-access-gate {
        min-height: min(460px, calc(100vh - 150px));
        padding: 8px 4px;
      }

      #leaderboardModal .leaderboard-access-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 9px;
      }

      #leaderboardModal .leaderboard-access-lock {
        width: 44px;
        height: 44px;
        border-radius: 10px;
      }

      #leaderboardModal .leaderboard-access-lock svg {
        width: 23px;
        height: 23px;
      }

      #leaderboardModal .leaderboard-access-gate strong {
        font-size: 19px;
      }

      #leaderboardModal .leaderboard-access-gate p {
        max-width: 320px;
        font-size: 12px;
      }

      #leaderboardModal .leaderboard-access-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        margin-top: 4px;
      }

      #leaderboardModal .leaderboard-access-features div {
        min-height: 0;
        padding: 10px 11px;
        text-align: center;
      }

      #leaderboardModal .leaderboard-access-features strong {
        font-size: 14px;
      }

      #leaderboardModal .leaderboard-access-features small,
      #leaderboardModal .leaderboard-access-direction {
        font-size: 10px;
      }

      #leaderboardModal .leaderboard-access-direction-desktop {
        display: none;
      }

      #leaderboardModal .leaderboard-scope-tabs,
      #leaderboardModal .leaderboard-summary-line,
      #leaderboardModal .leaderboard-license-note,
      #leaderboardModal .leaderboard-filters {
        display: none;
      }

      #leaderboardModal .leaderboard-stats {
        display: none !important;
      }

      #leaderboardModal .leaderboard-stat {
        min-height: 66px;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 8px;
        border: 1px solid rgba(226, 237, 244, 0.13) !important;
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(7,22,34,0.78), rgba(3,13,21,0.88));
      }

      #leaderboardModal .leaderboard-stat-icon,
      #leaderboardModal .leaderboard-stat-distance,
      #leaderboardModal .leaderboard-stat-updated {
        display: none !important;
      }

      #leaderboardModal .leaderboard-stat strong {
        font-size: 18px;
      }

      #leaderboardModal .leaderboard-stat span {
        font-size: 9px;
      }

      #leaderboardModal .leaderboard-table {
        display: none;
      }

      #leaderboardModal .leaderboard-table-wrap {
        max-height: none;
        margin-top: 10px;
        overflow: visible;
      }

      #leaderboardModal .leaderboard-empty {
        display: none !important;
      }

      #leaderboardModal .leaderboard-no-data-panel:not(.hidden) {
        display: grid !important;
      }

      #leaderboardModal .leaderboard-no-data-panel {
        margin-top: 0;
      }

      #leaderboardModal .mobile-leaderboard-cards:not(:empty),
      #leaderboardModal .mobile-leaderboard-cards {
        display: none !important;
      }

      #leaderboardModal .mobile-leaderboard-cards:not(:empty) {
        display: grid;
      }

      #leaderboardModal .mobile-leaderboard-cards {
        gap: 8px;
        margin-top: 10px;
      }

      #leaderboardModal .mobile-leaderboard-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        padding: 10px;
        border: 1px solid rgba(226,237,244,0.12);
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
      }

      #leaderboardModal .mobile-leaderboard-rank,
      #leaderboardModal .mobile-leaderboard-score {
        color: #f5f8fb;
        font-size: 16px;
        font-weight: 950;
      }

      #leaderboardModal .mobile-leaderboard-main {
        min-width: 0;
      }

      #leaderboardModal .mobile-leaderboard-main strong,
      #leaderboardModal .mobile-leaderboard-main span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      #leaderboardModal .mobile-leaderboard-main strong {
        color: #f5f8fb;
        font-size: 13px;
      }

      #leaderboardModal .mobile-leaderboard-main span {
        margin-top: 3px;
        color: rgba(202,214,224,0.70);
        font-size: 11px;
      }

      #leaderboardModal .leaderboard-footer {
        display: none !important;
      }

      #leaderboardModal .leaderboard-dashboard-view,
      #leaderboardModal .leaderboard-workspace,
      #leaderboardModal .leaderboard-insights,
      #leaderboardModal .leaderboard-analytics-grid,
      #leaderboardModal .leaderboard-history-panel {
        display: none !important;
      }

      #leaderboardModal .leaderboard-stat small {
        display: none !important;
      }

      .mobile-shell.mobile-state-home .mobile-home-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 8px !important;
        align-items: stretch;
      }

      .mobile-shell.mobile-state-home #mobileTrainingGuideBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn {
        display: none !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        grid-column: auto !important;
        min-height: 42px !important;
        margin: 0 !important;
      }

      .mobile-shell.mobile-state-home #mobileHomeClearBtn {
        order: 1;
      }

      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn {
        order: 2;
      }

      .mobile-bottom-submit {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: calc(14px + env(safe-area-inset-bottom));
        z-index: 2147483646;
        display: block;
        width: min(360px, calc(100vw - 76px));
        height: 42px;
        min-height: 0;
        padding: 0 18px;
        transform: translateX(-50%);
        pointer-events: auto;
        touch-action: manipulation;
        border-radius: 8px;
        border: 1px solid rgba(255, 78, 91, 0.82);
        background: linear-gradient(180deg, #ff2636, #d50818);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36), 0 0 18px rgba(240, 36, 50, 0.24);
        font-size: 14px;
        letter-spacing: 0.5px;
      }

      .mobile-bottom-submit.hidden {
        display: none !important;
      }
    }

    .live-survivor-hearts {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      margin-right: 7px;
      color: #ff3146;
      font-size: 13px;
      letter-spacing: 0;
      vertical-align: middle;
    }

    .live-survivor-hearts .is-lost {
      color: rgba(132, 162, 183, 0.34);
    }

    .live-player-row.is-eliminated {
      opacity: 0.72;
      border-color: rgba(245, 248, 251, 0.14);
      background:
        linear-gradient(180deg, rgba(245,248,251,0.035), rgba(245,248,251,0.018)),
        rgba(4, 16, 25, 0.82);
    }

    .live-player-row.is-eliminated strong,
    .live-player-row.is-eliminated span {
      color: rgba(202, 214, 224, 0.72);
    }

    .live-results-section-header,
    .live-results-section-row td {
      margin-top: 8px;
      color: #57a9ff;
      font-weight: 900;
      letter-spacing: 0.9px;
      text-transform: uppercase;
    }

    .live-results-row.is-eliminated,
    .live-results-stage-table tr.is-eliminated {
      opacity: 0.74;
    }

    @media (min-width: 701px) {
      #leaderboardModal {
        overflow: hidden;
      }

      #leaderboardModal .modal-head,
      #leaderboardModal .leaderboard-title-lockup,
      #leaderboardModal .modal-close {
        display: none !important;
      }

      .leaderboard-card {
        padding: 14px 24px 22px;
        overflow: hidden;
        background:
          radial-gradient(circle at 12% 8%, rgba(22,136,255,0.08), transparent 34%),
          radial-gradient(circle at 88% 0%, rgba(87,169,255,0.035), transparent 34%),
          linear-gradient(135deg, rgba(4, 15, 24, 0.99), rgba(2, 9, 15, 0.995) 58%, rgba(5, 18, 28, 0.98));
      }

      .leaderboard-card .modal-head {
        min-height: 54px;
        margin-bottom: 10px;
      }

      .leaderboard-title-lockup {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
      }

      .leaderboard-title-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
      }

      .leaderboard-card .modal-head h2 {
        font-size: 24px;
      }

      .leaderboard-card .modal-head p {
        margin-top: 6px;
        font-size: 11px;
        letter-spacing: 1px;
      }

      .leaderboard-card .modal-close {
        width: 44px;
        min-width: 44px;
        height: 44px;
        border-radius: 9px;
      }

      #leaderboardModal.is-account-locked .leaderboard-card {
        grid-template-rows: minmax(0, 1fr);
        align-items: center;
      }

      .leaderboard-shell {
        grid-template-rows: auto auto auto auto minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
        overflow: hidden;
        border-color: rgba(132,162,183,0.18);
        background:
          linear-gradient(180deg, rgba(8,24,36,0.62), rgba(3,13,21,0.80));
      }

      .leaderboard-shell.is-account-locked {
        height: auto;
        min-height: clamp(560px, 68vh, 700px);
        max-height: calc(100% - 28px);
        grid-template-rows: minmax(0, 1fr);
        align-self: center;
        align-items: stretch;
        padding: clamp(32px, 5vh, 58px) clamp(46px, 5vw, 86px);
      }

      .leaderboard-shell.is-account-locked .leaderboard-access-gate {
        height: 100%;
        min-height: 0;
      }

      .leaderboard-shell.is-account-locked .leaderboard-access-content {
        width: min(1150px, 100%);
        min-height: 0;
        align-content: center;
        gap: clamp(14px, 1.8vh, 22px);
      }

      .leaderboard-shell.is-account-locked .leaderboard-access-features {
        max-width: 1150px;
      }

      .leaderboard-scope-tabs {
        display: flex;
        gap: 26px;
        border-bottom: 1px solid rgba(226,237,244,0.08);
      }

      .leaderboard-scope-tabs button {
        min-width: 0;
        min-height: 30px;
        padding: 0 0 8px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: rgba(202,214,224,0.72);
        letter-spacing: 0.65px;
      }

      .leaderboard-scope-tabs button.is-active {
        position: relative;
        background: transparent;
        box-shadow: none;
        color: #f5f8fb;
      }

      .leaderboard-scope-tabs button.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        border-radius: 999px;
        background: var(--red);
        box-shadow: 0 0 16px rgba(240,36,50,0.38);
      }

      .leaderboard-summary-line {
        min-height: 18px;
        color: rgba(202,214,224,0.56);
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 0.2px;
        line-height: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .leaderboard-license-note {
        display: flex;
        align-items: center;
        justify-self: end;
        max-width: 100%;
        min-height: 16px;
        color: rgba(202,214,224,0.46);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.25;
        text-align: right;
      }

      .leaderboard-filters {
        grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 0.78fr);
        gap: 10px;
        padding: 8px 10px;
        border-color: rgba(226,237,244,0.10);
        background:
          linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
      }

      .leaderboard-filters label {
        gap: 3px;
      }

      .leaderboard-filters label span {
        font-size: 8px;
        letter-spacing: 0.72px;
      }

      .leaderboard-filters input,
      .leaderboard-filters select {
        min-height: 32px;
        min-width: 0;
        padding-block: 0;
        padding-inline: 10px 24px;
        border-color: rgba(226,237,244,0.12);
        border-radius: 7px;
        font-size: 11px;
      }

      .leaderboard-filters select {
        background-position:
          calc(100% - 15px) 15px,
          calc(100% - 9px) 15px,
          0 0;
      }

      .leaderboard-stats {
        gap: 9px;
      }

      .leaderboard-stat {
        min-height: 60px;
        grid-template-columns: 26px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 8px 11px;
        border-color: rgba(226,237,244,0.10);
        border-radius: 8px;
        background:
          radial-gradient(circle at 100% 0%, rgba(22,136,255,0.075), transparent 46%),
          linear-gradient(180deg, rgba(12,31,44,0.70), rgba(4,15,24,0.88));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.035),
          0 10px 24px rgba(0,0,0,0.12);
      }

      .leaderboard-stat-icon {
        width: 22px;
        height: 22px;
      }

      .leaderboard-stat-icon svg {
        width: 18px;
        height: 18px;
      }

      .leaderboard-stat strong {
        font-size: 18px;
      }

      .leaderboard-stat span {
        margin-top: 3px;
        font-size: 8px;
        letter-spacing: 0.65px;
        line-height: 1.2;
      }

      .leaderboard-stat small {
        margin-top: 4px;
        font-size: 9px;
        line-height: 1.2;
      }

      .leaderboard-dashboard-view.is-active {
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 0;
        overflow: hidden;
      }

      .leaderboard-workspace {
        grid-template-columns: minmax(760px, 1fr) clamp(280px, 22vw, 320px);
        align-items: stretch;
        gap: 14px;
        min-height: 0;
      }

      .leaderboard-main-panel {
        display: grid;
        min-height: 0;
        overflow: hidden;
        padding: 12px 12px 10px;
        border-color: rgba(226,237,244,0.10);
        border-radius: 10px;
        background:
          radial-gradient(circle at 0% 0%, rgba(87,169,255,0.055), transparent 40%),
          linear-gradient(180deg, rgba(7,22,34,0.74), rgba(3,13,21,0.92));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.04),
          0 18px 40px rgba(0,0,0,0.18);
      }

      .leaderboard-table-wrap {
        min-height: 0;
        height: auto;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
      }

      .leaderboard-table {
        border-collapse: separate;
        border-spacing: 0 8px;
        font-size: 12px;
        table-layout: fixed;
        min-width: 760px;
      }

      .leaderboard-table th,
      .leaderboard-table td {
        border-bottom: 0;
      }

      .leaderboard-table th:nth-child(1),
      .leaderboard-table td:nth-child(1) {
        width: 58px;
      }

      .leaderboard-table th:nth-child(2),
      .leaderboard-table td:nth-child(2) {
        width: 24%;
      }

      .leaderboard-table th:nth-child(3),
      .leaderboard-table td:nth-child(3) {
        width: 20%;
      }

      .leaderboard-table th:nth-child(4),
      .leaderboard-table td:nth-child(4) {
        width: 70px;
      }

      .leaderboard-table th:nth-child(5),
      .leaderboard-table td:nth-child(5) {
        width: 86px;
      }

      .leaderboard-table th:nth-child(6),
      .leaderboard-table td:nth-child(6) {
        width: 82px;
      }

      .leaderboard-table th:nth-child(7),
      .leaderboard-table td:nth-child(7) {
        width: 82px;
      }

      .leaderboard-table th:nth-child(8),
      .leaderboard-table td:nth-child(8) {
        width: 96px;
      }

      .leaderboard-table th:nth-child(9),
      .leaderboard-table td:nth-child(9) {
        width: 82px;
      }

      .leaderboard-table th {
        height: 28px;
        padding: 4px 10px 6px;
        color: rgba(202,214,224,0.62);
        font-size: 8px;
        letter-spacing: 0.72px;
        background: transparent;
      }

      .leaderboard-table tbody tr {
        background:
          linear-gradient(180deg, rgba(255,255,255,0.044), rgba(255,255,255,0.018));
        box-shadow:
          inset 0 0 0 1px rgba(226,237,244,0.07),
          0 8px 18px rgba(0,0,0,0.10);
      }

      .leaderboard-table tbody tr:hover {
        background:
          linear-gradient(90deg, rgba(87,169,255,0.08), rgba(255,255,255,0.026));
        box-shadow:
          inset 0 0 0 1px rgba(87,169,255,0.22),
          0 12px 24px rgba(0,0,0,0.16);
      }

      .leaderboard-table tbody tr.is-selected,
      .leaderboard-table tbody tr.rank-1.is-selected {
        background:
          radial-gradient(circle at 0% 50%, rgba(240,36,50,0.20), transparent 34%),
          linear-gradient(90deg, rgba(240,36,50,0.18), rgba(255,255,255,0.030));
        box-shadow:
          inset 0 0 0 1px rgba(240,36,50,0.70),
          0 0 22px rgba(240,36,50,0.18);
      }

      .leaderboard-table tbody tr.rank-1,
      .leaderboard-table tbody tr.rank-2,
      .leaderboard-table tbody tr.rank-3 {
        box-shadow:
          inset 0 0 0 1px rgba(226,237,244,0.10),
          0 10px 22px rgba(0,0,0,0.14);
      }

      .leaderboard-table tbody td {
        height: 60px;
        padding: 8px 10px;
        color: rgba(245,248,251,0.90);
        font-size: 12px;
        font-weight: 800;
      }

      .leaderboard-table tbody td:nth-child(4),
      .leaderboard-table tbody td:nth-child(5),
      .leaderboard-table tbody td:nth-child(6),
      .leaderboard-table tbody td:nth-child(7),
      .leaderboard-table tbody td:nth-child(8) {
        text-align: right;
      }

      .leaderboard-table th:nth-child(4),
      .leaderboard-table th:nth-child(5),
      .leaderboard-table th:nth-child(6),
      .leaderboard-table th:nth-child(7),
      .leaderboard-table th:nth-child(8) {
        text-align: right;
      }

      .leaderboard-table th:nth-child(9),
      .leaderboard-table td:nth-child(9) {
        text-align: center;
      }

      .leaderboard-table tbody td:first-child {
        border-radius: 8px 0 0 8px;
      }

      .leaderboard-table tbody td:last-child {
        border-radius: 0 8px 8px 0;
      }

      .leaderboard-table td strong:not(.leaderboard-score) {
        font-size: 12px;
      }

      .leaderboard-table td small {
        margin-top: 5px;
        font-size: 10px;
      }

      .leaderboard-score {
        color: var(--red);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: 0.3px;
        text-shadow: 0 0 14px rgba(240,36,50,0.18);
      }

      .rank-medal {
        width: 27px;
        height: 27px;
        margin-right: 6px;
        font-size: 11px;
        box-shadow:
          inset 0 2px 0 rgba(255,255,255,0.50),
          inset 0 -3px 0 rgba(0,0,0,0.22),
          0 8px 18px rgba(0,0,0,0.32);
      }

      .rank-medal::before,
      .rank-medal::after {
        display: none;
      }

      .leaderboard-run-btn {
        min-height: 32px;
        padding: 0 8px;
        border-color: rgba(226,237,244,0.14);
        background: rgba(255,255,255,0.035);
        color: rgba(245,248,251,0.82);
        font-size: 9px;
        letter-spacing: 0.2px;
      }

      .leaderboard-run-btn:hover,
      .leaderboard-run-btn:focus-visible {
        border-color: rgba(87,169,255,0.42);
        color: #9bd0ff;
        background: rgba(22,136,255,0.10);
        outline: none;
      }

      .leaderboard-detail-panel {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        min-height: 0;
        overflow: hidden;
        padding: 16px;
        border-color: rgba(226,237,244,0.11);
        border-radius: 10px;
        background:
          radial-gradient(circle at 100% 0%, rgba(240,36,50,0.08), transparent 42%),
          linear-gradient(180deg, rgba(8,24,36,0.86), rgba(3,13,21,0.94));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.04),
          0 18px 42px rgba(0,0,0,0.22);
      }

      .leaderboard-detail-empty {
        align-self: start;
        justify-self: stretch;
        max-width: none;
        min-height: 180px;
        display: grid;
        place-items: center;
        border: 1px dashed rgba(226,237,244,0.12);
        border-radius: 9px;
        background: rgba(2,10,16,0.22);
      }

      .leaderboard-detail-empty::before {
        content: "";
        width: 34px;
        height: 34px;
        margin-bottom: 12px;
        border: 1px solid rgba(87,169,255,0.26);
        border-radius: 9px;
        background:
          linear-gradient(180deg, rgba(22,136,255,0.16), rgba(22,136,255,0.04));
      }

      .leaderboard-detail-content {
        gap: 12px;
      }

      .leaderboard-detail-head {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(226,237,244,0.08);
      }

      .leaderboard-detail-content h3 {
        font-size: 15px;
      }

      .leaderboard-detail-kicker {
        color: rgba(202,214,224,0.70);
        font-size: 9px;
      }

      .leaderboard-detail-section {
        display: grid;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(226,237,244,0.08);
        border-radius: 9px;
        background: rgba(2,10,16,0.24);
      }

      .leaderboard-detail-section > span,
      .leaderboard-detail-section-head span {
        color: rgba(202,214,224,0.70);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.72px;
        text-transform: uppercase;
      }

      .leaderboard-detail-firefighter strong {
        color: #f5f8fb;
        font-size: 18px;
        line-height: 1.05;
      }

      .leaderboard-detail-firefighter small {
        color: rgba(202,214,224,0.70);
        font-size: 11px;
        font-weight: 800;
      }

      .leaderboard-detail-metric-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .leaderboard-detail-metric-grid div {
        min-height: 64px;
        padding: 10px;
        border: 1px solid rgba(226,237,244,0.07);
        border-radius: 8px;
        background: rgba(255,255,255,0.026);
      }

      .leaderboard-detail-metric-grid dt,
      .leaderboard-detail-stat-list dt {
        color: rgba(202,214,224,0.56);
        font-size: 8px;
        font-weight: 950;
        letter-spacing: 0.62px;
        text-transform: uppercase;
      }

      .leaderboard-detail-metric-grid dd {
        margin: 8px 0 0;
        color: #f5f8fb;
        font-size: 20px;
        font-weight: 950;
      }

      .leaderboard-detail-metric-grid div:first-child dd {
        color: var(--red);
      }

      .leaderboard-detail-stat-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
      }

      .leaderboard-detail-stat-list div {
        display: grid;
        gap: 5px;
        padding: 8px;
        border-bottom: 0;
        border-radius: 7px;
        background: rgba(255,255,255,0.024);
      }

      .leaderboard-detail-stat-list dd {
        margin: 0;
        color: #f5f8fb;
        font-size: 15px;
        font-weight: 950;
      }

      .leaderboard-detail-actions {
        gap: 9px;
        margin-top: 0;
      }

      .leaderboard-map-btn,
      .leaderboard-followup-btn {
        min-height: 38px;
        border-radius: 8px;
      }

      .leaderboard-detail-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .leaderboard-detail-section-head small {
        color: #57a9ff;
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.65px;
        text-transform: uppercase;
      }

      .leaderboard-detail-recent-list {
        display: grid;
        gap: 6px;
      }

      .leaderboard-detail-recent-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(226,237,244,0.07);
      }

      .leaderboard-detail-recent-row:last-child {
        border-bottom: 0;
      }

      .leaderboard-detail-recent-row span,
      .leaderboard-detail-recent-empty {
        color: rgba(202,214,224,0.62);
        font-size: 11px;
        font-weight: 800;
      }

      .leaderboard-detail-recent-row strong {
        color: var(--red);
        font-size: 13px;
        font-weight: 950;
      }

      .leaderboard-insights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
      }

      .leaderboard-insight-card {
        min-height: 78px;
        padding: 12px 14px;
        border-color: rgba(226,237,244,0.09);
        border-radius: 9px;
        background:
          linear-gradient(180deg, rgba(7,22,34,0.66), rgba(3,13,21,0.84));
      }

      .leaderboard-insight-card span {
        color: rgba(202,214,224,0.62);
        font-size: 8px;
      }

      .leaderboard-insight-card strong {
        font-size: 17px;
      }

      .leaderboard-insight-card small {
        font-size: 10px;
      }

      .leaderboard-footer {
        display: none;
      }

      .leaderboard-analytics-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
      }

      .leaderboard-analytics-card {
        min-height: 128px;
        padding: 13px;
      }

      .leaderboard-analytics-wide {
        grid-column: span 2;
      }
    }

    @media (min-width: 701px) {
      .leaderboard-training-focus {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        align-content: stretch;
        gap: 8px;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
      }

      .leaderboard-training-focus.hidden {
        display: none !important;
      }

      .leaderboard-focus-head {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding-bottom: 7px;
        border-bottom: 1px solid rgba(226,237,244,0.08);
      }

      .leaderboard-focus-icon,
      .leaderboard-focus-row-icon {
        display: grid;
        place-items: center;
        color: var(--red);
      }

      .leaderboard-focus-icon {
        width: 26px;
        height: 26px;
        border: 1px solid rgba(240,36,50,0.22);
        border-radius: 7px;
        background: rgba(240,36,50,0.055);
      }

      .leaderboard-focus-icon svg,
      .leaderboard-focus-row-icon svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .leaderboard-focus-head h3 {
        margin: 0;
        color: #f5f8fb;
        font-size: 13px;
        font-weight: 950;
        letter-spacing: 0.7px;
        line-height: 1;
        text-transform: uppercase;
      }

      .leaderboard-focus-head small {
        display: block;
        margin-top: 3px;
        color: rgba(202,214,224,0.58);
        font-size: 9px;
        font-weight: 800;
      }

      .leaderboard-focus-list {
        display: grid;
        gap: 8px;
        min-height: 0;
        overflow-y: auto;
        padding-right: 2px;
      }

      .leaderboard-focus-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        min-height: 62px;
        padding: 8px 9px;
        border: 1px solid rgba(226,237,244,0.09);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.014));
      }

      .leaderboard-focus-row-icon {
        width: 26px;
        height: 26px;
      }

      .leaderboard-focus-row span:not(.leaderboard-focus-row-icon) {
        display: block;
        color: rgba(202,214,224,0.56);
        font-size: 7.5px;
        font-weight: 950;
        letter-spacing: 0.72px;
        text-transform: uppercase;
      }

      .leaderboard-focus-row strong {
        display: block;
        margin-top: 3px;
        color: #f5f8fb;
        font-size: 13px;
        font-weight: 950;
        line-height: 1.08;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .leaderboard-focus-row small {
        display: block;
        margin-top: 3px;
        color: rgba(202,214,224,0.58);
        font-size: 9.5px;
        font-weight: 800;
        line-height: 1.18;
      }

      .leaderboard-focus-actions {
        display: grid;
        gap: 7px;
        margin-top: 0;
        padding-top: 2px;
      }

      .leaderboard-focus-primary,
      .leaderboard-focus-secondary {
        width: 100%;
        min-height: 34px;
        border-radius: 8px;
        font-size: 9.5px;
        font-weight: 950;
        letter-spacing: 0.35px;
        text-transform: none;
      }

      .leaderboard-focus-primary {
        border: 1px solid rgba(255,78,91,0.72);
        background: linear-gradient(180deg, #ff2636, #c80616);
        color: #fff;
        box-shadow: 0 10px 22px rgba(240,36,50,0.18);
      }

      .leaderboard-focus-secondary {
        border: 1px solid rgba(226,237,244,0.14);
        background: rgba(255,255,255,0.028);
        color: rgba(245,248,251,0.82);
        box-shadow: none;
      }

      .leaderboard-focus-primary:disabled,
      .leaderboard-focus-secondary:disabled {
        opacity: 0.46;
        cursor: default;
        box-shadow: none;
      }

      .leaderboard-stats.is-empty {
        display: none;
      }

      .leaderboard-stats.is-empty .leaderboard-stat {
        display: none;
      }

      .leaderboard-stats-empty {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid rgba(226,237,244,0.10);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014));
        color: rgba(202,214,224,0.68);
        font-size: 11px;
        font-weight: 850;
        letter-spacing: 0.15px;
      }

      .leaderboard-stats-empty.hidden {
        display: none !important;
      }

      .leaderboard-no-data-panel {
        min-height: clamp(180px, 26vh, 300px);
        align-content: center;
        justify-items: center;
        gap: 12px;
        padding: 26px 22px;
        border: 1px solid rgba(226,237,244,0.10);
        border-radius: 10px;
        background:
          radial-gradient(circle at 18% 18%, rgba(240,36,50,0.12), transparent 34%),
          linear-gradient(180deg, rgba(7,22,34,0.80), rgba(3,13,21,0.94));
        color: rgba(202,214,224,0.72);
        text-align: center;
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.045),
          0 18px 36px rgba(0,0,0,0.16);
      }

      .leaderboard-no-data-panel:not(.hidden) {
        display: grid;
      }

      .leaderboard-no-data-panel strong {
        color: #f5f8fb;
        font-size: 20px;
        font-weight: 950;
        line-height: 1.1;
      }

      .leaderboard-no-data-panel p {
        max-width: 560px;
        margin: 0;
        color: rgba(202,214,224,0.70);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.42;
      }

      .leaderboard-empty-steps {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 2px;
      }

      .leaderboard-empty-steps span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        padding: 0 10px;
        border: 1px solid rgba(87,169,255,0.22);
        border-radius: 999px;
        background: rgba(22,136,255,0.08);
        color: rgba(220,238,255,0.82);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .leaderboard-stats.has-data .leaderboard-stat {
        min-height: 52px;
        padding: 7px 10px;
      }

      .leaderboard-workspace {
        grid-template-columns: minmax(760px, 72fr) minmax(280px, 28fr);
        gap: 0;
        min-height: 0;
        overflow: hidden;
        border: 1px solid rgba(226,237,244,0.10);
        border-radius: 11px;
        background:
          radial-gradient(circle at 0 0, rgba(87,169,255,0.05), transparent 34%),
          linear-gradient(180deg, rgba(7,22,34,0.74), rgba(3,13,21,0.92));
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.04),
          0 18px 40px rgba(0,0,0,0.18);
      }

      .leaderboard-workspace.is-empty {
        grid-template-columns: minmax(0, 1fr);
      }

      .leaderboard-workspace.is-empty .leaderboard-detail-panel {
        display: none;
      }

      .leaderboard-main-panel,
      .leaderboard-detail-panel {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
      }

      .leaderboard-main-panel {
        grid-template-rows: minmax(0, 1fr);
        padding: 12px 14px;
      }

      .leaderboard-detail-panel {
        border-left: 1px solid rgba(226,237,244,0.09);
        padding: 14px;
      }

      .leaderboard-table-wrap {
        height: 100%;
      }

      .leaderboard-table-wrap.has-data .leaderboard-table {
        display: table;
      }

      .leaderboard-table-wrap.is-empty .leaderboard-table {
        display: none;
      }

      .leaderboard-empty {
        min-height: clamp(260px, 42vh, 520px);
        display: grid;
        place-content: center;
        gap: 8px;
        padding: 24px;
        color: rgba(202,214,224,0.64);
        text-align: center;
      }

      .leaderboard-empty.hidden {
        display: none !important;
      }

      .leaderboard-empty strong {
        color: #f5f8fb;
        font-size: 16px;
        font-weight: 950;
        line-height: 1.1;
      }

      .leaderboard-empty span {
        max-width: 360px;
        color: rgba(202,214,224,0.62);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.35;
      }

      .leaderboard-table tbody td {
        height: 58px;
      }

      .leaderboard-detail-empty {
        align-self: start;
        min-height: 0;
        display: grid;
        place-items: start;
        gap: 8px;
        padding: 16px;
        border: 1px solid rgba(226,237,244,0.08);
        border-radius: 9px;
        background:
          linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.014));
        color: rgba(202,214,224,0.64);
        text-align: left;
      }

      .leaderboard-detail-empty::before {
        display: none;
      }

      .leaderboard-detail-empty > span {
        width: 28px;
        height: 28px;
        border: 1px solid rgba(87,169,255,0.25);
        border-radius: 8px;
        background:
          linear-gradient(180deg, rgba(22,136,255,0.14), rgba(22,136,255,0.04));
      }

      .leaderboard-detail-empty strong {
        color: #f5f8fb;
        font-size: 15px;
        font-weight: 950;
        line-height: 1;
      }

      .leaderboard-detail-empty small {
        color: rgba(202,214,224,0.62);
        font-size: 12px;
        font-weight: 750;
        line-height: 1.35;
      }

      .leaderboard-insights {
        margin-top: 0;
      }

      .leaderboard-insight-card {
        min-height: 62px;
        padding: 10px 12px;
        border-color: rgba(226,237,244,0.07);
        background:
          linear-gradient(180deg, rgba(7,22,34,0.50), rgba(3,13,21,0.68));
        box-shadow: none;
      }

      .leaderboard-insight-card strong {
        font-size: 15px;
      }

      .leaderboard-insight-card small {
        color: rgba(202,214,224,0.52);
      }
    }

    .live-results-rank-plain {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      color: rgba(202, 214, 224, 0.76);
      font-weight: 900;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* Leaderboard drawer layout: keep the score table as the primary scanning surface. */
    @media (min-width: 701px) {
      .leaderboard-workspace {
        position: relative;
        grid-template-columns: minmax(0, 1fr) !important;
      }

      .leaderboard-main-panel {
        padding: 8px;
      }

      .leaderboard-stats.has-data .leaderboard-stat {
        min-height: 50px;
      }

      .leaderboard-table-wrap {
        overflow-x: hidden;
      }

      .leaderboard-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
      }

      .leaderboard-table th:nth-child(1),
      .leaderboard-table td:nth-child(1) {
        width: 7%;
      }

      .leaderboard-table th:nth-child(2),
      .leaderboard-table td:nth-child(2) {
        width: 31%;
      }

      .leaderboard-table th:nth-child(3),
      .leaderboard-table td:nth-child(3) {
        width: 21%;
      }

      .leaderboard-table th:nth-child(4),
      .leaderboard-table td:nth-child(4) {
        width: 8%;
      }

      .leaderboard-table th:nth-child(5),
      .leaderboard-table td:nth-child(5) {
        width: 10%;
      }

      .leaderboard-table th:nth-child(6),
      .leaderboard-table td:nth-child(6) {
        width: 9%;
      }

      .leaderboard-table th:nth-child(7),
      .leaderboard-table td:nth-child(7) {
        width: 9%;
      }

      .leaderboard-table th:nth-child(8),
      .leaderboard-table td:nth-child(8) {
        width: 5%;
        min-width: 48px;
        text-align: center;
      }

      .leaderboard-table th:nth-child(4),
      .leaderboard-table th:nth-child(5),
      .leaderboard-table th:nth-child(6),
      .leaderboard-table th:nth-child(7),
      .leaderboard-table td:nth-child(4),
      .leaderboard-table td:nth-child(5),
      .leaderboard-table td:nth-child(6),
      .leaderboard-table td:nth-child(7) {
        text-align: right;
      }

      .leaderboard-table td:nth-child(2) small {
        display: grid;
        gap: 3px;
        min-width: 0;
      }

      .leaderboard-table td:nth-child(2) small span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .leaderboard-table td:nth-child(2) small em {
        display: block;
        color: rgba(155,208,255,0.68);
        font-style: normal;
      }

      .leaderboard-table td:nth-child(3) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .leaderboard-run-btn {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        border-color: rgba(87,169,255,0.24);
        border-radius: 8px;
        color: rgba(155,208,255,0.78);
        background: rgba(22,136,255,0.055);
      }

      .leaderboard-run-btn svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.3;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .leaderboard-row:hover .leaderboard-run-btn,
      .leaderboard-row.is-selected .leaderboard-run-btn,
      .leaderboard-run-btn:focus-visible {
        border-color: rgba(87,169,255,0.62);
        color: #fff;
        background: rgba(22,136,255,0.16);
      }

      .leaderboard-detail-panel {
        position: fixed;
        top: max(128px, env(safe-area-inset-top));
        right: 24px;
        bottom: 24px;
        z-index: 70;
        width: min(390px, calc(100vw - 48px));
        min-height: 0;
        padding: 16px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(calc(100% + 28px));
        transition: opacity 180ms ease, transform 220ms ease;
        box-shadow:
          0 28px 70px rgba(0,0,0,0.46),
          0 0 0 1px rgba(240,36,50,0.18),
          inset 0 1px 0 rgba(255,255,255,0.05);
      }

      .leaderboard-detail-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
      }

      .leaderboard-detail-content {
        max-height: 100%;
        overflow-y: auto;
        padding-right: 2px;
      }

      .leaderboard-detail-head {
        align-items: center;
      }

      .leaderboard-detail-close {
        width: 34px;
        min-width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(226,237,244,0.14);
        border-radius: 8px;
        background: rgba(255,255,255,0.035);
        color: rgba(245,248,251,0.78);
        box-shadow: none;
      }

      .leaderboard-detail-close:hover,
      .leaderboard-detail-close:focus-visible {
        border-color: rgba(240,36,50,0.55);
        color: #fff;
        background: rgba(240,36,50,0.16);
      }

      .leaderboard-detail-close svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
      }

      .leaderboard-workspace.is-detail-open .leaderboard-main-panel {
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.04),
          inset 0 0 28px rgba(22,136,255,0.022),
          0 0 0 1px rgba(240,36,50,0.10);
      }
    }

    @media (max-width: 700px) {
      .mobile-leaderboard-card {
        width: 100%;
        border: 1px solid rgba(226,237,244,0.10);
        text-align: left;
        text-transform: none;
      }

      .mobile-leaderboard-card.is-selected {
        border-color: rgba(240,36,50,0.58);
        box-shadow: 0 0 0 1px rgba(240,36,50,0.24);
      }

      .leaderboard-detail-panel {
        position: fixed !important;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 80;
        max-height: min(78vh, 620px);
        padding: 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 18px));
        transition: opacity 180ms ease, transform 220ms ease;
      }

      .leaderboard-detail-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
      }

      .leaderboard-detail-content {
        max-height: calc(min(78vh, 620px) - 28px);
        overflow-y: auto;
      }

      .leaderboard-detail-head {
        align-items: center;
      }

      .leaderboard-detail-close {
        width: 34px;
        min-width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(226,237,244,0.14);
        border-radius: 8px;
        background: rgba(255,255,255,0.04);
        color: rgba(245,248,251,0.82);
        box-shadow: none;
      }

      .leaderboard-detail-close svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
      }
    }

    #changelogModal,
    #profileDetailsModal,
    #trainingGuideModal,
    #aboutStreetModal,
    #aboutAppModal,
    #privacyPolicyModal,
    #termsOfUseModal,
    #competitiveSetupModal,
    #competitiveBlockedModal,
    #liveSetupModal,
    #activeDrillConfirmModal,
    #liveRemovedModal {
      position: fixed;
      z-index: 240;
    }

    @media (max-width: 700px) {
      #mobileProfileSheet .profile-benefits-section,
      #mobileProfileSheet .mobile-guest-mode-panel,
      #mobileProfileSheet .profile-trust-section,
      #desktopProfileModal .profile-trust-section {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
      }
    }
