/* A little of the cover's gilt, enamel and midnight neon throughout the story. */
header .game-logo{display:block;flex:0 0 auto;width:138px;line-height:0;text-decoration:none;filter:drop-shadow(0 2px 5px #10051180)}
header .game-logo img{display:block;width:100%;height:auto;max-height:72px;object-fit:contain}
header{gap:10px}header>button,header>a:not(.game-logo),header .tools button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;letter-spacing:0;font-size:11px;text-decoration:none}
header>button,header .tools button{border:1px solid #bc8a5a55;border-radius:20px;background:#29192c;color:#dec6ad;padding:7px 11px}
header>a:not(.game-logo){color:#e8c998}
.primary,#choices button:not(.choice),#actions button,#actions a,.opening-actions .primary,.chapter-actions .primary,.action-row .primary{position:relative;min-height:46px;border:1px solid #d7ae65;border-radius:13px;background:linear-gradient(160deg,#89506a 0%,#60304e 35%,#3c2039 100%);color:#fff0cb;box-shadow:inset 0 1px 0 #ffe4ab55,inset 0 0 0 3px #2e142f66,0 3px 0 #170d20,0 5px 12px #09041140;text-shadow:0 1px 2px #210f23;font-family:Georgia,'Times New Roman',serif;font-weight:600;line-height:1.25;transition:transform .14s ease,filter .14s ease,box-shadow .14s ease;text-decoration:none}
#choices button.primary,.primary{background:linear-gradient(155deg,#ffe0a0 0%,#ecc27c 45%,#bd854c 100%);color:#341d31;border-color:#ffe1a5;text-shadow:0 1px 0 #fff2cb55;box-shadow:inset 0 1px 0 #fff3c9,inset 0 0 0 3px #8b54272b,0 3px 0 #754836,0 5px 14px #09041155}
.primary:hover:not(:disabled),#choices button:hover:not(:disabled),#actions button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}
.primary:active:not(:disabled),#choices button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 4px #1b0c2733}
button:focus-visible,a:focus-visible{outline:3px solid #fff0bc;outline-offset:4px}
button:disabled{filter:saturate(.35);transform:none;box-shadow:none;opacity:.45}
#contacts button{border:1px solid #c99866;border-radius:12px;background:linear-gradient(135deg,#58334e,#302237);box-shadow:inset 0 1px #eccb8d44,0 3px 0 #140d1b;color:#fff0cc;min-height:48px}
#contacts button:hover{background:linear-gradient(135deg,#794363,#44304c)}
@media(max-width:600px){header .game-logo{width:111px}header .game-logo img{max-height:58px}header{min-height:60px}header>button,header>a:not(.game-logo),header .tools button{font-size:10px;padding:6px 7px}body>header{padding:6px 10px}.tools{gap:4px}.primary,#choices button:not(.choice),#actions button,#actions a{min-height:46px}header .tools button{font-size:9px}header .game-logo{margin-right:auto}main>header .game-logo{margin-right:0}.chapter{margin-top:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
/* Existing scene-specific rules deliberately retain plum enamel; keep cream labels. */
.phone button.primary,.opening-actions button.primary,.chapter-actions button.primary,.action-row button.primary{color:#fff0cb;text-shadow:0 1px 2px #210f23}
@media(max-width:600px){.opening-art{height:42svh;min-height:0}.interlude-art{height:39svh;min-height:0}}
body .phone button.primary,body .opening-actions button.primary,body .chapter-actions button.primary,body .action-row button.primary,body .closing button.primary{background:linear-gradient(155deg,#ffe0a0,#ecc27c 45%,#bd854c);color:#341d31;text-shadow:0 1px #fff2cb55;border:1px solid #ffe1a5}
@media(max-width:600px) and (max-height:740px){body:has(#description) main{padding:8px}body:has(#description) h1{font-size:21px;margin:6px 0 9px}body:has(#description) .stage{aspect-ratio:1.95;background-size:143% auto}body:has(#description) .story{padding:11px}body:has(#description) h2{font-size:21px;margin-bottom:6px}body:has(#description) #description{font-size:13px;line-height:1.35;margin-bottom:6px}body:has(#description) .clue{margin:6px 0 9px}body:has(#description) .choice{min-height:77px}body:has(#description) .scope,body:has(#description) footer{display:none}}
#tray button{border-radius:12px;border:1px solid #c49a65;background:linear-gradient(145deg,#65415b,#362338);box-shadow:inset 0 1px #ffe1a533,0 2px 0 #190f20;color:#fff0cf}
#tray button:disabled{opacity:.4;box-shadow:none}
main>header{height:auto;min-height:78px} @media(max-width:600px){main>header{height:auto;min-height:60px}}

/* Contact names had explicit old dark-label colors: override the children too. */
#contacts button b,#contacts button span{color:#fff0cc;text-shadow:0 1px 1px #180d20}
#contacts button small{color:#efddc9}

/* Clarity pass: readable controls, deliberate selections, room for mobile copy. */
header>button,header>a:not(.game-logo),header .tools button{font-size:12px}
button,a{touch-action:manipulation}
#choices .item[aria-pressed=true]{outline:3px solid #ffe2a2;outline-offset:2px}
#choices .item[aria-pressed=true] .select-mark{display:block}
@media(max-width:700px){
  header>button,header>a:not(.game-logo),header .tools button{font-size:11px}
  .tools button{padding-left:8px;padding-right:8px}
  .phone .notice,.phone .clue{font-size:13px;line-height:1.45}
  .phone #retry,.phone #board,.phone #begin{min-height:48px;font-size:15px}
  .phone #contacts button{min-height:52px}
  body:has(#bedroom-stage) .story p{font-size:14px;line-height:1.4}
  body:has(#bedroom-stage) .action-row{display:block;margin-top:10px}
  body:has(#bedroom-stage) .action-row p{font-size:13px;line-height:1.4}
  body:has(#bedroom-stage) .action-row .primary{width:100%;margin-top:8px;font-size:15px;min-height:48px}
  body:has(#bedroom-stage) .hint{font-size:13px}
  body:has(#bedroom-stage) .closing p,.interlude-caption p{font-size:14px;line-height:1.45}
  body:has(#bedroom-stage) .chapter-actions .quiet{font-size:13px}
  body:has(#description) #description{font-size:15px;line-height:1.45}
  body:has(#description) .choice small{font-size:10px;line-height:1.35}
  body:has(#description) .clue>button{min-height:44px;font-size:15px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
#choices .item[aria-pressed=true] .select-mark{font-size:0}
#choices .item[aria-pressed=true] .select-mark:after{content:'✓';font-size:20px}
