:root {
  --cyan:#77e4dd; --cyan2:#18e4d6; --ink:#030303; --paper:#f6f1e7;
  --paper2:rgba(246,241,231,.92); --red:#eb2d23; --yellow:#ffcd2d; --blue:#005fdc;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body { overflow-x:hidden; }
body { margin:0; background:#6bd8d0; color:var(--ink); font-family:"Courier New", ui-monospace, monospace; image-rendering:pixelated; }
.poster {
  width:min(1600px, 97vw); max-width:97vw; margin:6px auto; padding:10px 18px 18px;
  border:4px solid var(--ink); background:linear-gradient(180deg,#87eee7,#19e1d5);
  box-shadow:8px 8px 0 rgba(0,0,0,.22);
}
.navbar { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding-bottom:10px; border-bottom:3px solid var(--ink); }
.brand { display:flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.site-logo { flex:0 0 auto; display:flex; align-items:center; }
.site-logo img { display:block; width:56px; height:auto; image-rendering:pixelated; image-rendering:-moz-crisp-edges; image-rendering:crisp-edges; filter:drop-shadow(2px 2px 0 rgba(0,0,0,.3)); }
.nav-links { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.nav-links a { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-weight:700; font-size:13px; letter-spacing:.6px; text-transform:uppercase; color:var(--ink); text-decoration:none; position:relative; padding-bottom:3px; }
.nav-links a::after { content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; background:var(--ink); transition:right .2s ease; }
.nav-links a:hover { color:var(--red); }
.nav-links a:hover::after { right:0; background:var(--red); }
.site-title { font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-weight:800; font-size:20px; letter-spacing:.5px; font-variant:small-caps; color:var(--ink); }
.steps-head { margin-top:32px; margin-bottom:6px; }
.steps { display:grid; grid-template-columns:repeat(8,1fr); gap:10px; margin-top:14px; }
.step-card { background:var(--paper2); border:3px solid var(--ink); border-radius:6px; min-height:206px; padding:10px; position:relative; box-shadow:3px 3px 0 rgba(0,0,0,.18); }
.badge { position:absolute; top:8px; left:8px; width:28px; height:28px; border-radius:4px; display:grid; place-items:center; background:var(--ink); color:white; font-size:18px; font-weight:900; }
.step-card h3 { margin:2px 0 8px 32px; min-height:32px; text-align:center; font-size:16px; line-height:1.1; font-weight:700; }
.step-icon { height:76px; display:grid; place-items:center; border:2px dashed rgba(0,0,0,.4); margin-bottom:10px; }
.transparent { background:rgba(120,232,223,.35); }
.step-icon img { width:60px; height:60px; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(2px 2px 0 rgba(0,0,0,.25)); }
.step-card p { font-size:13px; line-height:1.34; margin:0; }
.mid { display:grid; grid-template-columns:2fr 1.15fr; gap:16px; margin-top:28px; align-items:start; }
.label { display:inline-block; background:var(--ink); color:white; font-size:clamp(12px,2.8vw,16px); font-weight:900; letter-spacing:.03em; padding:7px 12px; transform:translateY(-17px); margin-bottom:-11px; }
.trait-set,.combo-box { border:3px solid var(--ink); background:rgba(255,255,255,.28); padding:12px; }
.trait-set-title { margin:0 0 12px; font-size:clamp(18px,4.2vw,24px); font-weight:900; text-transform:uppercase; line-height:1.15; }
.trait-grid { display:grid; background:rgba(246,241,231,.78); grid-template-columns:repeat(6,1fr); }
.trait-grid.row2 { border-top:1px dashed rgba(0,0,0,.5); }
.trait-mini { padding:12px 8px 14px; border-right:1px solid rgba(0,0,0,.7); text-align:center; }
.trait-mini:last-child { border-right:0; }
.trait-mini h4 { margin:0 0 10px; font-size:15px; min-height:32px; line-height:1.2; font-weight:700; }
.trait-icon { height:74px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.trait-icon img { width:64px; height:64px; object-fit:contain; image-rendering:pixelated; }
.trait-icon img.live-gif { width:64px; height:64px; object-fit:contain; }
.trait-mini hr { border:none; border-top:2px dotted rgba(0,0,0,.55); margin:0 0 9px; }
.trait-mini strong { display:block; font-size:19px; }
.combo-box { border-radius:10px; padding:18px; display:flex; flex-direction:column; justify-content:flex-start; gap:12px; }
.combo-box h2 { margin:0 0 4px; font-size:clamp(20px,4.6vw,26px); line-height:1.15; font-weight:900; text-transform:uppercase; }
.combo-box .section-intro { margin:0 0 10px; font-size:clamp(12.5px,3vw,13px); line-height:1.45; opacity:.8; }
.combo-box .label { margin:0 0 8px !important; transform:none !important; }
.black-note { display:block; background:var(--ink); color:white; font-size:18px; line-height:1.25; padding:11px; font-weight:900; }
.yellow { color:var(--yellow); }
.data-line { font-size:13px; line-height:1.4; }
.data-line b { color:var(--red); }
.rarity-rows { display:flex; flex-direction:column; gap:7px; }
.rarity-row { display:grid; grid-template-columns:100px 1fr 44px; align-items:center; gap:8px; font-size:12px; }
.rarity-row b { color:var(--ink); font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rarity-segments { display:flex; gap:2px; }
.rarity-seg { flex:1; height:14px; border:2px solid var(--ink); background:rgba(255,255,255,.6); }
.rarity-seg.on { background:var(--red); }
.rarity-row:nth-child(1) .rarity-seg.on { background:var(--red); }
.rarity-row:nth-child(2) .rarity-seg.on { background:var(--yellow); }
.rarity-row:nth-child(3) .rarity-seg.on { background:var(--blue); }
.rarity-row:nth-child(4) .rarity-seg.on { background:var(--cyan2); }
.rarity-row:nth-child(5) .rarity-seg.on { background:var(--red); }
.rarity-row:nth-child(6) .rarity-seg.on { background:var(--yellow); }
.rarity-row:nth-child(7) .rarity-seg.on { background:var(--blue); }
.rarity-row b.hit { background:var(--yellow); outline:2px solid var(--ink); animation:pulseHit .5s ease 2; }
.rarity-pct { font-weight:900; text-align:right; }
.rarity-foot { font-size:11px; line-height:1.5; opacity:.72; margin-top:2px; }
.preview { border:3px solid var(--ink); background:var(--cyan2); margin-top:18px; padding:8px; }
.roster { display:flex; flex-wrap:nowrap; gap:14px; padding:6px 4px 18px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x proximity; background:transparent; -webkit-overflow-scrolling:touch; }
.sprite-cell { flex:0 0 auto; width:clamp(150px,16vw,232px); height:clamp(190px,20.5vw,300px); scroll-snap-align:start; border:4px solid var(--ink); border-radius:4px; display:flex; flex-direction:column; align-items:center; position:relative; background:#f6f1e7; padding:14px 14px 12px; overflow:hidden; box-shadow:5px 5px 0 rgba(0,0,0,.24); }
.sprite-cell::after, .sprite-cell::before { z-index:6; }
.sprite-window { position:relative; width:100%; flex:1; overflow:hidden; background:#78e4db; border:2px solid var(--ink); }
.sprite-window.img-error img.live-gif { visibility:hidden; }
.sprite-window.img-error::before {
  content:"\2205";
  position:absolute; inset:0; z-index:3;
  display:flex; align-items:center; justify-content:center;
  font-family:"Courier New",monospace; font-weight:900; font-size:clamp(24px,7vw,44px);
  color:var(--ink);
}
.sprite-window.img-error::after {
  content:"RECOVERING FORM";
  position:absolute; left:0; right:0; bottom:8px; z-index:3;
  text-align:center; font-family:"Courier New",monospace; font-weight:900;
  font-size:9px; letter-spacing:.03em; color:rgba(3,3,3,.55);
}
.sprite-window img.live-gif { position:absolute; left:50%; bottom:0; width:104%; height:auto; transform:translateX(-50%); image-rendering:pixelated; z-index:2; filter:none; }
.sprite-plaque { display:inline-block; margin:10px auto 0; padding:4px 10px; background:var(--ink); color:var(--yellow); font-size:10px; font-weight:900; text-align:center; letter-spacing:.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.red { color:var(--red); }
@media (max-width:1400px) {
}
@media (max-width:1100px) {
  .poster { width:96vw; }
  .navbar { justify-content:center; text-align:center; }
  .nav-links { justify-content:center; gap:16px; margin-left:0; width:100%; }
  .site-title { font-size:18px; }
  .steps { grid-template-columns:repeat(2,1fr); }
  .mid { grid-template-columns:1fr; }
  .trait-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:700px) {
}

/* ---- FUN LAYER ---- */
.site-logo img { transition:transform .18s; cursor:pointer; }
.site-logo:hover img { transform:scale(1.06) rotate(-2deg); filter:drop-shadow(3px 3px 0 rgba(0,0,0,.35)) brightness(1.1); }

.step-card, .trait-mini { transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s; cursor:default; }
.step-card:hover { transform:translate(-3px,-5px) rotate(-1deg) scale(1.03); box-shadow:6px 9px 0 rgba(0,0,0,.28); z-index:2; position:relative; }
.trait-mini:hover { transform:scale(1.07); background:rgba(255,205,45,.35); z-index:2; position:relative; }
.trait-mini:hover strong { color:var(--red); }
.step-icon img, .trait-icon img { transition:transform .18s; }
.step-card:hover .step-icon img, .trait-mini:hover .trait-icon img { transform:scale(1.15) rotate(-4deg); }

.nav-links a { transition:color .12s; }

.sprite-cell { cursor:pointer; transition:transform .15s, background .15s, box-shadow .15s; }
.sprite-cell:hover { transform:scale(1.1); background:linear-gradient(180deg,#fff1b8,#ffcd2d); z-index:3; position:relative; box-shadow:4px 4px 0 var(--ink); }
.sprite-cell:active { transform:scale(1.04); }
.sprite-cell.zap img { animation:zap .35s ease; }
.sprite-cell .live-gif { background:transparent !important; }
@keyframes zap { 0%{filter:brightness(1);} 40%{filter:brightness(2.4) saturate(2);} 100%{filter:brightness(1);} }

.gallery-tools { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; gap:10px; }
.fun-btn { font-family:inherit; font-weight:900; font-size:12px; letter-spacing:.4px; text-transform:uppercase;
  background:var(--ink); color:white; border:2px solid var(--ink); padding:7px 12px; cursor:pointer;
  box-shadow:3px 3px 0 rgba(0,0,0,.3); transition:transform .1s; }
.fun-btn:hover { background:var(--red); }
.fun-btn:active { transform:translate(2px,2px); box-shadow:0 0 0 rgba(0,0,0,.3); }
.fun-btn.ghost { background:rgba(255,255,255,.6); color:var(--ink); }
.fun-btn.ghost:hover { background:var(--ink); color:white; }

#rarity { cursor:pointer; position:relative; }
#rarity:hover { box-shadow:4px 6px 0 rgba(0,0,0,.25); }
#rarity .spin-hint { position:absolute; top:8px; right:10px; font-size:10px; font-weight:900; background:var(--red); color:white; padding:3px 7px; opacity:0; transition:opacity .15s; }
#rarity:hover .spin-hint { opacity:1; }
.data-line b.hit { background:var(--yellow); outline:2px solid var(--ink); animation:pulseHit .5s ease 2; }
@keyframes pulseHit { 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.12);} }
#rollResult { display:block; margin-top:8px; font-size:13px; font-weight:900; min-height:18px; }
#rollResult .big { color:var(--red); }

/* lightbox */
.lightbox { position:fixed; inset:0; background:rgba(3,3,3,.78); display:none; place-items:center; z-index:99; padding:16px; }
.lightbox.show { display:grid; }
.lb-card { width:440px; max-width:94vw; background:var(--paper); border:4px solid var(--ink); box-shadow:9px 9px 0 rgba(0,0,0,.4); padding:16px; text-align:center; }
.lb-img { width:180px; height:180px; margin:4px auto 14px; background: #78e5dc; border:4px solid var(--ink); border-radius:8px; display:grid; place-items:center; position:relative; overflow:hidden; box-shadow:4px 4px 0 rgba(0,0,0,.25); }
.lb-img img { width:138px; height:138px; object-fit:contain; image-rendering:pixelated; filter:none; }
.lb-card h3 { margin:0 0 3px; font-size:22px; }
.lb-fam { font-size:13px; font-weight:900; opacity:.78; margin-bottom:5px; }
.lb-rarity { display:none; margin:0 auto 9px; padding:4px 11px; background:var(--yellow); color:var(--ink); border:2px solid var(--ink); border-radius:3px; font-size:12px; font-weight:900; letter-spacing:.3px; box-shadow:2px 2px 0 rgba(0,0,0,.22); }
.lb-attrs { display:grid; grid-template-columns:1fr 1fr; gap:8px; text-align:left; background:transparent; border:0; padding:0; font-size:11px; max-height:220px; overflow-y:auto; align-content:start; }
.trait-chip { border:2px solid var(--ink); background:rgba(255,255,255,.55); padding:6px 9px; display:flex; flex-direction:column; justify-content:center; gap:2px; min-height:46px; box-shadow:2px 2px 0 rgba(0,0,0,.12); }
.lb-attrs .k { opacity:.6; text-transform:uppercase; font-size:9px; letter-spacing:.5px; display:block; line-height:1.1; }
.lb-attrs .v { font-weight:900; display:block; font-size:12.5px; line-height:1.2; word-break:break-word; }
.lb-actions { display:flex; gap:8px; margin-top:12px; }
.lb-actions button { flex:1; font-family:inherit; font-weight:900; padding:10px; border:3px solid var(--ink); cursor:pointer; font-size:12px; }
#lbClose { background:var(--ink); color:white; }
#lbMint { background:var(--yellow); }
#lbClose:hover { background:var(--red); }
#lbMint:hover { background:var(--cyan2); }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px); background:var(--ink); color:white;
  padding:10px 18px; font-weight:900; font-size:13px; border:2px solid white; opacity:0; pointer-events:none; transition:all .25s; z-index:120; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
#muteBtn { position:fixed; top:14px; right:14px; z-index:60; }
@media (max-width:1100px){ .lb-attrs{ grid-template-columns:1fr; } }


/* ---- CHOMPZ RECOVERY LAYER ---- */
.nf-logo-mark { display:inline-grid; place-items:center; width:42px; height:42px; margin-right:10px; vertical-align:middle; border:3px solid var(--ink); background:var(--yellow); box-shadow:4px 4px 0 rgba(0,0,0,.25); font-weight:900; transform:rotate(-5deg); }
.burn-signal { margin-top:28px; display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:12px; align-items:stretch; }
.burn-card { border:3px solid var(--ink); background:rgba(246,241,231,.84); box-shadow:4px 4px 0 rgba(0,0,0,.18); padding:13px; position:relative; overflow:hidden; }
.burn-card:before { content:""; position:absolute; inset:auto -20px -35px auto; width:110px; height:110px; border:5px solid rgba(235,45,35,.35); border-radius:50%; transform:rotate(-12deg); }
.burn-card h2,.burn-card h3 { margin:0 0 8px; line-height:1.1; text-transform:uppercase; font-weight:900; }
.burn-card h2 { font-size:clamp(20px,4.6vw,26px); }
.burn-card h3 { font-size:clamp(14px,3.4vw,16px); }
.burn-card p { margin:0; font-size:clamp(12.5px,3vw,13px); line-height:1.45; }
.burn-card .label { margin:0 0 8px !important; transform:none !important; }
.signal-pill { display:inline-block; margin:5px 5px 0 0; padding:5px 8px; border:2px solid var(--ink); background:var(--cyan2); font-size:11px; font-weight:900; text-transform:uppercase; }
.protocol-terminal { background:var(--ink); color:#fff; border-color:var(--ink); }
.protocol-terminal h3 { color:var(--yellow); }
.protocol-lines { font-size:12px; line-height:1.45; }
.protocol-lines span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.protocol-lines b { color:var(--cyan); }
.burn-btn-row { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.recovery-hash { margin-top:9px; display:block; font-size:11px; color:var(--yellow); overflow-wrap:anywhere; }
.sprite-cell::after { content:"∅"; position:absolute; right:4px; top:4px; background:var(--ink); color:var(--yellow); border:1px solid var(--yellow); width:16px; height:16px; display:grid; place-items:center; font-size:11px; line-height:1; font-weight:900; box-shadow:1px 1px 0 rgba(0,0,0,.25); z-index:5; }
.sprite-cell::before { content:"NF"; position:absolute; left:4px; top:4px; background:var(--red); color:#fff; border:1px solid var(--ink); width:16px; height:16px; display:grid; place-items:center; font-size:9px; font-weight:900; line-height:1; z-index:5; }
.nf-verified { display:inline-block; margin:4px auto 9px; padding:5px 9px; background:var(--ink); color:var(--yellow); border:2px solid var(--red); font-size:11px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; }
.lb-img { position:relative; }
.lb-img::after { content:"∅ CHOMPZ VERIFIED"; position:absolute; right:8px; bottom:8px; background:var(--yellow); color:var(--ink); border:2px solid var(--ink); padding:4px 8px; font-size:12px; font-weight:900; white-space:nowrap; box-shadow:2px 2px 0 rgba(0,0,0,.25); }
@media (max-width:1100px){ .burn-signal{ grid-template-columns:1fr; } .protocol-lines span{ white-space:normal; } }


/* ---- RESPONSIVE POLISH ---- */
img { max-width:100%; }
@media (max-width:1500px){
  .steps { grid-template-columns:repeat(4,1fr); }
  .step-card { min-height:180px; }
}
@media (max-width:1200px){
  .poster { padding:12px; }
  .steps { grid-template-columns:repeat(3,1fr); }
  .mid { grid-template-columns:1fr; }
  .trait-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:800px){
  .steps-head { margin-top:22px; }
  body { background:#19e1d5; }
  .poster {
    width:100vw;
    max-width:100vw;
    margin:0;
    border-left:0;
    border-right:0;
    box-shadow:none;
    padding:10px;
  }
  .navbar {
    justify-content:center;
    text-align:center;
    gap:10px;
  }
  .site-logo img { width:52px; }
  .site-title { font-size:16px; }
  .nav-links { justify-content:center; gap:14px; width:100%; margin-left:0; }
  .burn-panel,
  .trait-set,
  .combo-box,
  .preview {
    padding:10px;
  }
  .burn-grid {
    grid-template-columns:1fr !important;
  }
  .steps {
    grid-template-columns:repeat(2,1fr);
    gap:8px;
  }
  .step-card {
    min-height:auto;
    padding:9px;
  }
  .step-card h3 {
    font-size:14px;
    margin-left:30px;
    min-height:24px;
  }
  .step-card p {
    font-size:11.5px;
    line-height:1.25;
  }
  .step-icon {
    height:58px;
  }
  .step-icon img {
    width:46px;
    height:46px;
  }
  .label {
    font-size:13px;
    padding:6px 9px;
    transform:none;
    margin-bottom:8px;
  }
  .trait-grid,
  .trait-grid.row2 {
    grid-template-columns:repeat(2,1fr);
  }
  .trait-mini {
    padding:9px 6px;
    border-bottom:1px solid rgba(0,0,0,.45);
  }
  .trait-mini h4 {
    font-size:12px;
    min-height:24px;
  }
  .trait-icon {
    height:56px;
  }
  .trait-icon img,
  .trait-icon img.live-gif {
    width:46px;
    height:46px;
  }
  .combo-box h2 {
    font-size:clamp(19px,5vw,22px);
  }
  .black-note {
    font-size:14px;
    padding:9px;
  }
  .data-line {
    font-size:11px;
  }
  .gallery-tools {
    align-items:flex-start;
  }
  .gallery-tools > div:last-child {
    width:100%;
  }
  .fun-btn {
    font-size:11px;
    padding:8px 10px;
  }
  .roster {
    gap:8px;
  }
  .sprite-cell {
    width:clamp(120px,38vw,170px);
    height:clamp(158px,48vw,222px);
    border-width:2px;
  }
  .sprite-cell::before {
    width:14px;
    height:14px;
    font-size:8px;
  }
  .sprite-cell::after {
    width:14px;
    height:14px;
    font-size:10px;
  }
  #muteBtn {
    top:auto;
    right:8px;
    bottom:8px;
    z-index:140;
    opacity:.92;
  }
  .lb-card {
    width:min(420px, 94vw);
    padding:12px;
  }
  .lb-img {
    width:160px;
    height:160px;
  }
  .lb-img img {
    width:122px;
    height:122px;
  }
  .lb-attrs {
    grid-template-columns:1fr;
    max-height:170px;
  }
}
@media (max-width:480px){
  .poster { padding:8px; }
  .site-logo img { width:44px; }
  .site-title { font-size:14px; }
  .nav-links {
    gap:10px;
  }
  .nav-links a {
    font-size:11px;
  }
  .steps {
    grid-template-columns:1fr;
  }
  .step-card {
    display:grid;
    grid-template-columns:38px 58px 1fr;
    gap:8px;
    align-items:center;
  }
  .badge {
    position:static;
    width:30px;
    height:30px;
  }
  .step-card h3 {
    margin:0;
    text-align:left;
    font-size:14px;
  }
  .step-card p {
    margin:0;
    font-size:11.5px;
  }
  .step-icon {
    height:50px;
    margin-bottom:0;
  }
  .step-icon img {
    width:42px;
    height:42px;
  }
  .trait-grid,
  .trait-grid.row2 {
    grid-template-columns:1fr 1fr;
  }
  .trait-mini strong {
    font-size:15px;
  }
  .roster {
    gap:6px;
  }
  .sprite-cell {
    width:clamp(100px,50vw,140px);
    height:clamp(132px,62vw,180px);
    border-width:2px;
  }
  .sprite-cell::before,
  .sprite-cell::after {
    width:13px;
    height:13px;
    font-size:8px;
  }
  .lb-actions {
    flex-direction:column;
  }
}






/* ---- CHOMPZ FAIRLIST DRAW MODULE ---- */
.fairlist-panel {
  margin-top: 24px;
  padding: 26px 28px 28px;
  border: 3px solid var(--ink);
  border-top: 8px solid var(--cyan2);
  background: rgba(247,244,236,.96);
  box-shadow: 8px 8px 0 rgba(0,0,0,.16);
  display:block !important;
  visibility:visible !important;
}
.fairlist-head {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(3,3,3,.2);
}
.fairlist-head .label { margin-bottom: 10px !important; font-size: clamp(13px,3vw,18px); transform:none !important; }
.fairlist-head h2 {
  margin: 0;
  font-size: clamp(22px,5.2vw,34px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 900;
}
.fairlist-head p {
  margin: 12px 0 0;
  max-width: 900px;
  font-size: clamp(13px,3.2vw,15px);
  line-height: 1.6;
  color: rgba(3,3,3,.82);
}
.fairlist-stat-pills { margin: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.fairlist-stat-pills span {
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(0,0,0,.2);
}
.fairlist-stat-pills span:nth-child(1) { background: var(--yellow); }
.fairlist-stat-pills span:nth-child(2) { background: var(--cyan2); }
.fairlist-stat-pills span:nth-child(3) { background: #fff; }
.fairlist-grid {
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(380px,.98fr);
  gap: 18px;
  align-items: start;
}
.fairlist-card {
  border: 2px solid rgba(3,3,3,.2);
  background: rgba(255,253,248,.98);
  padding: 18px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.fairlist-card h3 {
  margin: 0 0 8px;
  font-size: clamp(16px,3.8vw,18px);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 900;
}
.fairlist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.fair-stat {
  border: 1px solid rgba(3,3,3,.2);
  background: #f3efe5;
  border-radius: 6px;
  padding: 12px;
  min-height: 72px;
}
.fair-stat .k {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: .62;
}
.fair-stat .v {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}
.fairlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.fairlist-input {
  flex: 1;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid rgba(3,3,3,.22);
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.fairlist-row .fun-btn,
.fairlist-row .fun-btn.ghost,
#nfTweetBtn.fun-btn {
  min-height: 48px;
  padding: 0 18px;
  font-size: 14px;
}
.fair-status-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(3,3,3,.28);
  background: #f5f1e8;
  font-size: 14px;
  line-height: 1.6;
  min-height: 56px;
}
.fair-status-box b { color: var(--red); }
.fair-small {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  opacity: .72;
}
.no-win-card-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 300px;
  padding: 16px;
  background: linear-gradient(180deg, #f8f5ed, #efe8da);
  border: 2px solid rgba(3,3,3,.14);
  border-radius: 18px;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.55);
  overflow: hidden;
}
.nf-preview-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}
#nfNoWinCanvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 4px solid #14161d;
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
  background: #faf7ef;
  image-rendering: pixelated;
  display:block;
}
.fairlist-card .fairlist-row:last-child { margin-top: 16px; }
.fairlist-card .fairlist-row:last-child .fun-btn { min-width: 150px; }
.form-banner {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: #6bd8d0;
  overflow: hidden;
  position: relative;
}
.form-banner-track {
  display: flex;
  width: max-content;
  animation: formBannerScroll 34s linear infinite;
}
.form-banner:hover .form-banner-track { animation-play-state: paused; }
.form-banner-cell {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-right: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#97efe9,#63dfd5);
}
.form-banner-cell img { width: 78%; height: 78%; object-fit: contain; image-rendering: pixelated; }
@keyframes formBannerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .form-banner-track { animation: none; } }
@media (max-width: 700px) { .form-banner-cell { width: 72px; height: 72px; } }
.fairlist-jump {
  margin: 28px auto 0;
  max-width: 1120px;
  padding: 14px 18px;
  border: 1px solid rgba(3,3,3,.18);
  background: rgba(247,244,236,.96);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.fairlist-jump h2 {
  margin: 2px 0 4px;
  font-size: clamp(18px,4.4vw,22px);
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.15;
}
.fairlist-jump p {
  margin: 0;
  font-size: clamp(12.5px,3vw,13px);
  line-height: 1.5;
}
.fairlist-jump .label { transform:none !important; margin-bottom:6px !important; }
@media (max-width: 1000px) {
  .fairlist-grid { grid-template-columns: 1fr; }
  .fairlist-stats { grid-template-columns: repeat(2,1fr); }
  .fairlist-card { min-height: auto; }
}
@media (max-width: 760px) {
  .fairlist-panel { padding: 16px; }
  .fairlist-jump { flex-direction: column; align-items: flex-start; }
  .fairlist-jump .fun-btn { width: 100%; text-align: center; }
  .fairlist-stats { grid-template-columns: 1fr 1fr; }
  .no-win-card-preview { min-height: 320px; padding: 12px; }
  .fairlist-input { min-width: 100%; }
  .fairlist-row .fun-btn,
  .fairlist-row .fun-btn.ghost,
  #nfTweetBtn.fun-btn { flex: 1 1 auto; min-width: 140px; }
}




/* ---- PIXEL-ALIGNED ART GALLERY CAROUSEL OVERRIDE ----
   Fixed rail rhythm: header, rail, frames, art windows, plaques all share one grid. */
.preview#gallery {
  --gallery-pad: 22px;
  --gallery-card-w: clamp(166px, 14.2vw, 208px);
  --gallery-card-h: clamp(218px, 18.4vw, 268px);
  --gallery-frame-pad: 14px;
  margin-top: 18px;
  padding: var(--gallery-pad);
  border: 3px solid var(--ink);
  background: linear-gradient(180deg, rgba(246,241,231,.98), rgba(232,226,214,.96));
  box-shadow: 5px 5px 0 rgba(0,0,0,.16);
  position: relative;
  overflow: hidden;
}
.preview#gallery::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 72px;
  height: 4px;
  background: var(--ink);
  opacity: .13;
}
.preview#gallery::after {
  content: "CURATED RECOVERY WALL";
  position: absolute;
  right: var(--gallery-pad); top: var(--gallery-pad);
  padding: 6px 11px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
}
.preview#gallery .gallery-tools {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin: 0 0 18px;
  padding-right: 178px;
}
.preview#gallery .gallery-tools > div:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 10px;
}
.preview#gallery .label {
  transform: none !important;
  margin: 0 0 10px !important;
  justify-self: start;
  background: var(--ink);
  color: #fff;
  font-size: clamp(13px, 2.8vw, 18px);
  line-height: 1;
  padding: 9px 12px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.16);
}
.gallery-title {
  margin: 0;
  font-size: clamp(20px, 4.6vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
}
.preview#gallery .fun-btn {
  background: #fff;
  color: var(--ink);
  border-width: 2px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.preview#gallery .fun-btn:hover { background: var(--cyan2); }
.preview#gallery .roster {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  margin: 0;
  scroll-padding-left: 22px;
  scroll-padding-right: 22px;
  scroll-snap-type: x mandatory;
  background:
    linear-gradient(90deg, rgba(3,3,3,.045) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #f8f3e8 0%, #efe7d7 100%);
  border: 2px solid rgba(3,3,3,.24);
  border-radius: 3px;
  box-shadow: inset 0 -10px 0 rgba(3,3,3,.05);
}
.preview#gallery .roster::before { content: none !important; display: none !important; }
.preview#gallery .sprite-cell {
  flex: 0 0 var(--gallery-card-w);
  width: var(--gallery-card-w);
  height: var(--gallery-card-h);
  padding: var(--gallery-frame-pad);
  border: 0;
  border-radius: 0;
  background: #f5efe4;
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 8px #eee4d2,
    0 0 0 11px var(--ink),
    6px 8px 0 rgba(0,0,0,.14);
  scroll-snap-align: start;
  transform-origin: center bottom;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 28px;
  row-gap: 12px;
  align-items: stretch;
  justify-items: center;
  overflow: visible;
}
.preview#gallery .sprite-cell::before,
.preview#gallery .sprite-cell::after { content: none !important; display: none !important; }
.preview#gallery .sprite-cell:hover {
  transform: translateY(-4px);
  background: #fff8e8;
  box-shadow:
    0 0 0 3px var(--ink),
    0 0 0 8px #ffcd2d,
    0 0 0 11px var(--ink),
    8px 10px 0 rgba(0,0,0,.18);
}
.preview#gallery .sprite-window {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: none;
  border: 2px solid var(--ink);
  background: #77e4dd;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.14);
  display: block;
  position: relative;
  overflow: hidden;
}
.preview#gallery .sprite-window img.live-gif {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}
.preview#gallery .sprite-plaque {
  align-self: end;
  justify-self: center;
  margin: 0;
  height: 24px;
  min-width: 92px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font-size: 9px;
  line-height: 20px;
  letter-spacing: .06em;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(0,0,0,.16);
}


/* ---- BOTTOM 24-UP GALLERY GRID ---- */
.preview#gallery-grid {
  margin-top: 1px;
  padding: 1px 18px 18px;
  background: transparent;
  border-top: 1px solid #fff;
}
.preview#gallery-grid .roster-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: #fff;
  border: 1px solid #fff;
}
.preview#gallery-grid .sprite-cell {
  width: auto;
  min-width: 0;
  height: clamp(190px, 14.5vw, 232px);
  padding: 8px 8px 6px;
  border: 0;
  border-radius: 0;
  background: #f6f1e7;
  box-shadow: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 20px;
  row-gap: 4px;
  align-items: stretch;
  justify-items: center;
  transform: none;
}
.preview#gallery-grid .sprite-cell::before,
.preview#gallery-grid .sprite-cell::after { content: none !important; display: none !important; }
.preview#gallery-grid .sprite-cell:hover {
  transform: none;
  background: #f6f1e7;
  box-shadow: none;
}
.preview#gallery-grid .sprite-window {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: none;
  border: 0;
  background: #77e4dd;
  box-shadow: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.preview#gallery-grid .sprite-window img.live-gif {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}
