:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f8ece6;
  background: #160f15;
  --muted: #dbc2ca;
  --accent: #f4aabd;
  --line: #65444f;
  --plum-panel: #2b1d29;
  --ivory: #f3e5d4;
  --rose-tint: #f2c4cd;
  --ink: #321e2b;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid #65444f6b; }
.brand { font: 2rem Georgia, serif; text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(.5rem, 3vw, 1.6rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: #fff3f6; }
.nav-shop { padding-inline: .95rem; border: 1px solid #8e6176; border-radius: 2rem; color: #ffe2eb; }
.nav-shop:hover { background: #362130; border-color: #df9db7; }
.hero { min-height: 35rem; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2rem, 6vw, 5rem); }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; margin: 0; }
h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); line-height: .94; letter-spacing: -.06em; }
.hero h1 { font-size: clamp(3.4rem, 6.1vw, 5.65rem); }
h1 em { display: block; color: var(--accent); }
h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; }
h3 { font-size: 1.65rem; }
p { color: var(--muted); line-height: 1.65; }
.eyebrow { color: var(--accent); font-size: .875rem; text-transform: uppercase; letter-spacing: .14em; }
.age-badge { display: inline-block; margin-inline-start: .45rem; padding: .12rem .45rem; border: 1px solid currentColor; border-radius: .35rem; letter-spacing: 0; white-space: nowrap; }
.demo-choice { border-left: 2px solid var(--accent); padding-inline-start: .85rem; }
.intro { max-width: 30rem; font-size: clamp(1.05rem, 2vw, 1.25rem); margin-block: 1.35rem; }
.button { display: inline-flex; align-items: center; min-height: 3rem; border: 0; border-radius: .35rem; padding: .65rem 1.3rem; background: var(--accent); color: #24111a; font: 650 1rem system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button[hidden] { display: none; }
.button:hover { background: #ffd0d9; }
.button.button-outline { background: transparent; color: #ffe2eb; border: 1px solid #ba8295; }
.button.button-outline:hover { background: #3e2435; border-color: #ffd0df; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.25rem; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .23em; }
.hero-note { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }
.hero-value { margin: .65rem 0 0; color: var(--rose-tint); font-size: .9rem; }
.price-button { gap: 1.15rem; justify-content: space-between; min-height: 4.4rem; }
.price-button strong { font: 2rem/1 Georgia, serif; }
.price-button small { display: block; font-size: .82rem; font-weight: 500; }
[hidden] { display: none !important; }
.shop-link { display: inline-block; margin: .8rem 0 .8rem 1rem; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid #ffd0d9; outline-offset: .3rem; }
.hero-visual { position: relative; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .55rem; }
.how, .demo, .release, .reviews, .mission, .secret-feature { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 7vw, 5rem); }
.secret-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4rem); }
.secret-feature > div > p:last-child { max-width: 35rem; }
.secret-example { width: min(100%, 30rem); justify-self: center; margin: 0; padding: clamp(.55rem, 2vw, .9rem); border: 1px solid #547767; border-radius: 1rem; background: #14251e; color: #d3e2d9; }
.secret-example img { display: block; width: 100%; height: auto; border-radius: .6rem; }
.secret-example figcaption { margin-top: .6rem; font-size: .85rem; text-align: center; }
.mission p { max-width: 39rem; margin-bottom: 0; }
.mission { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.25rem, 5vw, 4rem); }
.mission img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .55rem; }
.customer-reviews { display: grid; grid-auto-flow: column; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .3rem 1rem; scrollbar-color: #ba8295 #241722; }
.customer-review { scroll-snap-align: start; }
.chapter-band { background: var(--ivory); color: #321e2b; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.chapter-band .eyebrow, .chapter-grid span { color: #775268; }
.chapter-band p { color: #563e4c; }
.chapter-intro { max-width: 38rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.85rem, 2.6vw, 2rem); margin: 2rem 0 0; padding: 0; list-style: none; }
.chapter-grid li { min-width: 0; }
.chapter-grid img { display: block; width: min(100%, 10rem); aspect-ratio: 2 / 3; object-fit: cover; border-radius: .45rem; box-shadow: 0 .45rem .8rem #4c263038; margin-bottom: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .chapter-grid img.is-arriving { animation: chapter-arrival .65s ease-out; }
  @keyframes chapter-arrival {
    from { transform: translateY(9px) rotate(-4deg); opacity: .7; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
  }
}
.chapter-grid span { font-size: .875rem; font-weight: 650; }
.chapter-grid h3 { margin-top: .2rem; }
.chapter-grid p { margin: .4rem 0 0; line-height: 1.5; }
.how p, .release p { max-width: 33rem; }
.faq { border-top: 1px solid var(--line); padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.faq-panel { display: grid; grid-template-columns: minmax(5rem, .3fr) minmax(0, 1.7fr); gap: 1rem 1.5rem; max-width: 60rem; margin-inline: auto; padding: clamp(1rem, 4vw, 2.5rem); border-radius: .85rem; background: var(--ivory); color: var(--ink); }
.faq-panel h2 { font-size: 2rem; }
.faq-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .35rem .7rem; }
.faq details { padding: .5rem .65rem; border: 1px solid #c3a2aa; border-radius: .4rem; background: #fff4e8; font-size: .95rem; }
.faq summary { cursor: pointer; min-height: 1.5rem; font-weight: 650; }
.faq details p { margin: .55rem 0 0; color: #563e4c; }
.faq details ol { padding-left: 1.4rem; color: #563e4c; line-height: 1.6; }
.faq details a { text-underline-offset: .15em; }
.faq :focus-visible { outline-color: #775268; }
.demo-band { background: #231721; color: var(--ivory); }
.demo-band .eyebrow { color: var(--accent); }
.demo-band p { color: var(--muted); }
.demo-band .demo { border-top: 0; }
.demo { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.demo > div:first-child > p:not(.eyebrow) { max-width: 36rem; }
.customer-reviews { grid-auto-columns: calc((100% - 1rem) / 2); margin-top: 1.4rem; }
.customer-review { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; background: #241722; overflow-wrap: anywhere; }
.review-comment { white-space: pre-wrap; }
.review-report { font-size: .88rem; text-underline-offset: .2em; }
.review-disclosure { max-width: 40rem; }
.review-page { max-width: 39rem; padding-block: 3rem 5rem; }
.info-page { max-width: 47rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.info-page h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
.info-page h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.info-page section { margin-block: 2rem; }
.info-page section:target { scroll-margin-block: 1.5rem; }
.info-page a, .review-page a, .review-disclosure a, .purchase-info a { text-underline-offset: .2em; }
.review-page h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.game-review-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.game-review-form label { display: grid; gap: .35rem; }
.game-review-form input, .game-review-form select, .game-review-form textarea { width: 100%; padding: .7rem; border: 1px solid #8e6176; border-radius: .4rem; background: #241722; color: #f8ece6; font: inherit; }
.game-review-form textarea { resize: vertical; }
.review-rating { margin: 0; padding: 0; border: 0; }
.review-rating legend { margin-bottom: .35rem; padding: 0; }
.review-stars { display: flex; flex-wrap: wrap; gap: .25rem; }
.game-review-form .review-star {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; cursor: pointer; border-radius: .4rem;
  color: #806b56; font-size: 2rem; line-height: 1;
}
.game-review-form .review-star input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.review-star:has(input:checked),
.review-star:has(~ .review-star input:checked) { color: #f4cb74; }
.review-star:has(input:focus-visible) { outline: 2px solid #f4cb74; outline-offset: 2px; }
.field-help { color: var(--muted); font-size: .88rem; }
.game-review-form button { justify-self: start; }
.game-review-form p { margin: 0; }
.game-review-form button:disabled { opacity: .65; }
.phone { position: relative; width: min(100%, 22rem); margin-inline: auto; padding: 5px; border: 1px solid #92999c; border-radius: 2.45rem; background: linear-gradient(140deg, #a5abad, #393d40 24%, #181a1b 65%, #7d8587); box-shadow: 0 1.4rem 2.6rem #0a080bd9, inset 0 0 0 1px #222528; text-align: center; scroll-margin-block-start: 1rem; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #73797c; pointer-events: none; }
.phone::before { left: -3px; top: 20%; height: 1.8rem; box-shadow: 0 2.25rem #73797c; }
.phone::after { right: -3px; top: 28%; height: 2.4rem; }
.phone-screen { position: relative; padding: 2.35rem clamp(.65rem, 3vw, .95rem) 1.45rem; border: 4px solid #08090a; border-radius: 2.1rem; background: #19171a; }
.phone-screen::after { content: ""; position: absolute; bottom: .4rem; left: 50%; width: 30%; height: 3px; transform: translateX(-50%); border-radius: 99px; background: #c3c6c7; pointer-events: none; }
.phone-camera { position: absolute; top: .55rem; left: 50%; width: 4.65rem; height: 1.05rem; transform: translateX(-50%); border-radius: 99px; background: #050607; pointer-events: none; }
.phone-camera::after { content: ""; position: absolute; right: .38rem; top: 50%; width: .4rem; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 34% 30%, #596476, #191d25 38%, #0a0b0d 75%); }
.phone-chapter { margin: .4rem 0 1rem; color: #ffe5d7; font: 1.45rem Georgia, serif; }
.demo-progress { margin: 0 .25rem .4rem; }
.demo-progress-label { display: flex; justify-content: space-between; gap: .5rem; color: #f5dbe0; font-size: .85rem; }
.demo-update { min-height: 1.5em; margin: .35rem 0 0; color: #f3cb93; font-size: .85rem; }
.demo-shop { margin-top: .75rem; }
.demo-shop .price-button { display: flex; width: 100%; text-align: left; }
.card-art[data-level="1"] { --card-front: url("./assets/landing/sacred-v2-level-1-front-640.webp"); --card-back: url("./assets/landing/sacred-v2-level-1-back-640.webp"); }
.card-art[data-level="2"] { --card-front: url("./assets/landing/sacred-v2-level-2-front-640.webp"); --card-back: url("./assets/landing/sacred-v2-level-2-back-640.webp"); }
.card-art[data-level="3"] { --card-front: url("./assets/landing/sacred-v2-level-3-front-640.webp"); --card-back: url("./assets/landing/sacred-v2-level-3-back-640.webp"); }
.card-art[data-level="4"] { --card-front: url("./assets/landing/sacred-v2-level-4-front-640.webp"); --card-back: url("./assets/landing/sacred-v2-level-4-back-640.webp"); }
.card-art[data-level="5"] { --card-front: url("./assets/landing/sacred-v2-level-5-front-640.webp"); --card-back: url("./assets/landing/sacred-v2-level-5-back-640.webp"); }
.sample { position: relative; aspect-ratio: 2 / 3; border-radius: .75rem; color: #2d1b14; background: #f0d3b6 var(--card-front) center / 100% 100% no-repeat; }
.sample.is-face-down { background-image: var(--card-back); }
.sample.is-turning { animation: reveal-card .38s ease-out; }
.card-content { position: absolute; inset: 14% 10% 18%; overflow: auto; padding: .65rem; text-align: left; background: #f7e6cc; border: 1px solid #ad8568; border-radius: .35rem; }
.card-content h3 { font-size: clamp(1.2rem, 4vw, 1.65rem); }
.sample p { color: inherit; font-size: .95rem; line-height: 1.5; white-space: pre-line; }
.card-reveal { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; cursor: pointer; color: #ffe5d7; background: transparent; }
.card-reveal span { position: absolute; inset: 49% 0 auto; margin-inline: auto; width: fit-content; padding: .65rem 1rem; border: 1px solid #e6b889; border-radius: .4rem; background: #28151f; box-shadow: 0 .35rem 1rem #17091480; font: 650 1rem system-ui, sans-serif; }
.card-reveal:hover span { background: #442638; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.demo-actions .button { min-height: 2.75rem; border-radius: .6rem; padding: .45rem .65rem; font-size: .9rem; white-space: nowrap; }
.next-card { flex: 2 0 auto; justify-content: center; gap: .45rem; color: var(--ink); background: var(--accent); }
.next-card:hover { background: #ffd0d9; }
.skip-card { flex: 1 0 auto; min-height: 2.75rem; padding: .35rem .7rem; border: 1px solid #936579; border-radius: .6rem; background: transparent; color: #ffe2eb; font: inherit; font-size: .9rem; cursor: pointer; }
.skip-card:hover { color: #fff3f6; text-decoration: underline; text-underline-offset: .2em; }
.release { display: grid; grid-template-columns: 1fr minmax(16rem, .75fr); align-items: center; gap: 1rem 2rem; }
.purchase-info { padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid #f4aabd; border-radius: .85rem; color: #33201e; background: var(--rose-tint); }
.purchase-info p { color: #563e4c; }
.included-heading { font-size: 1.4rem; }
.included-list { margin: .65rem 0 1.2rem; padding-inline-start: 1.2rem; line-height: 1.5; }
.included-list li + li { margin-top: .55rem; }
.purchase-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.purchase-links a { text-underline-offset: .2em; }
.shop-price { font: clamp(3rem, 6vw, 5rem)/1 Georgia, serif; }
.checkout-status { display: inline-block; padding: .55rem .8rem; border: 1px solid #8e5866; border-radius: .4rem; font-weight: 650; }
@keyframes reveal-card { from { transform: perspective(55rem) rotateY(-85deg); } to { transform: perspective(55rem) rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .sample.is-turning { animation: none; } }
footer { text-align: center; border-top: 1px solid var(--line); padding-block: 1.25rem 2rem; }
footer p { margin: 0; font-size: .8rem; color: #c4aeb8; }
.footer-band { background: var(--plum-panel); padding-block: 1.6rem 3.8rem; }
.footer-band nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1rem; margin-bottom: .85rem; }
.site-footer nav a { color: var(--muted); font-size: .88rem; text-underline-offset: .2em; }
.site-footer nav a[aria-current] { color: #ffe2eb; }
.game-help { position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.game-help button { font: inherit; cursor: pointer; }
.help-toggle { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid #936579; border-radius: .7rem; background: #281b27; color: #ffe2eb; box-shadow: 0 .45rem 1.4rem #100b14a8; font-weight: 650 !important; }
.help-bubble { width: .9rem; height: .7rem; border: 1.5px solid currentColor; border-radius: .25rem .25rem .25rem 0; }
.help-panel { position: absolute; right: 0; bottom: calc(100% + .65rem); display: flex; flex-direction: column; width: min(23rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100dvh - 5rem)); overflow: hidden; border: 1px solid #755869; border-radius: 1rem; background: #231721; color: #f8ece6; box-shadow: 0 .9rem 2.8rem #100b14b3; }
.help-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; background: #332332; color: #f7ede0; }
.help-header h2 { font-size: 1.45rem; letter-spacing: 0; }
.help-faq-link { display: inline-block; margin-top: .25rem; color: var(--muted); font-size: .9rem; text-underline-offset: .2em; }
.help-header button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid #936579; border-radius: .55rem; color: inherit; background: transparent; font-size: 1.35rem; }
.help-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .85rem; }
.help-messages { display: grid; gap: .6rem; }
.help-messages p, .help-thinking { width: fit-content; max-width: 95%; margin: 0; padding: .55rem .65rem; border-radius: .65rem; overflow-wrap: anywhere; background: #352437; color: #f8ece6; line-height: 1.45; }
.help-messages .help-visitor { justify-self: end; background: #513447; color: #f8ece6; }
.help-messages a { display: block; margin-top: .25rem; text-underline-offset: .15em; }
.help-thinking { margin-top: .6rem; font-size: .85rem; }
.help-thinking span { display: inline-block; animation: help-pulse .7s ease-in-out infinite alternate; }
@keyframes help-pulse { to { opacity: .25; } }
.help-prompt { margin: 0 0 .65rem; color: #f8ece6; font-weight: 650; }
.help-back { display: block; min-height: 2.75rem; margin: 0 0 .45rem; padding: 0 .65rem; border: 1px solid #936579; border-radius: .45rem; background: transparent; color: #ffe2eb; }
.help-topics, .help-questions { display: grid; gap: .45rem; }
.help-topics button, .help-questions button { min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #936579; border-radius: .5rem; background: #352437; color: #f8ece6; font-size: .95rem; text-align: left; }
.help-back:hover, .help-topics button:hover, .help-questions button:hover { background: #4a2f47; }
.help-form { padding: .65rem .85rem .75rem; border-top: 1px solid var(--line); }
.help-form > div { display: flex; gap: .45rem; margin-top: .25rem; }
.help-form label, .help-form p { font-size: .85rem; }
.help-form p { margin: .35rem 0 0; color: #d7bec9; }
.help-form input { min-width: 0; flex: 1; padding: .45rem; border: 1px solid #936579; border-radius: .4rem; background: #fffaf4; color: #28211d; font: inherit; }
.help-form button { min-height: 2.75rem; padding: 0 .65rem; border: 0; border-radius: .4rem; background: #f4aabd; color: #24111a; }
.help-body :focus-visible, .help-form :focus-visible, .help-toggle:focus-visible { outline-color: var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .help-thinking span { animation: none; } }
@media (max-width: 45rem) {
  body:not(.past-hero) .game-help:not(:has(.help-panel:not([hidden]))) { visibility: hidden; }
  .hero, .demo, .faq-panel, .release, .mission, .secret-feature { grid-template-columns: 1fr; }
  .hero { min-height: 0; gap: 1.25rem; padding-block: 1.75rem 2.25rem; }
  .hero-photo { aspect-ratio: 16 / 9; object-position: center 36%; }
  .chapter-grid { grid-template-columns: 1fr; gap: .9rem; }
  .chapter-grid li { display: grid; grid-template-columns: 3.65rem minmax(0, 1fr); align-items: center; gap: 1rem; padding-block: .65rem; border-bottom: 1px solid #bf9fa77a; }
  .chapter-grid img { margin: 0; }
  .steps { gap: 1rem; }
}
@media (max-width: 36rem) {
  .customer-reviews { grid-auto-columns: 86%; }
  .site-header-inner { gap: .35rem .85rem; }
  nav { gap: .75rem; }
}
@media (max-width: 24rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header-inner { flex-wrap: wrap; padding-block: 1rem; }
  .site-header-inner nav { flex-wrap: wrap; }
  .site-header .brand { font-size: 1.65rem; }
  .nav-shop { padding-inline: .65rem; }
  .faq-questions { grid-template-columns: 1fr; }
}
