/* Reel Fortune v2 design (preview: ?design=v2). Mobile first; sidebar layout from 1024px.
   Palette from the Reel Fortune color codes: night #1A1032, royal #37256B, gold #F0CC4D,
   green #76B551, ruby #C12457, sky #6ACBE4. */
:root {
    --rf-bg: #140C29;
    --rf-night: #1A1032;
    --rf-panel: #1F1440;
    --rf-panel-2: #241845;
    --rf-royal: #37256B;
    --rf-gold: #F0CC4D;
    --rf-gold-hi: #F9E332;
    --rf-green: #76B551;
    --rf-ruby: #C12457;
    --rf-sky: #6ACBE4;
    --rf-text: #F5F1FF;
    --rf-soft: #C9BFE6;
    --rf-mute: #9C90BD;
    --rf-line: rgba(255, 255, 255, .09);
    --rf-radius: 16px;
    --rf-side: 248px;
}

body.rf2 { margin: 0; background: var(--rf-bg); color: var(--rf-text); font: 500 15px/1.45 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.rf2 *, .rf2 *::before, .rf2 *::after { box-sizing: border-box; }
.rf2 a { color: var(--rf-gold); text-decoration: none; }
.rf2 a:hover { color: var(--rf-gold-hi); }
.rf2 img { max-width: 100%; display: block; }
.rf2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.rf2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf2 button { font: inherit; color: inherit; }
.rf2 :focus-visible { outline: 3px solid var(--rf-sky); outline-offset: 2px; }

/* Buttons */
.rf2-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 15px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; }
.rf2-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.rf2 .rf2-btn-gold { background: var(--rf-gold); color: var(--rf-night); }
.rf2 .rf2-btn-gold:hover { background: var(--rf-gold-hi); color: var(--rf-night); }
.rf2 .rf2-btn-ghost { border-color: rgba(255, 255, 255, .24); color: #fff; background: transparent; } /* <button> would otherwise get the browser's white */
.rf2 .rf2-btn-dark { background: var(--rf-night); color: var(--rf-gold); }

/* Shell */
.rf2-app { min-height: 100vh; }
.rf2-side { display: none; }
.rf2-main { min-width: 0; padding-bottom: 96px; }

.rf2-top { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 14px 10px; background: rgba(20, 12, 41, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rf-line); }
.rf2-top-logo { flex: 1 1 auto; }
.rf2-top-logo img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.rf2-top-actions { display: flex; align-items: center; gap: 8px; }
.rf2-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.rf2-balance-name { font-size: 12px; color: var(--rf-soft); }
.rf2-balance-amt { font-weight: 800; font-size: 15px; color: #fff; }

.rf2-ask { position: relative; order: 3; flex: 1 1 100%; margin: 0; }
.rf2-ask-icon { position: absolute; left: 14px; top: 13px; color: var(--rf-gold); stroke-width: 1.8 !important; }
.rf2-ask input { width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 16px; border: 1px solid rgba(240, 204, 77, .38); background: var(--rf-panel); color: var(--rf-text); font: 600 15px Manrope, sans-serif; -webkit-appearance: none; }
.rf2-ask input::placeholder { color: var(--rf-mute); }
.rf2-ask input:focus { outline: none; border-color: var(--rf-gold); box-shadow: 0 0 0 3px rgba(240, 204, 77, .2); }

.rf2-content { padding: 0 14px; max-width: 1440px; margin: 0 auto; }

/* Promo strip (phones and tablets; desktop has it in the sidebar) */
.rf2 .rf2-strip { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: var(--rf-radius); background: var(--rf-royal); color: #fff; }
.rf2-strip-badge { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rf-gold); color: var(--rf-night); flex: 0 0 auto; }
.rf2-strip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rf2-strip-text strong { font-size: 15px; }
.rf2-strip-text span { font-size: 13px; color: #D8CDF5; }

/* Mood chips */
.rf2-chips { display: flex; gap: 8px; margin: 14px -14px 0; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
.rf2-chips::-webkit-scrollbar { display: none; }
.rf2-chips button { flex: 0 0 auto; height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: #1B1236; color: #E6DFF7; font-weight: 700; font-size: 14px; cursor: pointer; }
.rf2-chips button:hover { border-color: rgba(240, 204, 77, .6); }
.rf2-chips button[aria-pressed="true"] { background: var(--rf-gold); border-color: var(--rf-gold); color: var(--rf-night); font-weight: 800; }

/* Sections */
.rf2-section { margin-top: 26px; }
.rf2-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rf2-h2 { margin: 0; font: 700 19px/1.2 Unbounded, sans-serif; letter-spacing: -.005em; }
.rf2-why { width: 100%; margin-top: 4px; font-size: 13px; color: var(--rf-mute); }
.rf2-link { background: none; border: 0; padding: 0; color: var(--rf-gold); font-weight: 700; font-size: 14px; cursor: pointer; }
.rf2-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--rf-soft); }
.rf2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-ruby); box-shadow: 0 0 0 0 rgba(193, 36, 87, .6); animation: rf2-pulse 2s infinite; }
@keyframes rf2-pulse { 70% { box-shadow: 0 0 0 7px rgba(193, 36, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(193, 36, 87, 0); } }

/* Game grid: fixed column counts so rows always fill; a short last row ends in the bonus banner (.rf2-fill) */
.rf2-grid { display: grid; gap: 12px; margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rf2-fill { grid-column: span var(--s3, 1); display: var(--d3, none); }

.rf2-tile { display: block; color: var(--rf-text) !important; min-width: 0; }
.rf2-tile-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--rf-panel-2); }
.rf2-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rf2-tile:hover .rf2-tile-img img { transform: scale(1.05); }
.rf2-badge { position: absolute; padding: 3px 7px; border-radius: 999px; font-weight: 800; font-size: 11px; line-height: 1.3; }
.rf2-badge-max { right: 6px; bottom: 6px; background: rgba(20, 12, 41, .86); color: var(--rf-gold); }
.rf2-badge-new { left: 6px; top: 6px; background: var(--rf-green); color: #10220A; letter-spacing: .05em; font-size: 10px; }
.rf2-badge-jp { left: 6px; top: 6px; background: var(--rf-ruby); color: #fff; font-size: 10px; letter-spacing: .05em; }
.rf2-play { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(20, 12, 41, .58); }
.rf2-play span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--rf-gold); color: var(--rf-night); font-weight: 800; font-size: 14px; }
.rf2-tile-name { display: block; margin-top: 7px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf2-tile-meta { display: block; margin-top: 1px; font-size: 11px; color: var(--rf-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rf2 .rf2-fill-card { flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 10px 18px; padding: 16px; border-radius: 14px; background: var(--rf-gold); color: var(--rf-night); text-align: center; min-height: 100%; }
.rf2-fill-card strong { display: block; font: 800 17px/1.15 Unbounded, sans-serif; }
.rf2-fill-card small { display: block; margin-top: 4px; font-weight: 700; font-size: 12px; }
.rf2-fill-card .rf2-eyebrow { color: var(--rf-night); }
.rf2-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-gold); }

.rf2-more { display: block; margin: 16px auto 0; height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.rf2-more:hover { border-color: var(--rf-gold); color: var(--rf-gold); }
.rf2-more[hidden], .rf2-section[hidden] { display: none; }
.rf2-empty { grid-column: 1 / -1; padding: 22px; border-radius: var(--rf-radius); background: var(--rf-panel); color: var(--rf-soft); text-align: center; }

/* Shelf: swipe row on phones, one full row on desktop */
.rf2-shelf { display: flex; gap: 12px; margin: 14px -14px 0; padding: 0 14px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rf2-shelf::-webkit-scrollbar { display: none; }
.rf2-shelf .rf2-tile { flex: 0 0 132px; scroll-snap-align: start; }

/* Jackpots */
.rf2-jp { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rf2 .rf2-jp-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; background: var(--rf-panel); border: 1px solid rgba(240, 204, 77, .2); color: var(--rf-soft); text-align: center; }
.rf2-jp-card img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.rf2-jp-amt { font: 700 16px/1.2 Unbounded, sans-serif; color: var(--rf-gold); white-space: nowrap; }
.rf2-jp-name { font-size: 12px; }

/* Footer */
.rf2-foot { margin: 48px 14px 0; padding: 26px 0 0; border-top: 1px solid var(--rf-line); }
.rf2-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rf2-foot-cols a { display: block; padding: 4px 0; color: var(--rf-soft); font-size: 14px; }
.rf2-foot-title { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.rf2-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding: 16px 0 8px; border-top: 1px solid var(--rf-line); font-size: 13px; color: var(--rf-mute); }
.rf2-foot-legal a { color: var(--rf-soft); text-decoration: underline; }
.rf2-18 { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rf-ruby); font-weight: 800; color: #fff; flex: 0 0 auto; }

/* Bottom menu (phones and tablets) */
.rf2-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--rf-night); border-top: 1px solid var(--rf-line); }
.rf2 .rf2-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 50px; color: #B9AED6; font-size: 11px; font-weight: 700; }
.rf2 .rf2-tabs a[aria-current="page"] { color: var(--rf-gold); font-weight: 800; }
.rf2 .rf2-tabs a.rf2-tabs-center { color: var(--rf-gold); font-weight: 800; }
.rf2-tabs-wheel { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; background: var(--rf-gold); box-shadow: 0 0 0 5px var(--rf-night), 0 10px 24px rgba(240, 204, 77, .35); transition: transform .3s ease; }
.rf2-tabs-wheel svg { width: 40px; height: 40px; stroke: none; }
.rf2-tabs-center:hover .rf2-tabs-wheel { transform: rotate(45deg); }

@media (hover: hover) {
    .rf2-tile:hover .rf2-play { display: flex; }
}

/* Keep the Chatra chat bubble above the bottom menu (the open chat still goes full screen) */
@media (max-width: 1023px) {
    body.rf2 #chatra.chatra--pos-bottom:not(.chatra--expanded) { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}

@media (min-width: 560px) {
    .rf2-hide-xs { display: inline-flex; }
}
@media (max-width: 559px) {
    .rf2-hide-xs { display: none; }
}

@media (min-width: 760px) {
    .rf2-content { padding: 0 24px; }
    .rf2-top { padding: 10px 24px; }
    .rf2-chips { flex-wrap: wrap; margin: 16px 0 0; padding: 0; overflow: visible; }
    .rf2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .rf2-fill { grid-column: span var(--s4, 1); display: var(--d4, none); }
    .rf2-jp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rf2-foot { margin: 56px 24px 0; }
    .rf2-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rf2-h2 { font-size: 22px; }
    .rf2-tile-name { font-size: 14px; }
    .rf2-tile-meta { font-size: 12px; }
}

@media (min-width: 1024px) {
    .rf2-app { display: grid; grid-template-columns: var(--rf-side) minmax(0, 1fr); }
    .rf2-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 18px 16px; background: #170E30; border-right: 1px solid var(--rf-line); }
    .rf2-side-logo img { height: 96px; width: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
    .rf2-side-nav { display: flex; flex-direction: column; gap: 4px; }
    .rf2 .rf2-side-nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; color: #E6DFF7; font-weight: 700; }
    .rf2 .rf2-side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
    .rf2 .rf2-side-nav a.is-active { background: rgba(240, 204, 77, .12); color: var(--rf-gold); font-weight: 800; }
    .rf2 .rf2-side-promo { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--rf-gold); color: var(--rf-night); }
    .rf2-side-promo .rf2-eyebrow { color: var(--rf-night); }
    .rf2-side-promo strong { font: 800 20px/1.1 Unbounded, sans-serif; }
    .rf2-side-promo span { font-size: 13px; font-weight: 600; }
    .rf2-side-promo .rf2-btn { margin-top: 8px; align-self: flex-start; }
    .rf2-main { padding-bottom: 0; }
    .rf2-top { padding: 14px 32px; gap: 14px; }
    .rf2-top-logo { display: none; }
    .rf2-ask { order: 0; flex: 1 1 420px; max-width: 720px; }
    .rf2-top-actions { margin-left: auto; }
    .rf2-content { padding: 0 32px; }
    .rf2 .rf2-strip { display: none; }
    .rf2-tabs { display: none; }
    .rf2-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 14px 0 0; padding: 0; overflow: visible; }
    .rf2-shelf .rf2-tile:nth-child(n+7) { display: none; }
    .rf2-foot { margin: 64px 32px 0; }
}

@media (min-width: 1180px) {
    .rf2-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .rf2-fill { grid-column: span var(--s6, 1); display: var(--d6, none); }
}

@media (min-width: 1440px) {
    .rf2-jp { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .rf2-jp-amt { font-size: 17px; }
}

/* ---------- Daily wheel ---------- */
.rf2-noscroll { overflow: hidden; }
.rf2-wheel { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 6, 22, .78); }
.rf2-wheel[hidden] { display: none; }
.rf2-wheel-card { position: relative; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--rf-night); border-top: 1px solid rgba(240, 204, 77, .35); text-align: center; }
.rf2-wheel-x { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; }
.rf2-wheel-title { margin: 6px 0 0; font: 800 24px/1.15 Unbounded, sans-serif; }
.rf2-wheel-sub { margin: 8px auto 0; max-width: 320px; color: var(--rf-soft); }
.rf2-wheel-stage { position: relative; width: min(300px, 78vw); aspect-ratio: 1 / 1; margin: 18px auto 0; }
.rf2-wheel-svg { width: 100% !important; height: 100% !important; stroke: none !important; transition: transform 4.2s cubic-bezier(.12, .72, .18, 1); transform-origin: 50% 50%; }
.rf2-wheel-pointer { position: absolute; left: 50%; top: -14px; width: 34px !important; height: 40px !important; margin-left: -17px; z-index: 2; stroke: none !important; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.rf2-wheel-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 13px Unbounded, sans-serif; color: var(--rf-gold); pointer-events: none; }
.rf2-wheel-go { width: 100%; height: 54px; margin-top: 20px; font-size: 18px; }
.rf2-wheel-go[disabled] { opacity: .6; cursor: default; }
.rf2-wheel-later { display: block; margin: 12px auto 0; min-height: 40px; }
.rf2 .rf2-side-spin { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--rf-royal); color: #fff; }
.rf2 .rf2-side-spin svg { width: 44px; height: 44px; stroke: none; }
.rf2-side-spin strong { display: block; font-size: 15px; }
.rf2-side-spin small { display: block; font-size: 12px; color: #D8CDF5; }
@media (min-width: 640px) {
    .rf2-wheel { align-items: center; }
    .rf2-wheel-card { border-radius: 26px; border: 1px solid rgba(240, 204, 77, .35); }
}

/* ---------- Phase 2: inner pages ---------- */
.rf2-page { padding: 22px 0 8px; }
.rf2-page-head { margin-bottom: 18px; }
.rf2-page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.rf2-page-title { margin: 0; font: 800 26px/1.15 Unbounded, sans-serif; letter-spacing: -.01em; }
.rf2-lead { margin: 8px 0 0; font-size: 16px; color: var(--rf-soft); max-width: 640px; }
.rf2-fine { margin: 12px 0 0; font-size: 12px; color: var(--rf-mute); }
.rf2-fine a, .rf2-prose a { text-decoration: underline; }

/* Embedded CasinoController frames */
.rf2-frame { border-radius: var(--rf-radius); overflow: hidden; background: #fff; border: 1px solid var(--rf-line); }
.rf2-frame iframe { display: block; width: 100%; border: 0; }
.rf2-frame-auth iframe { height: 600px; }
/* The cashier fills the visible screen under the top bar (and above the phone menu), so only the
   cashier scrolls and its buttons stay in view. */
.rf2-cashier { padding-top: 14px; }
.rf2-cashier-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.rf2-cashier-head .rf2-page-title { font-size: 22px; }
.rf2-cashier-head .rf2-fine { margin: 0; }
.rf2-frame-cashier iframe { height: calc(100vh - 290px); height: calc(100dvh - 290px); min-height: 460px; }
@media (min-width: 1024px) {
    .rf2-frame-cashier iframe { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 560px; }
}

/* Login / sign-up */
.rf2-auth { display: grid; gap: 18px; padding: 22px 0 8px; }
.rf2-auth-card .rf2-frame { margin-top: 16px; }
.rf2-auth-switch { margin: 14px 0 0; color: var(--rf-soft); }
.rf2-offer { padding: 22px; border-radius: 20px; background: var(--rf-royal); align-self: start; }
.rf2-offer-big { display: block; margin-top: 6px; font: 800 30px/1.1 Unbounded, sans-serif; color: var(--rf-gold); }
.rf2-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.rf2-steps li { counter-increment: s; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.rf2-steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--rf-gold); color: var(--rf-night); font-weight: 800; font-size: 13px; }
.rf2-steps b { color: var(--rf-gold); }
.rf2-ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #E6DFF7; }
.rf2-ticks li { position: relative; padding-left: 26px; }
.rf2-ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--rf-green); border-bottom: 2px solid var(--rf-green); transform: rotate(-45deg); }

