/* Devalok — the site's own stylesheet. Nothing here is shared with Petgully.
   Theme "Gold Glass" (2026-09-28): night indigo, violet, temple gold, white.
   Two looks: .theme-glass (home + browse pages: frosted glass over a blurred
   painting) and .theme-light (god / story / comic / book pages, Lore, studio).
   The previous look is saved as "Temple Night" (static/_themes/temple_night/).
   Mobile-first. */

:root {
  /* palette */
  --night: #120d29;
  --ink: #1f1a3d;
  --ink-soft: #5a5280;
  --violet: #3a2c6e;
  --plum: #6a4bb0;
  --plum-2: #7d5cc7;
  --plum-3: #8e6fd3;
  --lilac: #b9a6ea;
  --gold: #d4a941;
  --gold-hi: #f1d27d;
  --paper: #ffffff;
  --cream: #f5f2fb;          /* light page ground (lavender white) */
  --cream-deep: #ebe4f7;
  --line: #e0d7f0;
  --ok: #2f7d4f;
  --error: #b3261e;
  /* older names the Lore + studio templates still use */
  --saffron: var(--plum);
  --saffron-deep: #4f3591;
  /* glass */
  --glass: rgba(255, 255, 255, .09);
  --glass-2: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .18);
  /* shape + type */
  --radius: 18px;
  --radius-xl: 28px;
  --shadow: 0 12px 30px rgba(31, 26, 61, .08);
  --serif: "Marcellus", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.theme-light {
  background:
    radial-gradient(90% 50% at 85% 0%, #e7defa 0%, transparent 60%),
    linear-gradient(180deg, var(--cream), #fbfaff 55%, var(--cream-deep));
  background-repeat: no-repeat;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--saffron-deep); }
a:hover { color: var(--ink); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--cream-deep); padding: 1px 5px; border-radius: 5px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ light top bar ============================ */
.topbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 22px 0 6px; }
.sq { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(58, 44, 110, .22); flex: 0 0 auto; }
.sq svg { width: 26px; height: 26px; }
.sq .sq__small { width: 21px; height: 21px; }
.sq--ink { background: linear-gradient(145deg, var(--violet), var(--ink)); color: var(--gold-hi); }
.sq--gold { background: linear-gradient(145deg, var(--gold-hi), var(--gold)); color: var(--ink); }
.sq:hover { transform: translateY(-1px); color: inherit; }
.sq--ink:hover { color: var(--gold-hi); }
.wordmark { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: .03em; margin-left: 4px; }
.backpill { padding: 5px 14px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.backpill:hover { background: var(--ink); color: #fff; }
.topnav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-left: auto; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 4px 1px; border-bottom: 2px solid transparent; }
.topnav a:hover { border-color: var(--lilac); }
.topnav a[aria-current="page"] { border-color: var(--ink); }

/* studio bar */
.studio-bar { background: var(--gold); color: var(--ink); font-size: .9rem; position: relative; z-index: 5; }
.studio-bar__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; }
.studio-bar__links { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.studio-bar a { color: var(--ink); }
.inline { display: inline; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }

/* flashes */
.flashes { margin-top: 16px; position: relative; z-index: 5; }
.flash { padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; background: var(--paper); color: var(--ink); border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.flash--ok { border-color: var(--ok); }
.flash--error { border-color: var(--error); }

.main { padding: 26px 0 60px; display: grid; gap: 30px; align-content: start; }
.main > * { min-width: 0; }
.main > h1, .main > .section__head { margin-bottom: -14px; }

/* ============================ light: generic components ============================ */
/* Lore's hero */
.hero { background: linear-gradient(115deg, var(--ink) 0%, var(--violet) 55%, var(--plum) 100%); color: #fff; border-radius: 34px; padding: clamp(28px, 5vw, 52px); box-shadow: 0 30px 60px rgba(31, 26, 61, .25); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { max-width: 60ch; font-size: 1.05rem; color: #ece5fb; }
.hero .card__kicker { color: var(--gold-hi) !important; }
.hero .cta { display: inline-block; margin-top: 8px; background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; }

.section { margin: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section__head a { font-size: .9rem; font-weight: 700; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: 0 6px 0 var(--cream-deep), var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); color: inherit; }
.card__img { aspect-ratio: 4 / 3; background: var(--cream-deep); object-fit: cover; width: 100%; }
.card__img--portrait { aspect-ratio: 3 / 4; }
.card__ph { aspect-ratio: 4 / 3; background: radial-gradient(circle at 30% 30%, #d9cdf5, var(--cream-deep)); display: grid; place-items: center; color: var(--violet); font-family: var(--serif); font-size: 2rem; }
.card__body { padding: 12px 16px 16px; }
.card__kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--plum); margin-bottom: 4px; }
.card__title { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 4px; }
.card__text { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 13px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--lilac); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-soft); }

.article { background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.article__hero { border-radius: var(--radius); margin-bottom: 20px; max-height: 480px; object-fit: cover; width: 100%; }
.article__meta { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.article__meta a { margin-right: 10px; }
.prose { font-size: 1.05rem; max-width: 68ch; line-height: 1.75; color: #332c57; }
.prose h2, .prose h3 { margin-top: 1.3em; color: var(--ink); }
.prose blockquote { margin: 1.1em 0; padding: 12px 18px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 1.12rem; color: var(--violet); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose > :last-child { margin-bottom: 0; }
.aside { background: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 24px 0; }
.aside h3 { margin-top: 0; }
.tags a { display: inline-block; margin: 0 6px 6px 0; }

/* comics reader */
.reader { display: grid; gap: 20px; max-width: 900px; width: 100%; margin-inline: auto; }
.reader figure { margin: 0; background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 20px; }
.reader img { width: 100%; }
.reader figcaption { padding: 12px 18px 16px; color: var(--ink-soft); font-size: .95rem; }
.reader__no { font-size: .74rem; font-weight: 800; color: var(--plum); text-transform: uppercase; letter-spacing: .12em; padding: 12px 18px 10px; }

/* forms (studio) */
.form { background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); max-width: 900px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint, .hint { font-size: .84rem; color: var(--ink-soft); font-weight: 400; }
.field input[type=text], .field input[type=url], .field input[type=email], .field input[type=password], .field input[type=search],
.field select, .field textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--lilac); outline-offset: 0; border-color: var(--plum); }
.field textarea { min-height: 160px; resize: vertical; }
.field textarea.tall { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.field select[multiple] { min-height: 160px; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .row { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.btn { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--violet); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); }
.btn--secondary:hover { background: var(--cream); color: var(--ink); }
.btn--publish { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: var(--ink); }
.btn--publish:hover { background: var(--gold); color: var(--ink); }
.btn--danger { background: #fff; color: var(--error); border-color: var(--error); }
.btn--danger:hover { background: #fbeae9; color: var(--error); }
.errors { background: #fbeae9; border-left: 4px solid var(--error); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.errors ul { margin: 0; padding-left: 1.1em; }

.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.table th { background: var(--cream-deep); font-weight: 700; }
.status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.status--published { background: #e0f3e7; color: var(--ok); }
.status--draft { background: var(--cream-deep); color: var(--ink-soft); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; }
.stat { background: var(--paper); border-radius: 20px; padding: 16px 18px; box-shadow: 0 6px 0 var(--cream-deep), var(--shadow); text-decoration: none; color: var(--ink); }
.stat b { font-size: 1.7rem; font-family: var(--sans); font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-size: .88rem; }
.login { max-width: 440px; width: 100%; margin: 20px auto; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }

.footer { color: var(--ink-soft); font-size: .88rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 18px 0 28px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer__links a { margin-left: 14px; }

/* ============================ light: Gold Glass pages ============================ */
/* banner — the big purple card at the top of a god / story / comic / book page */
.banner { position: relative; border-radius: 34px; min-height: 320px; background: linear-gradient(115deg, var(--ink) 0%, var(--violet) 55%, var(--plum) 100%); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; box-shadow: 0 30px 60px rgba(31, 26, 61, .28); margin-top: 22px; }
.banner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(40% 70% at 78% 45%, rgba(241, 210, 125, .32), transparent 70%), radial-gradient(30% 40% at 8% 100%, rgba(185, 166, 234, .25), transparent 70%); pointer-events: none; }
.banner--noart, .banner--slim { grid-template-columns: 1fr; min-height: 0; }
.banner__copy { position: relative; z-index: 2; padding: clamp(30px, 5vw, 46px) clamp(24px, 5vw, 48px); display: grid; gap: 12px; align-content: center; }
.banner__copy small { color: var(--gold-hi); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }
.banner__copy h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: .98; margin: 0; text-shadow: 0 4px 24px rgba(18, 13, 41, .35); }
.banner--story .banner__copy h1, .banner--book .banner__copy h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.banner__copy p { color: #ece5fb; max-width: 46ch; font-size: 1.02rem; margin: 0; }
.banner__more { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.banner__more a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--gold-hi); padding-bottom: 2px; }
.banner__more a:hover { color: var(--gold-hi); }
.banner__gods { display: flex; flex-wrap: wrap; gap: 6px; }
.banner__gods a { color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.banner__gods a:hover { background: rgba(241, 210, 125, .25); color: #fff; }
.banner__art { position: relative; z-index: 1; min-height: 260px; }
.banner__art::before { content: ""; position: absolute; right: 10%; bottom: 8%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(241, 210, 125, .5), rgba(241, 210, 125, 0) 68%); }
.banner__art img { position: absolute; right: 6%; bottom: 0; height: 108%; width: auto; max-width: 110%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 28px rgba(18, 13, 41, .45)); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.banner__art--photo { overflow: hidden; border-radius: 0 34px 34px 0; }
.banner__art--photo::before { display: none; }
.banner__art--photo img { inset: 0; height: 100%; width: 100%; max-width: none; object-fit: cover; filter: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.banner__cover { position: relative; z-index: 1; display: grid; place-items: center; padding: 28px; }
.banner__cover img { max-height: 320px; width: auto; border-radius: 14px; box-shadow: 0 20px 40px rgba(18, 13, 41, .45); transform: rotate(2deg); }
.bubble { position: absolute; z-index: 3; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .38); display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bubble img { width: 84%; height: 84%; object-fit: contain; }
.bubble--1 { left: 28px; top: -26px; }
.bubble--2 { left: 46%; top: 14px; width: 60px; height: 60px; }
.bubble--3 { left: 40%; bottom: -24px; width: 66px; height: 66px; }
.sparkle { position: absolute; z-index: 2; color: var(--gold-hi); font-size: 18px; pointer-events: none; }
.sparkle--1 { left: 52%; top: 40%; }
.sparkle--2 { left: 58%; bottom: 22%; font-size: 12px; }
.banner--noart .sparkle { display: none; }

.alias { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -10px; }
.alias span:first-child { font-weight: 800; font-size: .82rem; color: var(--ink-soft); margin-right: 4px; }
.alias span + span { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cream-deep); font-size: .84rem; font-weight: 600; }

/* the four columns under the banner */
.cols { display: grid; grid-template-columns: 1.15fr 1fr .8fr 1fr; gap: 26px; align-items: start; }
.cols--nokids { grid-template-columns: 1.1fr 1fr 1fr; }
.cols--noart { grid-template-columns: 1fr .8fr 1fr; }
.cols--nokids.cols--noart { grid-template-columns: 1fr 1fr; }
.cols > * { min-width: 0; }
.col h2 { font-family: var(--sans); font-weight: 800; font-size: 1.5rem; margin-bottom: 16px; }
.col__empty { color: var(--ink-soft); }
.art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art a { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 14px 30px rgba(31, 26, 61, .2); background: var(--cream-deep); }
.art a[hidden] { display: none; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.art a:hover img { transform: scale(1.05); }
.btn-white { display: block; width: 100%; text-align: center; margin-top: 18px; padding: 13px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 0 var(--cream-deep), 0 12px 24px rgba(31, 26, 61, .12); }
.btn-white:hover { background: var(--cream); }
.storylist { display: grid; gap: 11px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.3; color: #fff; text-decoration: none; transition: transform .15s ease; }
.srow:hover { transform: translateX(3px); color: #fff; }
.srow .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); flex: 0 0 auto; }
.srow .ic svg { width: 15px; height: 15px; }
.srow__t { min-width: 0; }
.srow small { margin-left: auto; font-size: .68rem; font-weight: 800; opacity: .85; text-transform: uppercase; letter-spacing: .06em; flex: 0 0 auto; }
.srow--1 { background: var(--plum); }
.srow--2 { background: var(--plum-2); }
.srow--3 { background: var(--plum-3); }
.srow--ink { background: var(--ink); }
.srow--ink .ic { background: var(--gold); color: var(--ink); }
.srow--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--cream-deep); }
.srow--line:hover { color: var(--ink); }
.srow--line .ic { background: var(--cream); }
.more-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; }
.stickers { display: grid; gap: 16px; max-width: 210px; }
.sticker { position: relative; margin: 0; border-radius: 24px; background: #fff; box-shadow: 0 14px 30px rgba(31, 26, 61, .14); aspect-ratio: 1; }
.sticker img { position: absolute; inset: 7% 7% 16%; width: 86%; height: 77%; object-fit: contain; }
.sticker figcaption { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: .68rem; font-weight: 800; background: var(--cream); color: var(--violet); padding: 3px 10px; border-radius: 999px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.badge-star { position: absolute; left: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: .85rem; z-index: 1; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 0 var(--cream-deep), 0 12px 24px rgba(31, 26, 61, .1); }
.fact__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-hi); }
.fact__ic svg { width: 28px; height: 28px; }
.fact__ic--2 { background: linear-gradient(145deg, var(--gold-hi), var(--gold)); color: var(--ink); }
.fact__ic--3 { background: var(--plum); color: #fff; }
.fact small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.fact b { display: block; font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.fact p { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; margin: 3px 0 0; }

/* reading row: body + dark "recognise" panel */
.read { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; scroll-margin-top: 20px; }
.read--single { grid-template-columns: 1fr; }
.prose-card { background: #fff; border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); min-width: 0; }
.prose-card h2 { font-size: 1.8rem; }
.prose-card--narrow { max-width: 820px; }
.recog { border-radius: var(--radius-xl); padding: 26px 28px; background: linear-gradient(160deg, var(--ink), var(--violet)); color: #fff; min-width: 0; }
.recog h2 { font-size: 1.6rem; color: #fff; }
.recog h2 + ul, .recog h2 + .recog__p { margin-bottom: 18px; }
.recog__p { color: #e4dcf7; font-size: .95rem; }
.recog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.recog li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: .92rem; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.recog li:last-child { border-bottom: 0; padding-bottom: 0; }
.recog li span { color: var(--gold-hi); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.recog a { color: #fff; }
.recog__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.recog__tags span { font-size: .8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.prose--dark { color: #ece5fb; }
.prose--dark h2, .prose--dark h3 { color: #fff; }

.rel h2 { margin-bottom: 14px; }
.relrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 360px)); gap: 16px; }

/* ============================ tiles (both looks) ============================ */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tiles--portrait { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--violet), var(--plum)); box-shadow: 0 14px 30px rgba(31, 26, 61, .2); color: #fff; text-decoration: none; }
.tile--tall { aspect-ratio: 3 / 4.2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(18, 13, 41, .9)); pointer-events: none; }
.tile__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--gold-hi); opacity: .8; }
.tile__cap { position: absolute; z-index: 1; left: 14px; right: 46px; bottom: 12px; display: grid; gap: 1px; }
.tile__cap small { color: var(--gold-hi); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tile__cap b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.2; }
.tile__go { position: absolute; z-index: 1; right: 11px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; }
.tile__go svg { width: 10px; height: 10px; }

/* ============================ glass look ============================ */
body.theme-glass { background: var(--night); color: #fff; color-scheme: dark; }
.glass-page { position: relative; padding: 28px 16px 20px; min-height: 100vh; overflow: hidden; isolation: isolate; }
.glass-page::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: url("../img/backdrop.webp") center / cover no-repeat; filter: saturate(1.15); }
.glass-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 10%, rgba(58, 44, 110, .35), rgba(18, 13, 41, .88) 70%), linear-gradient(180deg, rgba(18, 13, 41, .2), rgba(18, 13, 41, .92)); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.theme-glass a { color: inherit; text-decoration: none; }
.theme-glass h1, .theme-glass h2 { color: #fff; }
.shell { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 34px; padding: 18px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; box-shadow: 0 40px 90px rgba(8, 5, 22, .55); }
.shell--side { grid-template-columns: 250px minmax(0, 1fr); grid-template-areas: "top top" "side main"; }

.rail { position: absolute; left: -30px; top: 170px; display: grid; gap: 6px; padding: 10px 7px; border-radius: 999px; z-index: 2; }
.rail a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #e6ddfb; }
.rail a:hover { background: var(--glass-2); }
.rail a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.rail svg { width: 19px; height: 19px; }

.gtop { grid-area: top; display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; min-width: 0; }
.gbrand { display: flex; align-items: center; gap: 10px; color: var(--gold-hi) !important; margin-right: 4px; }
.gbrand svg { width: 34px; height: 34px; }
.gbrand span { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .04em; }
.gsearch { flex: 0 1 230px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); color: #d9cff5; font-size: .86rem; min-width: 0; }
.gsearch svg { width: 16px; height: 16px; flex: 0 0 auto; }
.gsearch input { all: unset; flex: 1; min-width: 0; color: #fff; }
.gsearch input::placeholder { color: #cfc4ee; }
.gsearch:focus-within { border-color: rgba(241, 210, 125, .7); }
.gsearch--big { flex: none; width: 100%; max-width: 720px; padding: 8px 8px 8px 18px; font-size: 1rem; }
.gsearch--big svg { width: 20px; height: 20px; }
.gtabs { display: flex; gap: 4px; flex-wrap: wrap; }
.gtabs a { padding: 8px 15px; border-radius: 999px; color: #e2d9fa; font-size: .88rem; font-weight: 700; }
.gtabs a:hover { background: var(--glass); }
.gtabs a[aria-current="page"] { background: rgba(212, 169, 65, .18); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212, 169, 65, .55); }
.today { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; font-size: .8rem; max-width: 280px; min-width: 0; }
.today img, .today__ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: 0 0 auto; }
.today__ph { display: grid; place-items: center; background: var(--violet); color: var(--gold-hi); }
.today__ph svg { width: 16px; height: 16px; }
.today > span:last-child { min-width: 0; }
.today small { display: block; color: var(--lilac); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.today strong { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gside { grid-area: side; display: grid; gap: 18px; align-content: start; min-width: 0; }
.panel { border-radius: var(--radius-xl); padding: 16px; }
.panel h2 { font-family: var(--sans); font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.panel .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.panel__empty { color: var(--lilac); font-size: .85rem; margin: 0; }
.newlist { display: grid; gap: 12px; }
.newlist .tile { aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: none; }
.newlist .tile__cap small { display: none; }
.newlist .tile__cap b { font-family: var(--sans); font-weight: 700; font-size: .86rem; }
.reading { display: grid; gap: 10px; }
.readrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 26px; align-items: center; gap: 10px; }
.readrow img, .readrow__ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.readrow__ph { display: grid; place-items: center; background: var(--violet); color: var(--gold-hi); }
.readrow__ph svg { width: 18px; height: 18px; }
.readrow__txt { display: block; min-width: 0; }
.readrow b { display: block; font-size: .86rem; line-height: 1.3; }
.readrow small { color: var(--lilac); font-size: .74rem; }
.readbar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin-top: 5px; overflow: hidden; }
.readbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.readrow .go { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; }
.readrow .go svg { width: 10px; height: 10px; }

.gmain { grid-area: main; display: grid; gap: 20px; align-content: start; min-width: 0; }
.gmain > * { min-width: 0; }

/* featured carousel */
.feature { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 370px; display: grid; align-items: end; background: var(--violet); }
.feature__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.feature__slide.on { opacity: 1; }
.feature__slide img { width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 13, 41, .92) 0%, rgba(18, 13, 41, .55) 42%, transparent 72%), linear-gradient(0deg, rgba(18, 13, 41, .6), transparent 40%); pointer-events: none; }
.feature__copy { grid-area: 1 / 1; position: relative; z-index: 2; padding: 26px 28px; max-width: 480px; display: none; gap: 12px; }
.feature__copy.on { display: grid; }
.feature__copy h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.04; margin: 0; }
.feature__copy p { color: #e4dcf7; font-size: .88rem; max-width: 46ch; margin: 0; }
.feature__copy .gpill--gold { justify-self: start; }
.feature__dots { position: absolute; z-index: 2; left: 28px; top: 22px; display: flex; gap: 6px; }
.feature__dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .3s ease; }
.feature__dots i.on { width: 38px; background: var(--gold-hi); }
.feature__nav { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: flex; gap: 8px; }
.feature__nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.feature__nav button:first-child { background: rgba(255, 255, 255, .28); color: #fff; }
.feature__nav svg { width: 16px; height: 16px; }
.gpill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.gpill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid var(--glass-line); letter-spacing: .02em; color: #fff; }
.gpill--gold { background: rgba(212, 169, 65, .2); border-color: rgba(212, 169, 65, .6); color: var(--gold-hi); }
.gactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.gbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1px solid transparent; cursor: pointer; }
.gbtn svg { width: 14px; height: 14px; }
.gbtn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink) !important; box-shadow: 0 8px 24px rgba(212, 169, 65, .35); }
.gbtn--gold:hover { filter: brightness(1.05); }
.gbtn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.gbtn--ghost:hover { background: rgba(255, 255, 255, .14); }

.ghead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 12px; }
.ghead h2 { font-size: 1.4rem; margin: 0; }
.ghead a { font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-line); white-space: nowrap; }
.gintro { display: grid; gap: 6px; padding: 8px 6px 0; }
.gintro h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.gintro p { color: #d9cff5; margin: 0; max-width: 60ch; }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: .82rem; font-weight: 700; color: #e6ddfb; }
.gchip:hover { background: var(--glass-2); }
.gchip[aria-current="true"] { background: rgba(212, 169, 65, .2); border-color: rgba(212, 169, 65, .6); color: var(--gold-hi); }
.gchips--quiet .gchip { font-weight: 600; font-size: .78rem; }
.gpager { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gempty { border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .28); padding: 26px; text-align: center; color: #d9cff5; }

/* god cards */
.gods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gods--grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gcard { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4.3; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 36px rgba(8, 5, 22, .45); background: linear-gradient(160deg, var(--violet), var(--plum)); }
.gcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gcard:hover img { transform: scale(1.06); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 13, 41, 0) 45%, rgba(18, 13, 41, .92)); pointer-events: none; }
.gcard__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: var(--gold-hi); }
.gcard__trad { position: absolute; z-index: 1; left: 10px; top: 10px; max-width: calc(100% - 50px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard__info { position: absolute; z-index: 1; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; font: 800 12px/1 var(--serif); }
.gcard__cap { position: absolute; z-index: 1; left: 12px; right: 44px; bottom: 12px; display: grid; }
.gcard__cap small { color: var(--gold-hi); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.gcard__cap b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.gcard__go { position: absolute; z-index: 1; right: 10px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.gcard--featured { outline: 2px solid var(--gold); outline-offset: -2px; }

/* library shelves */
.shelves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shelf { border-radius: 20px; padding: 14px 16px; display: grid; gap: 2px; }
.shelf:hover { background: var(--glass-2); }
.shelf__ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 169, 65, .18); color: var(--gold-hi); margin-bottom: 6px; flex: 0 0 auto; }
.shelf__ic svg { width: 18px; height: 18px; }
.shelf b { font-size: 1.4rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.shelf span { font-size: .84rem; font-weight: 700; }
.shelf small { color: var(--lilac); font-size: .74rem; }

/* search results */
.results { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 18px; }
.result:hover { background: var(--glass-2); }
.result .shelf__ic { margin: 0; }
.result small { display: block; color: var(--gold-hi); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.result em { display: block; font-style: normal; color: #d9cff5; font-size: .86rem; }

.gfoot { max-width: 1180px; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: #b7abd9; font-size: .8rem; padding: 0 8px; }
.gfoot p { margin: 0; }
.gfoot a:hover { color: var(--gold-hi); }
.theme-glass .flash { color: var(--ink); }

/* ============================ Lore (knowledge base) ============================ */
.hero--lore { background: linear-gradient(115deg, var(--ink) 0%, var(--violet) 55%, var(--plum) 100%); }
.lore-search { display: flex; gap: 8px; max-width: 640px; margin-top: 12px; }
.lore-search input { flex: 1; min-width: 0; font: inherit; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; }
.lore-search input::placeholder { color: rgba(255, 255, 255, .65); }
.lore-search--page { max-width: none; }
.lore-search--page input { background: #fff; color: var(--ink); border-color: var(--line); }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: -18px; }
.crumbs a { color: var(--ink-soft); }
.count { font-size: .9rem; color: var(--ink-soft); font-weight: 400; margin-left: 6px; font-family: var(--sans); }
.muted { color: var(--ink-soft); }
.flag { display: inline-block; background: #fbeae9; color: var(--error); border-radius: 999px; padding: 1px 8px; font-size: .76rem; font-weight: 700; }
.pill { display: inline-block; background: var(--cream-deep); color: var(--ink); border-radius: 999px; padding: 2px 9px; font-size: .76rem; margin-right: 4px; }
.pill--done, .pill--reviewed { background: #e0f3e7; color: var(--ok); }
.pill--in_progress, .pill--next { background: #fff1d6; color: #8a5a0a; }
.pill--blocked_on_ops { background: #fbeae9; color: var(--error); }
.badge { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; margin-left: 4px; background: var(--cream-deep); color: var(--ink); vertical-align: middle; }
.badge--vaishnava { background: #e3ecfa; color: #1f4b8f; } .badge--shaiva { background: #fbe7d6; color: #7a2e0e; }
.badge--shakta { background: #fbe1ec; color: #8f1f5a; } .badge--smarta { background: #ece6f7; color: #4b2f8f; }
.badge--folk, .badge--tribal { background: #e6f1e8; color: #2f7d4f; } .badge--buddhist, .badge--jain { background: #f2ead9; color: #7d5a2a; }
.badge--pan-hindu { background: var(--cream-deep); color: var(--ink-soft); }
.badge--public_domain, .badge--cc { background: #e0f3e7; color: var(--ok); } .badge--copyrighted { background: #fbeae9; color: var(--error); } .badge--unknown { background: var(--cream-deep); color: var(--ink-soft); }
.badge--src { background: #f4ecd6; color: #7d5a2a; font-weight: 600; }
.grid--tight { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.card--entity { border-top: 4px solid var(--gold); }
.card__alt { font-size: .82rem; color: var(--ink-soft); margin: -2px 0 6px; font-style: italic; }
.card__meta { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 0; }
.chips--small .chip { font-size: .8rem; padding: 3px 10px; }
.chip b { font-weight: 700; margin-left: 4px; color: var(--plum); }
.chip[aria-current="true"] b { color: var(--gold-hi); }
.two-col { display: grid; gap: 24px; grid-template-columns: 1fr; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 3fr 2fr; } }
.rel-group { margin-bottom: 14px; }
.rel-group__verb { font-size: 1rem; margin: 0 0 4px; color: var(--ink-soft); font-family: var(--sans); font-weight: 700; }
.rel-group__verb em { color: var(--plum); font-style: normal; }
.rel-list { list-style: none; padding: 0; margin: 0; }
.rel-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.rel-note { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }
.story-list { list-style: none; padding: 0; margin: 0; }
.story-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cite-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.cite-list li { padding: 4px 0; }
.attribution { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }
.aside--flag { background: #fff6e8; border-left: 3px solid var(--gold); }
.story-cast { background: var(--cream); border-radius: 14px; padding: 14px 18px; margin: 12px 0 20px; }
.story-cast h3 { margin: 0 0 6px; font-size: 1rem; }
.cast { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.beats { font-size: 1.05rem; max-width: 70ch; padding-left: 1.4em; }
.beats li { margin-bottom: 6px; }
.versions { display: grid; gap: 16px; }
.version { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; border-left: 5px solid var(--line); }
.version--base { border-left-color: var(--gold); }
.version__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.version__head h3 { margin: 0; }
.version__tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.version__diff { background: var(--cream); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-size: .95rem; }
.version__diff p { margin: 0; display: inline; }
.version__cite { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; }
.coverage { display: flex; flex-wrap: wrap; gap: 4px; }
.cov { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; min-width: 14px; min-height: 14px; }
.cov--none { background: var(--cream-deep); color: var(--ink-soft); } .cov--partial { background: #fff1d6; color: #8a5a0a; }
.cov--done { background: #e0f3e7; color: var(--ok); } .cov--reviewed { background: #cdebd6; color: var(--ok); font-weight: 700; }
.table--tracker td, .table--tracker th { padding: 6px 6px; font-size: .8rem; white-space: nowrap; }
.table--tracker td:first-child { white-space: normal; min-width: 180px; }
.table--tracker .cov { min-width: 18px; min-height: 18px; padding: 0; }
.table-scroll { overflow-x: auto; }
.table--sources td { font-size: .88rem; }
.graph-controls select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.graph-filters { margin: 8px 0; }
.graph-filters .chip { cursor: pointer; opacity: .45; }
.graph-filters .chip.is-on { opacity: 1; }
.graph-wrap { position: relative; background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.graph-wrap canvas { display: block; cursor: grab; max-width: 100%; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; font-size: .78rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.graph-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.graph-tip { position: absolute; background: var(--ink); color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 8px; pointer-events: none; max-width: 260px; }

/* ============================ responsive ============================ */
@media (max-width: 1100px) {
  .gods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gods:not(.gods--grid) .gcard:nth-child(n+4) { display: none; }
  .cols, .cols--nokids, .cols--noart { grid-template-columns: 1fr 1fr; }
  .cols--nokids.cols--noart { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell, .shell--side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "side"; padding: 14px; border-radius: 26px; }
  .rail { display: none; }
  .gside { grid-template-columns: 1fr 1fr; }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today { margin-left: 0; }
  .banner { grid-template-columns: 1fr; }
  .banner__art { min-height: 300px; }
  .banner__art img { right: 50%; transform: translateX(50%); }
  .banner__art--photo { border-radius: 0 0 34px 34px; min-height: 220px; }
  .banner__art--photo img { transform: none; right: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
  .bubble--2 { display: none; }
  .bubble--1 { left: auto; right: 16px; top: -34px; width: 62px; height: 62px; }
  .banner__copy { padding-top: 40px; }
  .bubble--3 { left: 20px; }
  .read { grid-template-columns: 1fr; }
  .stickers { max-width: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .glass-page { padding: 14px 10px 16px; }
  .gside { grid-template-columns: 1fr; }
  .gods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gods:not(.gods--grid) .gcard:nth-child(n+3) { display: block; }
  .gods:not(.gods--grid) .gcard:nth-child(n+5) { display: none; }
  .gods--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { min-height: 440px; }
  .feature::after { background: linear-gradient(0deg, rgba(18, 13, 41, .96) 0%, rgba(18, 13, 41, .85) 45%, rgba(18, 13, 41, .25) 80%, transparent); }
  .feature__copy { padding: 20px; }
  .gtabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .gsearch { flex: 1 1 100%; order: 3; }
  .gsearch--big { flex-wrap: wrap; }
  .cols, .cols--nokids, .cols--noart, .cols--nokids.cols--noart { grid-template-columns: 1fr; }
  .topnav { margin-left: 0; width: 100%; gap: 4px 18px; }
  .wordmark { display: none; }
  .recog li { grid-template-columns: 1fr; gap: 2px; }
  .tiles--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__links a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
