/* Golden Play – theme */
:root {
  --bg-primary: #1B1B1F;
  --bg-dark: #131313;
  --surface: #262727;
  --white: #FFFFFF;
  --gold: #D1AA41;
  --gold-gradient: linear-gradient(180deg, #8E713A 0%, #282010 100%);
  --green: #18AE62;
  --green-hover: #27AA5E;
  --neutral-btn: #313236;
  --on-gold: #000000;

  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, .72);
  --text-muted: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .09);
  --gold-line: rgba(209, 170, 65, .35);
  --gold-tint: rgba(209, 170, 65, .08);

  --wrap: 1220px;
  --gap: 22px;
  --space: 64px;
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 3px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Poppins", Arial, sans-serif;
  --t: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--text); background: var(--bg-primary); }
img { max-width: 100%; display: block; }
:where(img[width][height]) { height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0 0 .7em; }
h2 { font-family: var(--font); font-size: 18px; font-weight: 600; line-height: 1.2; text-transform: uppercase; color: var(--gold); letter-spacing: .02em; }
h3 { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--white); }

/* heading accent: short gold line under H2 */
.block h2 { position: relative; padding-bottom: 12px; margin-bottom: 24px; }
.block h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: var(--gold); color: var(--on-gold); font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Title ---------- */
.page-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gold); margin: 30px 0 0; line-height: 1.2; }

/* ---------- Rich text ---------- */
.rich { font-size: 16px; line-height: 1.35; }
.rich p { color: var(--text); }
.rich h3 { margin-top: 1.7em; padding-left: 12px; border-left: 3px solid var(--gold); }
.rich ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; counter-reset: step; }
.rich ol li { counter-increment: step; position: relative; padding: 4px 0 4px 40px; margin-bottom: 8px; }
.rich ol li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rich a { color: var(--gold); text-decoration: underline; }
.rich-after { margin-top: 36px; }

/* Tables: gold header bar, striped dark rows */
.tbl-scroll { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--gold-line); }
.tbl-scroll table { min-width: 480px; font-size: 15px; background: var(--bg-dark); }
.tbl-scroll th { background: var(--gold-gradient); color: var(--gold); text-align: left; padding: 13px 16px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; border-bottom: 1px solid var(--gold-line); }
.tbl-scroll td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tbl-scroll tbody tr:nth-child(even) { background: var(--surface); }
.tbl-scroll td:first-child { font-weight: 500; }

/* ---------- Buttons ---------- */
.cta-main {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: .03em; position: relative;
  transition: filter var(--t), transform var(--t);
}
.cta-main:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-main:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Hero CTA: fade in/out border */
.cta-fade::after {
  content: ""; position: absolute; inset: -5px; border-radius: calc(var(--r-sm) + 4px);
  border: 2px solid var(--gold); opacity: 0; pointer-events: none;
  animation: cta-fade 2.6s ease-in-out infinite;
}
@keyframes cta-fade {
  0%, 100% { opacity: 0; transform: scale(.98); }
  50% { opacity: .9; transform: scale(1.02); }
}

