/* Desktop-first PC chrome. Same DOM / net protocol as mobile — layout only. */

body.pc-desktop {
  cursor: default;
}

/* Wide viewports otherwise pin #select-overlay to a 520px column and
   translateX(-50%). Leaving that width and shift in place (with left: 0)
   slides half the menu off-screen and lets the arena show through. */
body.pc-desktop #select-overlay,
body.pc-desktop #start-overlay,
body.pc-desktop #gameover-overlay {
  max-width: none;
  width: auto;
  margin: 0;
  left: 0;
  right: 0;
  transform: translateZ(0);
}

body.pc-desktop #select-overlay:not(.hidden) {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: 100%;
  padding: 28px 36px 28px 32px;
  gap: 28px;
  align-items: stretch;
  background:
    radial-gradient(ellipse at 12% 0%, #163044 0%, transparent 42%),
    radial-gradient(ellipse at 88% 8%, #2a1424 0%, transparent 38%),
    linear-gradient(180deg, #0b101c 0%, #07090f 100%);
}

body.pc-desktop #select-overlay[data-nexus-phase="modes"] {
  grid-template-columns: 1fr;
}

body.pc-desktop #select-overlay > * {
  z-index: 2;
}

body.pc-desktop .play-setup {
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.pc-desktop #select-overlay[data-nexus-phase="modes"] .play-setup {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

body.pc-desktop #select-overlay[data-nexus-phase="modes"] .play-setup-modes {
  flex: 0 1 auto;
}

body.pc-desktop .play-setup-modehead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  width: 100%;
  overflow: visible;
  text-align: left;
}

body.pc-desktop .play-setup-h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  letter-spacing: -0.04em;
}

body.pc-desktop .play-setup-modes {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* Phones keep Casual and Group Battle in one split row. On desktop each
   half becomes its own card in the same grid as the other modes. */
body.pc-desktop .play-setup-mode-split {
  display: contents;
}

body.pc-desktop .play-setup-mode-btn--prime {
  grid-column: span 2;
  min-height: 176px;
}

body.pc-desktop .play-setup-mode-btn--mid,
body.pc-desktop .play-setup-mode-btn--low,
body.pc-desktop .play-setup-mode-btn--alt,
body.pc-desktop .play-setup-mode-split .play-setup-mode-btn--mid {
  grid-column: span 1;
  min-width: 0;
  min-height: 148px;
  height: auto;
}

body.pc-desktop .play-setup-mode-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "icon arrow"
    "copy copy";
  align-items: start;
  min-height: 148px;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.pc-desktop .play-setup-mode-icon {
  position: static;
  grid-area: icon;
  width: 34px;
  height: 34px;
  right: auto;
  top: auto;
  transform: none;
  opacity: 0.9;
  justify-self: start;
  align-self: start;
}

body.pc-desktop .play-setup-mode-split .play-setup-mode-icon,
body.pc-desktop .play-setup-mode-btn--low .play-setup-mode-icon,
body.pc-desktop .play-setup-mode-btn--mid .play-setup-mode-icon {
  width: 34px;
  height: 34px;
  right: auto;
  opacity: 0.9;
}

body.pc-desktop .play-setup-mode-arr {
  grid-area: arrow;
  align-self: start;
  justify-self: end;
}

body.pc-desktop .play-setup-mode-copy,
body.pc-desktop .play-setup-mode-split .play-setup-mode-copy {
  grid-area: copy;
  align-self: end;
  padding-right: 0;
}

body.pc-desktop .play-setup-mode-num {
  display: none;
}

body.pc-desktop .play-setup-mode-btn--mid .play-setup-mode-label,
body.pc-desktop .play-setup-mode-btn--low .play-setup-mode-label,
body.pc-desktop .play-setup-mode-btn--alt .play-setup-mode-label,
body.pc-desktop .play-setup-mode-split .play-setup-mode-label {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

body.pc-desktop .play-setup-mode-btn--prime .play-setup-mode-label {
  font-size: clamp(1.7rem, 2vw, 2.15rem);
}

body.pc-desktop .play-setup-mode-desc,
body.pc-desktop .play-setup-mode-split .play-setup-mode-desc {
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Group-battle spin chips sit on the rival side of the centered HUD bar
   instead of a loose stack in the corner of the window. */
body.pc-desktop .multi-hud {
  top: 28px;
  right: auto;
  left: 50%;
  width: min(920px, calc(100vw - 48px));
  transform: translateX(-50%);
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

body.pc-desktop .multi-hud-chip {
  min-width: 132px;
}

body.pc-desktop .play-setup-mode-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 233, 255, 0.55);
}

body.pc-desktop .play-setup-micro {
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

body.pc-desktop .play-setup-micro-current {
  max-width: none;
  flex: 1 1 auto;
}

body.pc-desktop .play-setup-micro-label {
  text-align: left;
}

body.pc-desktop .play-setup-back {
  padding: 8px 12px;
}

body.pc-desktop #select-overlay[data-nexus-phase="select"] {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
}

body.pc-desktop #select-overlay[data-nexus-phase="select"] .play-setup {
  max-width: none;
  width: 100%;
  padding: 4px 8px 24px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.pc-desktop #select-overlay[data-nexus-phase="select"] .play-setup-back {
  position: static;
}

body.pc-desktop #select-overlay[data-nexus-phase="select"] .play-setup-micro {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

body.pc-desktop #select-overlay > .profile-strip {
  top: 22px;
  right: 32px;
  bottom: auto;
  left: auto;
  width: auto;
  max-width: none;
  justify-content: flex-end;
  /* The rule above sets every overlay child to z-index 2, which beats the
     shared strip's z-index 40. The dossier is mounted later, so it covers
     Sign in and Ranks. Keep the strip above that sibling. */
  z-index: 40;
}

