:root {
  color-scheme: dark;
  --bg: #080c28;
  --bg-deep: #05081d;
  --panel: #111735;
  --panel-2: #1a2349;
  --line: #293460;
  --muted: #93a0cf;
  --blue: #4a5cff;
  --blue-bright: #6d7cff;
  --ink: #f8f9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 60; min-height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 10px clamp(18px, 3vw, 42px);
  background: rgba(4, 7, 27, .96); border-bottom: 1px solid #151d45; backdrop-filter: blur(14px);
}
.brand { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 950; letter-spacing: -.06em; text-decoration: none; }
.header-cta, .hero-cta {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 25px;
  border-radius: 12px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 900;
  text-decoration: none; box-shadow: 0 12px 30px rgba(52, 71, 255, .28); transition: transform .2s ease, background .2s ease;
}
.header-cta:hover, .hero-cta:hover { transform: translateY(-2px); background: var(--blue-bright); }
.product-nav {
  position: sticky; top: 72px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 8px;
  overflow-x: auto; padding: 9px clamp(16px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(10, 14, 43, .96);
  scrollbar-width: thin;
}
.product-nav a { flex: 0 0 auto; padding: 9px 15px; border-radius: 9px; color: #a8b3de; font-weight: 800; text-decoration: none; }
.product-nav a:hover { color: #fff; background: #20294f; }

.hero {
  position: relative; isolation: isolate; min-height: clamp(510px, 56vw, 760px); display: grid; align-items: center;
  overflow: hidden; margin: 22px clamp(14px, 2.8vw, 42px) 0; border-radius: 24px; background: #0b1031;
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,7,27,.98) 0%, rgba(4,7,27,.84) 34%, rgba(4,7,27,.25) 70%, rgba(4,7,27,.12)); }
.hero-copy { width: min(700px, 58%); padding: clamp(28px, 5vw, 78px); }
.eyebrow { margin: 0 0 9px; color: #8fa0ff; font-size: 12px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: 0 0 16px; font-size: clamp(42px, 5.8vw, 82px); line-height: .96; letter-spacing: -.055em; }
.hero-phrase { max-width: 55ch; margin: 0; color: #d8ddf5; font-size: clamp(17px, 1.6vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.ghost-link { display: inline-flex; min-height: 52px; align-items: center; padding: 12px 20px; border: 1px solid #6b78b0; border-radius: 12px; background: rgba(18,25,63,.75); font-weight: 850; text-decoration: none; }
.page-hero { min-height: clamp(440px, 46vw, 620px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 70px); }
.utility-hero { min-height: 390px; }
.utility-hero h1 { font-size: clamp(38px, 4.6vw, 64px); }
.games-hero .hero-art, .access-hero .hero-art { object-position: 70% 26%; filter: saturate(.82) brightness(.7); }
.bonus-hero .hero-art { object-position: 67% 50%; }
.sports-hero .hero-art { object-position: 59% 50%; }

.category-tabs {
  display: flex; gap: 6px; overflow-x: auto; margin: 22px clamp(14px, 2.8vw, 42px) 34px; padding: 8px;
  border: 1px solid #252e58; border-radius: 16px; background: #151c40; scrollbar-width: thin;
}
.category-tabs a { flex: 0 0 auto; padding: 13px 17px; border-radius: 11px; color: #8e9ac7; font-weight: 850; text-decoration: none; }
.category-tabs a:hover, .category-tabs .active { color: #fff; background: #3a4777; }

.game-section { margin: 0 clamp(14px, 2.8vw, 42px) 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-head > div { display: flex; align-items: center; gap: 10px; }
.section-head > div > span { color: #8090d0; font-size: 27px; font-weight: 900; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 39px); line-height: 1; }
.section-head > a { padding: 8px 12px; border-radius: 10px; color: #93a3e4; background: #171e43; font-weight: 800; text-decoration: none; }
.game-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(9px, 1.2vw, 16px); }
.game-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: #161c42; text-decoration: none; box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.card-art { position: absolute; inset: 0; display: block; background-repeat: no-repeat; background-size: 500% auto; transition: transform .28s ease, filter .28s ease; }
.game-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(3,6,23,.96)); }
.game-name { position: absolute; z-index: 2; left: 13px; right: 13px; bottom: 12px; display: grid; }
.game-name b { font-size: clamp(14px, 1.25vw, 18px); line-height: 1.1; }
.game-name small { color: #c0c8eb; }
.play-layer {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; opacity: 0;
  background: linear-gradient(145deg, rgba(43,57,136,.94), rgba(51,26,115,.94)); color: #fff; text-align: center;
  font-size: clamp(15px, 1.35vw, 20px); font-weight: 950; line-height: 1.18; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease;
}
.game-card:hover .card-art, .game-card:focus-visible .card-art { transform: scale(1.04); filter: brightness(.75); }
.game-card:hover .play-layer, .game-card:focus-visible .play-layer { opacity: 1; transform: none; }

.art-s1,.art-s2,.art-s3,.art-s4,.art-s5,.art-s6,.art-s7,.art-s8,.art-s9,.art-s10 { background-image: url('/assets/images/slot-atlas.webp'); }
.art-l1,.art-l2,.art-l3,.art-l4,.art-l5,.art-l6,.art-l7,.art-l8,.art-l9,.art-l10 { background-image: url('/assets/images/live-atlas.webp'); }
.art-s1,.art-s6,.art-l1,.art-l6 { background-position-x: 0%; }
.art-s2,.art-s7,.art-l2,.art-l7 { background-position-x: 25%; }
.art-s3,.art-s8,.art-l3,.art-l8 { background-position-x: 50%; }
.art-s4,.art-s9,.art-l4,.art-l9 { background-position-x: 75%; }
.art-s5,.art-s10,.art-l5,.art-l10 { background-position-x: 100%; }
.art-s1,.art-s2,.art-s3,.art-s4,.art-s5,.art-l1,.art-l2,.art-l3,.art-l4,.art-l5 { background-position-y: 0%; }
.art-s6,.art-s7,.art-s8,.art-s9,.art-s10,.art-l6,.art-l7,.art-l8,.art-l9,.art-l10 { background-position-y: 100%; }

.article { width: min(1260px, calc(100% - 28px)); margin: 58px auto 0; display: grid; gap: 18px; }
.article-panel, .faq details, .catalog-card {
  border: 1px solid #27315d; border-radius: 18px; background: linear-gradient(135deg, rgba(20,27,66,.97), rgba(9,13,42,.96)), url('/assets/images/slot-atlas.webp') center/cover no-repeat;
}
.article-panel { padding: clamp(22px, 4vw, 42px); }
.article-panel h2, .faq > h2, .catalog-card h2 { margin: 0 0 13px; font-size: clamp(27px, 3.2vw, 43px); line-height: 1.04; letter-spacing: -.035em; }
.article-panel p, .article-panel li, .catalog-card p { color: #c8cfea; }
.article-panel a, .catalog-card a, .faq a { color: #9cafff; font-weight: 850; }
.article-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.intro-panel { background-image: linear-gradient(135deg, rgba(18,27,70,.97), rgba(8,12,38,.94)), url('/assets/images/hero.webp'); }
.alert-panel { border-color: #806a32; background-image: linear-gradient(135deg, rgba(76,52,19,.88), rgba(15,17,47,.97)), url('/assets/images/hero.webp'); }
.fact-list, .number-list { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; }
.fact-list li, .number-list li { padding: 10px 12px; border-left: 3px solid #6f81ff; background: rgba(8,12,40,.58); }
.faq { display: grid; gap: 10px; }
.faq details { padding: 17px 19px; background-image: linear-gradient(90deg, rgba(17,24,61,.98), rgba(13,18,51,.92)), url('/assets/images/live-atlas.webp'); }
.faq summary { cursor: pointer; font-weight: 900; }
.faq p { margin-bottom: 0; color: #cbd2ed; }
.catalog-grid { display: grid; gap: 15px; }
.catalog-card { min-height: 290px; display: grid; grid-template-columns: minmax(190px, 30%) 1fr; overflow: hidden; }
.catalog-card > .card-art { position: relative; min-height: 290px; }
.catalog-card > div { align-self: center; padding: clamp(22px, 4vw, 44px); }
.catalog-card > div > a { display: inline-flex; margin-top: 8px; padding: 11px 15px; border-radius: 10px; background: #4355e9; color: #fff; text-decoration: none; }
.wide-art { position: relative; min-height: 260px; margin: -10px -10px 22px; border-radius: 13px; }

.inner-footer { width: min(1260px, calc(100% - 28px)); margin: 70px auto 0; padding: 34px 0; border-top: 1px solid #28325c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-brand { font-size: 34px; letter-spacing: -.05em; }
.footer-grid h2 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; }
.footer-grid p, .fineprint { color: #8f9ac2; }
.footer-grid a { display: block; padding: 4px 0; color: #c5cceb; text-decoration: none; }
.fineprint { margin-top: 28px; font-size: 12px; }
body > footer { padding: 16px clamp(18px, 3vw, 42px); border-top: 1px solid #161e45; background: var(--bg-deep); color: #6d779f; font-size: 12px; }
body > footer a { color: #98a3cf; text-decoration: none; }
code { padding: 2px 6px; border-radius: 5px; background: #202957; }

@media (max-width: 1000px) {
  .game-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-row .game-card:nth-child(5) { display: none; }
  .article-columns { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 128px; }
  .site-header { min-height: 64px; padding: 8px 14px; }
  .brand { font-size: 31px; }
  .header-cta { min-height: 48px; padding: 11px 17px; }
  .product-nav { top: 64px; justify-content: flex-start; padding: 7px 10px; }
  .product-nav a { padding: 8px 11px; font-size: 13px; }
  .hero { min-height: 570px; margin: 14px 10px 0; border-radius: 17px; align-items: end; }
  .hero::after { background: linear-gradient(0deg, rgba(4,7,27,.99) 0%, rgba(4,7,27,.78) 52%, rgba(4,7,27,.18) 88%); }
  .hero-art { object-position: 62% center; }
  .hero-copy { width: 100%; padding: 28px 22px 34px; }
  h1, .page-hero h1, .utility-hero h1 { max-width: 15ch; font-size: clamp(39px, 12vw, 58px); }
  .hero-cta { min-height: 54px; flex: 1 1 180px; }
  .ghost-link { flex: 1 1 130px; justify-content: center; }
  .category-tabs { margin: 14px 10px 28px; }
  .game-section { margin: 0 10px 30px; }
  .game-row { grid-template-columns: none; grid-auto-columns: min(66vw, 270px); grid-auto-flow: column; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .game-row .game-card:nth-child(5) { display: block; }
  .game-card { scroll-snap-align: start; }
  .section-head > a { font-size: 12px; }
  .article { margin-top: 42px; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-card > .card-art { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .utility-hero { min-height: 510px; }
}
@media (max-width: 390px) {
  .header-cta { padding-inline: 13px; font-size: 12px; }
  .hero-copy { padding-inline: 18px; }
  .game-row { grid-auto-columns: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
