/* Character, menu and playfield are printed together as one responsive plate. */
.project-spread.game-spread {
  --spread-bg:#101113; --spread-ink:#f9f7ee; --spread-dim:#dcddd6;
  --accent:#f8e34b; --action-fg:#131416;
  border-radius:0; background:#0e0f11;
}
.game-broadside {
  display:grid; grid-template-columns:minmax(0,1fr); isolation:isolate;
  color:#faf9f0; background:#0d0e0f;
}
.gp-gallery,.gp-title { grid-area:1/1; }
.game-broadside .gp-gallery { min-width:0; background:#0d0e0f; }
.game-broadside .gp-plates { aspect-ratio:1680/870; min-height:340px; background:#0d0e0f; }
.game-broadside .gp-keyart,.game-broadside .gp-keyart img { width:100%; height:100%; }
.game-broadside .gp-keyart img { display:block; object-fit:cover; }
.game-broadside .gp-keyart::after { display:none; }
.gp-title {
  z-index:1; align-self:center; justify-self:start; pointer-events:none;
  max-width:44%; margin-left:clamp(23px,5vw,90px);
}
.gp-title::before { content:""; display:block; width:clamp(35px,4.5vw,76px); height:5px; background:#f5e546; margin:0 0 clamp(14px,2vw,29px); }
.game-spread .gp-title h3 {
  margin:0; font-size:clamp(55px,6.7vw,111px); font-weight:850; color:#f9f8f1;
  line-height:1.04; letter-spacing:-.075em;
}
.gp-title h3 span,.gp-cover h2 span { display:block; white-space:nowrap; }
.gp-title .spread-lead { margin:clamp(10px,1.4vw,20px) 0 0; color:#e9e8df; font-size:clamp(16px,1.45vw,22px); }
.game-spread .gp-title .spread-action {
  pointer-events:auto; min-height:44px; padding:9px 19px; margin-top:clamp(13px,2.3vw,33px);
  border-radius:0; background:#f5e546; color:#121315; font-weight:700; font-size:16px;
}
.gp-footer {
  grid-row:2; display:flex; justify-content:space-between; align-items:center;
  padding-inline:clamp(17px,4.8vw,80px); border-top:1px solid #606263; min-height:55px;
}
.gp-footer p { font-size:15px; margin:0; color:#e0e2db; }
.gp-footer p span { padding-inline:7px; color:#9da39d; }
.game-broadside .gallery-choices { justify-content:flex-end; gap:clamp(12px,2vw,30px); padding:0; border:none; }
.game-broadside .gallery-choices button {
  position:relative; min-width:0; border-radius:0; padding:4px 6px; text-decoration:none; color:#bfc3be;
}
.game-broadside .gallery-choices button[aria-pressed="true"] { color:#fffef3; text-decoration:none; }
.game-broadside .gallery-choices button[aria-pressed="true"]::after {
  content:""; position:absolute; inset:auto 5px 1px; height:3px; background:#f5e546;
}
.game-broadside .gp-plates .gp-map {
  isolation:isolate; display:grid; grid-template-columns:44% 56%;
  grid-template-rows:1fr auto; align-content:center; justify-items:center;
  padding:clamp(16px,2vw,32px) clamp(16px,2vw,32px) clamp(16px,2vw,32px) 0;
  background-color:#101214;
  background-image:linear-gradient(140deg,transparent 50%,#ffffff16 50.1%,transparent 50.3%),
    repeating-linear-gradient(0deg,transparent 0 42px,#b7c5ba0e 42px 43px);
}
.game-broadside .gp-map img { grid-column:2; grid-row:1; width:min(80%,470px); max-height:100%; align-self:center; image-rendering:pixelated; }
.game-broadside .gp-map figcaption { grid-column:2; grid-row:2; font-size:clamp(16px,1.35vw,22px); color:#f5e546; }
.game-broadside .gp-plates figure[hidden] { display:none; }

/* The case file shares the colour separations of the poster; the controls and
   board remain live HTML, with the authentic palette reserved for play. */
#panel:has(.gp-reader) { background:#111214; border-radius:0; color:#f8f7ed; }
.gp-reader { --paper:#f4f2e9; --signal:#f5e546; --muted:#b7bcb7; --rule:#545856; }
.gp-reader .reader-index { background:#131517fa; border-color:#5c605c; }
.gp-reader .reader-index button { color:#c4c7bf; }
.gp-reader .reader-index button[aria-current=location] { color:var(--signal); }
.gp-reader .reader-index button[aria-current=location]::after { background:var(--signal); }
.gp-reader .reader-content { padding-top:0; }
.gp-reader .gd-story { color:var(--paper); }
#panel .gp-cover {
  display:flex; align-items:center; isolation:isolate; border-radius:0; overflow:hidden;
  min-height:clamp(250px,31vw,400px); margin-inline:calc(-1 * var(--reader-pad)); background:#101113;
}
#panel .gp-cover>img {
  position:absolute; inset:0 0 0 auto; width:67%; height:100%;
  object-fit:cover; object-position:54% 49%; clip-path:polygon(24% 0,100% 0,100% 100%,0 100%,0 71%);
  filter:grayscale(1) contrast(1.22) brightness(.88); z-index:-2;
}
.gp-screen-slice {
  position:absolute; right:0; top:0; bottom:0; width:67%; z-index:-1;
  background:url("assets/game-cover.webp") 54% 49% / cover;
  clip-path:polygon(22% 50%,100% 14%,100% 30%,10% 70%);
}
#panel .gp-cover::before {
  content:""; display:block; position:absolute; z-index:-1;
  top:73%; bottom:auto; left:0; right:0; height:1px; transform:skewY(-11deg);
  background:linear-gradient(90deg,#818578,transparent 41%,#d6c942 66%,#6f7169);
}
#panel .gp-cover-caption { position:relative; max-width:54%; padding:25px 0 33px var(--reader-pad); }
#panel .gp-cover-caption h2 { margin-bottom:12px; color:var(--paper); font-size:clamp(44px,5.5vw,80px); line-height:1.04; font-weight:840; letter-spacing:-.075em; }
#panel .gp-cover-caption p { padding:0; color:#d3d7ce; font-size:clamp(15px,1.35vw,18px); }
.gp-reader .gd-section {
  border-top:1px solid var(--rule); padding-top:clamp(16px,2.1vw,28px);
  margin-top:clamp(30px,4vw,62px);
}
.gp-reader .gd-section>h3 {
  display:flex; align-items:baseline; gap:clamp(8px,1.4vw,21px);
  margin:0 0 clamp(14px,2.2vw,28px); color:var(--paper);
  font-size:clamp(29px,4.2vw,59px); line-height:1.14; letter-spacing:-.06em; font-weight:800;
}
.gp-reader .gd-section>h3::before { content:""; flex:none; width:clamp(16px,3vw,47px); height:4px; background:var(--signal); transform:translateY(-.2em); }
.gp-reader game-level-board { background:#1a1d1d; color:var(--paper); border:1px solid var(--rule); border-radius:0; }
.gp-reader .gd-mission { background:var(--paper); border-bottom:0; }
.gp-reader .gd-mission .gd-goal { font-weight:710; color:#16191a; }
.gp-reader .gd-level-menu summary { border-radius:0; background:#fafaf5; color:#212422; border-color:#797b73; }
.gp-reader .gd-level-menu .gd-picker,.gp-reader .gd-level-menu .gd-picker button { border-radius:0; }
.gp-reader .gd-level-menu .gd-picker button[aria-pressed="true"] { background:#eee78e; color:#131514; }
.gp-reader .gd-board-panel {
  background-color:#171a1b; background-image:linear-gradient(130deg,transparent 64%,#ffffff12 64.12%,transparent 64.24%),
    repeating-linear-gradient(0deg,transparent 0 24px,#808d830b 24px 25px);
}
.gp-reader .gd-board-head span { color:#ced1ca; font-variant-numeric:tabular-nums; }
.gp-reader .gd-grid { border-radius:0; }
.gp-reader .gd-control-panel { border-left:1px solid #5f625d; background:#242626; }
.gp-reader .gd-control-set button { border:1px solid #696e69; border-radius:0; color:var(--paper); background:#333635; }
.gp-reader .gd-actions button { color:var(--signal); }
.gp-reader .gd-session [data-demo] { color:#151613; background:var(--signal); border-radius:0; }
.gp-reader .gd-session :is([data-undo],[data-reset]),.gp-reader .gd-feedback { color:#dedfd5; }
.gp-reader .gd-help { border-color:var(--rule); color:#e2e3d9; }
.gp-reader .gd-help .gd-legend { color:#dedfd6; }
.gp-reader .gd-legend .gd-legend-seal { color:#f7b780; }
.gp-reader .gd-legend .gd-legend-exit { color:#a9e0b5; }
.gp-reader .gd-legend .gd-legend-bars { color:#e6dbe3; }

/* The original frames can be scrubbed from the contact strip or enlarged. */
.gp-reader .gd-motion-strip { border-radius:0; overflow:hidden; background:var(--paper); }
.gp-reader .gd-motion-paper {
  display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); grid-template-rows:minmax(0,1fr) auto;
  padding:0; background:var(--paper); color:#121416;
}
.gp-action-ledger {
  position:relative; display:grid; place-items:center; grid-row:1/3;
  isolation:isolate; min-height:220px; overflow:hidden; background:#e5e5dc;
}
.gp-action-ledger::before {
  content:""; position:absolute; inset:24% -35% 22% -26%; transform:rotate(-18deg);
  border:1px solid #373f3d; border-radius:50%; pointer-events:none;
}
.gp-action-ledger::after {
  content:""; position:absolute; left:0; right:0; top:66%; height:4px; background:#202628;
  clip-path:polygon(0 44%,61% 44%,61% 0,84% 0,84% 44%,100% 44%,100% 64%,0 64%);
}
.gp-action-ledger .pose-figure { position:relative; width:90%; max-width:290px; z-index:1; }
.gp-reader .gd-motion-strip .pose-steps {
  margin:20px 15px 0; grid-column:2; align-self:center; border-color:#6d726c;
}
.gp-reader .gd-motion-strip .pose-steps::before { border-color:#778078; }
.gp-reader .gd-motion-strip .pose-steps button { padding-bottom:6px; color:#252925; background:transparent; }
.gp-reader .gd-motion-strip .pose-steps button[aria-pressed="true"] { background:#eee76b; color:#121511; }
.gp-reader .gd-motion-strip .pose-steps button[aria-pressed="true"]::after { background:#222921; }
.gp-reader .gd-motion-play { grid-column:2; padding:0 10px; }
.gp-reader .gd-motion-play .pose-play { color:#252923; font-weight:650; }
.gp-reader .gd-motion-strip :focus-visible { outline-color:#3033b2!important; }

/* The game's dialogue remains playable over full-size character proofs. */
.gp-reader game-cast-dialogue { background:#dedfd6; color:#161a17; border-radius:0; }
.gp-reader .gd-cast-tabs { background:#151719; border-bottom:1px solid var(--rule); padding:0; gap:0; }
.gp-reader .gd-cast-tabs button { border-radius:0; color:#e4e7dc; padding-inline:16px; }
.gp-reader .gd-cast-tabs button[aria-pressed="true"] { color:#151914; background:var(--signal); }
.gp-reader .gd-character {
  --subject:url("assets/game-cast-gatekeeper.webp"); position:relative; isolation:isolate;
  grid-template-columns:40% minmax(0,1fr); background:#e4e5dd; color:#202520; min-height:280px;
}
.gp-reader .gd-character-gambler { --subject:url("assets/game-cast-gambler.webp"); }
.gp-reader .gd-character-mechanic { --subject:url("assets/game-cast-mechanic.webp"); }
.gp-reader .gd-character::before {
  inset:0 auto 0 0; width:40%; z-index:-2; clip-path:polygon(0 0,100% 0,62% 100%,0 100%);
  background:#292d2b var(--subject) 55% 23% / 145% auto no-repeat; filter:grayscale(1) contrast(1.3);
}
.gp-reader .gd-character::after {
  content:""; position:absolute; top:75%; left:0; width:36%; height:2px; transform:rotate(-7deg); background:#dcc941; z-index:-1;
}
.gp-reader .gd-character img { max-height:350px; width:100%; object-position:50% bottom; }
.gp-reader .gd-character-copy { padding:20px 22px 20px 12px; }
.gp-reader .gd-character h4 { color:#171b18; font-weight:790; letter-spacing:-.06em; font-size:clamp(26px,3.6vw,47px); }
.gp-reader .gd-character blockquote { color:#252a23; font-weight:620; }
.gp-reader .gd-choices button,.gp-reader .gd-character [data-again] { border-radius:0; background:#f5f5ed; color:#242823; border-color:#737a72; }
.gp-reader case-game-film { border:1px solid var(--rule); border-radius:0; background:#141719; }
.gp-reader .case-chapters { background:#171b1b; border-color:var(--rule); padding:0; }
.gp-reader .case-chapters button { min-height:46px; border-radius:0; color:#d2d6cc; }
.gp-reader .case-chapters button[aria-pressed="true"] { color:#111711; background:var(--signal); }
.gp-reader .case-chapters button[aria-pressed="true"]::after { display:none; }
.gp-reader .rc-work { border-color:var(--rule); }
.gp-reader .rc-work a { color:var(--paper); }
.gp-reader .gd-story :is(button,summary,a,[tabindex]):focus-visible { outline-color:#ebe646; }
.gp-reader .gd-mission :is(button,summary):focus-visible,.gp-reader .gd-choices button:focus-visible { outline-color:#3733af; }
@media(hover:hover) {
  .game-spread .gp-title .spread-action:hover,.gp-reader .gd-session [data-demo]:hover { background:#fff286; }
  .gp-reader .gd-control-set button:hover { background:#4b514c; }
  .gp-reader .gd-choices button:hover { background:#f3e973; }
}
@media(max-width:760px) {
  .gp-reader .gd-control-panel { border-left:0; border-top:1px solid #525953; }
  .gp-reader .gd-motion-paper { grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); }
  .gp-action-ledger { min-height:165px; }
  .gp-reader .gd-motion-strip .pose-steps { margin-inline:6px; }
}
@media(max-width:640px) {
  .game-broadside .gp-plates { aspect-ratio:828/1120; min-height:360px; }
  .gp-title { max-width:95%; align-self:end; margin:0 0 7% 5%; }
  .gp-title::before { height:4px; width:46px; margin:0 0 10px; }
  .game-spread .gp-title h3 { display:flex; font-size:clamp(35px,10.1vw,64px); line-height:1.07; }
  .gp-title .spread-lead { margin-top:6px; font-size:16px; }
  .game-spread .gp-title .spread-action { margin-top:11px; }
  .gp-footer { min-height:50px; padding-inline:12px; }
  .gp-footer p { font-size:14px; }
  .gp-footer .gallery-choices { min-height:48px; gap:7px; }
  .gp-footer button { font-size:15px; }
  .game-broadside .gp-plates .gp-map {
    grid-template-columns:1fr; grid-template-rows:1fr auto; align-content:start;
    padding:8px 8px 49%; gap:0;
  }
  .game-broadside .gp-map img,.game-broadside .gp-map figcaption { grid-column:1; }
  .game-broadside .gp-map img { width:auto; max-width:77%; max-height:100%; }
  #panel .gp-cover { min-height:260px; }
  #panel .gp-cover-caption { padding-block:25px; }
  #panel .gp-cover-caption h2 { font-size:clamp(38px,8.8vw,60px); }
  #panel .gp-cover>img { max-height:none; width:67%; }
  .gp-reader .gd-section { margin-top:26px; padding-top:12px; }
  .gp-reader .gd-section>h3 { margin-bottom:12px; }
  .gp-reader .gd-character { grid-template-columns:36% minmax(0,1fr); min-height:230px; }
  .gp-reader .gd-character::before { width:36%; }
  .gp-reader .gd-character img { max-height:240px; }
  .gp-reader .gd-character-copy { padding:16px 9px; }
  .gp-reader .gd-motion-paper { display:block; }
  .gp-action-ledger { height:clamp(138px,40vw,215px); }
  .gp-action-ledger .pose-figure { width:auto; height:100%; }
  .gp-reader .gd-motion-strip .pose-steps { margin:0 8px; }
}
@media(max-width:510px) { .gp-footer .gp-format { display:none; } }
@media(max-width:360px) { .game-broadside .gp-plates .gp-map { padding-bottom:56%; } }
@media(forced-colors:active) {
  .game-broadside .gp-keyart,.gp-reader .gd-player { forced-color-adjust:none; }
  .gp-reader .gd-section>h3::before { background:CanvasText; }
  .gp-reader .gd-story :focus-visible { outline-color:Highlight; }
}
