/* ==========================================================================
   RRummy - rrummyapp.com
   Palette "Marigold Ledger": marigold principal, aqua accent, royal indigo ink.
   Ornament: "the facing pips" - two mirrored marigold triangles with a 2px gap.
   Hero: "the arc shoulder" - copy flows around a circular art aperture.
   ========================================================================== */

:root{
  --brand:#F0A413;
  --brand-dark:#A3670A;
  --brand-light:#FFD98A;

  --accent:#2BBFD9;
  --accent-warm:#FFC24D;
  --accent-soft:#7FE0EE;

  --bg:#141938;
  --bg-card:#1C2350;
  --bg-elevated:#262E66;
  --bg-panel:#0D1128;

  --text:#F4F1E8;
  --text-muted:#BDC2E0;
  --text-dim:#8A90B8;
  --text-on-dark:#F4F1E8;

  --border:#2E3668;
  --border-strong:#424C86;
  --border-soft:#1E2448;

  --font-body:"Sarabun",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-heading:"Brygada 1918",Georgia,"Times New Roman",serif;

  --r-sm:8px; --r-md:14px; --r-lg:20px; --r-xl:28px; --r-pill:999px;
  --card-radius:18px;

  --shadow-soft:0 2px 10px rgba(5,8,24,.38);
  --shadow-card:0 18px 38px rgba(5,8,24,.46),0 2px 0 rgba(255,255,255,.03) inset;
  --shadow-card-hover:0 26px 54px rgba(5,8,24,.58),0 2px 0 rgba(255,255,255,.05) inset;
  --shadow-cta:0 14px 30px rgba(240,164,19,.28);

  --container:1200px;
  --container-wide:1320px;
  --header-top-h:2.25rem;
  --header-main-h:4.5rem;
  --header-h:calc(var(--header-top-h) + var(--header-main-h));

  --gold-gloss:linear-gradient(180deg,#FFE4A6 0%,#F0A413 46%,#B97A05 100%);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.72;
  color:var(--text);
  background:var(--bg);
  background-image:
    radial-gradient(900px 540px at 88% -8%,rgba(240,164,19,.10),transparent 62%),
    radial-gradient(760px 480px at -6% 22%,rgba(43,191,217,.08),transparent 60%);
  background-attachment:fixed;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-light);text-decoration:none}
a:hover{color:var(--brand)}
h1,h2,h3,h4{font-family:var(--font-heading);font-weight:700;line-height:1.18;margin:0 0 .6rem;letter-spacing:-.012em}
h1{font-size:clamp(2.05rem,1.35rem + 2.5vw,3.05rem);line-height:1.14}
h2{font-size:clamp(1.55rem,1.1rem + 1.7vw,2.3rem)}
h3{font-size:clamp(1.15rem,1rem + .5vw,1.4rem)}
h4{font-size:1rem}
p{margin:0 0 1.05rem}
ul,ol{margin:0 0 1.1rem;padding-left:1.25rem}
li{margin:0 0 .5rem}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 1.5rem}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--brand);color:#141938;padding:.7rem 1.1rem;z-index:200;font-weight:700}
.skip-link:focus{left:.75rem;top:.75rem}

/* ---------------------------------------------- ornament: the facing pips */
.pips{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
.pips::before,.pips::after{content:"";width:7px;height:11px;background:var(--gold-gloss)}
.pips::before{clip-path:polygon(0 0,100% 50%,0 100%)}
.pips::after{clip-path:polygon(100% 0,0 50%,100% 100%)}
.pips--sm::before,.pips--sm::after{width:5px;height:8px}
.pips--lg::before,.pips--lg::after{width:10px;height:16px}

.kicker{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.7rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--brand-light);margin-bottom:.75rem;
}
.kicker::before{
  content:"";width:7px;height:11px;background:var(--gold-gloss);
  clip-path:polygon(0 0,100% 50%,0 100%);flex:0 0 auto;
}
.kicker::after{
  content:"";width:7px;height:11px;background:var(--gold-gloss);
  clip-path:polygon(100% 0,0 50%,100% 100%);flex:0 0 auto;margin-left:-.35rem;
}

