/* SkellyKuntz — comic ink on a dark ground. */

:root {
  --ink: #0f0d16;
  --ink-2: #17142200;
  --panel: #1b1827;
  --panel-2: #241f33;
  --line: #07060a;
  --bone: #f4ecd8;
  --bone-2: #d9d0bb;
  --muted: #a49db6;
  --acid: #a4ff3d;
  --pink: #ff4fa3;
  --sky: #47c6ff;
  --lemon: #ffe14d;
  --tangerine: #ff7a1a;
  --blood: #ff3b3b;
  --violet: #8a6bff;
  --display: 'Bangers', 'Impact', 'Arial Narrow Bold', 'Helvetica Neue', sans-serif;
  --text: 'Rubik', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 16px/1.5 var(--text);
  min-width: 320px;
  overflow-x: hidden;
}
body::before {
  /* halftone haze over the whole ground */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.045) 1px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(ellipse at 20% -10%, rgba(138,107,255,.18), transparent 55%),
    radial-gradient(ellipse at 100% 110%, rgba(255,79,163,.14), transparent 50%);
  z-index: 0;
}
a { color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--lemon); }
img { max-width: 100%; display: block; }
button { font: inherit; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; margin: 0; line-height: 1; }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
p { margin: 0 0 1em; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.dim { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 24px; }

/* ------------------------------------------------------------ top bar */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,13,22,.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 3px 0 var(--bone);
}
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap;
  min-height: 60px; padding-block: 8px;
}
.brand {
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--bone); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; letter-spacing: .03em;
  text-shadow: 3px 3px 0 var(--pink);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand:hover { color: var(--bone); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a {
  font-family: var(--display); font-size: 19px; letter-spacing: .05em; text-decoration: none;
  color: var(--bone); padding: 5px 12px; border: 2px solid transparent; border-radius: 4px; line-height: 1;
}
.nav a:hover { border-color: var(--bone); }
.nav a.on { background: var(--lemon); color: var(--line); border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border: 2px solid var(--bone-2); border-radius: 999px; color: var(--bone-2); line-height: 1.2; white-space: nowrap;
}
.pill.mock { border-color: var(--tangerine); color: var(--tangerine); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 6px var(--acid); }
.pill.off .dot { background: var(--blood); box-shadow: none; }

/* ------------------------------------------------------------ banner */
.banner {
  background: var(--tangerine); color: var(--line); border-bottom: 3px solid var(--line);
  font-weight: 500;
}
.banner .wrap { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; padding-block: 10px; }
.banner b { font-family: var(--display); font-size: 20px; letter-spacing: .04em; font-weight: 400; }
.banner a { color: var(--line); font-weight: 700; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(24px, 4vw, 44px) 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }

.hero h1 {
  font-size: clamp(56px, 10vw, 112px);
  line-height: .9; letter-spacing: .01em;
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--line), 8px 8px 0 var(--pink);
  transform: rotate(-2deg);
  transform-origin: left bottom;
  margin: 0 0 14px 6px;
}
.hero h1 span { color: var(--lemon); }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); max-width: 560px; margin-bottom: 10px; }
.hero .lede b { color: var(--acid); }
.sub { color: var(--muted); max-width: 560px; }

.strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 18px 6px 22px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: 0 0 auto; width: 150px; scroll-snap-align: start; }
.card {
  position: relative; background: var(--bone);
  border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--line), 5px 5px 0 3px var(--bone);
  overflow: hidden;
}
.card img { width: 100%; height: auto; aspect-ratio: 36 / 50; object-fit: cover; background: #2b2740; }
.strip .card:nth-child(odd) { transform: rotate(-2.5deg); }
.strip .card:nth-child(even) { transform: rotate(2deg) translateY(6px); }
.card .tag {
  position: absolute; left: -3px; bottom: -3px; background: var(--lemon); color: var(--line);
  font-family: var(--display); font-size: 17px; padding: 3px 10px 2px; border: 3px solid var(--line); border-radius: 0 6px 0 0; letter-spacing: .04em;
}
.card .tag.relic { background: var(--pink); }

/* ------------------------------------------------------------ panels & tiles */
.panel {
  position: relative; background: var(--panel); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--line), 6px 6px 0 3px var(--bone-2);
  padding: 18px;
}
.panel.lit { background: var(--panel-2); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { text-shadow: 3px 3px 0 var(--line); }
.halftone::after {
  content: ''; position: absolute; right: 0; top: 0; width: 42%; height: 60%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.08) 1.4px, transparent 1.8px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
  mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
}

