:root {
  --rp-black: #090607;
  --rp-ink: #151012;
  --rp-panel: #21171a;
  --rp-red: #b3122f;
  --rp-red-dark: #7d0d22;
  --rp-gold: #d7aa55;
  --rp-gold-soft: #f0d59a;
  --rp-ivory: #f7f1e8;
  --rp-paper: #fffaf3;
  --rp-muted: #c9beb6;
  --rp-line: rgba(215, 170, 85, 0.27);
  --rp-green: #2d8a63;
  --rp-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --rp-radius: 22px;
  --rp-copy: 74ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rp-ivory);
  background:
    radial-gradient(circle at 20% 0%, rgba(179, 18, 47, 0.17), transparent 32rem),
    var(--rp-black);
  font: 400 17px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rp-gold-soft); text-underline-offset: .2em; }
a:hover { color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--rp-gold-soft); outline-offset: 4px; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: .7rem 1rem; color: var(--rp-black); background: var(--rp-ivory);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.reading { width: min(var(--rp-copy), 100%); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 6, 7, .94); border-bottom: 1px solid var(--rp-line);
  backdrop-filter: blur(16px);
}
.header-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 138px; text-decoration: none; }
.brand img { width: 138px; height: 58px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
.desktop-nav a { padding: .65rem .75rem; border-radius: 999px; color: var(--rp-muted); font-size: .9rem; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.075); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.menu-toggle { display: none; min-width: 46px; min-height: 46px; border: 1px solid var(--rp-line); border-radius: 50%; color: #fff; background: transparent; font: inherit; }
.mobile-panel { border-top: 1px solid var(--rp-line); background: #110c0e; }
.mobile-panel[hidden] { display: none; }
.mobile-panel nav { display: grid; gap: 6px; padding: 16px 20px 24px; }
.mobile-panel a { min-height: 46px; display: flex; align-items: center; padding: .6rem .8rem; border-radius: 12px; color: var(--rp-ivory); text-decoration: none; }
.mobile-panel a:hover { background: rgba(255,255,255,.07); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .68rem 1.05rem; border: 1px solid transparent; border-radius: 999px; color: #fff; font-weight: 800; line-height: 1.1; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); color: #fff; }
.button-primary { background: var(--rp-red); box-shadow: 0 12px 28px rgba(179,18,47,.3); }
.button-primary:hover { background: #ca1739; }
.button-secondary { color: var(--rp-gold-soft); border-color: var(--rp-gold); background: rgba(9,6,7,.55); }
.button-secondary:hover { background: rgba(215,170,85,.12); color: #fff; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rp-line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 20%, rgba(179,18,47,.32), transparent 34rem); pointer-events: none; }
.hero-photo { isolation: isolate; background-color: #0a0607; background-position: center; background-repeat: no-repeat; background-size: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(6,4,5,.9) 0%, rgba(7,4,5,.74) 43%, rgba(7,4,5,.24) 76%, rgba(7,4,5,.12) 100%); }
.hero-photo-home { background-image: url('/assets/royalpanda/heroes/hero-home-v2.webp'); }
.hero-photo-bonuses { background-image: url('/assets/royalpanda/heroes/hero-bonuses-v2.webp'); }
.hero-photo-welcome { background-image: url('/assets/royalpanda/heroes/hero-welcome-offer-v2.webp'); }
.hero-photo-login { background-image: url('/assets/royalpanda/heroes/hero-login-v2.webp'); }
.hero-photo-download { background-image: url('/assets/royalpanda/heroes/hero-download-v2.webp'); }
.hero-photo-payments { background-image: url('/assets/royalpanda/heroes/hero-payments-v2.webp'); }
.hero-grid { position: relative; z-index: 1; min-height: 600px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); align-items: center; gap: 48px; padding-block: 72px 64px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--rp-gold-soft); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--rp-ivory); line-height: 1.1; text-wrap: balance; }
h1 { margin-bottom: 20px; font-size: clamp(2.55rem, 6vw, 5.3rem); letter-spacing: -.045em; }
h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 3.15rem); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.15rem; }
.hero-lede { max-width: 66ch; margin: 0; color: #ded4ce; font-size: clamp(1.04rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.checked { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; color: #d8cec8; font-size: .9rem; }
.checked::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--rp-green); font-weight: 900; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.visual-card { width: min(100%, 500px); padding: 26px; border: 1px solid var(--rp-line); border-radius: 30px; background: linear-gradient(145deg, rgba(43,31,34,.96), rgba(13,9,10,.96)); box-shadow: var(--rp-shadow); }
.visual-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.visual-kicker { color: var(--rp-gold-soft); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.status-pill { padding: .34rem .6rem; border-radius: 999px; color: #d9ffef; background: rgba(45,138,99,.25); font-size: .75rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.metric { min-height: 100px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.045); }
.metric strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.1rem; }
.metric span { color: var(--rp-muted); font-size: .86rem; }
.hero-payments { isolation: isolate; background-color: #0b0708; }
.hero-payments::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(5,3,4,.92) 4%, rgba(8,5,6,.72) 46%, rgba(7,4,5,.2) 100%); }
.hero-payments .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
.hero-payments .visual-card { margin-left: auto; background: rgba(11,7,8,.87); }

.fact-rail { border-bottom: 1px solid var(--rp-line); background: #130d0f; }
.fact-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.fact { padding: 20px; border-right: 1px solid var(--rp-line); }
.fact:last-child { border-right: 0; }
.fact span { display: block; color: var(--rp-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.fact strong { color: var(--rp-ivory); font-size: 1rem; }

.disclosure { margin: 0; padding: 16px 20px; border-bottom: 1px solid rgba(215,170,85,.18); color: #c9c0ba; background: rgba(215,170,85,.055); font-size: .9rem; text-align: center; }
.disclosure strong { color: var(--rp-gold-soft); }

.lobby-shelf { padding-block: clamp(52px, 7vw, 88px); border-bottom: 1px solid var(--rp-line); background: #0f0a0c; }
.lobby-shelf-games { background: #160f12; }
.lobby-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.lobby-heading > div { max-width: 780px; }
.lobby-heading h2 { margin-bottom: 12px; }
.lobby-heading p:not(.eyebrow) { margin: 0; color: #d9d0ca; }
.lobby-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.lobby-card { min-width: 0; overflow: hidden; border: 1px solid rgba(215,170,85,.22); border-radius: 14px; color: var(--rp-ivory); background: #0c0809; text-decoration: none; transition: border-color .2s ease, transform .2s cubic-bezier(.22,1,.36,1); }
.lobby-card:hover { border-color: var(--rp-gold); color: #fff; transform: translateY(-4px); }
.lobby-art { display: block; overflow: hidden; background: #090607; }
.lobby-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .28s cubic-bezier(.22,1,.36,1); }
.lobby-card:hover .lobby-art img { transform: scale(1.035); }
.lobby-meta { min-height: 62px; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px 11px; }
.lobby-meta strong { overflow: hidden; color: var(--rp-ivory); font-size: .83rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.lobby-meta > span { margin-top: 4px; color: var(--rp-gold-soft); font-size: .72rem; font-weight: 800; }

.story { padding-block: 32px 80px; }
.legacy-copy { padding-block: 32px 64px; border-bottom: 1px solid rgba(215,170,85,.2); }
.legacy-copy p, .legacy-copy li { color: #ded5cf; }
.legacy-copy p { margin: 0 0 18px; }
.legacy-copy h2 { margin-top: 64px; }
.legacy-copy h3 { margin-top: 38px; color: var(--rp-gold-soft); font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
.legacy-copy ul, .legacy-copy ol { margin: 18px 0 26px; padding-left: 1.4rem; }
.legacy-copy li + li { margin-top: 8px; }
.legacy-table-wrap { width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: #130e10; }
.legacy-table-wrap table { margin: 0; }
.legacy-copy > div:first-child:not(.legacy-table-wrap) { margin-bottom: 22px; color: var(--rp-gold-soft); font-weight: 800; }
.chapter { padding-block: 58px; border-bottom: 1px solid rgba(215,170,85,.16); }
.chapter:last-child { border-bottom: 0; }
.story .reading { width: 100%; margin-inline: 0; }
.chapter p, .chapter li { color: #d9d0ca; }
.chapter p { margin: 0 0 18px; max-width: none; }
.chapter a { font-weight: 700; }
.chapter-visual { width: 100%; margin: 28px 0; padding: 22px; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: linear-gradient(140deg, rgba(179,18,47,.13), rgba(255,255,255,.035)); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.chapter-visual strong { color: var(--rp-gold-soft); }
.chapter-visual ul { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.chapter-visual li { min-height: 88px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); }
.signal { display: block; color: var(--rp-gold-soft); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.answer { display: block; margin-top: 4px; color: #fff; font-weight: 760; }

.game-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.game-card { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #130e10; }
.game-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.game-card span { display: block; padding: 10px 12px; color: var(--rp-ivory); font-size: .86rem; font-weight: 800; }

.data-wrap { position: relative; width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: #130e10; }
.swipe-cue { display: none; padding: 10px 16px 0; color: var(--rp-gold-soft); font-size: .78rem; font-weight: 800; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
th { color: var(--rp-gold-soft); background: rgba(179,18,47,.15); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
td { color: #dfd6d0; }

.faq { padding: 64px 0 80px; background: #100b0d; border-top: 1px solid var(--rp-line); }
.faq-list { width: min(var(--rp-copy),100%); margin-inline: auto; }
details { border-bottom: 1px solid rgba(255,255,255,.1); }
summary { padding: 18px 0; color: var(--rp-ivory); cursor: pointer; font-weight: 800; }
details p { margin: 0 0 20px; color: #d3cac4; }

.source-note { width: min(var(--rp-copy),100%); margin: 0 auto 64px; padding: 18px 20px; border-left: 3px solid var(--rp-gold); color: #cfc5bf; background: rgba(215,170,85,.07); }
.source-note a { overflow-wrap: anywhere; }

.author-section { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 28px; align-items: start; margin-bottom: 72px; padding-block: 34px; border-block: 1px solid var(--rp-line); }
.author-section > img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; }
.author-section h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.author-section p { margin: 0 0 12px; color: #d7cec8; }
.author-section .author-role { color: var(--rp-gold-soft); font-weight: 800; }
.author-section a { font-weight: 800; }

.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--rp-line); background: #070405; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 40px; }
.footer-brand img { width: 150px; height: 80px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 50ch; color: var(--rp-muted); }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links h2 { margin-bottom: 8px; color: var(--rp-gold-soft); font-size: .85rem; letter-spacing: .11em; text-transform: uppercase; }
.footer-links a { color: var(--rp-muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #9f9490; font-size: .82rem; }

@media (min-width: 701px) {
  .hero-photo-welcome h1, .hero-photo-download h1 { font-size: clamp(2.8rem, 4.35vw, 4.25rem); }
}

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-actions .button-secondary { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .hero-payments .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 56px; }
  .hero-photo { background-position: 62% center; }
  .hero-visual { min-height: 0; }
  .fact-grid { grid-template-columns: repeat(2,1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rp-line); }
  .lobby-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-row { min-height: 68px; }
  .brand { min-width: 112px; }
  .brand img { width: 112px; height: 48px; }
  .header-actions .button-primary { display: none; }
  h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.3rem); }
  .hero-grid, .hero-payments .hero-grid { gap: 30px; padding-block: 44px; }
  .visual-card { padding: 18px; border-radius: 22px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 12px; }
  .lobby-heading { align-items: start; flex-direction: column; gap: 18px; }
  .lobby-heading .button { width: 100%; }
  .lobby-grid { gap: 9px; }
  .lobby-card { border-radius: 10px; }
  .lobby-meta { min-height: 54px; padding: 8px 9px; }
  .lobby-meta strong { font-size: .73rem; }
  .lobby-meta > span { font-size: .66rem; }
  .chapter { padding-block: 44px; }
  .chapter-visual ul { grid-template-columns: 1fr; }
  .game-strip { grid-template-columns: 1fr 1fr; }
  .swipe-cue { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .author-section { grid-template-columns: 1fr; }
  .author-section > img { width: 112px; height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
