/* Pip Worlds: the Pipdex and the Treasure Guide.
   Loaded after site.css on /pipdex/ and /treasure/ only. Same candy enamel,
   die-cut white sticker edges and glossy toy plastic. No inline styles (CSP). */

/* ───────── Rarity colours (rc = vivid, rd = text-safe dark, rt = tint) ───────── */
.rc-common, .pc-common, .rk-common { --rc: #8FB39A; --rd: #4C7558; --rt: #E6F2E9; }
.rc-uncommon, .pc-uncommon, .rk-uncommon { --rc: #2FC08F; --rd: #17744F; --rt: #D9F7EC; }
.rc-rare, .pc-rare, .rk-rare { --rc: #3B9BFF; --rd: #1D5FAF; --rt: #DDEEFF; }
.rc-epic, .pc-epic, .rk-epic { --rc: #A35BFF; --rd: #7234C7; --rt: #EFE2FF; }
.rc-legendary, .pc-legendary, .rk-legendary { --rc: #FFA81F; --rd: #915200; --rt: #FFF0CC; }
.rc-mythic, .pc-mythic, .rk-mythic { --rc: #FF5FA8; --rd: #B01F66; --rt: #FFE3F1; }
.l-mythic { --l1: #FFE3F1; --l2: #DCCEFF; }

@property --holo { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes holo { to { --holo: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(.6); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rchip { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: .92rem; line-height: 1.2; padding: 4px 12px; border-radius: 999px; color: #fff; background: var(--rd); border: 3px solid #fff; box-shadow: var(--sticker); }
.rchip.rc-mythic { background: linear-gradient(90deg, #D93B83, #7A4DE0, #1F7FC4); }
.rdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 2px #fff; }
.rdot.rc-mythic { background: conic-gradient(#FF7EB6, #FFD36E, #7EF0D0, #8FA8FF, #D88BFF, #FF7EB6); }
.hl { color: var(--pink); text-shadow: 0 4px 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff, 0 -4px 0 #fff, 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff, 0 10px 18px rgb(var(--sh) / .25); }
.spark { position: absolute; z-index: 3; width: 20px; aspect-ratio: 1; background: var(--butter); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.6s ease-in-out infinite both; pointer-events: none; }

/* ───────── Search, chips, counts (shared) ───────── */
.dex-search { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 8px 0 18px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line), var(--sticker); color: var(--ink-2); }
.dex-search svg { width: 22px; height: 22px; flex: none; }
.dex-search input { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; border: 0; background: transparent; font: 800 1.06rem/1.2 var(--body); color: var(--ink); padding: 14px 6px 14px 0; outline: none; }
.dex-search input::placeholder { color: #8A7C99; font-weight: 700; }
.dex-search:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.dex-search input::-webkit-search-cancel-button { cursor: pointer; }
.dex-search--sm { min-height: 48px; }
.dex-search--sm input { padding-block: 11px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 4px 6px; margin: 4px -4px 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.fchip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 15px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 800 .93rem/1.1 var(--body); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line), 0 6px 12px -8px rgb(var(--sh) / .5); transition: transform .25s var(--ease-spring), background-color .2s, box-shadow .2s; }
.fchip:hover { transform: translateY(-2px); }
.fchip:active { transform: translateY(1px) scale(.97); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff, var(--sticker); }
.fchip .mini { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(90% 90% at 30% 22%, rgba(255, 255, 255, .8) 0 16%, transparent 40%), linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 2px #fff; }
.fchip .mini img { width: 23px; height: auto; transform: translateY(1px); }
.dex-count { font-weight: 800; color: var(--ink-2); font-size: .93rem; margin-top: 4px; }

/* ───────── Pipdex hero ───────── */
.dex-hero { padding: 6px 0 4px; overflow: clip; }
.dex-hero .wrap { display: grid; gap: 4px; align-items: center; }
.dex-hero__copy { text-align: center; position: relative; z-index: 2; }
.dex-hero__copy .tag { margin-bottom: 14px; }
.dex-hero h1 { font-size: clamp(2.7rem, 11vw, 5rem); line-height: .98; margin-bottom: 14px; }
.dex-hero__copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.6vw, 1.22rem); max-width: 40ch; margin: 0 auto 18px; }
.dex-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dex-stats li { display: flex; align-items: baseline; gap: 6px; background: #fff; border-radius: 16px; padding: 6px 14px; box-shadow: var(--sticker); font-weight: 800; color: var(--ink-2); animation: rise .6s var(--ease-out) both; }
.dex-stats li:nth-child(2) { animation-delay: .08s; }
.dex-stats li:nth-child(3) { animation-delay: .16s; }
.dex-stats li:nth-child(4) { animation-delay: .24s; }
.dex-stats b { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--pink-deep); }
.parade { position: relative; width: min(100%, 560px); margin-inline: auto; height: clamp(170px, 44vw, 300px); }
.parade::before { content: ""; position: absolute; inset: 14% 4% 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(closest-side at 50% 100%, rgba(255, 212, 94, .55), rgba(255, 212, 94, 0)); }
.pp { position: absolute; bottom: 0; width: 23%; animation: pop-in .7s var(--ease-spring) both; }
.pp img { width: 100%; animation: bob 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.pp1 { left: 0; bottom: 4%; width: 19%; animation-delay: .15s; }
.pp2 { left: 13%; bottom: 30%; width: 19%; animation-delay: .25s; }
.pp3 { left: 29%; bottom: 46%; width: 18%; animation-delay: .35s; }
.pp4 { left: 37%; bottom: 0; width: 27%; animation-delay: .1s; z-index: 2; }
.pp5 { right: 29%; bottom: 46%; width: 18%; animation-delay: .45s; }
.pp6 { right: 13%; bottom: 30%; width: 19%; animation-delay: .55s; }
.pp7 { right: 0; bottom: 4%; width: 19%; animation-delay: .65s; }
.pp2 img { animation-delay: .5s; } .pp3 img { animation-delay: 1s; } .pp4 img { animation-delay: 1.5s; }
.pp5 img { animation-delay: .7s; } .pp6 img { animation-delay: 1.2s; } .pp7 img { animation-delay: .3s; }
.parade .s1 { left: 30%; top: 4%; animation-delay: 1s; }
.parade .s2 { right: 12%; top: 18%; width: 15px; background: #fff; animation-delay: 1.6s; }
.parade .s3 { left: 8%; top: 34%; width: 14px; animation-delay: 2.2s; }
@media (min-width: 960px) {
  .dex-hero { padding: 18px 0 8px; }
  .dex-hero .wrap { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dex-hero__copy { text-align: left; }
  .dex-hero__copy > p { margin-left: 0; }
  .dex-stats { justify-content: flex-start; }
}

/* ───────── Tools bar ───────── */
.dex-tools { padding: 14px 0 10px; z-index: 20; }
.dex-tools__top { display: flex; gap: 10px; align-items: center; }
.dex-tools__top .dex-search { flex: 1; min-width: 0; }
.dex-random { flex: none; min-height: 50px; padding: 8px 16px; font-size: 1.02rem; gap: 6px; }
.dex-random svg { width: 22px; height: 22px; }
@media (max-width: 520px) {
  .dex-random { width: 54px; min-height: 54px; padding: 0; }
  .dex-random svg { width: 26px; height: 26px; }
  .dex-random__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 760px) {
  .dex-tools { position: sticky; top: 0; background: rgba(247, 241, 230, .9); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 10px 20px -18px rgb(var(--sh) / .6); }
}

/* ───────── World bands & the card grid ───────── */
.dex-body { padding-bottom: 12px; }
/* content-visibility clips paint, so leave room for card rims and glows. */
.dex-world { content-visibility: auto; contain-intrinsic-size: auto 1600px; scroll-margin-top: 230px; padding: 2px 10px 26px; margin-inline: -10px; }
.dex-world[hidden] { display: none; }
@media (max-width: 759px) { .dex-world { scroll-margin-top: 12px; } }
.world-band { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin: 40px 4px 22px; padding: 14px 18px 14px 12px; border-radius: 30px; color: var(--ink); background: radial-gradient(90% 140% at 12% 0%, rgba(255, 255, 255, .6), transparent 55%), linear-gradient(135deg, var(--l1), var(--l2)); box-shadow: 0 0 0 5px #fff, var(--sticker-lg); }
.world-band.l-moon { --l1: #7262E6; --l2: #2F2580; color: #fff; }
.world-band.l-geode { --l1: #8D5CD9; --l2: #4A2A86; color: #fff; }
.world-band.l-ember { --l2: #FF8A5B; }
.world-band__pip { width: clamp(66px, 16vw, 104px); margin: -26px 0 -10px; }
.world-band__pip img { width: 100%; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 8px 8px rgb(var(--sh) / .3)); }
.world-band h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.world-band p { font-weight: 700; opacity: .92; line-height: 1.4; margin-top: 2px; }
.world-band__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.world-band__facts li { background: rgba(255, 255, 255, .9); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 800; }
.world-band__facts b { font-family: var(--display); font-weight: 600; }

.dex-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: 14px 10px; padding: 0 3px; }
@media (min-width: 760px) { .dex-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 14px; } }
.dex-grid li[hidden] { display: none; }
.pcard { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 6px 6px 9px; border: 4px solid #fff; border-radius: 22px; text-decoration: none; color: var(--ink); text-align: center; background: radial-gradient(110% 80% at 50% 34%, #fff 0 34%, var(--rt) 78%); box-shadow: 0 0 0 2.5px var(--rc), 0 12px 20px -12px rgb(var(--sh) / .55); transition: transform .3s var(--ease-spring), box-shadow .3s; }
.pcard:hover, .pcard:focus-visible { color: var(--ink); transform: translateY(-5px) rotate(-1.6deg); box-shadow: 0 0 0 2.5px var(--rc), 0 18px 26px -12px rgb(var(--sh) / .6); }
.dex-grid li:nth-child(even) .pcard:hover { transform: translateY(-5px) rotate(1.6deg); }
.pcard:active { transform: translateY(-1px) scale(.97); }
.pcard img { width: 100%; max-width: 116px; aspect-ratio: 1; height: auto; transition: transform .35s var(--ease-spring); }
.pcard:hover img { transform: translateY(-4px) scale(1.08); }
.pcard__no { position: absolute; top: 5px; left: 5px; z-index: 2; font-weight: 800; font-size: .7rem; line-height: 1; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 4px 7px; }
.pcard__name { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.15; margin-top: -2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__r { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: .74rem; font-weight: 800; color: var(--rd); }
.pcard.pc-epic { box-shadow: 0 0 0 2.5px var(--rc), 0 0 18px -2px rgba(163, 91, 255, .45), 0 12px 20px -12px rgb(var(--sh) / .55); }
.pcard.pc-legendary { background: radial-gradient(110% 80% at 50% 34%, #fff 0 30%, #FFF0CC 62%, #FFD98A 100%); box-shadow: 0 0 0 2.5px var(--rc), 0 0 22px -2px rgba(255, 168, 31, .55), 0 12px 20px -12px rgb(var(--sh) / .55); }
/* Mythic: a holographic rim (gradient border trick, animated with @property). */
.pcard.pc-mythic { border-color: transparent; background: radial-gradient(110% 80% at 50% 34%, #fff 0 30%, #FFE3F1 60%, #E3E9FF 100%) padding-box, conic-gradient(from var(--holo), #FF7EB6, #FFD36E, #7EF0D0, #8FA8FF, #D88BFF, #FF7EB6) border-box; box-shadow: 0 0 0 2.5px #fff, 0 0 22px -2px rgba(255, 95, 168, .5), 0 12px 20px -12px rgb(var(--sh) / .55); animation: holo 5s linear infinite; }
.pcard.pc-legendary::after, .pcard.pc-mythic::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease-out); pointer-events: none; }
.pcard.pc-legendary:hover::after, .pcard.pc-mythic:hover::after { transform: translateX(120%); }

.dex-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 0 10px; }
.dex-empty[hidden] { display: none; }
.dex-empty__img { width: 130px; }
.dex-empty h2 { font-size: 1.8rem; }
.dex-empty p { color: var(--ink-2); max-width: 36ch; margin-bottom: 8px; }

.dex-more { padding-top: 48px; }
.more-cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .more-cards { grid-template-columns: repeat(3, 1fr); } }
.more-card { display: block; background: #fff; border-radius: 24px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--sticker); transition: transform .25s var(--ease-spring); }
.more-card:hover { color: var(--ink); transform: translateY(-3px) rotate(-1deg); }
.more-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--pink-deep); }
.more-card span { color: var(--ink-2); }

/* ───────── One Pip's page ───────── */
.pip-page { padding-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-weight: 800; font-size: .92rem; color: var(--ink-2); padding: 6px 0 14px; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--ink-2); opacity: .7; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.pip-hero { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .pip-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.pip-stage { position: relative; isolation: isolate; width: min(100% - 30px, 400px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .9) 0 26%, rgba(255, 255, 255, 0) 62%), linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 9px #fff, 0 0 0 13px var(--rc), var(--sticker-lg); animation: pop-in .7s var(--ease-spring) both; }
.pip-stage.pc-mythic { border: 7px solid transparent; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .9) 0 26%, rgba(255, 255, 255, 0) 62%) padding-box, linear-gradient(160deg, var(--l1), var(--l2)) padding-box, conic-gradient(from var(--holo), #FF7EB6, #FFD36E, #7EF0D0, #8FA8FF, #D88BFF, #FF7EB6) border-box; box-shadow: 0 0 0 8px #fff, var(--sticker-lg); animation: pop-in .7s var(--ease-spring) both, holo 6s linear infinite; }
.pip-stage__rays { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.pip-stage__rays::before { content: ""; position: absolute; inset: -20%; background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 9deg, rgba(255, 255, 255, 0) 9deg 18deg); animation: spin 60s linear infinite; }
.pip-art { position: relative; width: 74%; height: auto; animation: bob 3s ease-in-out 1s infinite; transform-origin: 50% 92%; filter: drop-shadow(0 16px 14px rgb(var(--sh) / .3)); }
.pip-stage__no { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%) rotate(-3deg); font-family: var(--display); font-weight: 700; font-size: 1.25rem; background: #fff; color: var(--ink); padding: 4px 16px; border-radius: 14px; box-shadow: var(--sticker); }
.pip-stage .s1 { top: 10%; right: 12%; animation-delay: .8s; }
.pip-stage .s2 { top: 30%; left: 6%; width: 14px; background: #fff; animation-delay: 1.6s; }
.pip-intro { animation: rise .6s var(--ease-out) .1s both; }
.pip-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wchip { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: .92rem; line-height: 1.2; padding: 4px 12px; border-radius: 999px; border: 3px solid #fff; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: var(--sticker); }
.wchip.l-moon, .wchip.l-geode { --l1: #7262E6; --l2: #4A2A86; color: #fff; }
.wchip:hover { color: var(--ink); transform: rotate(-2deg); }
.wchip.l-moon:hover, .wchip.l-geode:hover { color: #fff; }
.pip-intro h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); line-height: .98; margin: 14px 0 8px; overflow-wrap: anywhere; }
.pip-sub { font-weight: 800; color: var(--ink-2); }
.pip-story { font-size: clamp(1.08rem, 2.4vw, 1.2rem); line-height: 1.65; margin: 14px 0 16px; max-width: 60ch; }
.pip-fact { background: #FFF3C9; border: 3px solid #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--sticker); transform: rotate(-.6deg); max-width: 60ch; }
.pip-fact b { font-family: var(--display); font-weight: 600; color: var(--pink-deep); margin-right: 4px; }

.pip-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .pip-grid { grid-template-columns: 1fr 1fr; gap: 18px; } .pcard2.wide { grid-column: 1 / -1; } }
.pcard2 { position: relative; background: var(--paper); border-radius: 28px; padding: clamp(18px, 3vw, 24px); box-shadow: 0 0 0 4px #fff, var(--sticker); }
.pcard2 h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 3.6vw, 1.7rem); margin-bottom: 12px; }
.pcard2 .lead { color: var(--ink-2); margin: -4px 0 12px; }
.pcard2 .note { color: var(--ink-2); font-size: .92rem; margin-top: 12px; }
.face { width: 34px; height: 34px; flex: none; }
.good { background: linear-gradient(165deg, #E9FBEA, var(--paper) 55%); }
.meh { background: linear-gradient(165deg, #FFEFE4, var(--paper) 55%); }
.traits { list-style: none; display: grid; gap: 10px; }
.traits li { display: grid; gap: 2px; background: #fff; border-radius: 18px; padding: 11px 14px 12px; box-shadow: inset 0 0 0 2px var(--line); }
.traits b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.traits span { color: var(--ink-2); line-height: 1.5; }
.t-good b { color: #1D7A45; }
.t-meh b { color: #A3461B; }

.special { color: #fff; background: radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .9) 1px, transparent 2px) 0 0 / 70px 70px, radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .6) 1px, transparent 2px) 0 0 / 50px 50px, radial-gradient(120% 90% at 30% 0%, #3D5290 0%, #23304F 60%, #1A2440 100%); box-shadow: 0 0 0 4px #fff, var(--sticker-lg); overflow: hidden; }
.special h2 { color: #FFE7A3; }
.move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.move__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1; text-shadow: 0 3px 0 #6E5BD8, 0 0 22px rgba(255, 212, 94, .55); }
.move__how { font-size: 1.08rem; color: #EEF1FF; }
.move__how b { color: #FFE7A3; }
.move__kid { color: #C9D2F2; margin-top: 8px; }
.move__kid b { color: #fff; }

.bars { list-style: none; display: grid; gap: 14px; }
.bars li { display: grid; gap: 6px; }
.bar-l b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin-right: 8px; }
.bar-l span { color: var(--ink-2); font-size: .9rem; }
.bar { position: relative; height: 16px; border-radius: 999px; background: var(--linen); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transform-origin: 0 50%; animation: grow 1s var(--ease-out) .3s both; }
.bar .b30 { background: repeating-linear-gradient(-45deg, #FFD6E7 0 6px, #FFE7F0 6px 12px); }
.bar .b1 { background: linear-gradient(90deg, var(--pink-hi), var(--pink)); box-shadow: inset 0 -3px 0 rgba(160, 20, 70, .18); }
@keyframes grow { from { transform: scaleX(0); } }
.bar-v { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 800; color: var(--ink-2); }
.bar-v b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; }

.tree-root { display: table; margin: 0 auto 14px; text-align: center; background: var(--linen); border-radius: 999px; padding: 6px 16px; font-weight: 800; color: var(--ink-2); font-size: .95rem; }
.tree-root b { font-family: var(--display); font-weight: 600; color: var(--ink); }
.branches3 { display: grid; gap: 12px; }
@media (min-width: 760px) { .branches3 { grid-template-columns: repeat(3, 1fr); } }
.branch { --b: #FF6F91; --bt: #FFE9EF; background: var(--bt); border-radius: 22px; padding: 14px 14px 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.br-heart { --b: #3F8FE6; --bt: #E4F1FF; }
.br-luck { --b: #E39410; --bt: #FFF2D6; }
.branch h3 { font-size: 1.35rem; color: var(--ink); display: flex; flex-direction: column; margin-bottom: 10px; }
.branch h3 small { font-family: var(--body); font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.branch ol { list-style: none; display: grid; gap: 8px; counter-reset: n; }
.node { counter-increment: n; position: relative; display: grid; gap: 1px; background: #fff; border-radius: 16px; padding: 9px 12px 9px 46px; }
.node::before { content: counter(n); position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .9rem; color: #fff; background: var(--b); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b); }
.node + .node::after { content: ""; position: absolute; left: 22px; top: -10px; height: 12px; border-left: 3px dotted var(--b); }
.node b { font-family: var(--display); font-weight: 600; font-size: 1.04rem; }
.node span { font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.node small { font-size: .78rem; font-weight: 800; color: var(--ink-2); opacity: .85; }
.node.is-sig { background: linear-gradient(135deg, #FFF6D2, #FFE3F1); box-shadow: 0 0 0 2px #FFD45E; }
.node.is-sig::before { content: "\2605"; background: #FFB13B; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FFB13B; }

.findlist { list-style: none; display: grid; gap: 9px; }
.findlist li { position: relative; display: grid; gap: 1px; padding: 10px 12px 10px 42px; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.findlist li::before { content: ""; position: absolute; left: 13px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(88, 194, 122, .35); }
.findlist b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.findlist span { color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.findlist .find-note { background: #FFF6D8; }
.findlist .find-note::before { background: var(--butter); border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); box-shadow: none; width: 20px; height: 20px; left: 11px; top: 12px; }
.food { background: linear-gradient(165deg, #FFF4E0, var(--paper) 60%); }
.pip-col { display: grid; gap: 16px; align-content: start; }
@media (min-width: 760px) { .pip-col { gap: 18px; } }
.mates__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mate { display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 18px; background: radial-gradient(110% 80% at 50% 34%, #fff 0 34%, var(--rt) 80%); box-shadow: 0 0 0 2px var(--rc), 0 0 0 5px #fff, 0 8px 14px -8px rgb(var(--sh) / .5); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: .92rem; text-align: center; transition: transform .25s var(--ease-spring); }
.mate:hover { color: var(--ink); transform: translateY(-3px) rotate(-2deg); }
.mate img { width: 76px; height: 76px; }
.mate.pc-mythic { box-shadow: 0 0 0 2px #FF7EB6, 0 0 0 5px #fff, 0 0 16px -2px rgba(255, 95, 168, .5); }
.mate.pc-legendary { box-shadow: 0 0 0 2px var(--rc), 0 0 0 5px #fff, 0 0 16px -2px rgba(255, 168, 31, .5); }
.mate span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.food__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.2rem); color: var(--pink-deep); margin-bottom: 6px; }
.food p { color: var(--ink-2); }
.food .food__name { color: var(--pink-deep); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; align-items: center; }
.pager__all { grid-column: 1 / -1; order: 3; justify-self: center; display: inline-flex; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; box-shadow: 0 5px 0 #E2D6C4, var(--sticker); }
.pager__all:hover { color: var(--link); }
.pager__link { display: flex; align-items: center; gap: 6px; min-width: 0; background: #fff; border-radius: 22px; padding: 8px 10px; color: var(--ink); text-decoration: none; box-shadow: var(--sticker); transition: transform .25s var(--ease-spring); }
.pager__link:hover { color: var(--ink); transform: translateY(-3px); }
.pager__link svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.pager__link img { width: 52px; height: 52px; flex: none; }
.pager__link span { display: grid; min-width: 0; }
.pager__link small { font-weight: 800; color: var(--ink-2); font-size: .76rem; }
.pager__link b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager__next { justify-content: flex-end; text-align: right; }
@media (min-width: 760px) {
  .pager { grid-template-columns: 1fr auto 1fr; }
  .pager__all { grid-column: auto; order: 0; }
  .pager__link img { width: 64px; height: 64px; }
  .pager__link { padding: 8px 14px; gap: 10px; }
}

/* ───────── Treasure guide ───────── */
.t-hero { padding: 6px 0 10px; overflow: clip; }
.t-hero .wrap { display: grid; gap: 10px; align-items: center; }
.t-hero__copy { text-align: center; }
.t-hero__copy .tag { margin-bottom: 14px; }
.t-hero h1 { font-size: clamp(2.5rem, 9.6vw, 4.6rem); line-height: 1; margin-bottom: 14px; }
.t-hero__copy p { color: var(--ink-2); font-size: clamp(1.05rem, 2.6vw, 1.22rem); max-width: 40ch; margin: 0 auto; }
.t-hero__art { position: relative; width: min(78%, 330px); margin: 10px auto 0; aspect-ratio: 1; display: grid; place-items: center; }
.t-hero__art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0 25%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #FFE7A3, #FFB4D2); box-shadow: 0 0 0 8px #fff, var(--sticker-lg); }
.t-hero__pip { position: relative; width: 78%; animation: bob 3s ease-in-out infinite; transform-origin: 50% 95%; }
.lbl { position: absolute; z-index: 2; font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 4px 12px; border-radius: 12px; border: 3px solid #fff; box-shadow: var(--sticker); animation: pop-in .6s var(--ease-spring) both; }
.lbl--hat { top: 6%; left: -2%; background: var(--butter); transform: rotate(-6deg); animation-delay: .4s; }
.lbl--charm { top: 44%; right: -6%; background: #BFE4FF; transform: rotate(5deg); animation-delay: .6s; }
.lbl--trinket { bottom: 12%; left: -6%; background: var(--mint-hi); transform: rotate(-3deg); animation-delay: .8s; }
.t-hero .s1 { right: 10%; top: 8%; animation-delay: 1s; }
.t-hero .s2 { left: 22%; bottom: 4%; width: 14px; background: #fff; animation-delay: 1.5s; }
.t-hero .s3 { right: 2%; bottom: 30%; width: 16px; animation-delay: 2s; }
@media (min-width: 900px) {
  .t-hero .wrap { grid-template-columns: 1.2fr .8fr; gap: 40px; }
  .t-hero__copy { text-align: left; }
  .t-hero__copy p { margin-left: 0; }
}

.t-toc { position: sticky; top: 0; z-index: 20; padding: 8px 0; background: rgba(247, 241, 230, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 20px -18px rgb(var(--sh) / .6); }
.t-toc ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.t-toc ul::-webkit-scrollbar { display: none; }
.t-toc a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: .92rem; white-space: nowrap; text-decoration: none; box-shadow: inset 0 0 0 2px var(--line); }
.t-toc a:hover { color: var(--link); }
@media (min-width: 1100px) { .t-toc ul { flex-wrap: wrap; justify-content: center; } }

.t-body { padding-bottom: 20px; }
.t-sec { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: 72px; }
.t-sec > h2 { font-size: clamp(1.9rem, 5.6vw, 2.9rem); }
.t-lead { color: var(--ink-2); font-size: clamp(1.02rem, 2.2vw, 1.12rem); max-width: 72ch; margin: 10px 0 20px; }
.t-h3 { font-size: 1.35rem; margin: 30px 0 4px; }

.steps3 { list-style: none; display: grid; gap: 14px; counter-reset: s; margin-top: 18px; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { counter-increment: s; position: relative; display: grid; gap: 4px; background: #fff; border-radius: 24px; padding: 54px 18px 18px; box-shadow: var(--sticker); }
.steps3 li::before { content: counter(s); position: absolute; top: -12px; left: 16px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #fff; background: linear-gradient(180deg, var(--pink-hi), var(--pink-deep)); border: 4px solid #fff; box-shadow: var(--sticker); transform: rotate(-6deg); }
.steps3 li:nth-child(2)::before { background: linear-gradient(180deg, #8FE3B0, #1E8A64); transform: rotate(4deg); }
.steps3 li:nth-child(3)::before { background: linear-gradient(180deg, #A9D8FF, #1F6FC4); }
.steps3 b { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.steps3 span { color: var(--ink-2); }

.rcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 12px; }
.rcard { position: relative; isolation: isolate; display: grid; align-content: start; gap: 6px; padding: 16px 14px 14px; border: 4px solid #fff; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #fff 0 20%, var(--rt) 70%); box-shadow: 0 0 0 2.5px var(--rc), var(--sticker); }
.rcard__gem { width: 30px; height: 30px; border-radius: 8px; transform: rotate(45deg); margin: 2px 0 6px 4px; background: linear-gradient(135deg, #fff 0 18%, var(--rc) 45%, var(--rd)); box-shadow: 0 0 0 3px #fff, var(--sticker); }
.rk-mythic .rcard__gem { background: conic-gradient(#FF7EB6, #FFD36E, #7EF0D0, #8FA8FF, #D88BFF, #FF7EB6); }
.rcard h3 { font-size: 1.35rem; color: var(--rd); }
.rcard ul { list-style: none; display: grid; gap: 2px; font-size: .93rem; color: var(--ink-2); }
.rcard b { color: var(--ink); }
.rcard__procs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rcard__procs span { background: #fff; border-radius: 999px; padding: 2px 9px; font-size: .8rem; font-weight: 800; color: var(--ink-2); }
.rcard__procs b { color: var(--rd); }

.odds { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.odds li { display: grid; grid-template-columns: 82px 1fr; gap: 6px 12px; align-items: center; }
.odds small { grid-column: 2; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
@media (max-width: 520px) { .odds li { grid-template-columns: 1fr; } .odds small { grid-column: 1; } }
.dname { justify-self: start; font-family: var(--display); font-weight: 600; font-size: .95rem; color: #fff; padding: 3px 12px; border-radius: 999px; border: 3px solid #fff; box-shadow: var(--sticker); background: var(--d); }
.dk-cozy { --d: #1E8A64; } .dk-brave { --d: #1F6FC4; } .dk-fierce { --d: #8143D9; } .dk-legend { --d: #A86100; }
.stack { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, var(--sticker); }
.seg { flex: none; height: 100%; min-width: 4px; background: var(--rc); transform-origin: 0 50%; animation: grow .9s var(--ease-out) both; }
.seg.rk-mythic { background: linear-gradient(90deg, #FF7EB6, #8FA8FF); }

.statgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.stat { display: grid; grid-template-columns: 50px 1fr; gap: 2px 12px; align-items: start; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sticker); }
.stat__ico { grid-row: span 2; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .02em; color: #fff; background: var(--s); border: 3px solid #fff; box-shadow: var(--sticker); transform: rotate(-4deg); }
.stat b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.stat span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.st-power { --s: #E2457A; } .st-guard { --s: #1F6FC4; } .st-spark { --s: #9A6300; } .st-haste { --s: #C2410C; }
.st-luck { --s: #1E8A64; } .st-dewFind { --s: #2563A8; } .st-heal { --s: #B5367E; }

.slotcols { display: grid; gap: 14px; }
@media (min-width: 860px) { .slotcols { grid-template-columns: repeat(3, 1fr); } }
.slotcol { background: var(--paper); border-radius: 26px; padding: 18px; box-shadow: 0 0 0 4px #fff, var(--sticker); }
.slotcol h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin-bottom: 12px; }
.slotcol h3 small { margin-left: auto; font-family: var(--body); font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.emo { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.slotcol h3 .emo { font-size: 1.5rem; }
.gearlist { list-style: none; display: grid; gap: 8px; }
.gearlist li { display: grid; grid-template-columns: 46px 1fr; gap: 0 12px; align-items: center; background: #fff; border-radius: 18px; padding: 8px 12px 8px 8px; box-shadow: inset 0 0 0 2px var(--line); }
.gearlist .emo { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: radial-gradient(circle at 35% 30%, #fff, var(--linen)); }
.gearlist b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.mainstat { font-size: .85rem; font-weight: 800; color: var(--ink-2); }

.wordcols { display: grid; gap: 4px 24px; }
@media (min-width: 860px) { .wordcols { grid-template-columns: 1fr 1fr; } }
.words { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.words li { display: inline-flex; align-items: baseline; gap: 8px; background: #fff; border-radius: 14px; padding: 7px 12px; box-shadow: var(--sticker); }
.words b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.words span { font-size: .85rem; font-weight: 800; color: var(--ink-2); }

.ucards, .setcards, .procs-db { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.ucard { position: relative; isolation: isolate; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 16px; border: 4px solid #fff; border-radius: 24px; background: radial-gradient(120% 100% at 0% 0%, #fff 0 25%, var(--rt) 80%); box-shadow: 0 0 0 2.5px var(--rc), var(--sticker); }
.ucard.rk-mythic { border-color: transparent; background: radial-gradient(120% 100% at 0% 0%, #fff 0 25%, var(--rt) 80%) padding-box, conic-gradient(from var(--holo), #FF7EB6, #FFD36E, #7EF0D0, #8FA8FF, #D88BFF, #FF7EB6) border-box; box-shadow: 0 0 0 2.5px #fff, var(--sticker); animation: holo 6s linear infinite; }
.ucard > .emo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: #fff; box-shadow: var(--sticker); transform: rotate(-5deg); }
.ucard h3 { font-size: 1.25rem; }
.ucard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 6px; font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.ucard__meta .rchip { font-size: .8rem; padding: 2px 9px; border-width: 2px; }
.ucard p:last-child { color: var(--ink); }

.setcard { background: #fff; border-radius: 24px; padding: 16px 18px; box-shadow: var(--sticker); display: grid; gap: 8px; align-content: start; }
.setcard h3 { display: flex; align-items: center; gap: 10px; font-size: 1.28rem; }
.setdot { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 0 0 #fff); }
.pieces { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pieces li { display: inline-flex; align-items: center; gap: 5px; background: var(--linen); border-radius: 999px; padding: 3px 10px 3px 6px; font-weight: 800; font-size: .88rem; }
.bonus { color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.bonus b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.gift { display: inline-block; margin-top: 4px; background: #FFF1C2; color: var(--ink); border-radius: 999px; padding: 1px 10px; font-size: .85rem; font-weight: 800; }

.pfilter { display: grid; gap: 4px; margin-bottom: 14px; }
@media (min-width: 900px) { .pfilter { grid-template-columns: minmax(240px, 320px) 1fr; column-gap: 16px; align-items: center; } .pfilter .chips:last-of-type { grid-column: 1 / -1; } .pfilter .dex-count { grid-column: 1 / -1; } }
.odds-key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.odds-key i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: var(--rt); color: var(--rd); }
.proc { display: grid; gap: 8px; align-content: start; background: #fff; border-radius: 24px; padding: 16px 16px 14px; box-shadow: var(--sticker); animation: rise .4s var(--ease-out) both; }
.proc[hidden] { display: none; }
.proc__head { display: flex; align-items: center; gap: 10px; }
.proc__dot { width: 18px; height: 18px; flex: none; }
.proc h3 { font-size: 1.25rem; flex: 1; }
.kind { font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.kind--skill { background: #FFE0EC; color: #A3164F; }
.kind--magic { background: #EDE4FF; color: #5B2DB0; }
.proc__kid { font-size: 1.05rem; line-height: 1.45; }
.proc__when { color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.proc__when b { color: var(--ink); }
.proc__odds { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.proc__odds li { text-align: center; font-weight: 800; font-size: .78rem; padding: 3px 0; border-radius: 8px; background: var(--rt); color: var(--rd); }
.proc__x { font-size: .86rem; font-weight: 800; color: var(--ink-2); }
.proc__from { font-size: .84rem; font-weight: 700; color: var(--ink-2); border-top: 2px dashed var(--line); padding-top: 8px; }

.t-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sticker); font-size: .98rem; }
.t-table th, .t-table td { text-align: left; padding: 10px 14px; border-bottom: 2px dashed rgba(43, 30, 58, .1); }
.t-table thead th { font-family: var(--display); font-weight: 600; background: var(--linen-2); }
.t-table td { font-weight: 800; }
.t-table .rchip { font-size: .82rem; padding: 2px 10px; border-width: 2px; box-shadow: none; }
.tips { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.tips li { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sticker); color: var(--ink-2); }
.tips b { color: var(--ink); font-family: var(--display); font-weight: 600; }

.twocol { display: grid; gap: 8px 28px; }
@media (min-width: 860px) { .twocol { grid-template-columns: 1fr 1fr; } }
.glims, .chests { list-style: none; display: grid; gap: 10px; }
.glims li { display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--sticker); }
.glims .gem { grid-row: span 2; width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgb(var(--sh) / .3)); }
.glims b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.glims span { color: var(--ink-2); font-weight: 800; font-size: .92rem; }
.chests li { display: grid; gap: 2px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sticker); }
.chests b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.chests span { color: var(--ink-2); }
.chests small { justify-self: start; margin-top: 4px; font-weight: 800; background: var(--linen); border-radius: 999px; padding: 2px 10px; }

.t-adv .t-lead { max-width: 64ch; }
.advcols { display: grid; gap: 16px; }
@media (min-width: 900px) { .advcols { grid-template-columns: 1fr 1fr; } }
.advbox { background: var(--paper); border-radius: 28px; padding: clamp(18px, 3vw, 24px); box-shadow: 0 0 0 4px #fff, var(--sticker); }
.advbox h3 { font-size: 1.4rem; margin-bottom: 4px; }
.advbox h3 + p { color: var(--ink-2); margin-bottom: 12px; }
.advbox ul + h3 { margin-top: 22px; }
.chapters { list-style: none; display: grid; gap: 8px; }
.chapters li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 8px 12px 8px 8px; box-shadow: inset 0 0 0 2px var(--line); }
.chap { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--ink); background: radial-gradient(90% 90% at 30% 22%, rgba(255, 255, 255, .8) 0 16%, transparent 40%), linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 3px #fff; }
.chap.l-moon, .chap.l-geode { color: #fff; --l1: #7262E6; --l2: #4A2A86; }
.chapters b { font-family: var(--display); font-weight: 600; display: block; }
.chapters small { color: var(--ink-2); font-weight: 700; font-size: .85rem; }
.diffs4, .dun { list-style: none; display: grid; gap: 8px; }
.diffs4 li, .dun li { display: grid; gap: 1px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: inset 4px 0 0 var(--d, var(--pink)), inset 0 0 0 2px var(--line); }
.diffs4 b, .dun b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.diffs4 span, .dun .reward { color: var(--ink); }
.diffs4 small, .dun small { color: var(--ink-2); font-weight: 700; font-size: .86rem; }
.dun li { --d: #A35BFF; }
.grumblies-line { margin-top: 16px; color: var(--ink-2); text-align: center; }
.grumblies-line b { color: var(--ink); }

.t-cta { display: grid; gap: 16px; align-items: center; justify-items: center; text-align: center; margin-top: clamp(48px, 7vw, 80px); padding: clamp(22px, 4vw, 36px); border-radius: clamp(28px, 5vw, 48px); background: radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, .6), transparent 50%), linear-gradient(160deg, #FFD1E6, #FF9CC4 60%, #FF8DBE); box-shadow: 0 0 0 6px #fff, var(--sticker-lg); }
.t-cta__pip { width: 120px; animation: bob 3s ease-in-out infinite; }
.t-cta h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 6px; }
.t-cta p { color: #4A2440; margin-bottom: 18px; }
.t-cta a:not(.badge) { color: #7A1442; }
.t-cta .badges { justify-content: center; }
@media (min-width: 760px) { .t-cta { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } .t-cta .badges { justify-content: flex-start; } .t-cta__pip { width: 150px; } }

/* Bar widths (no inline styles under the CSP) */
.w0 { width: 0%; } .w1 { width: 1%; } .w2 { width: 2%; } .w3 { width: 3%; } .w4 { width: 4%; } .w5 { width: 5%; } .w6 { width: 6%; } .w7 { width: 7%; } .w8 { width: 8%; } .w9 { width: 9%; } .w10 { width: 10%; } .w11 { width: 11%; } .w12 { width: 12%; } .w13 { width: 13%; } .w14 { width: 14%; } .w15 { width: 15%; } .w16 { width: 16%; } .w17 { width: 17%; } .w18 { width: 18%; } .w19 { width: 19%; } .w20 { width: 20%; } .w21 { width: 21%; } .w22 { width: 22%; } .w23 { width: 23%; } .w24 { width: 24%; } .w25 { width: 25%; } .w26 { width: 26%; } .w27 { width: 27%; } .w28 { width: 28%; } .w29 { width: 29%; } .w30 { width: 30%; } .w31 { width: 31%; } .w32 { width: 32%; } .w33 { width: 33%; } .w34 { width: 34%; } .w35 { width: 35%; } .w36 { width: 36%; } .w37 { width: 37%; } .w38 { width: 38%; } .w39 { width: 39%; } .w40 { width: 40%; } .w41 { width: 41%; } .w42 { width: 42%; } .w43 { width: 43%; } .w44 { width: 44%; } .w45 { width: 45%; } .w46 { width: 46%; } .w47 { width: 47%; } .w48 { width: 48%; } .w49 { width: 49%; } .w50 { width: 50%; } .w51 { width: 51%; } .w52 { width: 52%; } .w53 { width: 53%; } .w54 { width: 54%; } .w55 { width: 55%; } .w56 { width: 56%; } .w57 { width: 57%; } .w58 { width: 58%; } .w59 { width: 59%; } .w60 { width: 60%; } .w61 { width: 61%; } .w62 { width: 62%; } .w63 { width: 63%; } .w64 { width: 64%; } .w65 { width: 65%; } .w66 { width: 66%; } .w67 { width: 67%; } .w68 { width: 68%; } .w69 { width: 69%; } .w70 { width: 70%; } .w71 { width: 71%; } .w72 { width: 72%; } .w73 { width: 73%; } .w74 { width: 74%; } .w75 { width: 75%; } .w76 { width: 76%; } .w77 { width: 77%; } .w78 { width: 78%; } .w79 { width: 79%; } .w80 { width: 80%; } .w81 { width: 81%; } .w82 { width: 82%; } .w83 { width: 83%; } .w84 { width: 84%; } .w85 { width: 85%; } .w86 { width: 86%; } .w87 { width: 87%; } .w88 { width: 88%; } .w89 { width: 89%; } .w90 { width: 90%; } .w91 { width: 91%; } .w92 { width: 92%; } .w93 { width: 93%; } .w94 { width: 94%; } .w95 { width: 95%; } .w96 { width: 96%; } .w97 { width: 97%; } .w98 { width: 98%; } .w99 { width: 99%; } .w100 { width: 100%; }

/* ───────── Pips | Grumblies switch ───────── */
.dex-switch { display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), var(--sticker); }
.dex-switch a { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 20px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s, transform .25s var(--ease-spring); }
.dex-switch a:hover { color: var(--ink); transform: translateY(-1px); }
.dex-switch a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, #7BD88F, #2E9E5B); box-shadow: 0 3px 0 #22744A; }
.dex-switch .dex-switch__grumblies[aria-current="page"] { background: linear-gradient(180deg, #A79BD6, #6A5A9E); box-shadow: 0 3px 0 #4B3F78; }
.dex-hero__copy .dex-switch + .tag { display: table; margin: 0 auto 14px; }
@media (min-width: 960px) { .dex-hero__copy .dex-switch + .tag { margin-left: 0; } }

/* ───────── Grumbly Dex ───────── */
.hl--grump { color: #7D6FA8; }
.g-hero .dex-stats { margin-bottom: 16px; }
.g-hero .dex-stats b { color: #6A5A9E; }
.g-steps { list-style: none; display: grid; gap: 8px; counter-reset: g; text-align: left; max-width: 520px; margin: 0 auto; }
@media (min-width: 600px) { .g-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .g-steps { margin-left: 0; } }
.g-steps li { counter-increment: g; display: grid; gap: 2px; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--sticker); animation: rise .6s var(--ease-out) both; }
.g-steps li:nth-child(2) { animation-delay: .1s; } .g-steps li:nth-child(3) { animation-delay: .2s; }
.g-steps b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.g-steps b::before { content: counter(g) ". "; color: var(--pink-deep); }
.g-steps span { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.g-hero__art { position: relative; width: min(74%, 340px); margin: 18px auto 0; aspect-ratio: 1; display: grid; place-items: center; }
.g-hero__art::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff 0 22%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #D9D2F0, #A79BD6); box-shadow: 0 0 0 8px #fff, var(--sticker-lg); }
.g-hero__art .swap { width: 84%; }
.g-hero__art .s1 { top: 6%; right: 10%; animation-delay: .6s; }
.g-hero__art .s2 { bottom: 14%; left: 4%; width: 14px; background: #fff; animation-delay: 1.4s; }
.g-dexnote { margin: 4px auto 0; max-width: 46ch; text-align: center; font-weight: 800; color: var(--ink-2); }

/* Section bits */
.g-count { display: inline-grid; place-items: center; min-width: 2em; padding: 2px 9px; margin-left: 4px; vertical-align: middle; border-radius: 999px; background: #fff; color: #6A5A9E; font-family: var(--display); font-weight: 700; font-size: .6em; line-height: 1.3; box-shadow: inset 0 0 0 2px #CFC6EA; }
.g-sub { font-size: clamp(1.35rem, 3.6vw, 1.6rem); margin: 26px 0 2px; }
.g-subp { color: var(--ink-2); font-weight: 700; margin-bottom: 14px; }
.gno { position: absolute; top: 8px; left: 8px; z-index: 2; font-weight: 800; font-size: .74rem; line-height: 1; color: var(--ink-2); background: #fff; border-radius: 999px; padding: 4px 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.wdot { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(43, 30, 58, .15); }
.wdot--all { background: conic-gradient(#58C27A, #FF8DBE, #3FB4D6, #8C7BFF, #8DB8E8, #E5603D, #7DA26A, #6A3FB5, #58C27A); }

/* Grumpy → cheered up (loops gently; hover, focus or a tap cheers it up now). */
.swap { position: relative; display: block; aspect-ratio: 1; }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s, transform .45s var(--ease-spring); }
.swap__sulky { animation: cheer-down 7s ease-in-out infinite; }
.swap__happy { opacity: 0; animation: cheer-up 7s ease-in-out infinite; }
.swap__hearts { position: absolute; left: 50%; top: 8%; width: 0; height: 0; }
.swap__hearts i { position: absolute; width: 18px; height: 16px; background: #FF8DBE; clip-path: path("M9 16 C9 16 0 10 0 4.5 C0 1.8 2 0 4.5 0 C6.5 0 8 1.2 9 3 C10 1.2 11.5 0 13.5 0 C16 0 18 1.8 18 4.5 C18 10 9 16 9 16 Z"); opacity: 0; animation: heart 7s ease-out infinite; }
.swap__hearts i:nth-child(2) { left: -30px; animation-delay: .25s; background: #FFD45E; }
.swap__hearts i:nth-child(3) { left: 24px; animation-delay: .5s; }
.bcard:nth-child(2n) .swap img, .bcard:nth-child(2n) .swap__hearts i { animation-delay: 2.3s; }
.bcard:nth-child(3n) .swap img, .bcard:nth-child(3n) .swap__hearts i { animation-delay: 4.6s; }
.bcard:hover .swap img, .g-hero__art:hover .swap img { animation: none; }
.bcard:hover .swap__happy, .g-hero__art:hover .swap__happy { opacity: 1; transform: translateY(-4%) scale(1.04); }
.bcard:hover .swap__sulky, .g-hero__art:hover .swap__sulky { opacity: 0; }
/* Dex cards stay grumpy until you hover or tap them. */
.swap--tap { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.swap--tap img, .swap--tap .swap__hearts i { animation: none; }
.swap--tap:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.swap--tap:hover .swap__happy, .swap--tap[aria-pressed="true"] .swap__happy { opacity: 1; transform: translateY(-4%) scale(1.05); }
.swap--tap:hover .swap__sulky, .swap--tap[aria-pressed="true"] .swap__sulky { opacity: 0; }
.swap--tap[aria-pressed="true"] .swap__hearts i { animation: heart 2.4s ease-out 1 -1.2s both; }

.rk { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: .88rem; line-height: 1.2; padding: 3px 11px; border-radius: 999px; border: 3px solid #fff; box-shadow: var(--sticker); color: #fff; }
.rk--boss { background: linear-gradient(90deg, #6E5F8E, #3E3360); }
.rk--champ { background: #1D6FD1; }
.rk--uniq { background: #9A5A00; }
.rk--wand { background: #8434D6; }

/* Bosses */
.bcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.bcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 30px; padding: 18px 18px 20px; box-shadow: 0 0 0 5px #fff, var(--sticker-lg); }
.bcard .gno { top: 14px; left: 14px; font-size: .82rem; }
.bcard__art { position: relative; width: min(78%, 230px); margin: 0 auto 10px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .85) 0 24%, rgba(255, 255, 255, 0) 62%), linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 7px #fff, 0 0 0 10px #6E5F8E, var(--sticker); }
.bcard__art .swap { width: 88%; }
.bcard__tag { margin-bottom: 4px; }
.bcard h4 { font-size: 1.6rem; line-height: 1.1; margin-bottom: 8px; }
.bcard__move { display: grid; gap: 1px; margin-bottom: 10px; padding: 11px 14px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 15% 12%, rgba(255, 255, 255, .8) 1px, transparent 2px) 0 0 / 60px 60px, radial-gradient(120% 90% at 30% 0%, #3D5290 0%, #23304F 70%); box-shadow: var(--sticker); }
.bcard__movek { font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: #FFE7A3; }
.bcard__move b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.bcard__move span:last-child { color: #DCE2F7; font-size: .94rem; line-height: 1.4; }
.bcard__lore { color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.bcard__where { list-style: none; display: grid; gap: 6px; margin-top: auto; }
.bcard__where li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; font-size: .93rem; color: var(--ink-2); line-height: 1.35; }
.bcard__where b { color: var(--ink); }
.bcard__where .chap { width: 32px; height: 32px; font-size: .88rem; }
.chap--dun { --l1: #FFE0A3; --l2: #FFB13B; }
.chap--deep { --l1: #8C7A6B; --l2: #4A3B30; color: #fff; }
.g-note { margin-top: 18px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sticker); color: var(--ink-2); }
.g-note b { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* Wanderers (purple) */
.wand-word { color: #8434D6; }
.wcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 16px; }
.wcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 14px 14px 16px; border: 4px solid #fff; border-radius: 26px; background: radial-gradient(110% 70% at 50% 26%, #fff 0 30%, #F1E4FF 72%, #E2CCFF 100%); box-shadow: 0 0 0 2.5px #B45CFF, 0 0 22px -4px rgba(180, 92, 255, .5), var(--sticker); transition: transform .3s var(--ease-spring); }
.wcard:hover { transform: translateY(-4px) rotate(-1.2deg); }
.wcard:nth-child(even):hover { transform: translateY(-4px) rotate(1.2deg); }
.wcard__art { width: min(100%, 150px); }
.wcard__art img { filter: drop-shadow(0 0 5px rgba(180, 92, 255, .75)); }
.wcard h4 { font-size: 1.3rem; line-height: 1.15; }
.wcard__title { font-weight: 800; font-size: .9rem; color: #8434D6; }
.wcard__home { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .84rem; color: var(--ink-2); margin: 2px 0 4px; }
.tchips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 6px; }
.tchips li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: #fff; font-weight: 800; font-size: .84rem; color: var(--ink); box-shadow: inset 0 0 0 2px #D9C2FF; }
.tchips .tchip--surprise { background: #8434D6; color: #fff; box-shadow: none; }
.wcard__lore { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }

/* Glowing Grumblies */
.ranks { display: grid; gap: 16px; }
@media (min-width: 860px) { .ranks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
.rank { background: #fff; border-radius: 28px; padding: 20px; box-shadow: 0 0 0 4px #fff, var(--sticker); }
.rank--champ { background: linear-gradient(165deg, #E3F0FF, #fff 55%); box-shadow: 0 0 0 3px #3B9BFF, 0 0 0 7px #fff, 0 0 30px -4px rgba(59, 155, 255, .55); }
.rank--uniq { background: linear-gradient(165deg, #FFF1CF, #fff 55%); box-shadow: 0 0 0 3px #FFB31F, 0 0 0 7px #fff, 0 0 30px -4px rgba(255, 179, 31, .6); }
.rank--wand { background: linear-gradient(165deg, #F1E4FF, #fff 55%); box-shadow: 0 0 0 3px #B45CFF, 0 0 0 7px #fff, 0 0 30px -4px rgba(180, 92, 255, .55); }
.rank__art { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.rank__art img { width: 120px; height: auto; }
.glow { display: block; border-radius: 50%; animation: bob 3s ease-in-out infinite; }
.glow + .glow { animation-delay: .5s; }
.glow--champ img { filter: drop-shadow(0 0 6px #3B9BFF) drop-shadow(0 0 14px rgba(59, 155, 255, .8)); }
.glow--uniq img { width: 150px; filter: drop-shadow(0 0 6px #FFB31F) drop-shadow(0 0 16px rgba(255, 179, 31, .85)); }
.glow--wand img { width: 150px; filter: drop-shadow(0 0 6px #B45CFF) drop-shadow(0 0 16px rgba(180, 92, 255, .85)); }
.rank h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 1.45rem; margin-bottom: 8px; }
.rank > p { color: var(--ink-2); margin-bottom: 12px; }
.rank__facts { list-style: none; display: grid; gap: 6px; }
.rank__facts li { background: rgba(255, 255, 255, .85); border-radius: 14px; padding: 8px 12px; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); font-size: .96rem; }
.rank__facts b { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); }
.g-table { margin-bottom: 12px; }
.g-table td { text-align: center; }
.g-table th[scope="col"]:not(:first-child) { text-align: center; }

/* Traits */
.traits6 { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.trait { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 2px 12px; align-items: center; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sticker); }
.trait__ring { position: absolute; left: 14px; top: 50%; width: 54px; height: 54px; margin-top: -27px; opacity: .3; }
.trait__emo { grid-row: span 2; position: relative; width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; }
.trait b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.trait span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.4; }

/* Everyday & world Grumblies: small dex cards */
.gcards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr)); gap: 14px; }
@media (max-width: 420px) { .gcards { grid-template-columns: 1fr 1fr; gap: 10px; } }
/* Seven to a world: one tidy row on wide screens. */
@media (min-width: 1100px) { .gcards { grid-template-columns: repeat(7, 1fr); gap: 12px; } }
.gcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: radial-gradient(110% 80% at 50% 30%, #fff 0 34%, #ECE8F4 80%); border: 4px solid #fff; border-radius: 26px; padding: 12px 12px 16px; box-shadow: 0 0 0 2.5px #A79BD6, var(--sticker); transition: transform .3s var(--ease-spring); }
.gcard:hover { transform: translateY(-4px) rotate(-1.5deg); }
.gcard:nth-child(even):hover { transform: translateY(-4px) rotate(1.5deg); }
.gcard .swap { width: min(100%, 140px); }
.gcard h3, .gcard h4 { font-size: 1.2rem; line-height: 1.15; }
.gcard p { color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
@media (max-width: 420px) { .gcard { padding: 10px 8px 12px; } .gcard p { font-size: .84rem; } }
.g-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.g-jump .fchip { text-decoration: none; }
.g-world { scroll-margin-top: 16px; }
.g-world .world-band { margin-top: 34px; }
.g-world .world-band h3 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); }
.g-world .world-band__pip { width: clamp(66px, 15vw, 96px); margin: -18px 0 -8px; }

/* Treasure Guide additions */
.advcols--more { margin-top: 16px; }
.burrow { background: linear-gradient(165deg, #F1E7DC, var(--paper) 50%); }
.burrow__rules { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.burrow__rules li { background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-2); line-height: 1.45; }
.burrow__rules b { color: var(--ink); }
.burrow h4 { font-size: 1.15rem; margin-bottom: 8px; }
.milestones { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.milestones li { display: grid; text-align: center; background: #fff; border-radius: 16px; padding: 8px 6px; box-shadow: var(--sticker); }
.milestones b { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.milestones span { font-weight: 800; color: #2563A8; font-size: .9rem; }
.special-loot { align-self: start; background: linear-gradient(165deg, #FFF6DD, var(--paper) 55%); }
.special-loot p { color: var(--ink-2); }
.champ-word { color: #1D6FD1; }
.uniq-word { color: #9A5A00; }
.g-table th small { display: block; font-family: var(--body); font-weight: 700; font-size: .78rem; color: var(--ink-2); }
.g-tables { display: grid; gap: 4px 16px; }
@media (min-width: 1000px) { .g-tables { grid-template-columns: repeat(3, 1fr); } }
.g-table th, .g-table td { padding: 9px 10px; }
