@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --nav-height: 70px;
  --navy: #090f1f;
  --panel: #1c2432;
  --muted: #acacac;
  --yellow: #ffec00;
}

* { box-sizing: border-box; }
body { margin: 0; color: #fff; font: 14px/1.5 Montserrat, Arial, sans-serif; background: var(--navy) url('../img/texture/felt.png'); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input { border: 0; }
button { color: inherit; background: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -60px; left: 12px; z-index: 100; padding: 12px; color: #000; background: var(--yellow); }
.skip:focus { top: 10px; }
main { margin-top: var(--nav-height); min-height: 65vh; }

/* The reference's slim, fixed navigation and centred clock. */
.topbar { position: fixed; inset: 0 0 auto; height: var(--nav-height); z-index: 60; background: var(--navy); box-shadow: 0 0 12px 1px #000; }
.topbar-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.header-brand { display: flex; align-items: center; gap: 20px; }
.icon-btn { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 36px; padding: 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo { width: 43px; height: 43px; object-fit: contain; }
.brand-text { display: inline-flex; align-items: baseline; white-space: nowrap; font: italic 900 37px/1 Arial, sans-serif; letter-spacing: -2px; }
.brand-word { color: var(--yellow); }
.brand-tld { color: #fff; font-size: 24px; letter-spacing: -1.5px; }
.header-clock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; height: 34px; padding: 7px 8px; white-space: nowrap; border: 1px solid #6a6a6a; border-radius: 5px; background: var(--panel); font-size: 12px; font-weight: 700; }
.header-clock img { opacity: .7; }
.header-options { display: flex; align-items: center; height: 38px; border: 1px solid #6a6a6a; border-radius: 6px; background: #ffffff14; }
.header-language { padding: 0 9px; font-size: 11px; font-weight: 700; border-right: 1px solid #6a6a6a; }
.settings-link { display: grid; place-items: center; width: 37px; height: 36px; }

/* Shared artwork from the reference, with KA999 branding set in HTML. */
[data-page='rtp'] > .wrap { display: flow-root; }
.reference-banner { position: relative; display: block; overflow: hidden; aspect-ratio: 1080 / 200; margin-top: 20px; background: radial-gradient(ellipse at 45% 25%, #f7eaa9, transparent 62%), linear-gradient(120deg, #b24a0c, #dba235 45%, #f1d48d 75%, #ce7624); }
.banner-art { position: absolute; top: 0; right: 0; width: 37%; height: 100%; object-fit: fill; }
.banner-copy { position: absolute; inset: 4% auto 4% 3.5%; width: 65%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-shadow: 2px 3px 2px #672109; }
.banner-brand { font: italic 900 clamp(15px,4vw,50px)/.95 Arial, sans-serif; color: var(--yellow); letter-spacing: -2px; margin-bottom: 4px; }
.banner-brand span { color: #fff; font-size: .62em; letter-spacing: -1px; }
.banner-copy h1 { margin: 0; font: italic 800 clamp(11px,2.5vw,34px)/1.05 Arial, sans-serif; letter-spacing: .02em; }
.banner-copy p { margin: 2px 0 0; color: var(--yellow); font: italic 800 clamp(9px,2.1vw,28px)/1.1 Arial, sans-serif; }

/* Square studio tabs, full-width search, and the small right-aligned sorter. */
.providers { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #000 transparent; padding-bottom: 18px; margin: 27px 0 12px; }
.provider-tile { flex: 0 0 80px; width: 80px; height: 94px; padding: 8px 8px 2px; border-radius: 4px; background: linear-gradient(0deg,#19233e,#243d5c); text-align: center; }
.provider-tile img { width: 64px; height: 64px; object-fit: contain; }
.provider-tile span { display: block; margin-top: 1px; font-size: 12px; white-space: nowrap; }
.provider-tile:hover { background: linear-gradient(0deg,#243552,#355578); }
.provider-tile[aria-current='true'] { box-shadow: inset 0 -2px 0 #ffec00; }
.toolbar { display: flex; flex-direction: column; gap: 10px; }
.search { display: flex; align-items: center; width: 100%; height: 32px; border-bottom: 2px solid #035; border-radius: 6px; background: var(--panel); color: #8f969f; }
.search svg { flex: 0 0 18px; width: 18px; height: 18px; margin: 0 8px; }
.search input { min-width: 0; width: 100%; height: 100%; padding: 0 8px 0 0; color: #fff; background: transparent; font-family: Arial,sans-serif; font-size: 14px; }
.search input::placeholder { color: #80858c; }
.sort { display: flex; align-self: flex-end; height: 30px; }
.sort select { padding: 4px 5px; border: 0; border-radius: 2px; color: #fff; background: var(--panel); font-family: Arial,sans-serif; font-size: 16px; }

/* Compact five-column catalog. All numerical information lives in the striped rows. */
.game-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); column-gap: 24px; row-gap: 24px; list-style: none; margin: 18px 0 24px; padding: 0; }
.game { min-width: 0; }
.game-cover { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; cursor: pointer; overflow: hidden; }
.game-reveal { display: block; width: 100%; height: 100%; padding: 0; }
.game-reveal:focus-visible { outline-offset: -3px; }
.game-reveal img { width: 100%; height: 100%; object-fit: fill; transition: transform 220ms ease-out; }
.game-cover.is-ready .game-reveal img { transform: scale(1.035); }
.cover-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #0006; font-size: 14px; font-weight: 700; }
.cover-play-pill { padding: 6px 30px; border-radius: 999px; color: #000; background: #ffec00; box-shadow: 0 3px 12px #0004; }
.cover-play:focus-visible .cover-play-pill { outline: 2px solid #fff; outline-offset: 4px; }
.game-cover.is-ready .cover-play { animation: reveal-overlay 220ms ease-out both; }
.game-cover.is-ready .cover-play-pill { animation: reveal-play 280ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes reveal-overlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-play { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
.trend-arrow { position: absolute; right: 4px; bottom: 3px; width: 16px; height: 24px; object-fit: contain; pointer-events: none; }
.trend-rows { padding: 3px 6px 0; }
.trend-row { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; height: 16px; margin: 6px 0; padding: 0 6px 0 8px; border-radius: 2px; color: #000; background: #e5e5e5; font: 700 12px/16px Montserrat,Arial,sans-serif; }
.trend-fill { position: absolute; top: 0; left: 0; bottom: 0; width: var(--fill,0%); background-color: var(--fill-color,#3cb371); background-image: linear-gradient(45deg,#ffffff26 25%,transparent 25%,transparent 50%,#ffffff26 50%,#ffffff26 75%,transparent 75%,transparent); background-size: 16px 16px; transition: width 600ms ease-out,background-color 300ms; animation: stripes 2s linear infinite; }
.trend-label, .trend-value { position: relative; z-index: 1; white-space: nowrap; }
.trend-label { letter-spacing: -.3px; }
.trend-value { font-variant-numeric: tabular-nums; padding-left: 4px; }
.game-meta { position: relative; height: 20px; margin-top: -1px; }
.game-stars { display: flex; align-items: center; justify-content: center; height: 20px; gap: 0; }
.game-stars img { width: 15px; height: 15px; }
.countdown { position: absolute; right: 6px; top: 0; display: grid; place-items: center; width: 22px; height: 22px; line-height: 1; font-size: 12px; color: #eef302; border: 1px solid #08f806; border-radius: 100%; font-variant-numeric: tabular-nums; }
.game-name { margin: 0; text-align: center; font-size: 12px; line-height: 1.3; font-weight: 400; }
.is-changed { animation: changed 900ms ease-out; }
@keyframes stripes { from { background-position: 16px 0; } to { background-position: 0 0; } }
@keyframes changed { from { filter: brightness(1.4); } }
.grid-status { padding: 45px 10px; text-align: center; }
.grid-status strong { display: block; margin-bottom: 8px; }
.fine { margin: 15px 0; color: #a0a8b7; font-size: 11px; line-height: 1.7; }

/* Reference-style slide-out page menu and its original Fortune tiles. */
.drawer { position: fixed; inset: var(--nav-height) auto 0 0; width: 320px; z-index: 55; overflow-y: auto; padding: 16px 24px; background: var(--navy); transform: translateX(-100%); transition: transform 250ms; }
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { display: none; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.drawer-tiles img { width: 100%; height: auto; }
.drawer-rule { width: 100%; margin: 12px 0; }
.drawer-nav { display: grid; gap: 10px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 7px; color: var(--muted); font-size: 15px; font-weight: 700; }
.drawer-nav a:hover, .drawer-nav a[aria-current='page'] { color: #fff; background: var(--panel); }
.ico { display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; background: currentColor; mask: center/contain no-repeat; }
.ico-home { mask-image: url('../img/icons/home.png'); }
.ico-rtp { mask-image: url('../img/icons/rtp.png'); }
.ico-about { mask-image: url('../img/icons/about.png'); }
.ico-privacy { mask-image: url('../img/icons/privacy.png'); }
.ico-cookies { mask-image: url('../img/icons/cookies.png'); }
.ico-terms { mask-image: url('../img/icons/terms.png'); }
.ico-mail { mask-image: url('../img/icons/mail.png'); }
.drawer-social { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.drawer-backdrop { position: fixed; inset: var(--nav-height) 0 0; z-index: 54; background: #0007; opacity: 0; pointer-events: none; transition: opacity 250ms; }
.drawer.is-open + .drawer-backdrop { opacity: 1; pointer-events: auto; }

/* Portuguese information and policy pages use the same navy, type and source artwork. */
.page[data-page]:not([data-page='rtp']) { padding: 28px 0 40px; }
h1,h2,h3,p,ul,dl,figure { margin-top: 0; }
.display { font-size: clamp(30px,4vw,48px); line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
.display em { color: #ffbf1c; font-style: normal; }
.eyebrow { color: #a59260; font-size: 12px; font-weight: 700; }
.lede,.t-exp { font-size: 17px; color: #ebe8cc; }
.hero { padding: 12px 0 24px; }
.hero > div { max-width: 760px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 40px; color: #000; background: var(--yellow); font-weight: 700; }
.btn-ghost { color: #fff; background: var(--panel); }
.btn-small { padding: 7px 14px; font-size: 12px; }
.promo-rail { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 30px; }
.promo { position: relative; overflow: hidden; aspect-ratio: 3 / 1; background: #14213b; }
.promo > img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.promo-copy { position: absolute; inset: 15px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; text-shadow: 1px 2px 2px #000; }
.promo-kicker,.promo-go { font-size: 12px; font-weight: 700; color: #ffec00; }
.promo-title { font-weight: 700; font-size: 21px; }
.section { margin: 36px 0; }
.section-title { font-size: 26px; font-weight: 700; color: #ebe8cc; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.text-link { color: #ffbf1c; }
.featured-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; }
.feature { display: block; }
.feature img { width: 100%; height: auto; }
.feature-meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 5px; }
.feature-rtp { display: none; }
.feature-play { color: #ffbf1c; }
.basics,.split,.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; margin: 40px 0; }
.basics-photo,.split > img { width: 100%; height: auto; }
.facts { margin: 18px 0; }
.facts > div { margin-bottom: 20px; }
.facts dt { font-weight: 700; margin-bottom: 5px; }
.facts dd { margin: 0; color: #bec3cd; }
.footnote { font-size: 12px; color: #a59260; }
.closer { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 50px 0 20px; }
.closer img { max-width: 220px; }
.about-logo { max-width: 280px; justify-self: center; }
.about-hero .socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials img { width: 36px; }
.tips { padding-left: 20px; color: #bec3cd; }
.tips li { margin: 10px 0; }
.doc { max-width: 820px; font-size: 14px; }
.doc-photo { width: 230px; max-height: 180px; object-fit: cover; float: right; margin: 0 0 20px 25px; }
.doc h2 { margin-top: 25px; font-size: 19px; color: #ebe8cc; }
.doc a { color: #ffbf1c; }
.doc ul { padding-left: 20px; }
.footer { padding: 28px 0 30px; margin-top: 35px; color: #929aa9; font-size: 11px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer .brand { display: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin-bottom: 16px; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.age-note { display: flex; align-items: center; gap: 12px; }
.age-badge { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #6a6a6a; border-radius: 50%; font-size: 10px; }
.copyright { display: inline-block; padding: 3px 8px; border-radius: 3px; background: #90909040; font-family: monospace; }

@media (max-width: 1000px) { .game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 768px) {
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero,.basics,.split,.about-hero { grid-template-columns: 1fr; gap: 24px; }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .banner-brand { letter-spacing: -1px; }
  .header-options { display: none; }
  .footer-top { display: block; }
}
@media (max-width: 560px) {
  :root { --nav-height: 80px; }
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .header-brand { gap: 10px; }
  .brand { gap: 5px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-text { font-size: 32px; letter-spacing: -1.8px; }
  .brand-tld { font-size: 18px; letter-spacing: -1px; }
  .header-clock { position: static; transform: none; padding: 7px 5px; font-size: 10px; gap: 4px; }
  .header-clock img { width: 11px; height: 11px; }
  .reference-banner { margin-top: 11px; }
  .banner-copy { left: 3%; width: 65%; }
  .banner-brand { margin-bottom: 1px; }
  .banner-copy h1 { font-size: clamp(10px,2.9vw,16px); }
  .banner-copy p { font-size: clamp(8px,2.3vw,12px); }
  .providers { margin-top: 27px; gap: 15px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; row-gap: 24px; margin-top: 18px; }
  .trend-rows { padding-right: 4px; padding-left: 4px; }
  .trend-row { padding: 0 4px; font-size: 10px; letter-spacing: -.4px; }
  .trend-label { letter-spacing: -.4px; }
  .trend-value { padding-left: 2px; }
  .game-stars img { width: 13px; height: 13px; }
  .countdown { width: 20px; height: 20px; font-size: 11px; right: 4px; }
  .drawer { width: 100%; }
  .drawer-tiles { max-width: 340px; margin-right: auto; margin-left: auto; }
  .promo-rail { grid-template-columns: 1fr; }
  .closer { align-items: flex-start; }
  .closer img { display: none; }
  .doc-photo { float: none; width: 100%; max-height: 220px; margin: 0 0 22px; }
}
@media (max-width: 360px) {
  .brand-logo { display: none; }
  .header-brand { gap: 8px; }
  .brand-text { font-size: 30px; }
  .trend-row { font-size: 9px; padding: 0 3px; }
  .game-grid { column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
