:root {
  color-scheme: dark;
  --bg: #090a0b;
  --surface: #111416;
  --surface-2: #171b1e;
  --surface-3: #20252a;
  --line: #303941;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f1e8;
  --muted: #9ca7a9;
  --soft: #cfd6d1;
  --gold: #e5bf57;
  --red: #d94f45;
  --green: #4fb06d;
  --blue: #4786d8;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
  --glass: rgba(12, 15, 16, 0.68);
  --glass-strong: rgba(12, 15, 16, 0.88);
  --glass-line: rgba(255, 255, 255, 0.16);
  --panel-glow: 0 22px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --gold-glow: 0 0 22px rgba(229, 191, 87, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(229, 191, 87, 0.12), transparent 28vw),
    radial-gradient(circle at 82% 8%, rgba(71, 134, 216, 0.12), transparent 30vw),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 260px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 72px),
    #090a0b;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border-radius: 10px;
}

.shell {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 18px;
}

.kicker,
.label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: 0;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-meta span,
.status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--soft);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-strip,
.stadium,
.betting,
.teams {
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(23, 27, 30, 0.92), rgba(10, 12, 13, 0.9));
  box-shadow: var(--shadow);
}

.score-strip {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 140px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-bottom: 0;
}

.overlay-score {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(1040px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(15, 18, 19, 0.82), rgba(5, 7, 8, 0.74));
  box-shadow: var(--panel-glow);
  backdrop-filter: blur(22px) saturate(1.22);
}

.brand,
.clock,
.score-card,
.score-actions {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(5, 7, 8, 0.58);
  font-weight: 900;
}

.brand {
  color: #181009;
  background:
    linear-gradient(135deg, #f7d76b, #e45f52 62%, #b63433);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 24px rgba(217, 79, 69, 0.22);
  letter-spacing: 0.12em;
}

.score-card {
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(229, 191, 87, 0.09), transparent 46%),
    rgba(5, 7, 8, 0.62);
}

.score-card.right {
  background:
    linear-gradient(270deg, rgba(229, 191, 87, 0.09), transparent 46%),
    rgba(5, 7, 8, 0.62);
}

.score-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 26px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-card strong {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  text-shadow: var(--gold-glow);
}

.clock {
  color: var(--text);
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: 0.06em;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(229, 191, 87, 0.42);
  background: rgba(229, 191, 87, 0.12);
  color: var(--gold);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 191, 87, 0.8);
  background: rgba(229, 191, 87, 0.22);
}

.score-actions {
  background: rgba(5, 7, 8, 0.54);
}

.stadium {
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 0;
  border: 0;
  background: #070909;
}

.pitch-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  background: #121712;
  overflow: hidden;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 90px rgba(0,0,0,0.6);
}

canvas {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: block;
  background: #2fb42d;
  image-rendering: pixelated;
}

.broadcast-ribbon {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 86px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.broadcast-ribbon span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(6, 8, 8, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  padding: 10px 14px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.match-panel {
  position: fixed;
  top: 92px;
  right: 16px;
  z-index: 18;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 124px);
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 20, 22, 0.82), rgba(5, 7, 8, 0.72));
  box-shadow: var(--panel-glow);
  backdrop-filter: blur(22px) saturate(1.18);
}

.match-panel.active {
  display: flex;
}

.overlay-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 64px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    rgba(6, 8, 8, 0.82);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.42), 0 -1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.2);
}

.dock-tabs,
.dock-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-tabs {
  min-width: 0;
}

.overlay-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  padding: 9px 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.overlay-nav a:hover,
.overlay-nav a.active {
  border-color: rgba(229, 191, 87, 0.36);
  background: rgba(229, 191, 87, 0.14);
  color: var(--gold);
}

.dock-socials a {
  min-width: 42px;
  padding: 9px 12px;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  letter-spacing: 0.04em;
}

.dock-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dock-socials a:hover {
  border-color: rgba(229, 191, 87, 0.36);
  color: var(--gold);
}

.overlay-panel {
  backdrop-filter: blur(22px) saturate(1.18);
}

.drawer {
  position: fixed;
  z-index: 19;
  width: min(560px, calc(100vw - 32px));
  max-height: 46vh;
  display: none;
  overflow: auto;
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 20, 22, 0.84), rgba(5, 7, 8, 0.76));
  box-shadow: var(--panel-glow);
}

.drawer.active {
  display: block;
}

.bottom-left {
  left: 16px;
  bottom: 82px;
}

.bottom-right {
  right: 16px;
  bottom: 82px;
}

.minimize-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--soft);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.minimize-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(229,191,87,0.5);
  background: rgba(229,191,87,0.12);
  color: var(--gold);
}

.teams.drawer {
  width: min(820px, calc(100vw - 32px));
  max-height: 72vh;
}

.about-panel.drawer {
  width: min(880px, calc(100vw - 32px));
  max-height: 68vh;
}

.control-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  line-height: 1.1;
}

p {
  margin-top: 7px;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tab,
.ticket-side,
#buy-ticket,
#settle-pool,
#connect-wallet,
input {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(5, 7, 8, 0.58);
  color: var(--text);
}

.tab {
  min-height: 42px;
  padding: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.tab.active,
.ticket-side.active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(229,191,87,0.34), var(--gold-glow);
}

.tab:hover,
.ticket-side:hover,
#connect-wallet:hover,
#settle-pool:hover {
  border-color: rgba(229, 191, 87, 0.48);
  background: rgba(229, 191, 87, 0.1);
  transform: translateY(-1px);
}

.agent-bars {
  display: grid;
  gap: 10px;
}

.agent-card {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%),
    rgba(5, 7, 8, 0.5);
}