/* ------------------------------------------------------------ header */
.site-header{position:sticky;top:0;z-index:90;background:var(--bg-panel);transition:box-shadow .28s ease}
.site-header.is-scrolled{box-shadow:0 10px 32px rgba(3,5,18,.6)}
.header-top{background:#090C1F;border-bottom:1px solid var(--border-soft)}
.header-top-inner{min-height:var(--header-top-h);display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.trust-line{display:inline-flex;align-items:center;gap:.5rem;font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--text-dim);font-weight:600}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 0 rgba(240,164,19,.55);flex:0 0 auto}
@media (prefers-reduced-motion:no-preference){.live-dot{animation:dotPulse 2.6s ease-out infinite}}
@keyframes dotPulse{0%{box-shadow:0 0 0 0 rgba(240,164,19,.5)}70%{box-shadow:0 0 0 9px rgba(240,164,19,0)}100%{box-shadow:0 0 0 0 rgba(240,164,19,0)}}
.util-nav{display:flex;gap:1.1rem;flex-wrap:wrap}
.util-nav a{font-size:.74rem;letter-spacing:.06em;color:var(--text-dim);font-weight:600;text-transform:uppercase}
.util-nav a:hover{color:var(--brand-light)}

.header-main-inner{min-height:var(--header-main-h);display:flex;align-items:center;gap:1.25rem}
.brand-link{display:inline-flex;align-items:center;gap:.7rem;flex:0 0 auto}
.brand-link img{height:42px;width:auto;object-fit:contain}
.brand-word{font-family:var(--font-heading);font-size:1.3rem;font-weight:700;color:var(--text);letter-spacing:-.01em}
.brand-word em{font-style:italic;color:var(--brand)}

.primary-nav{margin-left:auto;position:relative}
.primary-nav ul{display:flex;align-items:center;gap:1.45rem;list-style:none;margin:0;padding:0}
.primary-nav a{font-size:.9rem;font-weight:600;color:var(--text-muted);white-space:nowrap;padding:.35rem 0;display:inline-block}
.primary-nav a:hover,.primary-nav a.active{color:var(--text)}
.nav-indicator{position:absolute;bottom:-.3rem;height:2px;background:var(--gold-gloss);border-radius:2px;transition:transform .32s cubic-bezier(.16,1,.3,1),width .32s cubic-bezier(.16,1,.3,1);width:0;left:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.nav-indicator{transition:none}}

.header-cta{flex:0 0 auto}
.nav-toggle{display:none;width:44px;height:44px;border:1px solid var(--border-strong);background:transparent;border-radius:var(--r-sm);padding:0;cursor:pointer;flex:0 0 auto}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--text);margin:4px auto;transition:transform .3s ease,opacity .22s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* -------------------------------------------------------------- buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--font-body);font-weight:700;font-size:.92rem;letter-spacing:.01em;
  padding:.82rem 1.5rem;border-radius:var(--r-pill);border:1px solid transparent;
  cursor:pointer;white-space:nowrap;transition:transform .2s ease,box-shadow .25s ease,background .25s ease,color .25s ease;
}
.btn-primary{background:var(--gold-gloss);color:#15193A;box-shadow:var(--shadow-cta)}
.btn-primary:hover{transform:translateY(-2px);color:#15193A;box-shadow:0 20px 38px rgba(240,164,19,.38)}
.btn-primary:active{transform:translateY(0) scale(.985)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border-strong)}
.btn-ghost:hover{color:var(--text);border-color:var(--brand);background:rgba(240,164,19,.09);transform:translateY(-2px)}
.btn-aqua{background:var(--accent);color:#07131A}
.btn-aqua:hover{color:#07131A;background:var(--accent-soft);transform:translateY(-2px)}
.btn-sm{padding:.6rem 1.1rem;font-size:.84rem}

/* ====================================================================
   HERO - "the arc shoulder"
   A circular art aperture floats right and bleeds past the container
   guide; the eyebrow, H1 and lede flow around its left curve.
   ==================================================================== */
.hero{position:relative;padding:clamp(3rem,2rem + 3vw,5rem) 0 0;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.26}
.hero-bg::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(104deg,rgba(20,25,56,.96) 0%,rgba(20,25,56,.84) 46%,rgba(20,25,56,.52) 100%),
    linear-gradient(0deg,var(--bg) 2%,rgba(20,25,56,0) 44%);
}
.hero-inner{position:relative;z-index:1}

.hero-aperture{
  float:right;
  width:clamp(230px,33vw,420px);
  aspect-ratio:1;
  shape-outside:circle(50% at 50% 50%);
  shape-margin:1.6rem;
  margin:0 calc(-1 * clamp(10px,4vw,90px)) 1.2rem 1.9rem;
  position:relative;
  border-radius:50%;
  overflow:visible;
}
.aperture-ring{
  position:absolute;inset:0;border-radius:50%;overflow:hidden;
  border:2px solid rgba(240,164,19,.46);
  box-shadow:0 30px 70px rgba(4,7,22,.66),inset 0 0 0 10px rgba(13,17,40,.55);
}
/* felt-plate ground so the aperture still reads as a surface before the
   generated art lands (and behind any transparent edge of it afterwards) */
.aperture-ring{
  background:
    radial-gradient(circle at 36% 28%,rgba(240,164,19,.26),transparent 56%),
    repeating-linear-gradient(118deg,rgba(43,191,217,.08) 0 3px,transparent 3px 17px),
    linear-gradient(152deg,var(--bg-elevated),var(--bg-panel));
}
.aperture-ring img{width:100%;height:100%;object-fit:cover}
.aperture-ring::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 32% 24%,rgba(255,217,138,.20),transparent 58%);
}
.aperture-rim{
  position:absolute;inset:-14px;border-radius:50%;
  border:1px dashed rgba(43,191,217,.34);
  pointer-events:none;
}
@media (prefers-reduced-motion:no-preference){
  .aperture-rim{animation:rimSpin 48s linear infinite}
}
@keyframes rimSpin{to{transform:rotate(360deg)}}

