/* STACKED DECK · NOIR (js/nftitties-noir.js) — the author's mock-up, 2026-10-21:
   old paper under red light, gold-framed cards, notes in the margins, a VHS reel.
   Everything is scoped under .nftitties-container.sd-noir and #sdIntro, so the
   classic look (nftitties-style.css) is untouched underneath. */

/* ── the window: the machine's whole screen ── */
/* the window keeps the desktop's own placement (95 % × 85 %, centred under the
   machine's bar); only its content stops scrolling — the page fits the window */
#nftitties-window.sd-full .computer-window-content { overflow: hidden !important; }

.nftitties-container.sd-noir {
  --sd-red: #b3261e; --sd-red-hot: #e0483a; --sd-gold: #c9a35a; --sd-gold-dim: #8a6d3a;
  --sd-ink: #e9dcc6; --sd-ink-dim: #a8957a; --sd-ink-mute: #6f604c;
  --sd-paper: #1b1210; --sd-panel: rgba(20, 10, 9, 0.82);
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  background: #120a09; color: var(--sd-ink);
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}
.sd-noir .sd-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(150, 30, 22, 0.22), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(93deg, rgba(255, 230, 200, 0.018) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1d1210 0%, #160d0b 60%, #0f0807 100%);
}
.sd-noir .sd-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; mix-blend-mode: screen; }
.sd-noir > *:not(.sd-bg) { position: relative; z-index: 1; }