body.pc-desktop .select-mount {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.pc-desktop .dossier,
body.pc-desktop .card-carousel,
body.pc-desktop .online-flow {
  max-width: none;
}

body.pc-desktop .dossier {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px 8px 0 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.pc-desktop .dossier-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  overflow: visible;
}

body.pc-desktop .dossier-scroll-body,
body.pc-desktop .card-carousel-scene--dossier {
  height: 100%;
  min-height: 0;
}

body.pc-desktop .card-carousel-scene--dossier .card-carousel-live {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
}

/* The phone carousel's side cards otherwise float inside the wide dossier. */
body.pc-desktop .card-carousel-scene--dossier .card-slide-item {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.pc-desktop .play-setup-micro-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.pc-desktop .play-setup-micro-icon .play-setup-mode-icon {
  position: static;
  grid-area: auto;
  width: 18px;
  height: 18px;
  transform: none;
  opacity: 0.9;
}

body.pc-desktop .dossier-panel {
  height: 100%;
  padding: 0;
}

body.pc-desktop .dossier-hero-card {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(340px, 0.75fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "stage meta"
    "stage moves";
  align-items: stretch;
  align-content: start;
  gap: 18px 40px;
  height: 100%;
  padding: 12px 8px 0 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
}

body.pc-desktop .dossier-hero-main {
  display: contents;
}

body.pc-desktop .dossier-herostage-wrap {
  grid-area: stage;
  width: min(560px, 100%);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
  justify-self: center;
}

body.pc-desktop {
  /* Shared gap under the account strip. pc.html writes
     --pc-heading-clearance from the strip's measured bottom so signed-out
     and signed-in use this one value. */
  --pc-heading-gap: 8px;
}

body.pc-desktop .dossier-stagecopy-meta {
  grid-area: meta;
  align-self: end;
  max-width: none;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  padding-top: var(--pc-heading-clearance, 0px);
}

body.pc-desktop .dossier .bey-packaging-host,
body.pc-desktop .dossier-hero-card .bey-packaging-host {
  max-width: none;
  width: 100%;
  margin: 12px 0 0;
  text-align: left;
}

body.pc-desktop .dossier-hero-card .bey-packaging-stats,
body.pc-desktop .dossier .bey-packaging-host .bey-packaging-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  justify-content: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.pc-desktop .dossier-hero-card .bey-packaging-row {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.72);
}

body.pc-desktop .dossier .bey-name,
body.pc-desktop .dossier-panel .bey-name,
body.pc-desktop .dossier-panel .h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  text-align: left;
}

body.pc-desktop .dossier-moves-wrap {
  grid-area: moves;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  padding: 4px 4px 8px 0;
}

body.pc-desktop .dossier-moves-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

body.pc-desktop .dossier-moves-panel .bey-move-line {
  padding: 14px 16px;
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--move-accent);
}

