.quests-page [hidden] { display: none !important; }
.quests-page { min-width: 0; }
.quest-shell { min-height: calc(100vh - 190px); padding-top: 92px; }
.quest-categories, .quest-list-view, .quest-detail { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: clamp(68px, 8vw, 112px) 0; }
.quest-page-head { max-width: 760px; margin-bottom: 48px; }
.quest-page-head h1, .quest-list-head h1, .quest-detail-head h1 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.quest-page-head h1 { font-size: clamp(52px, 7vw, 90px); }
.quest-page-head p { max-width: 66ch; margin: 24px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.45vw, 19px); }
.kingdom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.kingdom-card { min-width: 0; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); transition: color .18s ease, background .18s ease; }
.kingdom-card:hover { color: var(--ink); background: var(--mint-100); }
.kingdom-card:focus-visible, .quest-search input:focus-visible, .quest-search button:focus-visible, .place-filter button:focus-visible, .quest-active-filter button:focus-visible, .quest-global-link:focus-visible, .quest-item:focus-visible, .detail-back:focus-visible, .quest-lightbox button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.kingdom-card span { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.kingdom-card strong { color: var(--ink); display: flex; align-items: end; justify-content: space-between; gap: 14px; font-size: clamp(21px, 2.1vw, 29px); line-height: 1.25; }
.kingdom-card strong b { color: var(--mint-500); font-size: 20px; }
.kingdom-card.is-empty { background: rgba(255,255,255,.38); }
.kingdom-card.is-empty span { color: var(--ink-3); }
.quest-disclaimer { margin: 28px 0 0; color: var(--ink-3); font-size: 12px; }
.quest-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 36px; color: var(--ink-3); font-size: 13px; }
.quest-breadcrumb a { color: var(--mint-600); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.quest-list-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.quest-list-head h1 { font-size: clamp(42px, 5.5vw, 72px); }
.quest-list-head h1 + p { margin: 16px 0 0; color: var(--ink-3); }
.quest-list-head > p { margin: 0 0 7px; color: var(--ink-3); font-size: 13px; }
.quest-list-head strong { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
.quest-search { max-width: 650px; margin-top: 32px; }
.quest-search label { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 12px; font-weight: 800; }
.quest-search div { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: #fff; }
.quest-search input { min-width: 0; height: 50px; padding: 0 15px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.quest-search input::placeholder { color: #60776d; }
.quest-search button { padding: 0 20px; border: 0; color: #fff; background: var(--ink); font-weight: 900; cursor: pointer; }
.quest-global-search { max-width: 760px; margin: 0 0 34px; }
.quest-global-search p { margin: 9px 0 0; color: var(--ink-3); font-size: 12px; }
.quest-global-search [data-global-clear] { margin-left: 10px; padding: 0; border: 0; color: var(--mint-600); background: transparent; font-size: inherit; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quest-global-results { margin: 0 0 42px; }
.quest-global-results h2 { margin: 0; color: var(--ink); font-size: 24px; }
.quest-global-results h2 span { margin-left: 8px; color: var(--ink-3); font-size: 14px; font-weight: 800; }
.quest-global-results .quest-list { margin-top: 16px; }
.quest-global-link { display: inline-block; margin-top: 14px; color: var(--mint-600); font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.place-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.place-filter button { min-height: 36px; padding: 7px 13px; border: 1px solid var(--mint-200); border-radius: 999px; color: var(--mint-600); background: var(--mint-100); font-size: 12px; font-weight: 800; cursor: pointer; }
.place-filter button:hover, .place-filter button[aria-pressed="true"] { color: #fff; border-color: var(--mint-600); background: var(--mint-600); }
.quest-active-filter { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 11px 15px; color: var(--ink-2); background: var(--mint-100); font-size: 13px; }
.quest-active-filter button { border: 0; color: var(--mint-600); background: transparent; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; margin-top: 34px; border-top: 1px solid var(--line); }
.quest-item { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: color .18s ease, background .18s ease; }
.quest-item:hover { color: var(--mint-600); background: rgba(223,251,234,.62); }
.quest-item-image { width: 72px; height: 72px; padding: 4px; object-fit: contain; background: rgba(223,251,234,.48); }
.quest-item-placeholder { width: 72px; height: 72px; display: grid; place-items: center; color: var(--mint-600); background: var(--mint-100); font-size: 13px; font-weight: 900; }
.quest-item-copy { min-width: 0; }
.quest-item-copy em { display: block; margin-bottom: 4px; color: var(--mint-600); font-size: 12px; font-style: normal; font-weight: 900; }
.quest-item-copy strong { display: block; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }
.quest-item-copy small { min-width: 0; display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--ink-3); line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.quest-item > b { color: var(--mint-500); }
.quest-item:hover .quest-item-copy strong, .quest-item:focus-visible .quest-item-copy strong { color: var(--ink); }
.quest-status, .quest-inline-status { min-height: 300px; display: grid; place-content: center; justify-items: center; padding: 52px 20px; text-align: center; }
.quest-status { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }
.quest-inline-status { margin-top: 28px; border: 1px dashed var(--line); }
.quest-status p, .quest-inline-status p { max-width: 48ch; margin: 14px 0 0; color: var(--ink-3); }
.quest-status h1, .quest-inline-status h2 { margin: 12px 0 0; font-size: 22px; }
.quest-loader { width: 30px; height: 30px; border: 3px solid var(--mint-200); border-top-color: var(--mint-600); border-radius: 50%; animation: quest-spin .8s linear infinite; }
.quest-retry { min-height: 42px; display: inline-flex; align-items: center; margin-top: 20px; padding: 9px 16px; border: 1px solid var(--ink); color: #fff; background: var(--ink); font-weight: 900; cursor: pointer; }
.quest-detail { max-width: 1050px; }
.detail-back { display: inline-flex; margin-bottom: 28px; color: var(--mint-600); font-weight: 900; text-decoration: underline; text-underline-offset: 5px; }
.quest-detail-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); align-items: center; gap: clamp(30px, 6vw, 76px); padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.quest-detail-head.no-image { grid-template-columns: 1fr; }
.quest-detail-head h1 { font-size: clamp(43px, 6vw, 74px); overflow-wrap: anywhere; }
.quest-detail-location { display: inline-block; margin: 0 0 15px; padding: 5px 10px; color: var(--mint-600); background: var(--mint-100); font-size: 12px; font-weight: 900; }
.quest-detail-summary { max-width: 68ch; margin: 20px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.5vw, 19px); }
.quest-detail-cover { width: 100%; max-height: 260px; display: block; object-fit: contain; cursor: zoom-in; }
.quest-content { min-width: 0; width: 100%; margin-top: 42px; color: var(--ink-2); overflow-wrap: anywhere; }
.quest-content [id] { scroll-margin-top: 92px; }
.quest-content p { max-width: 75ch; margin: 0 0 1.15em; }
.quest-content h2, .quest-content h3, .quest-content h4 { margin: 2em 0 .65em; color: var(--ink); line-height: 1.3; }
.quest-content h2 { font-size: 27px; }.quest-content h3 { font-size: 21px; }.quest-content h4 { font-size: 17px; }
.quest-content a { color: var(--mint-600); text-decoration: underline; text-underline-offset: 3px; }
.quest-content img { max-width: 100%; height: auto; display: block; margin: 24px auto; object-fit: contain; cursor: zoom-in; }
.quest-table-scroll { max-width: 100%; margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-color: var(--mint-500) var(--mint-100); }
.quest-table-scroll:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.quest-table-scroll table { width: 100%; margin: 0; border-collapse: collapse; table-layout: auto; font-variant-numeric: tabular-nums; }
.quest-table-scroll.is-wide table { width: max-content; min-width: 100%; }
.quest-table-scroll.is-wide th, .quest-table-scroll.is-wide td { max-width: 28ch; }
.quest-content th, .quest-content td { min-width: 90px; padding: 10px 12px; border: 1px solid var(--line); text-align: center; vertical-align: middle; overflow-wrap: anywhere; white-space: normal; }
.quest-content th p, .quest-content td p { margin: 0 auto; }
.quest-content th { color: var(--ink); background: var(--mint-100); }
.quest-content tbody tr:nth-child(odd) td { background: #fff; }
.quest-content tbody tr:nth-child(even) td { background: #ecfbf2; }
.quest-content thead + tbody tr:nth-child(odd) td { background: #ecfbf2; }
.quest-content thead + tbody tr:nth-child(even) td { background: #fff; }
.quest-detail-note { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.quest-lightbox { max-width: min(92vw, 1100px); max-height: 90vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.quest-lightbox::backdrop { background: rgba(3,8,20,.88); }
.quest-lightbox img { max-width: 90vw; max-height: 84vh; display: block; object-fit: contain; background: #fff; }
.quest-lightbox button { position: absolute; z-index: 1; top: -42px; right: 0; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #fff; background: rgba(3,8,20,.72); font-size: 24px; cursor: pointer; }
@keyframes quest-spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) { .kingdom-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .quest-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .quest-shell { padding-top: 70px; } .quest-categories, .quest-list-view, .quest-detail, .quest-status { width: calc(100% - 40px); padding-block: 60px; } .quest-list-head { align-items: start; flex-direction: column; gap: 12px; } .quest-detail-head { grid-template-columns: 1fr; align-items: start; } .quest-detail-cover { max-width: 420px; } }
@media (max-width: 520px) { .kingdom-grid { grid-template-columns: 1fr; } .kingdom-card { min-height: 142px; } .quest-search div { grid-template-columns: 1fr; } .quest-search button { min-height: 44px; } .quest-item { grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; } .quest-item-image, .quest-item-placeholder { width: 56px; height: 56px; } .place-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; } .place-filter button { flex: 0 0 auto; } }
@media (prefers-reduced-motion: reduce) { .quest-loader { animation-duration: 1.8s; } .kingdom-card, .quest-item { transition: none; } }