/* ── header ── */
.sd-noir .sd-head {
  display: flex; align-items: center; gap: 22px; padding: 10px 22px 8px; flex: none;
  border-bottom: 1px solid rgba(201, 163, 90, 0.18);
  background: linear-gradient(180deg, rgba(10, 5, 4, 0.75), rgba(10, 5, 4, 0.35));
}
.sd-noir .sd-logo { display: flex; align-items: center; gap: 10px; }
.sd-noir .sd-logo-mark {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sd-red); color: #f3e2c4; font-size: 20px; border-radius: 3px; box-shadow: 0 0 12px rgba(179, 38, 30, 0.5);
}
.sd-noir .sd-logo-text { font-family: 'Special Elite', 'Courier Prime', monospace; font-size: 30px; letter-spacing: 3px; color: #efe3cc; }
.sd-noir .sd-logo-text b { color: var(--sd-red-hot); font-weight: normal; }
.sd-noir .sd-tagline { font-size: 13px; letter-spacing: 2px; color: var(--sd-ink-dim); }
.sd-noir .sd-whisper { flex: 1; min-width: 0; text-align: center; font-size: 11px; letter-spacing: 1px; color: var(--sd-ink-mute); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-noir .sd-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sd-noir .sd-status { font-size: 10px; letter-spacing: 2px; color: var(--sd-red-hot); border: 1px solid rgba(224, 72, 58, 0.45); padding: 2px 8px; }
.sd-noir .sd-status .nft-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sd-red-hot); margin-right: 6px; box-shadow: 0 0 6px var(--sd-red-hot); }
.sd-noir .sd-wallet { display: flex; gap: 8px; }
.sd-noir .sd-pill {
  display: flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px;
  background: rgba(10, 5, 4, 0.7); border: 1px solid rgba(201, 163, 90, 0.25); border-radius: 2px;
}
.sd-noir .sd-pill .nft-amount { color: #f0e3cb; font-weight: bold; }
.sd-noir .sd-pill-name { font-size: 9px; letter-spacing: 1.5px; color: var(--sd-ink-mute); text-transform: uppercase; }
.sd-noir .sd-coin { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sd-noir .sd-coin.bangs { background: radial-gradient(circle at 35% 35%, #ffd27a, #c4831f); box-shadow: 0 0 6px rgba(224, 160, 64, 0.6); }
.sd-noir .sd-coin.swallows { background: radial-gradient(circle at 35% 35%, #8fd0ff, #2a78b0); box-shadow: 0 0 6px rgba(58, 152, 208, 0.6); }
.sd-noir .sd-coin.orgems { background: radial-gradient(circle at 35% 35%, #e0a8ff, #8a3fc0); box-shadow: 0 0 6px rgba(176, 96, 224, 0.6); }

/* ── tabs ── */
.sd-noir .sd-tabs { flex: none; padding: 6px 22px 0; }
.sd-noir .nft-char-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(201, 163, 90, 0.15); }
.sd-noir .nft-char-tab {
  background: rgba(10, 5, 4, 0.55); border: 1px solid rgba(201, 163, 90, 0.18); border-bottom: none;
  color: var(--sd-ink-dim); font-family: inherit; font-size: 12px; letter-spacing: 1.5px; padding: 6px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; margin-right: -1px;
}
.sd-noir .nft-char-tab:hover { color: var(--sd-ink); }
.sd-noir .nft-char-tab.active { color: var(--sd-red-hot) !important; border-color: var(--sd-red) !important; background: rgba(120, 20, 15, 0.35) !important; }
.sd-noir .nft-tab-dots { display: flex; gap: 3px; }
.sd-noir .nft-tab-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(201, 163, 90, 0.25); }
.sd-noir .nft-tab-dot.owned { background: var(--sd-red-hot) !important; box-shadow: 0 0 4px var(--sd-red-hot); }
.sd-noir .nft-char-tab.sealed-bunch { color: var(--sd-ink-mute); font-size: 11px; cursor: default; }

/* ── the three columns ── */
.sd-noir .sd-main {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(230px, 20%) 1fr minmax(120px, 11%);
  gap: 16px; padding: 12px 18px 14px 22px;
}

/* profile */
.sd-noir .sd-profile {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--sd-panel); border: 1px solid rgba(179, 38, 30, 0.45);
  box-shadow: inset 0 0 0 4px rgba(10, 5, 4, 0.8), inset 0 0 0 5px rgba(201, 163, 90, 0.18), 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 10px 12px;
}
.sd-noir .sd-portrait { position: relative; height: 31%; min-height: 110px; overflow: hidden; border: 1px solid rgba(179, 38, 30, 0.5); background: #2a0e0b; flex: none; }
.sd-noir .sd-portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: sepia(0.35) saturate(1.2) hue-rotate(-12deg) contrast(1.08) brightness(0.85); }
.sd-noir .sd-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(160, 25, 18, 0.25), rgba(20, 5, 4, 0.55)); mix-blend-mode: multiply; }
.sd-noir .sd-portrait-tag { position: absolute; left: 6px; bottom: 8px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: 3px; color: rgba(233, 220, 198, 0.65); }
.sd-noir .sd-sign { position: absolute; right: 8px; bottom: -4px; z-index: 2; font-family: 'Caveat', cursive; font-size: 46px; color: var(--sd-red-hot); transform: rotate(-12deg); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.sd-noir .sd-pname { font-family: 'Special Elite', monospace; font-size: 28px; letter-spacing: 4px; margin-top: 10px; }
.sd-noir .sd-psub { font-size: 11px; letter-spacing: 3px; color: var(--sd-red-hot); margin-bottom: 8px; }
.sd-noir .sd-rows { border-top: 1px solid rgba(201, 163, 90, 0.2); padding-top: 6px; }
.sd-noir .sd-row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1.5px; padding: 2px 0; color: var(--sd-ink-dim); }
.sd-noir .sd-row b { font-weight: normal; color: var(--sd-ink); }
.sd-noir .sd-quote { flex: none; font-size: 11px; line-height: 1.5; color: var(--sd-ink-dim); font-style: italic; margin: 10px 0 0; }
.sd-noir .sd-stack { position: relative; flex: 1 1 auto; min-height: 40px; max-height: 120px; margin-top: 8px; overflow: hidden; }
.sd-noir .sd-stack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0.7; z-index: 1; }
.sd-noir .sd-stack-draw i {
  position: absolute; bottom: -18%; height: 112%; aspect-ratio: 5 / 7; border: 1px solid rgba(201, 163, 90, 0.4);
  background: repeating-linear-gradient(45deg, rgba(201, 163, 90, 0.08) 0 4px, transparent 4px 8px), #1a0f0c; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}
.sd-noir .sd-stack-img ~ .sd-stack-draw { display: none; }
.sd-noir .sd-stack-draw i:nth-child(1) { left: 4%; transform: rotate(-14deg); }
.sd-noir .sd-stack-draw i:nth-child(2) { left: 28%; transform: rotate(-3deg); }
.sd-noir .sd-stack-draw i:nth-child(3) { left: 52%; transform: rotate(10deg); }
.sd-noir .sd-archive { flex: none; font-size: 9px; letter-spacing: 2px; color: var(--sd-ink-mute); margin-top: 6px; }

/* center */
.sd-noir .sd-center { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.sd-noir .sd-set-head { display: flex; align-items: center; gap: 12px; flex: none; font-size: 12px; letter-spacing: 3px; }
.sd-noir .sd-set-head i { font-style: normal; color: var(--sd-ink-dim); }
.sd-noir .sd-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 163, 90, 0.4), rgba(201, 163, 90, 0.05)); }
.sd-noir .sd-chips b { font-weight: normal; font-size: 10px; letter-spacing: 2px; padding: 3px 10px; border: 1px solid rgba(179, 38, 30, 0.55); color: var(--sd-red-hot); margin-left: -1px; }
.sd-noir .sd-chips b + b { color: var(--sd-ink-dim); border-color: rgba(201, 163, 90, 0.3); }

/* cards: the engine's markup, dressed */
.sd-noir .nft-cards-row.sd-cards { flex: 1; min-height: 0; display: flex; gap: 22px; justify-content: center; align-items: stretch; flex-wrap: nowrap; }
.sd-noir .nft-card {
  height: 100%; width: auto; aspect-ratio: 0.66; max-width: 31%; display: flex; flex-direction: column;
  background: #120807 !important; border: 1px solid var(--sd-gold-dim) !important; border-radius: 4px; overflow: visible;
  box-shadow: inset 0 0 0 3px #120807, inset 0 0 0 4px rgba(201, 163, 90, 0.45), 0 10px 26px rgba(0, 0, 0, 0.6) !important;
  padding: 6px;
}
.sd-noir .nft-card.owned { box-shadow: inset 0 0 0 3px #120807, inset 0 0 0 4px rgba(201, 163, 90, 0.6), 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 24px rgba(179, 38, 30, 0.25) !important; }
.sd-noir .nft-card:hover { border-color: var(--sd-gold) !important; }
.sd-noir .nft-card-image { flex: 1; min-height: 0; height: auto; border: 1px solid rgba(201, 163, 90, 0.25); }
.sd-noir .nft-card-canvas { width: 100%; height: 100%; object-fit: cover; }
.sd-noir .nft-card-type-badge {
  position: absolute; top: 8px; left: 8px; z-index: 5; font-size: 12px; letter-spacing: 3px; padding: 3px 10px; color: #f3e2c4;
  border: 1px solid rgba(255, 255, 255, 0.15); font-family: 'Special Elite', monospace;
}
.sd-noir .nft-card-type-badge.bold { background: #8e1d16; }
.sd-noir .nft-card-type-badge.cute { background: #1f6b3f; }
.sd-noir .nft-card-type-badge.spicy { background: #9a6118; }
.sd-noir .nft-card-owned-check { position: absolute; top: 8px; right: 8px; z-index: 5; width: 22px; height: 22px; border-radius: 50%; background: var(--sd-red) !important; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: 0 0 8px rgba(179, 38, 30, 0.7); }
.sd-noir .nft-leaked-caption { font-size: 9px !important; letter-spacing: 1.5px; opacity: 0.7; }
.sd-noir .sd-suit { position: absolute; z-index: 6; color: var(--sd-gold); font-size: 18px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.sd-noir .sd-suit-a { left: 14px; top: 46px; }
.sd-noir .sd-suit-b { right: 14px; bottom: 132px; }
.sd-noir .nft-card-footer { flex: none; background: transparent !important; border-top: none !important; padding: 8px 6px 2px !important; text-align: center; }
.sd-noir .nft-card-name-row { display: none !important; }
.sd-noir .sd-card-title { font-family: 'Special Elite', monospace; font-size: 17px; letter-spacing: 3px; color: #f1e2c8; }
.sd-noir .sd-card-sub { font-size: 11px; letter-spacing: 1.5px; color: var(--sd-ink-dim); margin-bottom: 4px; }
.sd-noir .nft-card-social-proof { font-size: 10px; color: var(--sd-ink-mute); letter-spacing: 1px; }
.sd-noir .nft-deck-progress { display: flex; gap: 3px; margin: 5px 0 6px; }
.sd-noir .nft-deck-seg { flex: 1; height: 3px; background: rgba(201, 163, 90, 0.2); }
.sd-noir .nft-card-acquire-btn {
  width: 100%; padding: 7px 0; font-family: 'Special Elite', monospace; font-size: 13px; letter-spacing: 4px;
  background: rgba(120, 18, 12, 0.25) !important; border: 1px solid var(--sd-red) !important; color: var(--sd-red-hot) !important; cursor: pointer;
}
.sd-noir .nft-card-acquire-btn:hover:not(:disabled) { background: rgba(179, 38, 30, 0.35) !important; color: #ffd9c8 !important; }
.sd-noir .nft-card-acquire-btn:disabled { opacity: 0.45; }
.sd-noir .nft-card-teaser-line { font-size: 10px; color: var(--sd-ink-mute); }
.sd-noir .nft-cost-row { font-size: 10px; }

/* the reel bar */
.sd-noir .sd-reel {
  flex: none; height: 26%; min-height: 128px; max-height: 170px; display: flex; align-items: stretch; gap: 22px;
  border: 1px solid rgba(179, 38, 30, 0.55); background: rgba(16, 7, 6, 0.82); padding: 10px 18px 10px 10px;
  box-shadow: inset 0 0 30px rgba(120, 18, 12, 0.2);
}
.sd-noir .sd-reel.pulse { animation: sdPulse 1.2s ease 3; }
@keyframes sdPulse { 50% { box-shadow: inset 0 0 40px rgba(224, 72, 58, 0.45), 0 0 26px rgba(224, 72, 58, 0.45); } }
.sd-noir .sd-vhs { position: relative; width: 38%; max-width: 330px; flex: none; }
.sd-noir .sd-vhs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.sd-noir .sd-vhs-draw {
  position: absolute; inset: 8% 2% 8% 10%; border-radius: 6px;
  background: linear-gradient(180deg, #1c1a19, #0c0b0b); box-shadow: inset 0 0 0 2px #2a2725, 0 8px 16px rgba(0, 0, 0, 0.7);
}
.sd-noir .sd-vhs-img ~ .sd-vhs-draw { display: none; }
.sd-noir .sd-vhs-win { position: absolute; left: 22%; right: 22%; top: 28%; height: 34%; background: #2b2420; border-radius: 3px; display: flex; justify-content: space-around; align-items: center; }
.sd-noir .sd-vhs-win i { width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #0c0b0b 0 30%, #4a3a30 32% 60%, #1b1513 62%); }
.sd-noir .sd-vhs-label {
  position: absolute; z-index: 2; left: 28%; right: 18%; top: 22%; height: 44%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive; font-size: 38px; color: #a5241a; transform: rotate(-6deg);
  background: rgba(222, 208, 182, 0.88); border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.sd-noir .sd-vhs-no { position: absolute; z-index: 2; right: 22%; bottom: 10%; font-family: 'Special Elite', monospace; font-size: 14px; color: #1a120e; background: #d9ccb0; padding: 0 6px; }
.sd-noir .sd-vhs-spine { position: absolute; z-index: 2; left: 0; top: 10%; bottom: 10%; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: 2px; color: rgba(222, 208, 182, 0.7); text-align: center; }
.sd-noir .sd-reel-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sd-noir .sd-reel-title { font-family: 'Special Elite', monospace; font-size: 18px; letter-spacing: 3px; color: var(--sd-red-hot); }
.sd-noir .sd-reel-sub { font-size: 11px; color: var(--sd-ink-dim); letter-spacing: 1px; }
.sd-noir .sd-reel-prog { display: flex; align-items: center; gap: 12px; margin: 4px 0; max-width: 520px; }
.sd-noir .sd-segs { flex: 1; display: flex; gap: 8px; }
.sd-noir .sd-segs i { flex: 1; height: 7px; background: rgba(179, 38, 30, 0.18); border: 1px solid rgba(179, 38, 30, 0.35); }
.sd-noir .sd-segs i.got { background: linear-gradient(90deg, #8e1d16, #e0483a); box-shadow: 0 0 8px rgba(224, 72, 58, 0.5); }
.sd-noir .sd-reel-prog b { font-weight: normal; font-size: 13px; letter-spacing: 2px; }
.sd-noir .sd-play {
  max-width: 520px; padding: 10px 0; font-family: 'Special Elite', monospace; font-size: 16px; letter-spacing: 4px;
  background: rgba(120, 18, 12, 0.3); border: 1px solid var(--sd-red-hot); color: #f3d2c2; cursor: pointer;
  animation: sdCall 1.6s ease-in-out infinite;
}
.sd-noir .sd-play:hover { background: rgba(179, 38, 30, 0.45); }
@keyframes sdCall { 50% { box-shadow: 0 0 18px rgba(224, 72, 58, 0.45); } }
.sd-noir .sd-reel-locked { max-width: 520px; padding: 9px 0; text-align: center; font-size: 12px; letter-spacing: 3px; color: var(--sd-ink-mute); border: 1px dashed rgba(201, 163, 90, 0.25); }

/* margin */
.sd-noir .sd-margin { position: relative; min-height: 0; }
.sd-noir .sd-note { font-family: 'Caveat', cursive; font-size: 21px; line-height: 1.15; color: rgba(222, 208, 182, 0.55); transform: rotate(-4deg); position: relative; z-index: 2; }
.sd-noir .sd-note-top { margin-top: 6px; }
.sd-noir .sd-note-low { position: absolute; bottom: 12%; right: 0; }
.sd-noir .sd-ghost {
  position: absolute; right: -18px; top: 26%; height: 50%; width: 130%; object-fit: cover; object-position: 50% 20%; z-index: 1;
  filter: grayscale(1) sepia(0.4) brightness(0.5); opacity: 0.32;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000 30%, transparent 75%);
}

/* modals: the whole window */
.sd-noir .nft-preview-modal, .sd-noir .nft-scene-modal { position: absolute; inset: 0; z-index: 300; background: rgba(8, 3, 2, 0.94); }
.sd-noir .nft-scene-video-wrap { width: min(78%, 1100px); border: 1px solid var(--sd-gold-dim) !important; }
.sd-noir .nft-preview-image-wrap { max-width: none; height: 78%; }
.sd-noir .nft-preview-image-wrap canvas { height: 100%; width: auto; }
.sd-noir .nft-toast { z-index: 320; }

/* ═══ the intro: six beats (#sdIntro, js/nftitties-noir.js) ═══ */
.sdi { position: absolute; inset: 0; overflow: hidden; cursor: pointer; background: radial-gradient(ellipse at 50% 45%, #1c1210 0%, #070404 75%); font-family: 'Courier Prime', 'Courier New', monospace; }
.sdi-noise { position: absolute; inset: -20%; opacity: 0.08; background: repeating-radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 1px 3px); animation: sdiNoise 0.3s steps(3) infinite; }
@keyframes sdiNoise { 33% { transform: translate(2%, -1%); } 66% { transform: translate(-1%, 2%); } }
.sdi-deck { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }
.sdi-card { position: absolute; width: 190px; height: 270px; left: -95px; top: -135px; transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.4s ease, filter 0.4s ease; }
.sdi-back {
  position: absolute; inset: 0; border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(201, 163, 90, 0.06) 0 5px, transparent 5px 10px), linear-gradient(160deg, #241612, #0d0807);
  border: 1px solid rgba(201, 163, 90, 0.6); box-shadow: inset 0 0 0 6px #120a08, inset 0 0 0 7px rgba(201, 163, 90, 0.35), 0 14px 30px rgba(0, 0, 0, 0.7);
}
.sdi-back-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sdi-sil { position: absolute; left: 12%; right: 12%; bottom: 14%; height: 70%; width: 76%; object-fit: contain; filter: sepia(1) saturate(2.4) hue-rotate(-12deg) brightness(1.15); opacity: 0.9; }
.sdi .c1, .sdi .c2 { opacity: 0; }
.sdi-rec { position: absolute; left: -82px; top: -125px; font-size: 11px; letter-spacing: 2px; color: #e0483a; opacity: 0; }
.sdi-ripped, .sdi-leaked { position: absolute; left: -110px; width: 220px; text-align: center; font-family: 'Special Elite', monospace; letter-spacing: 6px; opacity: 0; }
.sdi-ripped { top: 100px; font-size: 18px; color: #e7cc93; }
.sdi-leaked { top: 70px; font-size: 26px; color: #ff4b3a; transform: rotate(-14deg) translateX(-150px); text-shadow: 0 0 12px rgba(255, 75, 58, 0.8); }
.sdi-sweep { position: absolute; left: -400px; top: -170px; width: 160px; height: 340px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 210, 140, 0.35), transparent); transform: skewX(-18deg); }
.sdi-title { position: absolute; left: 0; right: 0; top: 34%; text-align: center; opacity: 0; transition: opacity 0.4s ease; }
.sdi-logo { font-family: 'Special Elite', monospace; font-size: 54px; letter-spacing: 6px; color: #f0e3cc; }
.sdi-logo b { color: #e0483a; font-weight: normal; }
.sdi-tag { font-size: 14px; letter-spacing: 3px; color: #b8a585; margin-top: 8px; }
.sdi-bar { width: 260px; height: 3px; margin: 26px auto 10px; background: rgba(201, 163, 90, 0.2); }
.sdi-bar i { display: block; width: 0; height: 100%; background: #e0483a; box-shadow: 0 0 8px #e0483a; transition: width 0.75s linear; }
.sdi-enter { font-size: 12px; letter-spacing: 3px; color: #8d7b62; }
.sdi-flash { position: absolute; inset: 0; background: rgba(200, 20, 10, 0.55); opacity: 0; pointer-events: none; }
/* 01 initial — one card, REC, RIPPED. */
.sdi.s1 .sdi-rec, .sdi.s1 .sdi-ripped { opacity: 1; transition: opacity 0.3s ease; }
/* 02 deal — two more slide out */
.sdi.s2 .sdi-ripped { opacity: 0; }
.sdi.s2 .c1 { opacity: 1; transform: translate(-150px, 18px) rotate(-12deg); }
.sdi.s2 .c2 { opacity: 1; transform: translate(150px, 18px) rotate(12deg); }
.sdi.s2 .sdi-deck { transform: scale(1.04); transition: transform 0.8s ease; }
/* 03 reveal — the spread, light across */
.sdi.s3 .c0 { transform: translateY(-14px); }
.sdi.s3 .c1 { transform: translate(-215px, 24px) rotate(-14deg); }
.sdi.s3 .c2 { transform: translate(215px, 24px) rotate(14deg); }
.sdi.s3 .sdi-sweep { animation: sdiSweep 0.6s ease forwards; }
@keyframes sdiSweep { 0% { left: -400px; opacity: 0; } 30% { opacity: 1; } 100% { left: 300px; opacity: 0; } }
/* 04 glitch — red flash, LEAKED., the left card burns */
.sdi.s4 .sdi-flash { animation: sdiFlash 0.4s ease; }
@keyframes sdiFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.sdi.s4 .c1 .sdi-back { border-color: #ff4b3a; box-shadow: inset 0 0 0 6px #2a0805, 0 0 30px rgba(255, 75, 58, 0.7); }
.sdi.s4 .c1 .sdi-sil { filter: sepia(1) saturate(4) hue-rotate(-40deg) brightness(1.1); }
.sdi.s4 .sdi-leaked { opacity: 1; transition: opacity 0.1s; }
.sdi.s4 .sdi-deck { animation: sdiGlitch 0.35s steps(2) 2; }
@keyframes sdiGlitch { 25% { transform: translate(6px, -3px) skewX(4deg); } 50% { transform: translate(-5px, 2px); } 75% { transform: translate(3px, 3px) skewX(-3deg); } }
/* 05 title — the cards step back, the logo, the bar */
.sdi.s5 .sdi-deck { opacity: 0.18; transition: opacity 0.4s ease; }
.sdi.s5 .sdi-leaked, .sdi.s5 .sdi-rec { opacity: 0; }
.sdi.s5 .sdi-title { opacity: 1; }
.sdi.s5 .sdi-bar i { width: 100%; }
/* 06 transition — the cards fly forward and dissolve */
.sdi.s6 .sdi-title { opacity: 0; transition: opacity 0.3s ease; }
.sdi.s6 .sdi-deck { opacity: 1; }
.sdi.s6 .sdi-card { transform: scale(3.2) translateY(20px) rotate(0deg); opacity: 0; filter: blur(6px); transition: transform 0.6s ease-in, opacity 0.6s ease-in, filter 0.6s ease-in; }
.sdi.s6 .c1 { transform: translate(-420px, 40px) scale(3) rotate(-20deg); }
.sdi.s6 .c2 { transform: translate(420px, 40px) scale(3) rotate(20deg); }
.sdi.s7 { opacity: 0; transition: opacity 0.4s ease; }

/* ── fit pass (2026-10-21): the window is ~670 px tall inside the machine ── */
.sd-noir .nft-toast { position: absolute !important; }
.sd-noir .nft-particles { position: absolute; inset: 0; pointer-events: none; z-index: 310; }
.sd-noir .sd-head { padding: 6px 18px 5px; gap: 16px; }
.sd-noir .sd-logo-mark { width: 28px; height: 28px; font-size: 16px; }
.sd-noir .sd-logo-text { font-size: 24px; }
.sd-noir .sd-tagline { font-size: 11px; }
.sd-noir .sd-head-right { flex-direction: row; align-items: center; gap: 10px; }
.sd-noir .sd-tabs { padding: 4px 18px 0; }
.sd-noir .nft-char-tabs { padding: 0 !important; margin: 0 !important; }
.sd-noir .nft-char-tab { padding: 4px 14px; font-size: 11px; }
.sd-noir .sd-main { padding: 10px 16px 10px 18px; gap: 14px; }
.sd-noir .sd-center { gap: 8px; }
.sd-noir .sd-reel { height: 118px; min-height: 0; padding: 8px 16px 8px 8px; }
.sd-noir .sd-reel-title { font-size: 16px; }
.sd-noir .sd-play { padding: 7px 0; font-size: 14px; }
.sd-noir .nft-card { padding: 5px; }
.sd-noir .nft-card-footer { padding: 6px 4px 0 !important; }
.sd-noir .sd-card-title { font-size: 14px; letter-spacing: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-noir .sd-card-sub { font-size: 10px; letter-spacing: 1px; margin-bottom: 2px; white-space: nowrap; }
.sd-noir .nft-card-social-proof, .sd-noir .nft-card-teaser-line { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-noir .nft-deck-progress { margin: 3px 0 5px; }
.sd-noir .nft-card-acquire-btn { padding: 5px 0; font-size: 12px; }
.sd-noir .nft-card-cost-stack { margin: 3px 0 4px; }
.sd-noir .sd-suit-b { bottom: 100px; }
.sd-noir .nft-leaked-caption { padding: 10px 6px 5px !important; }
.sd-noir .sd-portrait { height: 34%; }
.sd-noir .sd-pname { font-size: 24px; margin-top: 8px; }
.sd-noir .sd-portrait.sealed .sd-portrait-img { filter: blur(9px) brightness(0.45) saturate(0.4) hue-rotate(-15deg); transform: scale(1.1); }
.sd-noir .sd-portrait.sealed::before { content: 'SEALED'; position: absolute; left: 0; right: 0; top: 44%; z-index: 3; text-align: center; font-size: 11px; letter-spacing: 5px; color: rgba(233, 220, 198, 0.55); }
.sd-noir .nft-leaked-caption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px !important; }
.sd-noir .nft-cost-num { white-space: nowrap; min-width: 46px; text-align: right; }
.sd-noir .sd-suit-b { bottom: 112px; }
.sdi-sil { background: linear-gradient(180deg, #f3d48a, #b98a3a); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center bottom; mask-position: center bottom; filter: drop-shadow(0 0 6px rgba(243, 212, 138, 0.45)); }
.sdi.s4 .c1 .sdi-sil { background: linear-gradient(180deg, #ff6a4a, #a3170e); filter: drop-shadow(0 0 8px rgba(255, 75, 58, 0.7)); }
/* the toast sat on PLAY UNLOCKED REEL and ate its click: up under the tabs, and never in the way */
.sd-noir .nft-toast { top: 92px !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%); pointer-events: none !important; }

/* ── the author's art landed (2026-10-21): ui/bg.jpg, vhs.webp, stack.webp, card_back.webp ── */
.sd-noir .sd-bg-img { opacity: 1; mix-blend-mode: normal; filter: saturate(0.9) brightness(0.62) contrast(1.08); }
.sd-noir .sd-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(150, 30, 22, 0.28), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(rgba(40, 6, 4, 0.35), rgba(20, 4, 3, 0.45));
}
/* the cassette is the picture's own shape (1391 × 759); the name sits on its label */
.sd-noir .sd-vhs { height: 100%; width: auto; max-width: 42%; aspect-ratio: 1391 / 759; align-self: center; }
.sd-noir .sd-vhs-img { object-fit: fill; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.7)); }
.sd-noir .sd-vhs-img ~ .sd-vhs-label { left: 29%; right: 29%; top: 29%; height: 47%; background: none; box-shadow: none; transform: rotate(-5deg); font-size: clamp(22px, 3.4vh, 40px); }
.sd-noir .sd-vhs-img ~ .sd-vhs-no { right: 30%; bottom: 25%; background: none; color: #3a2a1c; font-size: 13px; }
.sd-noir .sd-vhs-img ~ .sd-vhs-spine { display: none; }
.sd-noir .sd-stack-img { opacity: 0.85; object-position: left bottom; }
/* the intro's backs: the author's card back; the silhouette rides smaller in its centre medallion */
.sdi-back-img + .sdi-sil { left: 22%; right: 22%; width: 56%; bottom: 22%; height: 56%; }
.sdi-back { background: #0d0807; }
/* the toast hid by sliding off the bottom; up top it hides by fading */
.sd-noir .nft-toast { opacity: 0; transition: opacity 0.35s ease !important; transform: translateX(-50%) !important; background: rgba(16, 7, 6, 0.95) !important; border-color: var(--sd-red) !important; color: #f0d8c4 !important; font-family: 'Special Elite', monospace; letter-spacing: 2px; }
.sd-noir .nft-toast.show { opacity: 1; }
.sd-noir .sd-stack { flex: none; height: 104px; max-height: none; margin-top: 10px; }
.sd-noir .sd-stack-img { left: 0; width: auto; height: 100%; transform: rotate(-8deg); transform-origin: left bottom; }
.sd-noir .sd-vhs-img ~ .sd-vhs-label { top: 27%; height: 38%; }
.sd-noir .sd-vhs-img ~ .sd-vhs-no { right: 30.5%; bottom: 25.5%; font-size: 11px; opacity: 0.8; }
.sd-noir .sd-stack { height: 86px; overflow: visible; }
.sd-noir .sd-stack-img { left: 50%; width: auto; height: 100%; transform: translateX(-50%) rotate(-7deg); transform-origin: center; }
.sd-noir .sd-quote { margin-top: 8px; }
.sd-noir .sd-portrait { height: 29%; } .sd-noir .sd-stack { height: 74px; }
/* the silhouette as an <img> (no CSS mask: file:// blocks mask images): black → antique gold #d7a560 by filter, red #e3483a when LEAKED (measured). */
.sdi .sdi-sil { background: none !important; object-fit: contain; object-position: center bottom;
  filter: brightness(0) invert(0.5) sepia(1) saturate(2) hue-rotate(-5deg) brightness(1.1) drop-shadow(0 0 6px rgba(243, 190, 100, 0.45)) !important; }
.sdi.s4 .c1 .sdi-sil { filter: brightness(0) invert(0.3) sepia(1) saturate(8) hue-rotate(-32deg) brightness(1.05) drop-shadow(0 0 8px rgba(255, 75, 58, 0.7)) !important; }