.preview#gallery-grid .sprite-plaque {
  align-self: end;
  justify-self: center;
  margin: 0;
  height: 20px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 8px;
  line-height: 20px;
  letter-spacing: .04em;
  text-align: center;
  box-shadow: none;
}
@media (max-width: 1200px) {
  .preview#gallery-grid .roster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .preview#gallery-grid { padding: 1px 12px 12px; }
  .preview#gallery-grid .roster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .preview#gallery-grid .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .preview#gallery {
    --gallery-pad: 14px;
    --gallery-card-w: clamp(136px, 46vw, 178px);
    --gallery-card-h: clamp(188px, 60vw, 242px);
  }
  .preview#gallery::after { display:none; }
  .preview#gallery .gallery-tools { grid-template-columns: 1fr; padding-right: 0; gap: 10px; margin-bottom: 14px; }
  .preview#gallery .gallery-tools > div:last-child { justify-content: flex-start; flex-wrap: wrap; }
  .preview#gallery .roster { gap: 14px; padding: 18px 16px; scroll-padding-left: 16px; }
}



/* ---- MODAL SCALE REBALANCE ---- */
.lightbox { padding: 24px; }
.lb-card {
  width: min(680px, 92vw);
  max-height: 92vh;
  overflow: auto;
  padding: 26px 28px 28px;
  border-width: 5px;
  box-shadow: 12px 12px 0 rgba(0,0,0,.45);
}
.lb-img {
  width: 250px;
  height: 250px;
  margin: 4px auto 20px;
  border-width: 5px;
}
.lb-img img {
  width: 200px;
  height: 200px;
}
.lb-img::after {
  right: 10px;
  bottom: 10px;
  padding: 6px 11px;
  font-size: 13px;
}
.lb-card h3 { font-size: 30px; margin-bottom: 5px; }
.lb-fam { font-size: 16px; margin-bottom: 10px; }
.lb-rarity { font-size: 15px; padding: 7px 15px; margin-bottom: 12px; }
.nf-verified { font-size: 13px; padding: 7px 13px; margin-bottom: 14px; }
.lb-attrs {
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  max-height: 300px;
  font-size: 13px;
}
.trait-chip { min-height: 60px; padding: 9px 12px; border-width: 3px; }
.lb-attrs .k { font-size: 10px; }
.lb-attrs .v { font-size: 16px; }
.lb-actions { gap: 12px; margin-top: 18px; }
.lb-actions button { padding: 15px; font-size: 15px; border-width: 3px; }
@media (max-width: 760px) {
  .lightbox { padding: 12px; }
  .lb-card { width: 94vw; max-height: 94vh; padding: 16px; }
  .lb-img { width: 190px; height: 190px; }
  .lb-img img { width: 150px; height: 150px; }
  .lb-card h3 { font-size: 24px; }
  .lb-attrs { grid-template-columns: 1fr; max-height: 240px; }
}