body.pc-desktop .dossier-moves-panel .bey-move-line + .bey-move-line {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 0;
}

body.pc-desktop .dossier-moves-panel .bey-move-name {
  font-size: 1.05rem;
}

body.pc-desktop .dossier-moves-panel .bey-move-desc,
body.pc-desktop .dossier-moves-panel .bey-move-line--pwr .bey-move-desc,
body.pc-desktop .dossier-moves-panel .bey-move-line--psv .bey-move-desc,
body.pc-desktop .dossier-moves-panel .bey-move-line--spc .bey-move-desc {
  font-size: 0.92rem;
  -webkit-line-clamp: 4;
  max-height: none;
}

body.pc-desktop .dossier-action-rail {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 280px) 210px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 16px;
  background: rgba(10, 14, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: none;
}

body.pc-desktop .dossier-action-rail .dossier-random-row,
body.pc-desktop .dossier-random-row {
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

body.pc-desktop .dossier-random-row .select-random-btn {
  width: auto;
  min-width: 120px;
  padding-inline: 18px;
}

body.pc-desktop .dossier-stack .reel-row {
  --reel-thumb-size: 84px;
  min-height: 108px;
  border: 0;
  padding: 0;
}

body.pc-desktop .dossier .reel {
  --reel-thumb-size: 84px;
  justify-content: flex-start;
  padding-inline: 8px;
  gap: 10px;
}

body.pc-desktop .dossier .reel .carousel-dot,
body.pc-desktop .dossier .reel .reel-thumb {
  flex-basis: 84px;
  width: 84px;
  height: 84px;
  min-width: 84px;
}

body.pc-desktop .dossier-stack .vsbar,
body.pc-desktop .dossier .vsbar {
  padding: 0 8px;
}

body.pc-desktop .dossier-lock-footer {
  border: 0;
  background: transparent;
  padding: 0;
}

body.pc-desktop .dossier-lock-footer .bey-select-btn,
body.pc-desktop .dossier-lock-footer .dossier-lock-btn {
  min-height: 56px;
  font-size: 1.05rem;
}

body.pc-desktop #select-overlay:has(.online-flow:not(.hidden)) {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  grid-template-rows: auto auto;
  padding-top: 32px;
}

body.pc-desktop #select-overlay:has(.online-flow:not(.hidden)) .play-setup {
  height: auto;
  align-self: start;
  width: min(1080px, 100%);
  max-width: 1080px;
  margin: 0 auto;
}

body.pc-desktop #select-overlay:has(.online-flow:not(.hidden)) .play-setup-micro {
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 0 0 8px;
}

body.pc-desktop #select-overlay:has(.online-flow:not(.hidden)) .online-flow {
  width: min(1080px, 100%);
  max-width: 1080px;
  height: auto;
  align-self: start;
  min-height: 0;
  flex: none;
  margin: 0 auto;
}

body.pc-desktop .online-lobby,
body.pc-desktop .online-lobby--nexus {
  width: min(1120px, 100%);
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  padding: 8px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.pc-desktop .online-lobby-title {
  font-size: clamp(3rem, 5vw, 4.8rem);
}

body.pc-desktop .online-ports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  width: 100%;
  min-height: min(54vh, 480px);
  gap: 18px;
  background: transparent;
}

