:root {
    --ink: #241811;
    --ink-soft: #4e382b;
    --paper: #f7ebcb;
    --paper-deep: #ead29c;
    --paper-light: #fff8df;
    --cover-red: #8e3227;
    --cover-orange: #c46033;
    --gold: #d9a441;
    --night: #172332;
    --blue: #335c75;
    --green: #476b52;
    --shadow: rgba(18, 12, 8, 0.35);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body.bbp-adventure-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 164, 65, 0.2), transparent 24rem),
        radial-gradient(circle at 88% 18%, rgba(142, 50, 39, 0.26), transparent 28rem),
        linear-gradient(135deg, #101925 0%, #233140 45%, #513529 100%);
    color: var(--ink);
    font-family: "Oswald", Arial, sans-serif;
}

.adventure-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.1rem 0;
    color: var(--paper);
}

.adventure-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--paper);
    text-decoration: none;
    font-family: "Special Elite", Georgia, serif;
    font-size: 1.8rem;
}

.adventure-brand .material-symbols-rounded {
    font-size: 2rem;
}

.adventure-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.adventure-prototype-note,
.adventure-welcome {
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(247, 235, 203, 0.42);
    border-radius: 4px;
    color: var(--paper);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.adventure-shell {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

.adventure-cover {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    align-items: stretch;
    min-height: auto;
    border: 10px solid #352115;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--cover-red) 0%, var(--cover-orange) 46%, var(--gold) 100%);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.44), inset 0 0 0 3px rgba(247, 235, 203, 0.35);
    overflow: hidden;
}

.adventure-cover-art {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    background:
        linear-gradient(to bottom, rgba(23, 35, 50, 0.95), rgba(23, 35, 50, 0.74)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px);
    overflow: hidden;
}

.cover-moon {
    position: absolute;
    top: 3.2rem;
    right: 3.5rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--paper-light);
    box-shadow: 0 0 52px rgba(255, 248, 223, 0.55);
}

.cover-cloud {
    position: absolute;
    height: 1.1rem;
    border-radius: 999px;
    background: rgba(247, 235, 203, 0.16);
}

.cover-cloud::before,
.cover-cloud::after {
    content: "";
    position: absolute;
    top: -0.55rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: inherit;
}

.cover-cloud::before {
    left: 1rem;
}

.cover-cloud::after {
    right: 1.2rem;
}

.cover-cloud-one {
    left: 12%;
    top: 7rem;
    width: 10rem;
}

.cover-cloud-two {
    right: 16%;
    top: 11rem;
    width: 7rem;
}

.cover-house {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 17%;
    height: 17rem;
    background: #1d130f;
    clip-path: polygon(0 47%, 10% 47%, 10% 28%, 27% 28%, 27% 13%, 45% 0, 63% 13%, 63% 28%, 82% 28%, 82% 47%, 100% 47%, 100% 100%, 0 100%);
    box-shadow: 0 0 0 4px rgba(247, 235, 203, 0.22);
}

.cover-house span {
    position: absolute;
    width: 2.2rem;
    height: 3rem;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(217, 164, 65, 0.76);
}

.cover-house span:nth-child(1) {
    left: 22%;
    bottom: 36%;
}

.cover-house span:nth-child(2) {
    left: 48%;
    bottom: 50%;
}

.cover-house span:nth-child(3) {
    right: 20%;
    bottom: 34%;
}

.cover-path {
    position: absolute;
    left: 42%;
    bottom: -2.5rem;
    width: 10rem;
    height: 12rem;
    background: rgba(247, 235, 203, 0.34);
    clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
}

.vesper-cover-art {
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    background:
        radial-gradient(circle at 50% 35%, rgba(217, 164, 65, 0.12), transparent 18rem),
        var(--paper);
}

.adventure-cover-image {
    position: relative;
    width: min(82%, 390px);
    height: auto;
    max-height: 82%;
    object-fit: contain;
    border: 4px solid rgba(36, 24, 17, 0.42);
    border-radius: 5px;
    box-shadow: 8px 8px 0 rgba(36, 24, 17, 0.22);
}

.vesper-cover-art .cover-moon,
.vesper-cover-art .cover-cloud,
.vesper-cover-art .cover-house,
.vesper-cover-art .cover-path {
    display: none;
}

.adventure-cover-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    background:
        linear-gradient(90deg, rgba(53, 33, 21, 0.12), transparent 3rem),
        var(--paper);
}

