/**/
/* THIS FILE AUTOGENERATED FROM CSS in ./web/css/ */
/**/
/* Page shell — full-width launcher layout. Appearance from Saito. */

body.arcade-body {
  font-size: 1.25rem;
  --arcade-sidebar-width: minmax(16rem, 20rem);
}

body.arcade-body p {
  font-size: inherit;
}

/*
 * Header: Saito defaults center content inside --saito-width.
 * Arcade is immersive — share the same full-width gutters as the page.
 */
body.arcade-body #saito-header.arcade {
  padding-inline: var(--saito-space-lg);
}

/*
 * Three-column shell: left nav | game grid | right sidebar (invites + leaderboard).
 * Side rails share one width token so the center column stays balanced.
 */
body.arcade-body #saito-container.arcade-container {
  grid-template-columns: var(--arcade-sidebar-width) minmax(0, 1fr) var(--arcade-sidebar-width);
  grid-template-rows: minmax(0, 1fr);
  padding: 0 var(--saito-space-lg);
  column-gap: var(--saito-space-md);
  overflow: hidden;
}

body.arcade-body #saito-container.arcade-container > * {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 1100px) {
  body.arcade-body {
    --arcade-sidebar-width: minmax(15rem, 18rem);
  }

  body.arcade-body #saito-header.arcade {
    padding-inline: var(--saito-space-md);
  }

  body.arcade-body #saito-container.arcade-container {
    padding: 0 var(--saito-space-md);
  }
}

@media (max-width: 820px) {
  body.arcade-body #saito-container.arcade-container {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 var(--saito-space-md);
  }

  body.arcade-body #saito-container.arcade-container > .arcade-sidebar-left,
  body.arcade-body #saito-container.arcade-container > .arcade-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  body.arcade-body #saito-header.arcade {
    padding-inline: var(--saito-space-sm);
  }

  body.arcade-body #saito-container.arcade-container {
    padding: 0 var(--saito-space-sm);
  }
}
/*
 * Namespace: .arcade-add-game
 * Visual reference: NWASM `.nwasm-new-game` action cards.
 * Stack-based views share one shell; home grid is count-driven (3 or 4).
 */

.arcade-add-game {
  width: min(110rem, 96vw);
  max-height: min(92vh, 70rem);
  background: transparent;
  background-image: none;
}

.arcade-add-game .body {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
}

.arcade-add-game .nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--saito-space-md);
}

.arcade-add-game .nav .heading {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  text-align: center;
}

.arcade-add-game .nav .lede {
  font-family: var(--saito-font-heavy);
  font-size: 1.67rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.arcade-add-game .nav .text,
.arcade-add-game .placeholder .text,
.arcade-add-game .empty {
  font-size: inherit;
  line-height: 1.4;
  color: var(--saito-foreground);
}

.arcade-add-game .nav-btn {
  min-height: 2.6rem;
  padding: 0 var(--saito-space-sm);
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius-sm);
  background: var(--saito-card);
  color: var(--saito-foreground);
  font-size: inherit;
  cursor: pointer;
}

.arcade-add-game .nav-btn:hover,
.arcade-add-game .nav-btn:focus-visible {
  border-color: var(--saito-primary);
  outline: none;
}

.arcade-add-game .nav-spacer {
  width: 4.5rem;
}

.arcade-add-game .choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--saito-space-lg), 2.5vw, var(--saito-space-xxl));
}

.arcade-add-game .game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(var(--saito-space-lg), 2.5vw, var(--saito-space-xxl));
}

.arcade-add-game .choice,
.arcade-add-game .game-choice {
  display: flex;
  flex-direction: column;
  min-height: min(62vh, 42rem);
  padding: 0;
  border: 1px solid var(--saito-border);
  border-radius: calc(var(--saito-radius) + 0.2rem);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: var(--saito-card);
  color: var(--saito-foreground);
  box-shadow: var(--saito-elevation-1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.arcade-add-game .game-choice {
  min-height: min(36vh, 24rem);
}

.arcade-add-game .choice:hover,
.arcade-add-game .choice:focus-visible,
.arcade-add-game .game-choice:hover,
.arcade-add-game .game-choice:focus-visible {
  border-color: var(--saito-primary);
  box-shadow: var(--saito-elevation-3);
  transform: translateY(-2px);
  outline: none;
}

.arcade-add-game .choice .art,
.arcade-add-game .game-choice .art {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  background: var(--saito-background);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.arcade-add-game .choice .art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.arcade-add-game .choice .meta,
.arcade-add-game .game-choice .meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  flex: 0 0 auto;
  padding: var(--saito-space-xl) var(--saito-space-lg) var(--saito-space-xxl);
  background-color: var(--saito-card);
  box-shadow: 0 -1.2rem 2.4rem color-mix(in srgb, var(--saito-background) 55%, transparent);
}

.arcade-add-game .choice .lede,
.arcade-add-game .game-choice .lede {
  font-family: var(--saito-font-heavy);
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.arcade-add-game .choice .text {
  font-size: var(--font-size-medium, 1.083rem);
  line-height: 1.45;
  color: var(--saito-foreground);
  max-width: 36ch;
}

.arcade-add-game .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--saito-space-lg);
  min-height: 18rem;
  padding: var(--saito-space-xl);
  border: 1px solid var(--saito-border);
  border-radius: calc(var(--saito-radius) + 0.2rem);
  background: var(--saito-card);
  text-align: center;
}

/* Darker page backdrop — Arcade still faintly visible, cards dominate. */
.saito-overlay:has(> .arcade-add-game) + .saito-overlay-backdrop {
  background-color: color-mix(in srgb, #000 86%, transparent);
}

.saito-overlay:has(> .arcade-add-game) {
  background-color: transparent;
}

.saito-overlay:has(> .arcade-add-game) > .saito-overlay-panel,
.saito-overlay:has(> .arcade-add-game) > .arcade-add-game {
  background-color: transparent;
  background-image: none;
  border: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .arcade-add-game {
    width: min(48rem, 96vw);
    max-height: 92vh;
  }

  .arcade-add-game .choices {
    grid-template-columns: 1fr;
    gap: var(--saito-space-lg);
  }

  .arcade-add-game .choice {
    min-height: 0;
  }

  .arcade-add-game .choice .meta,
  .arcade-add-game .game-choice .meta {
    padding: var(--saito-space-lg);
  }

  .arcade-add-game .nav {
    grid-template-columns: auto 1fr;
  }
}
/*
 * Namespace: .arcade-game-info
 * Two columns: full artwork + title/action banner | leaderboard.
 */

.arcade-game-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--saito-space-lg);
  width: min(90rem, 94vw);
  height: min(70rem, 88vh);
  max-height: min(92vh, 70rem);
  padding: var(--saito-space-md);
  overflow: hidden;
  color: var(--saito-foreground);
}

.arcade-game-info.has-leaderboard {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.9fr);
}

.arcade-game-info .art {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  border-radius: var(--saito-radius);
  border: 1px solid var(--saito-border);
  overflow: hidden;
  background: var(--saito-muted);
}

.arcade-game-info .hero {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arcade-game-info .banner {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--saito-space-md);
  min-height: 4.8rem;
  padding: 0.7rem var(--saito-space-sm);
  background-color: color-mix(in srgb, var(--saito-background) 68%, transparent);
}

