.team-dungeon-page { margin: 0; color: var(--cd-ink, #efe4d0); }
.team-dungeon-page .music-btn { position: static; margin: 0 22px 18px auto; }
.team-guide-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; padding: 14px max(24px, calc((100% - 1180px) / 2)); background: #100e0c; border-bottom: 1px solid var(--cd-border); }
.team-guide-masthead > a { display: flex; align-items: baseline; gap: 16px; color: var(--cd-gold-bright); text-decoration: none; }
.team-guide-masthead strong { font: 700 24px/1.4 "Noto Serif TC", "PMingLiU", serif; }
.team-guide-masthead a span, .team-guide-masthead__label { font-size: 12px; color: var(--cd-muted); }
.team-guide-skip { position: fixed; z-index: 2000; top: -100px; left: 16px; padding: 10px 18px; color: #17110c; background: var(--cd-gold-bright); }
.team-guide-skip:focus { top: 8px; }
#team-fieldbook { --bg: #121010; --panel: #211b19; --line: #554733; --text: #efe4d0; --muted: #beb09a; --gold: #e0bd78; --heading: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif; --body: "Microsoft JhengHei", "PingFang TC", sans-serif; background: rgba(15, 12, 11, .96); color: var(--text); font: 16px/1.85 var(--body); text-align: left; overflow-wrap: break-word; }
#team-fieldbook, #team-fieldbook *, #team-fieldbook *::before, #team-fieldbook *::after { box-sizing: border-box; letter-spacing: 0; }
#team-fieldbook [hidden] { display: none !important; }
#team-fieldbook button { width: auto; margin: 0; border-radius: 4px; }
#team-fieldbook img { border: 0; border-radius: 0; }
#team-fieldbook .block-title h3 { flex: 0 0 auto; }
#team-fieldbook .wrap { max-width: 1240px; padding-inline: 32px; }
#team-fieldbook a { color: #e7c78b; }
#team-fieldbook h2 { color: #f0d6a1; }
#team-fieldbook .hero { isolation: isolate; background: #181410; border-bottom: 1px solid #997947; }
#team-fieldbook .expedition-hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 15%; }
#team-fieldbook .hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9, 7, 7, .76), rgba(12, 9, 8, .28) 45%, transparent 78%); }
#team-fieldbook .hero-inner { display: flex; align-items: center; min-height: clamp(420px, calc(100svh - 260px), 560px); padding-block: 46px 52px; }
#team-fieldbook .hero-copy { width: 100%; max-width: 510px; }
#team-fieldbook .hero h1 { font-size: 52px; color: #fff0d0; text-shadow: 0 3px 18px #000b; }
#team-fieldbook .hero h1 > span { color: #f1ce87; font-size: 25px; margin-top: 16px; }
#team-fieldbook .hero-copy p { max-width: 460px; color: #f0e5d4; font-size: 17px; text-shadow: 0 2px 12px #000; }
#team-fieldbook .hero-copy .eyebrow { color: #efd28f; }
#team-fieldbook .primary { border-color: #ecc678; border-radius: 4px; background: linear-gradient(#f4d47d, #bc853b); color: #21170d; font-size: 16px; font-weight: 700; box-shadow: inset 0 1px #fff3be88, 0 6px 18px #0005; }
#team-fieldbook .primary:hover { background: linear-gradient(#ffe8a4, #d19b48); }
#team-fieldbook .expedition-art-note { position: absolute; bottom: 12px; right: 22px; color: #e7dbc5; font-size: 11px; text-shadow: 0 1px 6px #000; }
#team-fieldbook .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 auto; padding-block: 20px; }
#team-fieldbook .hero-facts > div { padding-inline: 24px; text-align: center; }
#team-fieldbook .hero-facts > div:first-child { padding-left: 0; }
#team-fieldbook .hero-facts > div:last-child { padding-right: 0; }
#team-fieldbook .hero-facts div + div { border-left-color: #68502e; }
#team-fieldbook .hero-facts b { color: #f0cf87; font-size: 28px; line-height: 1.3; }
#team-fieldbook .hero-facts small { color: #cdbda1; font-size: 13px; margin-top: 3px; }
#team-fieldbook .expedition-index { position: sticky; top: var(--expedition-site-nav, 64px); z-index: 700; background: #211611f5; border-block: 1px solid #6e5031; box-shadow: 0 8px 20px #0004; }
#team-fieldbook .expedition-index__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding-block: 7px; }
#team-fieldbook .expedition-index .nav { gap: 30px; font-size: 14px; }
#team-fieldbook .expedition-index .nav a { padding-block: 8px; color: #dfc79b; white-space: nowrap; }
#team-fieldbook .expedition-index .nav a:hover { color: #fff0c2; }
#team-fieldbook .expedition-index .print-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border: 1px solid #8d6d3e; background: #2a2119; border-radius: 4px; color: #f1cf89; }
#team-fieldbook .expedition-index svg { width: 19px; height: 19px; }
#team-fieldbook #overview, #team-fieldbook #rules, #team-fieldbook #guide, #team-fieldbook .dungeon { scroll-margin-top: calc(var(--expedition-site-nav, 64px) + var(--expedition-index-height, 58px) + 18px); }
#team-fieldbook .overview { padding-block: 44px 42px; }
#team-fieldbook .section-head h2, #team-fieldbook .guide-topline h2, #team-fieldbook .dungeon-heading h2, #team-fieldbook .rules h2, #team-fieldbook .faq h2 { font-size: 32px; }
#team-fieldbook .level-form { background: #211b17; border-color: #7b5b34; }
#team-fieldbook .level-form input { background: #0f0c0a; border-color: #72562f; }
#team-fieldbook .route { background: #211c19; border-color: #5b4931; box-shadow: inset 0 1px #d8ab4c12; }
#team-fieldbook .route-image img { opacity: 1; }
#team-fieldbook .route-image::after { background: linear-gradient(0deg, #211c19, transparent 65%); }
#team-fieldbook .route h3 { color: #f3dfb8; }
#team-fieldbook .route .cost { color: #d3bd96; }
#team-fieldbook [data-guide="council"], #team-fieldbook #dungeon-council { --card-accent: #d7b56d !important; --accent: #d7b56d !important; }
#team-fieldbook [data-guide="goblin"], #team-fieldbook #dungeon-goblin { --card-accent: #a5b681 !important; --accent: #a5b681 !important; }
#team-fieldbook [data-guide="tomb"], #team-fieldbook #dungeon-tomb { --card-accent: #d5947a !important; --accent: #d5947a !important; }
#team-fieldbook [data-guide="altar"], #team-fieldbook #dungeon-altar { --card-accent: #85bdb4 !important; --accent: #85bdb4 !important; }
#team-fieldbook [data-guide="arena"], #team-fieldbook #dungeon-arena { --card-accent: #bdc2d5 !important; --accent: #bdc2d5 !important; }
#team-fieldbook .rule-strip { border-color: #775a37; background: #271c16; }
#team-fieldbook .rules { background: #211517; border-block-color: #61412e; }
#team-fieldbook .rule { border-left-color: #8b6740; }
#team-fieldbook .guide-select button { color: #d2c0a2; background: #211914; border-color: #665036; }
#team-fieldbook .guide-select button[aria-pressed="true"] { background: #6a2631; color: #fff0c9; border-color: #dbb667; }
#team-fieldbook .boss-figure { background: #211b19; border-color: #63513b; }
#team-fieldbook .boss-figure > img { background: #211c1b; }
#team-fieldbook .map-frame { background: #171310; border-color: #655032; }
#team-fieldbook .map-frame button { background: #0e0c0b; }
#team-fieldbook .entry-box { background: #251b18; }
#team-fieldbook .tactic { background: #161817; border-color: #53635b; }
#team-fieldbook .tag { border-color: #6b5c45; }
#team-fieldbook .skill { border-color: #5c4737; }
#team-fieldbook .passives, #team-fieldbook .notes { background: #231719; border-color: #8e4954; }
#team-fieldbook .role { background: #211b17; border-color: #62503b; }
#team-fieldbook .faq { background: #1c1415; border-block-color: #64472e; }
#team-fieldbook .lightbox { background: #171211; color: #f0e2c7; border-color: #d1a45e; border-radius: 6px; }
#team-fieldbook .lightbox .close { color: #f5d18b; background: #2d2019; }
#team-fieldbook .team-guide-return { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 0 32px; font-size: 14px; }
#team-fieldbook .team-guide-return a { display: inline-flex; gap: 8px; align-items: center; text-underline-offset: 5px; }
#team-fieldbook .team-guide-return svg { width: 16px; height: 16px; }
#team-fieldbook :focus-visible { outline: 2px solid #f4d37a; outline-offset: 4px; }

/* The introduction uses its existing full-width section rhythm. */
.game-intro-page .intro-nav { top: var(--intro-site-nav-height, 64px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.game-intro-page .intro-nav__item { flex: 0 0 auto; white-space: nowrap; }
.game-intro-page .intro-section { scroll-margin-top: calc(var(--intro-site-nav-height, 64px) + var(--intro-local-nav-height, 60px) + 16px); }
.intro-team-dungeon { display: block; min-height: 0; padding: 64px 28px; background: #161110; border-top: 1px solid #866235; }
.intro-team-dungeon__inner { max-width: 1140px; margin: 0 auto; }
.intro-team-dungeon__heading { max-width: 720px; margin-bottom: 28px; }
.intro-team-dungeon__heading > span { color: #d7b679; font: 13px Georgia, serif; }
.intro-team-dungeon h2 { color: #f2dfb4; font-size: 34px; line-height: 1.4; margin: 8px 0 14px; }
.intro-team-dungeon p { color: #c7cdca; font-size: 16px; line-height: 1.9; }
.intro-team-dungeon__scene { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 7; border-block: 1px solid #6c6044; }
.intro-team-dungeon__scene > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: transform .4s ease; }
.intro-team-dungeon__scene:hover > img { transform: scale(1.025); }
.intro-team-dungeon__scene:focus-visible { outline: 3px solid #f2d28f; outline-offset: 4px; }
.intro-team-dungeon__caption { display: flex; position: absolute; inset: auto 0 0; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: end; padding: 42px 26px 22px; background: linear-gradient(transparent, rgba(4, 8, 8, .95)); color: #fff1d2; }
.intro-team-dungeon__caption strong { font-size: 23px; line-height: 1.4; }
.intro-team-dungeon__caption span { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; color: #f6d58c; }
.intro-team-dungeon__caption i, .intro-team-dungeon__caption svg { width: 18px; height: 18px; }
.intro-team-dungeon__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0 0; gap: 0 22px; }
.intro-team-dungeon__list li { min-width: 0; border-top: 1px solid #515344; }
.intro-team-dungeon__list a { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; color: #e7d5af; text-decoration: none; font-size: 16px; line-height: 1.5; }
.intro-team-dungeon__list a:hover { color: #fff4d0; text-decoration: underline; text-underline-offset: 5px; }
.intro-team-dungeon__list small { color: #a1bbb5; font: 14px Georgia, serif; }
.intro-team-dungeon__notice { margin: 4px 0 0; color: #adb9b4 !important; font-size: 14px !important; }
@media (max-width: 980px) {
    .intro-team-dungeon__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .game-intro-page .intro-nav { justify-content: flex-start; }
    .team-guide-masthead { min-height: 66px; padding: 12px 20px; gap: 12px; }
    .team-guide-masthead > a { display: block; }
    .team-guide-masthead strong { font-size: 20px; }
    .team-guide-masthead a span { display: block; font-size: 10px; margin-top: 2px; }
    .team-guide-masthead__label { font-size: 11px; }
    #team-fieldbook .wrap { padding-inline: 20px; }
    #team-fieldbook .hero h1 { font-size: 36px; }
    #team-fieldbook .hero h1 > span { font-size: 21px; }
    #team-fieldbook .hero-copy p { font-size: 15px; max-width: 330px; }
    #team-fieldbook .hero-inner { min-height: clamp(360px, calc(100svh - 400px), 440px); padding-block: 30px 40px; }
    #team-fieldbook .expedition-hero-art { object-position: 63% center; }
    #team-fieldbook .hero::before { background: linear-gradient(90deg, #080606c9, #09070770 52%, #08060618), linear-gradient(0deg, #100c0b80, transparent 60%); }
    #team-fieldbook .hero-facts { padding-block: 16px; }
    #team-fieldbook .hero-facts > div { padding-inline: 9px; }
    #team-fieldbook .hero-facts b { font-size: 24px; }
    #team-fieldbook .hero-facts small { font-size: 11px; }
    #team-fieldbook .expedition-index__inner { min-height: 54px; gap: 12px; }
    #team-fieldbook .expedition-index .nav { gap: 16px; font-size: 13px; }
    #team-fieldbook .expedition-index .nav a:nth-child(2) { display: inline; }
    #team-fieldbook .section-head h2, #team-fieldbook .guide-topline h2, #team-fieldbook .dungeon-heading h2, #team-fieldbook .rules h2, #team-fieldbook .faq h2 { font-size: 27px; }
    #team-fieldbook .overview { padding-top: 32px; }
    .intro-team-dungeon { padding: 40px 20px; }
    .intro-team-dungeon h2 { font-size: 28px; }
    .intro-team-dungeon__scene { aspect-ratio: 5 / 4; }
    .intro-team-dungeon__caption { padding: 40px 16px 18px; gap: 10px; }
    .intro-team-dungeon__caption strong { font-size: 21px; }
    .intro-team-dungeon__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(body.team-dungeon-page), html:has(body.game-intro-page) { scroll-behavior: auto; }
    .intro-team-dungeon__scene > img { transition: none; }
    .intro-team-dungeon__scene:hover > img { transform: none; }
}
@media print {
    .team-dungeon-page { background: white; color: #222; }
    .team-dungeon-page .team-guide-masthead, .team-dungeon-page .carpediem-nav,
    .team-dungeon-page .carpediem-footer, .team-dungeon-page .music-btn,
    #team-fieldbook .expedition-index, #team-fieldbook .team-guide-return,
    #team-fieldbook .hero-facts { display: none !important; }
    #team-fieldbook { background: white; color: #222; }
    #team-fieldbook .rules, #team-fieldbook .faq, #team-fieldbook .entry-box,
    #team-fieldbook .role, #team-fieldbook .notes, #team-fieldbook .passives,
    #team-fieldbook .boss-figure, #team-fieldbook .boss-figure > img,
    #team-fieldbook .tactic { background: transparent !important; }
    #team-fieldbook p, #team-fieldbook h2, #team-fieldbook h3, #team-fieldbook h4,
    #team-fieldbook span, #team-fieldbook b, #team-fieldbook strong, #team-fieldbook li,
    #team-fieldbook summary, #team-fieldbook small { color: #222 !important; text-shadow: none; }
    #team-fieldbook .tactic svg > rect { fill: #f5f5f5; }
}
