:root {
  color-scheme: dark;
  --ink: #071015;
  --ink-2: #0b171d;
  --ink-3: #11242c;
  --paper: #f2eee7;
  --paper-strong: #fffdf8;
  --muted: #b9c7cb;
  --muted-dark: #46585f;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(7, 16, 21, 0.2);
  --lime: #00ff7f;
  --pink: #ef00dd;
  --cyan: #8df5ff;
  --amber: #ffc65a;
  --red: #ff5d6c;
  --green: #72e69d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --content: 1180px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 92% 6%, rgba(239, 0, 221, 0.13), transparent 28rem),
    radial-gradient(circle at 5% 32%, rgba(0, 255, 127, 0.08), transparent 30rem),
    var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.environment-banner[hidden] {
  display: none;
}

.environment-banner {
  position: sticky;
  z-index: 120;
  top: 0;
  display: flex;
  min-height: 40px;
  padding: 7px 16px;
  border-bottom: 1px solid #3b2a00;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1f1600;
  background: #ffd36a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.environment-banner strong {
  padding: 2px 7px;
  border: 1px solid #1f1600;
  border-radius: 6px;
  color: #fff8e6;
  background: #1f1600;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.environment-banner-compact {
  display: none;
}

html[data-environment="staging"] .app-header,
html[data-environment="staging"] .offline-note {
  top: 40px;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  place-items: center;
  gap: 32px;
}

.boot-screen img,
.brand-logo {
  display: block;
  width: auto;
  height: 31px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
}

.auth-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 88px);
  align-content: space-between;
  background:
    linear-gradient(145deg, rgba(4, 10, 13, 0.3), rgba(4, 10, 13, 0.88)),
    linear-gradient(120deg, #0b222a, #091116 62%);
}

.auth-stage::before,
.game-arena::before,
.guest-hero::before {
  content: "";
  position: absolute;
  inset: -14%;
  opacity: 0.5;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(141, 245, 255, 0.24) 49.8%, rgba(141, 245, 255, 0.24) 50.2%, transparent 50.3%),
    radial-gradient(circle at center, transparent 0 12%, rgba(141, 245, 255, 0.18) 12.2% 12.7%, transparent 13%),
    linear-gradient(rgba(141, 245, 255, 0.14), rgba(141, 245, 255, 0.14)) center 22% / 70% 1px no-repeat,
    linear-gradient(rgba(141, 245, 255, 0.14), rgba(141, 245, 255, 0.14)) center 78% / 70% 1px no-repeat;
  transform: rotate(-7deg);
  pointer-events: none;
}

.auth-stage > * {
  position: relative;
  z-index: 1;
}

.auth-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-stage h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.auth-stage h1 em {
  color: var(--pink);
  font-style: normal;
}

.auth-stage-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: #c3d1d5;
  font-size: clamp(17px, 2vw, 22px);
}

.auth-panel {
  display: grid;
  padding: clamp(32px, 6vw, 80px);
  align-content: center;
  color: var(--ink);
  background: var(--paper);
}

.auth-panel-inner {
  width: min(100%, 480px);
  margin: auto;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-panel .lead {
  margin: 0 0 32px;
  color: var(--muted-dark);
}

.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 21, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.product-name {
  overflow: hidden;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #dbe5e8;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.readiness-button { position: relative; }
.readiness-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #102129;
  border-radius: 50%;
  background: #ffb020;
}
.readiness-button.is-ready .readiness-dot { background: var(--lime); }
.mobile-menu-button { display: none; }

.user-chip {
  display: flex;
  min-height: 44px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.04);
}

.user-chip-copy {
  display: grid;
  text-align: right;
}

.user-chip-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.app-main {
  width: min(calc(100% - 40px), var(--content));
  margin: auto;
  padding: 42px 0 96px;
}

.team-switcher {
  display: flex;
  overflow-x: auto;
  margin: -8px 0 18px;
  padding: 8px 2px 6px;
  gap: 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.team-switch {
  display: flex;
  min-width: 180px;
  min-height: 62px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
  gap: 10px;
  scroll-snap-align: start;
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.team-switch-mark,
.managed-team-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.team-switch > span:last-child {
  display: grid;
}

.team-switch small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-switch strong {
  font-size: 14px;
}

.team-switch[aria-current="true"] {
  border-color: transparent;
  color: var(--ink);
  background: var(--lime);
}

.team-switch[aria-current="true"] .team-switch-mark {
  color: var(--paper-strong);
  background: var(--ink);
}

.team-switch[aria-current="true"] small {
  color: #24443a;
}

.game-picker {
  display: flex;
  overflow-x: auto;
  margin: -8px 0 14px;
  padding: 8px 2px 10px;
  gap: 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.game-tab {
  display: grid;
  min-width: 154px;
  min-height: 64px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-snap-align: start;
  text-align: left;
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.035);
}

.game-tab span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.game-tab strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-tab[aria-current="true"] {
  border-color: rgba(0, 255, 127, 0.55);
  color: var(--ink);
  background: var(--lime);
}

.game-tab[aria-current="true"] span {
  color: rgba(7, 16, 21, 0.7);
}

.source-strip {
  display: flex;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 127, 0.2);
  border-radius: 12px;
  align-items: center;
  gap: 9px;
  color: #b8c7cb;
  background: rgba(0, 255, 127, 0.055);
  font-size: 12px;
}

.source-strip strong {
  color: #e5eeeb;
}

.source-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(0, 255, 127, 0.1);
}

.source-link {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  color: var(--lime);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.game-arena {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(141, 245, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 0, 221, 0.25), transparent 24rem),
    linear-gradient(135deg, #102933, #081318 72%);
}

.game-arena::before {
  inset: -40% 20% -40% 40%;
  opacity: 0.65;
  transform: rotate(-14deg);
}

.arena-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
}

