:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --text: #17201c;
  --muted: #66716c;
  --line: #d9dfda;
  --green: #17463b;
  --green-2: #23624f;
  --amber: #b7791f;
  --red: #b42334;
  --blue: #155e75;
  --plum: #6b2d5c;
  --shadow: 0 12px 30px rgba(23, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(23, 32, 28, 0.08);
  background: rgba(226, 232, 228, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  max-width: min(70vw, 680px);
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 0.98rem;
}

.brand-name img {
  display: block;
  width: 122px;
  height: 28px;
  object-fit: contain;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.app-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.loading {
  display: grid;
  place-items: center;
  min-height: 50vh;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.icon-button:hover {
  filter: brightness(1.04);
}

.button:disabled,
.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(21, 94, 117, 0.32);
  outline-offset: 2px;
}

.button.secondary {
  background: #fff;
  color: var(--green);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}

.button.warn {
  background: var(--amber);
}

.button.danger {
  background: var(--red);
}

.icon-button.danger {
  background: var(--red);
  color: #fff;
}

.button.blue {
  background: var(--blue);
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button.secondary {
  background: #fff;
  color: var(--green);
  border-color: var(--line);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-weight: 900;
}

.button-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.grid-dashboard {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(23, 32, 28, 0.06);
}

.panel.pad {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header h1,
.panel-header h2,
.panel-header h3,
.section-title h1,
.section-title h2 {
  margin: 0;
  line-height: 1.12;
}

.panel-header p,
.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.organizer-summary {
  margin-bottom: 16px;
}

.organizer-identity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.organizer-identity h1 {
  margin: 0;
  line-height: 1.12;
}

.organizer-identity p {
  margin: 6px 0 12px;
  color: var(--muted);
}

.policy-cta {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-cta:hover {
  color: var(--green);
}

.payment-account-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-account-section h2,
.payment-account-section p {
  margin: 0;
}

.payment-account-section p {
  margin-top: 5px;
  color: var(--muted);
}

.payment-account-section .alert {
  margin-top: 12px;
}

.payment-account-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 28, 0.46);
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 32, 28, 0.28);
  padding: 18px;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 52px;
  margin-bottom: 16px;
}

.modal-heading h2 {
  margin: 0;
  line-height: 1.12;
}

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

.modal-icon-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.modal-icon-close:hover {
  border-color: var(--green);
  background: var(--surface-2);
  color: var(--green);
}

.modal-icon-close img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.policy-modal {
  width: min(760px, 100%);
}

.policy-content {
  display: grid;
  gap: 18px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 10px 4px 0;
}

.policy-content section + section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.policy-content h3,
.policy-content p {
  margin: 0 0 8px;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.table-hero {
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(90deg, rgba(23, 70, 59, 0.94), rgba(21, 94, 117, 0.76)),
    url("/assets/table-lines.svg") center / cover;
  color: #fff;
  border-radius: 8px;
  padding: clamp(22px, 5vw, 42px);
  display: grid;
  align-content: end;
}

.table-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 4.2rem;
  line-height: 0.98;
}

.table-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.auth-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 8px;
}

.auth-tabs button,
.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button.active,
.segmented button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 4px 12px rgba(23, 32, 28, 0.08);
}

.form {
  display: grid;
  gap: 12px;
}

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