/* foreground object: "the drawn card" */
.drawn-card{
  position:absolute;left:-6%;bottom:2%;width:31%;aspect-ratio:5/7;
  border-radius:12px;
  background:linear-gradient(158deg,#FFF8E8 0%,#F3E6C8 58%,#E3CF9E 100%);
  box-shadow:0 22px 44px rgba(4,7,22,.66),0 0 0 1px rgba(240,164,19,.5);
  z-index:2;transform:rotate(-9deg);
}
.drawn-card::before{
  content:"";position:absolute;inset:7px;border-radius:7px;border:1px solid rgba(163,103,10,.42)
}
.drawn-card::after{
  content:"";position:absolute;left:50%;top:50%;width:34%;height:34%;
  transform:translate(-50%,-50%) rotate(45deg);
  background:var(--bg);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}
@media (prefers-reduced-motion:no-preference){
  .drawn-card{animation:cardDraw 7.5s ease-in-out infinite}
}
@keyframes cardDraw{0%,100%{transform:rotate(-9deg) translateY(0)}50%{transform:rotate(-7deg) translateY(-11px)}}

.hero-eyebrow{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.72rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--brand-light);margin-bottom:1rem;
}
.hero h1{margin-bottom:1.1rem}
.hero h1 .highlight{
  font-style:italic;color:var(--brand);position:relative;
  line-height:1.1;padding-bottom:.12em;display:inline-block;
}
.hero h1 .highlight::after{
  content:"";position:absolute;left:0;right:0;bottom:.04em;height:.22em;
  background:rgba(240,164,19,.22);border-radius:3px;z-index:-1;
}
.hero-lede{font-size:1.1rem;color:var(--text-muted);margin-bottom:1.35rem}
.hero-cta-row{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center}
.hero-foot{clear:both;padding-bottom:clamp(4rem,3rem + 3vw,6rem)}

/* stat strip - normal flow, pulled up */
.stat-strip{
  position:relative;z-index:3;margin-top:-3.25rem;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;
  background:var(--border);border:1px solid var(--border);border-radius:var(--card-radius);
  overflow:hidden;box-shadow:var(--shadow-card);
}
.stat-cell{background:var(--bg-card);padding:1.35rem 1.2rem;min-width:0}
.stat-num{font-family:var(--font-heading);font-size:1.65rem;font-weight:700;color:var(--brand);line-height:1.1;display:block}
.stat-label{font-size:.76rem;letter-spacing:.11em;text-transform:uppercase;color:var(--text-dim);font-weight:600;margin-top:.3rem;display:block}

