/* PlayForFun Social - Static, reviewer-safe CSS */
/* Keep minimal, fast, and predictable. */

/* ==========================================================
   Tokens
   ========================================================== */

:root{
  /* Base colours */
  --bg:#0b0f16;
  --bg0:#070A14;
  --bg1:#0B1020;

  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:rgba(229,231,235,.14);
  --link:#c7d2fe;
  --btn:#e5e7eb;
  --btnText:#0b0f16;
  --warnBg:#0f172a;
  --warnBorder:rgba(199,210,254,.35);

  --accent:#7C3AED;
  --accent2:#06B6D4;

  /* Wider desktop layout */
  --maxw:1280px;
}

/* ==========================================================
   Resets + Background (NO tiling seams)
   ========================================================== */

*{box-sizing:border-box}

/* Allow full document height (not locked to 100vh/100%) */
html, body { height:auto; min-height:100%; }

html{
  /* Base depth behind everything, fixed so it never "restarts" when scrolling */
  background: linear-gradient(180deg, #070A14 0%, #0B1020 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body{
  margin:0;
  min-height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  line-height:1.55;
  overflow-x:hidden;

  /* Let html be the base, body stays transparent */
  background: transparent;

  /* Ensure our pseudo-element layers behave predictably */
  position: relative;
  isolation: isolate;
}

/* Big stretched color canvas (fixed + no repeat = no fold seam) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 900px at 10% 12%, rgba(124,58,237,.55), transparent 65%),
    radial-gradient(1100px 900px at 92% 18%, rgba(6,182,212,.40), transparent 65%),
    radial-gradient(1200px 900px at 55% 110%, rgba(167,139,250,.30), transparent 70%),
    radial-gradient(900px 700px at 35% 55%, rgba(34,211,238,.22), transparent 70%);

  /* Critical anti-tiling rules */
  background-repeat: no-repeat !important;
  background-size: 180% 180%;
  background-position: 0% 0%;

  filter: saturate(1.15) contrast(1.03);
  animation: bgDrift 34s ease-in-out infinite alternate;
}

@keyframes bgDrift{
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Subtle noise to reduce gradient banding */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

/* Focus ring */
a:focus-visible,
button:focus-visible,
label:focus-visible{
  outline:2px solid rgba(96,165,250,.9);
  outline-offset:2px;
  border-radius:12px;
}

/* Generic image reset */
img{ max-width:100%; height:auto; display:block; }

/* Skip link */
.skip-link{
  position:absolute;
  left:-9999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{ left:12px; }

/* ==========================================================
   Layout helpers
   ========================================================== */

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 20px;
}

/* ✅ CONSISTENT SPACING UNDER STICKY HEADER (ALL PAGES)
   - main provides vertical rhythm
   - main.container keeps the container side gutters too
*/
main{
  padding:56px 0 40px;
}
main.container{
  padding:56px 20px 40px;
}

/* Legacy/utility cards (kept) */
.card{
  background: rgba(17,24,39,.72);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.card h2{margin:0 0 8px; font-size:22px}
.card p{margin:0 0 10px; color:var(--muted)}
.card ul{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.card li{margin:6px 0}

.compliance{
  background: rgba(15,23,42,.82);
  border:1px solid var(--warnBorder);
  border-radius:16px;
  padding:14px 14px 12px;
}
.compliance strong{display:block; margin-bottom:6px}
.compliance p{margin:0; color:var(--text); opacity:.9; font-size:14px}

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin:16px 0 0; }
@media (max-width: 880px){ .grid3{grid-template-columns:1fr} }

.small{font-size:13px; color:var(--muted)}
.kbd{
  display:inline-block;
  border:1px solid var(--border);
  padding:2px 8px;
  border-radius:10px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:12px;
}

.pageTitle{margin:6px 0 6px; font-size:26px}
.pageSub{margin:0 0 12px; color:var(--muted)}
.notice{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background: rgba(255,255,255,.02);
  color:var(--muted);
}

/* ==========================================================
   Legal pages (Terms & Privacy)
   ========================================================== */

.legal-block{
  display:grid;
  gap:14px; /* slightly tighter than default */
  margin-top:16px;
  line-height:1.7;
  color:rgba(229,231,235,.92);
}

.legal-block p{
  margin:0;
}

.legal-block strong{
  font-weight:800;
}

@media (min-width:860px){
  .legal-block{
    gap:16px;
  }
}

/* ==========================================================
   Forms (Register/Login)
   ========================================================== */

.form-card{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  border-radius:22px;
  padding:16px;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.form-grid{
  display:grid;
  gap:14px;
}

.field label{
  display:block;
  font-weight:700;
  font-size:13px;
  margin:0 0 8px;
  color: rgba(229,231,235,.92);
}

.field input,
.field select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}

.field input::placeholder{ color: rgba(229,231,235,.45); }

.field input:focus,
.field select:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.hint{
  margin-top:8px;
  font-size:12.5px;
  color: rgba(229,231,235,.65);
}

.field.checkbox{
  padding-top:6px;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  color: rgba(229,231,235,.86);
}

.check input{
  margin-top:2px;
  width:18px;
  height:18px;
}

.form-msg:empty{
  display:none;
}



/* ==========================================================
   Shared header + mobile drawer (checkbox)
   Fix: visually centered (remove extra vertical padding)
   ========================================================== */

/* hide checkbox but keep it accessible */
#nav-toggle{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* page wrapper for scroll lock */
.page{ min-height:100%; }
#nav-toggle:checked ~ .page{
  height:100vh;
  overflow:hidden;
}

/* Sticky header */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(12,16,32,.86), rgba(10,14,28,.74));
  border-bottom: 1px solid rgba(229,231,235,.10);
}

