@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-700-latin.woff2) format(woff2); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600-latin.woff2) format(woff2); }
/* Shared FreeCell-model join queue shell. Loaded by all join pages.
   Page canvas blue only while a join/lobby shell is visible — never during play/matching. */
html.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
html.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
body.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
body.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
#join-queue-screen.jq-shell:not(.hidden),
#waiting-section.jq-shell:not(.hidden),
#waiting-section.minimal-lobby.jq-shell:not(.hidden) {
  background: #070E1A !important;
  background-color: #070E1A !important;
  color: #F4F7FB;
}
/* Baseball / older lobby: kill legacy .minimal-lobby padding so banner matches FreeCell */
#waiting-section.jq-shell,
#waiting-section.minimal-lobby.jq-shell,
body.jq-shell-page #waiting-section.minimal-lobby.jq-shell {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
}
body.jq-shell-page #waiting-section.minimal-lobby.jq-shell > .site-banner {
  margin-top: 0 !important;
}
.jq-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  text-align: center;
  overflow-x: clip;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.jq-shell > .site-banner {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}
.jq-shell > .site-banner.banner-plain {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}
.jq-shell > .site-banner.banner-plain::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.jq-shell > .join-queue-title-banner { display: none; }
.jq-shell .banner-auth-slot .hidden { display: none !important; }

    a.banner-home-btn {
      appearance: none;
      -webkit-appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      height: auto;
      padding: 6px 12px 6px 10px;
      border-radius: 16px;
      background: #1C9BB8;
      border: none;
      box-shadow:
        0 0 16px 4px rgba(28, 155, 184, 0.7),
        0 0 32px 10px rgba(28, 155, 184, 0.4);
      color: #F4FBFD;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      box-sizing: border-box;
      cursor: pointer;
    }
    a.banner-home-btn:hover,
    a.banner-home-btn:focus-visible {
      background: #1C9BB8;
      border-color: transparent;
      box-shadow:
        0 0 20px 6px rgba(28, 155, 184, 0.85),
        0 0 40px 12px rgba(28, 155, 184, 0.45);
      color: #F4FBFD;
      text-decoration: none;
      outline: none;
    }
    .banner-home-icon {
      width: 36px;
      height: 36px;
      flex: 0 0 auto;
      color: #FFFFFF;
    }
    @media (max-width: 767px) {
      a.banner-home-btn .banner-home-label {
        display: none;
      }
      a.banner-home-btn {
        gap: 0;
        padding: 6px;
      }
    }
    .banner-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      max-width: 100%;
    }
    .banner-corner-left {
      justify-self: start;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 14px;
    }
    .banner-center {
      text-align: center;
      min-width: 0;
    }
    .banner-corner-right {
      justify-self: end;
    }
    .jq-shell .jq-all-games {
      display: flex;
      align-items: center;
      justify-content: center;
      justify-self: center;
      color: #1A8CFF;
      text-decoration: none;
    }
    .jq-shell .jq-all-games:focus-visible {
      outline: 2px solid #1A8CFF;
      outline-offset: 3px;
      border-radius: 4px;
    }
    .jq-shell .jq-all-games .home-dock-grid {
      width: 36px;
      height: 36px;
      flex: 0 0 auto;
      color: #1A8CFF;
      display: block;
    }
    a.banner-home-btn {
      appearance: none;
      -webkit-appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      height: auto;
      padding: 6px 12px 6px 10px;
      border-radius: 16px;
      background: #1C9BB8;
      border: none;
      box-shadow:
        0 0 16px 4px rgba(28, 155, 184, 0.7),
        0 0 32px 10px rgba(28, 155, 184, 0.4);
      color: #F4FBFD;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      box-sizing: border-box;
      cursor: pointer;
    }
    a.banner-home-btn:hover,
    a.banner-home-btn:focus-visible {
      background: #1C9BB8;
      border-color: transparent;
      box-shadow:
        0 0 20px 6px rgba(28, 155, 184, 0.85),
        0 0 40px 12px rgba(28, 155, 184, 0.45);
      color: #F4FBFD;
      text-decoration: none;
      outline: none;
    }
    .banner-home-icon {
      width: 36px;
      height: 36px;
      flex: 0 0 auto;
      color: #FFFFFF;
    }
    @media (max-width: 767px) {
      a.banner-home-btn .banner-home-label {
        display: none;
      }
      a.banner-home-btn {
        gap: 0;
        padding: 6px;
      }
    }
    a.banner-game-id {
      color: #FFFFFF;
      font-size: clamp(0.75rem, 2.5vw, 0.95rem);
      font-weight: 600;
      padding: 8px 10px;
      border-radius: 8px;
      white-space: nowrap;
      max-width: min(65vw, 20rem);
      overflow: hidden;
      text-overflow: ellipsis;
      display: none !important;
      vertical-align: middle;
      text-align: left;
      text-decoration: none;
      cursor: pointer;
    }
    a.banner-game-id:hover,
    a.banner-game-id:focus,
    a.banner-game-id:focus-visible,
    a.banner-game-id:active {
      text-decoration: none;
      outline: none;
    }
    .banner-auth-slot .hidden {
      display: none !important;
    }
    .jq-shell > .site-banner {
      align-self: stretch;
      width: 100%;
      max-width: none;
      margin-left: 0;
      margin-right: 0;
      padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
      padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
      padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
      box-sizing: border-box;
    }
    .jq-shell > .site-banner.banner-plain {
      background: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      border: none !important;
    }
    .jq-shell > .site-banner.banner-plain::before {
      content: none !important;
      display: none !important;
      background: none !important;
    }
    .jq-shell > .join-queue-title-banner {
      display: none;
    }
    .jq-scene {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
      background: url("images/join-queue-page-background-16x9_3840x2160-jpg.jpg") center center / cover no-repeat;
    }
    .jq-scene::after {
      content: "";
      position: absolute;
      inset: 0;
      background: #0A1630;
      opacity: 0.54;
      pointer-events: none;
    }
    .jq-bokeh {
      position: absolute;
      inset: -8%;
      background:
        radial-gradient(ellipse 520px 280px at 50% 8%, rgba(90, 170, 255, 0.28), transparent 68%),
        radial-gradient(ellipse 34% 58% at 0% 20%, rgba(46, 120, 210, 0.4), transparent 72%),
        radial-gradient(ellipse 34% 58% at 100% 18%, rgba(28, 96, 196, 0.38), transparent 72%),
        radial-gradient(ellipse 320px 240px at 16% 18%, rgba(46, 120, 210, 0.38), transparent 70%),
        radial-gradient(ellipse 380px 280px at 82% 14%, rgba(28, 96, 196, 0.32), transparent 72%),
        radial-gradient(ellipse 260px 200px at 74% 68%, rgba(70, 150, 230, 0.22), transparent 70%),
        radial-gradient(ellipse 300px 220px at 20% 74%, rgba(18, 72, 168, 0.24), transparent 72%),
        radial-gradient(ellipse 180px 120px at 50% 34%, rgba(160, 210, 255, 0.16), transparent 70%);
      filter: blur(10px);
    }
    .jq-stars {
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.6px 1.6px at 8% 12%, rgba(230, 244, 255, 0.95) 40%, transparent 70%),
        radial-gradient(1.2px 1.2px at 14% 28%, rgba(170, 210, 255, 0.9) 40%, transparent 70%),
        radial-gradient(2px 2px at 22% 16%, rgba(255, 255, 255, 0.85) 35%, transparent 72%),
        radial-gradient(1px 1px at 28% 38%, rgba(190, 220, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 36% 10%, rgba(210, 235, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1px 1px at 44% 24%, rgba(255, 255, 255, 0.75) 40%, transparent 70%),
        radial-gradient(2.2px 2.2px at 52% 14%, rgba(180, 215, 255, 0.95) 35%, transparent 72%),
        radial-gradient(1.1px 1.1px at 61% 32%, rgba(230, 244, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 70% 11%, rgba(255, 255, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1px 1px at 78% 26%, rgba(160, 205, 255, 0.85) 40%, transparent 70%),
        radial-gradient(1.8px 1.8px at 86% 15%, rgba(220, 240, 255, 0.95) 35%, transparent 72%),
        radial-gradient(1.2px 1.2px at 93% 34%, rgba(190, 220, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1px 1px at 18% 52%, rgba(200, 225, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 33% 62%, rgba(255, 255, 255, 0.65) 40%, transparent 70%),
        radial-gradient(1px 1px at 57% 58%, rgba(170, 210, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1.6px 1.6px at 74% 48%, rgba(230, 244, 255, 0.75) 40%, transparent 70%),
        radial-gradient(1px 1px at 88% 60%, rgba(190, 220, 255, 0.65) 40%, transparent 70%),
        radial-gradient(1.2px 1.2px at 11% 74%, rgba(210, 235, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1px 1px at 42% 78%, rgba(255, 255, 255, 0.55) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 66% 82%, rgba(170, 210, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1px 1px at 91% 76%, rgba(220, 240, 255, 0.55) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 6% 20%, rgba(230, 244, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1.1px 1.1px at 19% 8%, rgba(255, 255, 255, 0.8) 40%, transparent 70%),
        radial-gradient(2px 2px at 31% 22%, rgba(180, 215, 255, 0.9) 35%, transparent 72%),
        radial-gradient(1px 1px at 47% 6%, rgba(210, 235, 255, 0.75) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 58% 18%, rgba(255, 255, 255, 0.85) 40%, transparent 70%),
        radial-gradient(1px 1px at 67% 40%, rgba(170, 210, 255, 0.75) 40%, transparent 70%),
        radial-gradient(1.8px 1.8px at 81% 8%, rgba(230, 244, 255, 0.9) 35%, transparent 72%),
        radial-gradient(1.2px 1.2px at 96% 22%, rgba(200, 225, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1px 1px at 25% 46%, rgba(255, 255, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1.6px 1.6px at 49% 44%, rgba(190, 220, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1px 1px at 83% 36%, rgba(220, 240, 255, 0.65) 40%, transparent 70%),
        radial-gradient(1.3px 1.3px at 15% 66%, rgba(180, 215, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1px 1px at 72% 70%, rgba(255, 255, 255, 0.55) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 39% 88%, rgba(170, 210, 255, 0.55) 40%, transparent 70%);
      pointer-events: none;
    }
    .jq-stars::before,
    .jq-stars::after,
    .jq-stars-more::before,
    .jq-stars-more::after,
    .jq-stars-extra::before,
    .jq-stars-extra::after {
      content: "";
      position: absolute;
      width: 7px;
      height: 7px;
      background: rgba(214, 236, 255, 0.95);
      clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
      filter: drop-shadow(0 0 4px rgba(140, 190, 255, 0.9));
    }
    .jq-stars::before { top: 16%; left: 24%; }
    .jq-stars::after { top: 22%; right: 18%; width: 5px; height: 5px; }
    .jq-stars-more {
      background-image:
        radial-gradient(1.8px 1.8px at 5% 9%, rgba(236, 246, 255, 0.95) 40%, transparent 70%),
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(176, 214, 255, 0.9) 40%, transparent 70%),
        radial-gradient(2.1px 2.1px at 17% 7%, rgba(255, 255, 255, 0.9) 35%, transparent 72%),
        radial-gradient(1px 1px at 24% 21%, rgba(200, 226, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 33% 5%, rgba(230, 244, 255, 0.95) 40%, transparent 70%),
        radial-gradient(1.1px 1.1px at 41% 16%, rgba(255, 255, 255, 0.75) 40%, transparent 70%),
        radial-gradient(2px 2px at 55% 8%, rgba(186, 218, 255, 0.95) 35%, transparent 72%),
        radial-gradient(1px 1px at 63% 22%, rgba(230, 244, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.6px 1.6px at 72% 6%, rgba(255, 255, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1.2px 1.2px at 84% 19%, rgba(168, 208, 255, 0.85) 40%, transparent 70%),
        radial-gradient(1.9px 1.9px at 91% 8%, rgba(226, 242, 255, 0.95) 35%, transparent 72%),
        radial-gradient(1px 1px at 97% 28%, rgba(196, 224, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.3px 1.3px at 9% 36%, rgba(210, 232, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1px 1px at 27% 44%, rgba(255, 255, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 46% 34%, rgba(176, 214, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1.1px 1.1px at 68% 42%, rgba(230, 244, 255, 0.65) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 88% 38%, rgba(200, 226, 255, 0.7) 40%, transparent 70%),
        radial-gradient(1px 1px at 21% 58%, rgba(186, 218, 255, 0.55) 40%, transparent 70%),
        radial-gradient(1.6px 1.6px at 53% 64%, rgba(255, 255, 255, 0.55) 40%, transparent 70%),
        radial-gradient(1.2px 1.2px at 79% 56%, rgba(176, 214, 255, 0.6) 40%, transparent 70%);
    }
    .jq-stars-more::before { top: 40%; left: 11%; width: 6px; height: 6px; }
    .jq-stars-more::after { top: 48%; right: 9%; width: 4px; height: 4px; }
    .jq-stars-extra {
      background-image:
        radial-gradient(1.7px 1.7px at 10% 14%, rgba(240, 248, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1.1px 1.1px at 20% 4%, rgba(180, 216, 255, 0.85) 40%, transparent 70%),
        radial-gradient(2px 2px at 38% 12%, rgba(255, 255, 255, 0.85) 35%, transparent 72%),
        radial-gradient(1.2px 1.2px at 50% 3%, rgba(210, 234, 255, 0.8) 40%, transparent 70%),
        radial-gradient(1.5px 1.5px at 66% 13%, rgba(236, 246, 255, 0.9) 40%, transparent 70%),
        radial-gradient(1px 1px at 76% 24%, rgba(170, 210, 255, 0.75) 40%, transparent 70%),
        radial-gradient(1.8px 1.8px at 94% 16%, rgba(255, 255, 255, 0.9) 35%, transparent 72%),
        radial-gradient(1.2px 1.2px at 30% 30%, rgba(200, 226, 255, 0.65) 40%, transparent 70%),
        radial-gradient(1px 1px at 58% 28%, rgba(255, 255, 255, 0.6) 40%, transparent 70%),
        radial-gradient(1.4px 1.4px at 82% 32%, rgba(186, 218, 255, 0.7) 40%, transparent 70%);
    }
    .jq-stars-extra::before { top: 12%; left: 62%; width: 5px; height: 5px; }
    .jq-stars-extra::after { top: 31%; left: 38%; width: 4px; height: 4px; }
    .jq-hero { overflow: visible; }
    .jq-bokeh,
    .jq-stars {
      visibility: hidden;
    }
    .jq-leaf {
      display: none;
      position: absolute;
      z-index: 1;
      top: calc(8% + 11 * 1.3em);
      width: min(20vw, 250px);
      height: min(36vh, 320px);
      pointer-events: none;
      opacity: 0.96;
    }
    .jq-leaf-left { left: -12px; }
    .jq-leaf-right {
      right: -12px;
      top: calc(10% + 11 * 1.3em);
      height: min(40vh, 360px);
      transform: scaleX(-1);
    }
    .jq-shell .home-brand,
    #join-queue-screen .home-brand {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 0;
      min-width: 0;
      max-width: 100%;
      margin: 0;
      padding: 0;
    }
    .jq-shell {
      --jq-gap: clamp(0.2rem, calc((100dvh - 620px) * 0.045), 0.8rem);
    }
    .jq-shell > .join-queue-top {
      position: relative;
      z-index: 1;
      padding: 0 1rem var(--jq-gap);
      box-sizing: border-box;
      width: 100%;
      max-width: none;
      margin: 0;
      flex: 1 1 auto;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .jq-lobby {
      width: min(760px, 100%);
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      min-height: 0;
    }
    .jq-title-block {
      width: 100%;
      text-align: center;
    }
    .jq-hero {
      position: relative;
      width: auto;
      max-width: min(860px, 100%);
      height: clamp(110px, calc(100dvh - 30.5rem), 480px);
      aspect-ratio: 16 / 9;
      margin: calc(-1.15 * clamp(1.15rem, 4.2vw, 2.75rem)) auto 0;
      flex: 0 1 auto;
    }
    .jq-actions {
      display: grid;
      grid-template-columns: max-content;
      justify-items: stretch;
      max-width: 100%;
    }
    .jq-hero-glow {
      position: absolute;
      left: 16%;
      right: 16%;
      top: 18%;
      bottom: 6%;
      background: radial-gradient(ellipse at 50% 55%, rgba(80, 160, 240, 0.55) 0%, rgba(24, 70, 160, 0.28) 42%, transparent 72%);
      filter: blur(16px);
      pointer-events: none;
    }
    .jq-shell .ir-join-hero {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      margin: 0;
      display: block;
      object-fit: cover;
      object-position: center 46%;
      border-radius: 0;
      mix-blend-mode: lighten;
      -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 52%, #000 22%, rgba(0, 0, 0, 0.72) 46%, transparent 74%);
      mask-image: radial-gradient(ellipse 62% 68% at 50% 52%, #000 22%, rgba(0, 0, 0, 0.72) 46%, transparent 74%);
    }
    .jq-shell .join-queue-title {
      font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
      text-transform: none;
      font-variant-caps: normal;
      color: #FFFFFF;
      font-size: clamp(1.15rem, 4.2vw, 2.75rem);
      font-weight: 700;
      letter-spacing: 0.02em;
      margin: 0;
      text-align: center;
      width: 100%;
      line-height: 1.15;
      text-shadow: none;
    }
    .jq-shell .join-queue-title strong {
      font-weight: inherit;
      color: inherit;
    }
    .jq-shell .join-queue-title #ir-join-title-line2 {
      display: block;
      white-space: nowrap;
      font-size: 1em;
      font-weight: 700;
    }
    .jq-shell .jq-punch {
      margin: 0.35rem 0 0;
      padding: 0;
      text-align: center;
      color: #FFFFFF;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      font-size: calc(0.95rem * 1.25);
      font-weight: 400;
      line-height: 1.35;
      letter-spacing: normal;
    }
    .jq-shell .btn-join-main {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin: var(--jq-gap) auto 0;
      padding: 0.35em 0.6em;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      font-size: clamp(1.5rem, 4.2vw, 1.875rem);
      font-weight: 700;
      line-height: 1;
      letter-spacing: normal;
      text-align: center;
      color: #FFFFFF;
      background: linear-gradient(180deg, #3D8EF5 0%, #0E6AE8 38%, #0E6AE8 100%);
      border: none;
      border-radius: 15px;
      cursor: pointer;
      box-shadow:
        inset 0 0 0 2px rgba(214, 240, 255, 1),
        inset 0 0 14px 3px rgba(190, 230, 255, 1),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 0 0 1px rgba(110, 200, 255, 0.95),
        0 0 8px 1px rgba(70, 185, 255, 0.95),
        0 0 18px 2px rgba(61, 155, 255, 0.7);
    }
    .jq-shell .btn-join-main:hover,
    .jq-shell .btn-join-main:focus-visible {
      filter: brightness(1.08);
      outline: none;
    }
    .jq-shell .btn-join-main:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
    #join-error {
      position: static;
      z-index: 2;
      margin: 0.45rem 0 0;
      padding: 0;
      font-size: 13px;
      font-weight: 400;
      color: #FFFFFF;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      text-align: center;
      width: 100%;
      min-height: 0;
      line-height: 1.25;
    }
    /* Status under Play Now. Story typeface, white. Size stays with the existing rules. */
    #waiting-section.jq-shell .join-queue-status,
    #join-queue-screen.jq-shell .join-queue-status,
    .jq-shell .join-queue-status,
    #join-queue-screen #join-error,
    #waiting-section #join-error {
      color: #FFFFFF;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
    }
    #join-error:empty { display: none; }
    .jq-shell .ir-join-links {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 10px;
      align-items: stretch;
      justify-content: center;
      width: max-content;
      max-width: 100%;
      margin: max(0.85rem, var(--jq-gap)) 0 0;
      padding: 0;
    }
    .jq-shell .ir-join-rules-link,
    .jq-shell .sound-toggle-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      height: 64px;
      min-width: 0;
      width: auto;
      padding: 0 12px;
      border-radius: 16px;
      background: #121A2A;
      border: 1px solid #1E3A5F;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      color: #F4F7FB;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
      box-sizing: border-box;
    }
    .jq-shell .ir-join-rules-link:hover,
    .jq-shell .ir-join-rules-link:focus-visible,
    .jq-shell .sound-toggle-wrap:hover,
    .jq-shell .sound-toggle-wrap:focus-visible {
      border-color: #1A8CFF;
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 12px rgba(61, 155, 255, 0.25);
      outline: none;
    }
    .jq-shell .ir-join-rules-link strong,
    .jq-shell .sound-toggle-link {
      font-family: inherit;
      font-size: inherit;
      font-weight: 600;
      color: inherit;
      text-decoration: none;
      line-height: 1.2;
    }
    .jq-shell .jq-chip-icon {
      width: 28px;
      height: 28px;
      flex: 0 0 auto;
      color: #1A8CFF;
      display: block;
    }
    .jq-shell .sound-toggle-emoji {
      display: inline-flex;
      color: #1A8CFF;
      margin: 0;
      padding: 0;
      background: none;
      line-height: 0;
    }
    .jq-shell .sound-toggle-emoji .jq-note-slash { display: none; }
    .jq-shell .sound-toggle-emoji.sound-off .jq-note-slash { display: block; }
    .jq-shell .ir-join-tale {
      width: 100%;
      max-width: 44rem;
      margin: max(0.85rem, var(--jq-gap)) auto 0;
      padding: 0.75rem 1rem 0.7rem;
      box-sizing: border-box;
      text-align: left;
      background: #121A2A;
      border: 1px solid #1E3A5F;
      border-radius: 16px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .jq-shell .ir-join-legend {
      width: 100%;
      margin: 0;
      text-align: left;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.5;
      color: #F4F7FB;
    }
    .jq-shell .ir-join-legend p { margin: 0 0 1em; }
    .jq-shell .ir-join-legend p:last-child { margin-bottom: 0; }
    /* Collapsed story: 2 lines total; extra paragraphs stay hidden until Learn more. */
    .jq-shell .ir-join-tale:not(.is-open) .ir-join-legend p:not(:first-child) {
      display: none;
    }
    .jq-shell .ir-join-tale:not(.is-open) .ir-join-legend p:first-child {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .jq-shell .jq-more {
      appearance: none;
      -webkit-appearance: none;
      display: inline-flex;
      margin: 0.75rem 0 0;
      padding: 0;
      border: none;
      background: none;
      color: #5B9FFF;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.4;
      text-align: left;
      cursor: pointer;
      gap: 0.4rem;
    }
    .jq-shell .jq-more:hover,
    .jq-shell .jq-more:focus-visible {
      color: #7CB4FF;
      text-decoration: underline;
      outline: none;
    }
    .jq-shell .jq-more-arrow {
      margin-left: 0.45em;
    }
    .jq-shell .join-queue-promo {
      margin: max(0.85rem, var(--jq-gap)) auto 0;
      padding: 0 16px;
      max-width: 26rem;
      text-align: center;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 400;
      color: #F4F7FB;
      line-height: 1.5;
    }
    .jq-shell .jq-more-short { display: none; }
    .jq-shell .jq-chip-copy {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 0;
    }
    .jq-shell .jq-chip-rule {
      display: none;
      width: var(--jq-chip-rule, 4.85em);
      height: 1.5px;
      margin-top: 0.28rem;
      background: #5B9FFF;
      border-radius: 1px;
    }
    .jq-shell .join-queue-promo .waiting-link,
    .jq-shell .join-queue-promo .waiting-link strong {
      color: #5B9FFF;
      font-family: system-ui, "Segoe UI", Arial, sans-serif;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.4;
      text-decoration: none;
    }
    .jq-shell .join-queue-promo .waiting-link:hover,
    .jq-shell .join-queue-promo .waiting-link:hover strong,
    .jq-shell .join-queue-promo .waiting-link:focus-visible,
    .jq-shell .join-queue-promo .waiting-link:focus-visible strong {
      color: #7CB4FF;
      text-decoration: underline;
    }
    @media (max-width: 767px) {
      .jq-shell .jq-leaf { display: none; }
      .jq-scene {
        background-image: url("images/universal-page-background-3840x2160.jpg");
      }
      .jq-shell .jq-more-full { display: none; }
      .jq-shell .jq-more-short { display: inline; }
      .jq-shell {
        --jq-gap: clamp(0.35rem, calc((100dvh - 560px) * 0.04), 0.75rem);
      }
      .jq-shell > .site-banner {
        padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
      }
      .jq-shell .home-mgfh {
        font-size: 1.35rem;
      }
      .jq-shell .home-brand .banner-title,
      #join-queue-screen .home-brand .banner-title {
        display: none !important;
      }
      .jq-shell .jq-all-games .home-dock-grid {
        width: 28px;
        height: 28px;
      }
      .jq-shell a.banner-home-btn {
        padding: 5px 8px;
        border-radius: 14px;
        box-shadow:
          0 0 12px 3px rgba(28, 155, 184, 0.65),
          0 0 24px 8px rgba(28, 155, 184, 0.35);
      }
      .jq-shell .banner-home-icon {
        width: 28px;
        height: 28px;
      }
      .jq-shell > .join-queue-top {
        padding: 0 0.85rem max(0.7rem, var(--jq-gap));
      }
      .jq-shell .jq-lobby {
        width: min(22.5rem, 100%);
        justify-content: flex-start;
        gap: 0;
      }
      .jq-shell .jq-hero {
        max-width: min(22rem, 100%);
        height: clamp(120px, calc(100dvh - 28rem), 220px);
        margin: calc(-0.55 * clamp(1.05rem, 5vw, 1.55rem)) auto 0;
      }
      .jq-shell .join-queue-title {
        font-size: clamp(1.05rem, 5.4vw, 1.55rem);
      }
      .jq-shell .jq-punch {
        margin-top: 0.28rem;
        font-size: calc(0.95rem * 1.05);
      }
      .jq-shell .jq-actions {
        width: 100%;
        grid-template-columns: 1fr;
        margin-top: 0.15rem;
      }
      .jq-shell .btn-join-main {
        width: 100%;
        margin-top: max(0.7rem, var(--jq-gap));
        padding: 0.42em 0.7em;
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
        border-radius: 14px;
      }
      .jq-shell .ir-join-links {
        width: 100%;
        max-width: none;
        gap: 0.7rem;
        /* Glow under Play Now sits outside the button, so this gap is larger than the story gap by that amount. */
        margin-top: calc(max(0.7rem, var(--jq-gap)) + 1.7rem);
      }
      .jq-shell .ir-join-rules-link,
      .jq-shell .sound-toggle-wrap {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        height: auto;
        min-height: 4.6rem;
        padding: 0.65rem 0.55rem 0.7rem;
        border-radius: 14px;
        font-size: 0.92rem;
      }
      .jq-shell .jq-chip-icon {
        width: 24px;
        height: 24px;
      }
      .jq-shell .jq-chip-rule {
        display: block;
      }
      .jq-shell .ir-join-tale {
        margin-top: calc(max(0.7rem, var(--jq-gap)) + 0.45rem);
        padding: 0.7rem 0.85rem 0.65rem;
        border-radius: 14px;
      }
      .jq-shell .ir-join-legend {
        font-size: 0.92rem;
        line-height: 1.45;
      }
      .jq-shell .ir-join-tale:not(.is-open) .ir-join-legend p:first-child {
        -webkit-line-clamp: 1;
      }
      .jq-shell .jq-more {
        margin-top: 0.65rem;
        font-size: 0.95rem;
      }
    }
    /* Wide join queue: same lockup as the home page. Phone keeps the word mark alone. */
    @media (min-width: 768px) {
      .jq-shell .site-banner.banner-plain .home-mgfh,
      #join-queue-screen .site-banner.banner-plain .home-mgfh {
        font-size: round(calc(1.5 * clamp(1.45rem, 3.2vw, 2rem)), 1px);
      }
      .jq-shell .home-brand .banner-title,
      #join-queue-screen .home-brand .banner-title {
        display: block !important;
        width: 100%;
        margin: 1px 0 0;
        padding: 0;
        line-height: 1;
        text-align: left;
        white-space: nowrap;
        font-family: Montserrat, "Segoe UI", Arial, sans-serif;
        font-weight: 800;
        font-size: round(calc((11 / 32) * clamp(1.45rem, 3.2vw, 2rem)), 1px);
        letter-spacing: 0;
        color: #FFFFFF;
        text-shadow: none;
        -webkit-font-smoothing: auto;
        -moz-osx-font-smoothing: auto;
        font-kerning: none;
        text-rendering: auto;
      }
    }
    @media (max-width: 420px) {
      .jq-shell > .join-queue-top { padding-left: 0.65rem; padding-right: 0.65rem; }
    }

/* Phone landscape join screens still scroll, with no scrollbar. Portrait is unchanged. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1000px),
       (orientation: landscape) and (min-width: 1001px) and (max-width: 1279px) and (max-height: 699px),
       (orientation: landscape) and (min-width: 1280px) and (max-width: 1919px) and (max-height: 500px) {
  #join-queue-screen:not(.hidden),
  #waiting-section.minimal-lobby.jq-shell {
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }
  #join-queue-screen:not(.hidden)::-webkit-scrollbar,
  #waiting-section.minimal-lobby.jq-shell::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }
  html:has(#join-queue-screen:not(.hidden)) .themed-scroll {
    display: none !important;
  }
}

/* Phone under 6.1" landscape. Word mark only, and the Home control is the icon. */
@media (orientation: landscape) and (max-height: 379px) and (max-width: 1000px),
       (orientation: landscape) and (max-height: 379px) and (min-width: 1001px) and (max-width: 1919px) {
  .jq-shell .home-brand .banner-title,
  #join-queue-screen .home-brand .banner-title {
    display: none !important;
  }
  .jq-shell a.banner-home-btn .banner-home-label,
  #join-queue-screen a.banner-home-btn .banner-home-label {
    display: none !important;
  }
  .jq-shell a.banner-home-btn,
  #join-queue-screen a.banner-home-btn {
    gap: 0;
    padding: 6px;
  }
}

/* iPad portrait. Same join queue as 6.7" phone portrait, sized to the iPad. The site name stays under MGFH, and Home keeps its words. No scrollbar. */
@media (orientation: portrait) and (min-width: 744px) and (max-width: 1100px),
       (orientation: portrait) and (min-width: 1101px) and (max-width: 1919px) {
  html, body,
  #join-queue-screen,
  #waiting-section { scrollbar-width: none; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  #join-queue-screen::-webkit-scrollbar,
  #waiting-section::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .themed-scroll,
  #themed-scroll { display: none !important; }
  .jq-shell .jq-leaf { display: none; }
  .jq-scene {
    background-image: url("images/universal-page-background-3840x2160.jpg");
  }
  .jq-shell .jq-more-full { display: none; }
  .jq-shell .jq-more-short { display: inline; }
  .jq-shell { --jq-gap: clamp(0.7rem, 2vh, 1.15rem); }
  .jq-shell > .site-banner {
    padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
    padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
  }
  .jq-shell .home-mgfh,
  #join-queue-screen .home-mgfh { font-size: clamp(1.85rem, 3.2vw, 2.5rem) !important; }
  .jq-shell .home-brand .banner-title,
  #join-queue-screen .home-brand .banner-title { display: block !important; }
  .jq-shell .jq-all-games .home-dock-grid { width: 42px; height: 42px; }
  .jq-shell a.banner-home-btn .banner-home-label,
  #join-queue-screen a.banner-home-btn .banner-home-label { display: inline !important; }
  .jq-shell a.banner-home-btn,
  #join-queue-screen a.banner-home-btn {
    gap: 10px;
    padding: 8px 16px 8px 12px;
  }
  .jq-shell .banner-home-icon,
  #join-queue-screen .banner-home-icon { width: 42px; height: 42px; }
  .jq-shell > .join-queue-top { padding: 0 1.25rem max(0.9rem, var(--jq-gap)); }
  .jq-shell .jq-lobby {
    width: min(40rem, 100%);
    justify-content: flex-start;
    gap: 0;
  }
  .jq-shell .jq-hero {
    max-width: min(36rem, 100%);
    height: clamp(96px, calc(100dvh - 44rem), 220px);
  }
  .jq-shell .join-queue-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
  .jq-shell .jq-punch { margin-top: 0.4rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
  .jq-shell .jq-actions {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 0.25rem;
  }
  .jq-shell .btn-join-main {
    width: 100%;
    margin-top: max(0.9rem, var(--jq-gap));
    padding: 0.5em 0.9em;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    border-radius: 16px;
  }
  .jq-shell .ir-join-links {
    width: 100%;
    max-width: none;
    gap: 0.9rem;
    margin-top: calc(max(0.9rem, var(--jq-gap)) + 1.7rem);
  }
  .jq-shell .ir-join-rules-link,
  .jq-shell .sound-toggle-wrap {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 5.4rem;
    padding: 0.8rem 0.7rem;
    border-radius: 16px;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
  }
  .jq-shell .jq-chip-icon { width: 32px; height: 32px; }
  .jq-shell .jq-chip-rule { display: block; }
  html.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)),
  body.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)),
  html.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])):not(:has(.ir-join-tale.is-open)),
  body.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])):not(:has(.ir-join-tale.is-open)),
  body.ir-join-shell:has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  html.jq-shell-page:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  body.jq-shell-page:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  html.jq-shell-page:has(.ir-join-tale.is-open):has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.jq-shell-page:has(.ir-join-tale.is-open):has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.ir-join-shell:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden))) {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
  html.jq-shell-page:has(.ir-join-tale.is-open) #join-queue-screen,
  html.jq-shell-page:has(.ir-join-tale.is-open) #waiting-section.jq-shell,
  body.ir-join-shell:has(.ir-join-tale.is-open) #join-queue-screen {
    height: auto;
    max-height: none;
    flex: none;
    overflow: visible;
  }
}

/* iPad landscape. A collapsed story stays on one viewport. An open story scrolls with no scrollbar. */
@media (orientation: landscape) and (min-width: 1000px) and (max-width: 1260px) and (min-height: 700px) and (max-height: 900px),
       (orientation: landscape) and (min-width: 1300px) and (max-width: 1400px) and (min-height: 960px) and (max-height: 1100px),
       (orientation: landscape) and (min-width: 1000px) and (max-width: 1279px) and (min-height: 901px),
       (orientation: landscape) and (min-width: 1261px) and (max-width: 1279px) and (min-height: 700px) {
  html.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  body.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  html.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.ir-join-shell:has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden))),
  #join-queue-screen:not(.hidden),
  #waiting-section.jq-shell:not(.hidden) {
    scrollbar-width: none;
  }
  html.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden)))::-webkit-scrollbar,
  body.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden)))::-webkit-scrollbar,
  html.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"]))::-webkit-scrollbar,
  body.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"]))::-webkit-scrollbar,
  body.ir-join-shell:has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden)))::-webkit-scrollbar,
  #join-queue-screen:not(.hidden)::-webkit-scrollbar,
  #waiting-section.jq-shell:not(.hidden)::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .themed-scroll,
  #themed-scroll { display: none !important; }
  .jq-shell .jq-hero,
  #join-queue-screen .jq-hero,
  #waiting-section .jq-hero {
    /* Leftover height after the header, title, Play Now, chips, story, and promo.
       The 16:9 theme grows with the iPad landscape viewport and stays clear of the title. */
    height: clamp(72px, calc(100dvh - 33rem), 480px);
  }
  html.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)),
  body.jq-shell-page:has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)),
  html.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])):not(:has(.ir-join-tale.is-open)),
  body.jq-shell-page:has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])):not(:has(.ir-join-tale.is-open)),
  body.ir-join-shell:has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden))):not(:has(.ir-join-tale.is-open)) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  html.jq-shell-page:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  body.jq-shell-page:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#matching-screen:not(.hidden))):not(:has(#game-screen:not(.hidden))):not(:has(#game-content:not(.hidden))),
  html.jq-shell-page:has(.ir-join-tale.is-open):has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.jq-shell-page:has(.ir-join-tale.is-open):has(#waiting-section:not(.hidden)):not(:has(#game[style*="display: flex"])),
  body.ir-join-shell:has(.ir-join-tale.is-open):has(#join-queue-screen:not(.hidden)):not(:has(#game-content:not(.hidden))) {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Join stack on every named layout. Play Now, the Game Rules and Music pair,
   the story, and the promo line share one center and equal gaps. */
#join-queue-screen,
#waiting-section.jq-shell {
  --jq-stack-gap: 1rem;
}
#join-queue-screen .jq-lobby,
#waiting-section.jq-shell .jq-lobby {
  align-items: center;
  justify-content: flex-start;
}
#join-queue-screen .jq-title-block,
#waiting-section.jq-shell .jq-title-block,
#join-queue-screen .join-queue-title,
#waiting-section.jq-shell .join-queue-title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#join-queue-screen .jq-actions,
#join-queue-screen.jq-shell .jq-actions,
#waiting-section.jq-shell .jq-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}
#join-queue-screen .btn-join-main,
#join-queue-screen.jq-shell .btn-join-main,
#join-queue-screen.jq-shell .join-queue-button.btn-join-main,
#waiting-section.jq-shell .btn-join-main {
  width: 100% !important;
  box-sizing: border-box;
  padding: 0.45em 1.2em !important;
  line-height: 1 !important;
  text-align: center !important;
}
#join-queue-screen .ir-join-links,
#join-queue-screen.jq-shell .ir-join-links,
#waiting-section.jq-shell .ir-join-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px !important;
  width: 100% !important;
  min-width: max-content;
  max-width: 100%;
  margin-top: var(--jq-stack-gap) !important;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  box-sizing: border-box;
}
#join-queue-screen .ir-join-rules-link,
#join-queue-screen .sound-toggle-wrap,
#join-queue-screen.jq-shell .ir-join-rules-link,
#join-queue-screen.jq-shell .sound-toggle-wrap,
#join-queue-screen.jq-shell #sound-toggle-wrap,
#waiting-section.jq-shell .ir-join-rules-link,
#waiting-section.jq-shell .sound-toggle-wrap {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 12px !important;
  box-sizing: border-box;
  white-space: nowrap;
}
#join-queue-screen .jq-chip-icon,
#join-queue-screen.jq-shell .jq-chip-icon,
#join-queue-screen.jq-shell .sound-toggle-emoji .jq-chip-icon,
#waiting-section.jq-shell .jq-chip-icon {
  width: 22px !important;
  height: 22px !important;
}
#join-queue-screen .jq-chip-rule,
#waiting-section.jq-shell .jq-chip-rule {
  display: none !important;
}
#join-queue-screen .ir-join-tale,
#waiting-section.jq-shell .ir-join-tale {
  width: 100%;
  max-width: 44rem;
  margin-top: var(--jq-stack-gap) !important;
  margin-right: auto;
  margin-left: auto;
}
#join-queue-screen .join-queue-promo,
#join-queue-screen.jq-shell .join-queue-promo,
#waiting-section.jq-shell .join-queue-promo {
  display: block !important;
  width: 100%;
  max-width: 44rem;
  margin-top: var(--jq-stack-gap) !important;
  margin-right: auto !important;
  margin-bottom: 0;
  margin-left: auto !important;
  padding-right: 16px;
  padding-left: 16px;
  box-sizing: border-box;
  text-align: center !important;
}