.arcade-game-info .title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--saito-font-heavy);
  font-size: 2rem;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: #fff;
}

.arcade-game-info .create {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.arcade-game-info .leaderboard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: var(--saito-card);
}

.arcade-game-info .leaderboard .league-leaderboard {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.arcade-game-info .leaderboard .saito-table {
  display: grid;
  grid-template-rows: min-content minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.arcade-game-info .leaderboard .saito-table-header {
  display: grid;
  align-items: center;
  min-height: 4.8rem;
  padding-block: 0.7rem;
  box-sizing: border-box;
}

/* Score is a plain header here — not League's help link. */
.arcade-game-info .league-score-header {
  text-decoration: none;
  cursor: inherit;
}

.arcade-game-info .leaderboard .saito-table-body {
  min-height: 0;
  overflow: auto;
}

.arcade-game-info .saito-table-body,
.arcade-game-info .saito-table-rank,
.arcade-game-info .saito-table-header,
.arcade-game-info .saito-table-row {
  font-size: inherit;
}

@media (max-width: 820px) {
  .arcade-game-info {
    width: min(96vw, 90rem);
    height: auto;
    max-height: min(92vh, 70rem);
    overflow: auto;
  }

  .arcade-game-info.has-leaderboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .arcade-game-info .art {
    min-height: 18rem;
    height: 18rem;
  }

  .arcade-game-info .leaderboard {
    height: auto;
    max-height: min(28rem, 45vh);
  }

  .arcade-game-info .title {
    font-size: 1.5rem;
  }
}
/* Namespace: .invite / .arcade-invite — compact invite over bright game artwork */

.invite,
.arcade-invite {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-height: 9rem;
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: transparent;
  background-blend-mode: normal;
  border-radius: var(--saito-radius);
  border: 1px solid var(--saito-border);
  color: #fff;
}

.invite .invite-title,
.arcade-invite .invite-title {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

.invite .header,
.arcade-invite .header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0.3rem 0.5rem;
  pointer-events: none;
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, #000 42%, transparent);
}

.invite .title,
.arcade-invite .title {
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--saito-font-heavy);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}

.invite .actions,
.arcade-invite .actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--saito-space-sm);
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}

.invite .details,
.arcade-invite .details {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.083rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.invite .players,
.arcade-invite .players {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0;
  column-gap: 0.3rem;
}

.invite .player,
.invite .requested,
.invite .slot,
.invite .pending,
.arcade-invite .player,
.arcade-invite .requested,
.arcade-invite .slot,
.arcade-invite .pending,
.arcade-invite .arcade-invite-pending {
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  flex: 0 0 2.4rem;
  border-radius: var(--saito-radius);
}

.invite .player .saito-identicon,
.invite .requested .saito-identicon,
.invite .pending .saito-identicon,
.arcade-invite .player .saito-identicon,
.arcade-invite .requested .saito-identicon,
.arcade-invite .pending .saito-identicon,
.arcade-invite .arcade-invite-pending .saito-identicon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--saito-radius);
}

.invite .requested,
.invite .pending,
.arcade-invite .requested,
.arcade-invite .pending,
.arcade-invite .arcade-invite-pending {
  opacity: 0.6;
  filter: grayscale(0.7);
}

.invite .slot,
.arcade-invite .slot {
  border: 1px dashed color-mix(in srgb, #fff 55%, transparent);
  background-color: color-mix(in srgb, #000 35%, transparent);
  border-radius: var(--saito-radius);
}

.invite .badge,
.arcade-invite .badge {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: auto;
  width: auto;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  font-size: 1.083rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: var(--saito-primary-foreground);
  background-color: var(--saito-primary);
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius-sm);
}

.invite.my-turn,
.arcade-invite.my-turn {
  border-color: var(--saito-primary);
}

/* Risk-mode corner ribbon — top-right folded triangle */
.invite .risk-mode-ribbon,
.arcade-invite .risk-mode-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 5.6rem;
  height: 5.6rem;
  overflow: hidden;
  pointer-events: none;
  border-top-right-radius: inherit;
}

