:root {
    --bg-main: #0b1120;
    --bg-card: #1e293b;
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.15);
    --poster-grad: linear-gradient(160deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-main); color: #f1f5f9; display: flex; justify-content: center; min-height: 100vh; padding: 20px 16px; }
.shell { width: 100%; max-width: 440px; display: flex; flex-direction: column; }
.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.top-nav a { color: #94a3b8; text-decoration: none; font-weight: 700; }
.collection-pill { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-weight: 800; font-size: 12px; }

.card { background: var(--bg-card); border: 1px solid #334155; border-radius: 20px; padding: 24px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.25); margin-bottom: 16px; }
h1 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.sub { font-size: 13px; color: #94a3b8; margin-bottom: 18px; line-height: 1.5; }

/* 雙模式切換按鈕（例如：暖心燉湯 vs 清醒毒雞湯） */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; background: #0f172a; padding: 4px; border-radius: 12px; margin-bottom: 16px; border: 1px solid #334155; }
.mode-btn { padding: 8px; border: none; background: transparent; color: #94a3b8; font-size: 13px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.mode-btn.active { background: var(--accent); color: #0f172a; }

.draw-stage { padding: 28px 16px; border: 1px dashed #475569; border-radius: 16px; margin-bottom: 16px; background: rgba(15, 23, 42, 0.5); }
.btn-action { width: 100%; padding: 15px; background: var(--accent); color: #0f172a; border: none; border-radius: 12px; font-size: 16px; font-weight: 900; cursor: pointer; }
.btn-action:active { transform: scale(0.98); }

/* 結果海報（截圖區） */
.poster { background: var(--poster-grad); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 26px 20px; text-align: left; }
.poster-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 10px; margin-bottom: 16px; }
.poster-badge { font-size: 12px; font-weight: 800; color: var(--accent); border: 1px solid var(--accent); padding: 2px 10px; border-radius: 6px; }
.poster-date { font-size: 12px; color: #cbd5e1; font-family: monospace; }
.poster-title { font-size: 23px; font-weight: 900; color: #fff; margin-bottom: 12px; line-height: 1.35; }
.poster-desc { font-size: 14px; color: #e2e8f0; line-height: 1.7; margin-bottom: 16px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(0,0,0,0.28); padding: 12px; border-radius: 12px; margin-bottom: 14px; }
.meta-box span { display: block; font-size: 11px; color: var(--accent); font-weight: 800; margin-bottom: 2px; }
.meta-box strong { font-size: 13px; color: #f8fafc; }
.poster-foot { font-size: 11px; color: #cbd5e1; opacity: 0.75; display: flex; justify-content: space-between; }

/* 30 格盲盒圖鑑牆 */
.dex-card { background: var(--bg-card); border: 1px solid #334155; border-radius: 16px; padding: 18px; text-align: left; margin-bottom: 16px; }
.dex-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; font-weight: 800; }
.dex-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.dex-slot { aspect-ratio: 1; border-radius: 6px; background: #0f172a; border: 1px solid #334155; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #475569; font-weight: 700; }
.dex-slot.unlocked { background: var(--accent); color: #0f172a; border-color: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }

/* 呼吸與雨聲迷你工具條 */
.relax-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.btn-mini { padding: 12px; border-radius: 12px; border: 1px solid #475569; background: #0f172a; color: #e2e8f0; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-mini.active { background: #0284c7; border-color: #38bdf8; color: #fff; }
.hint { font-size: 12px; color: #94a3b8; margin-top: 10px; }
footer { text-align: center; margin-top: auto; padding-top: 20px; font-size: 12px; color: #64748b; }
footer a { color: #94a3b8; text-decoration: none; }