.field {
  position: relative;
  display: grid;
  gap: 6px;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.tooltip-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-tooltip {
  position: absolute;
  z-index: 55;
  top: 26px;
  left: 0;
  width: min(330px, calc(100vw - 64px));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #17201c;
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 28, 0.2);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.field label,
.label {
  color: #39443f;
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #aebbb4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 117, 0.1);
}

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

.hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.catalog-option .catalog-tooltip {
  top: calc(100% + 6px);
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.check-pill input {
  width: 16px;
  height: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.context-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.context-help-trigger {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid #b8c5bf;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--blue);
  cursor: help;
  font-size: 0.82rem;
  font-weight: 900;
}

.context-help-popover {
  position: absolute;
  z-index: 75;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: min(340px, calc(100vw - 48px));
  gap: 5px;
  border: 1px solid #33443c;
  border-radius: 8px;
  padding: 12px;
  background: #17201c;
  color: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 28, 0.24);
  font-size: 0.88rem;
  line-height: 1.45;
}

.context-help-popover span {
  color: #dbe5df;
  font-weight: 500;
}

.action-help .context-help-popover {
  right: 0;
  left: auto;
}

.cta-with-help,
.toggle-help-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-stepper,
.checkout-stepper,
.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.form-stepper li,
.checkout-stepper li,
.checkout-progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border-bottom: 3px solid var(--line);
  padding: 8px 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-stepper li > span,
.checkout-stepper li > span,
.checkout-progress li > span,
.checkout-section legend > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
}

.form-stepper li.active,
.checkout-stepper li.active,
.checkout-progress li.active {
  border-color: var(--blue);
  color: var(--text);
}

.form-stepper li.complete,
.checkout-stepper li.complete,
.checkout-progress li.complete {
  border-color: var(--green);
  color: var(--green);
}

.form-stepper li.active > span,
.form-stepper li.complete > span,
.checkout-stepper li.active > span,
.checkout-stepper li.complete > span,
.checkout-progress li.active > span,
.checkout-progress li.complete > span,
.checkout-stepper li > span,
.checkout-section legend > span {
  background: var(--green);
  color: #fff;
}

.form-step,
.checkout-section {
  display: grid;
  min-width: 0;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}

.form-step > legend,
.checkout-section > legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
}

.checkout-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.checkout-section > legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 8px;
}

.form-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-navigation.end {
  justify-content: flex-end;
}

.checkout-submit {
  width: 100%;
  min-height: 52px;
}

.registration-lots-config {
  display: grid;
  gap: 12px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #39443f;
  font-weight: 800;
  cursor: pointer;
}

.toggle-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.registration-lots-fields,
.registration-lot-list {
  display: grid;
  gap: 12px;
}

.registration-lots-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.registration-lots-heading > div {
  display: grid;
  gap: 3px;
}

.registration-lots-heading .invalid {
  color: var(--red);
  font-weight: 800;
}

.registration-lot-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(125px, 0.8fr) minmax(82px, 0.48fr) minmax(190px, 1.1fr) 42px;
  gap: 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.registration-lot-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.registration-lots-summary {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.registration-lots-summary.public {
  margin-top: 14px;
}

.registration-lots-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.registration-lot-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-left: 3px solid var(--line);
  padding: 6px 9px;
  color: var(--muted);
}

.registration-lot-summary span,
.registration-lot-summary small {
  overflow-wrap: anywhere;
}

.registration-lot-summary.active {
  border-left-color: var(--green);
  color: var(--text);
}

.registration-lot-summary.expired {
  opacity: 0.58;
}

.registration-lot-summary em {
  border-radius: 999px;
  padding: 2px 6px;
  background: #dff3e8;
  color: #17633d;
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 14px;
}

.organizer-tournaments {
  padding-top: 4px;
}

.organizer-overview .metric {
  min-height: 92px;
  padding: 14px;
}

.organizer-overview .metric strong {
  font-size: 1.55rem;
}

.tournament-list {
  display: grid;
  gap: 10px;
}

