/* Elemondex — cinematic dark, matches the landing page */
:root {
  --bg: #060a12;
  --ink: #f4efe2;
  --ink-2: #b9c1cf;
  --ink-3: #7c879a;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(14, 21, 34, 0.72);
  --gold: #f2c65a;
  --gold-2: #ffe7a3;
  --gold-deep: #b9852a;
  --salt: #d7e36a;
  --soft: #f6b04c;
  --life: #7dcea0;
  --hard: #9eb6c8;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
[data-type="Salt"] { --t: var(--salt); }
[data-type="Soft"] { --t: var(--soft); }
[data-type="Life"] { --t: var(--life); }
[data-type="Hard"] { --t: var(--hard); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }
.sym { font-family: var(--body); font-weight: 900; letter-spacing: -0.04em; }
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(242,198,90,.12), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(125,206,160,.1), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(158,182,200,.08), transparent 70%);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter); background: rgba(6,10,18,.72); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(242,198,90,.4); }
.brand strong { display: block; font-family: var(--display); font-size: 24px; letter-spacing: .06em; line-height: .9; color: var(--gold-2); }
.brand em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links > a:not(.btn) { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink-2); }
.nav-links > a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,.07); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 900; text-decoration: none; transition: transform .3s var(--spring); }
.btn--sm { height: 36px; padding: 0 18px; font-size: 15px; }
.btn--gold { color: #1c1406; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 8px 24px -8px rgba(242,198,90,.55), inset 0 1px 0 rgba(255,255,255,.7); }
.btn--ghost { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn:hover { transform: translateY(-2px); }

/* header */
.head { max-width: 1500px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 24px; }
.kicker { margin: 0 0 12px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9vw, 130px); line-height: .88; animation: rise .9s var(--ease) both; }
h1 em, .show h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .76em; letter-spacing: -.02em; background: linear-gradient(90deg, var(--gold-2), var(--gold), #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: rise .9s var(--ease) .1s both; }
.search { position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--gold), 0 0 30px -10px var(--gold); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 800 17px var(--body); }
.search input::placeholder { color: var(--ink-3); }
.search kbd { padding: 2px 8px; border-radius: 6px; font: 800 12px var(--body); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.views { display: inline-flex; padding: 5px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.view { padding: 0 20px; border-radius: 13px; font-weight: 900; color: var(--ink-2); transition: background .25s, color .25s; }
.view.is-on { background: var(--gold); color: #1c1406; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; animation: rise .9s var(--ease) .18s both; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 900; font-size: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--t, var(--gold)); box-shadow: 0 0 10px var(--t, var(--gold)); }
.chip:hover { background: rgba(255,255,255,.1); }
.chip.is-on { background: color-mix(in srgb, var(--t, var(--gold)) 20%, transparent); box-shadow: inset 0 0 0 2px var(--t, var(--gold)); }
.chip-sep { width: 1px; margin: 4px 4px; background: var(--line); }
.count { margin: 14px 0 0; font-size: 14px; font-weight: 800; color: var(--ink-3); }

/* browse */
.browse { max-width: 1500px; margin: 0 auto; padding: 10px var(--gutter) 100px; }
.ptable-wrap { position: relative; }
.ptable { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); grid-template-rows: repeat(7, auto) 16px repeat(2, auto); gap: clamp(3px, .45vw, 7px); }
.el {
  --t: var(--hard);
  position: relative; aspect-ratio: 1 / 1.12; min-width: 0; border-radius: clamp(5px, .6vw, 10px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--t) 12%, #0b111c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 38%, transparent);
  animation: pop .5s var(--spring) both; animation-delay: calc(var(--wave) * 14ms);
  transition: transform .35s var(--spring), box-shadow .25s, filter .3s, opacity .3s;
}
.el img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: .16; transition: opacity .3s, transform .5s var(--ease); }
.el::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,10,18,.88), transparent 75%); }
.el .n { position: absolute; top: 3px; left: 5px; z-index: 1; font-size: clamp(7px, .65vw, 11px); font-weight: 800; color: var(--ink-3); }
.el .s { position: relative; z-index: 1; font-size: clamp(12px, 1.5vw, 26px); line-height: 1; }
.el .nm { position: relative; z-index: 1; margin-top: 2px; max-width: 94%; font-size: clamp(6px, .6vw, 10px); font-weight: 800; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el .bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 3px; background: var(--t); opacity: .8; }
.el:hover, .el:focus-visible { transform: scale(1.4); z-index: 5; box-shadow: inset 0 0 0 2px var(--t), 0 12px 30px -8px color-mix(in srgb, var(--t) 70%, transparent); }
.el:hover img, .el:focus-visible img { opacity: 1; transform: scale(1.06); }
.el.dim { filter: grayscale(1) brightness(.35); transform: scale(.9); pointer-events: none; }
.gap { display: grid; place-items: center; border-radius: 8px; border: 1px dashed rgba(255,255,255,.12); font-size: clamp(7px, .7vw, 11px); font-weight: 900; color: var(--ink-3); }
.legend { grid-column: 3 / 13; grid-row: 1 / 4; align-self: center; margin: 0 clamp(8px, 2vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.legend h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.4vw, 38px); line-height: 1; }
.legend p { margin: 0; font-size: clamp(12px, 1vw, 15px); font-weight: 700; color: var(--ink-2); }
.legend .keys { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend .keys span { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(11px, .9vw, 14px); font-weight: 900; }
.legend .keys i { width: 10px; height: 10px; border-radius: 3px; background: var(--t); box-shadow: 0 0 8px var(--t); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
  --t: var(--hard);
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-align: left;
  background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 30%, transparent);
  animation: pop .55s var(--spring) both; animation-delay: calc(var(--i) * 12ms);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--t), 0 24px 50px -20px color-mix(in srgb, var(--t) 70%, transparent); }