/* Header auth buttons: filled site colours */
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background var(--t), filter var(--t), transform var(--t);
}
.auth-login { background: var(--green); color: var(--white); }
.auth-login:hover { background: var(--green-hover); transform: translateY(-1px); }
.auth-join { background: linear-gradient(180deg, #E0BC57 0%, var(--gold) 100%); color: var(--on-gold); }
.auth-join:hover { filter: brightness(1.07); transform: translateY(-1px); }
.auth-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--bg-primary); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.topnav { flex: 1; min-width: 0; }
.topnav-list { display: flex; align-items: center; gap: 6px; list-style: none; }
.topnav-link { display: inline-flex; padding: 9px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--white); transition: color var(--t), background var(--t); }
.topnav-link:hover, .topnav-link:focus-visible { color: var(--gold); background: var(--surface); }
.masthead-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gift-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--gold); transition: background var(--t), transform var(--t); }
.gift-btn:hover { background: var(--neutral-btn); transform: translateY(-1px); }
.gift-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--surface); }
.burger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--white); transition: transform var(--t), opacity var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { display: none; background: var(--bg-dark); max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.drawer.open { max-height: 80vh; overflow-y: auto; }
.drawer-list { list-style: none; padding: 8px 20px; }
.drawer-list li { border-bottom: 1px solid var(--line); }
.drawer-link { display: block; padding: 14px 4px; font-weight: 500; }
.drawer-link:hover { color: var(--gold); }
.drawer-actions { display: flex; gap: 12px; padding: 16px 20px 24px; }
.drawer-actions .auth-btn { flex: 1; }

/* ---------- Hero ---------- */
.promo-stage { padding: 24px 0 32px; }
.promo-stage-frame {
  position: relative; display: flex; align-items: center; padding: 30px;
  min-height: 360px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-dark); box-shadow: var(--shadow-lg); border: 1px solid var(--gold-line);
}
.promo-stage-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.promo-stage--center { justify-content: center; }
.promo-stage--center::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(19, 19, 19, .55) 0%, rgba(19, 19, 19, 0) 65%); }
.promo-stage-panel {
  position: relative; max-width: 520px; text-align: center;
  padding: 30px 34px; border-radius: var(--r-lg);
  background: rgba(19, 19, 19, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold-line); box-shadow: var(--shadow);
}
.promo-stage-offer { font-family: var(--font); font-size: 43px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; color: var(--gold); margin: 0 0 14px; }
.promo-stage-desc { font-size: 16px; color: var(--text-soft); margin: 0 0 22px; }

/* ---------- Sections ---------- */
.block { padding: var(--space) 0; }
.tone-a { background: var(--bg-primary); }
.tone-b { background: var(--bg-dark); }
.tone-dark { background: var(--bg-dark); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }

.shot { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-bottom: 28px; }

/* ---------- Game tiles (sliding dark overlay) ---------- */
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.game-tile { background: var(--surface); border-radius: var(--r-sm); overflow: hidden; border-bottom: 2px solid var(--gold); box-shadow: var(--shadow); }
.game-tile-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-dark); }
.game-tile-art img { width: 100%; height: 100%; object-fit: contain; transition: transform 320ms ease; }
.game-tile-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 18% 8px 10px; background: rgba(0, 0, 0, .72);
  transform: translateY(100%); transition: transform 320ms ease;
}
.game-tile:hover .game-tile-veil, .game-tile:focus-within .game-tile-veil, .game-tile.is-active .game-tile-veil { transform: translateY(0); }
.game-tile-play { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 12.5px; text-transform: uppercase; }
.game-tile-tri { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--on-gold); }
.game-tile-demo { display: inline-flex; padding: 5px 14px; border-radius: 999px; background: var(--neutral-btn); color: var(--white); font-weight: 500; font-size: 12px; border: 1px solid rgba(255, 255, 255, .2); }
.game-tile-play:hover { filter: brightness(1.08); }
.game-tile-demo:hover { background: #3c3d42; }
.game-tile-play:focus-visible, .game-tile-demo:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.game-tile-info { padding: 8px 10px 10px; }
.game-tile-title { font-size: 13px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tile-studio { font-size: 11.5px; color: var(--text-muted); }

/* ---------- Offer cards (row of four) ---------- */
.offer-grid { display: grid; gap: var(--gap); margin-bottom: 40px; }
.offer-grid--row { grid-template-columns: repeat(4, 1fr); }
.offer-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; border-top: 3px solid var(--gold); box-shadow: var(--shadow); transition: transform var(--t); }
.offer-card:hover { transform: translateY(-3px); }
.offer-card-pic { aspect-ratio: 16 / 10; background: var(--bg-dark); }
.offer-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-text { padding: 16px 18px 20px; }
.offer-card-name { font-size: 16px; margin: 0 0 6px; }
.offer-card-value { margin: 0; font-size: 15px; font-weight: 600; color: var(--gold); }

/* ---------- Providers ---------- */
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 24px; }
.studio-chip { display: flex; align-items: center; justify-content: center; min-height: 78px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t), transform var(--t); }
.studio-chip:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.studio-chip img { max-height: 36px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 40px; }
.pay-chip { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: border-color var(--t), transform var(--t); }
.pay-chip:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.pay-chip-logo { display: flex; align-items: center; justify-content: center; width: 120px; height: 56px; padding: 8px 12px; background: var(--white); border-radius: var(--r-sm); }
.pay-chip-logo img { max-height: 40px; max-width: 100%; object-fit: contain; }
.pay-chip-name { font-size: 14px; font-weight: 500; }