.tournament-row {
  position: relative;
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.tournament-row-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tournament-row-heading > div:first-child {
  min-width: 0;
}

.tournament-row-heading h3 {
  margin: 7px 0 0;
  font-size: 1.18rem;
}

.tournament-row-heading p {
  margin: 3px 0 0;
  color: var(--muted);
}

.tournament-row-stats,
.compact-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.tournament-row-stats span,
.compact-status-grid span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.tournament-row-stats span:last-child,
.compact-status-grid span:last-child {
  border-right: 0;
}

.tournament-row-stats strong,
.compact-status-grid strong {
  color: var(--text);
  font-size: 1.05rem;
}

.tournament-progress-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tournament-progress-line .progress {
  flex: 1;
}

.tournament-progress-line > strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.organizer-details {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.organizer-details > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}

.organizer-details > summary::marker {
  color: var(--muted);
}

.organizer-details-content {
  display: grid;
  gap: 13px;
  padding-top: 12px;
}

.minimum-inline {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tournament-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

.tournament-row-actions .button {
  width: auto;
}

.organizer-disclosure {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.organizer-disclosure > summary,
.public-disclosure > summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
}

.organizer-disclosure .interest-list {
  margin-top: 10px;
  border: 0;
  padding: 0;
}

.tournament-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tournament-card h3 {
  margin: 0;
}

.interest-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.interest-list > strong {
  color: #39443f;
  font-size: 0.86rem;
}

.interest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

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

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

.interest-row a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

.interest-actions .button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.tournament-public-link {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.tournament-public-link > span {
  color: #39443f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tournament-public-link > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tournament-public-link a {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-weight: 700;
}

.empty-inline {
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.metric {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.tournament-card .interest-count {
  border-color: rgba(21, 94, 117, 0.28);
  background: rgba(21, 94, 117, 0.06);
}

.tournament-card .interest-count strong {
  color: var(--blue);
}

.metric strong {
  display: block;
  font-size: 1.34rem;
  line-height: 1.05;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8e4;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 18px;
  align-items: start;
}

.tournament-status-panel {
  display: grid;
  gap: 14px;
}

.tournament-status-panel .section-title,
.tournament-status-panel > p {
  margin: 0;
}

.public-disclosures {
  overflow: hidden;
}

.public-disclosure {
  border-bottom: 1px solid var(--line);
}

.public-disclosure:last-child {
  border-bottom: 0;
}

.public-disclosure > summary {
  padding: 15px 18px;
  list-style-position: inside;
}

.public-disclosure > div {
  padding: 0 18px 16px;
  color: var(--muted);
}

.public-disclosure p {
  margin: 7px 0;
}

.registration-entry-card {
  position: sticky;
  top: 92px;
}

.current-offer {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.current-offer > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.current-offer > strong {
  font-size: 1.65rem;
  line-height: 1.2;
}

.current-offer > small {
  color: var(--muted);
}

.banner {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 70, 59, 0.92), rgba(107, 45, 92, 0.62)),
    url("/assets/table-lines.svg") center / cover;
  color: #fff;
  display: grid;
  align-content: end;
  padding: clamp(20px, 5vw, 38px);
}

.banner-info-button {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(23, 32, 28, 0.74);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.banner.with-image {
  background-position: center;
  background-size: cover;
}

.banner h1 {
  margin: 0;
  max-width: 760px;
  font-size: 4rem;
  line-height: 0.98;
}

.banner p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.status-box {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.status-box strong {
  display: block;
  font-size: 1.35rem;
}

.status-box span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

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

.entry-actions .cta-with-help {
  width: 100%;
  min-width: 0;
}

.entry-actions .cta-with-help > .button {
  flex: 1;
  width: auto;
  min-width: 0;
  white-space: normal;
}

.entry-actions .button {
  min-height: 52px;
}

.entry-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tournament-info-modal {
  width: min(680px, 100%);
}

.tournament-info-sections {
  display: grid;
  gap: 18px;
}

.tournament-info-sections section + section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tournament-info-sections h3,
.tournament-info-sections p {
  margin: 0 0 8px;
}

.information-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.information-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.information-list dt {
  color: var(--muted);
  font-weight: 700;
}

.information-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.checkout-stage {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-stage + .checkout-stage {
  margin-top: 10px;
}

.checkout-stage > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  list-style: none;
  color: var(--text);
}

.checkout-stage > summary::-webkit-details-marker {
  display: none;
}

.checkout-stage.complete > summary {
  cursor: pointer;
}

.checkout-stage > summary > span:first-child {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
}

.checkout-stage.active > summary > span:first-child,
.checkout-stage.complete > summary > span:first-child {
  background: var(--green);
  color: #fff;
}

.checkout-stage > summary > span:last-child {
  display: grid;
  min-width: 0;
}

.checkout-stage > summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.checkout-stage-content {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.selected-modality {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface-2);
}

.selected-modality span {
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-actions .primary-entry {
  background: var(--green);
}

.entry-actions .interest-entry {
  background: #fff;
  color: var(--plum);
  border-color: var(--line);
}

.hidden {
  display: none !important;
}

.participant-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.public-list-tools {
  margin-bottom: 14px;
}

.public-list-tools input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.participant-groups,
.participant-group {
  display: grid;
  gap: 12px;
}

.participant-group + .participant-group {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.participant-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: #39443f;
  font-size: 0.92rem;
}

.participant-group h3 span {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--green);
}

.participant-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  color: #2f3934;
}

.participant-list li:last-child {
  border-bottom: 0;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
  background: var(--amber);
}

.status-dot.confirmed {
  background: #1f8f55;
}

.status-dot.reserved {
  background: var(--amber);
}

.status-dot.interested {
  background: var(--blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #39443f;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.green {
  background: #dff3e8;
  color: #17633d;
}

.pill.amber {
  background: #fff1d7;
  color: #7a4b08;
}

.pill.red {
  background: #fbe0e4;
  color: #8a1020;
}

.pix-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.reservation-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid #e2b96e;
  border-radius: 8px;
  padding: 12px;
  background: #fff8e8;
  color: #67420c;
}

.checkout-countdown span {
  min-width: 0;
  font-weight: 700;
}

.checkout-countdown strong {
  flex: 0 0 auto;
  min-width: 72px;
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  text-align: right;
}

.checkout-countdown.urgent {
  border-color: #d28a96;
  background: #fff0f2;
  color: var(--red);
}

.checkout-payment-switch {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.checkout-payment-switch > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-payment-switch > div:first-child span {
  color: var(--green);
  font-weight: 800;
}

.checkout-payment-switch p {
  margin: 0;
}

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

.payment-methods label {
  position: relative;
  min-width: 0;
}

.payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-methods span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #39443f;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.payment-methods input:checked + span {
  border-color: var(--green);
  background: #e7f3ed;
  color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.payment-methods input:focus-visible + span {
  outline: 3px solid rgba(21, 94, 117, 0.2);
  outline-offset: 2px;
}

.test-payment-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff1d7;
  color: #7a4b08;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-payment-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.card-challenge iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pix-qr {
  display: block;
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  object-fit: contain;
}

.pix-code {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: #24302b;
}

.profile-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.registration-offer-alert {
  display: grid;
  gap: 4px;
}

.player-share-backdrop {
  z-index: 60;
}

.player-share-modal {
  width: min(580px, 100%);
}

.player-share-preview {
  display: block;
  width: min(100%, 390px);
  max-height: 56vh;
  aspect-ratio: 2 / 3;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  object-fit: contain;
}

.player-share-link-row,
.player-share-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.player-share-link-row input {
  min-width: 0;
  flex: 1;
}

.player-share-actions {
  margin-top: 14px;
}

.player-share-actions > * {
  flex: 1;
}

.finance-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.finance-table th,
.finance-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.finance-table th {
  color: #39443f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
}

.finance-modal {
  width: min(1120px, 100%);
}

.finance-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.admin-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pricing-summary-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.pricing-summary-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pricing-summary-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.payment-pricing-modal {
  width: min(820px, 100%);
}

.pricing-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.pricing-fieldset legend {
  padding: 0 6px;
  color: #39443f;
  font-weight: 800;
}

.pricing-fieldset .hint {
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #39443f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table th:nth-child(1) {
  width: 24%;
}

.admin-table th:nth-child(3) {
  width: 90px;
}

.admin-table th:nth-child(4) {
  width: 300px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.telemetry-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.telemetry-filters .field {
  gap: 5px;
}

.telemetry-filters label {
  font-size: 0.76rem;
}

.telemetry-filters input,
.telemetry-filters select {
  min-height: 42px;
  padding: 8px 9px;
}

.telemetry-filters .button {
  width: 100%;
}

.telemetry-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 16px 0 4px;
}

.telemetry-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}

.telemetry-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--text);
}

.telemetry-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

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

.telemetry-metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.telemetry-metrics .metric small {
  color: var(--muted);
  font-size: 0.74rem;
}

.telemetry-funnel {
  display: grid;
  gap: 12px;
}

.telemetry-funnel-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(180px, 2fr) 70px minmax(135px, 0.65fr);
  align-items: center;
  gap: 12px;
}

.telemetry-funnel-row > span {
  color: #39443f;
  font-weight: 700;
}

.telemetry-funnel-row > strong {
  text-align: right;
}

.telemetry-funnel-row > small {
  color: var(--muted);
}

.telemetry-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 5px;
  background: #dfe6e2;
}