body.pc-desktop .online-lobby-entry {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.pc-desktop .online-port {
  min-height: min(54vh, 480px);
  width: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

body.pc-desktop .online-port-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

body.pc-desktop .tournament-ladder-level {
  width: min(72vw, 920px);
  min-height: 156px;
}

body.pc-desktop .tournament-ladder-title {
  font-size: clamp(3rem, 5vw, 4.6rem);
}

body.pc-desktop .online-port {
  min-height: 180px;
  text-align: left;
  padding: 20px;
}

body.pc-desktop .online-port:hover {
  transform: translateY(-3px);
}

body.pc-desktop #start-overlay:not(.hidden) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 520px);
  grid-template-rows: 1fr auto auto auto auto 1fr;
  align-items: center;
  justify-content: center;
  justify-items: start;
  padding: 64px 80px;
  column-gap: 48px;
  row-gap: 14px;
  text-align: left;
}

body.pc-desktop #start-overlay .portal-clash {
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: center;
  width: min(560px, 100%);
  height: min(52vh, 460px);
  min-height: 320px;
  margin: 0;
}

body.pc-desktop #start-overlay .portal-clash-herowrap {
  width: clamp(200px, 42%, 280px);
  height: clamp(200px, 42%, 280px);
}

body.pc-desktop #start-overlay .portal-copy {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  background: none;
  padding: 0;
}

body.pc-desktop #start-overlay .portal-copy h1,
body.pc-desktop #start-overlay h1 {
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  line-height: 0.9;
  text-align: left;
}

body.pc-desktop #start-overlay #start-blurb {
  max-width: 28rem;
  margin: 8px 0 0;
  text-align: left;
  font-size: 1rem;
}

body.pc-desktop #start-overlay .key-hints {
  grid-column: 2;
  grid-row: 3;
  justify-content: flex-start;
}

body.pc-desktop #start-overlay #btn-start {
  grid-column: 2;
  grid-row: 4;
  justify-self: start;
  width: auto;
  min-width: 260px;
  padding-inline: 28px;
}

body.pc-desktop #start-overlay #permission-hint {
  grid-column: 2;
  grid-row: 5;
  margin: 0;
  text-align: left;
}

body.pc-desktop #btn-start,
body.pc-desktop #btn-restart,
body.pc-desktop .gameover-btn-secondary {
  min-height: 52px;
  min-width: 180px;
  font-size: 1rem;
}

body.pc-desktop #btn-start:hover,
body.pc-desktop #btn-restart:hover,
body.pc-desktop .gameover-btn-secondary:hover,
body.pc-desktop .bey-select-btn:hover,
body.pc-desktop .play-setup-back:hover {
  filter: brightness(1.08);
}

body.pc-desktop #gameover-overlay.visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  justify-items: start;
  padding: 64px 80px;
  gap: 32px 64px;
  text-align: left;
}

body.pc-desktop #gameover-overlay .gameover-hero {
  text-align: left;
}

body.pc-desktop #gameover-overlay h2 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  text-align: left;
}

body.pc-desktop #gameover-overlay #gameover-msg {
  max-width: 36rem;
  font-size: 1.15rem;
  text-align: left;
}

body.pc-desktop .gameover-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-self: stretch;
  width: 100%;
}

body.pc-desktop #hud {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Panels are max 168px. Without an explicit width, justify-self
   shrinks them to content and a start alignment parks the CPU gauge
   in the middle of the screen instead of on the enemy's side. */
body.pc-desktop #hud .hud-panel {
  width: min(168px, 100%);
  justify-self: start;
}
body.pc-desktop #hud .hud-panel.hud-side-ai {
  justify-self: end;
}

body.pc-desktop #controls-hint {
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* Local players sit on opposite sides of a shared keyboard, so keep their
   controls on those same sides instead of combining them into one legend. */
body.pc-desktop.vs-2p #controls-hint {
  left: 24px;
  right: 24px;
  transform: none;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  white-space: nowrap;
}

body.pc-desktop.vs-2p #controls-hint .controls-player {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
}

