@charset "UTF-8";
@font-face { font-family: "Lilita One"; src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --ink: #271744; --deep: #20113e; --purple: #6b40bc; --gold: #ffd45e; --cream: #fff8df; --lilac: #ddd0f7; --content: 1160px; --gutter: 40px; font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--cream); background: var(--deep); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
p,h1,h2,h3,figure { margin: 0; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1,h2,h3,.button,.tag,.nav-books { font-family: "Lilita One", "Trebuchet MS", sans-serif; font-weight: 400; letter-spacing: .005em; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--gold); }
:focus-visible { outline: 3px solid #ffce58; outline-offset: 5px; border-radius: 4px; }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 10px 18px; color: var(--ink); background: var(--gold); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 10; background: #21123f; border-bottom: 1px solid #ffffff14; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 32px; }
.header-brand { width: 220px; flex: 0 0 220px; }
.brand-wordmark { display: block; position: relative; aspect-ratio: 2003 / 433; overflow: hidden; }
.brand-wordmark > img { position: absolute; max-width: none; width: 101.5976%; height: auto; left: -0.8487%; top: -34.6420%; }
#main-nav { display: flex; align-items: center; gap: 32px; }
#main-nav > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: #eee4ff; }
#main-nav > a:hover { color: var(--gold); }
#main-nav > .nav-books { gap: 10px; padding: 8px 20px; border: 2px solid #b99adb75; border-radius: 8px; font-size: 17px; font-weight: 400; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0 6px 12px; border: 0; background: none; font-size: 14px; }
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 75% 45%,#7543ba55 0%,transparent 55%), radial-gradient(ellipse at 0% 0%,#54358c66,transparent 65%), #2b1853; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .16; background-image: radial-gradient(#d6b7ff 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(110deg,transparent 15%,#000 90%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .18; background: url("assets/game/detective-office.png") right 43% / min(67%,840px) auto no-repeat; mask-image: linear-gradient(90deg,transparent 30%,#000 90%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; padding-top: 36px; padding-bottom: 48px; }
.hero-copy { position: relative; z-index: 2; max-width: 520px; padding-block: 4px; }
.tag { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 5px 12px; border: 1px solid #d2b5f340; border-radius: 24px; font-size: 13px; letter-spacing: .025em; }
.hero-tag { color: #f4d991; background: #1c103c55; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffda75; box-shadow: 0 0 12px #ffd45e55; }

.hero h1 { margin-top: 26px; font-size: clamp(38px,3.6vw,50px); line-height: 1.07; text-shadow: 0 3px 0 #190d35; }
.hero h1 span { color: var(--gold); }
.hero-description { max-width: 42ch; margin-top: 20px; color: #e6dbf6; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; margin-top: 26px; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.store-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 11px; min-height: 60px; min-width: 167px; padding: 8px 15px; border: 1px solid #bba1d176; border-radius: 10px; background: #171021; box-shadow: 0 4px 0 #180c2d; transition: transform 150ms ease,border-color 150ms ease; }
.store-button:hover { transform: translateY(-2px); border-color: #ffdb7f; }
.store-button > span { display: flex; flex-direction: column; }
.store-button small { font-size: 10px; color: #cbbcdc; line-height: 1.5; }
.store-button strong { font-size: 20px; font-weight: 600; color: #fff; line-height: 1.25; letter-spacing: -.025em; white-space: nowrap; }
.store-symbol { width: 26px; height: 31px; stroke: none; }
.apple-symbol { fill: #fff; }
.hero-actions:has(.hero-how-link) { margin-top: 14px; gap: 12px 24px; }
.hero-how-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: "Lilita One",sans-serif; color: #ffdc7a; font-size: 17px; }
.hero-how-link svg { width: 17px; height: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 11px 22px; border: 2px solid #201038; border-radius: 8px; font-size: 18px; line-height: 1.3; box-shadow: 0 5px 0 #1c0e36; transition: transform 150ms ease,box-shadow 150ms ease,background 150ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #1c0e36; }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 #1c0e36; }
.button-yellow { color: #442145; background: linear-gradient(#ffe98e,#ffd05c); }
.hero-book-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: #f5eaff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #c7a5ed70; }
.hero-book-link:hover { color: var(--gold); }
.release-note { margin-top: 22px; color: #c9b5e5; font-size: 11px; }
.release-note > span { margin-inline: 7px; color: #977bb9; }
.hero-scene { position: relative; min-height: 600px; display: grid; align-content: center; justify-items: center; padding-bottom: 16px; }
.scene-orbit { position: absolute; width: 500px; height: 500px; top: 48px; left: 50%; transform: translateX(-50%) rotate(-15deg); border: 1px solid #c8a9ef2b; border-radius: 50%; background: radial-gradient(ellipse,#a279dc15,transparent 70%); }
.scene-orbit::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed #cfb5ed22; }
.phone-frame { display: block; position: relative; width: 276px; padding: 9px; background: #1b1232; border: 2px solid #9f85be; border-radius: 29px; box-shadow: 10px 16px 0 #170c2a66,0 28px 50px #17082788,inset 0 0 0 2px #403251; }
.phone-frame img { width: 100%; height: auto; border-radius: 19px; background: #42366a; }
.hero-phone { z-index: 2; transform: rotate(5deg); }
.phone-camera { position: absolute; z-index: 2; width: 52px; height: 12px; top: 8px; left: 50%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #1b1232; }
.phone-display { display: flex; flex-direction: column; min-height: 540px; padding: 28px 14px 18px; color: #fff7e4; background: radial-gradient(ellipse at 50% 35%,#7d56b7,#433074 65%); border: 1px solid #aa85d55e; border-radius: 18px; overflow: hidden; }
.phone-map-label { display: flex; justify-content: space-between; gap: 8px; color: #e2cff9; font-size: 8px; font-weight: 700; letter-spacing: .07em; }
.phone-map-label > span { color: #c3a9e4; font-size: 7px; font-weight: 400; }
.phone-case-title { display: block; margin-top: 17px; font: 27px/1.15 "Lilita One",sans-serif; text-align: center; text-shadow: 0 2px 0 #281643; }
.phone-display > img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; margin: 14px 0 20px; background: transparent; filter: drop-shadow(0 8px 8px #190d3c66); }
.phone-case-copy { display: block; text-align: center; font: 21px/1.15 "Lilita One",sans-serif; }
.phone-case-copy > small { display: block; margin-top: 10px; color: #d4c2eb; font: 11px/1.7 "Segoe UI",sans-serif; }
.phone-map-action { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; padding: 12px 8px; color: #55304a; background: linear-gradient(#ffe490,#ffd266); border: 2px solid #2d194b; border-radius: 7px; box-shadow: 0 3px 0 #29143f; font: 17px/1.2 "Lilita One",sans-serif; }
.phone-home-line { display: block; width: 65px; height: 3px; margin: 18px auto 0; border-radius: 3px; background: #bea3de66; }
.suspect-photo { position: absolute; width: 138px; padding: 8px 8px 7px; background: #fff2cf; color: #452a51; box-shadow: 0 7px 0 #140a2740,0 20px 28px #190c3b55; border-radius: 3px; }
.suspect-photo::before { content: ""; position: absolute; top: -8px; left: 38%; width: 46px; height: 19px; background: #d8c0f2a6; transform: rotate(-5deg); }
.portrait-window { position: relative; height: 135px; overflow: hidden; background: #decaed; }
.suspect-photo img { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; transform: translateY(10.9375%); }
.suspect-photo span { display: block; margin-top: 5px; text-align: center; font-family: "Lilita One",sans-serif; font-size: 13px; }
.photo-one { top: 28px; left: 0; transform: rotate(-12deg); }
.photo-two { bottom: 52px; right: -5px; z-index: 3; transform: rotate(12deg); }
.photo-two .portrait-window { background: #f7d887; }
.evidence-stamp { position: absolute; z-index: 3; bottom: 52px; left: 22px; width: 100px; height: 77px; display: grid; align-content: center; justify-items: center; border: 3px solid #ffd879; outline: 1px solid #ffd879; outline-offset: 4px; color: #ffd879; font-family: "Lilita One",sans-serif; font-size: 18px; line-height: 1.05; transform: rotate(-13deg); }
.evidence-stamp strong { font: inherit; font-size: 29px; }
.spark { position: absolute; color: #ffdd79; font-size: 38px; text-shadow: 0 3px 0 #29113f; }
.spark-one { top: 26px; right: 26px; transform: rotate(12deg); }
.spark-two { top: 210px; left: 20px; font-size: 25px; }
.scene-caption { position: absolute; bottom: 0; left: 0; right: 0; color: #bca6d8; font-size: 10px; text-align: center; }
.game-section { color: var(--ink); background: var(--cream); padding: 48px 0 56px; }
.game-section :focus-visible { outline-color: #7543a8; }
.section-heading { text-align: center; max-width: 780px; margin-inline: auto; }
.eyebrow { margin-bottom: 12px; color: #7e50a1; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { font-size: clamp(32px,3.1vw,42px); line-height: 1.12; }
.section-heading > p:last-child { margin-top: 14px; color: #746478; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-script-note { max-width: 940px; margin: 20px auto 0; font-size: 13px; }
.screenshots-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: 1160px; margin: 42px auto 22px; padding-top: 30px; border-top: 1px solid #d7c8d1; }
.screenshots-heading .eyebrow { font-size: 9px; margin-bottom: 6px; color: #7e50a1; }
.screenshots-heading h3 { font-size: 30px; line-height: 1.2; }
.screenshots-heading p { color: #756173; font-size: 11px; }
.screenshots-heading p > span { margin-inline: 5px; }






.screenshot-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 22px; margin-inline: auto; }
.screenshot-card { display: block; min-width: 0; }
.screenshot-card:focus-visible { outline-offset: -5px; border-radius: 12px; }
.screenshot-window { position: relative; overflow: hidden; aspect-ratio: 1 / 1; padding: 12px; border: 3px solid #38204f; border-radius: 12px; background: #44315f; box-shadow: 0 5px 0 #dbc9c0; }
.screenshot-window > img { width: 100%; height: 100%; object-fit: contain; }

.enlarge { position: absolute; right: 10px; bottom: 10px; width: 29px; height: 29px; display: grid; place-items: center; color: #fff5da; background: #30184bd9; border-radius: 50%; font-size: 19px; }
.screenshot-label { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-family: "Lilita One",sans-serif; font-size: 19px; line-height: 1.3; }
.screenshot-label > span { padding-top: 3px; color: #997e9e; font: 11px/1.5 "Segoe UI",sans-serif; }





.books-section { overflow: hidden; color: var(--cream); background: #38215f; border-top: 8px solid #dec7a3; }
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 56px; }
.book-scene { position: relative; min-height: 400px; isolation: isolate; }
.book-scene::before { content: ""; position: absolute; width: 420px; height: 330px; border-radius: 50%; top: 50px; left: 0; z-index: -1; background: radial-gradient(ellipse,#ad7ca04f,transparent 68%); }
.book-cover { display: block; position: absolute; left: 60px; top: 20px; width: 220px; z-index: 2; transform: rotate(-8deg); border-radius: 2px 8px 8px 2px; box-shadow: -7px 10px 0 #1c0e36,0 22px 30px #1d0c3980; transition: transform 180ms ease; }
.book-cover:hover { transform: rotate(-4deg) translateY(-5px); }
.book-cover img { width: 100%; height: auto; border-radius: inherit; }
.book-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; border-right: 1px solid #fff5; background: linear-gradient(90deg,#0004,#fff2,transparent); }
.book-page-edge { position: absolute; z-index: -1; right: -8px; top: 6px; width: 15px; height: calc(100% - 8px); transform: skewY(-12deg); border-radius: 0 7px 6px 0; background: repeating-linear-gradient(0deg,#f6ecd6 0 2px,#d7cdb8 2px 3px); }
.book-interior { position: absolute; top: 90px; right: -10px; width: 280px; transform: rotate(12deg); padding: 8px; background: #fff9e9; box-shadow: 0 10px 20px #180a3266; }
.book-interior img { width: 100%; height: auto; }
.paper-note { position: absolute; bottom: 18px; left: 16px; z-index: 3; padding: 13px 21px; color: #64493b; background: #ffe094; font-family: "Lilita One",sans-serif; font-size: 19px; line-height: 1.2; transform: rotate(-5deg); box-shadow: 0 4px 0 #16092955; }
.book-preview-note { position: absolute; bottom: 0; right: 0; color: #c6afd9; font-size: 10px; }
.book-preview-note > span { margin-inline: 5px; }
.books-copy .eyebrow { color: #e2b9f4; }
.books-copy h2 { font-size: clamp(40px,3.8vw,52px); line-height: 1.08; text-shadow: 0 3px 0 #200e3e; }
.books-copy h2 > span { color: #ffdc7a; }
.books-description { max-width: 45ch; margin-top: 20px; color: #e3d6ee; font-size: 16px; line-height: 1.75; }
.book-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; color: #ead0a0; font-size: 12px; }
.book-facts > span { display: inline-flex; align-items: center; gap: 7px; }
.book-facts > span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #f0c767; }
.books-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.button-purple { color: #3a1a52; background: linear-gradient(#fff5d9,#e9d3a7); }
.button-amazon { color: #3a1a52; background: #ffdc79; }
.amazon-status { display: inline-flex; align-items: center; min-height: 44px; color: #f8d78c; font-size: 13px; }
.books-note { max-width: 50ch; margin-top: 20px; color: #bba6d2; font-size: 11px; line-height: 1.7; }
.site-footer { background: #20113e; border-top: 1px solid #bda0d51f; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand > span:first-child { color: #bba6cf; font-size: 11px; }
.riffbolt-logo { display: block; position: relative; width: 104px; height: 23px; overflow: hidden; mix-blend-mode: screen; }
.riffbolt-logo img { position: absolute; max-width: none; width: 117px; height: 58.5px; top: -19px; left: -7px; filter: url(#riffbolt-white); }
.footer-inner > p { color: #af99c7; font-size: 11px; }
.footer-inner > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #e5d3f7; font-size: 12px; }
.footer-inner > a:hover { color: var(--gold); }
.image-dialog { width: min(1040px,calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; color: var(--cream); background: #261540; border: 2px solid #9573b7; border-radius: 14px; box-shadow: 0 24px 90px #0009; }
.image-dialog::backdrop { background: #10071be6; backdrop-filter: blur(5px); }
body:has(.image-dialog[open]) { overflow: hidden; }
body:has(.release-dialog[open]) { overflow: hidden; }
.release-dialog { width: min(450px,calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 42px 30px 32px; overflow: auto; text-align: center; color: var(--cream); background: #35205b; border: 2px solid #ae8cce; border-radius: 20px; box-shadow: 0 24px 90px #0009; }
.release-dialog::backdrop { background: #10071be6; backdrop-filter: blur(5px); }
.release-dialog > .dialog-close { position: absolute; top: 6px; right: 16px; }
.release-glass { display: grid; place-items: center; width: 70px; height: 70px; margin: 8px auto 26px; border: 5px solid #ffd16a; border-radius: 50%; color: #ffe297; background: #7148af; box-shadow: 0 6px 0 #1d1037; font: 46px/1 "Lilita One",sans-serif; }
.release-dialog .eyebrow { color: #d7b5ef; font-size: 9px; }
.release-dialog h2 { font-size: 35px; line-height: 1.15; }
.release-dialog > p:last-of-type { margin-top: 15px; color: #e1d3ef; font-size: 14px; line-height: 1.7; }
.release-dialog form { margin-top: 24px; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 20px; border-bottom: 1px solid #ba97dd36; }
.dialog-kicker { color: #cdb2e7; font-size: 10px; letter-spacing: .1em; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: none; font-size: 13px; }
.dialog-close > span { font-size: 28px; line-height: 1; }
.dialog-image-area { display: flex; align-items: center; justify-content: center; padding: 16px; background: #160b29; }
.dialog-image { width: auto; max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; }
.dialog-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 14px 20px 18px; }
#image-caption { font-size: 14px; }
.dialog-caption > p:last-child { color: #b8a0ce; font-size: 10px; }
@media (max-width: 1050px) {
  :root { --gutter: 32px; }
  .hero-grid { gap: 24px; }

  .screenshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero h1 { margin-top: 22px; font-size: 42px; }
  .hero-scene { min-height: 580px; }
  .phone-frame { width: 250px; }
  .phone-display { min-height: 510px; padding-inline: 12px; }
  .suspect-photo { width: 113px; }
  .portrait-window { height: 110px; }
  .suspect-photo span { font-size: 11px; }
  .photo-one { left: -5px; top: 35px; }
  .photo-two { right: -10px; bottom: 62px; }
  .evidence-stamp { left: 0; bottom: 70px; width: 75px; height: 60px; font-size: 14px; }
  .evidence-stamp strong { font-size: 23px; }
  .books-grid { gap: 32px; }
  .book-cover { left: 18px; width: 190px; }
  .book-interior { width: 240px; right: -8px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .header-inner { min-height: 76px; gap: 20px; }
  .header-brand { flex-basis: 176px; width: 176px; }
  .menu-toggle { display: inline-flex; }
  #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 22px; background: #21123f; border-bottom: 1px solid #9576b766; box-shadow: 0 20px 25px #11071e44; }
  #main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #main-nav > a { min-height: 48px; padding-block: 12px; font-size: 15px; }
  #main-nav > .nav-books { margin-top: 8px; padding-inline: 16px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 16px; padding-top: 32px; padding-bottom: 30px; }
  .hero-copy { max-width: 530px; margin-inline: auto; text-align: center; }

  .hero h1 { font-size: clamp(37px,9.8vw,48px); line-height: 1.1; }
  .hero-description { max-width: 40ch; margin: 18px auto 0; font-size: 15px; }
  .hero-actions { justify-content: center; flex-direction: column; gap: 12px; margin-top: 22px; }
  .store-links { justify-content: center; flex-wrap: nowrap; gap: 10px; margin-top: 23px; }
  .store-button { min-width: 0; min-height: 58px; padding-inline: 12px; gap: 9px; }
  .store-button strong { font-size: 18px; }
  .store-button small { font-size: 9px; }
  .store-symbol { width: 23px; height: 29px; }
  .hero-actions:has(.hero-how-link) { margin-top: 12px; }
  .hero-book-link { display: none; }
  .hero::after { opacity: .12; background-size: 100% auto; background-position: center; }
  .button { min-height: 50px; padding-inline: 21px; font-size: 18px; }
  .release-note { margin-top: 14px; font-size: 10px; }
  .hero-scene { min-height: 480px; width: min(440px,100%); margin-inline: auto; margin-top: 8px; }
  .phone-frame { width: 226px; padding: 7px; border-radius: 25px; }
  .phone-frame img { border-radius: 17px; }
  .phone-camera { width: 46px; height: 10px; top: 7px; }
  .phone-display { min-height: 450px; padding: 23px 10px 13px; }
  .phone-case-title { margin-top: 15px; font-size: 23px; }
  .phone-map-label { font-size: 7px; }
  .phone-map-label > span { font-size: 6px; }
  .phone-display > img { margin-block: 12px 15px; }
  .phone-case-copy { font-size: 18px; }
  .phone-case-copy > small { margin-top: 7px; font-size: 10px; }
  .phone-map-action { margin-top: 14px; padding: 10px 5px; font-size: 15px; }
  .phone-home-line { margin-top: 14px; }
  .photo-one { top: 35px; left: 0; }
  .photo-two { right: -2px; bottom: 45px; width: 88px; }
  .suspect-photo { width: 103px; padding: 6px; }
  .portrait-window { height: 106px; }
  .suspect-photo span { font-size: 10px; }
  .evidence-stamp { bottom: 35px; left: 8px; width: 70px; height: 58px; }
  .scene-orbit { width: 360px; height: 360px; top: 55px; }
  .spark-one { top: 18px; right: 10px; font-size: 28px; }
  .spark-two { top: 195px; left: 0; font-size: 22px; }
  .scene-caption { bottom: -4px; font-size: 9px; }
  .game-section { padding: 36px 0 40px; }
  .eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: .08em; }
  .section-heading h2 { font-size: 33px; }
  .section-heading > p:last-child { font-size: 14px; }
  .screenshots-heading { margin-top: 26px; padding-top: 22px; }
  .screenshots-heading h3 { font-size: 24px; }
  .screenshots-heading p { font-size: 10px; }




  .screenshot-grid { gap: 24px 14px; }
  .screenshot-card { min-width: 0; }
  .screenshot-window { height: auto; padding: 7px; border-width: 2px; border-radius: 9px; }
  .enlarge { width: 23px; height: 23px; right: 5px; bottom: 6px; font-size: 16px; }
  .screenshot-label { display: block; margin-top: 12px; font-size: 17px; line-height: 1.25; }
  .screenshot-label > span { display: block; padding-top: 3px; font-size: 10px; }

  .books-grid { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 36px 40px; }
  .book-scene { min-height: 355px; width: min(390px,100%); margin-inline: auto; }
  .book-cover { left: 30px; top: 8px; width: 175px; }
  .book-interior { top: 75px; right: -12px; width: 225px; }
  .paper-note { bottom: 22px; left: 12px; padding: 10px 17px; font-size: 17px; }
  .book-preview-note { right: 0; font-size: 9px; }
  .books-copy { max-width: 540px; margin-inline: auto; }
  .books-copy h2 { font-size: 42px; }
  .books-description { font-size: 15px; margin-top: 18px; }
  .books-actions { gap: 18px; margin-top: 22px; }
  .books-note { font-size: 11px; }
  .footer-inner { flex-wrap: wrap; gap: 16px 24px; padding-block: 24px; }
  .footer-inner > p { order: 3; flex-basis: 100%; font-size: 10px; }
  .footer-inner > a { font-size: 11px; margin-left: auto; }
  .footer-brand { gap: 10px; }
  .footer-brand > span:first-child { font-size: 10px; }
  .riffbolt-logo { width: 91px; height: 20px; }
  .riffbolt-logo img { width: 103px; height: 51.5px; left: -6px; top: -17px; }
  .dialog-toolbar { padding-inline: 14px; }
  .dialog-kicker { font-size: 8px; }
  .dialog-image-area { padding: 10px; }
  .dialog-caption { padding: 12px 14px; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }

  .store-button { padding-inline: 9px; gap: 7px; }
  .store-button strong { font-size: 17px; }
  .store-button small { font-size: 8px; }
  .store-symbol { width: 21px; }
  .hero-scene { min-height: 470px; }
  .phone-frame { width: 208px; }
  .phone-display { min-height: 435px; }
  .phone-case-copy { font-size: 17px; }
  .suspect-photo { width: 86px; }
  .portrait-window { height: 90px; }
  .suspect-photo span { font-size: 9px; }
  .photo-one { top: 30px; left: -2px; }
  .photo-two { right: -3px; bottom: 42px; }
  .evidence-stamp { left: 0; bottom: 32px; width: 57px; height: 48px; font-size: 12px; }
  .evidence-stamp strong { font-size: 20px; }
  .book-cover { left: 12px; width: 161px; }
  .book-interior { width: 194px; right: -10px; }
  .book-facts { font-size: 11px; }
  .footer-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Isolated How to Play component; all selectors are scoped to md-* classes. */
.md-learn { --md-ink:#3b2847; --md-purple:#674198; --md-paper:#fff9e9; display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1fr); gap:34px; max-width:940px; margin:28px auto 0; padding:26px 30px; color:var(--md-ink); background:#fffdf4; border:1px solid #dcccd5; border-radius:20px; box-shadow:0 7px 0 #eadfc8; text-align:left; }
.md-learn [hidden] { display:none !important; }
.md-learn button { font:inherit; color:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.md-learn button:focus-visible { outline:3px solid #6d439d; outline-offset:4px; }
.md-case { align-self:center; min-width:0; max-width:350px; padding:14px 14px 12px; background:#f1e6d0; border:1px solid #d9c9ac; border-radius:12px; box-shadow:0 3px 0 #e3d5bb; }
.md-case-heading { display:flex; justify-content:space-between; gap:10px; margin-bottom:11px; color:#806849; font-size:9px; font-weight:750; letter-spacing:.08em; line-height:1.3; }
.md-case-heading span:last-child { font-size:9px; font-weight:400; letter-spacing:0; text-align:right; }
.md-house { position:relative; width:100%; aspect-ratio:1; isolation:isolate; border-radius:3px; box-shadow:0 4px 7px #6f4c4a25; }
.md-house-art { position:absolute; inset:0; display:block; width:100%; height:100%; fill:initial; stroke:none; stroke-width:initial; stroke-linecap:initial; stroke-linejoin:initial; }
.md-cell-controls { position:absolute; inset:0; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); z-index:3; }
.md-cell-controls button { min-width:0; padding:0; border:0; border-radius:5px; background:transparent; }
.md-cell-controls button[aria-disabled="true"] { cursor:not-allowed; }
.md-learn[data-md-stage="place"][data-md-selected="true"] .md-cell-controls button:not([aria-disabled="true"]):hover { box-shadow:inset 0 0 0 3px #ffed9e; background:#fff0ac35; }
.md-cell-controls button:focus-visible { outline:3px solid #70449e; outline-offset:-5px; background:#fff7dd55; }
.md-learn[data-md-stage="place"] .md-house::after { content:""; position:absolute; z-index:1; inset:0; pointer-events:none; background:linear-gradient(90deg,#48325326 0 33.333%,transparent 33.333%),linear-gradient(#48325326 0 33.333%,transparent 33.333%); }
.md-token { position:absolute; z-index:4; width:24%; padding:4px 4px 2px; background:#fffaf0; color:#51394d; border:1px solid #9c7a70; border-radius:3px; box-shadow:0 3px 0 #6c494744,0 3px 7px #67445122; pointer-events:none; }
.md-token strong { display:block; text-align:center; font:400 12px/1.4 "Lilita One","Trebuchet MS",sans-serif; }
.md-token-clara { left:4.6%; top:3.2%; transform:rotate(-5deg); }
.md-token-dorian { left:37.9%; top:35.2%; transform:rotate(3deg); }
.md-token-beryl { left:71.2%; top:68.4%; transform:rotate(-3deg); }
.md-portrait { position:relative; height:0; padding-top:83%; overflow:hidden; background:#e2c8e7; }
.md-portrait img,.md-choice-portrait img,.md-clue-face img { position:absolute; bottom:0; left:0; display:block; width:100%; height:auto; transform:translateY(10.9375%); }
.md-token-beryl .md-portrait { background:#f5d99b; }
.md-victim-picture { position:relative; padding:3px 0 14px; background:#ddd4e3; }
.md-victim-picture svg { display:block; width:100%; height:auto; fill:#a692b5; stroke:#776087; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.md-victim-picture .md-victim-cross { fill:none; stroke:#fff7e5; stroke-width:4; }
.md-victim-picture > span { position:absolute; left:0; right:0; bottom:2px; color:#6a526f; font-size:7px; font-weight:800; letter-spacing:.12em; text-align:center; }
.md-killer-label { position:absolute; left:-5px; right:-5px; top:-7px; padding:1px 3px; color:#fff5e0; background:#a34a55; border:1px solid #733340; border-radius:3px; font-size:8px; font-weight:800; letter-spacing:.08em; text-align:center; transform:rotate(-6deg); }
.md-learn[data-md-stage="reveal"] .md-token-dorian { outline:3px solid #b95b60; outline-offset:3px; }
.md-room-label { position:absolute; z-index:5; padding:1px 7px; background:#fff7dd; border:1px solid #ad9276; border-radius:3px; color:#73563e; box-shadow:0 1px 2px #67524b22; font:400 10px/1.6 "Lilita One","Trebuchet MS",sans-serif; pointer-events:none; }
.md-room-study { left:26%; top:63.4%; }
.md-room-gallery { right:3%; top:29%; }
.md-room-kitchen { left:23%; bottom:3%; }
.md-board-rule { margin:12px 0 0; color:#80674f; font-size:10px; line-height:1.5; text-align:center; }
.md-board-rule strong { color:#674b40; font-weight:650; }
.md-guide { align-self:center; min-width:0; }
.md-step-nav { display:flex; gap:6px; margin-bottom:21px; }
.md-step-nav button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:6px 10px; color:#8c788d; background:transparent; border:1px solid #decedc; border-radius:7px; font-size:12px; font-weight:650; }
.md-step-nav button > span { display:grid; width:18px; height:18px; place-items:center; border-radius:50%; background:#eee4ef; font-size:10px; }
.md-step-nav button[aria-pressed="true"] { color:#fff7e8; background:#674198; border-color:#674198; }
.md-step-nav button[aria-pressed="true"] > span { color:#68404c; background:#ffdd83; }
.md-step-nav button:disabled { opacity:.45; cursor:not-allowed; }
.md-kicker { margin:0 0 9px; color:#967541; font-size:9px; font-weight:750; letter-spacing:.12em; }
.md-guide h3 { margin:0; color:#513163; font:400 clamp(26px,2.9vw,34px)/1.1 "Lilita One","Trebuchet MS",sans-serif; }
.md-guide h3:focus { outline:none; }
.md-guide-copy { margin:14px 0 0; max-width:39ch; color:#816d7e; font-size:13px; line-height:1.65; }
.md-guide-copy strong { color:#63456f; }
.md-clue { position:relative; max-width:300px; margin:19px 3px 0; padding:14px 16px 11px; border:1px solid #e0cda7; border-radius:3px; background:#fff1ca; box-shadow:2px 3px 0 #e8d9bc; transform:rotate(-1deg); }
.md-clue > p { margin:0; color:#6e4e43; font:400 19px/1.3 "Lilita One","Trebuchet MS",sans-serif; }
.md-clue > div { display:flex; align-items:center; gap:8px; margin-top:8px; color:#8a6b55; font-size:10px; }
.md-clue-pin { position:absolute; top:-7px; left:45%; width:30px; height:14px; transform:rotate(7deg); background:#baa1cc9c; }
.md-clue-face { position:relative; width:25px; height:27px; overflow:hidden; border-radius:50%; background:#dfc4d5; }
.md-clue-face img { width:100%; }
.md-action { display:inline-flex; align-items:center; justify-content:space-between; gap:24px; min-height:44px; margin-top:18px; padding:9px 16px; border:1px solid #b08746; border-radius:7px; background:linear-gradient(#ffe69a,#ffd273); box-shadow:0 3px 0 #d7b477; font:400 15px/1.3 "Lilita One","Trebuchet MS",sans-serif !important; color:#624134 !important; }
.md-action:hover { background:#ffe69a; }
.md-cast-choice { display:flex; align-items:center; gap:12px; width:100%; max-width:290px; min-height:78px; margin-top:18px; padding:8px 12px 8px 8px; border:2px solid #cbb6d8; border-radius:10px; text-align:left; background:#f7edf8; }
.md-choice-portrait { position:relative; flex:0 0 52px; height:61px; overflow:hidden; border-radius:5px; background:#dec3e3; }
.md-cast-choice > span:nth-child(2) { flex:1; }
.md-cast-choice strong { display:block; font:400 21px/1.2 "Lilita One","Trebuchet MS",sans-serif; color:#573867; }
.md-cast-choice small { display:block; margin-top:4px; color:#8c709b; font-size:11px; }
.md-choice-check { display:grid; width:24px; height:24px; place-items:center; color:transparent; border:1px solid #cfb9da; border-radius:50%; }
.md-cast-choice[aria-pressed="true"] { border-color:#8054a3; background:#eee1f5; box-shadow:0 0 0 2px #bda2d32b; }
.md-cast-choice[aria-pressed="true"] .md-choice-check { color:#fff8df; background:#8054a3; border-color:#8054a3; }
.md-cast-choice:disabled { cursor:default; }
.md-feedback { min-height:44px; max-width:39ch; margin:12px 0 0; color:#8a6f56; font-size:12px; line-height:1.5; }
.md-feedback[data-md-tone="success"] { color:#476c50; }
.md-solved-note { display:flex; align-items:center; gap:8px; margin:17px 0 0; color:#688564; font-size:12px; }
.md-solved-note > span { display:grid; flex:0 0 23px; height:23px; place-items:center; background:#e6edda; border-radius:50%; }
.md-replay { display:inline-flex; align-items:center; gap:20px; min-height:44px; margin-top:20px; padding:7px 0; color:#7b538d !important; background:none; border:0; text-decoration:underline; text-underline-offset:5px; font-size:13px !important; }
.md-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media (max-width:760px) { .md-learn { grid-template-columns:minmax(0,1fr); gap:25px; padding:20px; max-width:460px; } .md-case { width:100%; max-width:350px; margin-inline:auto; } .md-guide { width:100%; max-width:350px; margin-inline:auto; } .md-guide h3 { font-size:29px; } .md-step-nav { margin-bottom:17px; } .md-step-nav button { flex:1; } .md-guide-copy { max-width:none; } }
@media (max-width:370px) { .md-learn { gap:20px; padding:13px; border-radius:14px; } .md-case { padding:10px 10px 11px; } .md-case-heading { font-size:7px; gap:7px; } .md-case-heading span:last-child { font-size:7px; } .md-token { padding:3px 3px 1px; } .md-token strong { font-size:10px; } .md-victim-picture > span { font-size:6px; } .md-room-label { padding-inline:4px; font-size:9px; } .md-board-rule { font-size:9px; } .md-guide h3 { font-size:27px; } .md-guide-copy { font-size:12px; } .md-clue > p { font-size:18px; } .md-step-nav button { padding-inline:7px; font-size:11px; } }