.board { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile {
  background: var(--lemon); color: var(--line); border: 3px solid var(--line); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--line); padding: 12px 12px 10px; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  transform: rotate(-.6deg);
}
.tile:nth-child(2) { background: var(--sky); transform: rotate(.7deg); }
.tile:nth-child(3) { background: var(--acid); transform: rotate(-.4deg); }
.tile:nth-child(4) { background: var(--pink); transform: rotate(.5deg); }
.tile:nth-child(5) { background: var(--tangerine); transform: rotate(-.7deg); }
.tile:nth-child(6) { background: var(--violet); transform: rotate(.4deg); }
.tile .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tile .v { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: .02em; overflow-wrap: anywhere; }
.tile .u { font-size: 12px; font-weight: 500; opacity: .85; overflow-wrap: anywhere; }
.board-foot { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-size: 24px; letter-spacing: .05em; line-height: 1;
  color: var(--line); background: var(--bone); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 12px 20px 10px; box-shadow: 5px 5px 0 var(--line); transition: transform .08s, box-shadow .08s;
  min-height: 52px; user-select: none; -webkit-user-select: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line); color: var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--line); }
.btn.acid { background: var(--acid); }
.btn.pink { background: var(--pink); }
.btn.sky { background: var(--sky); }
.btn.lemon { background: var(--lemon); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.btn.ghost:hover { color: var(--bone); box-shadow: 6px 6px 0 var(--bone); }
.btn.sm { font-size: 18px; padding: 8px 14px 6px; min-height: 40px; box-shadow: 3px 3px 0 var(--line); }
.btn.sm:hover { box-shadow: 5px 5px 0 var(--line); }
.btn.sm:active { box-shadow: 1px 1px 0 var(--line); }
.btn.xs { font-family: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 6px 10px; min-height: 32px; box-shadow: 2px 2px 0 var(--line); }
.btn.xs:hover { box-shadow: 3px 3px 0 var(--line); }

.ctas { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .ctas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cta { flex-direction: column; align-items: flex-start; text-align: left; padding: 16px 18px 14px; gap: 4px; }
.cta .big { font-size: clamp(28px, 3.4vw, 40px); }
.cta .why { font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: 0; opacity: .8; }

/* ------------------------------------------------------------ sections */
.section { padding-block: 36px 8px; }
.section h2 { margin-bottom: 14px; text-shadow: 3px 3px 0 var(--line); }
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { padding: 18px 16px 14px 18px; }
.step h3 { padding-left: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: -12px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pink); color: var(--line); border: 3px solid var(--line); font-family: var(--display); font-size: 22px;
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--line);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--bone-2); font-size: 15px; }

