:root {
  --bg: #101820;
  --surface: #172431;
  --surface-2: #203241;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6fbff;
  --muted: #91a4b7;
  --green: #73d6a2;
  --orange: #ff6a2a;
  --blue: #5ea7ff;
  --yellow: #ffd166;
  --red: #ff5d73;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 42, 0.18), transparent 32rem),
    linear-gradient(180deg, #0d151d 0%, var(--bg) 52%, #0b1118 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  color: inherit;
  font: inherit;
}

.app-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px 104px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.1;
}

h2 {
  margin-top: 18px;
  font-size: 30px;
  line-height: 1.04;
}

h3 {
  font-size: 17px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.screen {
  display: none;
}

.screen.is-active {
  display: grid;
  gap: 14px;
}

.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 36, 49, 0.92);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  cursor: pointer;
}

.hero-card::after {
  position: absolute;
  right: -46px;
  top: -44px;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(255, 106, 42, 0.45);
  border-radius: 50%;
  content: "";
}

.hero-card__meta,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-card__meta {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
}

.hero-card__place {
  margin-top: 9px;
  max-width: 330px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.card-kicker {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 850;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.11);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill--live {
  color: #062015;
  background: var(--green);
}

.score-strip,
.stats-grid {
  display: grid;
  gap: 8px;
}

.score-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 16px;
}

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

.score-strip div,
.stats-grid div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.score-strip strong,
.stats-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.score-strip span,
.stats-grid span,
.profile-row span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

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

.home-match-details {
  position: relative;
  z-index: 1;
  display: grid;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.26s ease,
    margin-top 0.26s ease,
    opacity 0.18s ease;
}

.hero-card.is-expanded .home-match-details {
  max-height: 480px;
  margin-top: 16px;
  opacity: 1;
}

.compact-roster {
  display: grid;
  gap: 10px;
}

.compact-roster > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.compact-roster strong {
  display: block;
  margin-bottom: 8px;
}