.match-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-logo {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-logo-initials {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.match-title {
  margin: 10px 0 0;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.match-title .opponent {
  display: block;
  color: #b8c7cb;
  font-weight: 520;
}

.match-meta {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill,
.status-pill {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  color: #d6e0e3;
  background: rgba(5, 12, 15, 0.3);
  font-size: 13px;
  font-weight: 680;
}

.arena-summary {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(4, 10, 13, 0.58);
  backdrop-filter: blur(14px);
}

.summary-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.summary-number strong {
  color: var(--lime);
  font-size: clamp(50px, 7vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.summary-number span {
  color: var(--muted);
  font-weight: 700;
}

.summary-copy {
  margin: 10px 0 22px;
  color: #c9d5d8;
}

.quota-stack {
  display: grid;
  gap: 18px;
}

.quota-line {
  display: grid;
  gap: 8px;
}

.quota-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.quota-head span {
  color: #c2d0d4;
}

.quota-head strong {
  font-size: 15px;
}

.quota-track {
  appearance: none;
  display: block;
  width: 100%;
  overflow: hidden;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.quota-track::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
}

.quota-track::-webkit-progress-value,
.quota-track::-moz-progress-bar {
  border-radius: inherit;
  background: var(--lime);
  transition: width 280ms ease;
}

.quota-line.full .quota-track::-webkit-progress-value,
.quota-line.full .quota-track::-moz-progress-bar {
  background: var(--pink);
}

.arena-actions {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 780;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: #04110c;
  background: var(--lime);
  box-shadow: 0 12px 32px rgba(0, 255, 127, 0.18);
}

.button-primary:hover {
  background: #3dff9e;
}

.button-secondary {
  color: var(--paper-strong);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.button-quiet {
  min-height: 44px;
  padding: 0 14px;
  color: currentColor;
  border-color: currentColor;
  background: transparent;
  opacity: 0.82;
}

.button-danger {
  color: white;
  border-color: #a73344;
  background: #842334;
}

.button-small {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
}

.form-light-button {
  color: var(--ink);
  border-color: #9ca7aa;
  background: #ffffff;
}

.form-light-button:hover {
  border-color: #64747a;
  background: #f7f7f4;
}

.button svg,
.icon-button svg,
.section-icon svg,
.meta-pill svg,
.private-label svg,
.info-icon svg,
.ai-glyph svg,
.briefing-note svg,
.confirmed-mark svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  place-items: center;
  color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.04);
}

.board-section {
  margin-top: 54px;
}

.section-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
}

.segmented button[aria-selected="true"] {
  color: var(--ink);
  background: var(--paper-strong);
}

.guest-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.board-row {
  display: grid;
  min-height: 88px;
  padding: 18px 20px;
  grid-template-columns: minmax(210px, 1.4fr) minmax(160px, 1fr) 90px minmax(145px, 0.8fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.board-row:last-child {
  border-bottom: 0;
}

.guest-identity {
  min-width: 0;
}

.guest-identity strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-identity span,
.board-muted {
  color: var(--muted);
  font-size: 13px;
}

.partner-page .board-muted,
dialog .board-muted {
  color: #53636a;
}

.ticket-type {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-mark {
  width: 9px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pink);
}

.ticket-mark.seat {
  background: var(--cyan);
}

.status-select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper-strong);
  background: #13252c;
  font-weight: 700;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.editing-context {
  display: flex;
  padding: 16px 18px;
  border: 1px solid #b8c5c9;
  border-radius: 16px;
  align-items: center;
  gap: 14px;
  color: #102129;
  background: #f2eee7;
}
.editing-context p { margin: 4px 0 0; color: #46575e; }

.mobile-menu-list { display: grid; gap: 10px; }
.mobile-menu-action {
  display: grid;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #b9c5c9;
  border-radius: 16px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #102129;
  background: #ffffff;
}
.mobile-menu-action > svg { width: 23px; height: 23px; fill: none; stroke: #087a47; stroke-width: 1.8; }
.mobile-menu-action span { display: grid; }
.mobile-menu-action small { margin-top: 3px; color: #52636a; }
.mobile-menu-action.is-danger > svg { stroke: #9b2222; }

.empty-state {
  display: grid;
  min-height: 260px;
  padding: 32px;
  place-items: center;
  text-align: center;
}

.empty-state-icon,
.section-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border: 1px solid rgba(0, 255, 127, 0.28);
  border-radius: 16px;
  place-items: center;
  color: var(--lime);
  background: rgba(0, 255, 127, 0.08);
}

.empty-state h3 {
  margin: 0;
  font-size: 24px;
}

.empty-state p {
  max-width: 450px;
  margin: 8px 0 22px;
  color: var(--muted);
}

.notice {
  display: flex;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #d29a28;
  border-radius: 14px;
  align-items: flex-start;
  gap: 10px;
  color: #302000;
  background: #ffe2a4;
}

.notice > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notice strong {
  display: block;
}

.notice p {
  margin: 2px 0 0;
  color: #4d390c;
  font-size: 14px;
}

.notice-critical {
  border-color: #d5485b;
  color: #4c1019;
  background: #ffd8de;
}

.notice-critical p {
  color: #69222d;
}

.form-stack {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: inherit;
  font-size: 13px;
  font-weight: 780;
}

.field small {
  color: var(--muted-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #849197;
}

.form-section {
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.form-section h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.form-section > p {
  margin: 0 0 18px;
  color: var(--muted-dark);
  font-size: 14px;
}

.form-actions {
  display: flex;
  padding-top: 4px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: #b3182b;
  font-size: 14px;
  font-weight: 680;
}

dialog {
  width: min(calc(100% - 28px), 720px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.54);
}

dialog:has(.rulebook-dialog) {
  width: min(calc(100% - 28px), 980px);
}

dialog::backdrop {
  background: rgba(2, 7, 9, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  display: flex;
  max-height: calc(100vh - 32px);
  flex-direction: column;
}

.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(242, 238, 231, 0.94);
  backdrop-filter: blur(14px);
}

.dialog-header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
}

.dialog-body {
  overflow: auto;
  padding: 24px;
}

.share-result {
  text-align: center;
}

.share-success {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 28px;
  font-weight: 900;
}

.share-result h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.share-result > p {
  color: var(--muted-dark);
}

.link-box {
  display: flex;
  margin: 20px 0;
  padding: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  align-items: center;
  gap: 8px;
  background: white;
}

.link-box code {
  overflow: hidden;
  min-width: 0;
  padding-left: 8px;
  flex: 1;
  color: #415158;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.message-kind-field {
  margin-bottom: 16px;
  text-align: left;
}

.link-security-action {
  display: inline-flex;
  min-height: 44px;
  margin: -8px 0 18px;
  padding: 7px 9px;
  border: 0;
  align-items: center;
  gap: 8px;
  color: #31464e;
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.link-security-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.share-actions .button {
  color: var(--ink);
  border-color: var(--line-dark);
  background: white;
}

.share-actions .button-primary {
  grid-column: 1 / -1;
  border-color: transparent;
  background: var(--lime);
}

.team-list {
  display: grid;
  margin-bottom: 28px;
  gap: 10px;
}

.team-person {
  display: flex;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.team-person .avatar {
  color: var(--ink);
  background: var(--lime);
}

.team-person-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.team-person-copy span {
  overflow: hidden;
  color: var(--muted-dark);
  font-size: 13px;
  text-overflow: ellipsis;
}

.source-dialog {
  min-height: min(760px, calc(100vh - 32px));
}

.source-intro {
  display: flex;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  align-items: flex-start;
  gap: 12px;
  color: #dce7e3;
  background: var(--ink-2);
}

.source-intro .ai-glyph {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
}

.source-intro svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.source-intro strong,
.source-intro p {
  display: block;
}

.source-intro p {
  margin: 3px 0 0;
  color: #aebec3;
  font-size: 13px;
}

.source-list,
.update-list {
  display: grid;
  gap: 9px;
}

.source-card {
  display: flex;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 15px;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.44);
}

.source-card-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  place-items: center;
  color: #24444c;
  background: rgba(7, 16, 21, 0.08);
  font-weight: 900;
}

.source-card-mark.official {
  color: var(--ink);
  background: var(--lime);
}

.source-card-mark svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.source-card-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.source-card-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.source-card-copy span,
.source-card-copy small {
  color: var(--muted-dark);
  font-size: 12px;
}

.source-state {
  padding: 4px 7px;
  border-radius: 999px;
  color: #174929 !important;
  background: rgba(0, 192, 91, 0.14);
  font-size: 10px !important;
  font-weight: 850;
  text-transform: uppercase;
}

.source-state-waiting {
  color: #6b5719 !important;
  background: rgba(255, 198, 90, 0.2);
}

.source-state-error {
  color: #8a2634 !important;
  background: rgba(255, 93, 108, 0.16);
}

.source-error {
  margin: 6px 0 0;
  color: #a12435;
  font-size: 12px;
}

.source-actions {
  display: flex;
  margin: 16px 0 24px;
  justify-content: flex-end;
}

.source-actions svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.source-history {
  margin-top: 24px;
}

.dialog-lead {
  margin: 0 0 22px;
  color: #43545b;
  font-size: 16px;
}

.managed-team-list {
  display: grid;
  margin-bottom: 22px;
  gap: 10px;
}

.managed-team-card {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--paper-strong);
}

.managed-team-card > div {
  display: grid;
  min-width: 0;
}

.managed-team-card small,
.managed-team-card span {
  color: #4d6067;
  font-size: 12px;
}

.managed-team-card strong {
  font-size: 16px;
}

.ai-explainer-lead {
  display: flex;
  padding: 18px;
  border: 1px solid #9bcbb6;
  border-radius: 18px;
  align-items: flex-start;
  gap: 13px;
  color: #10251e;
  background: #dcf7ea;
}

.ai-explainer-lead strong {
  font-size: 18px;
}

.ai-explainer-lead p {
  margin: 3px 0 0;
  color: #294b3f;
}

.assistant-steps {
  display: grid;
  margin: 22px 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.assistant-steps li {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 15px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: var(--paper-strong);
}

.assistant-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  place-items: center;
  color: var(--paper-strong);
  background: var(--ink);
  font-weight: 850;
}

.assistant-steps p {
  margin: 2px 0 0;
  color: #4a5d64;
  font-size: 14px;
}

.rulebook-dialog {
  width: min(100%, 980px);
}

.rulebook-intro {
  max-width: 760px;
  margin: 0 0 20px;
  color: #405159;
}

.rulebook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper-strong);
}

.rule-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b2028;
}

.rule-card > div {
  padding: 18px;
}

.rule-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.rule-card p:not(.eyebrow) {
  margin: 7px 0 0;
  color: #43565d;
  font-size: 14px;
}

.rulebook-source {
  margin: 18px 0 0;
}

.rulebook-source .button-secondary {
  color: var(--ink);
  border-color: var(--line-dark);
  background: var(--paper-strong);
}

.vip-guide-copy {
  margin-bottom: 20px;
  padding: 20px;
  border-left: 5px solid var(--lime);
  border-radius: 14px;
  color: #193029;
  background: #e2f4eb;
  font-size: 16px;
  line-height: 1.65;
}

.update-row {
  display: flex;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-dark);
  align-items: flex-start;
  gap: 10px;
}

.update-row:last-child {
  border-bottom: 0;
}

.update-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.update-row div {
  display: grid;
}

.update-row span,
.update-row small {
  color: var(--muted-dark);
  font-size: 12px;
}

.role-tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #395057;
  background: rgba(7, 16, 21, 0.08);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(calc(100% - 40px), 420px);
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--paper-strong);
  background: #16313a;
  box-shadow: var(--shadow);
  animation: toast-in 200ms ease-out;
}

.toast.error {
  border-color: rgba(255, 93, 108, 0.35);
  background: #4b1e27;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.guest-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.guest-topbar {
  display: flex;
  width: min(calc(100% - 36px), 920px);
  min-height: 82px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.guest-topbar .brand-logo {
  height: 31px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));
}

.private-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 720;
}

