:root {
  --bg: #111315;
  --ink: #f7f8f2;
  --muted: #c8cec6;
  --panel: #ffffff;
  --panel-ink: #17191a;
  --line: rgba(255, 255, 255, 0.22);
  --red: #c62828;
  --green: #2f6b43;
  --gold: #f2c31b;
  --club-green: #173b2a;
  --club-yellow: #f2c31b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("../img/hero-sports-payment.png");
  background-position: center;
  background-size: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(23, 59, 42, 0.94), rgba(23, 59, 42, 0.66) 48%, rgba(17, 19, 21, 0.14)),
    linear-gradient(0deg, rgba(17, 19, 21, 0.78), rgba(17, 19, 21, 0.02) 52%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--ink);
  font-weight: 800;
}

.brand-bar__mark {
  width: 44px;
  height: 44px;
}

.brand-bar__mark--club {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(242, 195, 27, 0.24));
}

.brand-bar__name {
  max-width: 72vw;
  overflow-wrap: anywhere;
}

.brand-bar__link {
  margin-left: auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 850;
}

.brand-bar__link + .brand-bar__link {
  margin-left: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
}

.hero__copy {
  position: relative;
  isolation: isolate;
  max-width: 700px;
}

.hero__copy > * {
  position: relative;
  z-index: 1;
}

.hero__copy::before {
  position: absolute;
  z-index: 0;
  top: 49%;
  left: 49%;
  width: clamp(440px, 56vw, 760px);
  aspect-ratio: 1;
  background: url("../img/tarnovia-basket-logo-reference.png") center / contain no-repeat;
  content: "";
  opacity: 0.4;
  filter:
    saturate(1.22)
    contrast(1.08)
    drop-shadow(0 24px 38px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 26px rgba(242, 195, 27, 0.32));
  transform: translate(-50%, -50%);
  transform-origin: 52% 51%;
  animation: tarnovia-emblem-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tarnovia-emblem-breathe {
  0%,
  100% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.94) rotate(-2deg);
  }

  42% {
    opacity: 0.48;
    transform: translate(-50%, -52%) scale(1.075) rotate(2deg);
  }

  58% {
    opacity: 0.43;
    transform: translate(-50%, -50%) scale(1.035) rotate(0deg);
  }
}

.hero__copy h1 {
  text-shadow:
    0 3px 3px rgba(0, 0, 0, 0.58),
    0 14px 34px rgba(0, 0, 0, 0.52);
}

.hero__copy .lead,
.hero__copy .eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy::before {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 7vw, 5.45rem);
  line-height: 0.94;
  max-width: 13ch;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.38rem);
  line-height: 1.55;
}

.payment-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--panel-ink);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 8px;
  background: #edf8f2;
  color: #17613e;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scan-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
}

.payment-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7e2;
  color: #5e6660;
}

.payment-panel__top strong {
  color: var(--panel-ink);
  font-size: 1.65rem;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.amount-button {
  min-height: 54px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #f7f8f2;
  color: var(--panel-ink);
  cursor: pointer;
  font-weight: 800;
}

.amount-button.is-active {
  border-color: var(--club-green);
  background: #eef4e9;
  color: var(--club-green);
}

.supporter-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.field {
  display: grid;
  gap: 7px;
  color: #59615b;
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
  color: var(--panel-ink);
  font: inherit;
  font-weight: 650;
}

.field input {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  min-height: 74px;
  padding: 11px 12px;
}

.field select {
  min-height: 46px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
  color: var(--panel-ink);
  padding: 0 12px;
  font: inherit;
  font-weight: 650;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(46, 184, 114, 0.22);
}

.privacy-note {
  margin: 0;
  color: #6c746f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 8px;
  background: var(--club-yellow);
  color: #17251d;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(242, 195, 27, 0.25);
}

.primary-action--button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.primary-action:focus-visible,
.amount-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.club-details {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e5e7e2;
}

.club-details div {
  min-width: 0;
}

.club-details dt {
  color: #6d746f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.club-details dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.trust-band article {
  min-height: 170px;
  padding: 34px;
  background: #f7f8f2;
  color: #17191a;
}

.trust-band h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.trust-band p {
  margin-bottom: 0;
  color: #5a635c;
  line-height: 1.55;
}

.impact-section {
  background: #111315;
  color: var(--ink);
}

.impact-section__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.impact-section h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

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

.impact-grid article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.45rem;
}

.impact-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.poster-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(46, 184, 114, 0.18), transparent 40%),
    #111315;
}

.poster {
  width: min(720px, 100%);
}

.poster__panel {
  border-radius: 8px;
  background: #f7f8f2;
  color: #17191a;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
  box-shadow: var(--shadow);
}

