/* P1-Whoami v2.0 CSS - 4-layer ad system + SSR unlock */
:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6584;
    --dark-bg: #0A0A0F;
    --light-bg: #1A1A24;
    --card-bg: #252533;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8CC;
    --accent-ssr: #FFD700;
    --ad-banner-height: 50px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #15151F 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 20px 16px calc(var(--ad-banner-height) + 20px); /* Extra space for banner */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.lang-btn {
    padding: 6px 12px;
    background: var(--light-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, #6C63FF, #FF6584);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Section States */
.active-section {
    display: block !important;
}

.hidden-section {
    display: none !important;
}

/* Quiz Section */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-number {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.option-btn {
    padding: 16px 20px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.05);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
}

.navigation {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #5B54E6;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #2E2E3D;
}

.btn-complete {
    background: var(--secondary-color);
    color: white;
}

.hidden {
    display: none !important;
}

/* Loading Section */
.loading-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.loading-animation {
    margin: 40px auto;
    width: 80px;
    height: 80px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #6C63FF, #36D1DC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loading-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Native Ad Container */
.native-ad-container {
    background: linear-gradient(135deg, #1E1E2E 0%, #2A2A3E 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 30px auto;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.native-ad-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.native-ad-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.native-ad-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.native-ad-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.native-ad-btn:hover {
    background: #5B54E6;
    transform: translateY(-1px);
}

.loading-timer {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

/* Video Ad Section */
.video-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.video-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.video-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1E1E2E 0%, #2A2A3E 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.countdown {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.video-progress {
    width: 80%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.video-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1s linear;
    width: 0%;
}

/* Result Section */
.result-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#card-canvas, #ssr-card-canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-share {
    background: #25D366;
    color: white;
}

.btn-save {
    background: var(--primary-color);
    color: white;
}

.btn-compare {
    background: var(--secondary-color);
    color: white;
}

/* SSR Unlock Prompt */
.ssr-unlock {
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.1) 0%, rgba(255, 107, 132, 0.1) 100%);
    border: 2px solid var(--accent-ssr);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ssr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ssr-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ssr-unlock h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-ssr);
}

.ssr-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.ssr-options {
    display: flex;
    gap: 12px;
}

.btn-ssr-share {
    background: linear-gradient(90deg, #36D1DC, #5B86E5);
    color: white;
    flex: 1;
}

.btn-ssr-ad {
    background: linear-gradient(90deg, #FF6584, #FF8E53);
    color: white;
    flex: 1;
}

/* SSR Result Section */
.ssr-result-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ssr-reveal {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ssr-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #FFD700, #FF8E53);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

.ssr-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-ssr);
    margin-bottom: 8px;
}

.ssr-congrats {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Ad Banner */
.ad-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ad-banner-height);
    background: var(--light-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 36px;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .option-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .ssr-options {
        flex-direction: column;
    }
    
    #card-canvas, #ssr-card-canvas {
        width: 100% !important;
        height: auto !important;
    }
}

/* Keyboard visibility fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .container {
        padding-bottom: calc(var(--ad-banner-height) + 100px);
    }
    
    .ad-banner {
        position: absolute;
    }
}



/* ==========================================================================
   WHOAMI — PREMIUM UI (v3, P1). Appended last so it supersedes legacy rules
   above. Dark-cosmic glass theme matching the rewritten index.html markup.
   (Legacy rules above target removed classes and can be pruned later.)
   ========================================================================== */