body.pc-desktop.vs-2p #controls-hint .controls-player-two {
  justify-content: flex-end;
  text-align: right;
}

body.pc-desktop.vs-2p #controls-hint strong {
  margin-right: 0.35em;
  color: #f4f0e8;
}

body.pc-desktop.vs-2p #controls-hint kbd {
  min-width: 1.3em;
  padding: 0 0.22em;
  font-size: 0.9em;
}

@media (max-width: 820px) {
  body.pc-desktop.vs-2p #controls-hint {
    left: 12px;
    right: 12px;
    gap: 10px;
    font-size: 0.68rem;
  }
}

/* Practice only, and only on the PC entry (body.pc-desktop). Mobile
   (body.mobile / index.html) never loads this file and never gets
   vs-practice, so this placement and the keycap sizing cannot apply
   there. The shared coach rule (body.demo-coach-active #controls-hint)
   forces this line to opacity 0 while a card is up. After the coach
   drops that class, body.pc-desktop #controls-hint would fade it back
   to 0.8. Both selectors below keep opacity 1: while the card is
   showing, and after it is finished or dismissed, for the rest of the
   match (.visible stays on through gameover). The bottom edge uses the
   same --ability-bar-bottom as .ability-bar, so the line shares the
   Speed Boost / Star Blast baseline. The coach card stays lifted so it
   does not cover the line. */
body.pc-desktop.vs-practice #controls-hint.visible,
body.pc-desktop.vs-practice.demo-coach-active #controls-hint {
  bottom: var(--ability-bar-bottom);
  z-index: 12;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 10, 22, 0.88);
  border: 1px solid rgba(125, 211, 252, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  color: #f4f0e8;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 1 !important;
  transition: none;
}

body.pc-desktop.vs-practice #controls-hint.visible kbd,
body.pc-desktop.vs-practice.demo-coach-active #controls-hint kbd {
  min-width: 1.45em;
  height: 1.45em;
  padding: 0 0.28em;
  font-size: 0.92em;
  border-radius: 4px;
  box-shadow: none;
  vertical-align: -0.12em;
}

/* Adjacent WASD caps only. Q and E are separated by words, so they
   do not pick this up. Scoped to the PC Practice hint. */
body.pc-desktop.vs-practice #controls-hint.visible kbd + kbd,
body.pc-desktop.vs-practice.demo-coach-active #controls-hint kbd + kbd {
  margin-left: 0.18em;
}

body.pc-desktop.vs-practice .demo-coach {
  bottom: 232px;
}

body.pc-desktop .profile-strip {
  max-width: 420px;
}

body.pc-desktop .match-settings-panel {
  align-items: center;
}

body.pc-desktop .match-settings-card {
  max-height: min(86dvh, 760px);
  border-bottom: 1px solid rgba(87, 233, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (max-width: 980px) {
  body.pc-desktop #select-overlay,
  body.pc-desktop #start-overlay,
  body.pc-desktop #gameover-overlay,
  body.pc-desktop .online-lobby--nexus,
  body.pc-desktop .dossier,
  body.pc-desktop .play-setup-modehead,
  body.pc-desktop .dossier-hero-card,
  body.pc-desktop .dossier-action-rail,
  body.pc-desktop #start-overlay:not(.hidden),
  body.pc-desktop #gameover-overlay.visible {
    grid-template-columns: 1fr;
  }

  body.pc-desktop #start-overlay:not(.hidden) {
    grid-template-rows: auto;
    padding: 32px 28px;
  }

  body.pc-desktop #start-overlay .portal-clash,
  body.pc-desktop #start-overlay .portal-copy,
  body.pc-desktop #start-overlay .key-hints,
  body.pc-desktop #start-overlay #btn-start,
  body.pc-desktop #start-overlay #permission-hint {
    grid-column: 1;
    grid-row: auto;
  }

  body.pc-desktop .play-setup-modes {
    grid-template-columns: 1fr 1fr;
  }

  body.pc-desktop .play-setup-mode-btn--prime {
    grid-column: span 2;
  }
}