/* ✅ tighter + more centered */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;

  /* reduced vertical padding to remove “extra bottom space” */
  padding: 8px 0;
}

/* Keep brand and nav naturally centered */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:160px;
}

/* Logo in header */
.logo-img{
  height:50px;
  width:auto;
  display:block;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  background: rgba(255,255,255,.03);
}

/* Desktop nav */
.nav-links{
  display:none;
  gap:10px;
  align-items:center;
}
.nav-links a{
  display:inline-flex;
  align-items:center;
  line-height:1;            /* helps vertical centering */
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--text);
  background: rgba(255,255,255,.02);
  font-size:14px;
}
.nav-links a:hover{
  border-color:var(--border);
  text-decoration:none;
}

/* mobile menu button */
.drawer-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;            /* helps vertical centering */
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.14);
  background: rgba(255,255,255,.06);
  color: rgba(229,231,235,.86);
  font-size: 14px;
  cursor:pointer;
  user-select:none;
  font-weight: 700;
}
.drawer-toggle::before{ content:"☰"; font-size:14px; }

/* backdrop + drawer */
.drawer-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 90;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  z-index: 100;

  background:
    radial-gradient(900px 420px at 10% 10%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(800px 420px at 90% 0%, rgba(6,182,212,.12), transparent 55%),
    linear-gradient(180deg, rgba(11,16,32,.995), rgba(7,10,20,.995));
  border-left: 1px solid rgba(229,231,235,.12);
  box-shadow: -24px 0 70px rgba(0,0,0,.70);

  transform: translateX(102%);
  transition: transform .2s ease;
  padding: 16px 14px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

#nav-toggle:checked ~ .drawer-backdrop{
  opacity:1;
  pointer-events:auto;
}
#nav-toggle:checked ~ .drawer{
  transform: translateX(0);
}

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid rgba(229,231,235,.10);
}
.drawer-title{
  font-weight: 800;
  font-size: 16px;
  color: rgba(229,231,235,.92);
}

.drawer-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.14);
  background: rgba(255,255,255,.06);
  color: rgba(229,231,235,.92);
  cursor:pointer;
  user-select:none;
  font-weight: 800;
  line-height: 1;
}

.drawer-links{
  display:grid;
  gap:10px;
  padding-top: 10px;
}
.drawer-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,.10);
  background: rgba(255,255,255,.05);
  color: rgba(229,231,235,.92);
  font-weight: 800;
  text-decoration:none;
}
.drawer-links a:hover{
  background: rgba(255,255,255,.08);
  text-decoration:none;
}

/* desktop nav on */
@media (min-width: 860px){
  .nav-links{ display:flex; }
  .drawer-toggle{ display:none; }
  .drawer, .drawer-backdrop{ display:none; }

  /* slightly tighter on desktop too */
  .header-inner{ padding: 8px 0; }
}