.compact-roster div div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compact-roster span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.action-grid button:first-child {
  grid-column: 1 / -1;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.primary-action {
  color: #07160f;
  background: var(--green);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.primary-action,
.secondary-action,
.icon-button,
.bottom-nav button,
.vote-button,
.wide-command,
.fund-actions button,
.score-team,
.segment-control button,
.score-adjust-card button,
.score-actions button,
.mini-toggle,
.admin-player-actions button {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    opacity 0.16s ease;
}

.primary-action:active,
.secondary-action:active,
.icon-button:active,
.bottom-nav button:active,
.vote-button:active,
.wide-command:active,
.fund-actions button:active,
.score-team:active,
.segment-control button:active,
.score-adjust-card button:active,
.score-actions button:active,
.mini-toggle:active,
.admin-player-actions button:active {
  transform: scale(0.98);
}

.secondary-action.is-selected,
.primary-action.is-selected {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.panel {
  padding: 16px;
}

.clickable-panel {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}

.clickable-panel:active {
  transform: scale(0.99);
}

.section-heading {
  margin-bottom: 14px;
}

.profile-row,
.roster-item,
.leaderboard-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
}

.avatar,
.roster-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #071019;
  background: var(--yellow);
  font-weight: 900;
}

.profile-row strong,
.roster-item strong,
.leaderboard-item strong {
  display: block;
  margin-bottom: 2px;
}

.rating-badge {
  min-width: 40px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #071019;
  background: var(--blue);
  text-align: center;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid--player {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid div {
  text-align: center;
}

.stats-grid strong {
  font-size: 22px;
}

.roster-list,
.leaderboard,
.fund-history {
  display: grid;
  gap: 8px;
}

.roster-item,
.leaderboard-item,
.fund-history-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.roster-item.is-out {
  opacity: 0.56;
}

.roster-avatar.is-bench {
  color: var(--text);
  background: #435466;
}

.tag {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.tag.is-paid {
  color: #062015;
  background: var(--green);
}

.tag.is-unpaid {
  color: #25040a;
  background: var(--red);
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.segment-control button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.segment-control button.is-active {
  color: var(--text);
  background: var(--surface-2);
}

.match-tab {
  display: none;
}

.match-tab.is-active {
  display: grid;
  gap: 14px;
}

.wide-command {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 850;
}

.wide-command--admin {
  justify-content: flex-start;
  padding: 0 14px;
  color: var(--yellow);
  background: rgba(255, 209, 102, 0.1);
}

.teams-grid {
  display: grid;
  gap: 10px;
}

.team-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.team-card--orange {
  border-color: rgba(255, 106, 42, 0.42);
}

.team-card--blue {
  border-color: rgba(94, 167, 255, 0.42);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-list span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.scoreboard-panel {
  overflow: hidden;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.score-team {
  display: grid;
  min-height: 116px;
  border: 1px solid rgba(255, 106, 42, 0.48);
  border-radius: 8px;
  background: rgba(255, 106, 42, 0.13);
  text-align: center;
}

.score-team--blue {
  border-color: rgba(94, 167, 255, 0.48);
  background: rgba(94, 167, 255, 0.13);
}

.score-team strong {
  font-size: 44px;
  line-height: 1;
}

.score-team span,
.score-note {
  margin-top: 10px;
}

.score-divider {
  color: var(--muted);
  font-size: 26px;
  font-weight: 900;
}

.score-adjust-grid,
.score-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.score-adjust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.score-actions button {
  min-height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 850;
}

.score-adjust-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 106, 42, 0.42);
  border-radius: 8px;
  background: rgba(255, 106, 42, 0.1);
}

.score-adjust-card--blue {
  border-color: rgba(94, 167, 255, 0.42);
  background: rgba(94, 167, 255, 0.1);
}

.score-adjust-card strong {
  font-size: 13px;
}

.score-adjust-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score-adjust-card button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 22px;
  font-weight: 900;
}

.score-actions button:last-child {
  color: #071019;
  background: var(--yellow);
}

.match-detail-grid,
.owner-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.owner-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-detail-grid div,
.owner-summary div {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.match-detail-grid strong,
.owner-summary strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.match-detail-grid span,
.owner-summary span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.standings-table {
  display: grid;
  gap: 6px;
}

.standings-head,
.standings-row {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, minmax(28px, 0.5fr));
  gap: 6px;
  align-items: center;
}

.standings-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.standings-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.standings-row span,
.standings-row b {
  text-align: center;
}

.mvp-panel {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(23, 36, 49, 0.92) 44%),
    rgba(23, 36, 49, 0.92);
}

.mvp-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
}

.mvp-card strong {
  display: block;
}

.player-rating-hero {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), rgba(23, 36, 49, 0.92) 48%),
    rgba(23, 36, 49, 0.92);
}

.achievement-list,
.community-list,
.permissions-list {
  display: grid;
  gap: 9px;
}

.achievement-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  opacity: 0.62;
}

.achievement-item.is-earned {
  opacity: 1;
  border-color: rgba(255, 209, 102, 0.46);
  background: rgba(255, 209, 102, 0.08);
}

.achievement-item strong,
.achievement-item span {
  display: block;
}

.achievement-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.leaderboard-item {
  grid-template-columns: 42px 1fr 74px;
}

.leaderboard-item.is-selected {
  border-color: rgba(115, 214, 162, 0.65);
  background: rgba(115, 214, 162, 0.09);
}

.vote-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #071019;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.fund-panel {
  min-height: 220px;
}

.fund-value {
  display: block;
  margin: 18px 0 8px;
  font-size: 42px;
  line-height: 1;
}

.progress {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

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

.fund-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 850;
}

.fund-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}

.fund-history-item span {
  font-weight: 850;
}

.fund-history-item strong {
  color: var(--green);
}

.fund-history-item em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(94, 167, 255, 0.14), rgba(23, 36, 49, 0.92) 48%),
    rgba(23, 36, 49, 0.92);
}

.admin-hero > strong {
  display: block;
  font-size: 24px;
  line-height: 1.08;
}

