:root {
  color-scheme: light;
  --ink: #293a35; --muted: #64706a; --faint: #758078; --line: #dfe5dd;
  --panel: #fff; --panel-raised: #f0f3ed; --deep: #f7f8f5;
  --green: #3e705c; --green-soft: #e9efe7; --gold: #8a7043; --red: #a05046; --blue: #486d85;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
input, select { min-width: 0; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { margin: 8px 0 16px; font-size: clamp(34px, 4vw, 48px); letter-spacing: .045em; }
h2 { font-size: 25px; }
h3 { font-size: 17px; font-weight: 600; }
p + p { margin-top: 12px; }
ul { padding-left: 1.3em; }
li + li { margin-top: 7px; }
::selection { background: #d9e6d7; }
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 9px 16px; background: var(--panel); border: 1px solid var(--green); }
.skip-link:focus { top: 12px; }
.site-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; flex: 0 0 216px; width: 216px; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; padding: 34px 20px 24px; border-right: 1px solid var(--line); background: #f0f3ed; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 7px 52px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 37px; height: 43px; border: 1px solid #9fae9c; border-radius: 2px; color: var(--green); font: 27px var(--serif); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: 12px; letter-spacing: .16em; }
.nav-label { margin: 0 12px 13px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px; color: var(--muted); font-size: 14px; }
.nav a span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav a:hover { background: #e7ece3; color: var(--ink); }
.nav a.active { background: #e1e9dd; color: #305840; font-weight: 600; }
.nav a.active span { color: #4f6955; font-weight: 400; }
.sidebar-foot { display: grid; gap: 7px; margin-top: auto; padding: 30px 12px 0; color: var(--muted); font-size: 12px; }
.sidebar-foot a { display: flex; justify-content: space-between; gap: 12px; }
.sidebar-foot a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.sidebar-foot small { padding-top: 17px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 11px; }
.main-content { min-width: 0; flex: 1; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 12px clamp(24px, 4.2vw, 64px); border-bottom: 1px solid var(--line); background: rgb(247 248 245 / 96%); }
.breadcrumbs { flex: 1; color: var(--muted); font-size: 12px; }
.global-search { display: flex; align-items: center; width: 254px; max-width: 50%; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.global-search input { width: 100%; padding: 7px 11px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); font-size: 12px; }
.global-search button { border: 0; background: transparent; padding: 6px 11px; color: var(--muted); }
.global-search:focus-within { border-color: var(--green); }
.menu-button { display: none; flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-size: 13px; }
.menu-shade { position: fixed; inset: 0; z-index: 6; border: 0; background: rgb(32 44 37 / 30%); }
.page-content { max-width: 1220px; min-height: calc(100vh - 172px); margin: 0 auto; padding: 46px clamp(24px, 4.2vw, 64px) 64px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin: 0 clamp(24px, 4.2vw, 64px); padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.eyebrow { color: var(--green); font-size: 11px; letter-spacing: .12em; }
.page-intro { max-width: 780px; margin-bottom: 22px; }
.page-intro h1 { font-size: 37px; }
.page-intro p { color: var(--muted); max-width: 100%; font-size: 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 39px 0 20px; }
.section-heading p, .section-heading > span { color: var(--muted); font-size: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 39px; padding: 7px 16px; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #fff; font-size: 13px; }
.button:hover { background: #315c49; }
.button.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--green-soft); }
.text-link, .keyword, .keyword-link, .home-note a { color: var(--green); text-decoration: underline; text-decoration-color: #becfc1; text-underline-offset: 4px; }
.text-link:hover, .keyword-link:hover, .home-note a:hover { text-decoration-color: var(--green); }

/* A compact introduction keeps the catalogue within the first screen. */
.home-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .85fr); gap: 40px; align-items: center; padding-bottom: 31px; }
.home-copy h1 { font-size: clamp(38px, 4.5vw, 52px); margin: 11px 0 17px; }
.home-copy > p { color: var(--muted); font-size: 14px; max-width: 490px; }
.home-counts { display: flex; flex-wrap: wrap; gap: 5px 17px; margin-top: 20px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-counts strong { color: var(--ink); font-weight: 600; }
.home-art img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 5px; }
.home-art figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; text-align: right; }
.home-search { display: flex; align-items: stretch; gap: 0; max-width: 100%; margin: 0 0 33px; border: 1px solid #cad6c7; border-radius: 5px; background: var(--panel); }
.home-search input { flex: 1; min-width: 0; border: 0; border-radius: inherit; padding: 13px 17px; background: transparent; color: var(--ink); font-size: 14px; }
.home-search button { padding: 10px 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0 4px 4px 0; background: transparent; color: var(--green); font-size: 13px; }
.home-search button:hover { background: var(--green-soft); }
.directory-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 38px; border-top: 1px solid var(--line); }
.directory-link { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; padding: 23px 4px; border-bottom: 1px solid var(--line); }
.directory-link > div { flex: 1; min-width: 0; }
.directory-link h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.directory-link p { color: var(--muted); font-size: 12px; }
.directory-number { color: var(--muted); font-family: var(--serif); font-size: 14px; }
.directory-count { color: var(--green); font-size: 13px; white-space: nowrap; }
.directory-link:hover h3 { color: var(--green); }
.directory-link:hover { background: rgb(233 239 231 / 40%); }
.home-mechanics { margin-top: 5px; }
.keyword-links { display: flex; flex-wrap: wrap; gap: 11px 23px; }
.home-mechanics a { font-size: 13px; color: var(--green); border-bottom: 1px solid #c9d5c8; padding-bottom: 2px; }
.home-mechanics a:hover { border-color: var(--green); }
.home-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.home-note h3 { margin-bottom: 8px; font-size: 14px; }

/* Catalogue controls and the two reading densities. */
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.search { flex: 1 1 190px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 13px; }
.search::placeholder, .global-search input::placeholder, .home-search input::placeholder { color: #788278; }
.select { max-width: 100%; padding: 9px 29px 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: 13px; }
.view-switch { display: flex; flex-shrink: 0; gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 4px; }
.view-switch button { min-height: 32px; padding: 3px 10px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); font-size: 12px; }
.view-switch button[aria-pressed="true"], .view-switch button.active { background: var(--green-soft); color: var(--green); }
.result-count, .list-count, .list-status { color: var(--muted); font-size: 12px; margin: 10px 0 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card-tile { display: flex; flex-direction: column; min-width: 0; text-align: left; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.card-tile:hover { border-color: #9cb49f; box-shadow: 0 3px 14px rgb(31 58 40 / 5%); }
.card-tile > img { display: block; width: 100%; aspect-ratio: 1.6; object-fit: contain; border-radius: 3px; background: #f0f2ee; }
.card-meta { display: block; width: 100%; padding: 13px 1px 2px; }
.card-title { display: flex !important; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-title strong { color: var(--ink); font-size: 16px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.card-title small { color: var(--green); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-meta > span { display: block; color: var(--muted); font-size: 12px; }
.card-meta > small { display: block; color: var(--green); font-size: 12px; margin-top: 3px; }
.tag { margin-right: 7px; color: var(--green); font-style: normal; font-size: 12px; }
.card-meta .card-summary { display: block; margin-top: 11px; padding-top: 11px; border-top: 1px solid #edf0e9; color: #536259; white-space: pre-line; font-size: 13px; line-height: 1.8; }
.card-grid.is-list { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.card-grid.is-list .card-tile { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 20px; padding: 18px 5px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.card-grid.is-list .card-tile:hover { background: var(--green-soft); }
.card-grid.is-list .card-tile > img { aspect-ratio: 1.32; }
.card-grid.is-list .card-meta { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); align-items: center; column-gap: 28px; padding: 0; }
.card-grid.is-list .card-title { grid-column: 1; }
.card-grid.is-list .card-category { grid-column: 1; align-self: start; }
.card-grid.is-list .card-summary { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; font-size: 14px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.list-heading .list-status { margin: 0; }
.page-index > span { color: var(--muted); font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 38px 20px; color: var(--muted); text-align: center; background: var(--panel-raised); border-radius: 5px; font-size: 14px; }
.character-overview { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 35px; margin: 0 0 30px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.character-overview p { font-size: 14px; color: var(--muted); }
.character-overview img { max-height: 230px; width: 100%; object-fit: contain; }
.character-overview .keyword-links { margin-top: 15px; color: var(--green); font-size: 13px; }
.character-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; font-size: 13px; }
.character-facts dt { color: var(--muted); font-size: 12px; }
.character-facts dd { margin: 0; }
.panel { padding: 22px; background: var(--panel-raised); border-radius: 5px; }
.panel h3 { margin-bottom: 10px; }
.panel p { font-size: 14px; color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: start; }
.portrait { display: block; width: 100%; max-height: 280px; object-fit: contain; }
.relic-list { display: grid; gap: 0; }
.relic { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 22px; align-items: center; padding: 25px 5px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.relic img { width: 66px; height: 66px; object-fit: contain; }
.relic h2, .relic h3, .relic strong { display: block; margin: 0 0 5px; font-family: inherit; font-size: 16px; font-weight: 600; }
.relic p { color: var(--muted); font-size: 14px; white-space: pre-line; }
.relic small, .relic-group { display: block; margin-bottom: 4px; color: var(--green); font-size: 12px; }
.relic-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.relic-heading > span { color: var(--green); font-size: 12px; }
.relic:target { background: var(--green-soft); }

/* Rules remain readable; narrative is available on demand. */
.page-index { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-index a { color: var(--green); font-size: 13px; text-underline-offset: 4px; }
.page-index a:hover { text-decoration: underline; }
.event-list, .mechanic-list { display: grid; gap: 45px; }
.event-card { padding-bottom: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.event-visual { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 27px; align-items: center; margin-bottom: 25px; }
.event-visual img { display: block; width: 180px; aspect-ratio: 1.36; object-fit: cover; border-radius: 4px; }
.event-visual h2 { margin: 3px 0 8px; }
.event-visual p { color: var(--muted); font-size: 14px; }
.event-act { color: var(--green); font-size: 12px; }
.event-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; table-layout: fixed; }
.event-table th { padding: 11px 13px; background: var(--panel-raised); color: var(--muted); font-size: 12px; font-weight: 500; }
.event-table td { padding: 15px 13px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.event-table th:first-child { width: 25%; }
.event-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.event-table tbody th { padding: 15px 13px; vertical-align: top; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.event-table tbody th small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.event-extra ul { color: var(--muted); font-size: 13px; }
details { margin-top: 15px; }
summary { width: fit-content; padding: 4px 0; color: var(--green); cursor: pointer; font-size: 13px; }
details[open] > summary { margin-bottom: 13px; }
.event-story { max-width: 70ch; white-space: pre-line; color: var(--muted); font-family: var(--serif); font-size: 15px; line-height: 1.9; }
.event-notes, .event-result { color: var(--muted); font-size: 13px; }
.event-result { margin-top: 12px; white-space: pre-line; }
.event-notes ul { margin: 8px 0 0; }
.mechanic-detail { padding-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.mechanic-head { margin-bottom: 18px; }
.mechanic-head h2 { margin: 5px 0 10px; }
.mechanic-key { color: var(--green); font-size: 11px; letter-spacing: .08em; }
.mechanic-head p { color: var(--muted); font-size: 14px; }
.mechanic-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr); gap: 34px; }
.mechanic-columns > div > strong, .mechanic-example > strong { font-size: 13px; font-weight: 600; }
.mechanic-columns h3 { font-size: 13px; }
.mechanic-columns ul { margin: 10px 0 0; color: #536259; font-size: 14px; }
.mechanic-example { align-self: start; padding: 17px 20px; border-left: 2px solid #b7c9ae; background: var(--panel-raised); }
.mechanic-example p { margin: 9px 0 16px; color: #536259; font-size: 13px; }
.mechanic-example .button { font-size: 12px; min-height: 34px; padding: 4px 10px; }
.mechanic-detail:target .mechanic-head h2 { color: var(--green); }
.search-results { display: grid; gap: 30px; }
.search-results h2 { margin-bottom: 12px; font-size: 22px; }
.search-results .section-heading { margin: 18px 0 5px; }
.search-result { display: block; padding: 16px 3px; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--green-soft); }
.search-result strong { color: var(--ink); font-size: 15px; }
.search-result p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.search-result small, .search-result span { color: var(--green); font-size: 12px; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(30 43 34 / 35%); backdrop-filter: blur(3px); }
body.modal-open { overflow: hidden; }
.modal { position: relative; width: min(850px, 100%); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 37px; border: 1px solid var(--line); border-radius: 8px; background: var(--deep); box-shadow: 0 20px 80px rgb(30 43 34 / 12%); }
.modal-close { position: absolute; top: 9px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 26px; }
.modal-close:hover { background: var(--green-soft); }
.detail { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 30px; align-items: start; }
.detail > img { display: block; width: 100%; margin-top: 12px; border-radius: 4px; background: var(--panel-raised); }
.detail-art img { display: block; width: 100%; border-radius: 4px; background: var(--panel-raised); }
.detail-art p { margin-top: 10px; font-size: 11px !important; color: var(--muted); }
.detail .detail-hint { margin-top: 20px; font-size: 11px; color: var(--muted); }
.detail h2 { margin: 4px 0 9px; font-size: 30px; }
.detail .detail-label { color: var(--green); font-size: 12px; }
.detail p { color: #536259; font-size: 14px; white-space: pre-line; }
.detail-row { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 9px 0 21px; }
.detail-chip { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.detail-effects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.effect-block { padding-top: 13px; border-top: 1px solid var(--line); min-width: 0; }
.effect-block h3, .effect-block > strong { display: block; margin-bottom: 9px; color: var(--green); font-size: 12px; font-weight: 600; }
.effect-block p { font-size: 14px; }
.detail-links { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
@media (min-width: 1500px) { .page-content { padding-top: 54px; } }
@media (max-width: 1050px) {
  .sidebar { width: 194px; flex-basis: 194px; padding-inline: 14px; }
  .home-intro { gap: 25px; grid-template-columns: minmax(0, 1.3fr) minmax(180px, .8fr); }
  .mechanic-columns { grid-template-columns: 1fr; gap: 20px; }
  .detail { grid-template-columns: 165px minmax(0, 1fr); gap: 23px; }
}
@media (max-width: 800px) {
  .sidebar { position: fixed; z-index: 7; width: 232px; transform: translateX(-100%); visibility: hidden; transition: transform .18s; }
  .sidebar.open { transform: translateX(0); visibility: visible; box-shadow: 10px 0 30px rgb(0 0 0 / 8%); }
  .menu-button { display: block; }
  .topbar { min-height: 64px; gap: 13px; padding: 10px 24px; }
  .global-search { width: 235px; }
  .page-content { padding-top: 32px; }
  .split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  body { font-size: 14px; }
  .topbar { padding-inline: 17px; gap: 10px; }
  .breadcrumbs { font-size: 11px; white-space: nowrap; }
  .global-search { width: auto; flex: 1; max-width: 52%; }
  .global-search input { padding: 8px; font-size: 12px; }
  .global-search button { padding: 5px 8px; }
  .page-content { padding: 28px 20px 45px; }
  .page-footer { margin-inline: 20px; gap: 5px; flex-direction: column; }
  .home-intro { grid-template-columns: 1fr; gap: 23px; padding-bottom: 24px; }
  .home-copy h1 { font-size: 40px; }
  .home-art img { aspect-ratio: 2.4; object-position: center 45%; }
  .home-art figcaption { font-size: 11px; }
  .home-counts { gap: 5px 12px; }
  .home-search { margin-bottom: 27px; }
  .home-search input { padding: 12px; font-size: 14px; }
  .home-search button { padding-inline: 13px; }
  .section-heading { margin-top: 30px; gap: 10px; align-items: baseline; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 11px; max-width: 160px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-link { padding: 20px 1px; }
  .keyword-links { gap: 12px 18px; }
  .page-intro h1 { font-size: 34px; }
  .toolbar { gap: 8px; }
  .toolbar .search { flex-basis: 100%; }
  .select { flex: 1 1 auto; padding: 9px 22px 9px 9px; font-size: 12px; }
  .view-switch { margin-left: auto; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .card-tile { padding: 10px; }
  .card-title strong { font-size: 15px; }
  .card-title { gap: 7px; }
  .card-meta .card-summary { font-size: 12px; }
  .card-grid.is-list .card-tile { grid-template-columns: 65px minmax(0, 1fr); gap: 10px 15px; padding-block: 17px; }
  .card-grid.is-list .card-summary { margin-top: 8px; font-size: 13px; }
  .card-grid.is-list .card-meta { display: block; grid-column: 2; }
  .card-grid.is-list .card-tile { align-items: start; }
  .character-overview { grid-template-columns: minmax(0, 1fr) 95px; gap: 17px; }
  .character-overview img { max-height: 175px; }
  .mini-grid { grid-template-columns: 1fr; gap: 13px; }
  .relic { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 21px; }
  .relic img { width: 48px; height: 48px; }
  .event-visual { grid-template-columns: 95px minmax(0, 1fr); gap: 17px; }
  .event-visual img { width: 95px; aspect-ratio: 1; }
  .event-visual h2 { font-size: 24px; }
  .event-visual p { font-size: 12px; }
  .event-table th, .event-table td { padding: 10px 7px; font-size: 12px; }
  .event-table td small { font-size: 11px; }
  .event-table tbody th { padding: 10px 7px; font-size: 12px; }
  .event-table tbody th small { font-size: 11px; }
  .mechanic-list, .event-list { gap: 30px; }
  .modal-backdrop { padding: 12px; }
  .modal { padding: 29px 20px; max-height: calc(100dvh - 24px); }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .detail > img { width: 160px; margin: 0 auto; }
  .detail-art { max-width: 160px; margin: 0 auto; }
  .detail h2 { font-size: 27px; }
  .detail-effects { gap: 17px; }
}
@media (max-width: 370px) {
  .topbar .breadcrumbs { display: none; }
  .global-search { max-width: none; }
  .card-grid { grid-template-columns: 1fr; }
  .detail-effects { grid-template-columns: 1fr; }
}
@media (pointer: coarse) {
  .nav a, .menu-button, .global-search button, .view-switch button, .modal-close { min-height: 44px; }
  input[type="search"], select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
