:root {
  color-scheme: dark;
  --navy: #313639;
  --navy-deep: #191d1f;
  --surface: #282e31;
  --surface-raised: #32393c;
  --platinum: #d9d9d9;
  --green: #6ab37a;
  --gold: #ebbf5e;
  --blue: #8bbed4;
  --danger: #ec6363;
  --text-primary: var(--platinum);
  --text-secondary: rgba(217, 217, 217, 0.72);
  --text-muted: rgba(217, 217, 217, 0.52);
  --border: rgba(217, 217, 217, 0.16);
  --border-active: rgba(217, 217, 217, 0.36);
  --background-gradient: linear-gradient(135deg, var(--navy-deep), var(--navy) 48%, var(--navy-deep));
  --auth-gradient: linear-gradient(180deg, var(--surface-raised), var(--navy) 48%, var(--surface));
  --surface-gradient: linear-gradient(135deg, rgba(50, 57, 60, 0.95), rgba(40, 46, 49, 0.92));
  --row-gradient: linear-gradient(135deg, rgba(40, 46, 49, 0.92), rgba(49, 54, 57, 0.72));
  --primary-action: linear-gradient(135deg, var(--platinum), rgba(217, 217, 217, 0.84));
  --danger-action: linear-gradient(135deg, var(--danger), rgba(236, 99, 99, 0.78));
  --radius-card: 14px;
  --radius-control: 12px;
  --shadow-panel: 0 16px 34px rgba(0, 0, 0, 0.22);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
}

.noscript {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background-gradient);
}

.auth-layout,
.arena-background {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--background-gradient);
}

.auth-layout {
  display: grid;
  align-items: start;
  --stadium-y: 23vh;
  padding: max(34px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
  background: var(--auth-gradient);
}

.auth-layout--register {
  --stadium-y: 43vh;
}

.auth-layout::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--auth-gradient);
  pointer-events: none;
}

.auth-layout::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(49, 54, 57, 0), rgba(49, 54, 57, 0.1) 40%, rgba(49, 54, 57, 0.48) 76%, rgba(49, 54, 57, 0.82)),
    url("./assets/auth-stadium-lines.png") left max(108px, 16vh) top var(--stadium-y) / min(92vw, 620px) auto no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.arena-background::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(217, 217, 217, 0.1), transparent 26%, rgba(106, 179, 122, 0.08) 72%, transparent),
    var(--background-gradient);
  pointer-events: none;
}

.arena-background::after {
  content: "";
  position: fixed;
  top: -12vh;
  left: -12vw;
  z-index: -1;
  width: 140vw;
  height: 24vh;
  min-height: 120px;
  background: linear-gradient(100deg, rgba(217, 217, 217, 0.1), transparent 54%, rgba(106, 179, 122, 0.08));
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(-13deg);
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding-bottom: 26px;
}

.auth-header {
  margin: 0 0 28px;
  padding-top: 10px;
  text-align: center;
}

.auth-header h1 {
  margin: 0;
  color: var(--platinum);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 10px 24px rgba(25, 29, 31, 0.34);
}

.auth-form-panel {
  display: grid;
  gap: 12px;
  padding: 4px 6px;
}

.mode-switch,
.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(217, 217, 217, 0.26);
  border-radius: var(--radius-control);
  background: rgba(25, 29, 31, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-switch button,
.segmented button {
  min-height: 38px;
  border: 1px solid rgba(217, 217, 217, 0.18);
  border-radius: 10px;
  background: rgba(50, 57, 60, 0.42);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
}

.mode-switch button[aria-pressed="true"],
.segmented button[aria-pressed="true"] {
  border-color: rgba(217, 217, 217, 0.42);
  background: rgba(217, 217, 217, 0.96);
  color: var(--navy);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

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

.arena-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.arena-input {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217, 217, 217, 0.3);
  border-radius: var(--radius-control);
  background: rgba(25, 29, 31, 0.58);
  padding: 0 14px;
}

.arena-input .sf-symbol {
  flex: 0 0 auto;
  color: rgba(217, 217, 217, 0.88);
}

.arena-input input,
.arena-input textarea,
.arena-input select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--platinum);
  font-size: 17px;
  font-weight: 600;
  outline: none;
}