/* ---- MODAL PIXEL-PERFECT ALIGNMENT / NO ORIGIN LINE ---- */
.lb-fam { display:none !important; }
.lb-card {
  width: 672px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-img {
  width: 248px;
  height: 248px;
  margin: 0 auto 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px 20px 42px;
  border-radius: 8px;
}
.lb-img img {
  width: auto;
  height: auto;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 21px);
  object-fit: contain;
  object-position: center bottom;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  margin: 0 auto;
}
.lb-img::after {
  left: 16px;
  right: 16px;
  bottom: 14px;
  width: auto;
  text-align: center;
}
.lb-card h3 {
  width: 100%;
  margin: 0 0 14px;
  line-height: 1;
}
.lb-rarity,
.nf-verified {
  margin-left: auto;
  margin-right: auto;
  line-height: 1;
}
.lb-attrs {
  width: 100%;
  gap: 10px;
  align-items: stretch;
}
.trait-chip {
  min-height: 58px;
  justify-content: center;
}
.lb-actions {
  width: 100%;
}
@media (max-width: 760px) {
  .lb-card { max-width: calc(100vw - 24px); padding: 16px; }
  .lb-img { width: 208px; height: 208px; padding: 18px 18px 38px; }
  .lb-img img {
    width: auto;
    height: auto;
    max-width: calc(100% - 36px);
    max-height: calc(100% - 72px);
  }
}