/* ==========================================================
   Homepage: hero, games grid, steps, cards
   ========================================================== */

.hero{ padding:12px 0 48px; }

.hero-wrap{
  display:grid;
  gap:20px;
  align-items:start;
}

.hero-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:26px;
  background:
    radial-gradient(1050px 420px at 10% 10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(950px 420px at 92% 0%, rgba(6,182,212,.16), transparent 55%),
    radial-gradient(900px 520px at 50% 110%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 24px 70px rgba(0,0,0,.50);
  overflow:hidden;
  position:relative;
}

.hero-inner{
  padding:22px;
  display:grid;
  gap:14px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:rgba(255,255,255,.76);
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  border-radius:999px;
  padding:8px 10px;
  width:fit-content;
}

.hero-inner h1,
h1#hero-title{
  margin:0;
  font-size:clamp(28px, 4.6vw, 52px);
  letter-spacing:-.25px;
  line-height:1.05;
}

.subhead{
  margin:0;
  color:rgba(255,255,255,.80);
  font-size:clamp(14px, 2.2vw, 18px);
  max-width:58ch;
}

.hero-bullets{
  margin:4px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  color:rgba(255,255,255,.78);
  font-size:14px;
}
.hero-bullets li{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:14px;
}

/* CTA buttons */
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  min-height:44px;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  border-color:rgba(255,255,255,.18);
  box-shadow:0 16px 40px rgba(124,58,237,.30);
  color:#fff;
}
.btn-primary:hover{ text-decoration:none; filter:brightness(1.05); }

.btn-secondary{
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.btn-secondary:hover{ text-decoration:none; background:rgba(255,255,255,.08); }

/* Section card */
.section-card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  padding:16px;
}
.section-title{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-.1px;
}

/* ==========================================================
   Block panels
   ========================================================== */

.section{ padding: 0 0 18px; }

.section-card--block{
  border-radius:26px;
  padding:22px;
  position:relative;
  overflow:hidden;

  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}

.section-card--block::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  opacity:.9;
  background:
    radial-gradient(900px 240px at 18% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 240px at 82% 0%, rgba(6,182,212,.14), transparent 62%),
    radial-gradient(900px 420px at 50% 120%, rgba(167,139,250,.10), transparent 65%);
}

.section-card--block > *{
  position:relative;
  z-index:1;
}

.section-card--block .games-grid{ margin-top:14px; }

/* Games grid cards (home + games page reuse) */
.games-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:8px;
}

.game-card{
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(700px 420px at 0% 0%, rgba(124,58,237,.10), transparent 60%),
    rgba(4,8,22,.98);
  border-radius:24px;
  padding:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.game-main{
  display:flex;
  gap:14px;
  align-items:stretch;
}

.thumb{
  width:110px;
  height:110px;
  border-radius:20px;
  overflow:hidden;
  flex:0 0 auto;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.16);
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.game-copy{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.game-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.game-title-row strong{ font-size:15px; line-height:1.25; }

.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  font-size:12px;
  color:rgba(255,255,255,.80);
  white-space:nowrap;
}

.game-note{
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,.72);
}

.game-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.game-actions .btn{
  flex:1 1 120px;
  padding:10px 14px;
  font-size:13px;
  min-height:40px;
}
.game-actions .btn-primary{
  box-shadow:0 10px 32px rgba(124,58,237,.32);
}