.rf2-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(10, 6, 22, .8); }
.rf2-overlay[hidden] { display: none; }
.rf2-overlay-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 32px; border-radius: 20px; background: var(--rf-night); border: 1px solid rgba(240, 204, 77, .3); text-align: center; max-width: 320px; }
.rf2-overlay-card strong { font: 800 20px Unbounded, sans-serif; }
.rf2-spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(240, 204, 77, .25); border-top-color: var(--rf-gold); animation: rf2-spin .8s linear infinite; }
@keyframes rf2-spin { to { transform: rotate(360deg); } }

/* Cards */
.rf2-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.rf2-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 18px; background: var(--rf-panel); border: 1px solid var(--rf-line); }
.rf2-card p { margin: 0; color: var(--rf-soft); font-size: 14px; }
.rf2 .rf2-card-gold { background: var(--rf-gold); color: var(--rf-night); border-color: var(--rf-gold); }
.rf2 .rf2-card-gold .rf2-eyebrow, .rf2 .rf2-card-gold p { color: var(--rf-night); }
.rf2-stat { font: 800 28px/1.1 Unbounded, sans-serif; }
.rf2-stat-sm { font: 700 18px/1.25 Unbounded, sans-serif; word-break: break-word; }
.rf2 .rf2-link-btn { font-weight: 800; font-size: 14px; text-decoration: underline; }
.rf2-card button { margin-top: 4px; }
.rf2 .rf2-card .rf2-btn-ghost { color: #fff; }

.rf2-details { margin: 14px 0 0; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; background: var(--rf-line); }
.rf2-details div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--rf-panel); }
.rf2-details dt { color: var(--rf-mute); font-size: 14px; }
.rf2-details dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.rf2-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rf2 .rf2-quick a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: #1B1236; color: #E6DFF7; font-weight: 700; font-size: 14px; }
.rf2 .rf2-quick a:hover { border-color: var(--rf-gold); color: var(--rf-gold); }
.rf2-logout { margin-top: 18px; }