.guest-hero {
  position: relative;
  overflow: hidden;
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 80% 15%, rgba(239, 0, 221, 0.3), transparent 24rem),
    linear-gradient(150deg, #102a34, #071015 68%);
}

.guest-hero::before {
  inset: -50% -30% -50% 35%;
  transform: rotate(-12deg);
}

.guest-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 36px), 920px);
  min-height: 560px;
  margin: auto;
  padding: 64px 0;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
}

.invite-kicker {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 127, 0.32);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  background: rgba(0, 255, 127, 0.08);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guest-hero h1 {
  margin: 0;
  font-size: clamp(46px, 9vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.guest-hero h1 span {
  display: block;
  color: #bac9cd;
  font-weight: 500;
}

.guest-date {
  margin: 26px 0 0;
  color: #d6e1e4;
  font-size: 19px;
}

.invite-ticket {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.invite-ticket::before,
.invite-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a171c;
  transform: translateY(-50%);
}

.invite-ticket::before { left: -9px; }
.invite-ticket::after { right: -9px; }

.ticket-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite-ticket strong {
  display: block;
  margin: 8px 0 20px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.ticket-detail {
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.23);
  color: #d7e1e3;
  font-size: 14px;
}

.guest-decision {
  width: min(calc(100% - 36px), 920px);
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: 0 22px 70px rgba(7, 16, 21, 0.16);
}

.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.decision-head h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -0.04em;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guest-decision .button-secondary,
.guest-content .button-secondary {
  color: var(--ink);
  border-color: var(--line-dark);
  background: transparent;
}

.confirmed-banner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.confirmed-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 24px;
  font-weight: 900;
}

.guest-content {
  display: grid;
  width: min(calc(100% - 36px), 920px);
  margin: 48px auto 0;
  padding-bottom: 90px;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-panel {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper-strong);
}

.info-panel-wide {
  grid-column: 1 / -1;
}

.info-panel h2,
.info-panel h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.info-panel h2 {
  font-size: 30px;
}

.info-panel p {
  margin: 8px 0 0;
  color: #46585f;
}

.route-action,
.route-actions {
  margin-top: 22px !important;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.info-list {
  display: grid;
  margin: 22px 0 0;
  gap: 16px;
}

.info-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  place-items: center;
  color: #0e5037;
  background: rgba(0, 255, 127, 0.15);
  font-weight: 900;
}

.info-item strong,
.briefing-section strong {
  display: block;
  margin-bottom: 2px;
}

.info-item span {
  color: #506169;
  white-space: pre-line;
}

.briefing-note {
  display: flex;
  padding: 11px 12px;
  margin-bottom: 20px;
  border: 1px solid #9fc3b5;
  border-radius: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #193a30;
  background: #def1e9;
  font-size: 13px;
}

.ai-glyph {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
}

.explain-link {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid #557b6e;
  border-radius: 9px;
  color: #12352a;
  background: #f7fffb;
  font-size: 12px;
  font-weight: 800;
}

.briefing-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.briefing-section {
  padding: 17px;
  border-radius: 14px;
  background: rgba(7, 16, 21, 0.055);
}

.briefing-section span {
  color: #43565d;
  white-space: pre-line;
}

.source-line {
  margin-top: 18px;
  color: #68787e;
  font-size: 12px;
}

.vip-first-visit,
.rules-teaser,
.stream-panel {
  display: flex;
  padding: 24px 26px;
  border-radius: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--ink);
}