.card .art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .6s var(--ease); }
.card:hover .art img { transform: scale(1.06); }
.card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,10,18,.95), transparent 45%); }
.card .z { position: absolute; top: 10px; left: 12px; z-index: 1; font-size: 12px; font-weight: 900; letter-spacing: .1em; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px #000; }
.card .pip { position: absolute; top: 9px; right: 10px; z-index: 1; }
.card .id { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: end; gap: 10px; }
.card .id .sym { font-size: 40px; line-height: .85; color: #fff; text-shadow: 0 0 22px var(--t); }
.card .id b { display: block; font-size: 17px; font-weight: 900; line-height: 1.1; }
.card .id i { display: block; font-family: var(--serif); font-size: 12px; color: var(--gold-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .body { padding: 10px 12px 14px; }
.pip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #10141b; background: var(--t); }
.pip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.45); }
.bars { display: grid; gap: 4px; }
.bars div { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: var(--ink-3); }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.09); }
.pips i.on { background: var(--bc); box-shadow: 0 0 8px -2px var(--bc); }
.b-hp { --bc: #6ee7a0; } .b-pow { --bc: #ff8a5a; } .b-spd { --bc: #7fd6ff; }
.empty { padding: 60px 20px; text-align: center; font-weight: 800; color: var(--ink-3); }

/* ---------- showcase ---------- */
.show { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: rgba(4,7,13,.86); backdrop-filter: blur(14px) saturate(1.2); animation: fade .3s var(--ease); }
.show[hidden] { display: none; }
.show-bg { position: fixed; inset: 0; z-index: -1; opacity: .35; background: center / cover no-repeat; filter: blur(40px) saturate(1.4); transform: scale(1.2); transition: background-image .4s; }
.show-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px var(--gutter); background: linear-gradient(180deg, rgba(6,10,18,.9), transparent); }
.show-top .spacer { flex: 1; }
.round-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .2s, transform .3s var(--spring); }
.round-btn:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.show-pos { font-weight: 900; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.show-body { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.stage { position: sticky; top: 80px; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.foil {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; width: min(100%, 440px); aspect-ratio: 5 / 7; perspective: 1400px; cursor: grab;
}
.foil-in {
  position: absolute; inset: 0; border-radius: 26px; padding: 12px; transform-style: preserve-3d;
  background: linear-gradient(150deg, var(--gold-2), var(--gold-deep) 36%, #6d4b16 58%, var(--gold) 100%);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.25), 0 0 90px -20px color-mix(in srgb, var(--t) 70%, transparent);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease);
  animation: cardIn .7s var(--spring) both;
}
.foil.is-live .foil-in { transition: transform .08s linear; }
.foil .face { position: relative; height: 100%; border-radius: 17px; overflow: hidden; background: #0c1119; }
.foil .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.foil .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,10,18,.95) 0%, rgba(6,10,18,.25) 32%, transparent 50%); }
.foil .z { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 14px; font-weight: 900; letter-spacing: .12em; text-shadow: 0 1px 6px #000; }
.foil .pip { position: absolute; top: 12px; right: 14px; z-index: 2; font-size: 12px; }
.foil .tag { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; gap: 14px; }
.foil .tag .sym { font-size: clamp(64px, 7vw, 96px); line-height: .8; color: #fff; text-shadow: 0 0 34px var(--t); }
.foil .tag b { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 900; line-height: 1.05; }
.foil .tag i { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold-2); }
.foil .holo {
  position: absolute; inset: 0; z-index: 3; border-radius: 26px; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.6), transparent 40%),
    linear-gradient(115deg, transparent 18%, rgba(255,120,200,.4) 34%, rgba(120,220,255,.4) 50%, rgba(255,240,140,.4) 66%, transparent 82%);
  background-size: 100% 100%, 260% 260%; background-position: 0 0, var(--mx) var(--my);
}
.foil .glare { position: absolute; inset: 0; z-index: 4; border-radius: 26px; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.28), transparent 50%); mix-blend-mode: overlay; }
.stage-hint { font-size: 13px; font-weight: 800; color: var(--ink-3); }