/* ------------------------------------------------------- page hero (inner) */
.page-hero{position:relative;padding:clamp(2.6rem,2rem + 2.4vw,4.2rem) 0 clamp(3.4rem,2.6rem + 2.4vw,5rem);overflow:hidden;margin-bottom:1rem}
.page-hero-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.24;z-index:0}
.page-hero::after{
  content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(100deg,rgba(20,25,56,.95),rgba(20,25,56,.74) 62%,rgba(20,25,56,.5)),
             linear-gradient(0deg,var(--bg) 3%,rgba(20,25,56,0) 46%);
}
.page-hero--flat{background:var(--bg-panel)}
.page-hero-inner{position:relative;z-index:1}
.crumbs{display:flex;align-items:center;gap:.55rem;font-size:.78rem;color:var(--text-dim);margin-bottom:1rem;flex-wrap:wrap}
.crumbs a{color:var(--text-dim)}
.crumbs a:hover{color:var(--brand-light)}
.crumb-sep{width:5px;height:8px;background:var(--gold-gloss);clip-path:polygon(0 0,100% 50%,0 100%);display:inline-block}
.page-sub{font-size:1.08rem;color:var(--text-muted);margin-bottom:.7rem}
.page-meta{font-size:.8rem;color:var(--text-dim);margin-bottom:1.3rem;display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.page-meta-author{color:var(--brand-light);font-weight:600}
.meta-dot{width:4px;height:4px;border-radius:50%;background:var(--border-strong);display:inline-block}

/* ------------------------------------------------------------- sections */
.page-section{padding:clamp(2.4rem,1.8rem + 2vw,3.6rem) 0}
.section-head{margin-bottom:1.6rem}
.section-head h2{margin-bottom:.5rem}
.section-head h2::after{
  content:"";display:block;width:56px;height:3px;margin-top:.8rem;
  background:var(--gold-gloss);border-radius:2px;
}

.intro-block{
  background:var(--bg-card);border:1px solid var(--border);border-left:3px solid var(--brand);
  border-radius:var(--card-radius);padding:1.5rem 1.7rem;margin-bottom:1.6rem;
}
.intro-block p:last-child{margin-bottom:0}

/* card base */
.plain-card,.floor-tile,.support-card,.split-copy,.security-cell,.bento-cell{
  position:relative;background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--card-radius);box-shadow:var(--shadow-card);overflow:hidden;
}
.plain-card{padding:1.7rem 1.8rem;margin:0 auto}
.plain-card p:last-child,.floor-tile p:last-child{margin-bottom:0}
.plain-card::before,.floor-tile::before,.support-card::before,.security-cell::before,.bento-cell::before{
  content:"";position:absolute;inset:0 0 auto 0;height:5px;
  background:linear-gradient(90deg,var(--brand) 0%,var(--brand-light) 45%,var(--accent) 100%);
}
.plain-card::after,.floor-tile::after{
  content:attr(data-mark);position:absolute;right:.9rem;bottom:.1rem;
  font-family:var(--font-heading);font-style:italic;font-weight:700;
  font-size:4.2rem;line-height:1;color:rgba(240,164,19,.07);
  pointer-events:none;transition:color .35s ease;
}
.plain-card:hover::after,.floor-tile:hover::after{color:rgba(43,191,217,.13)}
.floor-tile{padding:1.55rem 1.6rem;transition:transform .25s ease,box-shadow .3s ease}
.floor-tile:hover{transform:translateY(-4px);box-shadow:var(--shadow-card-hover)}

.floor-grid{display:grid;gap:1.1rem;align-items:stretch}
.floor-grid--cols-1{grid-template-columns:minmax(0,1fr)}
.floor-grid--cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.floor-grid--cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.floor-grid--cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.floor-grid--rich{grid-template-columns:minmax(0,1fr)}
.floor-grid--rich .floor-tile{padding:2.4rem}
.floor-grid--rich .tile-kicker{
  margin:1.5rem 0 .9rem;padding-top:1rem;border-top:2px solid var(--brand);
  font-size:.74rem;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-light);
}
.subcard-list{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.7rem}
.subcard-list li{
  position:relative;background:var(--bg);border:1px solid var(--border-soft);
  border-radius:var(--r-md);padding:1rem 1.15rem 1rem 1.45rem;margin:0;
}
.subcard-list li::before{
  content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,var(--brand),var(--accent));
}

