/* ============================================================
   supercomp.css â€” PlayerOne SuperComp
   Vault (dark) is the default. body.is-light switches to Light.
   ============================================================ */

body {
    --gold: #D4AF37;
    --gold-light: #F5E6A3;
    --gold-dark: #b8960c;
    --bg: #000;
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.62);
    --faint: rgba(255, 255, 255, 0.42);
    --accent: #D4AF37;
    --accent-2: #F5E6A3;
    --panel: linear-gradient(160deg, rgba(20, 17, 8, 0.96), rgba(6, 6, 6, 0.96));
    --panel-solid: #0b0b0b;
    --border: rgba(212, 175, 55, 0.32);
    --border-strong: rgba(245, 230, 163, 0.7);
    --soft: rgba(255, 255, 255, 0.04);
    --soft-border: rgba(255, 255, 255, 0.08);
    --up: #3ddc84;
    --down: #ff8f6b;
    --input: rgba(8, 8, 8, 0.88);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.is-light {
    --bg: #f7f4ec;
    --text: #17150f;
    --muted: rgba(23, 21, 15, 0.66);
    --faint: rgba(23, 21, 15, 0.45);
    --accent: #9a7b08;
    --accent-2: #7a6106;
    --panel: linear-gradient(160deg, #ffffff, #fbf8f0);
    --panel-solid: #f3efe4;
    --border: rgba(184, 150, 12, 0.32);
    --border-strong: rgba(154, 123, 8, 0.7);
    --soft: rgba(0, 0, 0, 0.025);
    --soft-border: rgba(0, 0, 0, 0.08);
    --up: #1e8e3e;
    --down: #c4501f;
    --input: #ffffff;
    --shadow: 0 10px 28px rgba(80, 60, 0, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
}

/* ---------- background ---------- */
#pocMatrix {
    position: fixed; inset: 0; width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none; display: block;
    opacity: 0.12; transition: opacity 0.4s ease;
}
body.is-light #pocMatrix { opacity: 0; }
.sc-glow {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.14), transparent 45%),
        radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}
body.is-light .sc-glow { background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.18), transparent 55%); }

/* ---------- top bar ---------- */
.sc-topbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 20;
    padding: 1.1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sc-brand img { height: 42px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4)); }
