/* Emerald field guide: crisp cartridge details, spacious editorial reading. */
:root { --deep: #193e35; --accent: #b45137; --paper: #fffcef; }
.btn { transition: background .15s ease, box-shadow .15s ease; }
.btn:hover { box-shadow: 3px 3px 0 #47684755; }

/* Reader navigation and illustrated introduction. */
#quick { background: #f4f0df; }
.qbar { background: #f4f0dff5; color: var(--deep); border-bottom: 1px solid #a8b79e; backdrop-filter: blur(12px); }
.qbar-label { color: #5a725d; }
.qbar .btn { background: #193e35; color: #fff6d7; border-color: #193e35; }
.qinner { max-width: 1270px; padding-top: 36px; }
.qhero { gap: 38px; padding-bottom: 34px; align-items: center; }
.qhero-txt { flex: 1.2; }
.qhero h1 { font-size: clamp(38px, 4.5vw, 63px); margin-top: 10px; }
.qhero .qtag { font-size: clamp(22px, 2.2vw, 29px); font-weight: 800; max-width: 640px; }
.qintro { font-size: 16px; max-width: 590px; }
.reader-art { position: relative; flex: 1; min-width: 0; margin: 0; border: 2px solid #426149; box-shadow: 5px 5px 0 #c6cbb1; background: #173e35; }
.reader-art img { width: 100%; height: auto; display: block; aspect-ratio: 3/2; object-fit: cover; image-rendering: pixelated; }
.reader-art figcaption { display: flex; justify-content: space-between; padding: 10px 12px; font: 12px var(--ui); color: #fff1c9; }
.reader-art button { color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.section-index { display: flex; gap: 25px; margin: 0 0 25px; border-bottom: 1px solid #a8b79e; padding: 0 0 16px; }
.section-index button { border: 0; background: none; color: #355443; padding: 8px 0; font: 600 13px var(--ui); cursor: pointer; }
.section-index button:hover { color: #953e26; }
.proof-strip { margin-bottom: 42px; background: #e8e9d4; border-color: #aebd9c; }
.proof-strip > div:first-child { padding-left: 20px; }
.proof-strip b { font-family: var(--body); font-size: 24px; letter-spacing: -.5px; }
.work-card { border: 1px solid #8b9c7c; box-shadow: 4px 4px 0 #ced3b9; }
.work-art { border-bottom-width: 1px; height: 190px; }
.work-copy h3 { font-size: 23px; }
.work-art.has-shot img { transition: transform .25s ease; }
.work-card:hover .work-art.has-shot img { transform: scale(1.025); }
.selected-section, #selectedTitle, .lab-section, .background-grid, .contact-card { scroll-margin-top: 95px; }
.lab-section { margin-top: 62px; padding: 34px; background: #193e35; color: #fbf6e4; border: 2px solid #102c27; box-shadow: 6px 6px 0 #bdc9aa; }
.lab-section .eyebrow { color: #c8d5b1; }
.lab-section .section-heading > p { color: #cfdbbf; max-width: 320px; }
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 30px; margin-top: 28px; }
.lab-card { padding: 25px 0; border-top: 1px solid #537160; }
.lab-label { display: flex; align-items: center; gap: 12px; font: 12px var(--ui); letter-spacing: 1px; color: #cbd7b4; }
.lab-label img { width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }
.lab-label span:last-child { margin-left: auto; color: #dcc36a; }
.lab-card h3 { font: 800 24px/1.2 var(--body); margin: 13px 0 9px; color: #fbf6e4; }
.lab-question { font-weight: 800; color: #e3cc82; }
.lab-card p { font-size: 14px; line-height: 1.6; max-width: 470px; margin: 8px 0; }
.lab-card small { display: block; font-size: 11px; color: #c5d5bc; margin: 16px 0; }
.lab-links { display: flex; flex-wrap: wrap; gap: 14px 22px; font: 700 13px var(--body); }
.lab-links a { color: #fcf1c1; text-underline-offset: 5px; padding: 5px 0; }
.lab-note { color: #c5d5bc; font-size: 12px; line-height: 1.6; margin: 5px 0 0; border-top: 1px solid #537160; padding-top: 18px; }
.background-grid { margin-top: 66px; gap: 70px; }
.skill-bands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.skill-bands span { font: 12px var(--ui); padding: 6px 9px; background: #e4e8d0; border: 1px solid #b0bf9a; }
.recognition-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 22px 0 35px; }
.recognition-row a { text-decoration: none; color: var(--deep); border: 1px solid #aebd9c; padding: 18px; display: flex; align-items: center; gap: 14px; background: #f9f6e7; }
.recognition-row a:hover { border-color: #345f44; background: #e8ecd6; }
.recognition-row img { width: 36px; height: 42px; object-fit: contain; image-rendering: pixelated; }
.recognition-row b { display: block; font-size: 13px; }
.recognition-row small { display: block; font-size: 11px; margin-top: 4px; color: #526456; }
.contact-card { background: #e5b960; color: #243e32; border-color: #9c7b3d; box-shadow: inset 0 0 0 2px #f7d794; }
.contact-card .eyebrow { color: #445737; }
.contact-card .btn { background: #193e35; color: #fff5ce; }
.case-brief { background: #e9eddb; border: 1px solid #a6b995; padding: 23px; margin: 24px 0 32px; }
.case-brief > .eyebrow { margin: 0 0 16px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.brief-grid b { display: block; font: 600 12px var(--ui); letter-spacing: 1px; color: #365b44; }
.brief-grid p { font-size: 15px; line-height: 1.6; margin: 7px 0 0; }
.case-boundary { font-size: 12px; line-height: 1.6; color: #526456; border-top: 1px solid #bac7a9; padding-top: 14px; margin-bottom: 0; }
.reader { border-radius: 0; box-shadow: 5px 5px 0 #d4d8c1; }
.reader .qsec-h h1 { line-height: 1.2; }
.qfoot { color: #586e58; font-size: 12px; }
@media (max-width: 1000px) {
  .qhero { gap: 24px; }
  .qhero h1 { font-size: 45px; }
  .reader-art { flex: .8; }
  .recognition-row a { padding: 13px; }
}
@media (max-width: 720px) {
  .qbar { padding: 10px 16px; }
  .qinner { padding: 26px 20px 24px; }
  .qhero { flex-direction: column; align-items: stretch; gap: 24px; }
  .qhero h1 { font-size: 46px; }
  .qhero .qtag { font-size: 24px; }
  .reader-art { width: 100%; }
  .section-index { gap: 0; justify-content: space-between; margin-bottom: 24px; }
  .section-index button { font-size: 12px; }
  .proof-strip > div { padding: 15px 10px; }
  .proof-strip > div:first-child { padding-left: 10px; }
  .proof-strip b { font-size: 19px; }
  .lab-section { padding: 24px 20px; margin-top: 42px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card h3 { font-size: 23px; }
  .lab-card { padding: 22px 0; }
  .lab-label { font-size: 10px; }
  .background-grid { gap: 30px; }
  .recognition-row { grid-template-columns: 1fr; }
  .recognition-row a { padding: 17px; }
  .brief-grid { grid-template-columns: 1fr; gap: 18px; }
  .case-brief { padding: 18px; }
  .contact-card { padding: 24px 20px; }
  .contact-card .btn { white-space: normal; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) { .btn, .work-art.has-shot img { transition: none; } }

/* Game title: the live canvas is the scenery, not a screenshot or cover. */
#title {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 28px 24px 20px; overflow-y: auto; color: #fff7d6;
  background: linear-gradient(180deg, #0b292bdd 0%, #183c3650 29%, #15383108 47%, #15383135 64%, #0b292bdd 100%);
  box-shadow: inset 0 0 0 6px #183c35, inset 0 0 0 8px #bfd49b70;
}
.game-edition { width: 100%; display: flex; justify-content: space-between; gap: 20px; font: 11px var(--ui); letter-spacing: 2px; color: #e3ecc7; }
.game-heading { text-align: center; margin: 24px 0 0; filter: drop-shadow(0 4px 0 #18372b65); }
.game-eyebrow { font: 12px var(--ui); letter-spacing: 4px; margin: 0 0 15px; color: #fff9dc; }
.game-logo { display: flex; flex-direction: column; gap: 7px; margin: 0; font: 62px/1.1 var(--pix); letter-spacing: -2px; color: #f8d878; text-shadow: 3px 0 #173c35, -3px 0 #173c35, 0 -3px #173c35, 0 3px #173c35, 3px 3px #173c35, -3px -3px #173c35, 0 7px #477358, 0 11px #183c35; }
.game-logo span:last-child { color: #bfe6ab; }
.game-byline { font: 600 15px var(--ui); letter-spacing: 1px; margin: 23px 0 0; color: #fff9dc; text-shadow: 0 2px #173c35; }
.start-menu { width: min(390px, 100%); margin-top: auto; padding: 20px 23px 14px; text-align: center; color: #214536; background: #fff9e7f5; border: 3px solid #204b3d; box-shadow: inset 0 0 0 2px #fffdf1, inset 0 0 0 5px #b7cba3, 0 5px 0 #102e2de0, 0 10px 30px #0a2a2850; }
.game-invite { font: 600 15px/1.5 var(--body); margin: 0 0 13px; }
#startBtn { width: 100%; display: flex; justify-content: center; align-items: center; gap: 14px; font: 700 23px var(--ui); letter-spacing: 1px; min-height: 56px; background: #285d46; color: #fff3c7; border-color: #173e31; box-shadow: inset 0 2px #65906c, 0 3px #173e31; }
#startBtn:hover { background: #397253; box-shadow: inset 0 2px #8aad76, 0 3px #173e31; }
#startBtn:focus-visible { outline: 3px solid #e4ac41; outline-offset: 5px; }
.start-arrow { font-size: 14px; animation: startArrow 1.4s steps(2, end) infinite; }
.start-key { font: 10px var(--ui); padding: 4px; border: 1px solid #97b788; color: #d7e8ba; margin-left: auto; }
.game-read { background: none; border: none; border-radius: 0; color: #4c624f; font: 12px var(--body); cursor: pointer; padding: 12px 4px 3px; text-decoration: underline; text-underline-offset: 4px; }
.game-read:hover { color: #173e31; }
.game-controls { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font: 11px var(--ui); letter-spacing: 1px; text-shadow: 0 2px #193c32; }
.game-controls kbd { font: 11px var(--ui); border: 1px solid #b9d5a580; background: #163b37cc; color: #ffefbb; padding: 3px 5px; }
.touch-instruction { display: none; }
.game-footer { font: 10px var(--ui); letter-spacing: 2px; text-align: center; margin: 15px 0 0; color: #dde5c7; }
@keyframes startArrow { 50% { transform: translateX(4px); } }
@media (min-height: 850px) { .game-heading { margin-top: 44px; } .game-logo { font-size: 76px; } .start-menu { margin-bottom: 10px; } }
@media (max-width: 720px) {
  #title { padding: 22px 20px 20px; }
  .game-edition { font-size: 9px; letter-spacing: 1px; }
  .game-edition span:last-child { display: none; }
  .game-heading { margin-top: 32px; }
  .game-eyebrow { font-size: 10px; letter-spacing: 2px; }
  .game-logo { font-size: clamp(36px, 10vw, 58px); gap: 8px; }
  .game-byline { font-size: 12px; letter-spacing: 0; margin-top: 22px; }
  .start-menu { padding: 19px 18px 12px; margin-top: auto; }
  .game-invite { font-size: 14px; }
  #startBtn { font-size: 22px; gap: 10px; }
  .start-key { display: none; }
  .game-controls { font-size: 9px; gap: 12px; margin-top: 20px; }
  .game-controls kbd { font-size: 9px; padding: 2px; }
  .game-footer { font-size: 8px; letter-spacing: 1px; }
}
@media (pointer: coarse) { .game-controls > span:not(.touch-instruction) { display: none; } .touch-instruction { display: inline; } }
@media (max-height: 620px) {
  .game-heading { margin-top: 14px; }
  .game-logo { font-size: 38px; }
  .game-eyebrow { margin-bottom: 10px; }
  .game-byline { margin-top: 16px; }
  .start-menu { padding-top: 15px; margin-top: 32px; }
  .game-invite { display: none; }
  .game-controls { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .start-arrow { animation: none; } }
