:root {
  --bg: #0e1117;
  --header: #111318;
  --card: #1c2028;
  --line: #2a303a;
  --red: #e32626;
  --red-hot: #ff3b1d;
  --teal: #2ad4c9;
  --text: #fff;
  --muted: #9aa3b2;
  --max: 1240px;
  --sans: Inter, "Segoe UI", sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: #fff; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0 0 0.4em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
p { margin: 0 0 1rem; color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 80; background: var(--red); padding: 8px 12px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 8px 18px;
  background: var(--header);
}
.menu-btn {
  width: 40px; height: 40px; padding: 10px 8px;
  background: transparent; border: 0; cursor: pointer; display: grid; gap: 5px;
}
.menu-btn span { display: block; height: 2px; background: #fff; }
.brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; line-height: 0; }
.brand-logo { height: 40px; width: auto; max-width: 220px; display: block; }
.n1-mark {
  display: none;
}
.n1-mark b { display: block; transform: skewX(8deg); }
.n1-word { display: none; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #c9cdd4; font-size: 13px; font-weight: 600;
  padding: 8px 8px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav svg { width: 18px; height: 18px; fill: currentColor; }
.search-btn {
  width: 40px; height: 40px; border-radius: 20px;
  display: grid; place-items: center;
  background: #1a1e26; color: #fff;
}
.search-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.head-cta { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 6px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; border: 0; cursor: pointer;
}
.btn.ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.btn.red, .cta {
  background: var(--red); color: #fff !important; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 6px;
  font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.btn.red:hover, .cta:hover { background: var(--red-hot); color: #fff; }
.cta.wide { min-width: 220px; min-height: 48px; font-size: 15px; }
.cta.ghost, .cta.ghost.alt, .cta.ink {
  background: transparent; color: #fff !important;
  border: 1px solid #fff;
}

.hero {
  position: relative; min-height: 420px;
  display: grid; place-items: center; text-align: center;
  background: #151820 center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,10,14,.82) 0%, rgba(8,10,14,.45) 45%, rgba(8,10,14,.82) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 64px 20px; max-width: 760px; }
.hero-kicker { margin: 0 0 8px; color: #fff; font-weight: 600; font-size: 1.15rem; }
.hero h1, .hero .hero-offer { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.95; margin: 0 0 22px; }
.hero .hero-offer { color: #fff; font-weight: 800; }
.hero p { color: #d5d8de; }

.paybar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px;
  margin: 18px auto; width: min(var(--max), calc(100% - 40px));
  background: var(--card); border-radius: var(--r); padding: 14px 18px;
}
.paybar span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: #c5cad3; text-transform: uppercase;
}

.section { padding: 28px 0 8px; }
.rail-head, .sec-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.rail-head h2, .sec-head h2 { margin: 0; flex: 1; }
.see-all {
  color: #c9cdd4; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.rail-btns { display: flex; gap: 8px; }
.rail-btns button {
  width: 32px; height: 32px; border-radius: 50%;
  background: #2a303a; color: #fff; border: 0; cursor: pointer; font-size: 16px;
}
.rail-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.tile {
  position: relative; flex: 0 0 168px; aspect-ratio: 3 / 4;
  border-radius: 12px; overflow: hidden; background: #15181f;
  scroll-snap-align: start; color: #fff;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; object-fit: cover; object-position: center;
}
.tile .shade {
  position: absolute; inset: auto 0 0; padding: 36px 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  text-align: center;
}
.tile b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.tile small { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.08em; color: #c5c5c5; text-transform: uppercase; }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #1ec7a8; color: #04140f;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
}
.badge.new { background: #3d7cff; color: #fff; }
.badge.live { background: #e32626; color: #fff; }
.tile .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s;
}
.tile:hover .play { opacity: 1; }
.play i {
  width: 54px; height: 54px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center;
}
.play i::after {
  content: ""; border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.wins {
  background: var(--card); border-radius: 12px; overflow: hidden; margin: 8px 0 24px;
}
.wins table { width: 100%; border-collapse: collapse; }
.wins th, .wins td { padding: 14px 16px; text-align: left; font-size: 14px; }
.wins th {
  color: var(--muted); font-size: 11px; letter-spacing: 0.08em; font-weight: 700;
}
.wins td { border-top: 1px solid #2a303a; }
.wins .num { text-align: right; font-variant-numeric: tabular-nums; }
.wins .pay { font-weight: 800; }
.gcell { display: flex; align-items: center; gap: 10px; }
.gcell img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.wins-note { font-size: 12px; color: var(--muted); margin: 0 16px 12px; }
.more {
  display: block; text-align: center; padding: 14px;
  color: #fff; font-weight: 700; letter-spacing: 0.08em; font-size: 13px;
}

.why { text-align: center; padding: 48px 0 24px; }
.why h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.why-lead { max-width: 52ch; margin: 0 auto 28px; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center;
}
.why-card {
  background: var(--card); border-radius: 12px; padding: 28px 18px 24px;
}
.why-ico {
  width: 48px; height: 48px; margin: 0 auto 14px;
  color: var(--teal);
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; }
.stars { color: #f5c518; letter-spacing: 2px; font-size: 13px; }
.why .cta { margin-top: 28px; }

.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo {
  position: relative; min-height: 200px; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; background: #15181f center / cover no-repeat; color: #fff;
}
.promo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,14,.15), rgba(8,10,14,.78));
}
.promo > * { position: relative; z-index: 1; }
.promo b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #ddd; font-weight: 600; }
.promo strong { display: block; font-size: 1.35rem; line-height: 1.15; margin: 8px 0 14px; }

.page-hero { padding: 36px 0 8px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.prose, .prose.glass, .prose.panel { background: var(--card); border-radius: 12px; padding: 24px 28px; margin: 18px 0 28px; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.photo-pair figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.infographic { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.infographic figcaption { color: #fff; font-weight: 700; margin-bottom: 12px; }
.ig-bars { list-style: none; margin: 0; padding: 0; }
.ig-bars li { display: grid; grid-template-columns: minmax(88px, 140px) 1fr 42px; gap: 8px; align-items: center; margin: 8px 0; }
.ig-track { height: 10px; background: rgba(0,0,0,.35); border-radius: 6px; overflow: hidden; }
.ig-track i { display: block; height: 100%; background: var(--red); }
.ig-split { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.ig-split figcaption { grid-column: 1 / -1; }
.ig-donut { width: 120px; height: 120px; border-radius: 50%; }
.ig-legend { margin: 0; padding-left: 18px; color: var(--muted); }
.ig-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-flow span { border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; font-size: 13px; background: rgba(0,0,0,.2); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
table caption { text-align: left; caption-side: top; font-weight: 700; padding-bottom: 8px; }
.faq details { background: var(--card); border-radius: 10px; margin-bottom: 8px; }
.faq summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
.faq details p { padding: 0 16px 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: attr(data-n); color: var(--red); font-weight: 800; font-size: 1.2rem;
}
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.related a { border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.form { display: grid; gap: 10px; max-width: 480px; }
.form input, .form textarea {
  background: #0e1117; border: 1px solid var(--line); color: #fff; padding: 12px; font: inherit; border-radius: 8px;
}
.note { font-size: 13px; }

.site-foot { background: #0a0c10; padding: 40px 0 96px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.foot-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px;
}
.foot-cols h3 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.foot-cols a { display: block; color: var(--muted); padding: 4px 0; }
.foot-cols a:hover { color: #fff; }
.legal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; }
.age-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.age {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 2px solid #fff; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px;
}

.cookie {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; display: none; max-width: 680px;
}
.cookie.show { display: block; }
.cookie-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .why-grid, .promos, .foot-cols { grid-template-columns: 1fr 1fr; }
  .wins .hide-sm { display: none; }
}
@media (max-width: 1100px) {
  body.layout-top .nav {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--header); padding: 8px 12px 16px;
  }
  body.layout-top .nav.open { display: flex; }
  body.layout-top .nav a { white-space: normal; }
}
@media (max-width: 760px) {
  .why-grid, .promos, .foot-cols, .photo-pair, .legal, .ig-split { grid-template-columns: 1fr; }
  .head-cta .btn.ghost { display: none; }
  .tile { flex-basis: 140px; }
}

/* Side nav: n1bet-bets.com, n1bet-sport.it */
body.layout-side .app {
  display: grid; grid-template-columns: 232px 1fr; min-height: 100vh;
}
body.layout-side .sider {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 14px 18px;
  background: var(--header); border-right: 1px solid var(--line);
}
body.layout-side .sider .brand { margin-bottom: 8px; }
body.layout-side .nav {
  display: flex; flex-direction: column; flex: 1; gap: 2px; align-items: stretch;
}
body.layout-side .nav a {
  padding: 10px 12px; border-radius: 8px; white-space: normal;
}
body.layout-side .nav a[aria-current="page"] {
  background: rgba(255,255,255,.08); color: #fff;
}
body.layout-side .side-cta { display: grid; gap: 8px; }
body.layout-side .side-cta .btn { width: 100%; }
body.layout-side .topbar { gap: 10px; }
body.layout-side .menu-btn { display: none; }
body.layout-side .top-label {
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px;
  margin-right: auto;
}
body.layout-side .site-foot { margin-top: 0; }
@media (min-width: 1101px) {
  body.layout-side .head-cta { display: none; }
}
@media (max-width: 1100px) {
  body.layout-side .app { grid-template-columns: 1fr; }
  body.layout-side .menu-btn { display: grid; }
  body.layout-side .sider {
    position: fixed; z-index: 55; left: 0; top: 0; bottom: 0; width: min(280px, 88vw);
    height: auto; transform: translateX(-110%); transition: transform .2s;
  }
  body.layout-side .sider.open { transform: none; }
  body.layout-side .side-cta { display: none; }
}

/* Skins */
body.skin-live {
  --teal: #2ad4c9;
}
body.skin-live .hero::after {
  background: linear-gradient(90deg, rgba(8,10,14,.86) 0%, rgba(8,36,42,.4) 48%, rgba(8,10,14,.86) 100%);
}

body.skin-bets {
  --bg: #0f1418; --header: #0a1014; --card: #172028; --line: #2a3a44;
  --red: #e8a317; --red-hot: #ffb82e; --teal: #7eb6d4; --muted: #9eb0bc;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
body.skin-bets .n1-mark { transform: none; border-radius: 2px; background: #e8a317; color: #0a1014; }
body.skin-bets .n1-mark b { transform: none; }
body.skin-bets .tile { aspect-ratio: 1; border-radius: 4px; }
body.skin-bets .hero { min-height: 340px; text-align: left; place-items: end stretch; }
body.skin-bets .hero-inner { text-align: left; max-width: none; padding: 48px 28px; }
body.skin-bets .hero::after {
  background: linear-gradient(90deg, rgba(10,16,20,.92) 0%, rgba(10,16,20,.35) 70%);
}
body.skin-bets .why-card, body.skin-bets .prose, body.skin-bets .wins { border-radius: 4px; }

body.skin-sport {
  --bg: #0a120c; --header: #0d1a12; --card: #14241a; --line: #234030;
  --red: #2ecc71; --red-hot: #47e089; --teal: #b6ff6a; --muted: #a8c4b0;
  font-family: Barlow, "Segoe UI", sans-serif;
}
body.skin-sport h1, body.skin-sport h2, body.skin-sport .n1-word, body.skin-sport .hero-kicker, body.skin-sport .hero-offer {
  font-family: "Barlow Condensed", Barlow, sans-serif; letter-spacing: 0.02em;
}
body.skin-sport .n1-mark { transform: none; border-radius: 4px; background: #2ecc71; color: #041208; }
body.skin-sport .n1-mark b { transform: none; }
body.skin-sport .tile { aspect-ratio: 4 / 5; border-radius: 6px; }
body.skin-sport .hero { min-height: 360px; }
body.skin-sport .hero::after {
  background: linear-gradient(180deg, rgba(10,18,12,.25) 0%, rgba(10,18,12,.88) 100%);
}
body.skin-sport .btn, body.skin-sport .cta, body.skin-sport .related a, body.skin-sport .ig-flow span, body.skin-sport .prose, body.skin-sport .infographic, body.skin-sport .paybar, body.skin-sport .wins, body.skin-sport .why-card {
  border-radius: 2px;
}
body.skin-sport .brand-logo { height: 32px; max-width: 200px; }
body.skin-sport .search-btn { background: #14241a; }
body.skin-sport .rail-btns button { background: #1a3324; border-radius: 2px; }
body.skin-sport .paybar { border: 1px solid var(--line); }
body.skin-sport .paybar span { color: #c5d8c9; }
body.skin-sport .cta.ghost, body.skin-sport .cta.ghost.alt, body.skin-sport .cta.ink {
  border-radius: 2px;
}
body.skin-sport .related a {
  background: var(--card);
  border-color: var(--line);
}
body.skin-sport .ig-legend { color: var(--muted); }
body.skin-sport .table-wrap { overflow-x: auto; }
body.skin-sport .steps li::before { color: var(--teal); }

body.skin-lounge {
  --bg: #140f0c; --header: #1b1612; --card: #241c16; --line: #3a2e24;
  --red: #c9a14a; --red-hot: #e0b85c; --teal: #e6c98a; --muted: #c4b8a8;
}
body.skin-lounge h1, body.skin-lounge h2, body.skin-lounge .n1-word {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700;
}
body.skin-lounge .n1-mark { transform: none; border-radius: 50%; background: #c9a14a; color: #140f0c; }
body.skin-lounge .n1-mark b { transform: none; }
body.skin-lounge .tile { border-radius: 22px; }
body.skin-lounge .hero { text-align: left; place-items: center start; min-height: 460px; }
body.skin-lounge .hero-inner { text-align: left; }
body.skin-lounge .hero::after {
  background: linear-gradient(90deg, rgba(20,15,12,.92) 0%, rgba(20,15,12,.2) 62%);
}
body.skin-lounge .why-card, body.skin-lounge .prose { border-radius: 18px; }
body.skin-lounge .btn { border-radius: 999px; }