.invite .risk-mode-ribbon::before,
.arcade-invite .risk-mode-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 5.6rem 5.6rem 0;
  border-color: transparent var(--saito-primary) transparent transparent;
  filter: drop-shadow(-1px 1px 0 color-mix(in srgb, #000 22%, transparent));
}

.invite .risk-mode-ribbon__text,
.arcade-invite .risk-mode-ribbon__text {
  position: absolute;
  top: 0.42rem;
  right: 0.18rem;
  z-index: 1;
  display: block;
  width: 3.35rem;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: var(--saito-font-heavy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 1px color-mix(in srgb, #000 28%, transparent);
}

@media screen and (max-width: 600px) {
  .invite .risk-mode-ribbon,
  .arcade-invite .risk-mode-ribbon {
    width: 4.8rem;
    height: 4.8rem;
  }

  .invite .risk-mode-ribbon::before,
  .arcade-invite .risk-mode-ribbon::before {
    border-width: 0 4.8rem 4.8rem 0;
  }

  .invite .risk-mode-ribbon__text,
  .arcade-invite .risk-mode-ribbon__text {
    top: 0.32rem;
    right: 0.1rem;
    width: 2.95rem;
    font-size: 0.68rem;
  }
}
/* Namespace: .invites — invite list host */

.invites,
.arcade-invites {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  min-width: 0;
}
/* Namespace: .arcade-sidebar-left — left navigation rail + Chat */

.arcade-sidebar-left {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: var(--saito-space-md);
  padding-bottom: var(--saito-space-sm);
  padding-inline: var(--saito-space-md) var(--saito-space-sm);
}

.arcade-sidebar-left .arcade-nav {
  flex-shrink: 0;
}

.arcade-sidebar-left > .chat-manager {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  background-image: none;
}

.arcade-sidebar-left .chat-manager-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

body.arcade-body .arcade-sidebar-left .chat-manager-list .saito-address {
  font-size: inherit;
  font-family: var(--saito-font-medium);
  font-weight: 500;
  line-height: 1.35;
}

body.arcade-body .arcade-sidebar-left .chat-manager-list .saito-userline {
  font-size: 1.083rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .arcade-sidebar-left {
    padding-inline: var(--saito-space-xs);
  }
}
/**
 * Arcade Lounge — structural namespace only.
 * Uses Saito theme variables. No button colors, no new theme definitions.
 * Buttons: use saito-button-primary, saito-button-secondary, fat.
 */

/* Root container */
.arcade-lounge {
  background: var(--saito-background);
  width: 60vw;
  max-width: 100rem;
  min-width: min(66rem, 95vw);
  height: max-content;
  max-height: 90vh;
  padding: 2rem;
  border-radius: var(--saito-radius);
  display: flex;
  flex-flow: column;
  grid-gap: 2rem;
  user-select: none;
}

.arcade-lounge-header {
  display: block;
}

.arcade-lounge-header-title {
  font-size: 4rem;
}

.arcade-lounge-header-desc {
  font-size: 2rem;
}

.arcade-lounge-header-image {
  background-size: cover;
  width: 11rem;
  height: 7rem;
  float: left;
  margin-right: 1rem;
}

.arcade-lounge-body {
  display: grid;
  row-gap: 1rem;
  grid-template-columns: 1fr;
}

.arcade-lounge-section {
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  max-height: 60vh;
}

.arcade-lounge-section .saito-table-row {
  grid-template-columns: minmax(8rem, auto) 1fr;
  grid-column-gap: min(10rem, 12vw);
}

.arcade-lounge-key {
  font-weight: bold;
}

.arcade-lounge-controls {
  display: flex;
  flex-direction: row;
  column-gap: 1rem;
  flex-flow: row-reverse;
}

.arcade-lounge-loader {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arcade-lounge-message {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.9;
}

.arcade-lounge-message-game-id,
.arcade-lounge-section-game-id-message .arcade-lounge-message {
  font-size: 1.2rem;
  text-align: center;
}

/* Invite variant: players grid */
.arcade-lounge-players {
  display: grid;
  column-gap: 2rem;
  row-gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.arcade-lounge-playerbox {
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-gap: 0;
  column-gap: 1.5rem;
  padding: 1rem;
  transition: all 0.2s;
  background-color: var(--saito-card);
  position: relative;
}

.arcade-lounge-playerbox.available_slot {
  cursor: pointer;
}

.arcade-lounge-playerbox.arcade-lounge-playerbox--requested {
  opacity: 0.6;
  filter: grayscale(0.7);
}

/* pending / leaving open-table roster changes */
.arcade-lounge-playerbox.pending,
.arcade-lounge-playerbox.leaving,
.arcade-lounge-playerbox.eliminated {
  opacity: 0.65;
  filter: grayscale(0.8);
}

.arcade-lounge-playerbox.eliminated {
  opacity: 0.5;
}

.arcade-lounge-player-note {
  align-self: center;
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.85;
}

.arcade-lounge-eliminated-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.arcade-lounge .saito-table-row.arcade-lounge-player-row {
  display: grid;
  grid-template-columns: min-content 1fr min-content 1fr;
  grid-gap: 1rem;
}

.arcade-lounge .saito-table-row {
  grid-template-columns: 4rem 1fr;
  align-items: center;
  cursor: unset;
}

.saito-identicon-box.empty-slot {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--saito-border);
  background-color: var(--saito-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arcade-lounge-playerbox > .saito-identicon-box {
  position: relative;
}

.arcade-lounge-playerbox .winner::before {
  content: '♕';
  display: inline-block;
  font-style: normal;
  position: absolute;
  /* Offsets are from the identicon box (positioned for the online dot),
     matching the crown's earlier spot relative to the playerbox. */
  top: -2.1rem;
  left: -2rem;
  font-size: 30px;
  font-weight: 900;
  color: var(--saito-red);
  text-shadow: 0 0 3px var(--saito-white);
}

/* Debug overlay (sudo) */
.arcade-lounge.debug_overlay {
  width: min(800px, 90vw);
  max-height: 100vh;
  overflow: scroll;
}

@media screen and (max-width: 1000px) {
  .arcade-lounge {
    width: 90vw;
    min-width: 60rem;
  }
}

@media screen and (max-width: 615px) {
  .arcade-lounge {
    width: 95vw;
    min-width: unset;
    display: grid;
    grid-template-rows: min-content 1fr min-content;
    grid-template-columns: minmax(100px, 1fr);
  }

  .arcade-lounge-body {
    min-height: 0;
    max-height: 100%;
  }

  .arcade-lounge-controls {
    row-gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap-reverse;
  }

  .arcade-lounge-controls > .saito-button-primary,
  .arcade-lounge-controls > .saito-button-secondary {
    width: 100%;
  }

  .arcade-lounge-controls > div {
    flex-grow: 1;
    margin: 0;
  }

  .arcade-lounge-section {
    padding: unset;
  }

  .arcade-lounge-players {
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
  }
}

@media screen and (max-width: 500px) {
  .arcade-lounge-header-image {
    display: none;
  }
}

@media screen and (max-height: 550px) {
  .arcade-lounge {
    max-height: 98vh;
    grid-gap: 1rem;
    padding: 1rem;
  }
}

/*
 * Four-sector lounge
 *
 * Mirrors the wizard's four-sector composition:
 *   [ game art ] [ title / state / details ]
 *   [ players  ] [ actions                 ]
 */
.arcade-lounge.arcade-lounge--four-sector {
  display: grid;
  grid-template-columns: minmax(10rem, 55%) minmax(0, 1fr);
  grid-template-areas:
    'art info'
    'players actions';
  gap: var(--saito-space-lg);
  align-items: stretch;
  width: min(80rem, 94vw);
  min-width: unset;
  max-width: none;
  max-height: min(90vh, 56rem);
  padding: var(--saito-space-xl);
  overflow: auto;
  color: var(--saito-foreground);
}

.arcade-lounge--four-sector .arcade-lounge-art {
  grid-area: art;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--saito-radius);
  background: var(--saito-muted);
}

.arcade-lounge--four-sector .arcade-lounge-hero {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

.arcade-lounge--four-sector .arcade-lounge-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  min-width: 0;
  min-height: 0;
}

.arcade-lounge--four-sector .arcade-lounge-header-title,
.arcade-lounge--four-sector .arcade-lounge-header-desc {
  margin: 0;
  color: var(--saito-foreground);
}

.arcade-lounge--four-sector .arcade-lounge-header-title {
  font-family: var(--saito-font-heavy);
  font-size: 1.67rem;
  line-height: 1.2;
}

.arcade-lounge--four-sector .arcade-lounge-header-desc {
  font-family: var(--saito-font-medium);
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 1.4;
}

.arcade-lounge--four-sector .arcade-lounge-current-status {
  font-family: var(--saito-font-medium);
  font-size: 1.3rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.arcade-lounge--four-sector .arcade-lounge-current-stake {
  display: flex;
  gap: var(--saito-space-sm);
  align-items: baseline;
  font-size: 1.083rem;
  line-height: 1.4;
}

.arcade-lounge--four-sector .arcade-lounge-current-stake-label {
  font-family: var(--saito-font-medium);
}

.arcade-lounge--four-sector .arcade-lounge-header-desc--loading {
  display: flex;
  align-items: center;
  gap: var(--saito-space-sm);
}

.arcade-lounge--four-sector .arcade-lounge-header-desc--loading .arcade-lounge-loader {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  min-height: 0;
  margin: 0;
  border-width: 0.25rem;
}

.arcade-lounge--four-sector .arcade-lounge-details {
  min-width: 0;
  margin-top: var(--saito-space-xs);
  font-size: 1.083rem;
}

.arcade-lounge--four-sector .arcade-lounge-details[hidden] {
  display: none;
}

.arcade-lounge--four-sector .arcade-lounge-details .saito-table-body {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
}

.arcade-lounge--four-sector .arcade-lounge-details .saito-table-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
  gap: var(--saito-space-md);
  align-items: baseline;
  min-height: 1.5rem;
}

.arcade-lounge--four-sector .arcade-lounge-key {
  font-family: var(--saito-font-medium);
  font-weight: normal;
}

.arcade-lounge--four-sector .arcade-lounge-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.arcade-lounge--four-sector .arcade-lounge-details-toggle {
  align-self: flex-end;
  width: auto;
  min-height: 0;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: var(--saito-foreground);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.arcade-lounge--four-sector .arcade-lounge-details-toggle:hover,
.arcade-lounge--four-sector .arcade-lounge-details-toggle:focus {
  background: transparent;
  box-shadow: none;
}

.arcade-lounge--four-sector .arcade-lounge-section {
  grid-area: players;
  align-self: stretch;
  min-width: 0;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  row-gap: var(--saito-space-sm);
}

.arcade-lounge--four-sector .arcade-lounge-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--saito-space-sm);
}

.arcade-lounge--four-sector
  .arcade-lounge-players:not(.arcade-lounge-eliminated)
  > .arcade-lounge-playerbox:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.arcade-lounge--four-sector .arcade-lounge-playerbox.saito-table-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-areas: 'avatar identity';
  column-gap: var(--saito-space-sm);
  align-items: center;
  min-width: 0;
  min-height: 5rem;
  padding: 0.45rem 0;
  border-radius: 0;
  background: transparent;
  padding: 0 1rem;
  border-bottom: 1px solid var(--saito-border);
}

.arcade-lounge--four-sector .arcade-lounge-playerbox > .saito-identicon-box {
  grid-area: avatar;
  width: 3.25rem;
  height: 3.25rem;
}

.arcade-lounge--four-sector .arcade-lounge-player-identity {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.arcade-lounge--four-sector .arcade-lounge-player-identity > .saito-address {
  min-width: 0;
  overflow: hidden;
  font-family: var(--saito-font-medium);
  font-size: 1.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-lounge--four-sector .arcade-lounge-player-key {
  min-width: 0;
  margin-top: 0.2rem;
  overflow: hidden;
  font-size: 0.95rem;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-lounge--four-sector .arcade-lounge-player-note {
  min-width: 0;
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.arcade-lounge--four-sector .saito-identicon-box.empty-slot {
  width: 2.5rem;
  height: 2.5rem;
  border-color: var(--saito-border);
  border-radius: calc(var(--saito-radius) * 0.75);
  background: transparent;
}

.arcade-lounge--four-sector .arcade-lounge-playerbox--open {
  color: color-mix(in srgb, var(--saito-foreground) 78%, transparent);
}

.arcade-lounge--four-sector .arcade-lounge-playerbox--open.is-joinable {
  cursor: pointer;
}

.arcade-lounge--four-sector .arcade-lounge-eliminated-label {
  margin: var(--saito-space-sm) 0 0;
}

.arcade-lounge--four-sector .arcade-lounge-chat {
  display: none;
}

.arcade-lounge--four-sector .arcade-lounge-controls {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--saito-space-sm);
  align-self: stretch;
  align-content: stretch;
  min-width: 0;
}

.arcade-lounge--four-sector .arcade-lounge-controls--1-rows {
  display: flex;
  flex-flow: row nowrap;
}

.arcade-lounge--four-sector .arcade-lounge-controls--1-rows > div {
  flex: 1 1 0;
}

.arcade-lounge--four-sector .arcade-lounge-controls--2-rows {
  grid-template-rows: repeat(2, minmax(5rem, 1fr));
}

.arcade-lounge--four-sector
  .arcade-lounge-controls--2-rows.arcade-lounge-controls--2-actions
  > div {
  grid-column: 1 / -1;
}

.arcade-lounge--four-sector
  .arcade-lounge-controls--2-rows.arcade-lounge-controls--1-actions
  > div {
  grid-row: 2;
}

.arcade-lounge--four-sector .arcade-lounge-controls--3-rows {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(5rem, 1fr));
}

.arcade-lounge--four-sector
  .arcade-lounge-controls--3-rows.arcade-lounge-controls--2-actions::before {
  content: '';
  display: block;
  grid-row: 1;
  order: 0;
}

.arcade-lounge--four-sector
  .arcade-lounge-controls--3-rows.arcade-lounge-controls--1-actions
  > div {
  grid-row: 3;
}

.arcade-lounge--four-sector .arcade-lounge-controls > div {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  width: 100%;
  min-width: 0;
  height: 3.6rem;
  min-height: 3.6rem;
  align-self: center;
  margin: 0;
  padding: 0 var(--saito-space-md);
  font-family: var(--saito-font-medium);
  font-size: 1.6rem;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
}

.arcade-lounge--four-sector .arcade-lounge-controls > div:only-child {
  grid-column: 1 / -1;
}

.arcade-lounge--four-sector #arcade-game-controls-cancel-join,
.arcade-lounge--four-sector #arcade-game-controls-cancel-tentative,
.arcade-lounge--four-sector #arcade-game-controls-close-game {
  order: 1;
}

.arcade-lounge--four-sector #arcade-game-controls-invite-join {
  gap: 0.55rem;
}

.arcade-lounge--four-sector.arcade-lounge
  .arcade-lounge-controls--in-play
  #arcade-game-controls-continue-game {
  grid-column: 1 / -1;
  order: 3;
}

@media screen and (max-width: 600px) {
  .arcade-lounge.arcade-lounge--four-sector {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      'art'
      'info'
      'players'
      'actions';
    width: min(96vw, 64rem);
    padding: var(--saito-space-lg);
  }

  .arcade-lounge--four-sector .arcade-lounge-hero {
    min-height: 10rem;
  }
}

@media screen and (max-width: 420px) {
  .arcade-lounge--four-sector .arcade-lounge-players,
  .arcade-lounge--four-sector .arcade-lounge-controls {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .arcade-lounge--four-sector .arcade-lounge-players > .arcade-lounge-playerbox,
  .arcade-lounge--four-sector .arcade-lounge-controls > div {
    grid-column: 1;
  }
}

@media screen and (max-height: 550px) {
  .arcade-lounge.arcade-lounge--four-sector {
    max-height: 98vh;
    gap: var(--saito-space-md);
    padding: var(--saito-space-lg);
  }
}
/* Namespace: .arcade-main — central library column */

.arcade-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: var(--saito-space-md) 0 var(--saito-space-xl);
  overflow: hidden;
  color: var(--saito-foreground);
}

.arcade-main .library {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: var(--saito-space-xs);
}

.arcade-main .intersection-anchor {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
/* Namespace: .arcade-nav — quiet left rail (RedSquare menu language) */

.arcade-nav .menu .list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  margin: 0;
  padding: 0;
}

.arcade-nav .menu .item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--saito-space-md);
  min-height: 4.2rem;
  padding: var(--saito-space-sm) var(--saito-space-md);
  border-radius: var(--saito-radius);
  cursor: pointer;
}

