/* Exact Quick Play + mode select from quick-play.html */
    .play-cluster {
      width: min(340px, calc(100vw - 24px));
      min-height: 154px;
    }

    .quick-play-frame {
      position: relative;
      width: 100%;
      min-height: 75px;
    }

    .quick-play-frame::before {
      position: absolute;
      inset: 3px -3px -3px 3px;
      background: #a34d00;
      clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
      content: "";
      pointer-events: none;
    }

    .quick-play-frame[data-state="searching"]::before {
      background: #713100;
    }

    .quick-play-frame[data-state="found"]::before,
    .quick-play-frame[data-state="joining"]::before {
      background: #057041;
    }

    .quick-play {
      position: relative;
      isolation: isolate;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      width: 100%;
      min-height: 75px;
      height: 100%;
      padding: clamp(12px, 1.4vh, 18px) 20px;
      overflow: hidden;
      border: 0;
      outline: 0;
      background:
        linear-gradient(90deg, transparent 70%, rgba(104, 39, 0, 0.14) 100%),
        linear-gradient(180deg, #ffb53f 0%, #ff9910 52%, #ef7900 100%);
      clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
      color: #fff;
      cursor: pointer;
      text-align: left;
      filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.26));
      transition: filter 150ms ease, transform 140ms var(--ease-out);
    }

    .quick-play::before {
      position: absolute;
      z-index: 0;
      inset: 0;
      background: linear-gradient(90deg, rgba(255, 248, 225, 0.58), rgba(255, 235, 194, 0.22) 52%, transparent 88%) top / 100% 1px no-repeat;
      content: "";
      pointer-events: none;
    }

    .quick-play::after {
      position: absolute;
      z-index: 0;
      top: -45%;
      bottom: -45%;
      left: -34%;
      width: 12%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
      content: "";
      opacity: 0;
      pointer-events: none;
      transform: skewX(-18deg);
    }

    .quick-play:hover {
      filter:
        brightness(1.035)
        drop-shadow(0 9px 13px rgba(0, 0, 0, 0.28));
      transform: translateY(-1px);
    }

    .quick-play:hover::after {
      animation: quick-play-sheen 520ms var(--ease-out) both;
    }

    .quick-play:active {
      filter:
        brightness(0.97)
        drop-shadow(0 5px 9px rgba(0, 0, 0, 0.24));
      transform: translateY(1px);
    }

    .quick-play:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 3px;
    }

    .quick-play__copy,
    .quick-play__arrow {
      position: relative;
      z-index: 1;
    }

    .quick-play__copy {
      min-width: 0;
    }

    .quick-play__title {
      display: block;
      font-family: Rajdhani, "Arial Narrow", sans-serif;
      font-size: 34px;
      font-weight: 700;
      letter-spacing: 0.075em;
      line-height: 0.9;
      text-transform: uppercase;
      text-shadow: 0 1px 3px rgba(83, 34, 0, 0.24);
    }

    .quick-play__subtitle {
      display: block;
      margin-top: 6px;
      overflow: hidden;
      color: rgba(255, 255, 255, 0.94);
      font-family: Rajdhani, sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.09em;
      line-height: 1;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .quick-play__arrow {
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      width: 36px;
      height: 28px;
      transition: transform 180ms var(--ease-out);
    }

    .quick-play:hover .quick-play__arrow {
      transform: translateX(2px);
    }

    .quick-play__arrow svg {
      display: block;
      width: 32px;
      height: 28px;
      overflow: visible;
      fill: currentColor;
      stroke: none;
      shape-rendering: geometricPrecision;
    }

    .quick-play.is-searching .quick-play__title,
    .quick-play.is-found .quick-play__title,
    .quick-play.is-joining .quick-play__title {
      font-size: 30px;
      letter-spacing: 0.065em;
    }

    .quick-play__progress {
      position: absolute;
      z-index: 1;
      right: 10px;
      bottom: 0;
      left: 0;
      height: 2px;
      background: rgba(255, 255, 255, 0.92);
      opacity: 0;
      pointer-events: none;
      transform: scaleX(0);
      transform-origin: left;
    }

    .quick-play.is-searching {
      background:
        linear-gradient(90deg, transparent 70%, rgba(35, 13, 0, 0.18) 100%),
        linear-gradient(180deg, #d87808, #934400);
      cursor: progress;
    }

    .quick-play.is-searching .quick-play__progress {
      opacity: 1;
      animation: queue-progress 4s linear both;
    }

    .quick-play.is-found,
    .quick-play.is-joining {
      background:
        linear-gradient(90deg, transparent 70%, rgba(0, 51, 28, 0.18) 100%),
        linear-gradient(180deg, #19c878, #087f49);
    }

    .mode-select {
      margin-top: 12px;
    }

    .mode-select__label {
      display: block;
      height: 9px;
      margin: 0 0 6px;
      color: #8b949e;
      font-family: Inter, system-ui, sans-serif;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.14em;
      line-height: 1;
      text-transform: uppercase;
    }

    .mode-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      height: 52px;
      gap: 6px;
    }

    .mode-card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 0;
      height: 52px;
      padding: 4px 3px 5px;
      border: 0;
      outline: 0;
      background: transparent;
      color: #69737e;
      cursor: pointer;
      transition: color 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out);
    }

    .mode-card::after {
      position: absolute;
      right: 34%;
      bottom: 0;
      left: 34%;
      height: 2px;
      background: var(--amber);
      content: "";
      opacity: 0;
      transform: scaleX(0.45);
      transition: opacity 150ms ease, transform 180ms var(--ease-out);
    }

    .mode-card:hover {
      background: rgba(255, 255, 255, 0.025);
      color: #cbd1d6;
    }

    .mode-card:active {
      transform: translateY(1px);
    }

    .mode-card:focus-visible {
      outline: 2px solid rgba(var(--amber-rgb), 0.75);
      outline-offset: -2px;
    }

    .mode-card[aria-checked="true"] {
      color: #fff;
    }

    .mode-card[aria-checked="true"]::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .mode-card[aria-checked="true"] .mode-card__icon {
      color: var(--amber-hot);
    }

    .mode-card:disabled {
      cursor: not-allowed;
      opacity: 0.46;
    }

    .mode-card__icon {
      display: grid;
      place-items: center;
      width: 17px;
      height: 17px;
      color: currentColor;
    }

    .mode-card__icon svg {
      display: block;
      width: 17px;
      height: 17px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: square;
      stroke-linejoin: miter;
      stroke-width: 1.8;
    }

    .mode-card__name {
      display: block;
      max-width: 100%;
      overflow: hidden;
      font-family: Rajdhani, sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.025em;
      line-height: 1;
      text-align: center;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @keyframes quick-play-sheen {
      0% {
        opacity: 0;
        transform: translateX(0) skewX(-18deg);
      }
      24% {
        opacity: 0.28;
      }
      100% {
        opacity: 0;
        transform: translateX(1250%) skewX(-18deg);
      }
    }

    @keyframes queue-progress {
      0% { transform: scaleX(0); }
      28% { transform: scaleX(0.38); }
      72% { transform: scaleX(0.76); }
      100% { transform: scaleX(0.94); }
    }

    @media (max-width: 350px) {
      .quick-play__subtitle {
        font-size: 10px;
        letter-spacing: 0.06em;
      }

      .mode-card__name {
        font-size: 8px;
      }
    }