.poster__mark {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
}

.poster__mark--club {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.poster h1 {
  max-width: none;
  margin: 0 auto 10px;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 0.96;
}

.poster__club {
  margin: 0 auto 28px;
  color: #5b635d;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 850;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
}

#qr-code {
  width: 248px;
  height: 248px;
}

#qr-code img,
#qr-code canvas {
  width: 248px;
  height: 248px;
}

.poster__caption {
  max-width: 440px;
  margin: 0 auto 12px;
  color: #4d554f;
  line-height: 1.5;
}

.poster__url {
  margin: 0;
  color: #6c746f;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.result-page {
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(46, 184, 114, 0.16), transparent 42%),
    #111315;
  color: var(--ink);
}

.result-shell {
  display: grid;
  place-items: center;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.result-card {
  width: 100%;
  border-radius: 8px;
  background: #f7f8f2;
  color: #17191a;
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
}

.result-card h1 {
  max-width: 12ch;
  color: #17191a;
}

.result-card .lead {
  color: #4d554f;
}

.result-card .primary-action {
  width: min(320px, 100%);
  margin-top: 22px;
}

.result-status {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  color: #4d554f;
  padding: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(46, 184, 114, 0.14), transparent 42%),
    #111315;
  color: var(--ink);
}

.checkout-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.checkout-card {
  border-radius: 8px;
  background: #f7f8f2;
  color: #17191a;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.checkout-card__header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.checkout-card h1 {
  max-width: 12ch;
  margin-bottom: 0;
  color: #17191a;
  font-size: clamp(2rem, 6vw, 4rem);
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 18px;
}

.checkout-summary div {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.checkout-summary span {
  display: block;
  margin-bottom: 5px;
  color: #68716b;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-summary strong {
  overflow-wrap: anywhere;
  font-size: 1.18rem;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

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

.payment-method.is-active {
  border-color: var(--club-green);
  background: #eef4e9;
}

.payment-method__icon {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 8px;
  background: #17191a;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.payment-method strong,
.payment-method small {
  display: block;
}

.payment-method small {
  margin-top: 4px;
  color: #68716b;
  line-height: 1.35;
}

.checkout-auth-panel {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.checkout-auth-panel[hidden] {
  display: none;
}

.checkout-cancel {
  justify-self: center;
  color: #59615b;
  font-weight: 850;
}

.operator-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(219, 39, 53, 0.14), transparent 40%),
    #111315;
  color: var(--ink);
}

.operator-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.operator-card {
  border-radius: 8px;
  background: #f7f8f2;
  color: #17191a;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.operator-brand {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  min-width: 96px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #17191a;
  color: #fff;
  padding: 0 14px;
  font-weight: 950;
}

.operator-card h1 {
  max-width: 13ch;
  color: #17191a;
  font-size: clamp(2rem, 6vw, 4rem);
}

.operator-form,
.operator-auth {
  display: grid;
  gap: 14px;
}

.operator-auth {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.operator-auth p {
  margin-bottom: 0;
  color: #59615b;
  line-height: 1.5;
}

.legal-page {
  background: #f7f8f2;
  color: #17191a;
}

.legal-document {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal-document h1 {
  max-width: 16ch;
  color: #17191a;
  font-size: clamp(2.1rem, 6vw, 4rem);
}

.legal-document h2 {
  margin: 30px 0 10px;
  font-size: 1.2rem;
}

.legal-document p {
  color: #4d554f;
  line-height: 1.7;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 8px;
  background: #17191a;
  color: #fff;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 850;
}

.portal-shell {
  min-height: 100vh;
  background: #f7f8f2;
  color: #17191a;
}

.portal-hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: var(--ink);
}

.portal-hero__media,
.portal-hero__shade {
  position: absolute;
  inset: 0;
}

.portal-hero__media {
  background-image: url("../img/hero-sports-payment.png");
  background-position: center;
  background-size: cover;
}

.portal-hero__shade {
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.92), rgba(17, 19, 21, 0.66) 46%, rgba(17, 19, 21, 0.2)),
    linear-gradient(0deg, rgba(17, 19, 21, 0.78), rgba(17, 19, 21, 0.04));
}

.portal-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.portal-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding-top: 74px;
}

.portal-hero__copy {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.hero-actions__primary {
  width: min(340px, 100%);
}

.hero-actions__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--ink);
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
}

.hero-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-loop span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 850;
}

.login-panel,
.league-panel {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--panel-ink);
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  backdrop-filter: blur(18px);
}

.post-payment-card {
  display: grid;
  gap: 7px;
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  background: #17191a;
  color: #fff;
  padding: 14px;
}

