/* The registry's pages: page headers, the season panel, search, filters, monster pages, keepers,
   zoos, the Daily Dispatch, events, Dale's Tips, privacy. */
.page { padding-top: clamp(26px, 4vw, 48px); }
.page-head { display: grid; gap: 0.4rem; margin-bottom: clamp(20px, 3vw, 34px); }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 0.2rem 0 0; }
.page-head.with-art { grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; }
.page-head.with-art .side { width: clamp(120px, 18vw, 200px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
@media (max-width: 640px) { .page-head.with-art { grid-template-columns: 1fr; } .page-head.with-art .side { display: none; } }

/* season panel (the registry's header) */
.season-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(18px, 3vw, 34px); align-items: center; padding: clamp(20px, 3vw, 34px); border-radius: var(--r-lg); background: radial-gradient(120% 120% at 0% 0%, rgba(142, 99, 209, 0.35), transparent 55%), linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
@media (max-width: 860px) { .season-panel { grid-template-columns: 1fr; } }
.season-panel h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 0.2rem 0 0.8rem; }
.totals { display: grid; gap: 14px; }
.total { display: grid; grid-template-columns: auto 1fr auto; gap: 0.4rem 0.9rem; align-items: center; padding: 0.85rem 1rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.total .meter { grid-column: 1 / -1; }
.total b { font: 600 1.3rem var(--f-display); font-variant-numeric: tabular-nums; }

/* search */
.search { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search input { flex: 1 1 260px; }
.results { display: grid; gap: 1.2rem; margin-top: 1rem; }
.results h3 { margin-bottom: 0.6rem; font-size: 1.05rem; color: var(--ink-2); }
.result-list { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.result { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); color: #fff; }
.result img { width: 44px; height: 44px; object-fit: contain; }
.result .sub { color: var(--ink-3); font-size: 0.85rem; }

/* world goal and daily cards */
.world { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.world .card { display: grid; gap: 0.7rem; align-content: start; }
.daily-mini { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center; }
.daily-mini .bg { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; }

/* featured zoos */
.zoo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.zoo-card { display: grid; gap: 0.6rem; text-decoration: none; color: inherit; }
.zoo-card .tops { display: flex; gap: 6px; }
.zoo-card .tops .mon-art { width: 25%; aspect-ratio: 1; border-radius: 10px; }
.zoo-card .stars { color: var(--gold); letter-spacing: 0.1em; }
.stars-row { display: inline-flex; gap: 2px; color: var(--gold); }
.stars-row svg { width: 1.05em; height: 1.05em; }
.stars-row .off { color: rgba(255, 255, 255, 0.18); }

/* filters bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin-bottom: 1.2rem; }
.filters select { min-height: 40px; padding-block: 0.4rem; }
.view-toggle { margin-left: auto; }
.mon-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* a monster's page */
.monster-hero { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 820px) { .monster-hero { grid-template-columns: 1fr; } }
.monster-hero .mon-art { aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.monster-hero h1 { margin: 0.3rem 0 0.5rem; }
.monster-hero .rule { padding: 0.9rem 1.1rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--tc, var(--gold)); }
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.views .mon-art { aspect-ratio: 1; }
.serials { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.serials a, .serials span { display: grid; place-items: center; height: 44px; border-radius: 10px; font: 700 0.95rem var(--f-display); font-variant-numeric: tabular-nums; text-decoration: none; }
.serials a { background: color-mix(in srgb, var(--tc, var(--gold)) 22%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--tc, var(--gold)) 45%, transparent); }
.serials a:hover { background: color-mix(in srgb, var(--tc, var(--gold)) 40%, transparent); color: #fff; }
.serials a.revoked { opacity: 0.45; text-decoration: line-through; }
.serials span { background: rgba(255, 255, 255, 0.03); color: var(--ink-3); border: 1px dashed var(--line); }

/* keeper and zoo pages */
.keeper-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.keeper-head .avatar { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font: 600 2.2rem var(--f-display); background: linear-gradient(160deg, var(--plum-2), var(--plum)); box-shadow: var(--sh-1); }
.keeper-id { font: 700 0.95rem var(--f-mono); letter-spacing: 0.04em; color: var(--ink-2); background: rgba(255, 255, 255, 0.06); padding: 0.25rem 0.6rem; border-radius: 8px; }
.zoo-map { width: 100%; height: auto; aspect-ratio: 540 / 324; border-radius: var(--r); border: 1px solid var(--line-2); background: #2a3a20; }
.guestbook { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.guestbook li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.stamp { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 1.35rem; }
.stamp img { width: 32px; height: 32px; object-fit: contain; }
.species-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.species-list .mon-art { aspect-ratio: 1; border-radius: 12px; }
.species-list .n { font-weight: 800; font-size: 0.85rem; color: var(--ink-2); }

/* Daily Dispatch */
.daily-head { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); min-height: 220px; display: grid; align-content: end; isolation: isolate; border: 1px solid var(--line-2); }
.daily-head .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.daily-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 6, 20, 0.88), rgba(11, 6, 20, 0.35)); }
.rank { font: 600 1.15rem var(--f-display); font-variant-numeric: tabular-nums; width: 2.4rem; }
.rank.r1 { color: var(--gold); }
.rank.r2 { color: #d8dce6; }
.rank.r3 { color: #e09a62; }

/* events */
.event-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--ev, var(--t-EV)) 35%, transparent), transparent 60%), var(--night-3); border: 1px solid color-mix(in srgb, var(--ev, var(--t-EV)) 45%, transparent); }

/* Dale's Tips */
.notebook-head { display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 4vw, 48px); align-items: center; margin-top: clamp(16px, 3vw, 32px); padding: clamp(22px, 4vw, 44px) clamp(22px, 4vw, 48px) 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(90deg, rgba(16, 9, 30, 0.94) 35%, rgba(16, 9, 30, 0.35)), url('/assets/art/bg/hollow-lg.webp') center / cover no-repeat; box-shadow: var(--sh-2); }
.notebook-head > div { padding-bottom: clamp(22px, 4vw, 44px); }
.notebook-head .owner-full { order: 2; align-self: end; width: auto; height: clamp(240px, 30vw, 360px); filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55)); }
@media (max-width: 640px) { .notebook-head { grid-template-columns: 1fr; padding-top: 0; } .notebook-head .owner-full { order: 0; height: 220px; margin: 18px auto 0; } .notebook-head > div { padding-bottom: 22px; } }
.tips-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.tips-grid .owner-tip .who { width: clamp(90px, 12vw, 130px); }
.sealed { display: grid; gap: 0.6rem; justify-items: center; text-align: center; padding: 1.6rem; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(107, 68, 168, 0.35), rgba(26, 16, 46, 0.9)); border: 1px dashed rgba(242, 193, 78, 0.45); }
.sealed .wax { width: 74px; height: 74px; }
.testers { border: 1px solid rgba(242, 193, 78, 0.35); background: linear-gradient(160deg, rgba(242, 193, 78, 0.1), rgba(26, 16, 46, 0.6)); }
.testers ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.testers code { background: rgba(0, 0, 0, 0.35); padding: 0.1rem 0.45rem; border-radius: 6px; color: var(--gold-2); }