.arcade-nav .menu .item.active {
  background-color: var(--saito-accent);
  color: var(--saito-accent-foreground);
}

.arcade-nav .menu .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.arcade-nav .menu .icon i {
  font-size: 2.2rem;
  line-height: 1;
}

.arcade-nav .menu .icon i::before {
  -webkit-text-stroke: 1px var(--saito-muted-foreground);
  color: transparent;
}

.arcade-nav .menu .item:hover .icon i::before,
.arcade-nav .menu .item.active .icon i::before {
  -webkit-text-stroke-color: var(--saito-foreground);
}

.arcade-nav .menu .label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 601px) {
  body.arcade-body .arcade-nav .menu .label {
    font-size: 1.67rem;
  }
}

@media (max-width: 1100px) {
  .arcade-nav .menu .item {
    grid-template-columns: 2.75rem;
    justify-content: center;
    justify-items: center;
    padding-inline: var(--saito-space-xs);
  }

  .arcade-nav .menu .label {
    display: none;
  }
}
/* Non-lounge overlay rules. Lounge structure lives in arcade-lounge.css */

.overlay-invite-manager > .arcade-invites {
  margin-bottom: 0.5rem;
}

.arcade-ready-overlay.maximized-overlay .saito-overlay-closebox {
  top: -1.5rem;
  right: -1.5rem;
}