.info { display: flex; flex-direction: column; gap: 22px; }
.info > * { animation: rise .6s var(--ease) both; }
.info > *:nth-child(2) { animation-delay: .05s; } .info > *:nth-child(3) { animation-delay: .1s; } .info > *:nth-child(4) { animation-delay: .15s; }
.info > *:nth-child(5) { animation-delay: .2s; } .info > *:nth-child(6) { animation-delay: .25s; } .info > *:nth-child(7) { animation-delay: .3s; }
.title .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.show h2 { margin: 8px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: .86; }
.show h2 .sym { font-size: .7em; color: var(--t); text-shadow: 0 0 30px var(--t); margin-left: 8px; }
.title .epi { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--gold-2); }
.bio { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.panel { padding: 22px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); }
.panel h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.panel h3::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-weight: 700; font-size: 16px; }
.facts li b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--t) 22%, transparent); color: var(--t); font-family: var(--display); font-weight: 400; font-size: 20px; }
.statrows { display: grid; gap: 14px; }
.statrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; }
.statrow .lbl { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; }
.statrow .lbl svg { width: 18px; height: 18px; fill: var(--bc); }
.statrow .meter { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.statrow .meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 60%, transparent), var(--bc)); box-shadow: 0 0 14px var(--bc); animation: grow 1s var(--ease) both .2s; transform-origin: left; }
.statrow .val { font-family: var(--display); font-size: 26px; line-height: 1; min-width: 44px; text-align: right; }
.statrow .why { grid-column: 2 / 4; margin-top: -8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.moves { display: grid; gap: 10px; }
.move { --jc: var(--gold); display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.move .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--jc) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jc) 55%, transparent); }
.move .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--jc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.move .top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.move .top b { font-size: 18px; font-weight: 900; }
.move .top span { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--jc); }
.move .does { margin: 2px 0 0; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.move .real { margin: 8px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.move .real::before { content: "Real science · "; font-weight: 900; color: var(--life); }
.match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.match > div { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); }
.match .big { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--t); }
.match small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.match .ex { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kin { display: grid; gap: 10px; margin-top: 10px; }
.kin div { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.kin b { color: var(--ink); }
.bonds { display: flex; flex-wrap: wrap; gap: 10px; }
.bond { --t: var(--hard); display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 45%, transparent); transition: transform .3s var(--spring), box-shadow .2s; text-align: left; }
.bond:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--t); }
.bond img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: 50% 25%; }
.bond b { display: block; font-weight: 900; }
.bond span { font-size: 13px; font-weight: 800; color: var(--gold-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) rotateY(-30deg) scale(.85); } to { opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } }

@media (max-width: 960px) {
  .show-body { grid-template-columns: 1fr; }
  .stage { position: static; }
  .foil { width: min(78vw, 380px); }
  .legend { display: none; }
}
@media (max-width: 720px) {
  .nav-links > a:not(.btn) { display: none; }
  .ptable-wrap { margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .ptable-wrap::-webkit-scrollbar { display: none; }
  .ptable { min-width: 760px; }
  .el .nm { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .id .sym { font-size: 30px; }
  .card .id b { font-size: 15px; }
  .views .view { padding: 0 14px; }
  .search { height: 50px; }
  .search kbd { display: none; }
  .statrow { grid-template-columns: 90px 1fr auto; gap: 10px; }
  .match { grid-template-columns: 1fr; }
  .bio { font-size: 16px; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Stronger type color in the table so the families read at a glance. */
.el { background: linear-gradient(160deg, color-mix(in srgb, var(--t) 30%, #0b111c), color-mix(in srgb, var(--t) 10%, #0b111c)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 60%, transparent); }
.el img { opacity: .1; }
.el .s { color: color-mix(in srgb, var(--t) 45%, #fff); text-shadow: 0 0 16px color-mix(in srgb, var(--t) 60%, transparent); }
.el .bar { height: 4px; }

/* Type colors must beat per-component defaults. */
[data-type="Salt"][data-type] { --t: var(--salt); }
[data-type="Soft"][data-type] { --t: var(--soft); }
[data-type="Life"][data-type] { --t: var(--life); }
[data-type="Hard"][data-type] { --t: var(--hard); }
@media (max-width: 720px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
}