/* ---------- Last updated (right aligned) ---------- */
.stamp-block { padding: 26px 0; }
.stamp { margin: 0; font-size: 14.5px; color: var(--text-soft); }
.stamp--right { text-align: right; }
.stamp-label { color: var(--gold); font-weight: 600; }

/* ---------- FAQ (tinted panels, slide/fade reveal) ---------- */
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-item { background: var(--gold-tint); border: 1px solid var(--gold-line); border-radius: var(--r); transition: background var(--t), border-color var(--t); }
.qa-item:hover { background: rgba(209, 170, 65, .13); }
.qa-item.open { background: var(--surface); border-color: var(--gold); }
.qa-head { margin: 0; }
.qa-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font-size: 16px; font-weight: 600; color: var(--white); border-radius: var(--r); }
.qa-toggle:hover span:first-child { color: var(--gold); }
.qa-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qa-sign { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); transition: transform 280ms ease; }
.qa-sign::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--on-gold); border-bottom: 2px solid var(--on-gold); transform: translate(-50%, -50%) rotate(45deg); }
.qa-toggle[aria-expanded="true"] .qa-sign { transform: rotate(180deg); }
.qa-body { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.qa-body-inner { padding: 0 20px 20px; color: var(--text-soft); opacity: 0; transform: translateY(-6px); transition: opacity 260ms ease, transform 260ms ease; }
.qa-item.open .qa-body-inner { opacity: 1; transform: none; }
.qa-body-inner p:last-child { margin-bottom: 0; }

/* ---------- Footer (left aligned) ---------- */
.site-foot { background: var(--bg-primary); border-top: 1px solid var(--gold-line); padding: 56px 0 30px; color: var(--text-soft); }
.site-foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.site-foot-brand .brand-mark { margin-bottom: 16px; }
.site-foot-note { font-size: 14px; max-width: 380px; }
.site-foot-col h3 { color: var(--gold); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.site-foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-foot-col a { font-size: 14.5px; transition: color var(--t); }
.site-foot-col a:hover { color: var(--gold); }
.site-foot--left { text-align: left; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: flex-start; padding: 26px 0; }
.trust-badge { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 44px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color var(--t); }
a.trust-badge:hover { border-color: var(--gold-line); }
.trust-badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.site-foot-rg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin: 0 0 12px; }
.age-pill { padding: 2px 8px; border-radius: var(--r-sm); background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 12.5px; }
.site-foot-copy { margin: 0; font-size: 13px; color: var(--text-muted); }

/* ---------- 404 ---------- */
.err-body { min-height: 100vh; display: flex; flex-direction: column; }
.err-page { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; }
.err-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.err-code { font-family: var(--font-display); font-size: 72px; color: var(--gold); margin: 0; }
.err-text { font-size: 18px; color: var(--text-soft); margin: 0 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); }
  .offer-grid--row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  :root { --space: 44px; }
  .topnav, .gift-btn { display: none; }
  .masthead-actions .auth-login { display: none; }
  .burger { display: flex; }
  .drawer { display: block; }
  .brand-mark img { width: 130px; height: auto; }
  .promo-stage-frame { min-height: 320px; padding: 22px; }
  .promo-stage-offer { font-size: 36px; }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .site-foot-top { grid-template-columns: 1fr 1fr; }
  .site-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --space: 34px; }
  .wrap { padding: 0 16px; }
  .page-title { font-size: 21px; margin-top: 22px; }
  .promo-stage { padding-top: 16px; }
  .promo-stage-frame { min-height: 0; padding: 120px 12px 12px; border-radius: var(--r); }
  .promo-stage-panel { padding: 22px 18px; max-width: none; width: 100%; }
  .promo-stage-offer { font-size: 30px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .studio-grid, .pay-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .offer-grid--row { grid-template-columns: 1fr; }
  .masthead-actions .auth-join { padding: 0 14px; }
  .site-foot-top { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 480px) {
  .brand-mark img { width: 112px; }
}
@media (hover: none) {
  .game-tile-veil { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}