.foot { margin-top: 48px; padding-block: 24px 40px; border-top: 3px solid var(--line); box-shadow: 0 -3px 0 var(--panel-2); color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot a { color: var(--bone-2); }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .05em; color: var(--lemon); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ docs */
.docs { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
.docs { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .docs { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.toc { position: sticky; top: 84px; display: none; }
@media (min-width: 900px) { .toc { display: block; } }
.toc a { display: block; text-decoration: none; color: var(--bone-2); padding: 5px 0; font-weight: 500; border-left: 3px solid var(--panel-2); padding-left: 12px; }
.toc a:hover { color: var(--lemon); border-color: var(--lemon); }
.doc { display: grid; gap: 28px; min-width: 0; }
.doc section { scroll-margin-top: 90px; min-width: 0; overflow-wrap: anywhere; }
.doc h2 { margin-bottom: 12px; }
.doc p, .doc li { color: var(--bone-2); }
.doc ul { padding-left: 20px; }
.doc .warn { background: var(--panel-2); border-left: 6px solid var(--blood); padding: 12px 14px; margin: 12px 0; }
.doc .warn b { color: var(--blood); }
.relics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.relics .card { transform: none; }
.flow { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow .node { background: var(--panel-2); border: 3px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 4px 4px 0 var(--line); position: relative; }
.flow .node b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: .04em; font-weight: 400; color: var(--lemon); }
.flow .node span { font-size: 14px; color: var(--bone-2); }
.flow .node.big { background: var(--acid); color: var(--line); }
.flow .node.big b, .flow .node.big span { color: var(--line); }
.flow .node.side { background: var(--panel); }
.flow .node.side b { color: var(--muted); }
.bar { display: flex; height: 26px; border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0 var(--line); margin: 10px 0 4px; }
.bar .a { flex: 1; background: var(--acid); display: grid; place-items: center; font-family: var(--display); color: var(--line); font-size: 17px; }
.bar .b { flex: 1; background: var(--sky); display: grid; place-items: center; font-family: var(--display); color: var(--line); font-size: 17px; }

/* ------------------------------------------------------------ my page */
.connect { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.addr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--panel-2); padding: 6px 10px; border: 2px solid var(--line); border-radius: 4px; max-width: 100%; overflow-wrap: anywhere; }
.stat-row { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--muted); }
.stat-row b { color: var(--bone); font-weight: 600; }
.skellies { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
@media (min-width: 760px) { .skellies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .skellies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sk { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 14px; }
.sk .card { transform: rotate(-2deg); align-self: start; overflow: hidden; }
.sk .card img { display: block; }
.sk .card .tag { font-size: 14px; padding: 2px 8px 1px; }
.sk .title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk .title h3 { font-size: 26px; text-shadow: 2px 2px 0 var(--line); }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; border: 2px solid var(--line); background: var(--panel-2); color: var(--bone-2); }
.badge.raised { background: var(--acid); color: var(--line); }
.badge.rest { background: var(--muted); color: var(--line); }
.badge.relic { background: var(--pink); color: var(--line); }
.badge.souls { background: var(--violet); color: var(--line); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; font-size: 13px; margin-top: 8px; }
.kv dt { color: var(--muted); }
.kv dt.full { grid-column: 1 / -1; margin-top: 4px; }
.kv dd { margin: 0; font-weight: 500; text-align: right; white-space: nowrap; }
.kv dd.wrap { grid-column: 1 / -1; text-align: left; white-space: normal; overflow-wrap: anywhere; margin-top: -2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; grid-column: 1 / -1; }
.hold { grid-column: 1 / -1; margin-top: 6px; }
.hold table { font-size: 14px; }
.hold td, .hold th { padding: 5px 6px; }
.hold th { font-size: 15px; }
.sel { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; margin: 0; accent-color: var(--pink); z-index: 2; background: var(--bone); border: 2px solid var(--line); border-radius: 4px; box-shadow: 2px 2px 0 var(--line); cursor: pointer; }
.bulk { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ------------------------------------------------------------ modal */
.veil { position: fixed; inset: 0; background: rgba(5,4,10,.78); display: none; z-index: 100; padding: var(--gutter); overflow: auto; }
.veil.open { display: grid; place-items: center; }
.modal { width: min(560px, 100%); max-height: 100%; overflow: auto; }
.modal h3 { text-shadow: 3px 3px 0 var(--line); margin-bottom: 10px; font-size: 30px; }
.modal .lines { display: grid; gap: 6px; margin: 10px 0 14px; }
.modal .line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 4px; font-size: 15px; }
.modal .line b { text-align: right; overflow-wrap: anywhere; }
.modal .line.burn { background: var(--blood); color: var(--line); }
.modal .line.burn b { color: var(--line); }
.modal .foot-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.modal .note { font-size: 13px; color: var(--muted); }
.modal label { display: block; font-size: 14px; margin: 8px 0; }
.modal select, .modal input[type="number"] { font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 4px; background: var(--bone); color: var(--line); width: 100%; }
.modal .row { display: grid; grid-template-columns: 1fr 100px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.rankpick { display: grid; gap: 8px; }
.rankpick button { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; background: var(--panel-2); color: var(--bone); border: 2px solid var(--line); border-radius: 4px; cursor: pointer; }
.rankpick button:hover, .rankpick button.on { background: var(--lemon); color: var(--line); }
.rankpick button:disabled { opacity: .45; cursor: not-allowed; }
.rankpick .r { font-family: var(--display); font-size: 20px; letter-spacing: .04em; }
.rankpick .c { font-size: 13px; text-align: right; }
.progress { font-size: 14px; margin-top: 10px; }
.progress ol { padding-left: 20px; margin: 6px 0 0; }
.progress li { padding: 2px 0; }
.progress li.done { color: var(--acid); }
.progress li.now { color: var(--lemon); }
.progress li.fail { color: var(--blood); }

/* ------------------------------------------------------------ toast */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 120; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--bone); color: var(--line); border: 3px solid var(--line); border-radius: 4px; padding: 10px 14px; box-shadow: 4px 4px 0 var(--line); font-weight: 500; font-size: 14px; }
.toast.bad { background: var(--blood); }
.toast.good { background: var(--acid); }

/* ------------------------------------------------------------ gallery */
.gal { display: grid; grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
@media (min-width: 900px) { .gal { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.filters { padding: 14px; }
@media (min-width: 900px) { .filters { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } }
.filters details { border-top: 2px solid var(--line); padding: 8px 0; }
.filters details:first-of-type { border-top: 0; }
.filters summary { cursor: pointer; font-family: var(--display); font-size: 20px; letter-spacing: .05em; color: var(--lemon); list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: '+'; color: var(--muted); font-family: var(--text); font-weight: 700; font-size: 16px; }
.filters details[open] summary::after { content: '−'; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.filters label span.n { margin-left: auto; color: var(--muted); font-size: 12px; }
.filters input[type="checkbox"] { accent-color: var(--pink); width: 16px; height: 16px; }
.filters .search { width: 100%; font: inherit; padding: 8px 10px; border: 2px solid var(--line); border-radius: 4px; background: var(--bone); color: var(--line); margin-bottom: 8px; }
.gal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.grid .card { cursor: pointer; }
.grid .card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line), 7px 7px 0 3px var(--bone); }
.grid .card img { background: #2b2740 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 50'%3E%3Ccircle cx='18' cy='20' r='8' fill='%233d3757'/%3E%3C/svg%3E") center/60% no-repeat; }
.more { text-align: center; padding: 20px; color: var(--muted); }
.gmodal { width: min(760px, 100%); display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gmodal { grid-template-columns: 300px minmax(0, 1fr); } }
.gmodal .card { transform: none; }
.traits { display: grid; gap: 6px; }
.trait { display: flex; justify-content: space-between; gap: 10px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 14px; }
.trait span:first-child { color: var(--muted); }
.trait .pct { color: var(--muted); font-size: 12px; margin-left: 8px; }

@media (max-width: 600px) {
  .brand { font-size: 26px; }
  .nav a { font-size: 17px; padding: 4px 9px; }
  .pill .txt { display: none; }
  .pill { padding: 4px 6px; }
  .banner-long { display: none; }
  .banner .wrap { padding-block: 7px; }
  .sk { grid-template-columns: 96px minmax(0, 1fr); }
}
/* desktop hero: text left, a 4×2 spread of cards right (after .strip so it wins) */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 14px 10px 18px 6px; }
  .strip .card { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- "token not launched yet" state (marrow() is the zero address) */
.tile.off .v, .tile.off .u { opacity: .45; }
.board-note { margin: 14px 0 0; font-size: 14px; color: var(--bone-2); }
.launch-note { margin: 12px 0 0; font-size: 14px; color: var(--bone-2); }
.cta.soon { opacity: .6; }
