/* Tippmatch — sportsbook-inspired (Tipico-like palette: black / red / yellow).
   Visual language only — not affiliated with Tipico. */

:root {
  --bg: #0e0f12;
  --bg-2: #16181e;
  --panel: #1c1f27;
  --panel-2: #242833;
  --ink: #f4f5f7;
  --muted: #9aa0ad;
  --red: #e30613;
  --red-deep: #b10510;
  --yellow: #ffcd00;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --green: #2bb673;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Staatliches", Impact, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(100% - 2rem, 76rem);
  --radius: 0.2rem;
  --radius-overlay: 0.85rem;
  --betslip-gradient: linear-gradient(
    165deg,
    #2a2e3a 0%,
    #1c1f29 42%,
    #14171f 78%,
    #10131a 100%
  );
  --betslip-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(227, 6, 19, 0.18), transparent 50%),
    radial-gradient(70% 40% at 100% 10%, rgba(255, 205, 0, 0.08), transparent 45%),
    linear-gradient(180deg, #12141a 0%, var(--bg) 40%, #0a0b0e 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--yellow); }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  background: #0a0b0e;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}

.brand {
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-mark { display: inline; }
.brand-tip { color: var(--yellow); }
.brand-match { color: #fff; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.1rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; }
.nav a.is-on {
  color: #fff;
  border-bottom-color: var(--red);
}
.nav a.is-soon { opacity: 0.75; }
.soon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-left: 0.2rem;
}
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.42rem 0.8rem !important;
  border: 0 !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--red-deep); color: #fff !important; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.lang-switch a {
  padding: 0.28rem 0.5rem !important;
  text-decoration: none;
  font-size: 0.75rem;
  border-bottom: 0 !important;
  color: var(--muted);
}
.lang-switch a.is-on {
  background: var(--yellow);
  color: #111 !important;
}

.main { padding: 1.15rem 0 3.5rem; }

.flash-wrap { padding: 0.75rem 0 0; }
.flash {
  margin: 0 0 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--panel);
}
.flash-ok { border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.flash-error { border-color: color-mix(in srgb, var(--red) 70%, transparent); }

.hero {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
    min-height: min(46vh, 22rem);
    align-items: center;
  }
}
.hero-brand {
  margin: 0;
  /* Staatliches is caps-only — use body font so TiPpMaTcH keeps mixed case */
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: none;
}
.hero-tag {
  margin: 0.55rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: #fff;
}
.hero-lead,
.body-copy {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.auth-card,
.account-page,
.admin-page,
.legal-page,
.fantasy-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-overlay);
  padding: 1rem 1.1rem;
}

/* Tipico-like betslip panel */
.betslip,
.free-card,
.set-tile,
.hint-card,
.checkout-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  background: var(--betslip-gradient);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-overlay);
  box-shadow: var(--betslip-shadow);
  padding: 0;
  overflow: hidden;
}

.betslip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  border-bottom: 1px solid var(--line);
}

.betslip-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.betslip-foot {
  margin-top: auto;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.free-card {
  box-shadow:
    var(--betslip-shadow),
    inset 0 0 0 1px color-mix(in srgb, var(--yellow) 28%, transparent);
}
.free-card .betslip-head {
  background: linear-gradient(90deg, rgba(255, 205, 0, 0.16), transparent 70%);
}

.badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  background: var(--yellow);
  padding: 0.22rem 0.45rem;
  border-radius: 0.15rem;
}
.muted { color: var(--muted); font-size: 0.9rem; }
.comp-label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.fixture {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.pick {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0.45rem 0;
  color: var(--yellow);
}
.note { margin: 0; color: var(--muted); }

.fixture-preview {
  list-style: none;
  margin: 0.45rem 0 0.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fixture-preview li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-overlay) - 0.25rem);
}
.fixture-preview .fixture { font-size: 0.9rem; }

.section-head { margin: 0.5rem 0 1rem; }
.sets h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: #fff;
}

.set-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .set-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .set-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.set-tile {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.set-tile:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px color-mix(in srgb, var(--red) 40%, transparent) inset;
  color: var(--ink);
}
.set-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius-overlay) - 0.35rem);
  background: var(--red);
  color: #fff;
}
.chip-ok {
  background: color-mix(in srgb, var(--green) 22%, #111);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
}

.hint-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}
@media (min-width: 900px) {
  .hint-list { grid-template-columns: 1fr 1fr 1fr; }
}
.hint-slot {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hint-card.is-locked {
  box-shadow:
    var(--betslip-shadow),
    inset 3px 0 0 var(--red);
}
.hint-card.is-open {
  box-shadow:
    var(--betslip-shadow),
    inset 3px 0 0 var(--yellow);
  animation: unlock-in 0.4s var(--ease);
}
.hint-card.is-locked .pick-locked {
  margin: 0.15rem 0 0;
  letter-spacing: 0.18em;
  filter: blur(2px);
  user-select: none;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--line-strong);
  border-radius: calc(var(--radius-overlay) - 0.35rem);
  padding: 0.65rem 0.7rem;
  text-align: center;
}
.hint-card h2.fixture { font-size: 1.12rem; }
.checkout-form .btn-block { width: 100%; }
.checkout-form .field,
.checkout-form .check,
.checkout-form .legal-mini,
.checkout-form .muted {
  margin: 0;
}

@keyframes unlock-in {
  from { opacity: 0.45; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0.78rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: #fff !important;
}
.btn-primary:hover { background: var(--red-deep); }
.btn-block { width: 100%; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
}
.field textarea {
  height: 10rem;
  min-height: 10rem;
  max-height: 10rem;
  resize: none;
  overflow-y: auto;
  line-height: 1.45;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--yellow) 55%, transparent);
  border-color: var(--yellow);
}
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.narrow { max-width: 28rem; }
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.check input { margin-top: 0.2rem; accent-color: var(--red); }
.legal-mini {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.checkout-form {
  margin-top: 1rem;
  background: var(--panel-2);
}

.auth-card { max-width: 28rem; margin: 1rem auto; }
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.account-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.account-nav a.is-on {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.history-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0b0e;
  padding: 1.25rem 0 2rem;
}
.footer-inner { text-align: center; }
.footer-legal-line {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.social-link:hover {
  color: #0a0b0e;
  background: var(--yellow);
  border-color: var(--yellow);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-links a {
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover { color: var(--yellow); }

.legal-page { max-width: 46rem; }
.legal-page h1 { margin-top: 0; color: #fff; }
.legal-page h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.02rem;
  color: var(--yellow);
}
.legal-page ol { padding-left: 1.2rem; }
.legal-page li { margin-bottom: 0.7rem; color: var(--muted); }
.legal-page p { color: var(--muted); }

.fantasy-page { max-width: 36rem; }
.fantasy-page h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #fff;
}

.admin-stats {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.hint-edit {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin: 0;
  background: var(--bg-2);
}
.hint-edit legend { color: var(--yellow); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.data-table th { color: var(--yellow); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

.set-head h1 { color: #fff; margin: 0 0 0.35rem; }
.support-line {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.support-line a { color: var(--yellow); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .hint-card.is-open,
  .set-tile { animation: none; transition: none; }
}