.arcade-lounge.arcade-lounge--ready-popup {
  width: min(36rem, calc(100vw - 2rem));
  min-width: unset;
  max-width: 36rem;
  padding: 2rem;
  grid-gap: var(--saito-space-lg);
  text-align: center;
}

.arcade-lounge--ready-popup .arcade-lounge-header-image {
  float: none;
  margin: 0 auto var(--saito-space-sm);
}

.arcade-lounge--ready-popup .arcade-lounge-header-desc {
  color: var(--saito-primary);
}

.arcade-lounge--ready-popup .arcade-lounge-body {
  row-gap: 0;
}

.arcade-lounge--ready-popup .arcade-lounge-message {
  margin: 0;
}

.arcade-lounge--ready-popup .arcade-ready-popup-start {
  width: 100%;
}

/*
 * Crypto staking promo — artwork lives on the overlay panel, not the backdrop.
 */

.crypto-staking-overlay {
  width: min(90rem, 96vw);
  max-height: min(92vh, 64rem);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: transparent;
  background-image: none;
}

.crypto-staking-overlay-art {
  position: relative;
  min-height: min(52rem, 80vh);
  border-radius: var(--saito-radius);
  overflow: hidden;
  background: var(--saito-muted);
}

.crypto-staking-overlay-art .hero {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crypto-staking-overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: min(52rem, 80vh);
  padding: var(--saito-space-xl);
}

.crypto-staking-overlay-copy {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  width: min(40rem, 100%);
  padding: var(--saito-space-lg);
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, #000 78%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
}

.crypto-staking-overlay-title {
  margin: 0;
  font-family: var(--saito-font-heavy);
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.crypto-staking-overlay-message,
.crypto-staking-overlay-cta {
  margin: 0;
  font-size: inherit;
  line-height: 1.5;
  color: color-mix(in srgb, #fff 92%, transparent);
}

.crypto-staking-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  line-height: inherit;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.crypto-staking-link:hover,
.crypto-staking-link:focus-visible {
  color: color-mix(in srgb, #fff 85%, var(--saito-primary));
  outline: none;
}

.saito-overlay:has(> .crypto-staking-overlay) + .saito-overlay-backdrop {
  filter: brightness(0.32) saturate(0.8);
}

@media (max-width: 700px) {
  .crypto-staking-overlay {
    width: min(96vw, 72rem);
  }

  .crypto-staking-overlay-art,
  .crypto-staking-overlay-content {
    min-height: min(40rem, 76vh);
  }

  .crypto-staking-overlay-content {
    padding: var(--saito-space-lg);
  }

  .crypto-staking-overlay-copy {
    width: 100%;
    padding: var(--saito-space-md);
  }

  .crypto-staking-overlay-title {
    font-size: 1.85rem;
  }
}
/*
 * Namespace: .arcade-settings
 * Compact informational Settings panel.
 */

.arcade-settings {
  width: min(36rem, 92vw);
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  padding: var(--saito-space-lg);
}

.arcade-settings .title {
  margin: 0;
  font-family: var(--saito-font-medium);
  font-size: 1.67rem;
  line-height: 1.3;
}

.arcade-settings .body {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
}

.arcade-settings .body p {
  margin: 0;
  line-height: 1.45;
}

.arcade-settings .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--saito-space-sm);
  margin-top: var(--saito-space-xs);
}

.arcade-settings .actions a {
  text-decoration: none;
}

@media (max-width: 600px) {
  .arcade-settings .actions {
    flex-direction: column;
  }

  .arcade-settings .actions a {
    width: 100%;
    text-align: center;
  }
}
/*
 * Namespace: .arcade-sidebar
 * Layout + RedSquare-parity typography for embedded League.
 *
 * Typography root cause (leaderboard too large):
 *   Saito `.saito-table-body` / `.saito-table-rank` default to font-size: 1.5rem.
 *   RedSquare resets those to `inherit` in redsquare-leaderboard.css.
 *   Arcade mounts League into `.redsquare-leaderboard` but does not load RS CSS,
 *   so table rows stayed at 1.5rem while RS inherited body 1.25rem.
 */

.arcade-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-lg);
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: var(--saito-space-md);
  padding-bottom: var(--saito-space-sm);
  padding-inline: var(--saito-space-sm) var(--saito-space-md);
}

/* `.saito-sidebar.right` sets height: max-content and stretches the grid row. */
body.arcade-body .saito-sidebar.right.arcade-sidebar {
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}

.arcade-sidebar .sidebar-stack,
.arcade-sidebar .arcade-leaderboard,
.arcade-sidebar .league-rankings {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  min-width: 0;
}

/* Beat `.sidebar-stack { display: flex }` so empty invites do not reserve gap. */
.arcade-sidebar .sidebar-stack[hidden] {
  display: none;
}

.arcade-sidebar .arcade-leaderboard {
  flex-shrink: 0;
}

.arcade-sidebar .arcade-leaderboard:empty {
  display: none;
}

/* Leaderboard rows — same density rules as redsquare-leaderboard.css */
.arcade-sidebar .redsquare-leaderboard .league-rankings {
  gap: var(--saito-space-sm);
}

.arcade-sidebar .redsquare-leaderboard .saito-table-body {
  max-height: none;
  overflow: visible;
}

.arcade-sidebar .redsquare-leaderboard .league-leaderboard-ranking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--saito-space-sm);
  align-items: center;
  padding-block: var(--saito-space-xs);
}

.arcade-sidebar .redsquare-leaderboard .saito-table-gamename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-sidebar .redsquare-leaderboard .saito-table-rank {
  text-align: right;
}

.arcade-sidebar .redsquare-leaderboard .saito-table-body,
.arcade-sidebar .redsquare-leaderboard .saito-table-rank {
  font-size: inherit;
}
/*
 * Namespace: .arcade-teaser-install
 * Bright full-bleed game art in the overlay; darkened copy of the same
 * art on the page backdrop. Text lives in a compact panel over the image.
 */

.arcade-teaser-install {
  width: min(72rem, 94vw);
  max-height: min(90vh, 56rem);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: transparent;
  background-image: none;
}

.arcade-teaser-install .art {
  position: relative;
  min-height: min(42rem, 72vh);
  border-radius: var(--saito-radius);
  overflow: hidden;
  background: var(--saito-muted);
}

.arcade-teaser-install .hero {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arcade-teaser-install .content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: min(42rem, 72vh);
  padding: var(--saito-space-xl);
}

