*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  background: #0a0a0c;
  color: #ededed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.hidden { display: none !important; }
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: float 15s ease-in-out infinite alternate; mix-blend-mode: screen; }
.orb-1 { width: 40vw; height: 40vw; background: #2b00ff; top: -10vw; left: -10vw; }
.orb-2 { width: 35vw; height: 35vw; background: #00e5ff; bottom: 10vh; right: -5vw; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: #ff007f; bottom: -5vw; left: 20vw; animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(5vw, 5vw) scale(1.1); } }
.history-btn { display: inline-flex; align-items: center; gap: 10px; }
.history-btn:hover { border-color: rgba(0,229,255,0.4); color: #fff; transform: translateY(-1px); }
.history-btn strong { min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #00e5ff; color: #031014; font-size: 12px; font-family: monospace; }
#records-modal-root .rt-record-backdrop { background: rgba(0,0,0,0.62); backdrop-filter: blur(10px); }
#records-modal-root .rt-record-card { background: rgba(14,14,19,0.96); color: #f4f4f5; border-color: rgba(255,255,255,0.12); box-shadow: 0 28px 90px rgba(0,0,0,0.72); }
#records-modal-root .rt-record-head h2 { color: #f4f4f5; }
#records-modal-root .rt-record-close { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.08); color: #d4d4d8; }
#records-modal-root .rt-record-close:hover { background: rgba(255,255,255,0.14); color: #fff; }
#records-modal-root .rt-record-empty { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #f4f4f5; }
#records-modal-root .rt-record-empty .muted,
#records-modal-root .rt-record-count { color: #a1a1aa; }
#records-modal-root .rt-record-item { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02); }
#records-modal-root .rt-record-text strong { color: #f4f4f5; }
#records-modal-root .rt-record-text small { color: #b8c1cc; }
#records-modal-root .rt-record-open { background: rgba(0,229,255,0.14); color: #8ff3ff; border: 1px solid rgba(0,229,255,0.22); }
#records-modal-root .rt-record-delete { background: rgba(255,0,127,0.12); color: #ffb3d1; border: 1px solid rgba(255,0,127,0.22); }
#records-modal-root .rt-record-clear { background: rgba(255,0,127,0.12); color: #ffb3d1; border: 1px solid rgba(255,0,127,0.22); }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 100px 20px; text-align: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; color: #00e5ff; background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.2); margin-bottom: 24px; box-shadow: 0 0 20px rgba(0, 229, 255, 0.1); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #00e5ff; animation: pulse 2s infinite; box-shadow: 0 0 8px #00e5ff; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1, .unlock-panel h1 { font-size: clamp(40px, 8vw, 80px); font-weight: 700; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 0 40px rgba(255,255,255,0.1); }
.hero h1 .accent { background: linear-gradient(135deg, #00e5ff, #8a2be2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(0,229,255,0.5)); }
.hero-sub, .unlock-panel p { font-size: clamp(16px, 2.5vw, 20px); color: #a1a1aa; max-width: 600px; margin-bottom: 48px; line-height: 1.6; }
.hero-upload { width: 100%; max-width: 500px; background: rgba(20,20,25,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); transition: transform 0.3s; position: relative; overflow: hidden; }
.hero-upload::before { content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-upload:hover { transform: translateY(-5px); box-shadow: 0 30px 80px rgba(0, 229, 255, 0.15); }
.upload-area { border: 2px dashed rgba(255,255,255,0.2); border-radius: 16px; padding: 40px 20px; cursor: pointer; transition: all 0.3s; margin-bottom: 24px; background: rgba(0,0,0,0.3); }
.upload-area:hover, .upload-area.drag-over { background: rgba(0, 229, 255, 0.05); border-color: #00e5ff; box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1); }
.upload-area.has-file { border-style: solid; border-color: #8a2be2; background: rgba(138, 43, 226, 0.05); }
.upload-ph-icon { font-size: 44px; margin-bottom: 16px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.upload-ph-text { font-size: 16px; font-weight: 500; color: #e4e4e7; }
.upload-ph-hint { font-size: 13px; color: #71717a; margin-top: 8px; }
.upload-preview { display: none; }
.upload-area.has-file .upload-ph { display: none; }
.upload-area.has-file .upload-preview { display: block; }
.upload-preview img { max-height: 180px; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.fn { font-size: 13px; color: #a1a1aa; margin-bottom: 8px; }
.rechoose { font-size: 13px; color: #00e5ff; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.hero-btn, .cta-btn, .secondary-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none; padding: 16px 40px; border-radius: 50px; font-size: 17px; font-weight: 600; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; }
.hero-btn, .cta-btn { background: linear-gradient(135deg, #00e5ff, #0077ff); color: #fff; box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.secondary-btn { background: rgba(255,255,255,0.08); color: #d4d4d8; border: 1px solid rgba(255,255,255,0.1); }
.hero-btn::after, .cta-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent); opacity: 0; transition: opacity 0.3s; }
.hero-btn:hover:not(:disabled), .cta-btn:hover, .secondary-btn:hover { transform: translateY(-2px) scale(1.02); }
.hero-btn:hover:not(:disabled), .cta-btn:hover { box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5); }
.hero-btn:hover::after, .cta-btn:hover::after { opacity: 1; }
.hero-btn:disabled { background: rgba(255,255,255,0.1); color: #71717a; box-shadow: none; cursor: not-allowed; }
.hero-action-row, .cta-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-action-row .hero-btn, .hero-action-row .secondary-btn { flex: 1 1 180px; padding-left: 20px; padding-right: 20px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.upload-status { margin-top: 14px; min-height: 20px; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.upload-status.is-error { color: #ff7aa8; }
.compensation-entry { width: min(500px, calc(100vw - 40px)); margin-top: 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255,0,127,0.22); background: rgba(255,0,127,0.08); color: #f4f4f5; box-shadow: 0 18px 45px rgba(0,0,0,0.28); }
.compensation-entry p { color: #d4d4d8; font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.compensation-entry .secondary-btn { padding: 11px 20px; font-size: 14px; }
.scroll-indicator { position: absolute; bottom: 40px; cursor: pointer; color: #a1a1aa; font-size: 12px; animation: bounce 2s infinite; letter-spacing: 2px; text-transform: uppercase; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.section { padding: 120px 20px; max-width: 1200px; margin: 0 auto; text-align: center; }
.section-label { font-size: 12px; font-weight: 600; color: #8a2be2; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px; }
.section h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.sec-sub { font-size: 18px; color: #a1a1aa; margin: 0 auto 64px; max-width: 600px; line-height: 1.6; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; text-align: left; }
.feat-card { background: rgba(20,20,20,0.6); border-radius: 24px; padding: 40px 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: all 0.4s; border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.feat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #00e5ff, #8a2be2); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.feat-card:hover { transform: translateY(-8px); background: rgba(30,30,35,0.8); border-color: rgba(255,255,255,0.1); }
.feat-card:hover::before { transform: scaleX(1); }
.feat-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: inset 0 0 20px rgba(255,255,255,0.02); }
.feat-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; color: #f4f4f5; }
.feat-card p { font-size: 15px; color: #a1a1aa; line-height: 1.7; }
.cta-section { padding: 120px 20px; text-align: center; }
.cta-card { max-width: 800px; margin: 0 auto; background: rgba(30,30,40,0.6); border-radius: 32px; padding: 80px 40px; position: relative; overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(20px); }
.cta-decoration { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(138,43,226,0.15) 0%, transparent 60%); pointer-events: none; }
.cta-card h2 { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 42px); }
.cta-card p { color: #a1a1aa; margin-bottom: 40px; position: relative; z-index: 1; font-size: 18px; line-height: 1.6; }
.loading-page, .unlock-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.loading-card, .unlock-panel { background: rgba(20,20,25,0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 32px; padding: 56px 48px; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.8); width: 100%; max-width: 480px; position: relative; overflow: hidden; }
.unlock-panel { max-width: 720px; }
.loading-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 70%, rgba(0,229,255,0.3) 100%); animation: rotate 4s linear infinite; z-index: 0; pointer-events: none; opacity: 0.5; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
.loading-card > * { position: relative; z-index: 1; }
.scan-container { position: relative; width: 140px; height: 140px; margin: 0 auto 32px; background: #000; border-radius: 50%; overflow: hidden; box-shadow: 0 0 40px rgba(0,229,255,0.2), inset 0 0 20px rgba(0,229,255,0.5); border: 2px solid rgba(0,229,255,0.3); }
#loadingScanImg { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(1) contrast(1.5) sepia(1) hue-rotate(130deg) brightness(0.8); }
.scan-laser { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #00e5ff; box-shadow: 0 0 20px 5px rgba(0,229,255,0.8); animation: scanV 2s ease-in-out infinite alternate; }
@keyframes scanV { 0% { transform: translateY(-10px); } 100% { transform: translateY(150px); } }
.loading-card h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.loading-status { font-size: 14px; color: #00e5ff; opacity: 0.8; margin-bottom: 32px; font-family: monospace; letter-spacing: 1px; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin: 0 0 24px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; width: 0%; background: #00e5ff; box-shadow: 0 0 10px #00e5ff; transition: width 0.3s; }
.steps { display: flex; justify-content: space-between; font-size: 12px; color: #71717a; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: color 0.3s; }
.step.active { color: #00e5ff; }
.step.done { color: #52525b; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.step.active .step-dot { background: #00e5ff; box-shadow: 0 0 15px #00e5ff; border-color: #00e5ff; }
.step.done .step-dot { background: #52525b; border-color: transparent; }
.step.failed { color: #ff7aa8; }
.step.failed .step-dot { background: #ff007f; border-color: #ff7aa8; box-shadow: 0 0 15px rgba(255,0,127,0.65); }
.load-fail-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.load-fail-actions .hero-btn, .load-fail-actions .secondary-btn { width: 100%; padding: 13px 20px; font-size: 15px; }
.result-page { min-height: 100vh; padding: 40px 20px; overflow-y: auto; }
.result-container { width: 100%; max-width: 960px; margin: 0 auto; animation: resultIn 0.5s cubic-bezier(0.2,0.8,0.2,1); }
@keyframes resultIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.result-close { position: fixed; top: 24px; right: 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; color: #a1a1aa; font-size: 20px; cursor: pointer; transition: all 0.3s; z-index: 10; backdrop-filter: blur(10px); text-decoration: none; display: flex; align-items: center; justify-content: center; }
.result-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: rotate(90deg); }
.result-card { background: rgba(15,15,20,0.8); border: 1px solid rgba(255,255,255,0.08); border-radius: 36px; padding: 64px 48px; box-shadow: 0 30px 100px rgba(0,0,0,0.8); backdrop-filter: blur(20px); }
.result-header { text-align: center; margin-bottom: 56px; }
.result-header .badge { display: inline-block; background: rgba(138,43,226,0.15); color: #d8b4fe; border: 1px solid rgba(138,43,226,0.3); padding: 8px 20px; border-radius: 50px; font-size: 13px; margin-bottom: 20px; font-weight: 500; letter-spacing: 1px; }
.result-header h1 { font-size: 36px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.result-header p { color: #a1a1aa; }
.result-status { margin: -24px auto 32px; max-width: 720px; padding: 16px 18px; border-radius: 16px; background: rgba(255,0,127,0.08); border: 1px solid rgba(255,0,127,0.22); color: #ffb3d1; line-height: 1.6; text-align: center; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: -12px 0 32px; }
.result-actions .hero-btn, .result-actions .secondary-btn { padding: 12px 22px; font-size: 14px; }
.result-toolbar { position: sticky; bottom: 0; z-index: 12; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(10,10,12,0.86); border-top: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(18px); }
.result-toolbar .hero-btn, .result-toolbar .secondary-btn { min-width: 128px; padding: 12px 20px; font-size: 14px; }
.result-grid { display: grid; gap: 24px; margin-bottom: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-1-2 { grid-template-columns: 1fr 1.5fr; }
.r-mini-card { background: rgba(25,25,30,0.5); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 32px; box-shadow: inset 0 0 20px rgba(0,0,0,0.2); }
.r-mini-card h3 { font-size: 14px; font-weight: 600; color: #a1a1aa; text-transform: uppercase; margin-bottom: 24px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.r-mini-card h3::before { content: ""; display: inline-block; width: 4px; height: 14px; background: #00e5ff; border-radius: 2px; }
.overview-preview { display: flex; gap: 24px; align-items: center; }
.overview-preview img { width: 110px; height: 110px; border-radius: 20px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.overview-info .name { font-size: 20px; font-weight: 600; margin-bottom: 8px; font-family: monospace; color: #f4f4f5; }
.overview-info .ts { font-size: 13px; color: #71717a; margin-bottom: 16px; }
.tags .tag { padding: 6px 12px; font-size: 11px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); color: #d4d4d8; margin-right: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.score-row { display: flex; justify-content: space-between; gap: 10px; }
.score-item { text-align: center; }
.score-circle { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; position: relative; }
.score-item .lbl { font-size: 13px; color: #a1a1aa; font-weight: 500; }
.summary-card { background: linear-gradient(135deg, rgba(30,30,40,0.8), rgba(20,20,30,0.8)); border-radius: 24px; padding: 36px 40px; display: flex; gap: 24px; margin-bottom: 24px; border: 1px solid rgba(138,43,226,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.summary-icon { font-size: 36px; filter: drop-shadow(0 0 10px rgba(138,43,226,0.6)); }
.summary-quote { font-size: 20px; font-weight: 600; color: #e4e4e7; margin-bottom: 12px; letter-spacing: 0.5px; }
.summary-text { font-size: 15px; color: #a1a1aa; line-height: 1.7; }
.canvas-wrap canvas { max-width: 100%; height: auto !important; display: block; margin: 0 auto; filter: drop-shadow(0 0 20px rgba(0,229,255,0.1)); }
.bar-list { display: flex; flex-direction: column; gap: 20px; }
.bar-item { display: flex; align-items: center; gap: 16px; }
.bar-label { width: 56px; font-size: 14px; color: #a1a1aa; }
.bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 3px; transition: width 1.2s cubic-bezier(0.2,0.8,0.2,1); box-shadow: 0 0 10px currentcolor; }
.bar-val { width: 36px; font-size: 14px; font-weight: 600; font-family: monospace; text-align: right; }
.line-desc { font-size: 14px; color: #a1a1aa; line-height: 1.7; margin-top: 16px; }
.lucky-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.lucky-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 16px; text-align: center; transition: all 0.3s; }
.lucky-item:hover { transform: translateY(-3px); border-color: rgba(0,229,255,0.3); background: rgba(0,229,255,0.05); }
.lucky-icon { font-size: 24px; margin-bottom: 8px; filter: drop-shadow(0 0 10px currentcolor); }
.lucky-label { font-size: 12px; color: #71717a; margin-bottom: 4px; }
.lucky-val { font-size: 14px; font-weight: 600; color: #f4f4f5; }
.advice-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.advice-item { display: flex; align-items: flex-start; gap: 16px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; transition: all 0.3s; }
.advice-item:hover { transform: translateX(5px); border-color: rgba(138,43,226,0.3); background: rgba(138,43,226,0.05); }
.advice-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 10px currentcolor; }
.advice-text { font-size: 14px; color: #a1a1aa; line-height: 1.6; }
.advice-text strong { color: #f4f4f5; display: block; margin-bottom: 4px; font-size: 15px; }
.rarity-box { text-align: center; margin-top: 24px; padding: 12px; }
.rarity-val { font-size: 64px; font-weight: 700; color: #00e5ff; line-height: 1; margin-bottom: 20px; font-family: monospace; text-shadow: 0 0 30px rgba(0,229,255,0.4); }
.rarity-val span { font-size: 24px; color: #a1a1aa; font-weight: 500; }
.rarity-val #rarityPercent { font-size: 64px; color: #00e5ff; font-weight: 700; }
.rarity-box p { font-size: 14px; color: #a1a1aa; line-height: 1.7; text-align: left; }
.rarity-box p strong { color: #f4f4f5; }
.celeb-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.celeb-item { display: flex; align-items: stretch; gap: 20px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 20px; transition: all 0.3s; }
.celeb-item:hover { transform: translateX(5px); border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }
.celeb-av { width: 64px; height: 64px; border-radius: 16px; font-size: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid transparent; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.celeb-name { font-size: 17px; font-weight: 600; color: #f4f4f5; margin-bottom: 6px; }
.celeb-match { font-size: 13px; color: #71717a; margin-bottom: 8px; font-family: monospace; letter-spacing: 0.5px; }
.celeb-desc { font-size: 14px; color: #a1a1aa; line-height: 1.6; }
.unlock-status, .compensation-detail { margin: -24px auto 28px; padding: 14px 16px; border-radius: 14px; color: #d4d4d8; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 14px; line-height: 1.6; }
.compensation-actions { display: grid; gap: 16px; justify-items: center; margin-bottom: 24px; }
.compensation-code-box { width: min(360px, 100%); padding: 18px; border-radius: 18px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.25); }
.compensation-code-box span { display: block; color: #a1a1aa; font-size: 12px; margin-bottom: 8px; letter-spacing: 2px; text-transform: uppercase; }
.compensation-code-box strong { color: #f4f4f5; font-family: monospace; font-size: 28px; letter-spacing: 2px; }
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: grid; gap: 10px; pointer-events: none; }
.toast { transform: translateY(10px); opacity: 0; transition: all 0.22s ease; max-width: 360px; padding: 13px 16px; border-radius: 14px; background: rgba(20,20,25,0.9); border: 1px solid rgba(0,229,255,0.2); color: #e4e4e7; box-shadow: 0 18px 50px rgba(0,0,0,0.45); backdrop-filter: blur(16px); font-size: 14px; line-height: 1.5; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { border-color: rgba(255,0,127,0.35); color: #ffb3d1; }
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .hero h1, .unlock-panel h1 { font-size: 42px; }
  .grid-2, .grid-1-2 { grid-template-columns: 1fr; }
  .result-card { padding: 40px 24px; border-radius: 28px; }
  .overview-preview { flex-direction: column; text-align: center; }
  .summary-card { flex-direction: column; text-align: center; padding: 28px 24px; }
  .score-circle { width: 60px; height: 60px; }
  .score-row { gap: 4px; }
  .bar-label { width: 44px; font-size: 12px; }
  .r-mini-card { padding: 24px; }
  .lucky-grid { grid-template-columns: repeat(2, 1fr); }
  .advice-item { padding: 16px; flex-direction: column; gap: 12px; }
  .advice-dot { margin-top: 0; }
  .loading-card, .unlock-panel { padding: 40px 24px; }
  .toast-root { right: 14px; bottom: 14px; left: 14px; }
  .toast { max-width: none; }
  .hero-action-row .hero-btn, .hero-action-row .secondary-btn, .cta-actions .cta-btn, .cta-actions .secondary-btn { width: 100%; flex: 1 1 100%; }
  .result-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-toolbar .hero-btn, .result-toolbar .secondary-btn { min-width: 0; width: 100%; padding: 12px 10px; }
}
