/* ==========================================================================
   Inner pages (/games/<slug>/) for bestfriendsfordinner.org
   Kept in its own file so the homepage bundle stays untouched; loaded by
   index.html and by everything under /games/.
   Structure mirrors the reference UI kit's inner pages:
   inner hero -> web player -> how to play -> about -> shots -> warning ->
   FAQ -> play-more (inline iframes) -> final CTA -> footer.
   ========================================================================== */

/* ------------------------------------------------------------- inner hero */

.inner-hero{position:relative;overflow:hidden;background:#1b2a20;padding:74px 0 88px;color:#e9f0e6}
.inner-hero-glow{position:absolute;inset:0;background:radial-gradient(900px 420px at 78% 18%,rgba(61,110,166,.34),transparent 70%),radial-gradient(#ffffff14 1px,transparent 1px);background-size:auto,26px 26px;pointer-events:none}
.inner-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
/* Grid items default to min-width:auto, so a wide image would blow the art
   column past its fr share and squeeze the copy. Zero it out. */
.inner-hero-grid>*,.about-grid>*{min-width:0}
.inner-hero-copy .eyebrow{color:#8fb6dc}
.inner-hero-copy .eyebrow-dot{background:#7fb1e0;box-shadow:0 0 0 4px #ffffff1f}
.inner-hero-copy h1{margin:0 0 16px;font-size:clamp(38px,5.4vw,64px);line-height:1.02;color:#f2f7ef}
.inner-hero-copy h1 em{color:#7fb1e0}
.inner-hero-copy h1 .heading-heart{color:#7fb1e0}
.inner-sub{max-width:520px;font-size:16px;line-height:1.75;margin:0 0 27px;color:#c6d6c2}
.inner-hero-art{position:relative;padding:10px;background:#0e1a12;border:1px solid #2c4634;border-radius:10px;box-shadow:0 28px 62px rgba(0,0,0,.55);transform:rotate(1.6deg)}
.inner-hero-art img{width:100%;display:block;border-radius:4px}
.inner-hero-art:before{content:'';position:absolute;z-index:2;width:87px;height:26px;background:rgba(238,231,201,.7);top:-9px;left:42%;transform:rotate(-8deg)}
.inner-facts{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:30px 0 0;padding:0}
.inner-facts li{display:flex;flex-direction:column;gap:2px;min-width:104px;padding:11px 14px;border:1px solid #2c4634;border-radius:10px;background:rgba(255,255,255,.04)}
.inner-facts strong{font-family:'Nunito',sans-serif;font-size:22px;font-weight:900;color:#9cc3ea;line-height:1.1}
.inner-facts span{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#a7bda3;font-weight:800}
.inner-hero-art-label{position:absolute;right:10px;bottom:-26px;color:#8ea58c;font-size:10px;letter-spacing:.15em;font-weight:800}

/* --------------------------------------------------------------- the game */

.inner-play{background:#fffefa;padding-top:78px}
.inner-play .game-shell{max-width:1020px}
.inner-embed-note{max-width:1020px;margin:22px auto 0;padding:12px 16px;border:1px solid #d3e0cd;border-radius:10px;background:#f2f7ee;color:#4c5f51;font-size:13px;line-height:1.6}
.inner-embed-note a{color:#2f6091;font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* ---------------------------------------------------------- how to play */

.how-section{background:#eff5ec}
.how-section .kicker{color:#3f6a94}
.how-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 42px;counter-reset:how}
.how-list li{display:grid;grid-template-columns:52px 1fr;gap:16px;border-top:1px solid #d3e0cd;padding-top:20px}
.how-num{font-family:Georgia,serif;font-size:21px;font-style:italic;color:#4a7fb8}
.how-list h3{margin:0 0 6px;font-size:19px}
.how-list p{margin:0;font-size:14px;line-height:1.72;color:#66756a}
.how-keys{margin:34px 0 0;padding:22px 26px;background:#fff;border:1px solid #dce5d6;border-radius:12px;box-shadow:0 12px 30px #35513d10}
.how-keys h3{margin:0 0 14px;font-size:19px}
.how-keys dl{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 26px}
.how-keys dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #dde6d7;font-size:13px}
.how-keys dt{color:#67756a}
.how-keys dd{margin:0;color:#2f6091;font-weight:800;text-align:right;white-space:nowrap}

/* ------------------------------------------------------------------ about */

.inner-about{background:#fffbf8}
.inner-about h2{margin:12px 0 20px}
.inner-about p{color:#5f6f64;font-size:15px;line-height:1.8;margin:0 0 16px}
.about-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:start}
.about-quote{margin:26px 0;display:flex;gap:13px;border-left:3px solid #4a7fb8;padding:6px 0 5px 18px}
.about-quote>span{font-family:Georgia,serif;font-size:55px;line-height:.7;color:#4a7fb8}
.about-quote p{margin:0;font-family:Georgia,serif;font-style:italic;font-size:18px;line-height:1.5;color:#3b5a45}
.about-quote strong{color:#2f5c45}
.about-facts{background:#fff;border:1px solid #dce5d6;border-radius:12px;padding:26px 28px;box-shadow:0 15px 35px #35513d10;transform:rotate(1deg)}
.about-facts h3{margin:0 0 12px;font-size:19px;padding-bottom:12px;border-bottom:1px solid #e3eadd}
.about-facts dl{margin:0}
.about-facts dl>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px dashed #dde6d7;font-size:13.5px}
.about-facts dl>div:last-child{border-bottom:0}
.about-facts dt{color:#67756a}
.about-facts dd{margin:0;color:#2f6091;font-weight:800;text-align:right}

/* ----------------------------------------------------------------- shots */

.shots-section{background:#f4f8f1}
.shots-section .section-heading p{color:#66756a}
.shots-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.shot{margin:0;background:#fff;border:1px solid #dce5d6;border-radius:12px;overflow:hidden;box-shadow:0 11px 30px rgba(43,74,54,.07);text-align:left;padding:0;cursor:pointer;transition:transform .2s,box-shadow .2s;display:block;width:100%}
.shot:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(43,74,54,.14)}
.shot img{width:100%;display:block}
.shot figcaption{padding:12px 16px;font-size:10.5px;letter-spacing:.15em;font-weight:900;color:#5b7a63;background:#fbfdf8;display:flex;justify-content:space-between;align-items:center;gap:12px}
.shot figcaption span:last-child{color:#8a9a8d;letter-spacing:.1em}

/* --------------------------------------------------- play more, in place */

.more-section{background:#fffefa}
.inline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.inline-game{display:flex;flex-direction:column;background:#fff;border:1px solid #e0e9d9;border-radius:12px;overflow:hidden;box-shadow:0 7px 20px rgba(43,74,54,.06);transition:transform .2s,box-shadow .2s}
.inline-game:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(43,74,54,.16)}
.inline-game__stage{position:relative;aspect-ratio:16/9;background:#101a14;overflow:hidden}
.inline-game__stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.inline-game__stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.inline-game__play{position:absolute;inset:0;display:grid;place-items:center;border:0;padding:0;cursor:pointer;background:rgba(16,26,20,.4);transition:background .2s}
.inline-game__play:hover{background:rgba(16,26,20,.28)}
.inline-game__play span{display:inline-flex;align-items:center;gap:10px;padding:10px 20px;border-radius:999px;background:linear-gradient(180deg,#5b93c9,#2f6091);color:#fff;font-family:'Nunito',sans-serif;font-size:13px;font-weight:900;box-shadow:0 6px 0 #1d3f60,0 12px 24px rgba(16,26,20,.5)}
.inline-game__play i{width:0;height:0;border-left:12px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent;display:block}
.inline-game__body{padding:12px 13px 15px;display:flex;flex-direction:column;gap:5px}
.inline-game__title{font-family:'Nunito',sans-serif;font-size:14.5px;font-weight:900;color:#2c4634;line-height:1.25}
.inline-game__note{font-size:11.5px;line-height:1.5;color:#7c8b80;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inline-game__status{display:none;font-size:11px;color:#8a9a8d;line-height:1.45}
.inline-game__status.is-visible{display:block}
.inline-game__stop{margin-top:2px;align-self:flex-start;background:none;border:1px solid #d5e0cf;border-radius:100px;padding:4px 11px;font-size:10.5px;font-weight:800;color:#6b7a6e;cursor:pointer}
.inline-game__stop:hover{background:#f1f6ee;color:#2f6091}
.inline-note{max-width:820px;margin:28px auto 0;text-align:center;font-size:12.5px;color:#7c8b80;line-height:1.7}
.inline-note a{color:#2f6091;font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* --------------------------------------------------------------- credits */

.credits-section{background:#eff5ec}
.credits-section h2{margin:12px 0 26px}
.credits-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-width:820px}
.credits-list li{position:relative;padding-left:22px;font-size:14px;line-height:1.7;color:#66756a}
.credits-list li:before{content:'✦';position:absolute;left:0;top:0;color:#7fb1e0}
.credits-list a{color:#2f6091;font-weight:800;text-decoration:underline;text-underline-offset:3px}

/* --------------------------------------------------------------- back link */

.back-home{display:flex;width:fit-content;align-items:center;gap:9px;margin:0 0 22px;font-size:13px;font-weight:900;color:#8fb6dc}
.back-home:hover{color:#22405f}

/* --------------------------------------------------------------- responsive */

@media(max-width:1100px){
  .inner-hero-grid,.about-grid{grid-template-columns:1fr;gap:38px}
  .inner-hero-art{transform:none;max-width:640px}
  .inline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .how-list{grid-template-columns:1fr}
  .shots-grid{grid-template-columns:1fr}
  .how-keys dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inner-facts li{min-width:92px}
}
@media(max-width:560px){
  .inline-grid{grid-template-columns:1fr}
  .how-keys{padding:18px}
  .how-keys dl{grid-template-columns:1fr}
  .inner-hero{padding:52px 0 62px}
}