/* Promotions */
.rf2-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 18px; background: var(--rf-panel); border: 1px solid var(--rf-line); }
.rf2-promo-hero { background: var(--rf-royal); border-color: rgba(240, 204, 77, .35); }
.rf2-promo-tag { padding: 3px 10px; border-radius: 999px; background: rgba(118, 181, 81, .16); color: #A8DB87; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.rf2-promo-title { margin: 4px 0 0; font: 700 16px/1.25 Manrope, sans-serif; color: var(--rf-soft); }
.rf2-promo-big { font: 800 26px/1.1 Unbounded, sans-serif; color: var(--rf-gold); }
.rf2-promo-sub { margin: 0 0 6px; color: #E6DFF7; font-size: 14px; flex: 1 1 auto; }
.rf2-terms { width: 100%; margin-top: 6px; border-top: 1px solid var(--rf-line); padding-top: 10px; font-size: 13px; color: var(--rf-soft); }
.rf2-terms summary { cursor: pointer; font-weight: 800; color: #fff; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.rf2-terms summary::-webkit-details-marker { display: none; }
.rf2-terms summary::after { content: "+"; color: var(--rf-gold); font-size: 18px; }
.rf2-terms[open] summary::after { content: "\2013"; }
.rf2-terms ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.rf2 .rf2-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 22px; border-radius: 18px; background: var(--rf-gold); color: var(--rf-night); }
.rf2-banner .rf2-eyebrow { color: var(--rf-night); }
.rf2-banner strong { display: block; margin-top: 4px; font: 800 18px/1.25 Unbounded, sans-serif; max-width: 560px; }

/* Reel Rewards levels */
.rf2-levels { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.rf2-level { padding: 20px; border-radius: 20px; background: var(--rf-panel); border: 1px solid var(--rf-line); }
.rf2-level-2 { background: var(--rf-royal); }
.rf2-level-3 { background: #2A1B45; border-color: rgba(240, 204, 77, .55); box-shadow: inset 0 0 0 1px rgba(240, 204, 77, .25); }
.rf2-level-name { margin: 4px 0 12px; font: 800 26px Unbounded, sans-serif; color: var(--rf-gold); }
.rf2-level dl { margin: 0; display: grid; gap: 1px; }
.rf2-level dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rf-line); }
.rf2-level dt { color: var(--rf-soft); font-size: 14px; }
.rf2-level dd { margin: 0; font-weight: 800; text-align: right; }

/* Banking */
.rf2-methods { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.rf2-method { display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--rf-panel); border: 1px solid var(--rf-line); }
.rf2-method-code { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--rf-royal); color: var(--rf-gold); font-weight: 800; font-size: 13px; }
.rf2-method-name { font-weight: 800; }
.rf2-method-lim { font-size: 13px; color: var(--rf-mute); }
.rf2-pill { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(118, 181, 81, .18); color: #A8DB87; font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* Errors */
.rf2-oops { text-align: center; padding: 48px 0 24px; }
.rf2-oops .rf2-lead { margin-left: auto; margin-right: auto; }
.rf2-oops-code { display: block; font: 800 72px/1 Unbounded, sans-serif; color: var(--rf-gold); }
.rf2-oops-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Long-form text */
.rf2-prose { max-width: 820px; }
.rf2-prose p, .rf2-legacy p, .rf2-legacy li { color: #E6DFF7; line-height: 1.65; }

/* Classic pages shown in the v2 shell (terms, privacy, KYC, AML, self-exclusion, about, ...) */
.rf2-legacy { max-width: 900px; padding: 22px 0 8px; }
.rf2-legacy main, .rf2-legacy .container, .rf2-legacy .container-fluid { padding: 0; margin: 0; max-width: none; width: auto; }
.rf2-legacy .title-w-banner { margin-bottom: 14px; }
.rf2-legacy .title-w-banner h3, .rf2-legacy .title-w-banner h1, .rf2-legacy .title-w-banner h2 { margin: 0; font: 800 26px/1.15 Unbounded, sans-serif; color: var(--rf-text); }
.rf2-legacy h1, .rf2-legacy h2, .rf2-legacy h3, .rf2-legacy h4, .rf2-legacy h5 { font-family: Unbounded, sans-serif; color: var(--rf-text); line-height: 1.25; margin: 26px 0 10px; }
.rf2-legacy h1 { font-size: 24px; } .rf2-legacy h2 { font-size: 21px; } .rf2-legacy h3 { font-size: 18px; } .rf2-legacy h4, .rf2-legacy h5 { font-size: 16px; }
.rf2-legacy ul, .rf2-legacy ol { padding-left: 22px; }
.rf2-legacy a { color: var(--rf-gold); text-decoration: underline; }
.rf2-legacy img { max-width: 100%; height: auto; border-radius: 12px; }
.rf2-legacy table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.rf2-legacy th, .rf2-legacy td { border: 1px solid var(--rf-line); padding: 8px 10px; text-align: left; color: #E6DFF7; }
.rf2-legacy .row { display: flex; flex-wrap: wrap; gap: 16px; }
.rf2-legacy .row > [class*="col"] { flex: 1 1 280px; min-width: 0; }
.rf2-legacy .modal, .rf2-legacy .loading-el { display: none !important; }
.rf2-legacy button, .rf2-legacy .default-btn, .rf2-legacy .main-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--rf-gold); color: var(--rf-night); font-weight: 800; text-decoration: none; cursor: pointer; }
.rf2-legacy input, .rf2-legacy select, .rf2-legacy textarea { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: var(--rf-panel); color: var(--rf-text); font: inherit; }

/* Game screen */
.rf2-game-body { overflow: hidden; }
.rf2-game { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.rf2-game-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--rf-night); border-bottom: 1px solid var(--rf-line); }
.rf2 .rf2-game-back { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; color: #fff; font-weight: 700; }
.rf2 .rf2-game-back:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.rf2-game-logo { height: 34px; width: auto; }
.rf2-game-title { flex: 1 1 auto; min-width: 0; font: 700 15px Unbounded, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf2-game-stage { flex: 1 1 auto; min-height: 0; background: #000; }
.rf2-game-stage iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 760px) {
    .rf2-page-title { font-size: 32px; }
    .rf2-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rf2-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rf2-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rf2-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .rf2-auth { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .rf2-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rf2-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Fortuna's answer above the results (assets/js/v2.js) */
.rf2-fortuna { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--rf-panel); border: 1px solid rgba(240, 204, 77, .38); }
.rf2-fortuna[hidden] { display: none; }
.rf2-fortuna-av { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--rf-gold); color: #1A1032; display: grid; place-items: center; }
.rf2-fortuna-av svg { width: 18px; height: 18px; fill: currentColor; }
.rf2-fortuna p { margin: 0; font: 500 15px/1.5 Manrope, sans-serif; color: var(--rf-text); }
.rf2-fortuna small { display: block; margin-top: 4px; font-size: 12px; color: var(--rf-mute); }
.rf2-fortuna-wait p { color: var(--rf-mute); animation: rf2-think 1.2s ease-in-out infinite; }
@keyframes rf2-think { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rf2-fortuna-wait p { animation: none; } }

/* Fortuna help chat: bubble + panel (partials/fortuna-chat.php, js/fortuna-chat.js) */
.rf2-fc-launch { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 26px; background: var(--rf-gold); color: #1A1032; font: 800 15px Manrope, sans-serif; cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 3px rgba(240, 204, 77, .25); }
.rf2-fc-launch svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.rf2-fc-launch[hidden], .rf2-fc[hidden] { display: none; }
.rf2-fc-open .rf2-fc-launch { display: none; }
.rf2-fc { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--rf-night); color: var(--rf-text); }
.rf2-fc-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--rf-line); background: var(--rf-panel); }
.rf2-fc-title { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.rf2-fc-title strong { font: 700 16px Unbounded, sans-serif; }
.rf2-fc-title small { color: var(--rf-mute); font-size: 12px; }
.rf2-fc-human { border: 1px solid rgba(240, 204, 77, .5); background: transparent; color: var(--rf-gold); border-radius: 999px; padding: 7px 12px; font: 700 13px Manrope, sans-serif; cursor: pointer; white-space: nowrap; }
.rf2-fc-human:hover { background: rgba(240, 204, 77, .12); }
.rf2-fc-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--rf-soft); cursor: pointer; }
.rf2-fc-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.rf2-fc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rf2-fc-msg { max-width: 88%; }
.rf2-fc-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; font: 500 15px/1.5 Manrope, sans-serif; }
.rf2-fc-bot { align-self: flex-start; }
.rf2-fc-bot p { background: var(--rf-panel); border: 1px solid var(--rf-line); border-bottom-left-radius: 4px; }
.rf2-fc-me { align-self: flex-end; }
.rf2-fc-me p { background: var(--rf-royal); border-bottom-right-radius: 4px; }
.rf2-fc-msg .rf2-btn { margin-top: 8px; }
.rf2-fc-games { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rf2-fc-games a { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--rf-text); text-decoration: none; font-weight: 700; font-size: 14px; }
.rf2-fc-games a:hover { background: rgba(240, 204, 77, .12); }
.rf2-fc-games img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.rf2-fc-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.rf2-fc-quick[hidden] { display: none; }
.rf2-fc-quick button { border: 1px solid var(--rf-line); background: rgba(255, 255, 255, .04); color: var(--rf-soft); border-radius: 999px; padding: 8px 12px; font: 600 13px Manrope, sans-serif; cursor: pointer; }
.rf2-fc-quick button:hover { border-color: var(--rf-gold); color: var(--rf-gold); }
.rf2-fc-form { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--rf-line); }
.rf2-fc-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(240, 204, 77, .38); background: var(--rf-panel); color: var(--rf-text); font: 600 16px Manrope, sans-serif; }
.rf2-fc-form input:focus { outline: none; border-color: var(--rf-gold); }
.rf2-fc-form button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--rf-gold); color: #1A1032; cursor: pointer; display: grid; place-items: center; }
.rf2-fc-form button svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.rf2-fc-note { margin: 0; padding: 4px 12px calc(10px + env(safe-area-inset-bottom)); color: var(--rf-mute); font-size: 11px; text-align: center; }
@media (min-width: 1024px) {
    .rf2-fc-launch { right: 24px; bottom: 24px; }
    .rf2-fc { inset: auto 24px 24px auto; width: 400px; height: min(620px, calc(100vh - 48px)); border-radius: 20px; border: 1px solid rgba(240, 204, 77, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; }
}

/* Help centre (v2/pages/help.php) */
.rf2-help-ask { position: relative; display: flex; gap: 8px; align-items: center; margin: 0 0 18px; }
.rf2-help-ask input { flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 46px; border-radius: 16px; border: 1px solid rgba(240, 204, 77, .38); background: var(--rf-panel); color: var(--rf-text); font: 600 16px Manrope, sans-serif; }
.rf2-help-ask input:focus { outline: none; border-color: var(--rf-gold); box-shadow: 0 0 0 3px rgba(240, 204, 77, .2); }
.rf2-help-ask .rf2-ask-icon { top: 15px; width: 22px; height: 22px; fill: none; stroke: currentColor; }
.rf2-help-ask .rf2-btn { height: 52px; padding: 0 22px; }
.rf2-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rf2-faq details { border: 1px solid var(--rf-line); border-radius: 14px; background: var(--rf-panel); padding: 0 16px; }
.rf2-faq details[open] { border-color: rgba(240, 204, 77, .35); padding-bottom: 12px; }
.rf2-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-weight: 800; color: #fff; }
.rf2-faq summary::-webkit-details-marker { display: none; }
.rf2-faq summary::after { content: "+"; color: var(--rf-gold); font-size: 20px; }
.rf2-faq details[open] summary::after { content: "−"; }
.rf2-faq p { margin: 6px 0 0; color: var(--rf-soft); line-height: 1.55; }
