:root { --bg:#0e0b16; --bg2:#141020; --panel:#181327; --ink:#ece6ff; --dim:#9a90b8; --acc:#ff7a1a; --acc2:#ffc93c; --line:#2c2440;
  --common:#9aa3b5; --uncommon:#4fd18b; --rare:#4f9dff; --legendary:#ffc93c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background: radial-gradient(1200px 600px at 70% -10%, #2a1640 0%, transparent 60%), var(--bg); color:var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); } code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background:#0b0912; padding: 1px 5px; border-radius: 4px; }
.nav { position: sticky; top:0; z-index: 5; display:flex; align-items:center; justify-content: space-between; gap: 16px; padding: 10px 24px;
  background: rgba(14,11,22,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display:flex; align-items:center; gap:8px; font-weight:800; color: var(--ink); text-decoration:none; letter-spacing:.06em; }
.brand img { image-rendering: pixelated; border-radius: 6px; }
.nav nav a { color: var(--dim); text-decoration: none; margin-left: 14px; font-size: 14px; } .nav nav a:hover { color: var(--ink); }
main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.hero { display:grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: center; padding: 30px 0 40px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero-art img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); display:block; }
h1 { font-size: clamp(48px, 9vw, 92px); margin: 0; letter-spacing: .04em; line-height: 1; font-family: ui-monospace, Menlo, Consolas, monospace; }
h1 span { color: var(--acc); text-shadow: 4px 4px 0 #4a1d00; }
.tagline { font-size: 22px; margin: 10px 0; font-weight: 700; }
.lede { color: var(--dim); max-width: 60ch; }
.cta { display:flex; gap: 10px; flex-wrap: wrap; }
.btn { display:inline-block; padding: 10px 18px; border-radius: 10px; background: var(--acc); color:#170900; font-weight: 800; text-decoration:none; }
.btn.ghost { background: transparent; color: var(--ink); border:1px solid var(--line); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 22px 0; }
h2 { margin: 0 0 6px; font-size: 26px; } h3 { margin: 20px 0 8px; font-size: 17px; color: var(--dim); }
.muted { color: var(--dim); } .small { font-size: 13px; }
canvas.pixel { image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); display:block; }
canvas.big { width: 100%; max-width: 320px; aspect-ratio: 1; }
.stage-name { margin-top: 10px; text-align:center; }
.pill { display:inline-block; padding: 1px 10px; border-radius: 99px; background: #2c2440; font-size: 13px; font-weight:700; }
.pill.tier { color:#120d1c; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align:left; color: var(--dim); font-weight: 600; border-bottom: 1px solid var(--line); padding: 6px 8px; }
td { border-bottom: 1px dashed var(--line); padding: 6px 8px; vertical-align: top; }
.stat-table td:first-child { color: var(--dim); text-transform: capitalize; width: 30%; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.steps li { margin: 4px 0; }
.cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 14px; }
.card { background: var(--bg2); border:1px solid var(--line); border-radius: 12px; padding: 10px; }
.card canvas { width: 100%; aspect-ratio: 1; }
.card .t { display:flex; justify-content: space-between; align-items:center; margin-top: 8px; font-weight: 700; gap: 6px; }
.card .m { color: var(--dim); font-size: 12px; margin-top: 4px; word-break: break-all; }
.tier-common { background: var(--common); } .tier-uncommon { background: var(--uncommon); } .tier-rare { background: var(--rare); } .tier-legendary { background: var(--legendary); }
.card.preview { border-style: dashed; }
footer { max-width: 1100px; margin: 0 auto; padding: 10px 24px 40px; color: var(--dim); text-align:center; }

.strip6{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.strip6>div{text-align:center;font-size:11px;color:var(--muted,#9aa)}
.strip6 canvas{width:100%;aspect-ratio:1;image-rendering:pixelated;border-radius:8px;border:1px solid rgba(255,255,255,.08);background:#16121f}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 14px}
.tabs button{background:transparent;color:inherit;border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:6px 12px;cursor:pointer;font:inherit;font-size:13px}
.tabs button.on{background:#ff9f43;color:#1a1020;border-color:#ff9f43}
.cast-row{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;padding:10px 0;border-top:1px solid rgba(255,255,255,.06)}
.cast-row h4{margin:0 0 4px}
.cast-row p{margin:0;font-size:12px}
@media (max-width:640px){.cast-row{grid-template-columns:1fr}.strip6{gap:4px}}

.hero-pets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:360px}
.hero-pets canvas{width:100%;aspect-ratio:1;image-rendering:pixelated;border-radius:10px;border:1px solid var(--line);background:var(--bg2)}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:12px}
.facts div{background:var(--bg2);border:1px solid var(--line);border-radius:10px;padding:12px}
.facts b{display:block;margin-bottom:4px}