.post-payment-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-payment-card strong {
  font-size: 1.22rem;
  line-height: 1.15;
}

.post-payment-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.account-mode {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
}

.account-mode button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #59615b;
  cursor: pointer;
  font-weight: 850;
}

.account-mode button.is-active {
  background: #17191a;
  color: #fff;
}

.login-panel.is-admin .fan-only {
  display: none;
}

.admin-only,
.admin-section[hidden],
.data-model-section[hidden] {
  display: none;
}

.consent-box {
  display: grid;
  gap: 9px;
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  background: #f7f8f2;
  padding: 12px;
}

.consent-box label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #59615b;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.legal-links a {
  color: #a60f1d;
  font-size: 0.78rem;
  font-weight: 850;
}

.form-status {
  min-height: 20px;
  margin: -2px 0 0;
  color: #59615b;
  font-size: 0.82rem;
  font-weight: 800;
}

.form-status[data-tone="success"] {
  color: #17613e;
}

.form-status[data-tone="error"] {
  color: #a60f1d;
}

.login-panel h2,
.league-panel h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.portal-dashboard,
.campaign-loop-section,
.data-model-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.campaign-loop-section {
  padding: 42px 0 10px;
}

.campaign-loop-section__header {
  max-width: 760px;
}

.campaign-loop-section__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.campaign-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.campaign-loop-grid article {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.campaign-loop-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff0f1;
  color: #a60f1d;
  font-weight: 950;
}

.campaign-loop-grid h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.campaign-loop-grid p {
  margin-bottom: 0;
  color: #59615b;
  line-height: 1.5;
}

.portal-dashboard {
  padding: 42px 0 18px;
}

.portal-dashboard__header,
.data-model-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.portal-dashboard__header h2,
.data-model-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.season-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
}

.season-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #59615b;
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.season-switch button.is-active {
  background: #17191a;
  color: #fff;
}

.stats-grid,
.portal-grid,
.community-grid,
.model-grid {
  display: grid;
  gap: 12px;
}

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

.stats-grid--clubs {
  margin-top: 12px;
}

.stats-grid article,
.model-grid article {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.stats-grid span {
  display: block;
  margin-bottom: 8px;
  color: #68716b;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stats-grid strong {
  font-size: 1.8rem;
}

.portal-grid {
  grid-template-columns: 1.25fr 0.75fr;
  margin-top: 12px;
}

.community-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.community-grid__wide {
  grid-column: 1 / -1;
}

.dashboard-view {
  display: none;
}

.dashboard-view.is-active {
  display: grid;
}

.league-panel {
  padding: 20px;
}

.ranking-list,
.badge-list,
.club-ranking-list,
.sport-list,
.forum-list,
.meetup-list,
.venue-list,
.fairplay-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ranking-item,
.club-ranking-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  padding: 12px;
}

.ranking-item__place {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff0f1;
  color: #a60f1d;
  font-weight: 900;
}

.ranking-item__main,
.club-ranking-item__main {
  min-width: 0;
}

.ranking-item__main strong,
.ranking-item__main span,
.club-ranking-item__main strong,
.club-ranking-item__main span {
  display: block;
  overflow-wrap: anywhere;
}

.ranking-item__main span,
.club-ranking-item__main span,
.badge-item p {
  color: #68716b;
  line-height: 1.45;
}