/* privacy and other long text */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }

/* the press kit (/press) */
.press-head .row { margin-top: 0.9rem; }
.press-top { align-items: start; }
.press-top h2, .press-extras h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.press-facts { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0; }
.press-facts dt { color: var(--ink-3); font-weight: 800; font-size: 0.9rem; }
.press-facts dd { margin: 0; }
@media (max-width: 520px) { .press-facts { grid-template-columns: 1fr; gap: 0.15rem; } .press-facts dd { margin-bottom: 0.55rem; } }
.press-creators ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; margin: 0.6rem 0 1rem; }
.press-about { max-width: 70ch; }
.press-sub { margin: 1.6rem 0 0.8rem; }
.press-video { max-width: 960px; }
.press-dl { margin: 0.9rem 0 0; font-weight: 800; }
.press-gif { margin: 0; display: grid; gap: 0.55rem; }
.press-gif button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-1); aspect-ratio: 16 / 9; }
.press-gif img { display: block; width: 100%; height: 100%; object-fit: cover; }
.press-gif figcaption { color: var(--ink-2); }
.press-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.3rem; font-weight: 800; font-size: 0.9rem; }
.press-art { margin: 0; display: grid; gap: 0.7rem; align-content: start; }
.press-art-img { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.28); }
.press-art-img img { width: 100%; height: 100%; object-fit: contain; }
.press-art figcaption { display: grid; gap: 0.2rem; font-size: 0.92rem; }
.press-art figcaption a { font-weight: 800; }
.press-mons { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .press-mons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.press-shots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.press-mon { display: grid; justify-items: center; gap: 0.4rem; padding: 12px; color: var(--ink); text-decoration: none; transition: transform 0.15s ease, border-color 0.15s; }
.press-mon:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--ink); }
.press-mon img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.press-mon span { font-weight: 800; font-size: 0.9rem; text-align: center; }
.press-extras audio { width: 100%; margin-top: 0.4rem; }

/* the Breeder's Spotlight: totals, the longest line, birth certificate cards */
.spot-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-bottom: clamp(20px, 3vw, 30px); }
.spot-stat { display: grid; gap: 0.15rem; padding: 0.85rem 1rem; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.spot-stat b { font: 600 1.6rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--gold-2); }
.spot-stat span { color: var(--ink-3); font-size: 0.9rem; }
.spot-feature { margin-bottom: clamp(22px, 3vw, 34px); }
.spot-feature > .eyebrow { margin-bottom: 0.7rem; }
.birth-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.birth-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; align-items: start; text-decoration: none; color: inherit; }
.birth-card .mon-art { aspect-ratio: 1; border-radius: 14px; }
.birth-card .t { display: grid; gap: 0.3rem; min-width: 0; }
.birth-card h2, .birth-card h3 { margin: 0; overflow-wrap: anywhere; }
.birth-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.birth-card .line { margin: 0; color: var(--ink-2); font-size: 0.93rem; overflow-wrap: anywhere; }
.birth-card .line .k { color: var(--ink-3); font-weight: 700; margin-right: 0.4rem; }
.birth-card .meta { margin: 0; color: var(--ink-3); font-size: 0.86rem; }
.birth-card.featured { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; padding: clamp(18px, 3vw, 30px); background: radial-gradient(120% 120% at 0% 0%, rgba(242, 193, 78, 0.16), transparent 60%), linear-gradient(180deg, rgba(43, 28, 72, 0.95), rgba(28, 18, 48, 0.95)); border-color: rgba(242, 193, 78, 0.35); }
.birth-card.featured .line { font-size: 1rem; }
@media (max-width: 560px) { .birth-card { grid-template-columns: 88px minmax(0, 1fr); } .birth-card.featured { grid-template-columns: 1fr; } }
.spot-more { display: flex; justify-content: center; margin: 1.4rem 0 1rem; }
.spot-more [hidden] { display: none; }