.arena-input input::placeholder,
.arena-input textarea::placeholder {
  color: rgba(217, 217, 217, 0.82);
  opacity: 1;
}

.arena-input:focus-within {
  border-color: rgba(217, 217, 217, 0.5);
  box-shadow: 0 0 0 4px rgba(217, 217, 217, 0.08);
}

.field-with-help {
  display: grid;
  gap: 8px;
}

.field-with-help p,
.auth-footnote {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.username-status {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
}

.username-status .availability-dot {
  flex: 0 0 auto;
  margin-right: 0;
  color: currentColor;
}

.username-status--idle {
  color: var(--text-muted) !important;
}

.username-status--checking {
  color: var(--blue) !important;
}

.username-status--available {
  color: var(--green) !important;
}

.username-status--taken,
.username-status--invalid,
.username-status--error {
  color: var(--danger) !important;
}

.username-status--checking .availability-dot {
  animation: arena-pulse 900ms ease-in-out infinite;
}

@keyframes arena-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.78);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.status-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.status-line .sf-symbol {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.arena-primary,
.arena-secondary {
  display: inline-flex;
  min-height: 50px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-control);
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: opacity 120ms ease, transform 120ms ease;
}

.arena-primary {
  background: var(--primary-action);
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(217, 217, 217, 0.16);
}

.arena-primary--danger {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--danger-action);
  color: #ffffff;
}

.arena-secondary {
  border-color: rgba(217, 217, 217, 0.24);
  background: var(--row-gradient);
  color: var(--platinum);
  box-shadow: none;
}

.arena-secondary--gold {
  border-color: rgba(235, 191, 94, 0.24);
  color: var(--gold);
}

.arena-secondary--danger {
  border-color: rgba(236, 99, 99, 0.3);
  color: var(--danger);
}

.arena-primary:active,
.arena-secondary:active,
.native-row:active,
.icon-button:active {
  transform: scale(0.985);
}

.arena-primary:disabled,
.arena-secondary:disabled {
  opacity: 0.48;
  transform: none;
}

.arena-primary[aria-busy="true"],
.arena-secondary[aria-busy="true"] {
  opacity: 0.86;
}

.button-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: arena-spin 720ms linear infinite;
}

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

.forgot-link,
.auth-toggle,
.landing-link,
.text-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.forgot-link--gold,
.text-action {
  color: var(--gold);
}

.auth-toggle,
.landing-link {
  width: 100%;
  margin-top: 14px;
}

.landing-link {
  margin-top: 8px;
  color: var(--text-muted);
}

.auth-sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  padding: 16px;
  box-shadow: var(--shadow-panel);
}

.auth-sheet h2 {
  margin: 0;
  font-size: 22px;
}

.address-results {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(217, 217, 217, 0.2);
  border-radius: var(--radius-control);
  background: rgba(25, 29, 31, 0.72);
}

.address-lookup-status {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(139, 190, 212, 0.22);
  border-radius: var(--radius-control);
  background:
    linear-gradient(135deg, rgba(139, 190, 212, 0.13), rgba(106, 179, 122, 0.08)),
    rgba(25, 29, 31, 0.72);
  color: var(--platinum);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.address-lookup-status .button-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.address-results button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
}

.address-results button + button {
  border-top: 1px solid rgba(217, 217, 217, 0.08);
}

.address-results strong,
.address-results small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-results small {
  color: var(--text-muted);
  font-size: 12px;
}

.selected-address-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(217, 217, 217, 0.22);
  border-radius: 8px;
  background: rgba(25, 29, 31, 0.78);
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.selected-address-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.selected-address-card button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--gold);
  padding: 4px 0 0;
  font-weight: 800;
  text-decoration: underline;
}