.vip-first-visit {
  border: 1px solid #a6c9ba;
  background: #dff5ea;
}

.rules-teaser {
  border: 1px solid #8fb8c4;
  background: #e1f2f6;
}

.stream-panel {
  justify-content: flex-start;
  color: var(--paper-strong);
  border: 1px solid #284b56;
  background: #0b2028;
}

.vip-first-visit h2,
.rules-teaser h2,
.stream-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.04em;
}

.vip-first-visit p:not(.eyebrow),
.rules-teaser p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #38564c;
}

.rules-teaser p:not(.eyebrow) {
  color: #3b5961;
}

.stream-panel p:not(.eyebrow) {
  margin: 7px 0 0;
  color: #c3d6dc;
}

.stream-panel .button-secondary {
  color: var(--paper-strong);
  border-color: #627a83;
  background: #142f39;
}

.stream-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 20px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
}

.stream-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.offline-note {
  position: sticky;
  z-index: 40;
  top: 0;
  padding: 8px 16px;
  color: #341f00;
  background: var(--amber);
  text-align: center;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    min-height: 44vh;
  }

  .auth-panel {
    min-height: 56vh;
  }

  .arena-grid {
    grid-template-columns: 1fr;
  }

  .game-arena::before {
    inset: -30%;
  }

  .board-row {
    grid-template-columns: minmax(170px, 1.2fr) minmax(140px, 1fr) 70px minmax(135px, 0.8fr) auto;
  }
}