.arcade-teaser-install .panel {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  width: min(32rem, 100%);
  padding: var(--saito-space-lg);
  border-radius: var(--saito-radius);
  background: color-mix(in srgb, #000 78%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
}

.arcade-teaser-install .title {
  margin: 0;
  font-family: var(--saito-font-heavy);
  font-size: 2.2rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.arcade-teaser-install .message {
  margin: 0;
  font-size: inherit;
  line-height: 1.45;
  color: #fff;
}

.arcade-teaser-install [data-action='install'] {
  align-self: stretch;
  margin-top: var(--saito-space-xs);
}

/* Page backdrop: same artwork, much darker than the overlay image. */
.saito-overlay:has(> .arcade-teaser-install) + .saito-overlay-backdrop {
  filter: brightness(0.28) saturate(0.75);
}

@media (max-width: 700px) {
  .arcade-teaser-install {
    width: min(96vw, 72rem);
  }

  .arcade-teaser-install .art,
  .arcade-teaser-install .content {
    min-height: min(34rem, 70vh);
  }

  .arcade-teaser-install .content {
    padding: var(--saito-space-lg);
  }

  .arcade-teaser-install .panel {
    width: 100%;
    padding: var(--saito-space-md);
  }

  .arcade-teaser-install .title {
    font-size: 1.67rem;
  }
}
/*
 * Namespace: .teasers / .teaser
 *
 * Card geometry from NWASM `.nwasm-main .game` (nwasm-main.css):
 *   height/min-height: 18rem (16.5 / 15.5 / 14.5 / 15 at breakpoints)
 *   gap: var(--saito-space-lg)
 *   border: 2px solid var(--saito-border)
 *   border-radius: calc(var(--saito-radius) + 0.15rem)
 */

.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--saito-space-lg);
  width: 100%;
  padding: var(--saito-space-md) 0 var(--saito-space-lg);
}

.teaser {
  position: relative;
  display: block;
  width: 100%;
  height: 18rem;
  min-height: 18rem;
  padding: 0;
  border: 2px solid var(--saito-border);
  border-radius: calc(var(--saito-radius) + 0.15rem);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: var(--saito-card);
  color: var(--saito-foreground);
  box-shadow: var(--saito-elevation-0);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.teaser:hover,
.teaser:focus-visible {
  border-color: var(--saito-primary);
  box-shadow: var(--saito-elevation-3);
  transform: translateY(-2px);
  outline: none;
}

.teaser .art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--saito-muted);
}

.teaser .title {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0 var(--saito-space-sm);
  font-family: var(--saito-font-heavy);
  font-size: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: inherit;
  background-color: color-mix(in srgb, var(--saito-background) 55%, transparent);
}

.teaser .footer {
  position: absolute;
  z-index: 2;
  right: var(--saito-space-xs);
  bottom: var(--saito-space-xs);
  display: flex;
  align-items: center;
  gap: var(--saito-space-xs);
}

/*
 * Rank chip — same semantic class as arcade2 (arcade-invite-badge),
 * scaled to the compact NWASM-sized card.
 */
.teaser .footer .leaderboard-rank,
.teaser .footer .arcade-invite-badge {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: var(--saito-radius-sm);
  font-size: 1.083rem;
  font-family: var(--saito-font-heavy);
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  background: var(--saito-primary);
  color: var(--saito-primary-foreground);
  box-shadow: var(--saito-elevation-1);
}

/*
 * Install corner — small red triangle in the bottom-right of the card.
 * Artwork remains the dominant visual; INSTALL is a status marker only.
 */
.teaser.install .footer {
  inset: auto 0 0 auto;
  width: 5.2rem;
  height: 5.2rem;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saito-red-dark);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.teaser.install .footer .install-label {
  display: block;
  transform: rotate(-45deg) translate(0.15rem, 0.7rem);
  font-family: var(--saito-font-heavy);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.06rem;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--saito-primary-foreground, #fff);
}

/* Teasing / install-options state — in-card next actions */
.teaser.teasing .actions {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-xs);
  padding: var(--saito-space-sm);
  background: color-mix(in srgb, var(--saito-background) 78%, transparent);
}

.teaser.teasing .actions .action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.8rem;
  padding: 0 var(--saito-space-sm);
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius-sm);
  background: var(--saito-card);
  color: var(--saito-foreground);
  font-family: var(--saito-font-medium);
  font-size: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.teaser.teasing .actions .action:hover,
.teaser.teasing .actions .action:focus-visible {
  border-color: var(--saito-primary);
  outline: none;
}

.teaser.teasing .actions .action[data-action-id='install'] {
  background: var(--saito-primary);
  border-color: var(--saito-primary);
  color: var(--saito-primary-foreground);
}

.teaser.installing {
  opacity: 0.72;
  pointer-events: none;
}

.teaser.error {
  border-color: var(--saito-red-dark);
}

/* + Add Game — same footprint; dedicated tile art */
.teaser.add .art {
  background-image: url('/arcade/img/add_game.png');
}

@media (max-width: 1400px) {
  .teaser {
    height: 16.5rem;
    min-height: 16.5rem;
  }
}

@media (max-width: 1100px) {
  .teasers {
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  }

  .teaser {
    height: 15.5rem;
    min-height: 15.5rem;
  }
}

@media (max-width: 800px) {
  .teasers {
    grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
    gap: var(--saito-space-md);
  }

  .teaser {
    height: 14.5rem;
    min-height: 14.5rem;
  }
}

@media (max-width: 520px) {
  .teasers {
    grid-template-columns: 1fr;
  }

  .teaser {
    height: 15rem;
    min-height: 15rem;
  }
}
/*
 * Namespace: .arcade-wizard
 *
 * Grid:
 *   [ art ]      [ title / description ]
 *   [ settings ] [ CREATE PUBLIC INVITE ]
 *
 * Invite menu is absolutely positioned — opening it does not change overlay size.
 */

.arcade-wizard {
  display: flex;
  flex-direction: column;
  width: min(80rem, 94vw);
  max-height: min(90vh, 56rem);
  padding: var(--saito-space-xl);
  overflow: visible;
  color: var(--saito-foreground);
}

.arcade-wizard .body {
  display: grid;
  grid-template-columns: minmax(10rem, 55%) minmax(0, 1fr);
  grid-template-areas:
    'art info'
    'settings actions';
  gap: var(--saito-space-lg);
  align-items: stretch;
  min-height: 0;
}

.arcade-wizard .art {
  grid-area: art;
  min-height: 0;
  border-radius: var(--saito-radius);
  overflow: hidden;
  background: var(--saito-muted);
}

.arcade-wizard .hero {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

.arcade-wizard .info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  min-width: 0;
  min-height: 0;
}

.arcade-wizard .title {
  font-family: var(--saito-font-heavy);
  font-size: 1.67rem;
  line-height: 1.2;
}

.arcade-wizard .description {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--saito-foreground);
  max-height: min(17rem, 28vh);
  overflow: auto;
}

.arcade-wizard .publisher {
  font-size: 1.083rem;
  line-height: 1.4;
  color: var(--saito-foreground);
}

.arcade-wizard .publisher span {
  font-family: var(--saito-font-medium);
}

.arcade-wizard .settings {
  grid-area: settings;
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-sm);
  min-width: 0;
  max-width: 100%;
}

.arcade-wizard .settings .overlay-input {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  overflow: hidden;
  background: var(--saito-secondary);
}

.arcade-wizard .settings .overlay-input select,
.arcade-wizard .settings .overlay-input .saito-form-select {
  width: 100%;
  height: 3.2rem;
  min-height: 3.2rem;
  margin: 0;
  padding: 0 3.2rem 0 0.9rem;
  line-height: 1.2;
  appearance: none;
  background-color: transparent;
  color: var(--saito-foreground);
  border: none;
  border-radius: 0;
  background-image: none;
}