.agent-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-title strong {
  color: var(--gold);
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255,255,255,0.12);
}

.agent-style {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.trait-row span {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--soft);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-feed {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
  font-size: 13px;
}

.event-feed div,
.pool-ledger div {
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(5, 7, 8, 0.5);
  border-left: 3px solid var(--gold);
  color: #dfe4dc;
}

.lower-grid { display: contents; }

.betting,
.teams {
  min-width: 0;
  padding: 16px;
}

.pool-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.pool-head p {
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

#connect-wallet {
  min-height: 34px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--gold);
}

.status {
  border-radius: 999px;
  background: rgba(229, 191, 87, 0.1);
  color: var(--gold);
}

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

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

.ticket-side {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px;
  cursor: pointer;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 44%),
    rgba(5, 7, 8, 0.54);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.ticket-side span {
  max-width: 100%;
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-side strong {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 122px 94px;
  gap: 8px;
  margin-top: 10px;
}

input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  outline: none;
}

input:focus {
  border-color: rgba(229, 191, 87, 0.58);
  box-shadow: 0 0 0 3px rgba(229, 191, 87, 0.12);
}

#buy-ticket,
#settle-pool {
  padding: 10px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

#buy-ticket {
  background: linear-gradient(135deg, #f7d76b, var(--gold) 58%, #b8872d);
  color: #101111;
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(229, 191, 87, 0.18);
}

#buy-ticket:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tx-status {
  min-height: 34px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(5, 7, 8, 0.5);
  color: var(--muted);
  font-size: 13px;
}

.pool-ledger {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pool-ledger div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pool-ledger span {
  min-width: 88px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pool-ledger b {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-head input {
  width: min(280px, 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 8px;
  max-height: 30vh;
  overflow: auto;
  padding-right: 4px;
}

.team-card {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), transparent 42%),
    rgba(5, 7, 8, 0.5);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.team-card:hover,
.team-card.active {
  transform: translateY(-1px);
  border-color: rgba(229, 191, 87, 0.32);
  background:
    linear-gradient(135deg, rgba(229,191,87,0.1), transparent 42%),
    rgba(5, 7, 8, 0.58);
}

.team-card.active {
  box-shadow: inset 0 0 0 1px rgba(229,191,87,0.24), var(--gold-glow);
}

.team-card i {
  display: block;
  width: 10px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255,255,255,0.14);
}

.team-card div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.team-card strong,
.team-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card strong {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.team-card span {
  color: var(--muted);
  font-size: 13px;
}

.team-card b {
  color: var(--gold);
  text-align: right;
}

.team-profile-slot {
  margin-bottom: 12px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(229,191,87,0.18), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(5, 7, 8, 0.56);
  padding: 22px;
}

.about-hero h2 {
  max-width: 720px;
  margin-top: 7px;
  font-size: clamp(34px, 5.8vw, 68px);
  line-height: 0.94;
}

.about-hero p {
  max-width: 660px;
  margin-top: 14px;
  color: var(--soft);
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.35;
}

.about-hero strong {
  color: var(--gold);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.85;
  text-shadow: var(--gold-glow);
}

.about-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.about-points article {
  margin: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(229,191,87,0.1), transparent 38%),
    rgba(5, 7, 8, 0.5);
  padding: 13px;
}

.about-points span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.about-points h3 {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.1;
}

.about-points p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.team-profile {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(229,191,87,0.12), transparent 34%),
    rgba(5, 7, 8, 0.54);
  padding: 14px;
}

.team-profile-head {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.team-profile-head i {
  display: block;
  width: 14px;
  height: 58px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255,255,255,0.16);
}

.team-profile-head div {
  min-width: 0;
}

.team-profile-head h2,
.team-profile-head p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-profile-head strong {
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.profile-copy {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.38;
}

.score-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-matrix.tactical {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  padding: 8px;
}

.score-meter span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.score-meter b {
  color: var(--gold);
  font-size: 12px;
}

.score-meter i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.score-meter em {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #4fb06d);
}

@media (max-width: 1120px) {
  .match-panel {
    width: min(360px, calc(100vw - 32px));
  }

  .team-grid {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: 100vw;
    height: 100vh;
  }

  .score-strip {
    grid-template-columns: 48px 1fr 74px 1fr 42px;
    gap: 5px;
    padding: 5px;
  }

  .overlay-score {
    top: 8px;
    width: calc(100vw - 16px);
  }

  .brand,
  .clock,
  .score-card,
  .icon-button {
    min-height: 44px;
  }

  .score-card {
    padding: 0 9px;
  }

  canvas {
    min-height: 100vh;
  }

  .overlay-nav {
    left: 0;
    right: 0;
    bottom: 0;
    flex-wrap: wrap;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .overlay-nav a {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .dock-tabs,
  .dock-socials {
    gap: 5px;
  }

  .dock-socials a {
    min-width: 36px;
    padding: 7px 9px;
  }

  .match-panel {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 76px;
    width: auto;
    max-height: 42vh;
  }

  .broadcast-ribbon {
    left: 8px;
    right: 8px;
    bottom: 72px;
  }

  .broadcast-ribbon span {
    padding: 8px;
    font-size: 10px;
  }

  .pool-head,
  .section-head {
    flex-direction: column;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .about-hero h2 {
    font-size: 38px;
  }

  .about-hero strong {
    font-size: 34px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .drawer {
    left: 8px;
    right: 8px;
    bottom: 76px;
    width: auto;
    max-height: 42vh;
  }

  .bottom-right {
    bottom: 76px;
  }

  .pool-actions,
  .pool-grid,
  .ticket-row {
    width: 100%;
  }

  .pool-grid,
  .ticket-row {
    grid-template-columns: 1fr;
  }
}