.ranking-item__amount {
  font-weight: 900;
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mini-badges span,
.badge-item span {
  border-radius: 8px;
  background: #edf8f2;
  color: #17613e;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 850;
}

.badge-item {
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  padding: 14px;
}

.badge-item p {
  margin: 7px 0 12px;
}

.sport-item {
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  padding: 14px;
}

.forum-item,
.meetup-item,
.venue-item {
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  padding: 14px;
}

.forum-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.forum-item strong,
.meetup-item strong,
.venue-item strong {
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.forum-item span,
.meetup-item span,
.venue-item span {
  color: #68716b;
  line-height: 1.45;
}

.forum-item dl,
.venue-item dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.forum-item dt,
.venue-item dt {
  color: #68716b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.forum-item dd,
.venue-item dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.venue-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.sport-item strong {
  display: block;
  margin-bottom: 12px;
}

.sport-item dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.sport-item div {
  min-width: 0;
}

.sport-item dt {
  color: #68716b;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sport-item dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.data-model-section {
  align-items: start;
  padding: 38px 0 58px;
}

.admin-section {
  background: #17191a;
  color: var(--ink);
  padding: 46px 0;
}

.admin-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-section__header h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.admin-lock {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-grid,
.admin-worklist {
  width: min(1160px, calc(100% - 32px));
  margin: 14px auto 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.admin-grid article,
.admin-task {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.admin-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 2rem;
}

.admin-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-worklist {
  display: grid;
  gap: 10px;
}

.admin-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-task strong,
.admin-task span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-task div span {
  margin-top: 6px;
  color: var(--muted);
}

.admin-task > span {
  border-radius: 8px;
  background: #fff0f1;
  color: #a60f1d;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
}

.model-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #a60f1d;
  font-size: 1.05rem;
}

.model-grid p {
  margin-bottom: 0;
  color: #59615b;
  line-height: 1.5;
}

.community-page {
  background: #f7f8f2;
}

.community-hero {
  min-height: 78vh;
}

.community-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: center;
  padding-top: 74px;
}

.community-focus-panel {
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--panel-ink);
  box-shadow: var(--shadow);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.community-focus-panel h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.community-focus-panel p {
  margin-bottom: 0;
  color: #59615b;
  line-height: 1.5;
}

.community-focus-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 4px;
}

.community-focus-panel div {
  border-top: 1px solid #e5e7e2;
  padding-top: 12px;
}

.community-focus-panel dt {
  color: #68716b;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.community-focus-panel dd {
  margin: 4px 0 0;
  font-weight: 850;
  line-height: 1.35;
}

.community-section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.community-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.community-section__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d7dbd5;
  border-radius: 8px;
  background: #fff;
  color: #17191a;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 850;
}

.community-score-grid,
.community-feature-grid,
.community-rules-grid {
  display: grid;
  gap: 12px;
}

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

.community-score-grid article,
.community-rules-grid article {
  border: 1px solid #e0e3dd;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.community-score-grid span {
  display: block;
  margin-bottom: 8px;
  color: #68716b;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.community-score-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.community-score-grid p,
.community-row span,
.mini-game-panel p {
  margin-bottom: 0;
  color: #68716b;
  line-height: 1.45;
}

.community-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.community-card-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.community-row {
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  padding: 14px;
}

.community-row strong,
.community-row span {
  display: block;
  overflow-wrap: anywhere;
}

.community-row strong {
  margin-bottom: 6px;
}

.mini-game-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #e5e7e2;
  border-radius: 8px;
  background: #17191a;
  color: #fff;
  padding: 16px;
}

.mini-game-panel span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-game-panel strong {
  font-size: 1.35rem;
}

.mini-game-panel p {
  color: var(--muted);
}

.mini-game-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.community-section--dark {
  width: 100%;
  max-width: none;
  background: #17191a;
  color: var(--ink);
  padding: 46px max(16px, calc((100% - 1160px) / 2));
}

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

.community-rules-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.community-rules-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.community-rules-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

body.is-admin-mode .admin-only {
  display: grid;
}

body.is-admin-mode .admin-section.admin-only {
  display: block;
}

body:not(.is-admin-mode) .admin-only,
body:not(.is-admin-mode) .data-model-section {
  display: none !important;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-bottom: 34px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(17, 19, 21, 0.92), rgba(23, 59, 42, 0.48)),
      linear-gradient(90deg, rgba(23, 59, 42, 0.84), rgba(17, 19, 21, 0.22));
  }

  .brand-bar__mark--club {
    width: 88px;
    height: 88px;
  }

  .hero__copy::before {
    top: 45%;
    left: 50%;
    width: min(560px, 106vw);
    opacity: 0.3;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 50px;
  }

  h1 {
    max-width: 11ch;
  }

  .payment-panel {
    width: min(430px, 100%);
  }

  .trust-band {
    grid-template-columns: 1fr;
  }

  .impact-section__inner,
  .impact-grid,
  .portal-hero__grid,
  .community-hero__grid,
  .campaign-loop-grid,
  .portal-dashboard__header,
  .community-section__header,
  .community-score-grid,
  .community-feature-grid,
  .community-rules-grid,
  .admin-section__header,
  .data-model-section,
  .portal-grid,
  .community-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .community-grid__wide {
    grid-column: auto;
  }

  .brand-bar__link {
    margin-left: 0;
  }

  .portal-hero__grid {
    gap: 28px;
    padding-top: 50px;
  }

  .login-panel {
    width: min(430px, 100%);
  }

  .hero-actions__primary {
    width: 100%;
  }

  .season-switch {
    width: 100%;
    overflow-x: auto;
  }

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

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

  .ranking-item,
  .club-ranking-item,
  .forum-item,
  .venue-item,
  .admin-task {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .forum-item,
  .venue-item,
  .admin-task {
    grid-template-columns: 1fr;
  }

  .ranking-item__amount {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .stats-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .poster-body {
    padding: 0;
    background: #fff;
  }

  .poster__panel {
    box-shadow: none;
  }
}
