.page-route-guide {
    background: #082f31;
}

.route-guide {
    --route-ink: #183a36;
    --route-deep: #075653;
    --route-deep-dark: #043f3e;
    --route-paper: #fffdf1;
    --route-cream: #fff9dc;
    --route-gold: #e5b447;
    --route-gold-light: #ffe584;
    --route-green: #4f9b43;
    --route-blue: #147d9e;
    --route-red: #b84635;
    --route-kid: #2f7a4a;
    --route-teen: #1a6f8f;
    --route-line: #183a36;
    --route-muted: #3f564f;
    background: var(--route-cream);
    overflow-wrap: break-word;
    word-break: normal;
}

.route-guide h1,
.route-guide h2,
.route-guide h3,
.route-guide p,
.route-guide ol,
.route-guide ul,
.route-guide dl,
.route-guide figure,
.route-guide table {
    margin-top: 0;
}

.route-guide h1,
.route-guide h2,
.route-guide h3,
.route-guide p,
.route-guide li,
.route-guide dd,
.route-guide dt,
.route-guide a,
.route-guide span,
.route-guide button,
.route-guide label,
.route-guide th,
.route-guide td {
    overflow-wrap: break-word;
}

.route-guide [id] {
    scroll-margin-top: 104px;
}

.route-guide button,
.route-guide input {
    font: inherit;
}

.route-guide a:focus-visible,
.route-guide button:focus-visible,
.route-guide input:focus-visible {
    outline: 3px solid #ffe27a;
    outline-offset: 2px;
}

.route-hero {
    position: relative;
    overflow: hidden;
    color: #fffdf0;
    background-color: #0d5a6b;
    background-image:
        linear-gradient(118deg, rgba(4, 63, 62, 0.97) 0%, rgba(7, 86, 83, 0.92) 48%, rgba(20, 92, 118, 0.86) 100%),
        url("../images/water-tile.webp");
    background-repeat: repeat;
    background-size: auto, 96px 96px;
    border-bottom: 8px solid var(--route-gold);
}

.route-hero::before,
.route-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
    background-image: url("../images/ui-sprites.webp");
    background-repeat: no-repeat;
    image-rendering: pixelated;
    opacity: 0.16;
}

.route-hero::before {
    right: -40px;
    bottom: -30px;
    width: 240px;
    height: 240px;
    background-position: -256px -128px;
    background-size: 1920px 1920px;
}

.route-hero::after {
    top: 36px;
    left: -36px;
    width: 180px;
    height: 180px;
    background-position: -576px 0;
    background-size: 1440px 1440px;
}

.route-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 58px 0 62px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.route-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
    color: #cfedf0;
    font-size: 12px;
    font-weight: 800;
}

.route-breadcrumbs a {
    color: inherit;
    text-underline-offset: 3px;
}

.route-breadcrumbs a:hover {
    color: #fff1a0;
}