body.is-light .sc-brand img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.sc-topnav { display: inline-flex; gap: 0.5rem; }
.sc-topnav a {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none;
    padding: 0.55rem 1rem; border-radius: 30px;
    border: 1.5px solid var(--border); color: var(--accent); background: var(--input);
    transition: all 0.2s ease;
}
.sc-topnav a:hover { border-color: var(--accent); transform: translateY(-1px); }
.sc-topnav a.is-primary { background: linear-gradient(135deg, #D4AF37, #C9A96E); color: #0a0a0a; border-color: #D4AF37; }

/* ---------- theme toggle (same as the shop's Vault button) ---------- */
.sc-theme-toggle {
    position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 50;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
    width: 62px; height: 92px; padding: 0.5rem 0.35rem;
    background: #0a0a0a; border: 1.5px solid rgba(212, 175, 55, 0.5); border-radius: 16px;
    color: #D4AF37; font-family: 'Exo 2', sans-serif; font-size: 0.55rem; font-weight: 800;
    letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(212, 175, 55, 0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sc-theme-toggle svg { transition: transform 0.4s ease; }
.sc-theme-toggle:hover { border-color: #D4AF37; transform: translateY(-50%) scale(1.05); color: #F5E6A3; box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35); }
.sc-theme-toggle:hover svg { transform: scale(1.15) rotate(-6deg); }
.sc-theme-toggle.is-active { background: linear-gradient(135deg, #D4AF37, #b8960c); color: #0a0a0a; border-color: #D4AF37; }

/* ---------- page ---------- */
.sc-wrap { position: relative; z-index: 10; min-height: 100vh; padding: 1rem 1.25rem 4rem; }
.sc-main { width: 100%; max-width: 1100px; margin: 0 auto; padding-top: 6.5rem; text-align: center; }
.sc-eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 30px; background: rgba(212, 175, 55, 0.06);
}
.sc-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; margin: 1rem 0 0.6rem; letter-spacing: 1px; }
.sc-gold {
    background: linear-gradient(135deg, #F5E6A3 0%, #D4AF37 45%, #b8960c 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.is-light .sc-gold { background: linear-gradient(135deg, #c9a227, #9a7b08 60%, #7a6106); -webkit-background-clip: text; background-clip: text; }
.sc-sub { color: var(--muted); font-size: 1.02rem; margin: 0 0 2rem; }

/* ---------- search bar ---------- */
.sc-search {
    display: flex; align-items: stretch; max-width: 680px; margin: 0 auto;
    border: 1.5px solid var(--border-strong); border-radius: 16px; background: var(--input);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.12); overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
}
.sc-search:focus-within { border-color: var(--accent); box-shadow: 0 0 38px rgba(212, 175, 55, 0.28); }
.sc-grader { position: relative; border-right: 1.5px solid var(--border); background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(184, 150, 12, 0.06)); }
.sc-grader select {
    appearance: none; -webkit-appearance: none; height: 100%; background: transparent; border: 0; outline: none;
    color: var(--accent-2); font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 1px;
    padding: 0 2.2rem 0 1.1rem; cursor: pointer;
}
body:not(.is-light) .sc-grader select { color: #F5E6A3; }
.sc-grader select option { background: var(--panel-solid); color: var(--text); }
.sc-grader::after {
    content: ''; position: absolute; right: 0.9rem; top: 50%; width: 7px; height: 7px; margin-top: -6px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); pointer-events: none;
}
.sc-search input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text);
    font-family: 'Orbitron', sans-serif; font-size: 1.1rem; letter-spacing: 2px; padding: 1.05rem 1rem;
}
.sc-search input::placeholder { color: var(--faint); letter-spacing: 1px; font-size: 0.95rem; }
.sc-search button {
    border: 0; cursor: pointer; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.9rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: #0a0a0a; background: linear-gradient(135deg, #F5E6A3, #D4AF37 55%, #b8960c);
    padding: 0 1.6rem; transition: filter 0.2s;
}
.sc-search button:hover { filter: brightness(1.1); }
.sc-search button:disabled { filter: grayscale(0.6) brightness(0.8); cursor: wait; }
.sc-hint { margin-top: 0.8rem; font-size: 0.82rem; color: var(--faint); }

.sc-error {
    max-width: 680px; margin: 1rem auto 0; padding: 0.85rem 1rem; border-radius: 12px; display: none;
    border: 1px solid rgba(255, 90, 90, 0.5); background: rgba(160, 0, 0, 0.12); color: #e05555; font-size: 0.95rem;
}

/* ---------- manual form ---------- */
.sc-manual {
    max-width: 680px; margin: 1rem auto 0; padding: 1.1rem 1.2rem; text-align: left; display: none;
    border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow);
}
.sc-manual.is-on { display: block; }
.sc-manual h3 { margin: 0 0 0.25rem; color: var(--accent); font-size: 1.05rem; }
.sc-manual p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.88rem; }
.sc-manual-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0.6rem; }
.sc-manual-grid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; color: var(--muted); }
.sc-manual-grid input, .sc-manual-grid select {
    background: var(--input); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
    padding: 0.55rem 0.65rem; font-size: 0.95rem; min-width: 0; font-family: inherit;
}
.sc-manual-checks { display: flex; gap: 1.2rem; margin: 0.8rem 0; font-size: 0.88rem; color: var(--text); flex-wrap: wrap; }
.sc-manual button { background: linear-gradient(135deg, #f5d77a, #c9a227); color: #111; border: 0; border-radius: 10px; padding: 0.6rem 1.3rem; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ---------- scanner ---------- */
.sc-scan { max-width: 680px; margin: 1.6rem auto 0; display: none; }
.sc-scan.is-on { display: block; }
.sc-bar { position: relative; height: 8px; border-radius: 20px; background: var(--soft); border: 1px solid var(--border); overflow: hidden; }
.sc-bar-fill {
    position: absolute; inset: 0 auto 0 0; width: 0%;
    background: linear-gradient(90deg, #b8960c, #D4AF37, #F5E6A3); box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
    transition: width 0.45s ease;
}
.sc-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.16) 0 8px, transparent 8px 16px);
    animation: scStripes 0.8s linear infinite;
}
.sc-scan.is-done .sc-bar-fill::after { animation: none; opacity: 0; }
@keyframes scStripes { from { background-position: 0 0; } to { background-position: 32px 0; } }
.sc-msg-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.7rem; }
.sc-msg { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; letter-spacing: 0.5px; color: var(--accent-2); text-align: left; min-height: 1.3em; transition: opacity 0.25s, transform 0.25s; }
body:not(.is-light) .sc-msg { color: #F5E6A3; }
.sc-msg.is-swap { opacity: 0; transform: translateY(4px); }
.sc-pct { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 0.9rem; }
.sc-chip {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 0.28rem 0.7rem; border-radius: 20px; border: 1px solid var(--soft-border); color: var(--faint); background: var(--input);
}
.sc-chip.is-wait { border-color: var(--border); color: var(--accent); animation: scPulse 1s ease-in-out infinite; }
.sc-chip.is-ok { border-color: var(--up); color: var(--up); }
.sc-chip.is-error { border-color: var(--down); color: var(--down); }
@keyframes scPulse { 50% { opacity: 0.45; } }
.sc-scan.is-done .sc-chips { display: none; }

/* ---------- results ---------- */
.sc-results { display: none; margin-top: 2rem; text-align: left; }
.sc-results.is-on { display: block; animation: scRise 0.5s ease both; }
@keyframes scRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sc-panel { border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.sc-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.2rem; }

/* card + slab image */
.sc-card { display: flex; gap: 1.2rem; padding: 1.2rem; align-items: center; }
.sc-slab-wrap { flex: 0 0 140px; }
.sc-slab {
    position: relative; width: 140px; height: 236px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); background: var(--panel-solid); perspective: 900px;
}
.sc-slab.can-flip { cursor: pointer; }
.sc-slab-inner { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d; display: none; }
.sc-slab.has-img .sc-slab-inner { display: block; }
.sc-slab.is-flipped .sc-slab-inner { transform: rotateY(180deg); }
.sc-slab-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; align-items: center; justify-content: center; padding: 5px; }
.sc-slab-face img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-slab-back { transform: rotateY(180deg); }
.sc-slab-face img:not([src]) { display: none; }