.app-layout {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.main {
  width: min(100%, 552px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(112px, calc(env(safe-area-inset-bottom) + 92px));
}

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

.public-training-main {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.public-training-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 2px;
}

.public-training-hero h1,
.public-training-hero p {
  margin: 0;
}

.public-training-hero h1 {
  color: var(--platinum);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.04;
}

.public-training-hero p:not(.public-training-kicker) {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.3;
}

.public-training-kicker {
  margin-bottom: 4px !important;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.public-training-signup {
  grid-column: 1 / -1;
  justify-self: stretch;
  margin-top: 2px;
}

.public-result-panel {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-bottom: 18px;
}

.public-result-panel h2,
.public-result-panel p {
  margin: 0;
}

.public-result-panel .arena-primary {
  grid-column: 1 / -1;
}

.screen-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 2px;
}

.screen-header h1 {
  margin: 0;
  color: var(--platinum);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.02;
}

.screen-header p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.25;
}

.sf-symbol {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.17em;
}

.icon-tile {
  display: inline-grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217, 217, 217, 0.18);
  border-radius: var(--radius-control);
  background: rgba(217, 217, 217, 0.14);
  color: var(--platinum);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.icon-tile--large {
  width: 64px;
  height: 64px;
}

.icon-tile--xl {
  width: 72px;
  height: 72px;
}

.icon-tile--green {
  border-color: rgba(106, 179, 122, 0.24);
  background: rgba(106, 179, 122, 0.14);
  color: var(--green);
}

.icon-tile--gold {
  border-color: rgba(235, 191, 94, 0.28);
  background: rgba(235, 191, 94, 0.14);
  color: var(--gold);
}

.icon-tile--blue {
  border-color: rgba(139, 190, 212, 0.28);
  background: rgba(139, 190, 212, 0.14);
  color: var(--blue);
}

.icon-tile--danger {
  border-color: rgba(236, 99, 99, 0.3);
  background: rgba(236, 99, 99, 0.14);
  color: var(--danger);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(217, 217, 217, 0.18);
  border-radius: var(--radius-control);
  background: rgba(40, 46, 49, 0.76);
  color: var(--platinum);
}

.native-list,
.action-stack {
  display: grid;
  gap: 12px;
}

.native-row,
.native-card-row,
.reserved-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--row-gradient);
  padding: 14px;
  text-align: left;
  box-shadow: none;
}

.native-row--tall {
  min-height: 78px;
}

.native-row-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.native-row-main strong {
  color: var(--platinum);
  font-size: 17px;
  line-height: 1.15;
}

.native-row-main span,
.native-row-main small,
.muted {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.35;
}

.native-row-main small,
.muted {
  color: var(--text-muted);
}

.chevron {
  color: var(--text-muted);
}

.availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  margin-right: 5px;
}

.text-green {
  color: var(--green) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.nav-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 2px 0;
  font-weight: 700;
}

.detail-hero,
.seat-hero {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.seat-hero,
.seat-empty-screen {
  justify-items: center;
  text-align: center;
}

.detail-hero h2,
.seat-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.detail-hero p,
.seat-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.arena-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-gradient);
  padding: 16px;
  box-shadow: var(--shadow-panel);
}

.arena-panel--gold {
  border-color: rgba(235, 191, 94, 0.38);
}

.arena-panel--green {
  border-color: rgba(106, 179, 122, 0.38);
}

.arena-panel--blue {
  border-color: rgba(139, 190, 212, 0.36);
}

.arena-panel h2,
.arena-panel h3 {
  margin: 0;
  line-height: 1.1;
}

.arena-panel h2 {
  font-size: 23px;
}

.arena-panel h3 {
  font-size: 17px;
}

.two-column-info,
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-block {
  display: grid;
  gap: 2px;
}

.info-block small {
  color: var(--text-muted);
  font-size: 12px;
}