.admin-subtitle {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.admin-actions button,
.mini-segment button,
.stepper button,
.toggle,
.admin-match-card button {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.admin-actions button:active,
.mini-segment button:active,
.stepper button:active,
.toggle:active,
.admin-match-card button:active {
  transform: scale(0.98);
}

.admin-actions button {
  min-height: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 850;
}

.admin-actions--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.role-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.role-switch button.is-active {
  color: #071019;
  background: var(--yellow);
}

.is-hidden {
  display: none !important;
}

.settings-list,
.admin-match-list,
.public-match-list,
.admin-log,
.admin-roster {
  display: grid;
  gap: 9px;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.mini-segment {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 5px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-segment button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.mini-segment button.is-active {
  color: #071019;
  background: var(--yellow);
}

.stepper {
  display: grid;
  grid-template-columns: 34px minmax(72px, auto) 34px;
  align-items: center;
  gap: 6px;
}

.stepper button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 20px;
  font-weight: 900;
}

.stepper b {
  min-width: 72px;
  text-align: center;
}

.toggle {
  position: relative;
  width: 54px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #4a5968;
}

.toggle::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  content: "";
  transition: transform 0.16s ease;
}

.toggle.is-on {
  background: var(--green);
}

.toggle.is-on::after {
  transform: translateX(22px);
}

.admin-match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.public-match-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.public-match-card.is-selected {
  border-color: rgba(115, 214, 162, 0.65);
  background: rgba(115, 214, 162, 0.08);
}

.public-match-card button {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  text-align: left;
}

.public-match-card strong,
.public-match-card > button > span {
  display: block;
}

.public-match-card > button > span {
  color: var(--muted);
  font-size: 13px;
}

.public-match-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.public-match-details div {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.public-match-details strong,
.public-match-details span {
  display: block;
}

.public-match-details span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-match-card.is-selected {
  border-color: rgba(94, 167, 255, 0.65);
  background: rgba(94, 167, 255, 0.09);
}

.admin-match-card button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.admin-match-card strong,
.admin-match-card span {
  display: block;
}

.admin-match-card button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.admin-match-card > div {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.admin-log-item {
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.community-card,
.permission-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.community-card.is-active {
  border-color: rgba(115, 214, 162, 0.5);
}

.community-card strong,
.community-card span,
.permission-card strong,
.permission-card span {
  display: block;
}

.community-card span,
.permission-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.community-card b {
  display: block;
  text-align: center;
}

.permission-card {
  grid-template-columns: 1fr;
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.permission-tags span {
  margin-top: 0;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  font-weight: 800;
}

.admin-player-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-player-main {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}

.admin-player-main strong,
.admin-player-main span {
  display: block;
}

.admin-player-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.mini-toggle {
  min-width: 52px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 900;
}

.mini-toggle.is-on {
  color: #062015;
  background: var(--green);
}

.admin-player-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-player-actions button {
  min-height: 34px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
}

.admin-player-actions button.is-active {
  color: #071019;
  background: var(--yellow);
}

.admin-player-actions button.is-orange {
  color: #fff2eb;
  border-color: rgba(255, 106, 42, 0.52);
  background: rgba(255, 106, 42, 0.18);
}

.admin-player-actions button.is-blue {
  color: #eaf4ff;
  border-color: rgba(94, 167, 255, 0.52);
  background: rgba(94, 167, 255, 0.18);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(11, 17, 24, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.bottom-nav span {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.toast {
  position: fixed;
  right: 16px;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  z-index: 10;
  max-width: 528px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6fbff;
  color: #101820;
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 21px;
  }

  h2 {
    font-size: 26px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-strip,
  .match-detail-grid,
  .public-match-details,
  .owner-summary,
  .score-adjust-grid,
  .community-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-card {
    grid-template-columns: 1fr;
  }

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

  .score-divider {
    display: none;
  }

  .setting-row,
  .admin-player-main {
    grid-template-columns: 1fr;
  }

  .stepper,
  .mini-segment {
    width: 100%;
  }
}