/* Steps */
.steps{ display:grid; gap:12px; }
.step{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  border-radius:18px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.icon{
  width:38px; height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  flex:0 0 auto;
}
.step p{margin:0; color:rgba(255,255,255,.78); font-size:14px;}
.step strong{display:block; margin-bottom:2px;}

@media (min-width:860px){
  .hero-wrap{
    grid-template-columns: 1.6fr 1fr;
    align-items:stretch;
  }

  .hero-inner{ padding:34px; }

  .steps{ grid-template-columns: repeat(3,1fr); }
  .step{ flex-direction:column; }

  .games-grid{ grid-template-columns: repeat(3, 1fr); }

  .section-card--block{ padding:26px; }
}

/* ==========================================================
   Shared footer (.site-footer used by shell-bottom.html)
   ========================================================== */

.site-footer{
  margin-top:60px;
  padding-top:36px;
  background:linear-gradient(180deg, rgba(10,14,28,.92), rgba(6,10,22,1));
  border-top:1px solid rgba(255,255,255,.08);
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  padding:0 16px 28px;
  max-width:var(--maxw);
  margin:0 auto;
}

.footer-logo{
  height:56px;
  width:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 30px rgba(6,182,212,.18);
}

.footer-desc{
  margin:14px 0 0;
  color:rgba(255,255,255,.65);
  font-size:14px;
  line-height:1.6;
  max-width:520px;
}

.footer-links-col h4{
  margin:0 0 8px;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}

.footer-links-col a{
  display:block;
  margin:10px 0;
  color:rgba(255,255,255,.72);
  font-size:14px;
  text-decoration:none;
  transition:color .2s ease, transform .2s ease;
}
.footer-links-col a:hover{
  color:#fff;
  transform:translateX(2px);
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  padding:16px 16px;
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.6);
}

@media(min-width:860px){
  .footer-grid{
    grid-template-columns: 2fr 1fr;
    align-items:flex-start;
  }
}

/* ==========================================================
   Age overlay (19+ confirmation)
   ========================================================== */

.age-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(6px);
  z-index:200;
}

.age-modal{
  width:min(520px, 100%);
  border-radius:22px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(600px 280px at 90% 0%, rgba(6,182,212,.12), transparent 55%),
    rgba(10,14,30,.92);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  padding:18px;
}

.age-modal h2{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-.1px;
}

.age-modal p{
  margin:0 0 12px;
  color:rgba(255,255,255,.80);
  font-size:14px;
  line-height:1.5;
}

.age-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.btn-ghost{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  color:var(--text);
}
.btn-ghost:hover{
  text-decoration:none;
  background:rgba(255,255,255,.08);
}

/* ==========================================================
   Demo game page components (/games/demo/...)
   Base styles + ONE clean demo-hero block
   ========================================================== */

.demo-wrap{
  margin-top:0px;
  display:grid;
  gap:14px;
  max-width:var(--maxw);
}

/* Top header panel */
.demo-head{
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(229,231,235,.14);
  background:rgba(255,255,255,.03);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

/* Frame */
.frame-card{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.14);
  background:rgba(255,255,255,.02);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
}

.game-iframe{
  width:100%;
  border:0;
  display:block;
  background:rgba(0,0,0,.25);
}

.demo-cta{
  display:flex;
  justify-content:center;
  padding-top:6px;
}

/* ==========================================================
   Demo pages: hero layout
   - compact header
   - mobile full width + taller
   - desktop landscape (16:9)
   Requires: <section class="demo-wrap demo-hero">
   ========================================================== */

.demo-wrap.demo-hero{
  margin: 18px auto 0;
  gap: 12px;
  max-width: 1100px;
  width: 100%;
}

/* compact top panel */
.demo-wrap.demo-hero .demo-head{
  padding: 14px 16px;
  gap: 6px;
}

.demo-wrap.demo-hero .demo-head h1{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.demo-wrap.demo-hero .mandatory{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.80);
}

/* CTA spacing */
.demo-wrap.demo-hero .demo-cta{
  padding-top: 4px;
}

/* MOBILE: full width, slightly taller */
@media (max-width: 680px){
  .demo-wrap.demo-hero{
    max-width: none;
    margin-top: 14px;
    gap: 10px;
  }

  .demo-wrap.demo-hero .demo-head{
    padding: 12px;
  }

  .demo-wrap.demo-hero .frame-card{
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .demo-wrap.demo-hero .game-iframe{
    width: 100%;
    height: min(68vh, 680px);
  }

  .demo-wrap.demo-hero .mandatory{
    font-size: 12.5px;
  }
}

/* DESKTOP: force landscape viewport so game renders horizontal */
@media (min-width: 860px){
  .demo-wrap.demo-hero .frame-card{
    width: 100%;
    margin: 0 auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .demo-wrap.demo-hero .game-iframe{
    width: 100%;
    height: 100%;
    min-height: 520px;
    max-height: 70vh;
  }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce){
  * {
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