.info-block strong {
  color: var(--platinum);
  font-size: 17px;
}

.info-block--green strong {
  color: var(--green);
}

.info-block--danger strong {
  color: var(--danger);
}

.arena-status {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.arena-status--good {
  color: var(--green);
}

.arena-status--warn {
  color: var(--gold);
}

.arena-status--bad {
  color: var(--danger);
}

.arena-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(217, 217, 217, 0.24);
  border-radius: var(--radius-control);
  background: rgba(217, 217, 217, 0.12);
  padding: 12px;
  color: var(--platinum);
  font-size: 13px;
  line-height: 1.4;
}

.arena-message .sf-symbol {
  flex: 0 0 auto;
}

.arena-message--error {
  border-color: rgba(236, 99, 99, 0.28);
  background: rgba(236, 99, 99, 0.12);
}

.arena-message--error .sf-symbol {
  color: var(--danger);
}

.detail-row,
.challenge-detail-row,
.profile-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
}

.profile-row--split {
  justify-content: space-between;
}

.mfa-secret {
  display: grid;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(139, 190, 212, 0.22);
  border-radius: var(--radius-control);
  background: rgba(25, 29, 31, 0.72);
  padding: 12px;
}

.mfa-secret small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.mfa-secret code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.detail-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.detail-line span {
  color: var(--text-muted);
}

.detail-line strong {
  text-align: right;
}

.reserved-row {
  display: flex;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 700;
}

.competition-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.competition-header > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.competition-header strong {
  font-size: 17px;
}

.competition-header small {
  color: var(--text-secondary);
  font-size: 13px;
}

.challenge-steps {
  display: grid;
  gap: 10px;
}

.challenge-lock-panel {
  justify-items: center;
  text-align: center;
}

.challenge-lock-panel h2 {
  font-size: 23px;
}

.challenge-lock-panel p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}

.challenge-lock-panel .action-stack {
  width: 100%;
}

.challenge-step {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(217, 217, 217, 0.12);
  border-radius: var(--radius-control);
  background: var(--row-gradient);
  padding: 12px;
}

.challenge-step > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 217, 217, 0.12);
  color: var(--platinum);
  font-size: 12px;
  font-weight: 800;
}

.challenge-detail-row {
  justify-content: space-between;
  border: 1px solid rgba(106, 179, 122, 0.3);
  border-radius: var(--radius-control);
  background: var(--row-gradient);
  padding: 12px;
}

.seat-screen,
.profile-screen {
  display: grid;
  gap: 18px;
}

.seat-status-wrap {
  display: flex;
  justify-content: center;
}

.leaderboard-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.leaderboard-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-row small {
  color: var(--text-muted);
}

.compact-form {
  margin-top: 0;
}

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 24px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--text-secondary);
  line-height: 1.45;
}

.ios-tabbar {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 7px 8px max(8px, env(safe-area-inset-bottom));
  border: 1px solid rgba(217, 217, 217, 0.12);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(40, 46, 49, 0.92);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ios-tabbar button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 700;
}

.ios-tabbar .sf-symbol {
  width: 22px;
  height: 22px;
}

.ios-tabbar button[aria-current="page"] {
  background: rgba(217, 217, 217, 0.1);
  color: var(--platinum);
}

.game-layout {
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
}

.game-frame-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: #000;
}

.game-frame-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .main {
    width: min(100%, 620px);
    padding-top: max(26px, env(safe-area-inset-top));
  }
}

@media (max-width: 520px) {
  .auth-layout {
    padding-inline: 20px;
  }

  .auth-header h1 {
    font-size: 41px;
  }

  .main {
    padding-inline: 16px;
  }

  .screen-header h1,
  .detail-hero h2,
  .seat-hero h2 {
    font-size: 30px;
  }

  .competition-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .competition-header .arena-status {
    grid-column: 1 / -1;
  }

  .two-column-info,
  .rank-grid {
    grid-template-columns: 1fr;
  }
}