.adventure-series {
    margin: 0 0 0.4rem;
    color: var(--cover-red);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.adventure-cover h1 {
    margin: 0;
    color: var(--ink);
    font-family: "Special Elite", Georgia, serif;
    font-size: clamp(2.8rem, 5.4vw, 5.2rem);
    line-height: 0.95;
}

.adventure-subtitle {
    color: var(--ink-soft);
    font-size: 1.35rem;
    font-weight: 800;
}

.adventure-cover p {
    max-width: 38rem;
    font-size: 1.08rem;
    line-height: 1.55;
}

.adventure-cover-actions,
.book-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

button,
.book-choice {
    min-height: 42px;
    border: 2px solid var(--ink);
    border-radius: 5px;
    background: var(--gold);
    color: var(--ink);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

button:hover,
button:focus,
.book-choice:hover,
.book-choice:focus {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
    outline: none;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 var(--ink);
}

.adventure-primary,
.adventure-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
}

.adventure-secondary {
    background: var(--paper-light);
}

.adventure-library {
    padding-top: 0.5rem;
}

.library-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.library-checkout-card,
.library-card-catalog {
    border: 6px solid #352115;
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(53, 33, 21, 0.12), transparent 4rem),
        var(--paper);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.library-checkout-card {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.library-checkout-card h1 {
    margin: 0;
    color: var(--ink);
    font-family: "Special Elite", Georgia, serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.95;
}

.library-checkout-card p:not(.adventure-series) {
    max-width: 48rem;
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

.library-checkout-card .library-author-note {
    font-style: italic;
}

.library-card-catalog {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1.25rem;
    background:
        linear-gradient(145deg, rgba(217, 164, 65, 0.2), transparent 70%),
        var(--paper-deep);
}

.library-card-catalog .material-symbols-rounded {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 3px solid var(--ink);
    border-radius: 5px;
    background: var(--paper-light);
    font-size: 2.6rem;
    box-shadow: 4px 4px 0 var(--ink);
}

.library-card-catalog strong,
.library-card-catalog label {
    display: block;
}

.library-card-catalog strong {
    color: var(--ink);
    font-family: "Special Elite", Georgia, serif;
    font-size: 1.35rem;
}

.library-card-catalog label {
    margin: 0.45rem 0 0.25rem;
    color: var(--ink-soft);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.library-card-catalog select {
    width: 100%;
    min-height: 40px;
    border: 2px solid var(--ink);
    border-radius: 5px;
    background: var(--paper-light);
    color: var(--ink);
    font: 900 1rem "Oswald", Arial, sans-serif;
}

.library-shelves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.library-book-card {
    display: grid;
    grid-template-columns: clamp(150px, 18vw, 190px) minmax(0, 1fr);
    gap: 1rem;
    min-height: 285px;
    padding: 1rem;
    border: 5px solid #352115;
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(53, 33, 21, 0.08), transparent 5rem),
        var(--paper);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.library-book-card.is-hidden {
    display: none;
}

.library-book-card.is-coming-soon {
    opacity: 0.68;
    filter: saturate(0.72);
}

.library-book-card.is-coming-soon .library-book-cover {
    opacity: 0.86;
}

.library-book-cover {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 1rem 0.85rem;
    border: 4px solid var(--ink);
    border-radius: 5px;
    color: var(--paper-light);
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(36, 24, 17, 0.25);
}

.library-cover-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1d130f;
}

.library-book-cover::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border: 2px solid rgba(255, 248, 223, 0.38);
    pointer-events: none;
}

.library-book-cover h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Special Elite", Georgia, serif;
    font-size: clamp(1.18rem, 1.7vw, 1.62rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
    align-self: center;
    max-width: 100%;
}

.book-series {
    position: relative;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-cover-symbol {
    position: relative;
    z-index: 1;
    justify-self: end;
    align-self: flex-end;
    font-size: clamp(2.25rem, 4vw, 3.15rem);
    max-width: 100%;
    line-height: 1;
}

.vesper-cover,
.library-image-cover {
    padding: 1rem 0.85rem;
    background: #1d130f;
}

.vesper-cover .library-cover-image,
.library-image-cover .library-cover-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vesper-cover::before,
.library-image-cover::before {
    z-index: 3;
}

.vesper-cover::after,
.library-image-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(12, 10, 10, 0.66), rgba(12, 10, 10, 0.06) 30%, rgba(12, 10, 10, 0.18) 55%, rgba(12, 10, 10, 0.78)),
        radial-gradient(circle at 50% 42%, transparent 0 32%, rgba(0, 0, 0, 0.28) 74%);
    pointer-events: none;
}

.vesper-cover .book-series,
.vesper-cover h2,
.vesper-cover .book-cover-symbol,
.library-image-cover .book-series,
.library-image-cover h2,
.library-image-cover .book-cover-symbol {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.85);
}

