.adventure-page { max-width: 1420px; padding-bottom: 3rem; }
.adventure-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 1rem 0 1.7rem; }
.adventure-heading h1 { margin: .3rem 0 .6rem; }
.adventure-heading p { margin: 0; color: var(--muted); }
.adventure-heading .button { flex-shrink: 0; font-size: .9rem; }
.adventure-tabs { display: flex; gap: 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.adventure-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: .8rem .2rem; color: var(--muted); font-weight: 700; display: flex; gap: .6rem; align-items: center; }
.adventure-tabs button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); }
.adventure-tools, .adventure-families, .adventure-search { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.adventure-tools { justify-content: space-between; margin-bottom: 1rem; }
.adventure-families button { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 9px; font-size: .9rem; }
.adventure-families button[aria-pressed="true"] { background: var(--sage); color: var(--green); border-color: color-mix(in srgb, var(--green) 20%, transparent); }
.adventure-coming { display: flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .85rem; padding-left: .4rem; }
.adventure-coming small { font-size: .65rem; border: 1px solid var(--line); border-radius: 5px; padding: .15rem .3rem; }
.adventure-search label { display: flex; align-items: center; gap: .5rem; margin: 0; }
.adventure-search label:has(input) { border: 1px solid var(--line); border-radius: 9px; padding-left: .7rem; background: var(--surface); color: var(--muted); }
.adventure-search input { width: 170px; border: 0; background: transparent; padding: .6rem .5rem; font-size: .85rem; box-shadow: none; }
.adventure-search select { width: auto; min-width: 140px; padding: .6rem; font-size: .85rem; border-radius: 9px; }
.adventure-summary { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; gap: 1.6rem; align-items: center; background: var(--sage); border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line)); border-radius: 16px; padding: 1.5rem; margin: 1.2rem 0 2.3rem; }
.adventure-level { width: 108px; min-height: 115px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); background: var(--surface); border-radius: 14px; color: var(--green); }
.adventure-level > span { font-size: .8rem; }
.adventure-level strong { font-size: 2.6rem; line-height: 1.15; }
.adventure-level small { font-size: .67rem; }
.adventure-xp h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.adventure-xp p { color: var(--green); font-size: .9rem; margin: .3rem 0 .7rem; }
.adventure-xp > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .75rem; margin-top: .5rem; color: var(--green); }
.adventure-counters { display: flex; text-align: center; gap: 1.5rem; padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, var(--green) 20%, transparent); }
.adventure-counters > div { display: flex; flex-direction: column; max-width: 95px; gap: .3rem; }
.adventure-counters strong { font-size: 1.8rem; line-height: 1.2; }
.adventure-counters strong small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.adventure-counters span { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.adventure-section { margin-bottom: 2.8rem; }
.adventure-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.15rem; }
.adventure-section-heading h2 { margin: .25rem 0 0; font-size: 1.5rem; }
.adventure-section-heading p, .adventure-reset { color: var(--muted); font-size: .8rem; margin: 0; }
.adventure-reset { display: flex; align-items: center; gap: .4rem; }
.adventure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.adventure-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.3rem; overflow-wrap: anywhere; position: relative; transition: border-color 160ms, box-shadow 160ms; }
.adventure-card:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); box-shadow: 0 5px 18px var(--shadow); }
.adventure-card.is-ready { border-color: #b39147; background: color-mix(in srgb, #fff0c7 22%, var(--surface)); }
.adventure-card-top { display: flex; align-items: center; gap: .85rem; min-height: 78px; margin-bottom: .8rem; }
.adventure-card-tags { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-size: .75rem; color: var(--muted); }
.adventure-reward { color: #715514; font-weight: 700; font-size: .85rem; }
.adventure-type { background: var(--surface-soft); border-radius: 5px; padding: .15rem .4rem; font-size: .7rem; }
.adventure-earned { margin-left: auto; align-self: flex-start; border: 1px solid color-mix(in srgb, var(--green) 20%, transparent); background: var(--sage); color: var(--green); border-radius: 6px; padding: .25rem .4rem; font-size: .7rem; white-space: nowrap; }
.adventure-emblem { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 22px; color: var(--green); background: #e5ecdf; border: 1px solid #becdb8; box-shadow: inset 0 0 0 5px #f6f8f0, 0 3px 0 #ccd6bf; }
.adventure-emblem > i { font-size: 1.7rem; }
.adventure-emblem > img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.adventure-emblem--social { color: #9b4c48; background: #f2e0dc; border-color: #d9b4aa; box-shadow: inset 0 0 0 5px #fcf1e9, 0 3px 0 #e2c7be; }
.adventure-emblem-leaf { position: absolute; right: -5px; bottom: -3px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #6f793f; background: var(--surface); font-size: .8rem; }
.adventure-emblem.is-earned .adventure-emblem-leaf { color: #8b671e; background: #f8e9b8; }
.adventure-card[data-owned="no"] .adventure-emblem { opacity: .78; }
.adventure-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 .55rem; }
.adventure-description { font-size: .88rem; line-height: 1.55; min-height: 4.1em; margin: 0 0 1.1rem; color: var(--muted); }
.adventure-progress { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .72rem; color: var(--muted); margin-bottom: .4rem; }
.adventure-progress strong { color: var(--ink); white-space: nowrap; }
.adventure-page progress, .adventure-card progress { appearance: none; width: 100%; display: block; height: 6px; border: none; border-radius: 8px; overflow: hidden; background: var(--track); accent-color: var(--green); }
.adventure-page progress::-webkit-progress-bar, .adventure-card progress::-webkit-progress-bar { background: var(--track); border-radius: 8px; }
.adventure-page progress::-webkit-progress-value, .adventure-card progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
.adventure-page progress::-moz-progress-bar, .adventure-card progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
.adventure-card-footer { border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: .8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 3.2rem; justify-content: center; }
.adventure-card-footer > a { text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; color: var(--green); font-size: .84rem; }
.adventure-card-footer form { margin: 0; width: 100%; }
.adventure-card-footer .button { width: 100%; display: flex; justify-content: center; gap: .5rem; padding: .65rem .7rem; font-size: .85rem; }
.adventure-card-footer small, .adventure-card-state { color: var(--muted); font-size: .75rem; }
.adventure-claimed { color: var(--green); font-size: .85rem; display: flex; gap: .4rem; align-items: center; }
.adventure-milestones { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .8rem; }
.adventure-milestones summary { color: var(--green); display: flex; justify-content: space-between; gap: .4rem; cursor: pointer; list-style: none; }
.adventure-milestones summary::-webkit-details-marker, .adventure-rules summary::-webkit-details-marker { display: none; }
.adventure-milestones ol { margin: 1rem 0 0; padding: 0; list-style: none; }
.adventure-milestones li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; border-top: 1px solid var(--line); padding: .5rem 0; font-size: .75rem; }
.adventure-milestones li.is-earned { color: var(--green); }
.adventure-milestones li.is-earned > span::before { content: '✓ '; }
.adventure-milestones p { color: var(--muted); font-size: .75rem; }
.adventure-rules { margin-top: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; }
.adventure-rules summary { display: flex; justify-content: space-between; gap: 1rem; color: var(--green); cursor: pointer; list-style: none; font-weight: 700; }
.adventure-rules > div { margin-top: 1rem; }
.adventure-rules p { max-width: 85ch; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.adventure-notice:empty { display: none; }
.adventure-notice { background: var(--sage); color: var(--green); padding: .85rem 1rem; border-radius: 9px; font-size: .9rem; }
.adventure-notice.is-error { color: var(--error); background: var(--error-bg); }
.adventure-empty { text-align: center; padding: 2rem; color: var(--muted); }
.adventure-page[data-view="quests"] [data-adventure-section="collection"], .adventure-page[data-view="collection"] [data-adventure-section="quests"], [data-adventure-card][hidden], [data-adventure-group][hidden] { display: none; }
.adventure-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: 1.2rem .8rem; text-align: center; }
.adventure-mini > a { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .7rem; font-size: .8rem; line-height: 1.4; }
.adventure-mini small { color: var(--green); font-size: .7rem; }
.adventure-profile-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.adventure-profile-heading p { color: var(--muted); margin: 0; }
@media(max-width:1150px) { .adventure-summary { grid-template-columns: auto 1fr; } .adventure-counters { grid-column: 1 / -1; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: space-around; } .adventure-counters > div { max-width: none; } .adventure-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width:650px) { .adventure-heading { display: block; } .adventure-heading .button { margin-top: 1rem; } .adventure-heading h1 { font-size: 1.8rem; } .adventure-heading p { font-size: .9rem; line-height: 1.5; } .adventure-tabs { gap: 1.1rem; } .adventure-tabs button { font-size: .87rem; } .adventure-tools { gap: .9rem; } .adventure-families { gap: .25rem; } .adventure-coming { font-size: .75rem; } .adventure-search { width: 100%; flex-wrap: nowrap; } .adventure-search label:has(input) { min-width: 0; flex: 1; } .adventure-search input { width: 100%; min-width: 0; } .adventure-search select { min-width: 125px; } .adventure-summary { padding: 1rem; gap: .9rem; } .adventure-level { width: 80px; min-height: 100px; } .adventure-level strong { font-size: 2rem; } .adventure-xp h2 { font-size: 1.1rem; } .adventure-xp p { font-size: .8rem; } .adventure-counters { gap: .7rem; } .adventure-counters strong { font-size: 1.5rem; } .adventure-counters span { font-size: .7rem; } .adventure-section-heading { display: block; } .adventure-reset { margin-top: .6rem; } .adventure-grid { grid-template-columns: 1fr; } .adventure-card { padding: 1.2rem; } .adventure-description { min-height: 0; } .adventure-section-heading h2 { font-size: 1.3rem; } }
@media(prefers-reduced-motion:reduce) { .adventure-card { transition: none; } }

.adventure-refresh { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; border: 0; background: transparent; color: var(--muted); font-size: .8rem; }
.adventure-refresh[aria-busy="true"] i { animation: fa-spin 1s linear infinite; }
@media(prefers-reduced-motion:reduce) { .adventure-refresh[aria-busy="true"] i { animation: none; } }

.adventure-budget-note { color: var(--green); font-size: .85rem; margin: -1rem 0 2rem; line-height: 1.6; }
