:root {
  color-scheme: dark;
  --bg: #151310;
  --surface: #1d1915;
  --raised: #251e18;
  --line: #3b3025;
  --line-light: #594332;
  --text: #f7edda;
  --muted: #b6a591;
  --quiet: #a39484;
  --gold: #edbb73;
  --gold-bright: #ffd394;
  --dark-gold: #251608;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #5b4834 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); min-height: 100vh; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
img { display: block; max-width: 100%; }
button { touch-action: manipulation; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.17em; }
.frame { width: min(1280px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; translate: 0 -150%; padding: 8px 14px; background: var(--gold); color: var(--bg); }
.skip:focus { translate: 0; }
.site-header { border-bottom: 1px solid #312720; background: #191612; }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; gap: 11px; align-items: center; justify-self: start; }
.brand strong { display: block; line-height: 1.25; letter-spacing: .1em; font-size: 19px; }
.brand small { display: block; margin-top: 4px; font: 600 9px/1.15 system-ui,sans-serif; letter-spacing: .18em; color: #d4a976; white-space: nowrap; }
#navigation { display: flex; align-self: stretch; gap: clamp(21px, 3vw, 49px); }
.nav-link { position: relative; display: flex; gap: 7px; align-items: center; min-height: 44px; padding-inline: 2px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.nav-link:hover, .nav-link[aria-current] { color: var(--gold-bright); }
.nav-link[aria-current]::after { content: ""; position: absolute; height: 2px; inset: auto 0 0; background: var(--gold); }
.points-badge { min-height: 39px; justify-self: end; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-light); border-radius: 6px; padding: 5px 11px; color: var(--gold); background: #211a14; white-space: nowrap; }
.points-badge span { color: var(--muted); font-size: 13px; }
.points-badge strong { font-variant-numeric: tabular-nums; font-size: 15px; }
.points-badge:hover { border-color: var(--gold); }
#main { min-height: calc(100vh - 146px); padding-top: 31px; padding-bottom: 49px; }
.site-footer { display: flex; align-items: center; gap: 14px 28px; justify-content: space-between; flex-wrap: wrap; padding-block: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-dot { color: var(--gold); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 452px; overflow: hidden; border: 1px solid #6a4a30; border-radius: 13px; background: #211811 url("./assets/hero.webp") center 61% / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #1b140ff5 2%, #21160ee8 28%, #23170d88 51%, #2b1b0d18 80%), linear-gradient(0deg, #1b130cdc, transparent 53%); }
.hero::after { content: ""; position: absolute; inset: 8px; z-index: -1; border: 1px solid #deb37f22; border-radius: 8px; pointer-events: none; }
.hero-copy { padding: 38px 0 34px clamp(38px, 5.2vw, 77px); }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 13px; font-weight: 650; letter-spacing: .14em; }
.kicker::before { content: "✦"; font-size: 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(51px, 5.4vw, 84px); letter-spacing: .065em; font-weight: 900; line-height: 1.12; color: #fff2d9; margin-block: 14px; text-shadow: 0 3px 22px #180e08; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-copy > p:not(.kicker) { color: #dfceba; font-size: 15px; max-width: 34ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 15px; row-gap: 10px; margin-top: 22px; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line-light); border-radius: 6px; padding: 8px 15px; background: #261e17; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35; text-align: center; transition: background-color 150ms, border-color 150ms, color 150ms, translate 150ms; }
.button:not(:disabled):hover { border-color: var(--gold); background: #392a1d; }
.button:not(:disabled):active { translate: 0 1px; }
.button.primary { background: #eeb96e; border-color: #f5c987; color: var(--dark-gold); }
.button.primary:not(:disabled):hover { background: #ffd69d; }
.button.primary:disabled, .button:disabled { background: #2c251e; border-color: #493d31; color: #b1a291; opacity: .82; }
.button.large { min-height: 49px; padding: 9px 20px; font-size: 16px; }
.button.icon-only { min-width: 42px; padding: 8px; }
.text-button { color: var(--gold); border: 0; padding: 4px 0; background: transparent; text-underline-offset: 5px; font-size: 14px; }
.text-button:hover { text-decoration: underline; }
.quota { display: flex; align-items: center; gap: 7px; color: #e1c9a9; font-size: 13px; white-space: nowrap; }
.quota strong { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.quota-dots { display: inline-flex; gap: 4px; }
.quota-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #8d6f51; }
.quota-dots i.on { background: #f3c582; }
.pack-art { position: relative; justify-self: center; width: 325px; aspect-ratio: 1.16; margin-left: -20px; margin-top: 1px; perspective: 900px; filter: drop-shadow(0 21px 25px #160a05a6); pointer-events: none; }
.pack-sheet { width: 53%; height: 96%; position: absolute; left: 24%; top: 2%; border: 1px solid #a17447; border-radius: 8px; box-shadow: 0 12px 27px #130b06b0; background: radial-gradient(ellipse at 57% 24%, #754e2b, transparent 54%), repeating-linear-gradient(38deg,#4b311c 0 1px,#251a13 1px 7px,#2b2017 7px 8px); }
.pack-sheet::after { content: ""; position: absolute; inset: 11px 7px; border: 1px solid #e0ad775c; border-radius: 4px; pointer-events: none; }
.pack-left { transform: translateX(-67px) translateY(14px) rotate(-15deg); }
.pack-right { transform: translateX(68px) translateY(11px) rotate(15deg); background-color: #322017; }
.pack-center { display: flex; justify-content: space-between; align-items: center; flex-direction: column; padding: 22px 7px 17px; transform: rotate(-5deg); overflow: hidden; background: linear-gradient(180deg, #241810 10%, #2216131c 47%, #27170fe8 87%), url("./assets/hero.webp") 72% 56% / auto 98% no-repeat; color: #ffe3ae; }
.pack-center::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg,#2c2219 0 3px,#78573d 3px 4px,#2b211b 4px 5px) 0 0 / 100% 9px no-repeat, repeating-linear-gradient(90deg,#2c2219 0 3px,#78573d 3px 4px,#2b211b 4px 5px) 0 100% / 100% 9px no-repeat; pointer-events: none; }
.pack-emblem { width: 35px; }
.pack-name { text-align: center; }
.pack-name strong { display: block; font: 900 25px/1.15 var(--serif); letter-spacing: .12em; }
.pack-name em { display: block; margin-top: 8px; font: 700 8px/1.3 system-ui,sans-serif; letter-spacing: .18em; text-transform: uppercase; font-style: normal; }
.pack-edition { font-size: 9px; letter-spacing: .17em; color: #f5cf94; }
.section { margin-top: 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 18px; margin-bottom: 16px; }
.section-heading h2 { font-size: 25px; letter-spacing: .04em; line-height: 1.35; }
.section-heading p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.page-heading { margin: 8px 0 24px; }
.page-heading h1 { font: 850 clamp(33px,4.5vw,54px)/1.17 var(--serif); letter-spacing: .06em; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 15px; }
.progress-summary { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.stat { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; background: var(--surface); }
.stat strong { color: var(--gold); font-size: 15px; }
.card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.city-card { width: 100%; min-width: 0; position: relative; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; padding: 0; border-radius: 8px; border: 1px solid color-mix(in srgb,var(--rarity) 37%,#322823); background: #201916; color: var(--text); text-align: left; transition: transform 180ms, border-color 180ms, box-shadow 180ms; }
.city-card:hover { transform: translateY(-3px); border-color: var(--rarity); box-shadow: 0 8px 26px #0005; }
.city-card .card-picture { position: relative; display: block; overflow: hidden; min-height: 132px; aspect-ratio: 1.55; background: #44352c; }
.city-card .card-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#110d0a51,transparent 36%,transparent 54%,#1c130ce8 100%); }
.artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.city-card.is-locked .artwork { filter: saturate(.6) brightness(.8); }
.city-card.is-locked:hover .artwork { filter: saturate(.95) brightness(.95); }
.card-topline { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 4px; top: 9px; left: 9px; right: 9px; }
.rarity { display: inline-flex; justify-content: center; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb,var(--rarity) 52%,#34281f); background: #1b1512ed; padding: 2px 7px; border-radius: 4px; color: var(--rarity); font-size: 12px; white-space: nowrap; font-weight: 650; }
.card-count, .card-new { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 23px; padding: 1px 5px; border-radius: 4px; background: #19130fef; color: #f4d6a7; font-size: 12px; white-space: nowrap; }
.card-new { color: #2c1809; background: #f2be7a; font-weight: 750; }
.card-caption { padding: 11px 12px 12px; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.card-name { font-size: clamp(17px,2.1vw,22px); line-height: 1.27; font-weight: 750; letter-spacing: .045em; }
.card-meta { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.card-vers { color: var(--gold); }
.card-number { font: 550 11px/1.4 system-ui,sans-serif; color: var(--quiet); letter-spacing: .07em; }
.card-tail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 3px 6px; }
.filter-block { display: flex; flex-direction: column; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); margin-bottom: 12px; }
.filter-row, .tabs, .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-row { display: grid; grid-template-columns: minmax(160px,1fr) minmax(130px,180px) minmax(110px,145px); }
.search-wrap { display: flex; align-items: center; gap: 7px; padding-left: 10px; border: 1px solid #49382d; border-radius: 5px; color: var(--muted); background: var(--bg); }
.search-wrap:focus-within { outline: 1px solid var(--gold); }
.search-wrap input, .field select { color: var(--text); background: var(--bg); border: 1px solid #49382d; border-radius: 5px; width: 100%; min-height: 42px; padding: 7px 10px; font-size: 14px; }
.search-wrap input { border: 0; padding-left: 0; outline: 0; }
.search-wrap input::placeholder { color: #af9f8d; }
.field select { appearance: none; padding-right: 29px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23c7b297' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; }
.tab { min-height: 38px; border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 5px 11px; color: var(--muted); font-size: 14px; }
.tab:hover, .tab[aria-pressed=true] { color: var(--gold-bright); border-color: #84623f; background: #34261a; }
.result-count { font-size: 13px; margin: 13px 0 9px; color: var(--muted); }
.empty, .panel { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 18px; }
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 5px; }
.empty .button { margin-top: 12px; }
.panel h2 { font-size: 20px; }
.panel p + p, .panel p + .actions, .panel h2 + p { margin-top: 8px; }
.recent-grid { display: grid; gap: 7px; }
.recent-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--muted); font-size: 14px; }
.recent-row:last-child { border-bottom: 0; }
.recent-row strong { color: var(--text); font-weight: 550; }
.region-grid, .challenge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.region-panel, .challenge { display: flex; flex-direction: column; min-height: 236px; }
.region-art, .challenge-art { position: relative; overflow: hidden; min-height: 106px; margin: -18px -18px 14px; border-radius: 8px 8px 0 0; background: #433425; }
.region-art::after, .challenge-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#1b1713fa,transparent 87%); }
.region-panel h2, .challenge h2 { margin-top: -37px; z-index: 1; }
.region-panel .actions, .challenge .actions { margin-top: auto; padding-top: 13px; }
.region-panel .muted, .challenge .muted { font-size: 14px; }
.progress-line { display: flex; gap: 9px; align-items: center; margin-block: 10px 3px; font-size: 13px; color: var(--muted); }
progress { appearance: none; border: 0; width: 100%; height: 7px; overflow: hidden; border-radius: 8px; background: #413428; }
progress::-webkit-progress-bar { background: #413428; }
progress::-webkit-progress-value { border-radius: 8px; background: #dba861; }
progress::-moz-progress-bar { border-radius: 8px; background: #dba861; }
progress.enemy::-webkit-progress-value { background: #da8e72; }
progress.enemy::-moz-progress-bar { background: #da8e72; }
.muted { color: var(--muted); }
.positive { color: #f0bd7d; }
.team-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.team-grid, .skill-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.team-slot { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px dashed #6a5139; border-radius: 7px; min-height: 104px; text-align: center; padding: 6px; color: var(--muted); font-size: 13px; }
.team-filled { min-width: 0; }
.team-filled .card-picture { min-height: 58px; }
.team-filled .card-name { font-size: 16px; }
.team-filled .card-caption { padding: 6px 8px; }
.team-filled .text-button { margin-top: 2px; }
.team-picker { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.team-picker .tab { min-height: 38px; }
.combo { padding: 6px 0; color: var(--muted); font-size: 14px; }
.combo strong { display: block; color: var(--gold); }
.battle { padding: clamp(14px, 3vw, 27px); }
.battle-header { display: flex; justify-content: space-between; align-items: start; gap: 9px; margin-bottom: 12px; }
.battle-header p { color: var(--muted); font-size: 14px; }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 10px; }
.meter { padding: 12px 13px; background: #171310; border: 1px solid var(--line); border-radius: 6px; }
.meter strong, .meter small { display: block; }
.meter small { color: var(--muted); }
.meter .progress-line { margin: 4px 0 0; }
.skill { min-height: 90px; display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 4px; text-align: left; }
.skill small { color: var(--muted); font-size: 12px; }
.skill .skill-warning { color: #dfb5a1; }
.battle-actions { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.battle-log { margin-top: 14px; font-size: 14px; }
.battle-log summary { cursor: pointer; color: var(--gold); }
.battle-log ol { color: var(--muted); padding-left: 22px; margin: 6px 0 0; max-height: 165px; overflow: auto; }
.battle-result { border: 1px solid #725431; background: #302317; padding: 15px; margin-top: 12px; border-radius: 6px; }
dialog { color: var(--text); background: var(--surface); border: 1px solid #6f5338; border-radius: 11px; padding: 0; width: min(715px,calc(100% - 22px)); max-height: min(850px,calc(100% - 24px)); box-shadow: 0 16px 80px #0009; overflow: auto; }
dialog::backdrop { background: #100d0bd2; backdrop-filter: blur(5px); }
.dialog-shell { padding: clamp(16px,4vw,26px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dialog-header h2 { font: 780 clamp(25px,4.5vw,34px)/1.3 var(--serif); letter-spacing: .045em; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.dialog-body { display: grid; gap: 14px; }
.reveal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.reveal-slot { min-width: 0; }
.reveal-slot > .city-card { animation: reveal .25s ease-out both; }
@keyframes reveal { from { transform: rotateY(18deg) scale(.93); opacity: .45; } to { transform: rotateY(0) scale(1); opacity: 1; } }
.reveal-back { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; min-height: 151px; aspect-ratio: .9; padding: 11px 4px; gap: 11px; border: 1px solid #8f673e; border-radius: 8px; color: var(--gold-bright); background: repeating-linear-gradient(135deg,#302317 0 7px,#33261a 7px 8px); font-size: 13px; }
.reveal-back:hover { border-color: var(--gold); background-color: #62472b; }
.reveal-back img { width: 44%; max-width: 62px; }
.reveal-slot .card-picture { min-height: 76px; }
.reveal-slot .card-meta { font-size: 12px; }
.reveal-points { margin-top: 4px; color: var(--muted); font-size: 13px; text-align: center; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.detail-top { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; }
.detail-visual { position: relative; min-height: 235px; overflow: hidden; background: #33271e; border: 1px solid var(--rarity); border-radius: 7px; }
.detail-visual .rarity { position: absolute; top: 7px; left: 7px; }
.detail-facts { font-size: 14px; overflow-wrap: anywhere; }
.detail-facts p + p { margin-top: 6px; }
.detail-facts .actions { margin-top: 12px; }
.detail-section { padding: 11px 0 0; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 16px; margin-bottom: 5px; }
.detail-section p { font-size: 14px; margin-bottom: 4px; }
.detail-section .sources { color: var(--muted); overflow-wrap: anywhere; }
.sources a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.attributes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-top: 8px; }
.attribute { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; text-align: center; color: var(--muted); padding: 6px 2px; font-size: 12px; }
.attribute strong { display: block; color: var(--gold); font-size: 17px; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rules-table td, .rules-table th { padding: 8px 5px; border-bottom: 1px solid var(--line); text-align: left; }
.rules-table td { color: var(--muted); }
#toast { position: fixed; z-index: 20; bottom: 21px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 26px); border: 1px solid #a07a50; border-radius: 7px; color: var(--text); background: #2d2118; padding: 8px 15px; display: none; box-shadow: 0 4px 24px #0006; }
#toast.visible { display: block; }
.hint { font-size: 13px; color: var(--muted); }
.noscript { text-align: center; padding: 13px; }
@media (max-width: 940px) {
  .frame { width: calc(100% - 44px); }
  .hero { min-height: 414px; }
  .hero-copy { padding-left: 34px; }
  .hero h1 { font-size: clamp(48px,7.5vw,65px); }
  .pack-art { width: 271px; }
  .pack-left { transform: translateX(-49px) translateY(14px) rotate(-15deg); }
  .pack-right { transform: translateX(50px) translateY(11px) rotate(15deg); }
  .card-grid { gap: 11px; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 26px); }
  .header-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0 7px; min-height: 0; }
  .brand { margin-block: 9px 6px; }
  .brand img { width: 29px; height: 33px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; letter-spacing: .11em; }
  .points-badge { grid-column: 2; grid-row: 1; min-height: 34px; }
  #navigation { grid-column: 1 / -1; justify-content: space-between; gap: 4px; }
  .nav-link { flex: 1; justify-content: center; font-size: 13px; min-height: 42px; gap: 4px; }
  #main { padding-top: 14px; padding-bottom: 28px; min-height: 64vh; }
  .hero { min-height: 385px; grid-template-columns: 1fr; align-items: end; background-position: 65% 52%; }
  .hero::before { background: linear-gradient(90deg,#1b130de8 1%,#23180f58 85%),linear-gradient(0deg,#1a130ffd 6%,#1b130fc0 38%,transparent 75%); }
  .hero-copy { padding: 21px 16px 23px; z-index: 1; position: relative; }
  .hero h1 { font-size: clamp(37px,10.8vw,65px); margin-block: 10px 12px; }
  .hero-copy > p:not(.kicker) { font-size: 14px; }
  .hero-actions { gap: 9px; margin-top: 13px; }
  .hero-actions .button { min-height: 42px; font-size: 14px; padding-inline: 12px; }
  .pack-art { position: absolute; right: -16px; top: 8px; margin-left: 0; width: min(47%,210px); transform: rotate(8deg); }
  .pack-center { padding: 12px 3px 12px; }
  .pack-name strong { font-size: clamp(12px,3.25vw,18px); }
  .pack-name em, .pack-edition { font-size: 6px; }
  .pack-emblem { width: 23px; }
  .pack-left { transform: translateX(-29px) translateY(8px) rotate(-15deg); }
  .pack-right { transform: translateX(29px) translateY(8px) rotate(15deg); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .card-caption { padding: 8px 7px 9px; }
  .city-card .card-picture { min-height: 90px; }
  .reveal-slot .card-picture { min-height: 78px; }
  .reveal-slot .rarity { padding-inline: 4px; }
  .reveal-slot .card-new, .reveal-slot .card-count { padding-inline: 3px; }
  .card-tail { align-items: start; flex-direction: column; }
  .card-topline { top: 5px; left: 5px; right: 5px; }
  .section { margin-top: 25px; }
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { font-size: 13px; }
  .page-heading { margin-top: 4px; margin-bottom: 17px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .region-grid, .challenge-grid, .team-layout { grid-template-columns: 1fr; }
  .region-panel, .challenge { min-height: 0; }
  .region-art, .challenge-art { min-height: 108px; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-visual { min-height: 0; aspect-ratio: 1.65; }
  .skill-grid { grid-template-columns: 1fr; }
  .skill { min-height: 62px; }
  .site-footer { padding-block: 11px; column-gap: 10px; row-gap: 2px; }
}
@media (max-width: 365px) {
  .hero { min-height: 355px; }
  .hero-actions .quota { width: 100%; }
  .nav-link .icon { display: none; }
  .points-badge span { display: none; }
  .reveal-grid { gap: 4px; }
  .reveal-slot .card-new, .reveal-slot .card-count { position: absolute; top: 24px; right: 0; }
  .card-number { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.rules-link { display: block; margin-top: 10px; color: #ddb882; }
.cosmetic { position: relative; isolation: isolate; display: grid; place-items: center; align-content: center; gap: 10px; width: 180px; aspect-ratio: .66; margin: 2px auto 12px; border-radius: 9px; border: 2px solid var(--gold); color: #ffe7bd; background: linear-gradient(0deg,#1c110ff0,#24180a29),var(--cosmetic-image) center/cover; font: 800 24px/1.25 var(--serif); }
.cosmetic::before { content: ""; position: absolute; inset: 7px; border: 1px solid #deb37fae; border-radius: 5px; z-index: -1; }
.cosmetic img { width: 45px; }
.cosmetic span { font: 500 13px/1.4 var(--sans); }