/* feature check list */
.feature-check-list{
  list-style:none;padding:1.3rem 1.4rem;margin:0 0 1.1rem;
  background:linear-gradient(135deg,rgba(240,164,19,.11),rgba(43,191,217,.05));
  border:1px solid var(--border);border-left:4px solid var(--brand);border-radius:var(--r-lg);
  display:grid;gap:.8rem;
}
.feature-check-list li{position:relative;padding-left:2.1rem;margin:0}
.feature-check-list li::before{
  content:"";position:absolute;left:0;top:.28em;width:20px;height:20px;border-radius:50%;
  background:var(--gold-gloss);
}
.feature-check-list li::after{
  content:"";position:absolute;left:6px;top:.52em;width:5px;height:9px;
  border:solid #15193A;border-width:0 2px 2px 0;transform:rotate(42deg);
}
.feature-check-list--plain{padding:1.7rem 1.8rem}
.feature-check-list--plain .feature-check-list{margin-bottom:1.1rem}

/* split layout */
.split-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:1.4rem;align-items:start}
.split-copy{padding:1.7rem 1.8rem}
.split-copy>:last-child{margin-bottom:0}
.split-media{margin:0;border-radius:var(--card-radius);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-card)}
.split-media img{width:100%;aspect-ratio:4/3;object-fit:cover}

/* image divider (R5b) */
.image-divider{display:grid;grid-template-columns:1.25fr .75fr;gap:1.4rem;align-items:center;padding:clamp(1.4rem,1rem + 1vw,2.2rem) 0}
.divider-figure{margin:0;border-radius:var(--r-xl);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-card)}
.divider-figure img{width:100%;aspect-ratio:4/3;object-fit:cover}
.divider-aside{
  background:var(--bg-panel);border:1px solid var(--border);border-radius:var(--r-xl);
  padding:1.6rem 1.7rem;position:relative;overflow:hidden;
}
.divider-aside::before{
  content:"";position:absolute;right:-30px;top:-30px;width:150px;height:150px;border-radius:50%;
  background:radial-gradient(circle,rgba(240,164,19,.14),transparent 68%);
}
.divider-line{font-family:var(--font-heading);font-size:1.25rem;font-weight:700;line-height:1.25;margin:0;color:var(--text)}

/* ------------------------------------------------- hand-authored homepage */
.home-intro{display:grid;grid-template-columns:1.22fr .78fr;gap:1.4rem;align-items:start}
.pull-panel{
  background:linear-gradient(150deg,var(--bg-elevated),var(--bg-card));
  border:1px solid var(--border-strong);border-radius:var(--r-xl);padding:1.8rem;
  position:relative;overflow:hidden;
}
.pull-panel::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--gold-gloss)}
.pull-panel p:last-child{margin-bottom:0}
.pull-panel .kicker{margin-top:.4rem}

.bento-floor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
.bento-cell{padding:1.5rem 1.6rem;transition:transform .25s ease,box-shadow .3s ease;display:flex;flex-direction:column}
.bento-cell:hover{transform:translateY(-4px);box-shadow:var(--shadow-card-hover)}
.bento-cell--wide{grid-column:span 2}
.bento-cell p:last-child{margin-bottom:0}
.bento-media{margin:-1.5rem -1.6rem 1.2rem;border-bottom:1px solid var(--border)}
.bento-media img{width:100%;aspect-ratio:16/9;object-fit:cover}
.bento-link{margin-top:auto;padding-top:1rem;font-weight:700;font-size:.86rem;color:var(--brand);display:inline-flex;align-items:center;gap:.45rem}
.bento-link::after{content:"";width:6px;height:9px;background:var(--gold-gloss);clip-path:polygon(0 0,100% 50%,0 100%)}

.security-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.1rem}
.security-cell{padding:1.5rem 1.4rem}
.security-cell .pips{margin-bottom:.9rem}
.security-cell h3{font-size:1.08rem}
.security-cell p:last-child{margin-bottom:0}

