    :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(255,255,255,0.14);
      --green: #2fd16c;
    }

    * { 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: 13px;
      font-weight: 900;
      letter-spacing: 3px;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .brand-lockup {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 10px;
      align-items: center;
      margin-bottom: 10px;
      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 img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
    }

    .brand-lockup .kicker {
      margin-bottom: 4px;
      font-size: 10px;
      line-height: 1.05;
      letter-spacing: 2px;
    }

    h1 {
      margin: 0;
      font-size: 25px;
      line-height: 0.95;
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .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;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px;
      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: '-';
    }

    label {
      display: block;
      margin-bottom: 7px;
      color: #dbe4ea;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 1px;
      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,
    .round-results-panel::-webkit-scrollbar,
    .street-list::-webkit-scrollbar {
      width: 10px;
    }

    select::-webkit-scrollbar-track,
    aside::-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,
    .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,
    .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);
    }

    .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-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;
    }

    .drill-settings-group .zoom-assist-option + .zoom-assist-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;
    }

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

    .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;
    }

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

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

    .desktop-live-panel {
      display: grid;
      gap: 8px;
      border: 1px solid rgba(87, 169, 255, 0.22);
      border-radius: 8px;
      background: rgba(3, 37, 67, 0.22);
      padding: 10px;
    }

    #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: visible;
    }

    #drillPanel.is-live-results .live-results-trophy-panel {
      display: grid;
      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 .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 .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 {
      min-height: 58px;
      padding: 7px 10px;
    }

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

    .desktop-live-panel.is-host-setup .desktop-live-host-panel {
      gap: 4px;
    }

    .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: 28px;
      padding: 6px 0;
      margin: 0;
      color: rgba(245, 248, 251, 0.86);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.35px;
      text-transform: uppercase;
    }

    .live-tournament-option input {
      width: 14px;
      height: 14px;
      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;
      padding: 0;
    }

    .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 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;
    }

    .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: 58px minmax(0, 1fr);
      gap: 14px;
    }

    .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-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: 12px;
      padding: 14px;
    }

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

    .summary-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      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: 42px;
      line-height: 1;
    }

    .summary-progress {
      width: 100%;
      height: 7px;
      margin-top: 9px;
      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: 5px;
      margin: 2px 0 2px;
      padding: 10px 12px;
      border: 1px solid rgba(132, 162, 183, 0.18);
      border-left: 3px solid var(--summary-accent, var(--blue));
      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: 13px;
      font-weight: 900;
      line-height: 1.25;
    }

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

    .summary-feedback-score {
      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: 9px 13px;
      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: 13px;
      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: 74px minmax(0, 1fr);
      align-items: center;
      gap: 11px;
      padding: 9px 11px;
      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)) 13%, 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: 74px;
      height: 74px;
      object-fit: contain;
      filter: drop-shadow(0 8px 16px rgba(0,0,0,0.36));
    }

    .summary-trophy-card span {
      display: block;
      color: 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: 18px;
      font-weight: 1000;
      line-height: 1.05;
      overflow-wrap: anywhere;
    }

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

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

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

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

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

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

      .tier-grid {
        grid-template-columns: repeat(6, 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;
      height: 100%;
      overflow: hidden;
      grid-template-rows: minmax(0, 1fr);
    }

    .round-summary.street-summary-open .summary-bar,
    .round-summary.street-summary-open .summary-hero,
    .round-summary.street-summary-open .summary-trophy-card,
    .round-summary.street-summary-open .summary-subtitle,
    .round-summary.street-summary-open .summary-metrics,
    .round-summary.street-summary-open .tier-grid {
      display: none;
    }

    .round-summary.street-summary-open .summary-body {
      grid-template-rows: auto minmax(0, 1fr) auto auto;
      min-height: 0;
      height: 100%;
    }

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

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

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

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

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

    .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(4, minmax(0, 1fr));
      gap: 6px;
      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));
    }

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

    .street-summary-strip span {
      display: grid;
      gap: 2px;
      min-width: 0;
      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: 20;
      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;
    }

    .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));
    }

    .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;
    }

    .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-color: rgba(240,36,50,0.34);
      border-radius: 0;
      background:
        radial-gradient(circle at 88% 0%, rgba(240,36,50,0.12), transparent 38%),
        radial-gradient(circle at 8% 18%, rgba(22,136,255,0.08), transparent 34%),
        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(240,36,50,0.045);
      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-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;
    }

    .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,
    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%),
          radial-gradient(circle at 0% 74%, rgba(240, 36, 50, 0.12), transparent 34%),
          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.22);
        box-shadow: 18px 0 44px rgba(0, 0, 0, 0.46);
      }

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

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

      .brand-lockup img {
        width: 36px;
        height: 36px;
      }

      .brand-lockup .kicker {
        color: #ff2b38;
        font-size: 9px;
        letter-spacing: 1.8px;
      }

      h1 {
        font-size: 21px;
        line-height: 0.94;
        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: minmax(0, 0.94fr) minmax(0, 1.06fr);
        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,
      #drillPanel > label {
        margin: 0 0 2px;
        color: #f2f7fb;
        font-size: 12px;
        letter-spacing: 1.2px;
      }

      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: 33px;
        padding: 6px 9px 6px 38px;
        font-size: 12px;
      }

      .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: auto;
        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: 34px;
        padding-right: 7px;
      }

      .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,
      #homeLeaderboardBtn,
      #startDrillBtn,
      #liveCreateRoomBtn,
      #liveStartRoomBtn,
      #liveLeaveRoomBtn,
      #resetDrillBtn {
        min-height: 28px;
        height: 28px;
        padding: 0 9px;
        border-radius: 7px;
        font-size: 10px;
        letter-spacing: 0.8px;
        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: linear-gradient(180deg, #ff2636, #d50818);
        box-shadow: 0 0 24px rgba(240, 36, 50, 0.26);
      }

      #loadDrillBtn:disabled,
      #loadDrillBtn[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;
      }

      #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;
      }

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

      #loadDrillBtn .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 {
        min-height: 32px;
        padding: 7px 9px;
        border-radius: 6px;
        font-size: 10px;
        letter-spacing: 0.7px;
        text-transform: uppercase;
      }

      .zoom-assist-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,
      #liveLeaveRoomBtn,
      #nextStreetBtn,
      #resetDrillBtn {
        margin-top: 0;
        min-height: 28px;
        height: 28px;
        border-radius: 7px;
        font-size: 10px;
        letter-spacing: 0.8px;
      }

      .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);
      }

      .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);
        border-left: 3px solid var(--summary-accent, var(--red));
        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: 3px;
      }

      #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: auto minmax(0, 1fr) auto auto;
        gap: 7px;
        padding-top: 8px;
        min-height: 0;
        height: 100%;
      }

      .round-summary.street-summary-open .round-results-panel.visible {
        max-height: none;
        height: 100%;
        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: 7px;
      }

      .street-summary-strip span {
        font-size: 8px;
      }

      .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') 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,
      .mobile-box-results::-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(--mobile-red-action-bg);
        color: #fff;
        border-color: rgba(240,36,50,0.72);
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
      }

      #liveSetupModal #liveJoinRoomBtn {
        min-height: 38px;
        border-color: rgba(240,36,50,0.72);
        border-radius: 8px;
        background: var(--mobile-red-action-bg);
        color: #fff;
        box-shadow: 0 0 24px rgba(240,36,50,0.26);
        font-size: 14px;
        letter-spacing: 1.1px;
      }

      #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-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 {
        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;
        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;
        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 #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 {
        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 {
        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 {
          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;
      }

      .mobile-shell .drill-settings-group .zoom-assist-option {
        margin: 0;
        height: 32px;
        min-height: 32px;
        padding: 6px 9px;
      }

      .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-target-card {
        margin: 6px 0;
        min-height: 58px;
        border-radius: 10px;
        border: 1px solid rgba(0, 132, 255, 0.54);
        background: var(--mobile-blue-action-bg);
        padding: 9px 12px;
      }

      .mobile-target-card span,
      .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-target-card strong {
        display: block;
        margin-top: 3px;
        color: #f5f8fb;
        font-size: 21px;
        line-height: 1.1;
      }

      .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-ready #mobileResetBtn {
        width: 100%;
        min-height: 38px;
        margin-top: 6px;
        margin-bottom: 0;
        border-radius: 9px;
        color: #f5f8fb;
        border-color: var(--mobile-action-border);
        background: var(--mobile-action-bg);
      }

      .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;
        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-left: 3px solid var(--summary-accent, var(--blue));
        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: grid;
        gap: 5px;
      }

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

      .mobile-result-tiers {
        grid-template-columns: repeat(6, 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-top: 3px;
        font-size: 8px;
        letter-spacing: 0.45px;
        white-space: nowrap;
      }

      #mobileToggleRoundResultsBtn {
        width: 100%;
        min-height: 38px;
        margin-top: 4px;
        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-result-metrics,
      .mobile-result-summary.street-summary-open .mobile-result-tiers,
      .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 .mobile-result-metrics,
      .mobile-result-summary.mobile-live-result-summary .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: auto;
        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 #mobileResetBtn,
      .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 .mobile-target-card {
        min-height: 50px;
        margin: 5px 0;
        padding: 7px 10px;
      }

      .mobile-shell.mobile-state-ready .mobile-target-card strong {
        font-size: 20px;
      }

      .mobile-shell.mobile-state-ready #mobileReadySheet p {
        display: none;
      }

      .mobile-shell.mobile-state-ready #mobileResetBtn,
      .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: 36px;
      }
    }

    @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 {
        width: 100%;
        max-height: min(88vh, 760px);
        border-radius: 18px 18px 0 0;
        padding: 16px;
      }

      .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;
      }

      .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;
        inset: 0;
        z-index: 30;
        overflow: hidden;
      }

      .leaderboard-card {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 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 #mobileJoinStationBtn {
        order: 2;
        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: 3;
        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 #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,
      #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 #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,
      #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 #mobileResetBtn,
      .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-ready .mobile-target-card {
        min-height: 46px;
        margin: 4px 0;
        padding: 7px 9px;
      }

      .mobile-shell.mobile-state-ready .mobile-target-card strong {
        font-size: 19px;
      }

      .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: 2px;
      }

      .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 #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 #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 #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: 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 #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .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: 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 (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 #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .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(148px + 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(146px + 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: 14px !important;
        right: 14px !important;
        top: calc(var(--mobile-vv-height, 100dvh) - 148px - env(safe-area-inset-bottom)) !important;
        bottom: auto !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: 8px !important;
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !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 #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home #mobileHomeLoadDrillBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileHomeClearBtn,
      .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: 92px !important;
      }

      .mobile-shell.mobile-state-home #mobileJoinStationBtn,
      .mobile-shell.mobile-state-home.mobile-filters-open #mobileJoinStationBtn {
        bottom: 46px !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;
      }
    }