.route-kicker,
.route-section-heading > p,
.route-answer-heading p,
.route-toc > p,
.route-opening-topline p {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.route-kicker {
    color: #ffe888;
}

.route-hero h1 {
    max-width: 720px;
    margin-bottom: 16px;
    color: #fffdf0;
    font-size: clamp(34px, 4.8vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-shadow: 3px 3px 0 #043f3e;
}

.route-lead {
    max-width: 680px;
    margin-bottom: 22px;
    color: #e5f4e5;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
}

.route-hero-actions,
.route-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.route-tool-actions {
    margin-top: 4px;
    margin-bottom: 0;
}

.route-primary-action,
.route-secondary-action,
.route-ghost-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 3px solid #132f2d;
    border-radius: 5px;
    box-shadow: 4px 4px 0 rgba(2, 43, 42, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.route-primary-action {
    color: #183a36;
    background: #ffe27a;
}

.route-secondary-action {
    color: #fffdf0;
    background: rgba(4, 48, 47, 0.78);
    border-color: rgba(255, 253, 240, 0.72);
}

.route-ghost-action {
    color: var(--route-deep-dark);
    background: #e8f4ef;
    border-color: var(--route-line);
}

.route-primary-action:hover,
.route-secondary-action:hover,
.route-ghost-action:hover {
    transform: translateY(-1px);
}

.route-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.route-hero-stats > div {
    display: grid;
    min-width: 100px;
    gap: 2px;
    padding: 8px 13px;
    background: rgba(2, 47, 47, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.route-hero-stats dt {
    color: #d4f0e0;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.route-hero-stats dd {
    margin: 0;
    color: #fff4a6;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.route-answer-card {
    min-width: 0;
    max-width: 520px;
    justify-self: end;
    padding: 22px;
    color: var(--route-ink);
    background: var(--route-paper);
    border: 4px solid var(--route-line);
    border-radius: 8px;
    box-shadow: 9px 9px 0 rgba(3, 48, 47, 0.72);
}

.route-answer-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 3px dashed #91aa7d;
}

.route-answer-heading p {
    margin-bottom: 3px;
    color: var(--route-deep);
}

.route-answer-heading h2 {
    margin-bottom: 0;
    color: var(--route-deep-dark);
    font-size: 22px;
    line-height: 1.15;
}

.route-answer-icon {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background-image: url("../images/ui-sprites.webp");
    background-repeat: no-repeat;
    background-position: -88px -264px;
    background-size: 352px 352px;
    image-rendering: pixelated;
}

.route-quick-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 14px;
    padding: 0;
    list-style: none;
}

.route-quick-list li strong {
    display: block;
    margin-bottom: 3px;
    color: var(--route-deep-dark);
    font-size: 14px;
}

.route-quick-list li p {
    margin: 0;
    color: var(--route-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.route-answer-note {
    margin: 0;
    padding: 11px 12px;
    color: #4a3212;
    background: #fff0b7;
    border-left: 5px solid var(--route-gold);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.route-page-layout {
    display: grid;
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    padding: 54px 0 76px;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 34px;
    align-items: start;
}

.route-main-column {
    display: grid;
    min-width: 0;
    gap: 30px;
}

.route-section {
    min-width: 0;
    padding: 28px;
    background: var(--route-paper);
    border: 3px solid var(--route-line);
    border-radius: 7px;
    box-shadow: 6px 6px 0 #88a77d;
}

.route-section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.route-section-heading > p {
    color: var(--route-deep);
}

.route-section-heading h2 {
    margin-bottom: 8px;
    color: var(--route-deep-dark);
    font-size: clamp(26px, 3.8vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.route-section-heading > span {
    display: block;
    color: #2f4640;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.route-tool-section {
    background:
        linear-gradient(180deg, rgba(232, 244, 239, 0.85), rgba(255, 253, 241, 0.98)),
        var(--route-paper);
}

.route-section-heading.is-light > p {
    color: #1f6b5a;
}

.route-tool-form {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
    background: #fffef8;
    border: 2px solid #c5d6b8;
    border-radius: 8px;
}

.route-pref-field {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.route-pref-field legend {
    margin-bottom: 10px;
    color: var(--route-deep-dark);
    font-size: 14px;
    font-weight: 900;
}

.route-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-choice-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    color: var(--route-ink);
    background: #f3faf4;
    border: 2px solid #b7c9a8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.route-choice-row label:has(input:checked) {
    color: #fffdf0;
    background: var(--route-deep);
    border-color: var(--route-deep-dark);
}

.route-choice-row input {
    accent-color: var(--route-gold);
}

.route-tool-result {
    min-width: 0;
    min-height: 180px;
}

.route-tool-state {
    display: grid;
    gap: 10px;
    place-items: start;
    padding: 28px 20px;
    color: var(--route-ink);
    background: #f7fbf5;
    border: 2px dashed #a8bf98;
    border-radius: 8px;
}

.route-tool-state.is-error {
    border-style: solid;
    border-color: #d39a8e;
    background: #fff5f2;
}

.route-tool-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #c5d6b8;
    border-top-color: var(--route-deep);
    border-radius: 50%;
    animation: route-spin 0.8s linear infinite;
}

@keyframes route-spin {
    to { transform: rotate(360deg); }
}

.route-result-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    background: #fffef8;
    border: 3px solid var(--route-line);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(24, 58, 54, 0.18);
}

.route-result-card.is-kid {
    border-color: #245c3a;
    box-shadow: 5px 5px 0 rgba(47, 122, 74, 0.28);
}

.route-result-card.is-teen {
    border-color: #15556e;
    box-shadow: 5px 5px 0 rgba(26, 111, 143, 0.28);
}

.route-result-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.route-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.route-result-card.is-kid .route-result-badge {
    color: #123b22;
    background: #d7f0df;
}

.route-result-card.is-teen .route-result-badge {
    color: #0d3d52;
    background: #d4eef8;
}

.route-result-head h3 {
    margin: 6px 0 6px;
    color: var(--route-deep-dark);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.15;
}

.route-result-head p {
    margin: 0;
    max-width: 48ch;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.route-result-score {
    min-width: 108px;
    padding: 10px 12px;
    text-align: center;
    background: #fff7d4;
    border: 2px solid #d9b34a;
    border-radius: 8px;
}

.route-result-score strong {
    display: block;
    color: var(--route-deep-dark);
    font-size: 22px;
    line-height: 1.1;
}

.route-result-score span {
    color: #6a5420;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.route-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.route-fact-grid div {
    min-width: 0;
    padding: 10px 12px;
    background: #f3f8f0;
    border: 1px solid #c5d6b8;
    border-radius: 6px;
}

.route-fact-grid dt {
    margin-bottom: 3px;
    color: #4a6558;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.route-fact-grid dd {
    margin: 0;
    color: var(--route-deep-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.route-step-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: route-step;
}

.route-step-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    background: #f8fbf5;
    border: 1px solid #d0dfc4;
    border-radius: 6px;
    counter-increment: route-step;
}

.route-step-list li::before {
    content: counter(route-step);
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #fff;
    background: var(--route-deep);
    border: 2px solid var(--route-line);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.route-step-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--route-deep-dark);
    font-size: 14px;
}

.route-step-list p {
    margin: 0;
    color: var(--route-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.route-loadout {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.route-loadout span {
    display: inline-flex;
    padding: 3px 8px;
    color: #1e4338;
    background: #e7f3ea;
    border: 1px solid #b7c9a8;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.route-result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-result-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    color: var(--route-deep-dark);
    background: #ffe27a;
    border: 2px solid var(--route-line);
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.route-result-links a.is-soft {
    background: #e8f4ef;
}

.route-compare-wrap {
    overflow-x: auto;
    border: 2px solid var(--route-line);
    border-radius: 8px;
}

.route-compare-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
}

.route-compare-table th,
.route-compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #d5e0cb;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
    font-weight: 700;
}

.route-compare-table thead th {
    color: #fffdf0;
    background: var(--route-deep);
    font-weight: 900;
}

.route-compare-table tbody th {
    width: 22%;
    color: var(--route-deep-dark);
    background: #eef6ea;
    font-weight: 900;
}

.route-compare-table tbody tr:nth-child(even) td {
    background: #f7fbf5;
}

.route-compare-table tbody tr:last-child th,
.route-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.route-opening-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.route-opening-card {
    min-width: 0;
    padding: 18px;
    background: #fffef8;
    border: 3px solid var(--route-line);
    border-radius: 8px;
}

.route-opening-card.is-kid {
    border-color: #2f7a4a;
}

.route-opening-card.is-teen {
    border-color: #1a6f8f;
}

.route-opening-topline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.route-opening-topline h3 {
    margin: 0;
    color: var(--route-deep-dark);
    font-size: 20px;
    line-height: 1.2;
}

.route-avatar {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 3px solid var(--route-line);
    border-radius: 8px;
    background-image: url("../images/ui-sprites.webp");
    background-repeat: no-repeat;
    background-size: 384px 384px;
    image-rendering: pixelated;
}

.route-avatar.is-kid {
    background-color: #d7f0df;
    background-position: 0 -288px;
}

.route-avatar.is-teen {
    background-color: #d4eef8;
    background-position: -48px -288px;
}

.route-opening-card ol {
    margin: 0 0 14px;
    padding-left: 1.15rem;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.route-opening-card li {
    margin: 0.45rem 0;
}

.route-opening-card li strong {
    color: var(--route-deep-dark);
}

.route-opening-next {
    margin: 0 0 14px;
    padding: 10px 12px;
    color: #2d463c;
    background: #eef6ea;
    border-left: 4px solid var(--route-green);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.route-opening-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-opening-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 6px 10px;
    color: var(--route-deep-dark);
    background: #e8f4ef;
    border: 2px solid var(--route-line);
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.route-shared-grid,
.route-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.route-shared-grid article,
.route-faq-grid article {
    min-width: 0;
    padding: 16px;
    background: #f8fbf5;
    border: 1px solid #cfdcbc;
    border-radius: 7px;
}

.route-shared-grid h3,
.route-faq-grid h3 {
    margin-bottom: 8px;
    color: var(--route-deep-dark);
    font-size: 16px;
    line-height: 1.25;
}

.route-shared-grid p,
.route-faq-grid p {
    margin: 0;
    color: var(--route-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.route-guide kbd {
    display: inline-grid;
    min-width: 25px;
    min-height: 23px;
    place-items: center;
    padding: 1px 6px;
    color: #fff;
    background: var(--route-deep);
    border: 2px solid #102f2d;
    border-radius: 4px;
    box-shadow: 0 2px 0 #a5bf9a;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
}

.route-next-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.route-next-links a {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    color: inherit;
    background: var(--route-paper);
    border: 3px solid var(--route-line);
    border-radius: 7px;
    box-shadow: 4px 4px 0 #88a77d;
    text-decoration: none;
}

.route-next-links span {
    color: #567066;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.route-next-links strong {
    color: var(--route-deep-dark);
    font-size: 15px;
    line-height: 1.25;
}

.route-side-column {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 96px;
}

.route-toc {
    padding: 16px;
    background: var(--route-paper);
    border: 3px solid var(--route-line);
    border-radius: 7px;
    box-shadow: 4px 4px 0 #88a77d;
}

.route-toc > p {
    margin-bottom: 10px;
    color: var(--route-deep);
}

.route-toc a {
    display: block;
    padding: 7px 0;
    color: var(--route-deep-dark);
    border-bottom: 1px dashed #c5d6b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.route-toc a:last-child {
    border-bottom: 0;
}

.route-toc a:hover {
    color: var(--route-blue);
}

.route-game-shot {
    margin: 0;
    padding: 12px;
    background: var(--route-paper);
    border: 3px solid var(--route-line);
    border-radius: 7px;
    box-shadow: 4px 4px 0 #88a77d;
}

.route-game-shot img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    border: 2px solid var(--route-line);
    border-radius: 4px;
    background: #0b3d45;
}

.route-game-shot figcaption {
    margin-top: 10px;
    color: var(--route-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.route-side-tip {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    color: #3f2f10;
    background: #fff0b7;
    border: 3px solid #c9a13a;
    border-radius: 7px;
}

.route-side-tip-icon {
    display: block;
    width: 36px;
    height: 36px;
    background-image: url("../images/ui-sprites.webp");
    background-repeat: no-repeat;
    background-position: -44px -264px;
    background-size: 288px 288px;
    image-rendering: pixelated;
}

.route-side-tip p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.route-noscript {
    margin: 14px 0 0;
    padding: 12px;
    color: #4a3212;
    background: #fff0b7;
    border-left: 4px solid var(--route-gold);
    font-size: 13px;
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .route-hero-inner,
    .route-page-layout {
        grid-template-columns: 1fr;
    }

    .route-answer-card {
        justify-self: stretch;
        max-width: none;
    }

    .route-side-column {
        position: static;
        order: -1;
    }

    .route-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 14px;
        align-items: center;
    }

    .route-toc > p {
        width: 100%;
        margin-bottom: 4px;
    }

    .route-toc a {
        border-bottom: 0;
        padding: 4px 0;
    }

    .route-game-shot,
    .route-side-tip {
        display: none;
    }
}

@media (max-width: 720px) {
    .route-hero-inner,
    .route-page-layout {
        width: min(calc(100% - 24px), 1180px);
        padding-left: 0;
        padding-right: 0;
    }

    .route-hero-inner {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .route-section {
        padding: 18px;
    }

    .route-opening-grid,
    .route-shared-grid,
    .route-faq-grid,
    .route-next-links {
        grid-template-columns: 1fr;
    }

    .route-hero h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .route-choice-row label {
        width: 100%;
    }

    .route-tool-actions .route-primary-action,
    .route-tool-actions .route-ghost-action {
        width: 100%;
    }
}