/* placeholder slab (shown until/unless a real photo loads) */
.sc-ph { position: absolute; inset: 8px; display: flex; flex-direction: column; gap: 6px; }
.sc-slab.has-img .sc-ph { display: none; }
.sc-ph-label {
    height: 44px; border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08)); border: 1px solid var(--border);
}
.sc-ph-label b { font-family: 'Orbitron', sans-serif; font-size: 0.72rem; color: var(--accent); letter-spacing: 1px; }
.sc-ph-label span { font-size: 0.6rem; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ph-window {
    flex: 1; border-radius: 6px; border: 1px dashed var(--border); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.45rem; text-align: center; padding: 0.5rem;
    background: repeating-linear-gradient(135deg, var(--soft) 0 10px, transparent 10px 20px);
}
.sc-ph-window img { width: 70%; opacity: 0.35; filter: grayscale(0.3); }
.sc-ph-window span { font-size: 0.66rem; color: var(--faint); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; }
.sc-slab.is-loading-img .sc-ph-window span { animation: scPulse 1.2s ease-in-out infinite; }

.sc-img-badge {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 7px; z-index: 3; white-space: nowrap;
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 0.2rem 0.5rem; border-radius: 20px; background: rgba(0, 0, 0, 0.75); color: #F5E6A3; border: 1px solid rgba(212, 175, 55, 0.45); pointer-events: none;
}
.sc-img-badge:empty { display: none; }
.sc-img-badge.is-shop { background: linear-gradient(135deg, #D4AF37, #b8960c); color: #0a0a0a; border-color: transparent; }
.sc-flip-hint { text-align: center; font-size: 0.68rem; color: var(--faint); margin-top: 0.4rem; min-height: 1em; }

.sc-card-info { min-width: 0; }
.sc-grade-pill {
    display: inline-block; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.8rem; letter-spacing: 1px;
    padding: 0.3rem 0.75rem; border-radius: 8px; color: #0a0a0a; background: linear-gradient(135deg, #F5E6A3, #D4AF37);
}
.sc-card-name { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.3rem; margin: 0.55rem 0 0.25rem; line-height: 1.2; }
.sc-card-set { color: var(--muted); font-size: 0.95rem; }
.sc-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; margin: 0.8rem 0 0; font-size: 0.85rem; }
.sc-meta dt { color: var(--faint); }
.sc-meta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.sc-vault-line { margin-top: 0.8rem; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.sc-vault-line:empty { display: none; }

/* SuperComp price */
.sc-super { padding: 1.4rem 1.4rem 1.2rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.sc-super::before {
    content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 65%); pointer-events: none;
}
.sc-super > * { position: relative; }
.sc-super-label { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.sc-super-price { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.1; margin: 0.35rem 0 0.2rem; }
.sc-super-note { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.sc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 1.1rem; }
.sc-tier { border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.6rem; text-align: center; background: rgba(212, 175, 55, 0.06); }
.sc-tier b { display: block; font-family: 'Orbitron', sans-serif; font-size: 0.72rem; color: var(--accent); letter-spacing: 1px; }
.sc-tier span { display: block; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.1rem; margin-top: 0.25rem; }
.sc-range { margin-top: 0.9rem; font-size: 0.8rem; color: var(--faint); }
.sc-range:empty { display: none; }
.sc-reset { margin-top: 0.6rem; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 0.78rem; cursor: pointer; font-family: inherit; display: none; }
.sc-reset.is-on { display: inline-block; }

/* source tiles */
.sc-h2 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 2rem 0 0.9rem; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.9rem; }
.sc-src { padding: 1rem; display: flex; flex-direction: column; min-height: 220px; transition: transform 0.2s, border-color 0.2s, opacity 0.2s; }
.sc-src:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.sc-src.is-off .sc-src-price, .sc-src.is-off .sc-src-head { opacity: 0.6; }
.sc-src.is-out { border-style: dashed; }
.sc-src.is-out .sc-src-price { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--faint); }
.sc-src.is-out .sc-src-diff, .sc-src.is-out .sc-src-tiers { opacity: 0.45; }
.sc-src-head { display: flex; align-items: center; gap: 0.6rem; }
.sc-logo {
    flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.78rem;
}
.sc-src-name { font-weight: 800; font-size: 1rem; line-height: 1.1; }
.sc-src-kind { font-size: 0.74rem; color: var(--faint); margin-top: 2px; }
.sc-src-price { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.55rem; margin: 0.8rem 0 0.1rem; }
.sc-src-price.is-muted { font-size: 1rem; font-weight: 700; color: var(--faint); }
.sc-src-diff { font-size: 0.76rem; font-weight: 700; min-height: 1em; }
.sc-src-diff.up { color: var(--up); }
.sc-src-diff.down { color: var(--down); }
.sc-src-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 0.7rem; }
.sc-src-tiers div { text-align: center; font-size: 0.72rem; padding: 0.35rem 0.2rem; border-radius: 8px; background: var(--soft); border: 1px solid var(--soft-border); }
.sc-src-tiers b { display: block; color: var(--accent); font-size: 0.64rem; letter-spacing: 0.5px; }
.sc-src-note { font-size: 0.76rem; color: var(--muted); margin-top: 0.7rem; line-height: 1.4; overflow-wrap: anywhere; }
.sc-src-why { font-size: 0.76rem; color: var(--down); margin-top: 0.5rem; line-height: 1.4; font-weight: 600; }
.sc-src-why:empty { display: none; }
.sc-sales { margin-top: 0.6rem; font-size: 0.74rem; }
.sc-sales summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.sc-sales ol { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.sc-sales li { margin-bottom: 0.25rem; }
.sc-sales a { color: var(--accent); text-decoration: none; font-weight: 700; }
.sc-src-foot { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sc-src-foot a { margin-left: auto; color: var(--accent); font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.sc-src-foot a:hover { text-decoration: underline; }
.sc-tag { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 6px; color: var(--faint); border: 1px solid var(--soft-border); }
.sc-tag.ok { color: var(--up); border-color: currentColor; }
.sc-tag.out { color: var(--down); border-color: currentColor; }
.sc-use {
    font-family: inherit; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer;
    padding: 0.2rem 0.55rem; border-radius: 6px; background: transparent; color: var(--muted); border: 1px solid var(--soft-border);
    transition: all 0.15s ease;
}
.sc-use:hover { color: var(--accent); border-color: var(--accent); }
.sc-spin { width: 26px; height: 26px; margin: 1.2rem 0 0.3rem; border: 3px solid rgba(212, 175, 55, 0.2); border-top-color: #D4AF37; border-radius: 50%; animation: scSpin 0.8s linear infinite; }
@keyframes scSpin { to { transform: rotate(360deg); } }

.sc-foot-note { margin-top: 1.6rem; font-size: 0.78rem; color: var(--muted); padding: 0.7rem 1rem; border-radius: 12px; text-align: center; line-height: 1.55; background: var(--soft); border: 1px solid var(--soft-border); }

/* ---------- responsive ---------- */
@media (max-width: 820px) { .sc-top { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .sc-topbar { padding: 0.9rem 1rem; }
    .sc-brand img { height: 34px; }
    .sc-main { padding-top: 5.2rem; }
    .sc-search input { font-size: 0.95rem; padding: 0.95rem 0.7rem; letter-spacing: 1px; }
    .sc-search button { padding: 0 1rem; font-size: 0.78rem; }
    .sc-grader select { padding: 0 1.9rem 0 0.8rem; font-size: 0.85rem; }
    .sc-card { gap: 0.9rem; padding: 1rem; }
    .sc-slab-wrap { flex-basis: 104px; }
    .sc-slab { width: 104px; height: 176px; }
    .sc-card-name { font-size: 1.05rem; }
    .sc-tier span { font-size: 0.92rem; }
    .sc-manual-grid { grid-template-columns: 1fr 1fr; }
    .sc-manual-grid .sc-wide { grid-column: 1 / -1; }
    .sc-theme-toggle { width: 50px; height: 78px; right: 8px; top: auto; bottom: 16px; transform: none; }
    .sc-theme-toggle:hover { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    #pocMatrix { display: none; }
    .sc-slab-inner { transition: none; }
}

/* ---------- password gate + scan limit ---------- */
.sc-gate { max-width: 420px; margin-left: auto; margin-right: auto; }
.sc-gate input { text-align: center; letter-spacing: 6px; }
.sc-usage {
    display: none; max-width: 420px; margin: 0.9rem auto 0; font-size: 0.85rem; color: var(--muted);
}
.sc-usage.is-login { display: block; }
.sc-usage a { color: var(--accent); font-weight: 700; text-decoration: none; }
.sc-usage a:hover { text-decoration: underline; }
.sc-usage-text { display: block; margin-bottom: 0.4rem; }
.sc-usage-bar { display: block; height: 4px; border-radius: 4px; background: var(--soft-border); overflow: hidden; }
.sc-usage-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width 0.4s ease; }
.sc-usage.is-wait .sc-usage-text { color: var(--accent); }
.sc-usage.is-out { color: var(--down); font-weight: 600; }
.sc-usage.is-owner { color: var(--accent); letter-spacing: 1px; text-transform: uppercase; font-size: 0.75rem; }