@media (max-width: 720px) {
  .brand-logo {
    height: 27px;
  }

  .header-inner,
  .app-main {
    width: min(calc(100% - 24px), var(--content));
  }

  .header-inner {
    min-height: 66px;
  }

  .header-actions { flex: 0 0 auto; gap: 6px; }
  .header-actions > #install-button,
  .header-actions > #sources-button,
  .header-actions > #managed-teams-button,
  .header-actions > #team-button,
  .header-actions > #account-button { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .brand-lockup .brand-logo { width: 112px; height: auto; }

  .product-name,
  .user-chip-copy {
    display: none;
  }

  .app-main {
    padding-top: 18px;
  }

  .game-picker {
    margin-right: -12px;
  }

  .team-switcher {
    margin-right: -12px;
  }

  .game-tab {
    min-width: 138px;
  }

  .source-strip {
    flex-wrap: wrap;
  }

  .source-link {
    width: 100%;
    margin-left: 17px;
    text-align: left;
  }

  .game-arena {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .match-title {
    font-size: clamp(38px, 13vw, 58px);
  }

  .arena-grid {
    gap: 28px;
  }

  .team-logo {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .match-meta {
    margin-top: 20px;
  }

  .arena-summary {
    padding: 20px;
  }

  .arena-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 18px;
  }

  .arena-actions .button-primary {
    width: 100%;
  }

  .board-section {
    margin-top: 38px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .segmented {
    align-self: flex-start;
  }

  .guest-board {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .board-row {
    position: relative;
    display: grid;
    min-height: 0;
    margin-bottom: 10px;
    padding: 18px;
    grid-template-columns: 1fr auto;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
  }

  .guest-identity {
    grid-column: 1;
  }

  .ticket-type {
    grid-column: 1;
    grid-row: 2;
  }

  .party-count {
    grid-column: 2;
    grid-row: 1;
    font-size: 20px;
    font-weight: 850;
  }

  .status-select {
    grid-column: 1;
    grid-row: 3;
  }

  .row-actions {
    grid-column: 2;
    grid-row: 3;
  }

  .form-grid,
  .share-actions,
  .guest-content,
  .briefing-grid {
    grid-template-columns: 1fr;
  }

  .share-actions .button-primary,
  .info-panel-wide {
    grid-column: auto;
  }

  .dialog-body {
    padding: 20px;
  }

  .source-card-copy > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .managed-team-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .managed-team-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rulebook-grid {
    grid-template-columns: 1fr;
  }

  .vip-first-visit,
  .rules-teaser,
  .stream-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .vip-first-visit .button,
  .rules-teaser .button,
  .route-actions .button {
    width: 100%;
  }

  .explain-link {
    width: 100%;
    margin-left: 44px;
    text-align: left;
  }

  .guest-topbar {
    min-height: 70px;
  }

  .guest-topbar .brand-logo {
    height: 27px;
  }

  .private-label span {
    display: none;
  }

  .guest-hero-inner {
    min-height: 0;
    padding: 52px 0 82px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .guest-hero h1 {
    font-size: clamp(46px, 16vw, 70px);
  }

  .invite-ticket {
    width: min(100%, 360px);
  }

  .guest-decision {
    margin-top: -38px;
    padding: 22px;
  }

  .decision-head {
    align-items: stretch;
    flex-direction: column;
  }

  .decision-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .decision-actions .button {
    width: 100%;
  }

  .confirmed-banner {
    align-items: flex-start;
  }

  .guest-content {
    margin-top: 30px;
    padding-bottom: 54px;
  }
}

@media (max-width: 480px) {
  .environment-banner-wide {
    display: none;
  }

  .environment-banner-compact {
    display: inline;
  }

  .auth-stage,
  .auth-panel {
    padding: 28px 20px;
  }

  .auth-stage h1 {
    font-size: 44px;
  }

  .dialog-shell {
    max-height: calc(100vh - 12px);
  }

  dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 20px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }
}

/* v0.4 · Freigabe, Partnerzugang und PWA-Hilfe */
.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.approval-banner {
  display: grid;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #10242c;
}

.approval-banner .approval-mark {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  place-items: center;
  color: #06140d;
  background: var(--amber);
}

.approval-banner .approval-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.approval-banner .eyebrow { margin-bottom: 2px; }
.approval-banner strong { display: block; font-size: 18px; }
.approval-banner span { display: block; color: #c1d0d4; font-size: 13px; }
.approval-approved { border-color: rgba(0, 255, 127, 0.44); }
.approval-approved .approval-mark { background: var(--lime); }
.approval-changed { border-color: rgba(255, 198, 90, 0.62); }

.quota-partner-link {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  background: transparent;
  font-size: 12px;
  font-weight: 780;
}

.quota-partner-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quota-package-link {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  align-items: center;
  gap: 6px;
  color: #ffd074;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.quota-package-link.is-ready { color: var(--lime); }
.quota-package-link svg,
.placement-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.placement-action { color: #ffd074; }
.placement-action.is-ready { color: var(--lime); border-color: rgba(0, 255, 127, 0.46); }

dialog:has(.approval-dialog) { width: min(calc(100% - 28px), 880px); }

.approval-hero,
.partner-access-lead,
.install-visual,
.partner-boundary {
  display: flex;
  padding: 20px;
  border-radius: 18px;
  align-items: center;
  gap: 18px;
  color: var(--paper-strong);
  background: #0e222a;
}

.approval-hero p,
.partner-access-lead p,
.install-visual p,
.partner-boundary p { margin: 4px 0 0; color: #c1d0d4; }

.approval-score {
  display: flex;
  min-width: 126px;
  align-items: baseline;
  gap: 8px;
}

.approval-score strong { color: var(--lime); font-size: 52px; line-height: 1; }
.approval-score span { color: #c1d0d4; font-size: 12px; font-weight: 760; }
.approval-groups { display: grid; margin: 26px 0; grid-template-columns: 1fr 1fr; gap: 22px; }
.approval-groups section { min-width: 0; }
.approval-groups h3 { margin: 0 0 9px; font-size: 15px; }
.approval-list { display: grid; gap: 7px; }
.approval-row { display: grid; min-height: 62px; padding: 11px; border: 1px solid var(--line-dark); border-radius: 13px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.48); }
.approval-row-mark { display: grid; width: 28px; height: 28px; border-radius: 50%; place-items: center; color: #5d3d00; background: #ffd988; font-weight: 900; }
.approval-row-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.approval-row.is-ok .approval-row-mark { color: #06140d; background: var(--lime); }
.approval-row strong,
.approval-row span { display: block; }
.approval-row div > span { overflow: hidden; color: #53636a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.approval-row.is-open div > span { color: #7b5100; font-weight: 750; }
.approval-actions { display: flex; justify-content: flex-end; gap: 10px; }
.approval-actions .button-secondary {
  color: var(--ink);
  border-color: var(--line-dark);
  background: var(--paper-strong);
}
.approval-actions .button-secondary:hover { background: #ffffff; }

.partner-access-lead .ai-glyph,
.install-visual > span,
.partner-boundary > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
}

.install-visual > span svg,
.partner-boundary > span svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.install-step { display: grid; margin-top: 10px; padding: 14px; border: 1px solid var(--line-dark); border-radius: 14px; grid-template-columns: auto 1fr; gap: 12px; background: rgba(255, 255, 255, 0.48); }
.install-step > span { display: grid; width: 30px; height: 30px; border-radius: 50%; place-items: center; color: var(--ink); background: var(--lime); font-weight: 900; }
.install-step strong { display: block; }
.install-step p { margin: 2px 0 0; color: var(--muted-dark); font-size: 14px; }

.topbar-action {
  display: inline-flex;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 780;
}

.topbar-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.guest-topbar-actions { display: flex; align-items: center; gap: 12px; }

[data-visibility-toggle][aria-pressed="true"] {
  color: #04110c;
  border-color: var(--lime);
  background: var(--lime);
}

.calendar-hero,
.privacy-note {
  display: flex;
  padding: 18px;
  border-radius: 18px;
  align-items: flex-start;
  gap: 14px;
}

.calendar-hero {
  color: var(--paper-strong);
  background: #0b2028;
}

.calendar-hero > span,
.privacy-note > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
}

.calendar-hero svg,
.privacy-note svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.calendar-hero p,
.privacy-note p {
  margin: 4px 0 0;
}

.calendar-hero p { color: #d6e2e5; }

.calendar-steps { margin-bottom: 18px; }

.privacy-note {
  color: #1d332b;
  border: 1px solid #96bcac;
  background: #e0f4eb;
}

.privacy-note p { color: #324d43; }

html[data-visibility="high"] {
  --muted: #e3ebed;
  --muted-dark: #26383f;
  --line: rgba(255, 255, 255, 0.34);
  --line-dark: rgba(7, 16, 21, 0.36);
}

html[data-visibility="high"] body {
  background-color: #020608;
}

html[data-visibility="high"] .match-title .opponent,
html[data-visibility="high"] .guest-hero h1 span,
html[data-visibility="high"] .source-strip,
html[data-visibility="high"] .summary-copy,
html[data-visibility="high"] .quota-head span,
html[data-visibility="high"] .approval-banner span,
html[data-visibility="high"] .partner-hero p:last-child,
html[data-visibility="high"] .partner-boundary p,
html[data-visibility="high"] .ticket-label,
html[data-visibility="high"] .ticket-detail,
html[data-visibility="high"] .guest-date,
html[data-visibility="high"] .stream-panel p:not(.eyebrow) {
  color: #f3f7f8;
}

html[data-visibility="high"] .game-tab,
html[data-visibility="high"] .team-switch,
html[data-visibility="high"] .icon-button,
html[data-visibility="high"] .status-select,
html[data-visibility="high"] .arena-summary,
html[data-visibility="high"] .guest-board,
html[data-visibility="high"] .waitlist-board {
  border-color: rgba(255, 255, 255, 0.4);
}

html[data-visibility="high"] .briefing-section,
html[data-visibility="high"] .approval-row,
html[data-visibility="high"] .install-step,
html[data-visibility="high"] .source-card,
html[data-visibility="high"] .team-person {
  background: #ffffff;
}

html[data-visibility="high"] .button:disabled {
  opacity: 0.7;
}

.release-wait {
  display: flex;
  width: min(calc(100% - 36px), 920px);
  margin: 28px auto 0;
  padding: 26px;
  border: 1px solid #d39b31;
  border-radius: 20px;
  align-items: flex-start;
  gap: 16px;
  color: #302000;
  background: #ffe2a4;
}

.release-wait > span { display: grid; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; place-items: center; background: #f5be51; }
.release-wait svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.release-wait h2 { margin: 0; font-size: 28px; letter-spacing: -0.035em; }
.release-wait p:last-child { margin-bottom: 0; color: #4d390c; }

.party-count small { display: block; color: var(--muted); font-size: 10px; font-weight: 650; }

.partner-page { min-height: 100vh; color: var(--ink); background: var(--paper); }
.partner-hero { display: flex; min-height: 300px; padding: 54px max(24px, calc((100% - 920px) / 2)); align-items: center; justify-content: space-between; gap: 30px; color: var(--paper-strong); background: radial-gradient(circle at 86% 12%, rgba(239, 0, 221, 0.28), transparent 22rem), linear-gradient(145deg, #102b34, #071015 72%); }
.partner-hero h1 { margin: 0; font-size: clamp(46px, 8vw, 76px); line-height: 0.95; letter-spacing: -0.06em; }
.partner-hero p:last-child { margin: 14px 0 0; color: #c1d0d4; font-size: 18px; }
.partner-shield { display: grid; min-width: 150px; padding: 22px; border: 1px solid rgba(0, 255, 127, 0.38); border-radius: 20px; place-items: center; gap: 8px; color: var(--lime); background: rgba(0, 255, 127, 0.07); }
.partner-shield svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.partner-content { display: grid; width: min(calc(100% - 36px), 920px); margin: -32px auto 0; padding-bottom: 80px; gap: 20px; position: relative; z-index: 2; }
.partner-boundary { box-shadow: 0 18px 50px rgba(7, 16, 21, 0.18); }
.partner-allocation { padding: 28px; border: 1px solid var(--line-dark); border-radius: 24px; background: var(--paper-strong); box-shadow: 0 12px 36px rgba(7, 16, 21, 0.08); }
.partner-match { display: flex; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); align-items: center; justify-content: space-between; gap: 20px; }
.partner-match h2 { margin: 0; font-size: 32px; letter-spacing: -0.04em; }
.partner-match h2 span { color: #6b7a80; font-weight: 520; }
.partner-match p:last-child { margin: 7px 0 0; color: var(--muted-dark); }
.partner-quota { display: flex; min-width: 150px; align-items: baseline; gap: 8px; }
.partner-quota strong { color: #008a49; font-size: 50px; line-height: 1; }
.partner-quota span { color: var(--muted-dark); font-size: 12px; font-weight: 760; }
.partner-invite-form { margin-top: 24px; padding: 22px; border-radius: 18px; background: #e8e3da; }
.partner-guest-list { margin-top: 26px; }
.partner-guest-list h3 { margin: 0 0 10px; }
.partner-guest { display: grid; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line-dark); grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.partner-guest strong,
.partner-guest span { display: block; }
.partner-guest div > span { color: var(--muted-dark); font-size: 13px; }
.partner-status { padding: 5px 9px; border-radius: 999px; color: #0b4329; background: #c8f1d8; font-size: 12px; font-weight: 780; }
.partner-guest .icon-button { color: var(--ink); border-color: var(--line-dark); }

/* v0.7 · Gastpakete, Platzinformationen und kontrollierte Sprachassistenz */
.voice-assistant {
  overflow: hidden;
  border: 1px solid #a686cc;
  border-radius: 20px;
  color: var(--ink);
  background: #f4eff9;
}

.voice-assistant-head {
  display: grid;
  padding: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.voice-orb {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  place-items: center;
  color: #ffffff;
  background: #4d256f;
}

.voice-orb svg,
.place-card-icon svg,
.place-facts svg,
.placement-package svg,
.partner-package svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.voice-assistant-head strong,
.voice-assistant-head span { display: block; }
.voice-assistant-head span { margin-top: 3px; color: #4e3e5a; font-size: 13px; line-height: 1.45; }
.voice-example { margin: 0; color: #4e3e5a; font-size: 14px; line-height: 1.5; }

.voice-assistant-body {
  display: grid;
  padding: 0 18px 18px;
  gap: 12px;
}

.voice-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.voice-input-row textarea {
  width: 100%;
  min-height: 94px;
  padding: 12px 13px;
  border: 1px solid #876ba1;
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  resize: vertical;
}

.voice-record {
  display: grid;
  min-width: 108px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #4d256f;
  border-radius: 14px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #ffffff;
  background: #4d256f;
  font-weight: 800;
}

.voice-record svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.voice-record.is-listening { color: #071015; background: var(--lime); box-shadow: 0 0 0 5px rgba(0, 255, 127, 0.18); }
.voice-status { margin: 0; color: #4e3e5a; font-size: 13px; }

.voice-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.voice-result {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #c4b0d8;
  border-radius: 12px;
  background: #ffffff;
}

.voice-result span,
.voice-result strong { display: block; }
.voice-result span { color: #5b4968; font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: 0.06em; }
.voice-result strong { margin-top: 4px; overflow-wrap: anywhere; }
.voice-actions { display: flex; justify-content: flex-end; gap: 9px; }
.voice-actions .button-secondary { color: #2d173b; border-color: #876ba1; background: #ffffff; }
.voice-actions .button-secondary:hover { color: #1e0f28; border-color: #4d256f; background: #f8f4fb; }

.voice-assistant details {
  padding: 13px 18px 15px;
  border-top: 1px solid #c4b0d8;
  background: #e8dff1;
}

.voice-assistant summary { min-height: 30px; color: #3c244e; cursor: pointer; font-size: 13px; font-weight: 800; }
.voice-assistant details p { margin: 8px 0 0; color: #453650; font-size: 13px; line-height: 1.5; }

.placement-package,
.partner-package {
  display: flex;
  padding: 15px 16px;
  border: 1px solid #8aa69a;
  border-radius: 15px;
  align-items: flex-start;
  gap: 12px;
  color: #183c2e;
  background: #e1f1ea;
}

.placement-package > span,
.partner-package > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; place-items: center; color: #ffffff; background: #205f46; }
.placement-package strong,
.placement-package p,
.partner-package strong,
.partner-package p { display: block; }
.placement-package p,
.partner-package p { margin: 3px 0 0; color: #315547; font-size: 13px; }
.partner-package { margin: 20px 0 0; }

.place-card {
  overflow: hidden;
  border: 1px solid #80a89a;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 16, 21, 0.09);
}

.place-card-head {
  display: flex;
  padding: 24px 26px;
  align-items: flex-start;
  gap: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b3528, #07191f);
}

.place-card-head h2 { margin: 2px 0 4px; color: #ffffff; }
.place-card-head p:last-child { margin: 0; color: #d4e4df; }
.place-card-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; place-items: center; color: #071015; background: var(--lime); }

.place-facts {
  display: grid;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.place-facts > div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line-dark);
}

.place-facts > div:last-child { border-right: 0; }
.place-facts > div > span { display: grid; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px; place-items: center; color: #0d5137; background: #dff4ea; }
.place-facts small,
.place-facts strong { display: block; }
.place-facts small { color: #52636a; font-size: 11px; font-weight: 800; letter-spacing: 0.055em; text-transform: uppercase; }
.place-facts strong { margin-top: 5px; color: var(--ink); line-height: 1.38; overflow-wrap: anywhere; }
.place-note { margin: 0; padding: 15px 24px; border-top: 1px solid #d2b55f; color: #4b3800; background: #fff0b8; }

/* v0.5 · kontingentgenaue Warteliste */
.waitlist-section {
  scroll-margin-top: 86px;
  padding: 26px;
  border: 1px solid rgba(0, 255, 127, 0.22);
  border-radius: 24px;
  background: #0d2027;
}

.waitlist-total {
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 127, 0.34);
  border-radius: 999px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 820;
}

.waitlist-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.waitlist-row {
  display: grid;
  min-height: 82px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(190px, 1.2fr) minmax(160px, 1fr) 70px minmax(150px, auto);
  align-items: center;
  gap: 16px;
}

.waitlist-row:last-child { border-bottom: 0; }
.waitlist-position {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.button-wait {
  color: #4c3400;
  border-color: #b88421;
  background: #ffd988;
  box-shadow: none;
}

.button-wait:disabled { opacity: 1; }

.waitlist-row .button,
.partner-waiting .button { min-height: 44px; }

.partner-waitlist { margin-top: 24px; }
.partner-waitlist h3 { margin: 0 0 10px; }
.partner-waiting {
  display: grid;
  min-height: 66px;
  padding: 10px 0;
  border-top: 1px solid var(--line-dark);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.partner-waiting strong,
.partner-waiting div > span { display: block; }
.partner-waiting div > span { color: var(--muted-dark); font-size: 13px; }

/* v0.8 · verständlicher Online-Start */
.readiness-hero {
  display: flex;
  padding: 22px;
  border: 2px solid #c47d00;
  border-radius: 20px;
  align-items: center;
  gap: 18px;
  color: #2f2100;
  background: #fff4cf;
}

.readiness-hero.is-ready {
  color: #073521;
  border-color: #087a47;
  background: #dcf7e9;
}

.readiness-score {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  place-content: center;
  text-align: center;
  color: #ffffff;
  background: #8b5600;
}

.readiness-hero.is-ready .readiness-score { background: #087a47; }
.readiness-score strong { font-size: 28px; line-height: 1; }
.readiness-score span { margin-top: 3px; font-size: 11px; font-weight: 780; }
.readiness-hero > div:last-child > strong { font-size: 18px; }
.readiness-hero p { margin: 5px 0 0; color: inherit; line-height: 1.45; }

.readiness-groups {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.readiness-groups section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.readiness-groups h3 { margin: 0 0 10px; color: #102129; }
.readiness-list { display: grid; gap: 8px; }

.readiness-row {
  display: grid;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #d19b35;
  border-radius: 14px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #352500;
  background: #fff8df;
}

.readiness-row.is-ok {
  color: #073521;
  border-color: #6caa8b;
  background: #e8f6ee;
}

.readiness-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  place-items: center;
  color: #ffffff;
  background: #8b5600;
  font-weight: 900;
}

.readiness-row.is-ok > span { background: #087a47; }
.readiness-row svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.readiness-row strong { display: block; }
.readiness-row p { margin: 4px 0 0; color: inherit; font-size: 13px; line-height: 1.4; }

.readiness-settings {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #bac5c9;
}

.readiness-settings .form-section { padding: 0; border: 0; }

.legal-footer {
  display: flex;
  min-height: 76px;
  padding: 20px max(24px, calc((100% - 920px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #d9e4e7;
  background: #071015;
  font-size: 13px;
}

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer a { color: #ffffff; text-decoration-color: #00ff7f; text-underline-offset: 4px; }

@media (max-width: 720px) {
  .approval-banner { grid-template-columns: auto minmax(0, 1fr); }
  .approval-banner .button { width: 100%; grid-column: 1 / -1; }
  .approval-groups { grid-template-columns: 1fr; }
  .approval-actions { align-items: stretch; flex-direction: column-reverse; }
  .approval-actions .button { width: 100%; }
  .approval-hero { align-items: flex-start; flex-direction: column; }
  .guest-topbar-actions { gap: 6px; }
  .topbar-action span { display: none; }
  .partner-hero { min-height: 330px; padding: 42px 18px 74px; align-items: flex-start; flex-direction: column; }
  .partner-shield { display: flex; min-width: 0; padding: 12px 15px; border-radius: 14px; }
  .partner-content { margin-top: -38px; }
  .partner-allocation { padding: 20px; }
  .partner-match { align-items: flex-start; flex-direction: column; }
  .partner-match h2 { font-size: 28px; }
  .partner-quota { min-width: 0; }
  .partner-invite-form { padding: 18px; }
  .partner-guest { grid-template-columns: minmax(0, 1fr) auto; }
  .partner-guest .icon-button { grid-column: 2; grid-row: 1 / span 2; }
  .waitlist-section { padding: 18px; }
  .waitlist-row {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }
  .waitlist-row .guest-identity { grid-column: 2 / -1; }
  .waitlist-row .ticket-type { grid-column: 2 / -1; grid-row: 2; }
  .waitlist-row .party-count { grid-column: 3; grid-row: 1; }
  .waitlist-row .button { width: 100%; grid-column: 1 / -1; }
  .waitlist-board { overflow: visible; border: 0; background: transparent; }
  .partner-waiting { grid-template-columns: auto minmax(0, 1fr); }
  .partner-waiting .button { width: 100%; grid-column: 1 / -1; }
  .release-wait { padding: 20px; }
  .voice-input-row,
  .voice-results { grid-template-columns: 1fr; }
  .voice-record { grid-auto-flow: column; align-content: center; justify-content: center; }
  .voice-actions { align-items: stretch; flex-direction: column-reverse; }
  .voice-actions .button { width: 100%; }
  .place-card-head { padding: 20px; }
  .place-facts { grid-template-columns: 1fr; }
  .place-facts > div { padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .place-facts > div:last-child { border-bottom: 0; }
  .readiness-hero { align-items: flex-start; }
  .readiness-groups { grid-template-columns: 1fr; }
  .readiness-groups section:last-child:nth-child(odd) { grid-column: auto; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}
