:root {
  color: #ffffff;
  background: #071018;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.page,
.landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 156, 80, 0.32), transparent 34rem),
    linear-gradient(145deg, #071018 0%, #0a2850 48%, #061116 100%);
}

.topbar,
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  backdrop-filter: blur(12px);
}

.brand,
.nav-actions,
.actions,
.chips,
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  text-align: left;
}

.brand span,
.user-email,
.muted,
.fineprint,
.info p,
.panel p,
td span {
  color: rgba(255, 255, 255, 0.66);
}

.mark,
.brand-logo {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
}

.mark {
  border-radius: 999px;
  background: #ffcc00;
  color: #101010;
  font-weight: 800;
}

.brand-logo {
  object-fit: contain;
}

.brand strong,
.brand span,
td strong,
td span {
  display: block;
}

.brand-button,
.link-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.link-button {
  color: rgba(255, 255, 255, 0.75);
}

.gold {
  color: #ffcc00;
}

.hero,
.content,
.info-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.5rem;
  color: #ffcc00;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 9vw, 6.75rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.25rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
}

.button-gold,
.button-light {
  background: #ffcc00;
  color: #101010;
  font-weight: 700;
}

.button-light {
  background: #ffffff;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.compact {
  margin-top: 1rem;
}

.info-grid,
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info,
.panel,
.notice,
.error,
.table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.info,
.panel,
.notice,
.error {
  padding: 1.25rem;
}

.info strong {
  color: #ffcc00;
  text-transform: uppercase;
}

.content {
  padding: 2rem 0 4rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
  gap: 1rem;
  align-items: start;
}

.admin-pane {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 1rem;
}

.section-header {
  margin-bottom: 1rem;
}

.toolbar,
.tabs,
.score-area,
.score-inputs,
.login-form,
.invite-form,
.check-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.login-form {
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.login-form input {
  width: min(420px, 100%);
}

.invite-form {
  align-items: flex-start;
  flex-direction: column;
}

.check-option {
  color: rgba(255, 255, 255, 0.82);
}

.check-option input {
  min-height: auto;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

select,
input {
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 0.45rem 0.65rem;
}

option {
  background: #071018;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.match-list {
  display: grid;
  gap: 0.65rem;
}

.compact-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 0.3rem;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem;
}

.match-row span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

.finished-match {
  border-color: rgba(104, 238, 169, 0.34);
  background: rgba(47, 207, 124, 0.08);
}

.match-marker {
  display: inline-flex;
  margin-left: 0.55rem;
  border-radius: 999px;
  background: rgba(47, 207, 124, 0.18);
  color: #68eea9;
  padding: 0.2rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  vertical-align: middle;
}

.score-inputs input {
  width: 3.25rem;
  text-align: center;
}

.tabs {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mini-button.active {
  border-color: #ffcc00;
  color: #ffcc00;
}

.narrow {
  max-width: 720px;
}

.notice {
  margin-top: 1rem;
  color: #f8f1d3;
}

.countdown-card {
  display: inline-grid;
  gap: 0.35rem;
  min-width: min(100%, 420px);
  margin: 1rem 0 0;
  border: 1px solid rgba(255, 204, 0, 0.28);
  border-radius: 8px;
  background: rgba(255, 204, 0, 0.08);
  padding: 1rem;
}

.countdown-card strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.countdown-card span:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.compact-countdown {
  display: grid;
  width: 100%;
  margin: 0 0 1rem;
}

.team-name,
.match-row strong .team-name,
.match-row strong .flag,
.match-row strong .versus {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.flag {
  line-height: 1;
}

.versus {
  color: rgba(255, 255, 255, 0.58);
}

.account-form,
.name-editor,
.window-card {
  display: grid;
  gap: 0.7rem;
}

.account-form {
  margin-bottom: 1rem;
}

.field-label,
.account-form label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.name-editor input {
  width: min(100%, 260px);
}

.regulation-doc {
  max-width: 880px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: clamp(1.25rem, 4vw, 2rem);
  line-height: 1.68;
}

.regulation-doc h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.regulation-doc h2,
.regulation-doc h3 {
  margin-top: 1.8rem;
}

.regulation-doc table {
  margin: 1rem 0;
}

.regulation-doc th,
.regulation-doc td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.error {
  border-color: rgba(255, 94, 94, 0.45);
  background: rgba(140, 20, 20, 0.2);
  color: #ffd2d2;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1rem;
  vertical-align: top;
}

thead {
  background: rgba(255, 255, 255, 0.07);
}

tbody tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chip,
.status,
.mini-button {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.chip {
  background: rgba(255, 255, 255, 0.12);
}

.status.paid {
  background: rgba(47, 207, 124, 0.16);
  color: #68eea9;
}

.status.pending {
  background: rgba(255, 184, 77, 0.16);
  color: #ffd38b;
}

.mini-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.small {
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .topbar,
  .appbar,
  .nav-actions,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-grid,
  .panel-grid,
  .workspace,
  .match-row {
    grid-template-columns: 1fr;
  }

  .admin-pane {
    border-left: 0;
    padding-left: 0;
  }

  .user-email {
    word-break: break-word;
  }
}