.arcade-wizard .settings .overlay-input::after {
  content: '\25BC';
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  line-height: 1;
  pointer-events: none;
  border: none;
  border-left: 1px solid var(--saito-border);
  border-radius: 0;
  background: transparent;
  color: var(--saito-foreground);
}

.arcade-wizard #arcade-advance-opt {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--saito-space-sm);
  min-height: 3.2rem;
}

.arcade-wizard
  #arcade-advance-opt:has(.game-wizard-crypto-hook)
  > :is(.advanced-btn, .game-wizard-crypto-hook) {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.arcade-wizard .advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 auto;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: var(--saito-secondary);
  color: var(--saito-foreground);
  cursor: pointer;
}

.arcade-wizard .advanced-btn:hover,
.arcade-wizard .advanced-btn:focus-visible {
  border-color: var(--saito-primary);
  color: var(--saito-foreground);
  outline: none;
}

.arcade-wizard .game-wizard-crypto-hook {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: var(--saito-secondary);
  color: var(--saito-foreground);
  cursor: pointer;
  user-select: none;
}

.arcade-wizard .game-wizard-crypto-hook::after {
  content: 'crypto';
  font-family: var(--saito-font-medium);
  text-transform: none;
}

.arcade-wizard .game-wizard-crypto-hook:hover,
.arcade-wizard .game-wizard-crypto-hook:focus-visible {
  border-color: var(--saito-primary);
  color: var(--saito-foreground);
  outline: none;
}

.arcade-wizard .game-wizard-crypto-hook[data-amount] {
  border-color: var(--saito-primary);
  background: color-mix(in srgb, var(--saito-primary) 14%, transparent);
  color: var(--saito-foreground);
}

.arcade-wizard .actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.arcade-wizard .invite-control {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 4.5rem;
  height: 100%;
  border-radius: var(--saito-radius);
  overflow: visible;
  background: var(--saito-button-primary-background, var(--saito-primary));
  color: var(--saito-button-primary-foreground, var(--saito-primary-foreground));
}

.arcade-wizard .invite-primary {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  min-height: 4.5rem;
  margin: 0;
  padding: 0 var(--saito-space-md);
  border: none;
  border-radius: var(--saito-radius) 0 0 var(--saito-radius);
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-family: var(--saito-font-medium);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
}

.arcade-wizard .invite-primary:hover,
.arcade-wizard .invite-control:hover .invite-primary {
  background: var(--saito-button-primary-background-hover);
}

.arcade-wizard .invite-control:not(:has(.invite-toggle)) .invite-primary {
  border-radius: var(--saito-radius);
}