.vesper-cover .book-cover-symbol,
.library-image-cover .book-cover-symbol {
    display: none;
}

.vesper-cover .book-series,
.vesper-cover h2,
.library-image-cover .book-series,
.library-image-cover h2 {
    display: block;
}

.neon-cover {
    background: linear-gradient(145deg, #1f3142, #335c75 58%, #7aa6b6);
}

.lake-cover {
    background: linear-gradient(145deg, #25394a, #5b7d81 58%, #c6d6cf);
}

.anatomy-cover {
    background: linear-gradient(145deg, #3b2639, #6f3f52 58%, #d08a56);
}

.pharmacy-cover {
    background: linear-gradient(145deg, #263126, #4f6f4a 54%, #d6b15b);
}

.museum-cover {
    background: linear-gradient(145deg, #2c2638, #67577a 56%, #d3c0a1);
}

.carnival-cover {
    background: linear-gradient(145deg, #3d2030, #a23f55 54%, #f0bf4f);
}

.train-cover {
    background: linear-gradient(145deg, #1f2933, #52616f 54%, #d0a854);
}

.island-cover {
    background: linear-gradient(145deg, #183d3d, #37736a 54%, #d6c17a);
}

.ward-cover {
    background: linear-gradient(145deg, #28314a, #75689a 56%, #e4b7c4);
}

.library-book-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.library-book-status {
    width: fit-content;
    margin: 0 0 0.45rem;
    padding: 0.25rem 0.55rem;
    border: 2px solid var(--ink);
    border-radius: 4px;
    background: var(--paper-light);
    color: var(--cover-red);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.library-book-copy h3 {
    margin: 0 0 0.4rem;
    color: var(--ink);
    font-family: "Special Elite", Georgia, serif;
    font-size: 1.55rem;
}

.library-book-copy p {
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.55;
}

.library-genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: auto 0 0.8rem;
}

.library-genre-row span {
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(36, 24, 17, 0.32);
    border-radius: 4px;
    background: rgba(217, 164, 65, 0.18);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.library-play-link,
.library-disabled-link,
.adventure-library-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 5px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
}

.library-play-link {
    width: fit-content;
}

.library-disabled-link {
    width: fit-content;
    opacity: 0.7;
    cursor: not-allowed;
}

.adventure-library-link {
    width: 100%;
    margin-bottom: 0.55rem;
    background: var(--gold);
}

.adventure-book {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    justify-content: center;
}

.adventure-panel,
.book-page {
    border: 5px solid #352115;
    border-radius: 6px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.adventure-panel {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.adventure-panel-block + .adventure-panel-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed rgba(78, 56, 43, 0.35);
}

.adventure-panel h2 {
    margin: 0 0 0.55rem;
    font-family: "Special Elite", Georgia, serif;
    font-size: 1.2rem;
}

.adventure-panel button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.45rem;
    background: var(--paper-light);
}

.adventure-clue-card {
    min-height: 6rem;
    padding: 0.7rem;
    border: 2px solid rgba(36, 24, 17, 0.55);
    border-radius: 5px;
    background: var(--paper-light);
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.adventure-clue-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink);
    font-family: "Oswald", Arial, sans-serif;
    font-size: 1rem;
}

.adventure-music-player label {
    display: block;
    margin: 0.8rem 0 0.25rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.adventure-audio-card {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.7rem;
    border: 2px solid rgba(36, 24, 17, 0.55);
    border-radius: 5px;
    background: var(--paper-light);
    object-fit: cover;
    box-shadow: 4px 4px 0 rgba(36, 24, 17, 0.18);
}

.adventure-volume-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.25rem;
    gap: 0.5rem;
    align-items: center;
}

.adventure-volume-row input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

.adventure-volume-row span {
    color: var(--ink-soft);
    font-weight: 900;
    text-align: right;
}

.adventure-audio-status {
    min-height: 1.2rem;
    margin-top: 0.45rem;
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.78rem;
    line-height: 1.35;
}

.adventure-trail {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.35;
}

.book-page {
    position: relative;
    width: min(100%, 820px);
    min-height: 1120px;
    margin: 0 auto;
    padding: 5.25rem clamp(2.1rem, 4vw, 4.25rem) 5.75rem;
    background:
        linear-gradient(90deg, rgba(78, 56, 43, 0.12), transparent 7%, transparent 93%, rgba(78, 56, 43, 0.12)),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.78), transparent 30rem),
        var(--paper);
}

.book-page::before {
    content: "";
    position: absolute;
    inset: 1.2rem;
    border: 2px solid rgba(78, 56, 43, 0.22);
    pointer-events: none;
}

.book-page::after {
    content: "✦";
    position: absolute;
    left: 50%;
    bottom: 4.25rem;
    color: rgba(78, 56, 43, 0.32);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.6rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.book-page-number {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 2.15rem;
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.95rem;
    transform: translateX(-50%);
}

.book-kicker {
    display: none;
}

.book-page h2 {
    display: block;
    position: absolute;
    top: 2rem;
    left: clamp(2.1rem, 4vw, 4.25rem);
    right: clamp(2.1rem, 4vw, 4.25rem);
    margin: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(78, 56, 43, 0.28);
    color: var(--ink-soft);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.92rem;
    font-variant: small-caps;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
}

.book-illustration {
    float: right;
    width: min(310px, 46%);
    aspect-ratio: 1;
    margin: 0 0 1rem 1rem;
    border: 4px solid var(--ink);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(217, 164, 65, 0.2), rgba(71, 107, 82, 0.15)),
        var(--paper-deep);
    box-shadow: 5px 5px 0 rgba(36, 24, 17, 0.25);
}

.book-illustration.is-top-left,
.book-illustration.is-bottom-left {
    float: left;
    margin: 0 1rem 1rem 0;
}

.book-illustration.is-top-right,
.book-illustration.is-bottom-right {
    float: right;
    margin: 0 0 1rem 1rem;
}

.book-illustration.is-bottom-left,
.book-illustration.is-bottom-right {
    margin-top: 1rem;
}

.book-plate::before {
    content: attr(data-symbol);
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--ink);
    font-family: "Material Symbols Rounded";
    font-size: clamp(4rem, 11vw, 7rem);
}

.book-plate {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.book-plate.has-image::before {
    display: none;
}

.book-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-page-image[hidden] {
    display: none;
}

.book-page-image:not([hidden]) {
    display: block;
}

.book-page-image:not([hidden]) + .book-plate {
    display: none;
}

.book-copy {
    color: #2d2119;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.76;
}

.book-copy p {
    margin: 0 0 1rem;
}

.medical-clue {
    position: relative;
    display: inline;
    border: 0;
    border-bottom: 1px solid rgba(142, 50, 39, 0.62);
    background: transparent;
    color: #7b3528;
    font: inherit;
    box-shadow: none;
    text-align: left;
    cursor: help;
    text-decoration: none;
}

.medical-clue:hover,
.medical-clue:focus,
.medical-clue.is-open {
    color: #5e281f;
    border-bottom-color: rgba(94, 40, 31, 0.9);
    outline: 1px dotted rgba(36, 24, 17, 0.45);
    outline-offset: 3px;
    transform: none;
    box-shadow: none;
}

.bbp-adventure-page.clues-hidden .medical-clue {
    background: transparent;
    border-bottom-color: transparent;
    color: inherit;
    outline: none;
    cursor: default;
}

.book-choices {
    display: block;
    clear: both;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid rgba(78, 56, 43, 0.35);
    border-radius: 4px;
    background: rgba(234, 210, 156, 0.38);
}

.book-choice-heading {
    margin: 0 0 0.8rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
}

.book-choice {
    display: block;
    width: 100%;
    flex: none;
    min-height: 0;
    padding: 0.45rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5e281f;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
}

.book-choice-label::after {
    content: " - ";
    color: var(--ink-soft);
}

.book-choice-turn {
    color: var(--ink-soft);
    font-weight: 700;
}

.book-choice:hover,
.book-choice:focus {
    color: var(--ink);
    transform: none;
    box-shadow: none;
    outline: 1px dotted rgba(36, 24, 17, 0.55);
    outline-offset: 3px;
}

.book-choices.is-ending {
    border-color: rgba(78, 56, 43, 0.22);
    background: rgba(255, 246, 214, 0.58);
    text-align: center;
}

.book-the-end {
    margin: 0.25rem 0 1rem;
    color: var(--ink);
    font-family: "Special Elite", Georgia, serif;
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.book-ending-links {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.book-ending-link {
    max-width: 26rem;
    text-align: center;
}

.book-ending-link.book-choice {
    color: #5e281f;
}

.book-ending-link .book-choice-label::after {
    content: " - ";
}

.book-ending-card {
    clear: both;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 3px solid var(--ink);
    border-radius: 5px;
    background: var(--paper-light);
    color: var(--ink);
    font-family: "Oswald", Arial, sans-serif;
    box-shadow: 5px 5px 0 rgba(36, 24, 17, 0.2);
}

.book-ending-card h3 {
    margin: 0 0 0.4rem;
    font-family: "Special Elite", Georgia, serif;
    font-size: 1.45rem;
}

.book-ending-card[data-tone="good"] {
    border-color: var(--green);
}

.book-ending-card[data-tone="bad"] {
    border-color: var(--cover-red);
}

@media (max-width: 860px) {
    .adventure-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .adventure-topbar-right {
        justify-content: flex-start;
    }

    .adventure-cover,
    .library-hero,
    .adventure-book {
        grid-template-columns: 1fr;
    }

    .library-shelves {
        grid-template-columns: 1fr;
    }

    .adventure-panel {
        position: static;
        order: 2;
    }

    .book-page {
        width: 100%;
        min-height: 880px;
    }

    .book-illustration {
        float: none;
        width: 100%;
        max-width: 340px;
        margin: 0 0 1rem;
    }
}

@media (max-width: 560px) {
    .adventure-shell,
    .adventure-topbar {
        width: min(100% - 1rem, 1200px);
    }

    .adventure-cover {
        border-width: 6px;
    }

    .book-page {
        min-height: 760px;
        padding: 4.8rem 1.25rem 5.5rem;
    }

    .book-page::before {
        inset: 0.65rem;
    }

    .book-page-number {
        bottom: 1.6rem;
        margin-bottom: 0;
    }

    .book-page h2 {
        top: 1.5rem;
        left: 1.25rem;
        right: 1.25rem;
        font-size: 0.78rem;
    }

    .library-book-card {
        grid-template-columns: 1fr;
    }

    .library-book-cover {
        width: min(100%, 240px);
        justify-self: center;
    }
}
