:root {
  color-scheme: dark;
  --ink: #eef8f5;
  --muted: #a9c3c0;
  --abyss: #001b20;
  --deep: #002c34;
  --panel: #033c46;
  --panel-2: #07515d;
  --line: #0d6872;
  --gold: #e2ad63;
  --gold-2: #ffda92;
  --ember: #c13820;
  --green: #36bd72;
  --shadow: 0 18px 48px rgba(0, 8, 10, .42);
  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: 84px; }
body { margin: 0; background: radial-gradient(circle at 70% 3%, #07515c 0, var(--abyss) 31rem), var(--abyss); color: var(--ink); line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 44px 44px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .75rem 1rem; background: #fff; color: #001b20; font-weight: 900; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem; padding: .5rem 1.15rem; border-bottom: 1px solid rgba(226,173,99,.55); background: rgba(0,31,37,.94); box-shadow: 0 6px 26px rgba(0,0,0,.35); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: Georgia, serif; color: var(--gold-2); text-shadow: 0 2px 0 #4d2614; }
.brand-coin { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 2px solid var(--gold); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #35666c 0 10%, #06343c 42%, #00191d 72%); box-shadow: inset 0 0 0 3px #542c18, 0 0 15px rgba(226,173,99,.22); font-size: 1.45rem; font-weight: 900; }
.brand-copy { font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; line-height: .85; }
.brand-copy small { display: block; font: 800 .6rem/1 Inter, sans-serif; color: #fff; letter-spacing: .25em; }
.top-nav { display: flex; justify-content: center; gap: clamp(.8rem, 2.4vw, 2rem); }
.top-nav a { color: #cfe5e1; text-decoration: none; font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.top-nav a:hover { color: var(--gold-2); }
.header-actions { display: flex; gap: .55rem; }
.login-link, .header-cta, .hero-cta, .action-btn, .card-cta, .mobile-sticky-cta { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid var(--gold-2); background: linear-gradient(#126171, #06414b); color: #fff; font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: .045em; box-shadow: inset 0 0 0 2px #0c2830, 0 3px 0 #6c3a20; }
.header-cta, .hero-cta, .action-btn--hot, .mobile-sticky-cta { background: linear-gradient(#e1482b, #8e150b); box-shadow: inset 0 0 0 2px #5b120c, 0 3px 0 #6c3a20; }
.login-link:hover, .header-cta:hover, .hero-cta:hover, .action-btn:hover, .card-cta:hover { filter: brightness(1.14); transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gold); background: #032a31; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--gold-2); }

.portal-shell { display: grid; grid-template-columns: 82px minmax(0, 1fr); }
.product-rail { position: sticky; top: 64px; z-index: 50; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 1px; border-right: 1px solid #11616c; background: #032f37; }
.product-rail a { min-height: 83px; display: grid; place-items: center; align-content: center; gap: .1rem; padding: .5rem .25rem; border-bottom: 1px solid #0d5964; text-decoration: none; text-transform: uppercase; }
.product-rail a:hover { background: linear-gradient(135deg, #0b6572, #03343d); }
.product-rail span { color: var(--gold-2); font-size: 1.5rem; }
.product-rail b { font-size: .58rem; letter-spacing: .06em; }
.page-content { min-width: 0; }

.hero { position: relative; min-height: 610px; isolation: isolate; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #073a42 url('/assets/img/empire-hero.webp') center right/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,25,30,.98) 0 20%, rgba(0,31,37,.86) 38%, rgba(0,30,35,.12) 67%, rgba(0,20,24,.45)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; z-index: -1; background: linear-gradient(transparent, var(--abyss)); }
.hero-copy { width: min(760px, 58%); padding: clamp(3rem, 7vw, 7rem); }
.eyebrow { display: inline-flex; padding: .3rem .65rem; border-left: 3px solid var(--gold); background: rgba(0,29,34,.82); color: var(--gold-2); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 780px; margin: .8rem 0 1rem; font-size: clamp(2.65rem, 5.4vw, 5.7rem); text-shadow: 0 5px 18px rgba(0,0,0,.75); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3.5vw, 3.25rem); }
h3 { margin: 0 0 .55rem; font-size: 1.35rem; }
.hero-lead { max-width: 650px; color: #dcebe8; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-note { display: block; margin-top: .8rem; color: #c4d6d3; font-size: .75rem; }
.hero-cta { min-width: 220px; min-height: 58px; font-size: 1rem; }
.secondary-link { display: inline-flex; min-height: 54px; align-items: center; padding: .7rem 1rem; color: var(--gold-2); font-weight: 800; }

.quick-categories { position: relative; z-index: 3; display: flex; gap: .55rem; overflow-x: auto; padding: .8rem clamp(1rem, 3vw, 3.5rem); border-block: 1px solid #0b5964; background: #00272d; scrollbar-width: thin; }
.quick-categories a { flex: 0 0 auto; min-width: 120px; padding: .6rem .9rem; border: 1px solid #996738; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); background: linear-gradient(#0c6470, #023840); color: #ffe2a7; text-align: center; text-decoration: none; font-family: Georgia, serif; font-size: .8rem; font-weight: 800; text-transform: uppercase; }

.section { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4.5rem); }
.section--dark { background: #001f24; }
.section--panel { background: linear-gradient(145deg, #073c45, #00262c); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-head p { max-width: 720px; margin: 0; color: var(--muted); }
.kicker { margin: 0 0 .4rem; color: var(--gold); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.4rem; }
.filter-btn { min-height: 42px; padding: .55rem .85rem; border: 1px solid #116874; background: #043640; color: #dbecea; cursor: pointer; font-weight: 800; }
.filter-btn[aria-pressed="true"], .filter-btn:hover { border-color: var(--gold); background: #9b6735; color: #fff; }
.game-search { margin-left: auto; min-height: 42px; width: min(280px, 100%); border: 1px solid #116874; background: #001f24; color: #fff; padding: .55rem .8rem; }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.65rem, 1.4vw, 1.25rem); }
.game-card { position: relative; min-width: 0; overflow: hidden; border: 2px solid #bd8146; background: #032f37; box-shadow: 0 10px 24px rgba(0,0,0,.32); }
.game-card::after { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 1px solid rgba(255,226,167,.45); }
.game-art { aspect-ratio: 1/1.2; background-image: url('/assets/img/empire-games-atlas.webp'); background-size: 400% 400%; transition: transform .35s ease, filter .35s ease; }
.game-card:nth-child(1) .game-art { background-position: 0 0; }
.game-card:nth-child(2) .game-art { background-position: 33.33% 0; }
.game-card:nth-child(3) .game-art { background-position: 66.66% 0; }
.game-card:nth-child(4) .game-art { background-position: 100% 0; }
.game-card:nth-child(5) .game-art { background-position: 0 33.33%; }
.game-card:nth-child(6) .game-art { background-position: 33.33% 33.33%; }
.game-card:nth-child(7) .game-art { background-position: 66.66% 33.33%; }
.game-card:nth-child(8) .game-art { background-position: 100% 33.33%; }
.game-card:nth-child(9) .game-art { background-position: 0 66.66%; }
.game-card:nth-child(10) .game-art { background-position: 33.33% 66.66%; }
.game-card:nth-child(11) .game-art { background-position: 66.66% 66.66%; }
.game-card:nth-child(12) .game-art { background-position: 100% 66.66%; }
.game-card:nth-child(13) .game-art { background-position: 0 100%; }
.game-card:nth-child(14) .game-art { background-position: 33.33% 100%; }
.game-card:nth-child(15) .game-art { background-position: 66.66% 100%; }
.game-card:nth-child(16) .game-art { background-position: 100% 100%; }
.game-meta { min-height: 78px; padding: .75rem .7rem .8rem; }
.game-meta small { color: var(--gold-2); text-transform: uppercase; font-size: .58rem; font-weight: 900; letter-spacing: .09em; }
.game-meta h3 { margin-top: .18rem; overflow: hidden; font: 800 .88rem/1.2 Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.game-meta p { margin: 0; color: #9eb9b7; font-size: .69rem; }
.play-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: .4rem; padding: 1rem; background: rgba(0,26,31,.91); opacity: 0; transform: translateY(8px); transition: .24s ease; text-align: center; text-decoration: none; }
.play-overlay strong { color: #fff; font-family: Georgia, serif; font-size: 1.12rem; }
.play-overlay span { color: var(--gold-2); font-size: .75rem; font-weight: 800; }
.play-overlay em { display: inline-flex; justify-content: center; padding: .55rem .7rem; margin-top: .25rem; background: #b62617; border: 1px solid var(--gold-2); color: #fff; font-style: normal; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.game-card:hover .play-overlay, .game-card:focus-within .play-overlay { opacity: 1; transform: none; }
.game-card:hover .game-art { transform: scale(1.045); filter: brightness(.7); }
.game-card[hidden] { display: none; }

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.promo-card { position: relative; min-height: 410px; display: flex; align-items: end; overflow: hidden; border: 2px solid #bb8147; box-shadow: var(--shadow); background-image: url('/assets/img/empire-promos-atlas.webp'); background-size: 300% 200%; }
.promo-card:nth-child(1) { background-position: 0 0; }
.promo-card:nth-child(2) { background-position: 50% 0; }
.promo-card:nth-child(3) { background-position: 100% 0; }
.promo-card:nth-child(4) { background-position: 0 100%; }
.promo-card:nth-child(5) { background-position: 50% 100%; }
.promo-card:nth-child(6) { background-position: 100% 100%; }
.promo-copy { width: 100%; padding: 6rem 1.1rem 1.2rem; background: linear-gradient(transparent, rgba(0,27,32,.96) 40%); }
.promo-copy p { margin: .25rem 0 .9rem; color: #cce0dd; font-size: .86rem; }
.tag { display: inline-flex; padding: .18rem .45rem; background: #087a45; color: #fff; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.tag--casino { background: #a9291b; }
.tag--info { background: #176984; }
.card-cta { min-height: 40px; width: 100%; font-size: .7rem; }

.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #12606b; background: #063841; }
.feature { padding: 1.5rem; border-right: 1px solid #12606b; }
.feature:last-child { border: 0; }
.feature b { display: block; color: var(--gold-2); font-family: Georgia, serif; font-size: 1.15rem; }
.feature span { color: #b8cecb; font-size: .78rem; }

.live-stage, .sport-stage { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding: clamp(2rem, 4vw, 4.5rem); border: 1px solid #12616b; background: linear-gradient(120deg, #063e48, #001d22); box-shadow: var(--shadow); }
.live-stage::after, .sport-stage::after { content: ""; min-height: 360px; background-image: url('/assets/img/empire-promos-atlas.webp'); background-size: 300% 200%; background-position: 100% 100%; border: 2px solid #a97543; box-shadow: inset 0 0 0 5px #032e35; }
.sport-stage::after { background-position: 0 100%; }
.stage-copy p { color: #c5d8d5; }
.stage-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.5rem; }
.stage-pills span { padding: .35rem .6rem; border: 1px solid #277681; background: #00272d; color: #d8e8e6; font-size: .75rem; }

.article { max-width: 1160px; margin: auto; }
.article-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; margin-bottom: 3rem; }
.article-intro > aside { padding: 1.2rem; border: 1px solid var(--gold); background: #052f36; }
.article-nav { display: grid; gap: .35rem; }
.article-nav a { color: var(--gold-2); }
.article-section { padding: 2.2rem 0; border-top: 1px solid #13545e; scroll-margin-top: 88px; }
.article-section p, .article-section li { color: #c6d9d6; }
.article-section strong { color: #fff; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.info-card { padding: 1.25rem; border: 1px solid #145d67; background: rgba(4,54,62,.62); }
.info-card--alert { border-color: #c58a4d; background: #2f261c; }
.fact-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.fact-table th, .fact-table td { padding: .75rem; border: 1px solid #17616a; vertical-align: top; text-align: left; }
.fact-table th { width: 28%; color: var(--gold-2); background: #04333b; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin: .55rem 0; }
.check-list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); }
.quote-block { padding: 1.5rem; border-left: 4px solid var(--gold); background: #042f36; color: #e4efed; }

.faq { max-width: 1000px; margin: auto; }
.faq details { border-bottom: 1px solid #155963; background: #042e35; }
.faq summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.1rem; color: #fff; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 800; }
.faq details p { padding: 0 1.1rem 1.2rem; margin: 0; color: #bed2cf; }

.closing { display: grid; place-items: center; min-height: 390px; padding: 3rem 1rem; text-align: center; background: linear-gradient(rgba(0,25,30,.42), #001b20), url('/assets/img/empire-hero.webp') center/cover; }
.closing > div { max-width: 760px; padding: 2rem; border: 1px solid rgba(226,173,99,.6); background: rgba(0,28,33,.88); backdrop-filter: blur(8px); }
.utility-hero { min-height: 390px; display: grid; align-content: center; padding: clamp(3rem, 8vw, 7rem); background: linear-gradient(90deg, rgba(0,24,29,.98), rgba(0,29,34,.45)), url('/assets/img/empire-hero.webp') center/cover; }
.utility-hero > * { max-width: 780px; }
.utility-body { max-width: 1040px; margin: auto; padding: clamp(2.5rem, 6vw, 6rem) 1rem; }
.utility-body section { margin: 2.5rem 0; }

.site-footer { padding: 3rem clamp(1rem, 4vw, 4.5rem) 5rem; border-top: 1px solid #175c66; background: #001216; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer-top p { max-width: 620px; color: #8faaa7; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; padding-block: 1.2rem; border-block: 1px solid #103a40; }
.site-footer nav a { color: #c0d2cf; }
.footer-note { color: #758f8c; font-size: .75rem; }
.mobile-sticky-cta { display: none; }

@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .top-nav { display: none; }
  .hero-copy { width: 67%; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 68px; }
  .site-header { grid-template-columns: auto 1fr auto; min-height: 60px; padding: .45rem .65rem; }
  .menu-toggle { display: block; }
  .brand-coin { width: 36px; }
  .brand-copy { font-size: .95rem; }
  .login-link { display: none; }
  .header-cta { min-height: 42px; padding: .55rem .65rem; font-size: .7rem; }
  .portal-shell { display: block; }
  .product-rail { position: fixed; inset: 60px auto 0 0; width: 98px; height: auto; z-index: 95; transform: translateX(-110%); transition: transform .25s ease; box-shadow: 20px 0 40px rgba(0,0,0,.45); }
  .product-rail.is-open { transform: none; }
  .product-rail a { min-height: 72px; }
  .hero { min-height: 650px; align-items: end; background-position: 64% center; }
  .hero::before { background: linear-gradient(0deg, #001b20 0 20%, rgba(0,27,32,.91) 58%, rgba(0,25,30,.1)); }
  .hero-copy { width: 100%; padding: 2.2rem 1rem 3.5rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .quick-categories { padding-inline: 1rem; }
  .section { padding: 3.3rem 1rem; }
  .section-head, .footer-top { display: block; }
  .filter-bar { align-items: stretch; }
  .game-search { order: -1; margin: 0; width: 100%; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .game-meta { min-height: 74px; padding: .6rem; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { min-height: 450px; }
  .feature-strip { grid-template-columns: repeat(2,1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .live-stage, .sport-stage, .article-intro, .split { grid-template-columns: 1fr; }
  .live-stage, .sport-stage { padding: 1rem; }
  .live-stage::after, .sport-stage::after { min-height: 310px; order: -1; }
  .fact-table, .fact-table tbody, .fact-table tr, .fact-table th, .fact-table td { display: block; width: 100%; }
  .fact-table tr { margin-bottom: .75rem; }
  .site-footer { padding-bottom: 6rem; }
  .mobile-sticky-cta { position: fixed; z-index: 90; left: .7rem; right: .7rem; bottom: .65rem; display: flex; min-height: 54px; box-shadow: 0 9px 30px #000; }
}

@media (max-width: 380px) {
  .brand-copy small { display: none; }
  .brand-copy { font-size: .78rem; }
  .header-cta { font-size: .62rem; }
  .game-meta h3 { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