.rewards-bento{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
.rewards-bento .bento-cell--strip{grid-column:1/-1;flex-direction:row;align-items:center;gap:1.6rem;flex-wrap:wrap}
.rewards-bento .bento-cell--strip>div{flex:1 1 320px;min-width:0}

.support-card{padding:2.3rem 2.4rem;position:relative}
.support-card::after{
  content:"RR";position:absolute;right:1.2rem;bottom:-1.4rem;
  font-family:var(--font-heading);font-style:italic;font-weight:700;font-size:9rem;line-height:1;
  color:rgba(240,164,19,.08);pointer-events:none;transition:color .35s ease;
}
.support-card:hover::after{color:rgba(43,191,217,.13)}
.support-card>*{position:relative;z-index:1}
.support-card p:last-child{margin-bottom:0}

/* ----------------------------------------- game section: "the courtyard" */
.courtyard{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(4,auto);gap:.9rem;
}
.game-tile{
  position:relative;border-radius:var(--r-md);overflow:hidden;
  border:1px solid var(--border);background:var(--bg-card);
  box-shadow:var(--shadow-soft);transition:transform .25s ease,box-shadow .3s ease;
  display:block;
}
.game-tile img{width:100%;aspect-ratio:1;object-fit:cover}
.game-tile figcaption{
  padding:.6rem .7rem;font-size:.78rem;font-weight:600;color:var(--text-muted);
  text-align:center;border-top:1px solid var(--border-soft);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.game-tile:hover{transform:translateY(-4px);box-shadow:var(--shadow-card-hover);border-color:var(--brand)}
.courtyard-court{
  grid-column:2/4;grid-row:2/4;
  background:linear-gradient(150deg,var(--bg-elevated),var(--bg-panel));
  border:1px solid var(--border-strong);border-radius:var(--r-lg);
  padding:1.6rem;display:flex;flex-direction:column;justify-content:center;gap:.6rem;
  position:relative;overflow:hidden;
}
.courtyard-court::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--gold-gloss)}
.courtyard-court h3{margin-bottom:.2rem}
.courtyard-court .btn{align-self:flex-start}
.courtyard-court p{font-size:.92rem;color:var(--text-muted);margin-bottom:.6rem}

