:root {
  --navy: #071226;
  --navy-2: #0c1b33;
  --blue: #002d62;
  --red: #ce1126;
  --gold: #e4c15a;
  --cream: #f6efe3;
  --ink: #142033;
  --muted: #5d6b80;
  --line: rgba(255, 255, 255, 0.1);
  --card: #fffdf8;
  --shadow: 0 18px 50px rgba(4, 12, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(206, 17, 38, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(0, 45, 98, 0.45), transparent 50%),
    linear-gradient(180deg, #08101f 0 420px, #eef2f7 420px);
  min-height: 100vh;
}

.flag-bar {
  height: 8px;
  background: linear-gradient(
    90deg,
    #002d62 0 33%,
    #ffffff 33% 36%,
    #ce1126 36% 64%,
    #ffffff 64% 67%,
    #002d62 67% 100%
  );
}

.hero,
.wrap,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.page-shell {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.page-main .wrap {
  width: 100%;
  margin-inline: 0;
}

.ad-rail {
  position: sticky;
  top: 16px;
  z-index: 1;
}

.ad-left-box,
.ad-left-unit {
  display: block;
  width: 160px;
  min-height: 600px;
  background: #f7f9fc;
  border: 1px dashed #d5dce6;
  border-radius: 14px;
}

.ad-wait {
  margin: 0;
  padding: 18px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }
}

.hero {
  padding: 48px 0 36px;
  color: #f7f4ee;
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 14ch;
}

.lede {
  max-width: 58ch;
  color: #d7deea;
  font-size: 1.05rem;
  line-height: 1.6;
}

.brand-url {
  margin: 10px 0 0;
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.04em;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.share-btn.whatsapp { background: #128c7e; }
.share-btn.facebook { background: #1877f2; }
.share-btn.telegram { background: #229ed9; }
.share-btn.copy,
.share-btn.native {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
}

.promo .share-btn.copy {
  background: var(--blue);
  border: 0;
}

.share-btn:hover {
  filter: brightness(1.08);
}

.promo {
  margin: 8px auto 28px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(228, 193, 90, 0.22), transparent 60%),
    linear-gradient(160deg, #0c1b33, #12284a);
  color: #f7f4ee;
  box-shadow: var(--shadow);
}

.promo .kicker {
  color: var(--gold);
}

.promo h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 8px;
  max-width: 18ch;
}

.promo p {
  max-width: 56ch;
  color: #d7deea;
  line-height: 1.6;
}

.promo-url {
  margin: 12px 0 4px;
  color: var(--gold);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.promo-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}

.promo-points li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.meta-row,
.toolbar,
.checker-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.pill.muted {
  color: #c9d3e2;
}

.toolbar,
.checker,
.company,
.schedule article {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.latest {
  margin-top: 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.latest-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.latest-head .kicker {
  color: var(--red);
  margin: 0;
}

.latest-head h2 {
  font-size: 1.45rem;
}

.latest-style {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.latest-card {
  border: 1px solid #ece6d8;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  min-height: 148px;
}

.latest-card .company-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.latest-card .company-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.latest-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.latest-card .game-date {
  margin-bottom: 12px;
}

.skeleton-card {
  background: linear-gradient(90deg, #ece7dc, #f7f3ea, #ece7dc);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}

@media (max-width: 800px) {
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

.toolbar {
  padding: 16px;
  margin-top: -18px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
button {
  font: inherit;
}

input[type="date"],
input[type="search"],
.checker input {
  height: 46px;
  border: 1px solid #d9e0ea;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.search-field {
  flex: 1;
  min-width: 220px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn {
  height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  background: #eef3f9;
  color: var(--blue);
}

.btn:hover {
  filter: brightness(1.08);
}

.chips {
  padding: 18px 0 8px;
}

.chip {
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 30, 55, 0.08);
}

.chip.active {
  background: var(--blue);
  color: #fff;
}

.checker {
  padding: 22px;
  margin: 8px 0 22px;
}

.checker h2,
.schedule h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.checker p {
  margin: 0 0 14px;
  color: var(--muted);
}

.checker input {
  width: 72px;
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.results {
  display: grid;
  gap: 22px;
  padding-bottom: 28px;
}

.company {
  overflow: hidden;
}

.company-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
}

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

.company-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 4px;
  flex-shrink: 0;
}

.company-logo.logo-dark {
  background: #111;
}

.company-head h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.company-count {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
  flex-shrink: 0;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f7f4ee);
}

.game {
  border: 1px solid #ece6d8;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  min-height: 148px;
}

.game.is-pending {
  background: #fbfaf6;
}

.ball {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ball.pending {
  color: #3a4454;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 18%, transparent 42%),
    linear-gradient(180deg, #ffffff, #eef1f5);
  border: 1px solid #d5dbe3;
  box-shadow: 0 6px 14px rgba(20, 32, 51, 0.08);
}

.ball.ready {
  color: #fff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7) 0 16%, transparent 38%),
    linear-gradient(180deg, #4ade80, #15803d);
  box-shadow: 0 8px 16px rgba(21, 128, 61, 0.28);
}

.ball.bonus.ready {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7) 0 16%, transparent 38%),
    linear-gradient(180deg, #86efac, #166534);
}

.ball.hit {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.game h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.game-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.ball-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ball-wrap span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pending {
  color: var(--muted);
  font-weight: 700;
  padding: 18px 0 6px;
}

.last {
  margin-top: 10px;
  color: #7a5b12;
  font-size: 12px;
  font-weight: 700;
}

.hidden {
  display: none;
}

.error {
  background: #fde8ea;
  color: #8a1220;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.schedule {
  padding-bottom: 24px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.schedule article {
  padding: 18px 20px;
}

.schedule ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee6d8;
  font-size: 14px;
}

.footer {
  padding: 18px 0 40px;
  color: #5c6778;
  font-size: 13px;
  line-height: 1.6;
}

.ad-policy {
  max-width: 62ch;
}

.ad-slot {
  position: static;
  margin: 0 0 22px;
}

.ad-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed #d5dce6;
  border-radius: 16px;
  background: #f7f9fc;
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.ad-card img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.ad-card strong {
  display: block;
  font-size: 0.95rem;
}

.ad-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
}

.footer-nav a,
.legal-links a,
.legal-top a,
.sources a,
.legal-doc a {
  color: #1d4ed8;
}

.legal-banner {
  margin: 14px 0 0;
  max-width: 62ch;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3e6e6;
  font-size: 13px;
  font-weight: 600;
}

.sources {
  padding-bottom: 12px;
}

.sources ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.legal-body {
  background: #eef2f7;
}

.legal-top {
  width: min(800px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.legal-doc {
  width: min(800px, calc(100% - 32px));
  margin: 16px auto 48px;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.legal-doc h1 {
  max-width: none;
  font-size: 2rem;
}

.legal-lead {
  color: var(--muted);
  line-height: 1.6;
}

.legal-doc section {
  margin-top: 22px;
}

.legal-doc h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 18, 38, 0.86);
  display: grid;
  place-items: center;
  padding: 20px;
}

.age-card {
  width: min(460px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.age-card .kicker {
  color: var(--red);
}

.age-card p {
  color: var(--muted);
  line-height: 1.55;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.skeleton {
  height: 220px;
  border-radius: 22px;
  background: linear-gradient(90deg, #ece7dc, #f7f3ea, #ece7dc);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}

@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .btn {
    flex: 1;
  }

  .hero {
    padding-top: 28px;
  }

  .company-logo {
    width: 46px;
    height: 46px;
  }

  .company-head h2 {
    font-size: 1.25rem;
  }
}