.telemetry-bar span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--green);
}

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

.telemetry-ranking h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.telemetry-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.telemetry-ranking .telemetry-table {
  min-width: 360px;
}

.telemetry-table th,
.telemetry-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}

.telemetry-table th {
  color: #39443f;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.telemetry-errors-table {
  min-width: 900px;
}

.telemetry-errors-table code {
  font-size: 0.74rem;
}

.telemetry-alert-list {
  display: grid;
  gap: 9px;
}

.telemetry-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  background: #fff;
}

.telemetry-alert.error,
.telemetry-alert.critical {
  border-left-color: var(--red);
}

.telemetry-alert > div {
  display: grid;
  gap: 3px;
}

.telemetry-alert span,
.telemetry-alert small {
  color: var(--muted);
}

.modal-compact {
  width: min(640px, 100%);
}

.alert {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #2d3833;
}

.alert.error {
  border-left-color: var(--red);
}

.empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.home-page {
  display: grid;
  gap: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 520px;
  padding: clamp(38px, 7vw, 88px) 0;
}

.home-hero-copy {
  max-width: 650px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 640px;
  margin: 14px 0 18px;
  color: var(--green);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.home-hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-primary-button {
  background: var(--plum);
}

.home-hero-visual {
  position: relative;
  min-height: 390px;
  border-left: 1px solid var(--line);
  background: linear-gradient(135deg, #e5eee8, #f6f0e7);
}

.home-score-card,
.home-ticket-card {
  position: absolute;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(23, 70, 59, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-score-card {
  top: 18%;
  right: 9%;
  width: min(300px, 76%);
  padding: 22px;
  background: var(--green);
  color: #fff;
  transform: rotate(2deg);
}

.home-score-card span,
.home-ticket-card span {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.home-score-card strong {
  font-size: 5rem;
  line-height: 0.9;
}

.home-score-card small,
.home-score-card b {
  color: rgba(255, 255, 255, 0.78);
}

.home-score-line {
  height: 7px;
  margin: 12px 0 4px;
  background: rgba(255, 255, 255, 0.18);
}

.home-score-line i {
  display: block;
  width: 72%;
  height: 100%;
  background: #e6b65c;
}

.home-ticket-card {
  right: 24%;
  bottom: 12%;
  width: min(260px, 70%);
  padding: 18px;
  background: #fff;
  color: var(--text);
  transform: rotate(-5deg);
}

.home-ticket-card span {
  color: var(--plum);
}

.home-ticket-card strong {
  color: var(--green);
  font-size: 1.15rem;
}

.home-ticket-card small {
  color: var(--muted);
}

.home-section {
  padding: clamp(52px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.home-section-intro {
  max-width: 600px;
}

.home-section h2 {
  max-width: 680px;
  margin: 10px 0 12px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.home-section-intro p {
  margin: 0;
  color: var(--muted);
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
}

.home-benefit-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
}

.home-index {
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 850;
}

.home-benefit-grid h3,
.home-steps h3 {
  margin: 34px 0 8px;
  color: var(--green);
}

.home-benefit-grid p,
.home-steps p {
  margin: 0;
  color: var(--muted);
}

.home-steps {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.home-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.home-steps article > strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
}

.home-steps h3 {
  margin: 0 0 6px;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.home-rail-hint {
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-tournament-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 24px 2px 12px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.home-tournament-card {
  display: grid;
  flex: 0 0 270px;
  gap: 10px;
  min-height: 190px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 32, 28, 0.05);
  transition: transform 160ms ease, border-color 160ms ease;
}

.home-tournament-card:hover {
  border-color: var(--green-2);
  transform: translateY(-3px);
}

.home-card-kicker {
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-tournament-card h3 {
  margin: 12px 0 0;
  color: var(--green);
  font-size: 1.2rem;
}

.home-tournament-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.home-card-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-card-footer strong {
  color: var(--green);
}

.home-card-footer span {
  margin-left: auto;
  color: var(--plum);
  font-size: 1.1rem;
}

.home-empty {
  margin: 28px 0 0;
  color: var(--muted);
}

.home-simulator {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: var(--green);
  color: #fff;
}

.home-simulator h2,
.home-simulator .eyebrow {
  color: #fff;
}

.home-simulator .home-section-intro p {
  color: rgba(255, 255, 255, 0.76);
}

.home-automation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 8vw, 100px);
  align-items: center;
}

.home-automation-copy {
  max-width: 680px;
}

.home-automation-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.home-player-card-frame {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 24px;
  background: #e7eee9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-player-card-frame img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(23, 32, 28, 0.2));
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  margin-top: 36px;
}

.simulator-form,
.simulator-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.home-simulator .simulator-form,
.home-simulator .simulator-result {
  border-color: rgba(23, 32, 28, 0.12);
  color: var(--text);
}

.simulator-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.simulator-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-weight: 750;
}

.simulator-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--plum);
}

.simulator-result {
  display: grid;
  align-content: start;
  gap: 18px;
}

.simulator-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.simulator-total span {
  color: var(--muted);
}

.simulator-total strong {
  color: var(--plum);
  font-size: 2rem;
  line-height: 1;
}

.simulator-breakdown {
  display: grid;
  gap: 10px;
}

.simulator-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.simulator-breakdown strong {
  color: var(--text);
}

.simulator-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-footer div {
  display: grid;
  gap: 2px;
}

.home-footer-brand {
  color: var(--green);
  font-weight: 850;
}

.home-footer-brand:hover {
  color: var(--green);
}

.auth-back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-back-link:hover {
  color: var(--green);
}

@media (max-width: 900px) {
  .grid-2,
  .grid-dashboard,
  .public-layout {
    grid-template-columns: 1fr;
  }

  .home-hero,
  .simulator-layout,
  .home-automation {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero-visual {
    min-height: 330px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .home-benefit-grid {
    grid-template-columns: 1fr;
  }

  .metrics,
  .status-strip,
  .tournament-row-stats,
  .compact-status-grid,
  .registration-lots-summary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .telemetry-filters .button {
    width: 100%;
  }

  .tournament-row-stats span:nth-child(2),
  .compact-status-grid span:nth-child(2) {
    border-right: 0;
  }

  .tournament-row-stats span:nth-child(-n + 2),
  .compact-status-grid span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .public-layout > aside {
    order: -1;
  }

  .registration-entry-card {
    position: static;
  }

  .table-hero h1,
  .banner h1 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand strong {
    max-width: calc(100vw - 92px);
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions .button {
    flex: 1;
  }

  .app-main {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .home-hero {
    padding-top: 30px;
  }

  .home-hero h1 {
    font-size: 3rem;
  }

  .home-hero-actions,
  .home-hero-actions .button,
  .home-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero-actions .button {
    width: 100%;
  }

  .home-hero-visual {
    min-height: 280px;
  }

  .home-score-card {
    right: 4%;
    width: 76%;
  }

  .home-ticket-card {
    right: 12%;
    width: 66%;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .home-rail-hint {
    padding-bottom: 0;
  }

  .home-footer {
    gap: 12px;
  }

  .form-grid,
  .metrics,
  .status-strip,
  .tournament-row-stats,
  .compact-status-grid,
  .registration-lot-row,
  .registration-lots-summary-list {
    grid-template-columns: 1fr;
  }

  .telemetry-filters,
  .telemetry-rankings,
  .telemetry-metrics,
  .telemetry-metrics.compact,
  .pricing-summary-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-funnel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .telemetry-funnel-row .telemetry-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .telemetry-funnel-row > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .telemetry-funnel-row > small {
    grid-column: 1 / -1;
  }

  .telemetry-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .checkout-countdown {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-countdown strong {
    text-align: left;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .organizer-identity,
  .payment-account-section,
  .modal-heading,
  .interest-row {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-account-actions {
    align-items: stretch;
  }

  .interest-row .interest-actions,
  .tournament-public-link > div,
  .registration-lots-heading,
  .player-share-link-row,
  .player-share-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-lot-remove {
    width: 100%;
  }

  .organizer-identity .cta-with-help,
  .organizer-identity .cta-with-help > .button {
    width: 100%;
  }

  .tournament-row-heading {
    align-items: flex-start;
  }

  .tournament-row-stats span,
  .compact-status-grid span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tournament-row-stats span:last-child,
  .compact-status-grid span:last-child {
    border-bottom: 0;
  }

  .minimum-inline {
    grid-template-columns: 1fr;
  }

  .form-stepper li,
  .checkout-stepper li,
  .checkout-progress li {
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.75rem;
  }

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

  .information-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .context-help-popover {
    position: fixed;
    inset: auto 14px 14px;
    width: auto;
  }

  .admin-table th:nth-child(2),
  .admin-table td:nth-child(2) {
    min-width: 260px;
  }

  .button {
    width: 100%;
  }

  .table-hero h1,
  .banner h1 {
    font-size: 2.1rem;
  }
}

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