/* -------------------------------------------------------------- FAQ */
.faq-section{padding:clamp(2.4rem,1.8rem + 2vw,3.6rem) 0}
.faq-list{display:grid;gap:.75rem}
.faq-item{
  background:var(--bg-card);border:1px solid var(--border);border-radius:var(--r-lg);
  overflow:hidden;transition:box-shadow .3s ease,border-color .3s ease;
}
.faq-item[open]{box-shadow:var(--shadow-card);border-color:var(--border-strong)}
.faq-item summary{
  cursor:pointer;list-style:none;padding:1.1rem 3.2rem 1.1rem 1.4rem;position:relative;
  font-family:var(--font-heading);font-weight:700;font-size:1.03rem;color:var(--text);
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"";position:absolute;right:1.2rem;top:50%;width:22px;height:22px;margin-top:-11px;
  border-radius:50%;background:var(--gold-gloss);transition:transform .3s ease;
}
.faq-item summary::before{
  content:"";position:absolute;right:1.2rem;top:50%;width:22px;height:22px;margin-top:-11px;z-index:1;
  background:
    linear-gradient(#15193A,#15193A) center/10px 2px no-repeat,
    linear-gradient(#15193A,#15193A) center/2px 10px no-repeat;
  transition:transform .3s ease;
}
.faq-item[open] summary::before{transform:rotate(135deg)}
@media (prefers-reduced-motion:reduce){.faq-item summary::before{transition:none}}
.faq-answer{padding:0 1.4rem 1.3rem}
.faq-answer p:last-child{margin-bottom:0}

/* ------------------------------------------------------------ footer */
.site-footer{position:relative;margin-top:clamp(3rem,2rem + 3vw,5rem);background:var(--bg-panel);border-top:1px solid var(--border)}
.footer-cta{
  position:relative;transform:translateY(-3rem);margin-bottom:-1.4rem;
  background:var(--gold-gloss);border-radius:var(--r-xl);padding:2.4rem 2.6rem;
  display:flex;align-items:center;justify-content:space-between;gap:1.8rem;flex-wrap:wrap;
  overflow:hidden;box-shadow:0 26px 60px rgba(4,7,22,.5);
}
.footer-cta::after{
  content:"RRummy";position:absolute;right:-.6rem;bottom:-2.6rem;
  font-family:var(--font-heading);font-style:italic;font-weight:700;font-size:7.5rem;line-height:1;
  color:rgba(21,25,58,.10);pointer-events:none;white-space:nowrap;
}
.footer-cta>*{position:relative;z-index:1}
.footer-cta h2{color:#15193A;margin-bottom:.3rem;font-size:clamp(1.4rem,1.1rem + 1.1vw,1.95rem)}
.footer-cta p{color:rgba(21,25,58,.82);margin:0;font-weight:500;max-width:none}
.footer-cta .btn-primary{background:#15193A;color:var(--brand-light);box-shadow:0 12px 26px rgba(4,7,22,.4)}
.footer-cta .btn-primary:hover{background:#0D1128;color:var(--brand-light)}

.footer-map{display:grid;grid-template-columns:1.4fr .9fr .9fr .9fr;gap:1.8rem;padding-bottom:2.2rem}
.footer-brand img{height:44px;width:auto;object-fit:contain;margin-bottom:.9rem}
.footer-brand p{font-size:.92rem;color:var(--text-dim)}
.pay-pills{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:1rem;padding:0;list-style:none}
.pay-pills li{
  font-size:.72rem;font-weight:700;letter-spacing:.05em;color:var(--text-muted);
  border:1px solid var(--border);border-radius:var(--r-pill);padding:.32rem .75rem;margin:0;background:var(--bg-card);
}
.footer-col h3{font-family:var(--font-heading);font-style:italic;font-size:1.05rem;margin-bottom:.9rem;color:var(--text)}
.footer-col h3::after{content:"";display:block;width:34px;height:2px;margin-top:.5rem;background:var(--gold-gloss);border-radius:2px}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:.5rem}
.footer-col a{font-size:.9rem;color:var(--text-dim)}
.footer-col a:hover{color:var(--brand-light)}

.trust-row{display:flex;flex-wrap:wrap;gap:.6rem;padding:1.3rem 0;border-top:1px solid var(--border-soft);list-style:none;margin:0}
.trust-row li{
  display:inline-flex;align-items:center;gap:.45rem;font-size:.76rem;font-weight:600;
  color:var(--text-dim);border:1px solid var(--border);border-radius:var(--r-pill);padding:.38rem .85rem;margin:0;
}
.copy-row{border-top:1px solid var(--border-soft);padding:1.1rem 0 1.6rem;font-size:.8rem;color:var(--text-dim);display:flex;gap:1rem;justify-content:space-between;flex-wrap:wrap}
.copy-row p{margin:0}

/* ----------------------------------------------------------- 404 page */
.notfound{padding:clamp(3rem,2rem + 4vw,6rem) 0;text-align:left}
.notfound-code{
  font-family:var(--font-heading);font-style:italic;font-weight:700;
  font-size:clamp(8vw,8vw,22vw);line-height:.9;margin:0 0 1rem;
  background:var(--gold-gloss);-webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ------------------------------------------------------------- reveal */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1)}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  .drawn-card,.aperture-rim,.live-dot{animation:none !important}
}

/* ------------------------------------------------------- breakpoints */
@media (max-width:1100px){
  .floor-grid--cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .security-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-map{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .primary-nav{
    position:fixed;inset:0;background:rgba(9,12,31,.97);backdrop-filter:blur(10px);
    display:flex;align-items:center;justify-content:center;transform:translateX(100%);
    transition:transform .34s cubic-bezier(.16,1,.3,1);z-index:95;margin:0;
  }
  .primary-nav.is-open{transform:none}
  .primary-nav ul{flex-direction:column;gap:1.4rem;text-align:center}
  .primary-nav a{font-size:1.2rem}
  .nav-indicator{display:none}
  .nav-toggle{display:block;margin-left:auto}
  .header-cta{display:none}
  body.nav-open{overflow:hidden}
  .hero-aperture{width:clamp(180px,34vw,300px);margin-right:-4vw}
  .floor-grid--cols-3,.floor-grid--cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .split-layout{grid-template-columns:1fr}
  .image-divider{grid-template-columns:1fr}
  .home-intro{grid-template-columns:1fr}
  .bento-floor{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento-cell--wide{grid-column:span 2}
  .rewards-bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .courtyard{grid-template-columns:repeat(4,minmax(0,1fr))}
  .courtyard-court{grid-column:1/-1;grid-row:auto;order:-1}
  .footer-cta{padding:1.9rem 1.8rem}
}
@media (max-width:700px){
  body{font-size:1rem}
  .footer-map{grid-template-columns:1fr;gap:1.5rem}
  .courtyard{grid-template-columns:repeat(3,minmax(0,1fr))}
  .plain-card,.split-copy,.feature-check-list--plain{padding:1.4rem 1.3rem}
  .floor-grid--rich .floor-tile{padding:1.6rem 1.4rem}
  .support-card{padding:1.7rem 1.5rem}
}
@media (max-width:560px){
  .hero-aperture{float:none;shape-outside:none;width:min(300px,78vw);margin:0 auto 1.6rem}
  .drawn-card{left:-4%}
  .floor-grid--cols-2,.floor-grid--cols-3,.floor-grid--cols-4{grid-template-columns:minmax(0,1fr)}
  .security-grid,.bento-floor,.rewards-bento{grid-template-columns:minmax(0,1fr)}
  .bento-cell--wide{grid-column:span 1}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .courtyard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-cta{transform:translateY(-2rem)}
  .footer-cta::after{font-size:5rem}
}
@media (max-width:480px){
  .container{padding:0 1.1rem}
  .header-top-inner{justify-content:center}
  .util-nav{gap:.8rem}
  .hero-cta-row .btn,.ladder-cta .btn,.support-cta .btn,.footer-cta .btn{width:100%}
  .stat-strip{grid-template-columns:minmax(0,1fr)}
}

/* ------------------------------------- hand-authored homepage extras */
.ladder{display:grid;gap:.75rem;margin-top:1.3rem}
.ladder-row{
  display:grid;grid-template-columns:.38fr .62fr;gap:1.4rem;align-items:start;
  background:var(--bg-card);border:1px solid var(--border);border-left:3px solid var(--brand);
  border-radius:var(--r-md);padding:1.25rem 1.4rem;
}
.ladder-row h3{margin:0;font-size:1.08rem;color:var(--brand-light)}
.ladder-row p:last-child{margin-bottom:0}
.ladder-cta{margin:1.3rem 0 0}

/* the tint bleeds outward from a pseudo-element so the band reads as a band
   while every child still starts and ends on the container guide lines (D1). */
.band-tint{position:relative;isolation:isolate}
.band-tint::before{
  content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-1.5rem;right:-1.5rem;
  background:linear-gradient(180deg,rgba(43,191,217,.07),rgba(43,191,217,0));
  border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);
  border-radius:var(--r-xl);
}

.prose-field{columns:2;column-gap:2.4rem;margin-top:1.3rem}
.prose-item{break-inside:avoid;margin-bottom:1.4rem}
.prose-item h3{font-size:1.05rem;color:var(--brand-light);display:flex;align-items:center;gap:.55rem}
.prose-item h3::before{content:"";width:7px;height:11px;background:var(--gold-gloss);clip-path:polygon(0 0,100% 50%,0 100%);flex:0 0 auto}
.prose-item p:last-child{margin-bottom:0}

.security-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.subcard-list strong{display:block;font-family:var(--font-heading);font-size:1.02rem;color:var(--brand-light);margin-bottom:.3rem}
.subcard-list p{margin:0}
.feature-check-list strong{display:block;font-family:var(--font-heading);font-size:1.02rem;color:var(--text);margin-bottom:.2rem}
.feature-check-list p{margin:0;color:var(--text-muted)}
.support-cta{margin:1.4rem 0 0}
.split-media--plate{
  aspect-ratio:4/3;
  background:
    radial-gradient(circle at 34% 28%,rgba(240,164,19,.22),transparent 58%),
    repeating-linear-gradient(118deg,rgba(43,191,217,.07) 0 3px,transparent 3px 16px),
    linear-gradient(150deg,var(--bg-elevated),var(--bg-panel));
}
.page-hero h1 .highlight{font-style:italic;color:var(--brand);line-height:1.1;padding-bottom:.12em;display:inline-block}

@media (max-width:900px){
  .ladder-row{grid-template-columns:1fr;gap:.5rem}
  .prose-field{columns:1}
  .security-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .band-tint::before{left:-1rem;right:-1rem}
}
@media (max-width:560px){
  .security-grid--three{grid-template-columns:minmax(0,1fr)}
}