.arcade-wizard .invite-toggle {
  flex: 0 0 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 4.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid
    color-mix(in srgb, var(--saito-button-primary-foreground, #fff) 28%, transparent);
  border-radius: 0 var(--saito-radius) var(--saito-radius) 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.arcade-wizard .invite-toggle:hover,
.arcade-wizard .invite-toggle[aria-expanded='true'] {
  background: var(--saito-button-primary-background-hover);
}

.arcade-wizard .invite-menu {
  position: absolute;
  top: calc(100% + var(--saito-space-xs));
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: var(--saito-space-xs);
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: var(--saito-popover);
  box-shadow: var(--saito-elevation-3);
}

.arcade-wizard .invite-menu[hidden] {
  display: none;
}

.arcade-wizard .invite-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.2rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: calc(var(--saito-radius) - 0.1rem);
  background: transparent;
  color: var(--saito-foreground);
  font-family: var(--saito-font-medium);
  font-size: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.arcade-wizard .invite-option:hover,
.arcade-wizard .invite-option:focus-visible {
  background: var(--saito-secondary);
  outline: none;
}

#advanced-options-overlay-container {
  display: flex;
  flex-direction: column;
  gap: var(--saito-space-md);
  min-width: min(50rem, 95vw);
  min-height: min(40rem, 95vh);
  max-width: 95vw;
  max-height: 95vh;
  padding: var(--saito-space-xl);
  overflow: auto;
  border: 1px solid var(--saito-border);
  border-radius: var(--saito-radius);
  background: var(--saito-card);
  color: var(--saito-foreground);
}

#advanced-options-overlay-container > * {
  max-width: 100%;
}

@media (max-width: 600px) {
  .arcade-wizard {
    width: min(96vw, 64rem);
    padding: var(--saito-space-lg);
  }

  .arcade-wizard .body {
    grid-template-columns: 1fr;
    grid-template-areas:
      'art'
      'info'
      'actions'
      'settings';
  }

  .arcade-wizard .hero {
    min-height: 10rem;
  }
}
/* [Saitoverse] Scoped RedSquare-Feel Card & Border Polish for /arcade */
body.arcade-body .arcade-main .teaser.add,
body.arcade-body .arcade-nav [data-nav="settings"],
body.arcade-body .arcade-sidebar-left .arcade-nav,
.arcade-main .teaser.add,
.arcade-nav [data-nav="settings"],
.arcade-sidebar-left .arcade-nav {
  display: none !important;
}

:root:root:root:root:root:root:root body.arcade-body .arcade-sidebar-left > .chat-manager,
:root:root:root:root:root:root:root .arcade-sidebar-left > .chat-manager {
  flex: 0 1 auto !important;
  margin: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
  background-color: var(--saito-card, #000000) !important;
  box-shadow: none !important;
  padding: 0.85rem 0 0.35rem !important;
  gap: 0.15rem !important;
  box-sizing: border-box !important;
}

:root:root:root:root:root:root:root body.arcade-body .arcade-sidebar-left .chat-manager-list,
:root:root:root:root:root:root:root .arcade-sidebar-left .chat-manager-list {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

body.arcade-body .arcade-sidebar-left .chat-manager .chat-manager-header,
body.arcade-body .arcade-sidebar-left .chat-manager .saito-sidebar-header,
.arcade-sidebar-left .chat-manager .chat-manager-header,
.arcade-sidebar-left .chat-manager .saito-sidebar-header {
  padding: 0 1.25rem 0.55rem !important;
  margin: 0 !important;
  font-family: var(--saito-font-medium, var(--saito-font)) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: 1.45rem !important;
  color: var(--saito-foreground) !important;
}

body.arcade-body .arcade-sidebar-left .chat-manager .chat-manager-title,
.arcade-sidebar-left .chat-manager .chat-manager-title {
  font-family: var(--saito-font-medium, var(--saito-font)) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: 1.45rem !important;
  color: var(--saito-foreground) !important;
}

body.arcade-body .arcade-sidebar-left .chat-manager-list .saito-user,
.arcade-sidebar-left .chat-manager-list .saito-user {
  padding: 0.65rem 1.25rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  transition: background-color 0.15s ease !important;
}

body.arcade-body .arcade-sidebar-left .chat-manager-list .saito-user:hover,
.arcade-sidebar-left .chat-manager-list .saito-user:hover {
  background-color: color-mix(in srgb, var(--saito-foreground) 5%, transparent) !important;
}

/* Single-Scroller Lobby Leaderboard */
.splash-page-leaderboard {
  overflow: hidden !important;
  max-height: none !important;
}

.splash-page-leaderboard .league-leaderboard,
.splash-page-leaderboard .saito-table {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.splash-page-leaderboard .saito-table-body {
  max-height: min(520px, 62vh) !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.arcade-body .arcade-main .teaser,
.arcade-main .teaser {
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
  background-color: color-mix(in srgb, var(--saito-card, var(--saito-background)) 92%, var(--saito-foreground) 3%) !important;
  overflow: hidden !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

body.arcade-body .arcade-main .teaser:hover,
.arcade-main .teaser:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(in srgb, var(--saito-primary) 58%, var(--saito-border, var(--saito-border-color, #2f3336))) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32) !important;
}

body.arcade-body .arcade-main .teaser .title,
.arcade-main .teaser .title {
  padding: 0.75rem 1.15rem !important;
  font-family: var(--saito-font-medium, var(--saito-font)) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
}

:root:root:root:root:root:root:root body.arcade-body .arcade-sidebar .arcade-leaderboard.redsquare-leaderboard:not(:empty),
:root:root:root:root:root:root:root .arcade-sidebar .arcade-leaderboard.redsquare-leaderboard:not(:empty) {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
  background-color: var(--saito-card, #000000) !important;
  padding: 0.85rem 0 0.35rem !important;
  gap: 0.15rem !important;
  box-sizing: border-box !important;
}

body.arcade-body .arcade-sidebar .arcade-leaderboard .saito-sidebar-element,
.arcade-sidebar .arcade-leaderboard .saito-sidebar-element,
body.arcade-body .arcade-sidebar .arcade-leaderboard .league-rankings,
.arcade-sidebar .arcade-leaderboard .league-rankings {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

body.arcade-body .arcade-sidebar .arcade-leaderboard h5.saito-sidebar-header,
.arcade-sidebar .arcade-leaderboard h5.saito-sidebar-header {
  padding: 0 1.25rem 0.55rem !important;
  margin: 0 !important;
  font-family: var(--saito-font-medium, var(--saito-font)) !important;
  font-weight: 400 !important;
  font-synthesis: none !important;
  font-size: 1.45rem !important;
  color: var(--saito-foreground) !important;
}

body.arcade-body .arcade-sidebar .arcade-leaderboard .league-leaderboard-ranking,
.arcade-sidebar .arcade-leaderboard .league-leaderboard-ranking {
  padding: 0.65rem 1.25rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: background-color 0.15s ease !important;
}

body.arcade-body .arcade-sidebar .arcade-leaderboard .league-leaderboard-ranking:hover,
.arcade-sidebar .arcade-leaderboard .league-leaderboard-ranking:hover {
  background-color: color-mix(in srgb, var(--saito-foreground) 5%, transparent) !important;
}

/* Preserve inline background-image on .arcade-invite! Never set background shorthand here. */
body.arcade-body .arcade-invite,
.arcade-sidebar .arcade-invite,
.arcade-main .arcade-invite,
.redsquare-arcade .arcade-invite {
  border-radius: 14px !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
}

body.arcade-body .arcade-game-info .art,
.arcade-game-info .art {
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
  overflow: hidden !important;
}

body.arcade-body .arcade-game-info .leaderboard,
.arcade-game-info .leaderboard {
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--saito-border, var(--saito-border-color, #2f3336)) 85%, transparent) !important;
  overflow: hidden !important;
}

body.arcade-body .arcade-game-info .leaderboard .saito-table-header,
.arcade-game-info .leaderboard .saito-table-header,
body.arcade-body .arcade-game-info .leaderboard .saito-table-row,
.arcade-game-info .leaderboard .saito-table-row {
  padding-inline: 1.25rem !important;
}

.arcade-wizard {
  overflow: visible !important;
}

.arcade-wizard .art {
  border-radius: 12px !important;
  overflow: hidden !important;
}

.arcade-wizard .settings {
  justify-content: flex-end !important;
}

.arcade-wizard .actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  align-self: end !important;
}

.arcade-wizard .sv-wizard-chat-announce {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid color-mix(in srgb, var(--saito-primary, #1d9bf0) 42%, var(--saito-border, #2f3336)) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--saito-primary, #1d9bf0) 13%, var(--saito-card, rgba(22, 24, 28, 0.92))) 0%,
    color-mix(in srgb, var(--saito-primary, #1d9bf0) 5%, var(--saito-card, rgba(22, 24, 28, 0.92))) 100%
  ) !important;
  color: var(--saito-foreground, #e7e9ea) !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.arcade-wizard .sv-wizard-chat-announce[hidden] {
  display: none !important;
}

.arcade-wizard .sv-wizard-chat-announce:hover {
  border-color: var(--saito-primary, #1d9bf0) !important;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--saito-primary, #1d9bf0) 20%, transparent) !important;
}

.arcade-wizard .sv-wizard-chat-announce:has(input:checked) {
  border-color: var(--saito-primary, #1d9bf0) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--saito-primary, #1d9bf0) 24%, var(--saito-card, rgba(22, 24, 28, 0.95))) 0%,
    color-mix(in srgb, var(--saito-primary, #1d9bf0) 12%, var(--saito-card, rgba(22, 24, 28, 0.95))) 100%
  ) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--saito-primary, #1d9bf0) 45%, transparent),
              0 6px 20px color-mix(in srgb, var(--saito-primary, #1d9bf0) 24%, transparent) !important;
}

.arcade-wizard .sv-wizard-chat-announce input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  margin: 0 !important;
}

.arcade-wizard .sv-wizard-chat-announce-box {
  flex: 0 0 2rem !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 6px !important;
  border: 1.5px solid color-mix(in srgb, var(--saito-primary, #1d9bf0) 70%, var(--saito-foreground, #e7e9ea)) !important;
  background: color-mix(in srgb, var(--saito-background, #000000) 65%, transparent) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: transparent !important;
  font-size: 1.1rem !important;
  transition: all 0.16s ease !important;
}

.arcade-wizard .sv-wizard-chat-announce:has(input:checked) .sv-wizard-chat-announce-box {
  background: var(--saito-primary, #1d9bf0) !important;
  border-color: var(--saito-primary, #1d9bf0) !important;
  color: var(--saito-badge-text, #ffffff) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--saito-primary, #1d9bf0) 55%, transparent) !important;
}

.arcade-wizard .sv-wizard-chat-announce-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.arcade-wizard .sv-wizard-chat-announce-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  font-family: var(--saito-font-medium, var(--saito-font, sans-serif)) !important;
  font-size: 1.16rem !important;
  line-height: 1.25 !important;
  color: var(--saito-foreground, #e7e9ea) !important;
}

.arcade-wizard .sv-wizard-chat-announce-title i {
  color: var(--saito-primary, #1d9bf0) !important;
  font-size: 1.12rem !important;
}

.arcade-wizard .sv-wizard-chat-announce-sub {
  font-family: var(--saito-font, sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  color: var(--saito-muted-foreground, var(--saito-font-color-light, #8b98a5)) !important;
}

#chat-invite-link.sv-link-already-shared {
  opacity: 0.55 !important;
  cursor: default !important;
}

.arcade-wizard .invite-control {
  height: 4.4rem !important;
  min-height: 4.4rem !important;
  max-height: 4.5rem !important;
  border-radius: 10px !important;
}

.arcade-wizard .invite-primary {
  min-height: 4.4rem !important;
  border-radius: 10px 0 0 10px !important;
}

.arcade-wizard .invite-control:not(:has(.invite-toggle)) .invite-primary {
  border-radius: 10px !important;
}

.arcade-wizard .invite-toggle {
  min-height: 4.4rem !important;
  border-radius: 0 10px 10px 0 !important;
}
