body.guide-document {
    --guide-gutter: clamp(28px, 7vw, 160px);
    --guide-dark: #211f1c;
    --guide-paper: #faf8f3;
    --guide-ink: #27241f;
    --guide-muted: #655e51;
    --guide-line: #d6cfc2;
    --guide-accent: #806341;
    --guide-cream: #f1ece2;
    --nav-pill-background: rgb(250 248 243 / .88);
    --nav-pill-border: var(--guide-line);
    --nav-pill-active-text: #483827;
    --nav-pill-active-background: #efe9df;
}
html:has(body.guide-document) {
    scroll-behavior: auto;
}
.guide-document #main {
    width: 100%;
    max-width: none;
    padding: 0;
    color: var(--guide-ink);
    background: radial-gradient(ellipse at 93% 40%, #393229, transparent 65%) top / 100% 100svh no-repeat, var(--guide-dark);
}
.guide-document #main > .site-breadcrumb {
    max-width: none;
    padding: 18px var(--guide-gutter);
}
.guide-document .site-breadcrumb :is(a, [aria-current], .breadcrumb-separator) {
    color: #c8c0b3;
}
.guide-document .site-header {
    background: rgb(250 248 243 / .88);
}
.guide-document .site-header .brand-sub {
    color: var(--guide-accent);
}
.guide-document .site-header :is(.btn, .user-button) {
    color: var(--guide-ink);
    background: var(--guide-cream);
    border: 1px solid var(--guide-line);
}
.guide-document .site-header :is(.btn, .user-button):hover {
    background: #e9e0d1;
}
.guide-page :is(a, button):focus-visible {
    outline-color: var(--guide-accent);
}
.guide-document .floating-menu-toggle {
    color: var(--guide-accent);
    border-color: var(--guide-line);
    background: var(--guide-paper);
}
.guide-document .floating-menu-toggle:hover {
    background: var(--guide-cream);
}
.guide-document .site-footer--links {
    background: color-mix(in srgb, var(--guide-paper) 78%, var(--color-footer-surface));
}
.guide-page :is(.guide-chapter, .guide-topic):focus-visible {
    outline: none;
}
.guide-chapter:focus-visible > .guide-reading h2,
.guide-topic:focus-visible > h3 {
    text-decoration: underline;
    text-decoration-color: var(--guide-line);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
.guide-cover.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 116px);
    min-height: calc(100svh - var(--header-height) - 57px);
    padding: clamp(48px, 7vh, 100px) var(--guide-gutter);
    color: var(--guide-paper);
}
.guide-introduction h1 {
    font-size: clamp(52px, 6.8vw, 140px);
    font-weight: 670;
    line-height: 1.06;
    letter-spacing: -.065em;
}
.guide-introduction p {
    max-width: 39ch;
    margin-top: 28px;
    color: #dfd6c7;
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.8;
}
.guide-index {
    width: min(100%, 37rem);
    justify-self: end;
    min-width: 0;
    perspective: 1050px;
}
.guide-index-panel {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(270px, 33vw, 505px);
    isolation: isolate;
}
.guide-book {
    position: absolute;
    left: 3%;
    top: 50%;
    width: 63%;
    aspect-ratio: .76;
    transform: translateY(-50%) rotateZ(-8deg) rotateX(15deg) rotateY(-24deg);
    transform-style: preserve-3d;
    pointer-events: none;
}
.guide-book-cover,
.guide-book-back {
    position: absolute;
    inset: 0;
    border-radius: 5px 9px 9px 5px;
    background: #363e2d;
}
.guide-book-back {
    transform: translateZ(-24px);
    box-shadow: 0 30px 60px #120d0880, 0 9px 15px #120d0890;
}
.guide-book-cover {
    display: grid;
    place-items: center;
    border: 1px solid #b5aa7d69;
    box-shadow: inset -2px 0 2px #0c120a80, inset 0 2px 1px #e7d69a28;
    background:
        repeating-linear-gradient(112deg, #ffffff04 0 1px, transparent 1px 4px),
        radial-gradient(ellipse at 20% 14%, #454e3b, transparent 70%),
        linear-gradient(140deg, #35412f, #252c20 82%);
}
.guide-book-cover::before {
    content: "";
    position: absolute;
    inset: 5% 6% 5% 10%;
    border: 1px solid #c1a97175;
    border-radius: 2px 4px 4px 2px;
}
.guide-book-cover::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4.5%;
    width: 1%;
    background: #151e15;
    box-shadow: 1px 0 #afa7893d;
}
.guide-book-fore-edge,
.guide-book-tail {
    position: absolute;
    background-color: #cab58f;
}
.guide-book-fore-edge {
    top: 2%;
    bottom: 2%;
    left: 99%;
    width: 24px;
    transform: rotateY(90deg);
    transform-origin: left center;
    background-image: repeating-linear-gradient(90deg,#7b664348 0 1px,transparent 1px 3px),linear-gradient(0deg,#c0a87f,#e8d9b4,#b3a27f);
}
.guide-book-tail {
    top: 99%;
    left: 3%;
    right: 1%;
    height: 24px;
    transform: rotateX(-90deg);
    transform-origin: center top;
    background-image: repeating-linear-gradient(0deg,#85684055 0 1px,transparent 1px 3px),linear-gradient(90deg,#a58b64,#d6ba92);
}
.guide-book-emblem {
    position: relative;
    display: grid;
    place-items: center;
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid #b6a174;
    border-radius: 50%;
    color: #dbc99a;
    box-shadow: 0 1px #161811, inset 0 1px #161811;
}
.guide-book-emblem::before {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid #c7ae7a5c;
    border-radius: inherit;
}
.guide-book-emblem::after {
    content: "";
    width: 93%;
    height: 93%;
    background: conic-gradient(from -45deg, #d4bd8b, #a58756, #c3a875, #795d36, #d4bd8b);
    clip-path: polygon(50% 0,61% 38%,100% 50%,61% 61%,50% 100%,38% 61%,0 50%,38% 38%);
}
.guide-book-imprint {
    position: absolute;
    left: 12%;
    right: 7%;
    bottom: 17%;
    color: #d3bc8b;
    text-align: center;
    font: 600 clamp(12px, 1.3vw, 21px)/1.2 Georgia, serif;
}
.guide-book-tabs {
    z-index: 1;
    display: grid;
    justify-self: end;
    width: 45%;
    gap: clamp(8px, 1.4vw, 18px);
    margin-top: 5%;
}
.guide-chapter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: clamp(48px, 5.3vw, 73px);
    padding: 8px clamp(10px, 1.3vw, 22px);
    border: 1px solid #e6d6b7;
    border-radius: 3px 7px 7px 3px;
    background: #e8dac0;
    box-shadow: -5px 5px 18px #16110c54;
    color: #31281c;
    font-size: clamp(14px, 1.45vw, 23px);
    font-weight: 680;
    letter-spacing: -.035em;
    word-break: keep-all;
}
.guide-chapter-link:nth-child(2) {
    background: #ced4ba;
    border-color: #dde0ca;
}
.guide-chapter-link:nth-child(3) {
    background: #d6b392;
    border-color: #e1c5a9;
}
.guide-chapter-link svg {
    width: clamp(15px, 1.5vw, 23px);
    flex: none;
    opacity: .73;
}
.guide-chapter-link:hover,
.guide-chapter-link:focus-visible {
    background: #fff3d8;
    border-color: #fff3d8;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .guide-index-panel {
        transform: rotateX(var(--guide-rotate-x, 0deg)) rotateY(var(--guide-rotate-y, 0deg));
        transition: transform 160ms ease-out;
    }
}

.guide-chapter {
    padding: clamp(54px, 6.7vw, 108px) var(--guide-gutter);
    background: var(--guide-paper);
}
.guide-worlds {
    background: var(--guide-cream);
}
.guide-reading {
    width: min(100%, 44rem);
    margin-inline: auto;
}
.guide-chapter-heading {
    margin-bottom: clamp(36px, 4vw, 58px);
}
.guide-chapter-heading h2 {
    margin-bottom: 16px;
    font-size: clamp(44px, 5.4vw, 88px);
    font-weight: 680;
    letter-spacing: -.065em;
    line-height: 1.06;
}
.guide-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: clamp(16px, 3vw, 32px);
    align-items: baseline;
    color: var(--guide-muted);
    font-size: 15px;
}
.guide-links a,
.guide-text-link,
.guide-end a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-decoration-color: #ae9e86;
    text-underline-offset: 5px;
}
.guide-links a:hover,
.guide-text-link:hover,
.guide-end a:hover {
    color: var(--guide-accent);
    text-decoration-color: currentColor;
}
.guide-topic + .guide-topic {
    margin-top: clamp(36px, 4.3vw, 68px);
    padding-top: clamp(36px, 4.3vw, 68px);
    border-top: 1px solid var(--guide-line);
}
.guide-topic h3 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 670;
    letter-spacing: -.055em;
    line-height: 1.15;
}
.guide-chapter p,
.guide-chapter dd {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: keep-all;
}
.guide-chapter :is(.guide-lead, .guide-route, .guide-note) {
    color: var(--guide-muted);
}
.guide-chapter .guide-lead {
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.55;
}
.guide-chapter .guide-route {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 640;
}
.guide-address {
    margin: 18px 0 0;
}
.guide-address div {
    display: grid;
    grid-template-columns: 5em minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    padding-block: 7px;
    border-bottom: 1px solid var(--guide-line);
}
.guide-address dt {
    color: var(--guide-muted);
    font-size: 15px;
}
.guide-address dd {
    font-weight: 650;
}
.guide-address dd,
.guide-explanations dd,
.guide-game-control dd {
    margin: 0;
}
.guide-explanations {
    margin: 12px 0 0;
}
.guide-explanations dt {
    margin-bottom: 2px;
}
.guide-explanations dt,
.guide-rules h4,
.guide-game-control dt {
    font-size: 17px;
    font-weight: 670;
    line-height: 1.5;
}
.guide-explanations dd + dt,
.guide-rules li + li {
    margin-top: 14px;
}
.guide-explanations code {
    background: #eae2d6;
    padding: 2px 5px;
    border-radius: 3px;
}
.guide-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 16px;
    padding: 9px 16px;
    border: 1px solid var(--guide-ink);
    border-radius: 4px;
    color: var(--guide-paper);
    background: var(--guide-ink);
    font-size: 15px;
    font-weight: 650;
}
.guide-button:hover {
    background: #433a2e;
}
.guide-rules {
    margin: 20px 0 0;
    padding-inline-start: 1.4em;
}
.guide-rules li {
    padding-inline-start: .25em;
}
.guide-rules li::marker {
    color: var(--guide-accent);
}
.guide-rules h4 {
    margin: 0 0 2px;
}
.guide-chapter .guide-note {
    margin-top: 16px;
    font-size: 15px;
}
.guide-game-control {
    margin: 18px 0 0;
}
.guide-game-control dt {
    margin-bottom: 2px;
}
.guide-object-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 36px;
    gap: 1px;
    padding: 1px;
    background: var(--guide-line);
}
.guide-object-index:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 3px;
}
.world-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.game-index {
    margin-top: clamp(34px, 4.3vw, 64px);
}
.guide-match-options {
    margin-top: 14px;
    border-top: 1px solid var(--guide-line);
}
.guide-match-options details {
    border-bottom: 1px solid var(--guide-line);
}
.guide-match-options summary {
    min-height: 44px;
    padding-block: 12px;
    cursor: pointer;
    font-weight: 660;
}
.guide-match-options details p {
    padding: 0 16px 14px;
}
.guide-object-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 120px;
    padding: clamp(12px, 2vw, 25px) 7px 16px;
    background: #f5f0e7;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 680;
    text-align: center;
    word-break: keep-all;
}
.guide-object-link:hover,
.guide-object-link:focus-visible {
    z-index: 1;
    background: var(--guide-cream);
}
.guide-index-object {
    position: relative;
    width: min(100%, 152px);
}
.guide-index-object::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 20%;
    height: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #44332155, transparent 72%);
}
.guide-index-object img {
    position: relative;
    width: 100%;
    height: auto;
}
@media (prefers-reduced-motion: no-preference) {
    .guide-index-object img {
        transition: transform 180ms ease-out;
    }
    .guide-object-link:is(:hover,:focus-visible) img {
        transform: translateY(-5px);
    }
}
.guide-copy {
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--guide-line);
    border-radius: 4px;
    background: var(--guide-paper);
    color: var(--guide-ink);
    font-size: 14px;
    font-weight: 640;
}
.guide-copy:hover {
    background: var(--guide-cream);
}
.guide-text-link {
    margin-top: 24px;
    font-size: 15px;
}
.guide-end {
    padding: 26px var(--guide-gutter);
    color: #e9dfce;
    font-size: 15px;
}
.guide-end a:hover {
    color: var(--guide-paper);
}
@media (max-width: 768px) {
    body.guide-document {
        --guide-gutter: clamp(20px, 6vw, 40px);
    }
    body.guide-document .guide-cover.page-intro {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 30px;
        min-height: calc(100svh - var(--header-height) - var(--dock-clearance));
        padding: 42px var(--guide-gutter);
    }
    .guide-index {
        width: min(100%, 380px);
        justify-self: center;
    }
    .guide-index-panel {
        min-height: clamp(248px, 76vw, 350px);
    }
    .guide-introduction h1 {
        font-size: clamp(42px, 10.7vw, 76px);
    }
    .guide-introduction p {
        margin-top: 16px;
    }
}