:root {
    --bg: #0b0814;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f4f1fb;
    --text-dim: #b8b2cf;
    --text-faint: #8a83a6;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --gold: #f5c451;
    --accent-grad: linear-gradient(120deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
    --ad-h: 52px;
    --radius: 20px;
    --maxw: 540px;
    --font: 'Sora', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; line-height: 1.5; position: relative; }
.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 50% -10%, #1c1140 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-1 { width: 460px; height: 460px; background: #7c3aed; top: -120px; left: -120px; animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #0891b2; bottom: -140px; right: -120px; animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; background: #db2777; top: 40%; left: 55%; opacity: 0.3; animation: float1 26s ease-in-out infinite reverse; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,-30px) scale(1.1); } }
.container { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 18px calc(var(--ad-h) + 22px); position: relative; }
main { flex: 1; display: flex; flex-direction: column; }
.topbar { position: static; display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .2px; }
.brand-mark { color: var(--violet); font-size: 20px; filter: drop-shadow(0 0 8px rgba(139,92,246,.8)); }
.brand-name { font-size: 18px; }
.topbar-controls { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 16px; cursor: pointer; transition: .2s; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.language-toggle { position: static; top: auto; right: auto; display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 4px; }
.lang-btn { padding: 6px 12px; background: transparent; border: none; border-radius: 8px; color: var(--text-faint); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: .2s; }
.lang-btn.active { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.4); }
.active-section { display: flex; flex-direction: column; flex: 1; animation: fadeUp .5s cubic-bezier(.2,.7,.3,1); }
.hidden-section { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.card-surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 6px 10px; gap: 18px; }
.hero-badge { font-size: 12.5px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--cyan); padding: 7px 14px; border: 1px solid rgba(34,211,238,.35); border-radius: 999px; background: rgba(34,211,238,.08); }
.hero-title { font-size: clamp(40px, 12vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -1px; background: linear-gradient(120deg, #fff 30%, #c4b5fd 70%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-size: 16.5px; color: var(--text-dim); max-width: 30ch; }
.hero-meta { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.hero-meta strong { color: #fff; font-weight: 700; }
.hero-meta i { font-style: normal; color: var(--text-faint); }
.dot-sep { color: var(--text-faint); }
.hero-scarcity { font-size: 13.5px; color: var(--gold); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); font-weight: 700; font-size: 16px; border: none; border-radius: 14px; padding: 15px 22px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 26px rgba(99,102,241,.38); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(99,102,241,.5); }
.btn-ghost, .btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-hero { font-size: 17.5px; padding: 17px 40px; border-radius: 999px; background: var(--accent-grad); color: #fff; box-shadow: 0 12px 34px rgba(124,58,237,.5); position: relative; overflow: hidden; }
.btn-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 3.2s ease-in-out infinite; }
@keyframes shimmer { 0%,60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hidden { display: none !important; }
.quiz-container { padding: 24px 22px 22px; margin-top: 8px; display: flex; flex-direction: column; gap: 18px; }
.progress-wrap { display: flex; flex-direction: column; gap: 9px; }
.progress-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent-grad); border-radius: 999px; transition: width .45s cubic-bezier(.2,.7,.3,1); box-shadow: 0 0 14px rgba(99,102,241,.6); }
.question-number { font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: .5px; }
.question-text { font-size: clamp(21px, 5.4vw, 26px); font-weight: 700; line-height: 1.3; }
.options-container { display: flex; flex-direction: column; gap: 12px; }
.option-btn { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: var(--surface); border: 1.5px solid var(--border); border-radius: 15px; padding: 15px 16px; color: var(--text); font-family: var(--font); font-size: 15.5px; line-height: 1.35; cursor: pointer; transition: .18s; }
.option-btn:hover { border-color: rgba(139,92,246,.6); background: var(--surface-2); transform: translateX(3px); }
.option-key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--text-dim); background: rgba(255,255,255,.06); border: 1px solid var(--border); transition: .18s; }
.option-text { flex: 1; }
.option-btn.selected { border-color: transparent; background: linear-gradient(120deg, rgba(139,92,246,.22), rgba(34,211,238,.18)); box-shadow: 0 8px 24px rgba(99,102,241,.25); }
.option-btn.selected .option-key { background: var(--accent-grad); color: #fff; }
.navigation { display: flex; gap: 12px; margin-top: 4px; }
.navigation .btn { flex: 1; }
#prev-btn { flex: 0 0 auto; padding-left: 20px; padding-right: 20px; }
.loading-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 20px; }
.scanner { display: flex; gap: 10px; height: 60px; align-items: flex-end; margin-bottom: 6px; }
.scanner span { width: 10px; height: 100%; border-radius: 999px; background: var(--accent-grad); animation: bounce 1s ease-in-out infinite; }
.scanner span:nth-child(2) { animation-delay: .15s; } .scanner span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
.loading-title { font-size: 20px; font-weight: 700; }
.loading-subtitle { font-size: 14px; color: var(--text-dim); }
.native-ad-container { margin-top: 22px; width: 100%; max-width: 420px; text-align: left; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.native-ad-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 7px; }
.native-ad-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.native-ad-desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 12px; }
.native-ad-btn { font-family: var(--font); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.video-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 30px 22px; margin-top: 8px; }
.video-title { font-size: 24px; font-weight: 800; }
.video-desc { font-size: 14.5px; color: var(--text-dim); max-width: 30ch; }
.video-placeholder { width: 100%; max-width: 420px; aspect-ratio: 16/10; height: auto; border-radius: 16px; margin: 8px 0; background: radial-gradient(circle at 50% 40%, #1c1140, #0a0712); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; }
.countdown { font-size: 54px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.video-progress-track { width: 80%; height: 7px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.video-progress-track .progress-fill { height: 100%; }
.video-controls .btn { min-width: 220px; }
.result-container, .ssr-result-container { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 14px 0 6px; }
.card-stage { width: 100%; display: flex; justify-content: center; perspective: 1200px; }
#card-canvas, #ssr-card-canvas { width: min(86vw, 380px); height: auto; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05); animation: cardIn .7s cubic-bezier(.2,.8,.3,1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.ssr-stage #ssr-card-canvas { animation: ssrIn 1s cubic-bezier(.2,.8,.3,1); box-shadow: 0 24px 70px rgba(245,196,81,.3), 0 0 50px rgba(245,196,81,.25); }
@keyframes ssrIn { 0% { opacity: 0; transform: scale(.7) rotateY(35deg); } 60% { opacity: 1; } 100% { transform: none; } }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 380px; }
.result-actions .btn { flex: 1; min-width: 100px; font-size: 14.5px; padding: 13px 14px; }
.ssr-unlock { width: 100%; max-width: 420px; padding: 20px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, rgba(245,196,81,.12), rgba(139,92,246,.10)); border: 1px solid rgba(245,196,81,.4); box-shadow: 0 0 40px rgba(245,196,81,.15); animation: fadeUp .5s; }
.ssr-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ssr-icon { font-size: 24px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .7; } }
.ssr-header h3 { font-size: 19px; font-weight: 800; color: var(--gold); }
.ssr-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.ssr-options { display: flex; flex-direction: column; gap: 10px; }
.btn-ssr-share { background: linear-gradient(120deg, #f5c451, #f59e0b); color: #1a1206; font-weight: 800; box-shadow: 0 10px 26px rgba(245,158,11,.4); }
.btn-ssr-ad { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.ssr-reveal { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.ssr-title { font-size: 24px; font-weight: 800; background: linear-gradient(120deg, #f5c451, #fff, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ssr-congrats { font-size: 14px; color: var(--text-dim); max-width: 32ch; margin-bottom: 6px; }
.ad-banner { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: var(--ad-h); z-index: 90; display: none; align-items: center; justify-content: center; font-size: 11px; color: var(--text-faint); background: rgba(10,8,18,.86); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.ad-banner.visible { display: flex; }
.footer { text-align: center; font-size: 12px; color: var(--text-faint); padding: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: center; }
.footer-text { color: var(--text-faint); }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--cyan); }
@media (max-width: 380px) { .hero-title { font-size: 40px; } .result-actions .btn { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .orb, .btn-hero::after, .scanner span, .ssr-icon { animation: none !important; } .active-section, #card-canvas, #ssr-card-canvas { animation: none !important; } }
