/* GreenKappa Labs / original tabletop individual game pages
   Shared editorial framework — the images are the original production concept artwork. */
body.game-detail-page{
  --gd-accent:#b38671;--gd-accent-rgb:179,134,113;--gd-paper:#f2ede2;--gd-text:#252626;--gd-wash:#e8ded1;
  background:#101522;color:#f8f1e5;
}
body.game-detail-page[data-game="not-to-scale"]{--gd-accent:#62b5b6;--gd-accent-rgb:98,181,182;--gd-paper:#f0e9dc;--gd-text:#1a2833;--gd-wash:#d9e3df}
body.game-detail-page[data-game="small-gods-large-debts"]{--gd-accent:#d7b17a;--gd-accent-rgb:215,177,122;--gd-paper:#f1e9dc;--gd-text:#2f2937;--gd-wash:#e4d9c7}
body.game-detail-page[data-game="agent-fault"]{--gd-accent:#e2f67a;--gd-accent-rgb:226,246,122;--gd-paper:#f8f2e4;--gd-text:#2e2940;--gd-wash:#eae0cd}
.game-detail-page .section{width:min(1260px,calc(100% - 3rem))}
.game-detail-page .nav a[aria-current="page"]{color:var(--gd-accent);background:rgba(var(--gd-accent-rgb),.10)}
.gd-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:.66rem;margin-bottom:clamp(2rem,4vw,4rem);font-size:.77rem;letter-spacing:.065em;text-transform:uppercase}
.gd-breadcrumb a{color:#c9cbc8;text-decoration:none;border-bottom:1px solid transparent}
.gd-breadcrumb a:hover,.gd-breadcrumb a:focus-visible{color:#fff;border-color:var(--gd-accent)}
.gd-breadcrumb span[aria-hidden]{color:var(--gd-accent)}
.gd-breadcrumb [aria-current="page"]{color:#f9eee0}
.gd-hero{padding-top:clamp(2rem,5vw,4.6rem)!important;padding-bottom:clamp(5.6rem,8vw,8rem)!important;position:relative}
.gd-hero::before{content:"";position:absolute;right:0;top:7rem;width:min(55vw,700px);height:480px;background:radial-gradient(ellipse,rgba(var(--gd-accent-rgb),.08),transparent 70%);pointer-events:none}
.gd-hero-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(2.3rem,5vw,5.8rem)}
.gd-intro{position:relative;z-index:1}
.gd-overline{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.6rem;color:var(--gd-accent);font-weight:800;letter-spacing:.16em;text-transform:uppercase;font-size:.74rem}
.gd-overline:before{content:"";width:35px;height:1px;background:currentColor}
.game-detail-page .gd-hero h1{color:#fff7ef;font:normal clamp(3.5rem,6.3vw,7rem)/.94 Georgia,"Iowan Old Style","Times New Roman",serif;letter-spacing:-.062em;margin:0 0 1.8rem;overflow-wrap:break-word}
.gd-hero h1 em{display:block;color:var(--gd-accent);font-style:italic;font-weight:normal}
.gd-lead{max-width:31rem;font-size:clamp(1.25rem,1.95vw,1.68rem);line-height:1.4;color:#fff1e4;margin-bottom:1rem}
.gd-intro-copy{max-width:34rem;font-size:1rem;line-height:1.75;color:#bdc4c7;margin-bottom:1.6rem}
.gd-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin:1.9rem 0 2rem}
.gd-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:.75rem 1.1rem;border-radius:4px;text-decoration:none;font-weight:750;font-size:.84rem;transition:transform .2s ease,background .2s ease}
.gd-actions a:hover{transform:translateY(-2px)}
.gd-button-primary{color:#181a1c!important;background:var(--gd-accent)}
.gd-button-primary:hover{background:#fff1d9}
.gd-button-outline{color:#f7f2eb;border:1px solid rgba(234,222,204,.35)}
.gd-button-outline:hover{background:rgba(255,255,255,.075)}
.gd-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem 1rem;max-width:34rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.17)}
.gd-specs dt{margin-bottom:.3rem;font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:var(--gd-accent);font-weight:850}
.gd-specs dd{margin:0;font-size:.88rem;color:#d7dfdf;line-height:1.42}
.gd-hero-art{position:relative;margin:0;min-width:0}
.gd-hero-art a{display:block;background:#2f292a;border:1px solid rgba(250,228,204,.23);padding:7px;box-shadow:0 25px 70px rgba(0,0,0,.35);border-radius:6px;transition:border-color .2s ease}
.gd-hero-art a:hover,.gd-hero-art a:focus-visible{border-color:var(--gd-accent)}
.gd-hero-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.gd-hero-art figcaption{display:flex;gap:1rem;justify-content:space-between;margin-top:.85rem;font-size:.73rem;letter-spacing:.05em;color:#bbc6c5}
.gd-hero-art figcaption span:last-child{color:var(--gd-accent)}
.gd-paper{background:var(--gd-paper);color:var(--gd-text)}
.gd-paper .section{padding-block:clamp(4.2rem,6.4vw,7rem)}
.gd-section-index{margin-bottom:1rem;font-size:.73rem;letter-spacing:.16em;text-transform:uppercase;color:#806550;font-weight:850}
.gd-paper h2{font:normal clamp(2.4rem,4.5vw,4.6rem)/1.04 Georgia,"Times New Roman",serif;letter-spacing:-.05em;color:var(--gd-text)}
.gd-story-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);align-items:end;gap:2.5rem;margin-bottom:2.3rem}
.gd-story-head p:last-child{max-width:480px;margin:0;color:#544e4b;font-size:1.03rem;line-height:1.65}
.gd-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(51,48,43,.16);border:1px solid rgba(51,48,43,.16)}
.gd-feature{background:var(--gd-paper);padding:2rem 1.65rem 1.85rem;min-width:0}
.gd-feature-number{display:block;margin-bottom:2.7rem;color:#896c50;font-size:.75rem;font-weight:800;letter-spacing:.1em}
.gd-feature h3{font:normal 1.45rem/1.15 Georgia,serif;letter-spacing:-.025em;color:var(--gd-text);margin-bottom:.9rem}
.gd-feature p{margin:0;color:#5d5851;font-size:.92rem;line-height:1.7}
.gd-highlight{margin-top:3.1rem;display:grid;grid-template-columns:minmax(0,.65fr) minmax(0,1fr);align-items:center;gap:2rem;padding:2.4rem clamp(1.5rem,3.5vw,4rem);background:var(--gd-wash);border-left:4px solid #95745c}
.gd-highlight span{display:block;color:#846047;font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;font-weight:850}
.gd-highlight strong{display:block;font:normal clamp(1.8rem,3vw,2.9rem)/1.1 Georgia,serif;letter-spacing:-.04em}
.gd-highlight p{margin:0;color:#4d4946;line-height:1.65}
.gd-art-section{background:#111b27;color:#f6eee4;border-block:1px solid rgba(255,255,255,.08)}
.gd-art-section .section{padding-block:clamp(4.5rem,7vw,7rem)}
.gd-art-heading{display:flex;justify-content:space-between;gap:3rem;align-items:end;margin-bottom:2rem}
.gd-art-heading h2{font:normal clamp(2.5rem,4.7vw,4.9rem)/.95 Georgia,serif;color:#fff5e9;letter-spacing:-.05em;margin-bottom:0}
.gd-art-heading p{max-width:420px;color:#aebbc1;font-size:.92rem;margin:0}
.gd-art-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:1.3rem;align-items:stretch}
.gd-art-tile{margin:0;min-width:0;display:flex;flex-direction:column}
.gd-art-tile a{display:flex;flex:1;justify-content:center;align-items:center;padding:10px;background:#1d232b;border:1px solid rgba(255,255,255,.18);border-radius:5px;overflow:hidden}
.gd-art-tile a:hover,.gd-art-tile a:focus-visible{border-color:var(--gd-accent)}
.gd-art-tile img{display:block;width:100%;height:auto;object-fit:contain}
.gd-art-tile.gd-art-secondary img{max-height:440px}
.gd-art-tile figcaption{display:flex;justify-content:space-between;gap:1rem;color:#bdc5c5;font-size:.75rem;line-height:1.5;margin-top:1rem}
.gd-art-tile figcaption strong{color:#eee6dc;font-weight:700}
.gd-art-tile.gd-art-secondary .gd-art-crop{width:100%;height:100%;min-height:300px;background-size:200%;background-position:58% 43%;background-repeat:no-repeat}
.gd-art-note{max-width:790px;margin-top:1.5rem;color:#afb8bf;font-size:.84rem}
.gd-development{background:var(--gd-paper);color:var(--gd-text)}
.gd-development .section{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:3rem;align-items:start}
.gd-development h2{font:normal clamp(2.2rem,3.7vw,3.8rem)/1.03 Georgia,serif;color:var(--gd-text);letter-spacing:-.04em}
.gd-development p{color:#54504d}
.gd-dev-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(0,0,0,.18)}
.gd-dev-list li{padding:1rem 0;border-bottom:1px solid rgba(0,0,0,.16);display:flex;gap:1.2rem;align-items:baseline}
.gd-dev-list b{min-width:2.2rem;color:#8d674f;font-size:.76rem;letter-spacing:.06em}
.gd-dev-list span{color:#4d4b49;line-height:1.55}
.gd-development-note{margin-top:1.5rem!important;font-size:.84rem;color:#6a6661!important}
.gd-end{background:#101521;color:#f7f1e9}
.gd-end .section{padding-block:3.5rem 5.5rem}
.gd-end-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem}
.gd-end-heading h2{font:normal 2rem Georgia,serif;margin:0}
.gd-end-heading a{color:var(--gd-accent);text-decoration:underline;text-underline-offset:4px;font-size:.85rem}
.gd-other-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.gd-other-game{display:flex;flex-direction:column;gap:.5rem;min-width:0;padding:.7rem;text-decoration:none;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.14);border-radius:5px;transition:border-color .2s ease,transform .2s ease}
.gd-other-game:hover,.gd-other-game:focus-visible{border-color:var(--gd-accent);transform:translateY(-2px)}
.gd-other-game img{display:block;width:100%;aspect-ratio:3/2;object-fit:contain;background:#282b33}
.gd-other-game strong{font-size:.82rem;line-height:1.35;color:#f4eadf}
.gd-other-game span{font-size:.71rem;color:#a9b7bc}
.gd-footer{border-top:1px solid rgba(255,255,255,.12)}
@media(max-width:1000px){
  .gd-hero-layout{grid-template-columns:1fr}.gd-intro-copy{max-width:680px}.gd-lead{max-width:700px}
  .gd-specs{max-width:none;grid-template-columns:repeat(4,minmax(0,1fr))}
  .gd-art-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .game-detail-page .section{width:min(100% - 2rem,1260px)}
  .gd-breadcrumb{font-size:.68rem;gap:.5rem}
  .gd-hero h1{font-size:clamp(3.2rem,11vw,5.3rem)!important}
  .gd-hero{padding-top:2rem!important}
  .gd-hero-art figcaption{font-size:.67rem}
  .gd-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gd-story-head,.gd-highlight,.gd-development .section{grid-template-columns:1fr}
  .gd-story-head{gap:1rem}
  .gd-feature-grid{grid-template-columns:1fr}
  .gd-feature{padding:1.5rem}.gd-feature-number{margin-bottom:1rem}
  .gd-art-heading{display:block}.gd-art-heading p{margin-top:1rem}
  .gd-art-grid{grid-template-columns:1fr}
  .gd-art-tile.gd-art-secondary img{max-height:none}
  .gd-other-games{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.gd-actions a,.gd-hero-art a,.gd-other-game{transition:none}.gd-actions a:hover,.gd-other-game:hover{transform:none}}

/* Four-stage AI games use an even editorial sequence instead of an orphan fourth card. */
.gd-feature-grid:has(> :nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px) and (min-width:761px){.gd-feature-grid:has(> :nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.gd-feature-grid:has(> :nth-child(4)){grid-template-columns:1fr}}

/* No Such Room: Ghost Blueprint accent and packaging concept treatment. */
body.game-detail-page[data-game="not-to-scale"] .gd-hero-art a{background:#0b1825;border-color:rgba(98,181,182,.42)}
body.game-detail-page[data-game="not-to-scale"] .gd-hero-art img{aspect-ratio:3/2;object-fit:cover}
body.game-detail-page[data-game="not-to-scale"] .gd-art-tile{background:#102333}
body.game-detail-page[data-game="not-to-scale"] .gd-art-note{max-width:78ch}

/* AGENT/FAULT: user-approved 16:9 campaign image as a true full-bleed masthead.
   Preserve its full composition at every breakpoint; no frame, crop or portrait swap. */
body.game-detail-page[data-game="agent-fault"] .af-wide-hero{
 display:block;width:100%;max-width:none;margin:0;padding:0;
 overflow:hidden;background:#100d2d;line-height:0;text-decoration:none;
}
body.game-detail-page[data-game="agent-fault"] .af-wide-hero img{
 display:block;width:100%;height:auto;max-width:none;
 aspect-ratio:16/9;object-fit:contain;object-position:center;
}
body.game-detail-page[data-game="agent-fault"] .af-wide-hero:focus-visible{
 outline:3px solid #e5f91b;outline-offset:-3px;
}
body.game-detail-page[data-game="agent-fault"] .gd-hero{
 padding-top:clamp(1.5rem,3vw,3rem)!important;
 padding-bottom:clamp(3rem,5vw,5rem)!important;
}
body.game-detail-page[data-game="agent-fault"] .gd-hero-layout{
 display:block;width:100%;max-width:1050px;margin-inline:auto;
}
body.game-detail-page[data-game="agent-fault"] .gd-intro-copy{max-width:68ch}
body.game-detail-page[data-game="agent-fault"] .gd-specs{max-width:940px}
@media(max-width:760px){
 body.game-detail-page[data-game="agent-fault"] .gd-hero{
   padding-top:1.4rem!important;padding-bottom:2.7rem!important;
 }
 body.game-detail-page[data-game="agent-fault"] .gd-breadcrumb{margin-bottom:1.2rem}
 body.game-detail-page[data-game="agent-fault"] .gd-hero h1{
   font-size:clamp(2.7rem,10vw,4.2rem)!important;
 }
}


/* AGENT/FAULT: desktop hero refinement — preserve the complete horizontal poster.
   The native 16:9 campaign art stays unframed at the top, but its display height
   is bounded by the viewport instead of becoming a full-screen 1080px wall.
   The title is visually hidden on desktop only because it appears in the art;
   the semantic H1 remains in the document for accessibility. */
@media(min-width:1001px){
  body.game-detail-page[data-game="agent-fault"] .af-wide-hero{
    display:flex;
    justify-content:center;
    align-items:center;
    background:#100d2d;
  }
  body.game-detail-page[data-game="agent-fault"] .af-wide-hero img{
    display:block;
    width:min(100%,1480px,122svh);
    max-width:100%;
    height:auto;
    aspect-ratio:16/9;
    object-fit:contain;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-hero{
    width:min(1480px,calc(100% - 3rem));
    padding-top:clamp(1.15rem,2vw,1.8rem)!important;
    padding-bottom:clamp(2.5rem,3.5vw,3.8rem)!important;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-breadcrumb{
    margin-bottom:1.1rem;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-hero-layout{
    width:100%;
    max-width:none;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-intro{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    grid-template-areas:
      "eyebrow actions"
      "lead actions"
      "copy specs";
    column-gap:clamp(1.5rem,3.1vw,3.5rem);
    row-gap:.7rem;
    align-items:start;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-hero h1{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-overline{
    grid-area:eyebrow;
    margin:0;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-lead{
    grid-area:lead;
    max-width:none;
    margin:0;
    font-size:clamp(1.25rem,1.7vw,1.6rem);
  }
  body.game-detail-page[data-game="agent-fault"] .gd-intro-copy{
    grid-area:copy;
    max-width:65ch;
    margin:0;
    font-size:.96rem;
    line-height:1.65;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-actions{
    grid-area:actions;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0;
    gap:.65rem;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-actions a{
    width:100%;
    min-height:52px;
    text-align:center;
  }
  body.game-detail-page[data-game="agent-fault"] .gd-specs{
    grid-area:specs;
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:none;
    margin:0;
    padding-top:1rem;
  }
}
