.top { display: contents; }
.eyebrow > span.caps { width: auto; height: auto; border-radius: 0; background: none; }
.site-header nav .auth { display: flex; }
.private-badge { cursor: pointer; text-decoration: none; font-weight: 600; }
button.private-badge { font: inherit; font-size: 10px; font-weight: 600; }
.private-badge:hover { background: var(--mint); }

footer .foot-note { margin: 0; }
@media (max-width: 650px) { footer .foot-note { margin-top: 12px; } }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: max-content; max-width: min(560px, calc(100% - 32px)); transform: translateX(-50%);
    padding: 14px 20px; font-size: 12px; line-height: 1.6; color: #fffef6; background: var(--ink); border-radius: 12px; box-shadow: 0 12px 40px #122d3340; transition: opacity .4s; }
.toast.gone { opacity: 0; pointer-events: none; }

/* ---- shared panels (book page, library, sign-in, checkout, error) ---- */
.book-detail-panel.wide { max-width: 860px; padding: 40px; }
/* Full book pages use the same content width as the surrounding storefront. */
.standalone-book > .book-detail-panel.wide { width: 100%; max-width: none; }
.standalone-book .prose { max-width: none; }
.book-detail-panel.narrow { max-width: 560px; }
.panel-title { font-family: Georgia, serif; font-size: 34px; line-height: 1.15; letter-spacing: -.8px; font-weight: 400; margin: 0 0 14px; }
.back-row { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.small-note { font-size: 10px; line-height: 1.7; color: #788474; margin: 12px 0 0; }
.kicker { font-size: 9px; letter-spacing: 1.4px; font-weight: 650; color: #7d8875; }
.primary-button { text-decoration: none; cursor: pointer; }
.primary-button.ghost { background: transparent; color: var(--ink); }
.primary-button.ghost:hover { background: var(--mint); }

/* covers in the dialog and on the book page: the column is as wide as min-height x aspect ratio, so a three-line
   title never clips the series line and the cover never overruns its column */
.dialog-top, .book-detail-panel .dialog-top { grid-template-columns: 160px 1fr; }
.dialog-top h1 { font: 400 28px/1.16 Georgia, serif; letter-spacing: -.6px; margin: 0 0 16px; }
.dialog-top .cover { min-height: 218px; }
.book-detail-panel .dialog-top .cover-title { font-size: 15px; }
@media (max-width: 650px) {
    .dialog-top, .book-detail-panel .dialog-top { grid-template-columns: 124px 1fr; gap: 16px; }
    .dialog-top .cover { min-height: 0; width: 100%; }
    .dialog-top .cover-title { font-size: 11px; line-height: 1.2; }
    .dialog-top .cover-brand { font-size: 11px; }
    .dialog-top .cover-symbol { margin: 8px auto 6px; min-height: 0; }
    .dialog-top .cover-symbol svg { width: 28px; height: 28px; }
    .dialog-top .cover-footer { display: none; }
}

/* ---- price and buying ---- */
.buy-box { display: grid; gap: 14px; margin: 24px 0 4px; padding: 20px; background: #f4f6ef; border: 1px solid var(--line); border-radius: 14px; }
.buy-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buy-price strong { font-family: Georgia, serif; font-size: 34px; letter-spacing: -1px; font-weight: 400; }
.buy-price small { font-size: 10px; color: var(--muted); }
.buy-box .primary-button { justify-content: space-between; width: 100%; }
.buy-form { display: grid; gap: 10px; }
.buy-form label em { font-style: normal; font-weight: 400; color: #8b988b; }
.text-input { width: 100%; min-height: 44px; border-radius: 8px; border: 1px solid #d8dfd3; background: #fafbf6; padding: 9px 12px; color: var(--ink); font-size: 12px; }
.text-input:focus-visible { outline: 3px solid #ac633b; outline-offset: 3px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: 10px; color: #788474; }
.secure svg { width: 13px; height: 13px; }
.soon { margin: 24px 0 0; padding: 12px 14px; font-size: 12px; color: var(--orange); background: #f6e9e3; border-radius: 8px; }

/* ---- the book's own page ---- */
.prose { font-size: 13px; line-height: 1.85; color: #5b6c53; margin: 12px 0 0; max-width: 68ch; }
.prose strong { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { font-size: 10px; font-weight: 600; border: 1px solid #ccd8c5; color: #50634a; border-radius: 5px; padding: 4px 9px; background: #f7faf3; }
.contents { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.contents li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: #52634a; }
.contents .no { font-family: Georgia, serif; font-size: 13px; color: var(--orange); }
.project-box { margin-top: 26px; padding: 22px 24px; background: #e9efe5; border: 1px solid #d6e0d0; border-radius: 14px; }
.project-box .dialog-subtitle { margin-top: 0; }
.project-box p { margin: 10px 0 0; font-size: 12px; line-height: 1.85; color: #4f654b; }
.included-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.included-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 12px; line-height: 1.6; }
.included-list svg { width: 15px; height: 15px; margin-top: 3px; color: #617f54; }
.included-list strong { display: block; font-weight: 600; }
.included-list small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.6; color: #788173; }
.preview-box { margin-top: 26px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf6; }
.preview-box summary { font-size: 12px; font-weight: 650; padding: 4px 0; }
.preview-box iframe { width: 100%; height: 560px; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dialog-subtitle { font-size: 13px; }

/* ---- library ---- */
.library { display: grid; gap: 16px; margin-top: 26px; }
.library-item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 14px; background: #fafbf6; border: 1px solid var(--line); border-radius: 14px; }
.library-item .shelf-art { padding: 18px 14px; }
.library-item .cover { width: 100px; min-height: 140px; }
.library-item .cover-brand { font-size: 11px; } .library-item .cover-title { font-size: 11px; } .library-item .cover-symbol svg { width: 26px; height: 26px; }
.library-body small { display: block; font-size: 9px; letter-spacing: 1.2px; font-weight: 650; color: #7d8875; margin-bottom: 7px; }
.library-body .shelf-title a:hover { text-decoration: underline; }
.file-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.file-buttons .primary-button { gap: 8px; }
.empty { margin-top: 22px; }

/* ---- sign-in, checkout ---- */
.dev-box { margin-top: 30px; padding: 20px; display: grid; gap: 8px; border: 1px dashed #cbd5c3; border-radius: 14px; }
.dev-box .dialog-subtitle { margin: 0 0 6px; }
.order-line { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin: 22px 0; }
.order-line .shelf-art { padding: 18px 14px; }
.order-line .cover { width: 100px; min-height: 140px; }
.order-line .cover-brand { font-size: 11px; } .order-line .cover-title { font-size: 11px; } .order-line .cover-symbol svg { width: 26px; height: 26px; }
.order-price { font-family: Georgia, serif; font-size: 28px; margin: 8px 0 0; }

@media (max-width: 850px) {
    .book-detail-panel.wide { padding: 28px; }
}
@media (max-width: 650px) {
    .book-detail-panel.wide { padding: 22px; }
    .panel-title { font-size: 28px; }
    .contents { grid-template-columns: 1fr; }
    .preview-box iframe { height: 420px; }
    .library-item, .order-line { grid-template-columns: 1fr; }
    .library-item .shelf-art, .order-line .shelf-art { justify-self: start; }
    .buy-price strong { font-size: 30px; }
}

/* Compact storefront and shared catalogue layout. */
.admin-page { padding-block: 24px; }
.admin-upload { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px; margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: #edf1e9; }
.admin-upload > div { flex: 1; min-width: 0; }
.admin-upload label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.admin-upload input { max-width: 100%; font-size: 12px; }
.admin-files { display: grid; gap: 12px; }
.admin-file, .admin-uploaded { padding: 16px; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; background: #fafbf6; }
.admin-file-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-file h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.admin-key, .admin-yaml { display: flex; align-items: start; gap: 10px; margin-top: 12px; }
.admin-key input, .admin-yaml textarea { width: 100%; min-width: 0; border: 1px solid #ccd8c5; border-radius: 5px; padding: 10px; background: #fff; color: var(--ink); font: 12px/1.6 ui-monospace, monospace; }
.admin-key button, .admin-yaml button { flex-shrink: 0; }
.scan-status { font-size: 10px; padding: 5px 8px; border-radius: 4px; }
.scan-clean { background: #ddebd9; color: #275630; }
.scan-pending { background: #f5ead4; color: #77521a; }
@media (max-width: 650px) { .admin-key, .admin-yaml { flex-direction: column; } }
.wrap { width: min(1280px, calc(100% - 48px)); }
.site-header { height: 106px; }
.brand { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 700; font-size: 40px; line-height: 1.1; gap: 14px; }
.brand-memoon { display: block; width: 56px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.brand small { font-size: 8px; letter-spacing: 1.5px; }
.category-nav { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.category-tab { display: flex; align-items: center; gap: 8px; padding: 12px 0; white-space: nowrap; font-size: 12px; border-bottom: 2px solid transparent; }
.category-tab svg { width: 16px; height: 16px; }
.category-tab.is-active { border-color: var(--orange); font-weight: 700; }
.category-tab small { font-size: 9px; padding: 3px 6px; border-radius: 4px; background: #e9eee3; }
.category-tab.is-unavailable { color: var(--muted); }
.store-intro, .hero { display: block; min-height: 0; padding-block: 26px 20px; }
.store-intro h1, .hero h1 { font: 400 32px/1.2 Georgia, serif; letter-spacing: -.8px; margin: 0 0 10px; }
.hero h1 br { display: none; }
.hero h1 em { margin-left: 6px; }
.store-intro .eyebrow, .hero .eyebrow { font-size: 9px; margin-bottom: 10px; }
.store-intro .hero-description, .hero-description { max-width: 90ch; font-size: 13px; line-height: 1.65; margin: 0; }
.store-intro-toggle { margin: 12px 0; }
.store-intro-toggle > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; list-style: none; }
.store-intro-toggle > summary::-webkit-details-marker { display: none; }
.store-intro-toggle > summary:hover { background: #edf1e9; }
.intro-toggle-icon { font-size: 18px; font-weight: 400; transition: transform .15s; }
.store-intro-toggle[open] .intro-toggle-icon { transform: rotate(45deg); }
.intro-toggle-body { padding: 10px 12px; }
.store-intro-toggle > .subject-finder { margin: 0 0 12px; }
.hero-meta { margin-top: 12px; }
.store-note, .hero-art { display: none; }
.subject-finder { display: flex; align-items: center; gap: 24px; padding: 16px 20px; margin-bottom: 14px; border: 1px solid #d5dfce; border-radius: 8px; background: #edf1e9; }
.finder-label { min-width: 200px; }
.subject-finder h2 { font: 600 15px/1.3 Inter, system-ui, sans-serif; margin: 0; }
.subject-result { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.subject-form { flex: 1; display: flex; align-items: end; gap: 12px; }
.subject-form > div { flex: 1; }
.subject-form label { display: block; font-size: 10px; font-weight: 600; margin-bottom: 4px; }
.subject-form select { width: 100%; min-height: 38px; padding-block: 8px; }
.subject-form .primary-button { min-height: 38px; padding: 9px 14px; }
.subject-form .subtle-link { padding-block: 12px; }
.collection-jumps { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.collection-jumps a { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font-size: 11px; line-height: 1.4; }
.collection-jumps a:hover, .subject-tags a:hover { background: var(--mint); }
.store-collection { padding-block: 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.collection-intro { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 14px; }
.collection-intro > div { min-width: 0; }
.collection-intro h2 { font: 400 23px/1.25 Georgia, serif; letter-spacing: -.4px; margin: 0; }
.collection-intro .primary-button { flex-shrink: 0; padding: 8px 12px; min-height: 36px; }
.series-label { font-size: 11px; color: var(--orange); margin: 5px 0 0; }
.subject-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.subject-tags a { font-size: 10px; padding: 3px 7px; border: 1px solid #ccd8c5; border-radius: 4px; }
.collection-intro .section-description { font-size: 12px; line-height: 1.6; margin: 8px 0 0; max-width: 110ch; }
.collection-status { border-radius: 5px; background: #e9eee3; padding: 7px 10px; font-size: 11px; }
.collection-placeholder { padding: 18px; border: 1px dashed #cbd5c3; border-radius: 8px; }
.collection-placeholder h3 { font-size: 15px; margin: 0 0 6px; }
.collection-placeholder p { font-size: 12px; margin: 0; }
.book-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shelf-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 14px; padding: 12px; border: 1px solid #dce1d6; border-radius: 8px; background: #fafbf6; transition: border-color .15s, box-shadow .15s; }
.shelf-card:hover { transform: none; border-color: #a7b69c; box-shadow: 0 3px 12px #173c3b0d; }
.shelf-card .shelf-art { grid-row: 1 / 3; padding: 0; background: transparent; border: 0; border-radius: 0; display: flex; align-items: start; }
.shelf-card .shelf-info { padding: 0; display: block; min-width: 0; }
.shelf-card .shelf-info small { display: block; font-size: 9px; line-height: 1.5; margin: 0 0 6px; letter-spacing: .3px; }
.shelf-card .shelf-title { display: block; font: 600 14px/1.4 Inter, system-ui, sans-serif; letter-spacing: 0; margin: 0 0 7px; }
.shelf-card .shelf-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.6; }
.shelf-card .shelf-link { grid-column: 2; font-size: 11px; margin: 10px 0 0; gap: 4px; flex-wrap: wrap; color: var(--ink); }
.book-shelf:has(> .shelf-card:only-child) { grid-template-columns: 1fr; }
.book-shelf > .shelf-card:only-child { grid-template-columns: 96px minmax(0, 1fr); }
.cover.image-cover { display: block; padding: 0 !important; width: 100%; min-height: 0 !important; height: auto; aspect-ratio: 2 / 3; border: 0; border-radius: 3px; background: transparent; box-shadow: 0 2px 6px #122d331a; overflow: hidden; transform: none; }
.cover.image-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; background: #f0f1ea; }
.shelf-card .cover.image-cover { width: 96px; }
.finder-section { margin-top: 12px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: 25px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.path-section { margin-top: 20px; padding: 22px; }
.collection-section { margin-top: 24px; }
.parent-note { margin-top: 24px; padding: 20px 24px; }
footer { margin-top: 24px; padding-top: 20px; padding-bottom: 24px; }
.standalone-book { padding-top: 24px; }
@media (max-width: 1050px) { .book-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
 .wrap { width: calc(100% - 28px); }
 .site-header { height: auto; min-height: 70px; flex-wrap: wrap; gap: 12px; padding-block: 14px; }
 .site-header nav { gap: 14px; flex-wrap: wrap; }
 .site-header nav > a { display: block; font-size: 11px; }
 .brand { font-size: clamp(28px, 8vw, 34px); gap: 10px; }
 .brand-memoon { width: 44px; height: 66px; }
 .category-nav { gap: 18px; }
 .category-tab { font-size: 11px; }
 .category-tab small { font-size: 8px; }
 .store-intro, .hero { padding-block: 20px 16px; }
 .store-intro h1, .hero h1 { font-size: 27px; }
 .subject-finder { display: block; padding: 14px; }
 .subject-form { flex-wrap: wrap; gap: 10px; margin-top: 12px; }
 .subject-form > div { min-width: 100%; }
 .book-shelf { grid-template-columns: 1fr; }
 .collection-intro { gap: 12px; flex-wrap: wrap; }
 .collection-intro h2 { font-size: 21px; }
 .shelf-card .shelf-title { font-size: 14px; }
}
/* Single-book collections keep their introduction and book side by side. */
@media (min-width: 851px) {
 .store-collection:has(.book-shelf > .shelf-card:only-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
 .store-collection:has(.book-shelf > .shelf-card:only-child) .collection-intro { flex-wrap: wrap; margin-bottom: 0; gap: 10px; }
 .store-collection:has(.book-shelf > .shelf-card:only-child) .collection-intro h2 { font-size: 22px; }
}
/* A bound cover, shaded spine and a narrow stack of pages. */
.cover.image-cover {
 position: relative;
 overflow: visible;
 border-radius: 2px 5px 5px 2px;
 transform: perspective(700px) rotateY(-9deg) rotateZ(-1deg);
 transform-origin: left center;
 box-shadow: 2px 2px 0 #bcb9ae, 5px 5px 0 #e3dfd3, 7px 9px 12px #173c3b26;
 transition: transform .2s ease, box-shadow .2s ease;
}
.cover.image-cover img { position: relative; z-index: 1; border-radius: inherit; }
.cover.image-cover::before {
 content: '';
 position: absolute;
 inset: 0;
 z-index: 2;
 border-radius: inherit;
 background: linear-gradient(90deg, #0006 0, #0002 3%, #fff4 5%, #0003 7%, transparent 11%, transparent 94%, #0002 100%);
 box-shadow: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #00000030;
 pointer-events: none;
}
.cover.image-cover::after {
 content: '';
 display: block;
 position: absolute;
 left: auto;
 right: -5px;
 top: 3px;
 width: 5px;
 height: calc(100% - 3px);
 border: 1px solid #c9c4b6;
 border-left: 0;
 border-radius: 0 2px 3px 0;
 background: repeating-linear-gradient(to bottom, #f5f2e9 0 2px, #d9d4c7 2px 3px);
 opacity: 1;
 z-index: 0;
 pointer-events: none;
}
@media (hover: hover) {
 a:hover .cover.image-cover, a:focus-visible .cover.image-cover {
  transform: perspective(700px) rotateY(-5deg) rotateZ(0) translateY(-3px);
  box-shadow: 2px 2px 0 #bcb9ae, 5px 5px 0 #e3dfd3, 8px 12px 16px #173c3b30;
 }
}
@media (prefers-reduced-motion: reduce) {
 .cover.image-cover { transition: none; }
 a:hover .cover.image-cover, a:focus-visible .cover.image-cover { transform: perspective(700px) rotateY(-9deg) rotateZ(-1deg); }
}
.analytics-table { overflow-x: auto; margin: 2rem 0; }
.analytics-table table { width: 100%; border-collapse: collapse; text-align: left; }
.analytics-table th, .analytics-table td { padding: .75rem; border-bottom: 1px solid #d6dfdc; }
.analytics-table caption { text-align: left; padding: 1rem 0; font-weight: bold; }

/* Story videos and companion games. */
.adventures-page { padding-top: 42px; padding-bottom: 56px; }
.adventures-intro { width: 100%; max-width: none; margin-bottom: 28px; }
.adventures-intro h1 { font: 400 32px/1.2 Georgia, serif; letter-spacing: -.8px; margin: 0 0 10px; }
.adventures-intro h1 em { color: #41725f; font-weight: 400; }
.adventures-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.65; max-width: none; margin: 0; }
.adventures-badge { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 20px; background: #e8eee2; font-size: 11px; }
.adventure-card { border: 1px solid var(--line); border-radius: 18px; background: #fffef8; overflow: hidden; margin-bottom: 32px; box-shadow: 0 8px 30px #173c3b08; }
.adventure-heading { padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.adventure-heading h2 { font: 400 25px/1.25 Georgia, serif; margin: 8px 0 0; max-width: 650px; }
.adventure-switch { display: flex; flex-shrink: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; gap: 4px; background: #f0f2e9; }
.adventure-switch[hidden], [data-video-copy][hidden], [data-game-copy][hidden] { display: none; }
.adventure-switch button { min-height: 44px; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); }
.adventure-switch button[aria-pressed="true"] { background: #173c3b; color: #fffef8; }
.adventure-switch button svg { width: 18px; height: 18px; }
.adventure-switch button:focus-visible, .adventure-link:focus-visible, .adventure-description summary:focus-visible { outline: 3px solid #c18436; outline-offset: 3px; }
.adventure-player { aspect-ratio: 16 / 9; width: 100%; background: #22153d; }
.adventure-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.adventure-player.is-game { aspect-ratio: auto; height: 82vh; height: 82svh; min-height: 600px; max-height: 1000px; }
.adventure-body { padding: 24px 28px 28px; font-size: 14px; line-height: 1.8; }
.adventure-introduction { margin-top: 0; max-width: 800px; }
.adventure-description summary { width: fit-content; cursor: pointer; font-size: 12px; font-weight: 600; }
.adventure-description p { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 850px; }
.adventure-link { display: inline-flex; gap: 8px; padding: 8px 0; color: #315c4c; font-size: 12px; font-weight: 600; text-underline-offset: 4px; }
.adventure-game-actions { margin-top: 6px; }
.adventure-save-note { font-size: 12px; color: #63705e; }
@media (max-width: 750px) {
  .adventures-page { padding-top: 28px; }
  .adventure-heading { flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; }
  .adventure-heading h2 { font-size: 23px; }
  .adventure-switch { width: 100%; }
  .adventure-switch button { flex: 1; justify-content: center; }
  .adventure-body { padding: 20px; }
  .adventure-player.is-game { min-height: 680px; }
}

@media (max-width: 650px) {
  .adventures-intro h1 { font-size: 27px; }
}

/* Quick links follow the catalogue order and wrap on small screens. */
.adventure-finder { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f0f2e9; }
.adventure-finder .eyebrow { margin-bottom: 12px; }
.adventure-finder-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adventure-finder-link { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffef8; font-size: 12px; font-weight: 600; line-height: 1.5; }
.adventure-finder-link:hover { background: #e4ecdf; }
.adventure-finder-link > span:last-child { margin-left: auto; }
.adventure-finder-number { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #173c3b; color: #fffef8; font-size: 11px; }
.adventure-card, #adventure-finder { scroll-margin-top: 24px; }
.adventure-card:target { outline: 2px solid #41725f; outline-offset: 4px; }
.adventure-back { margin-top: 12px; }
@media (max-width: 750px) { .adventure-finder-links { grid-template-columns: 1fr; } }
