/* --- THEME & DARK MODE VARIABLES --- */
:root {
    --theme-color-primary: #1976D2;
    --theme-color-title: #2196F3;
    --theme-color-summary-bg: #E3F2FD;
    --theme-color-summary-border: #2196F3;
    --theme-color-summary-text: #1565C0;

    --color-bg: #f3f4f6;
    --color-surface: #ffffff;
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-tertiary: #9ca3af;
    --color-border: #e5e7eb;
    --color-table-header-bg: #f8fafc;
    --color-table-row-odd-bg: transparent;

    --md-sys-color-primary: var(--theme-color-primary);
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: var(--theme-color-title);
    --md-sys-color-on-primary-container: #FFFFFF;
    --md-sys-color-secondary-container: var(--theme-color-summary-bg);
    --md-sys-color-on-secondary-container: var(--theme-color-summary-text);
    --md-sys-color-surface: var(--color-surface);
    --md-sys-color-on-surface: var(--color-text-primary);
    --md-sys-color-surface-variant: var(--color-table-header-bg);
    --md-sys-color-on-surface-variant: var(--color-text-secondary);
    --md-sys-color-outline: var(--color-border);

    /* 統一圓角設計系統 (Unified Border Radius System - 16px / rounded-2xl) */
    --radius-container: 16px;
    --radius-element: 16px;
    --radius-badge: 16px;
    --md-dialog-container-shape: 16px;
    --md-outlined-field-container-shape: 16px;
    --md-filled-button-container-shape: 16px;
    --md-outlined-button-container-shape: 16px;
    --md-text-button-container-shape: 16px;
    --md-elevated-button-container-shape: 16px;
    --md-tonal-button-container-shape: 16px;
}

html.dark {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-text-primary: #e2e8f0; 
    --color-text-secondary: #b0b8c4; 
    --color-text-tertiary: #586069;
    --color-border: #30363d;
    --color-table-header-bg: #1c2128;
    --color-table-row-odd-bg: transparent;

    --md-sys-color-primary: var(--theme-color-title);
    --md-sys-color-on-primary: #0d1117;
    --md-sys-color-primary-container: var(--theme-color-primary);
    --md-sys-color-on-primary-container: #FFFFFF;
    --md-sys-color-secondary-container: #21262d;
    --md-sys-color-on-secondary-container: var(--color-text-primary);
    --md-sys-color-surface-variant: var(--color-table-header-bg);
    --md-sys-color-surface-container: #1c2128;
    --md-sys-color-surface-container-highest: #30363d;
    --md-menu-container-color: #1c2128;
    --md-list-container-color: #1c2128;
}

/* 網頁底層：極致炫彩極光對比漸變背景 */
body { 
    font-family: 'Roboto', 'Noto Sans TC', sans-serif; 
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    color: var(--color-text-primary); 
    min-height: 100vh; 
    /* 使用色彩極其飽和、大跨度的霓虹極光漸層底色 */
    background: linear-gradient(135deg, #a5b4fc 0%, #fef08a 40%, #fbcfe8 75%, #99f6e4 100%);
    background-attachment: fixed;
    transition: background 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* 全域數字一律啟用 tabular-nums 等寬對齊 */
*, input, select, textarea, button {
    font-variant-numeric: tabular-nums;
}

/* 禁用長按圖片彈出原生系統選單，並防止選取 */
img {
    -webkit-touch-callout: none !important; /* 禁用 iOS Safari 圖片長按選單 */
    -webkit-user-select: none !important;   /* 禁用 iOS Safari 選取 */
    user-select: none !important;           /* 禁用標準選取 */
    pointer-events: none;                   /* 點擊穿透給父容器，避開 Android 原生彈窗 */
}

/* 慢速漂浮動畫：最大化減少 CPU 消耗，僅使用 transform 和 scale */
@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vw, 4vh) scale(1.15); }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5vw, -6vh) scale(1.12); }
}
@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-4vw, 5vh) scale(1.08); }
}

/* 極光氣泡 1：左上角（高飽和深靛藍） */
body::before {
    content: ''; position: fixed; top: -15%; left: -15%; width: 75vw; height: 75vw;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.55) 0%, rgba(67, 56, 202, 0) 70%);
    border-radius: 50%; z-index: -1; pointer-events: none;
    animation: floatOrb1 25s infinite ease-in-out;
}
/* 極光氣泡 2：右下角（高飽和艷麗玫瑰紅） */
body::after {
    content: ''; position: fixed; bottom: -20%; right: -15%; width: 85vw; height: 85vw;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45) 0%, rgba(225, 29, 72, 0) 70%);
    border-radius: 50%; z-index: -1; pointer-events: none;
    animation: floatOrb2 30s infinite ease-in-out;
}
/* 極光氣泡 3：中左側（鮮豔翡翠綠） */
html::before {
    content: ''; position: fixed; top: 25%; left: -20%; width: 65vw; height: 65vw;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, rgba(13, 148, 136, 0) 70%);
    border-radius: 50%; z-index: -1; pointer-events: none;
    animation: floatOrb3 22s infinite ease-in-out;
}

/* 深色模式底層：高飽和度迷幻霓虹夜色 */
html.dark body { 
    background: linear-gradient(135deg, #03001e 0%, #12002f 40%, #1c0024 75%, #001a1a 100%); 
}
html.dark body::before { 
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(139, 92, 246, 0) 75%); 
    animation-duration: 20s;
}
html.dark body::after { 
    background: radial-gradient(circle, rgba(244, 63, 94, 0.38) 0%, rgba(244, 63, 94, 0) 75%); 
    animation-duration: 25s;
}
html.dark html::before { 
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 75%); 
    animation-duration: 18s;
}

/* 主容器玻璃設定（調回最適透光度，強化模糊特效） */
.main-container { 
    background-color: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(32px); 
    -webkit-backdrop-filter: blur(32px); 
    border: 1px solid rgba(255, 255, 255, 0.85); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: background-color 0.3s, border-color 0.3s; 
}
html.dark .main-container { 
    background-color: rgba(22, 27, 34, 0.45); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
}

/* 匯總區塊玻璃設定 */
.summary-box { 
    background-color: rgba(227, 242, 253, 0.35); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(33, 150, 243, 0.35); 
    color: var(--theme-color-summary-text); 
    transition: all 0.3s ease; 
}
html.dark .summary-box { 
    background-color: rgba(33, 38, 45, 0.35); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
}

/* 紀錄卡片現代化毛玻璃質感 (Modern Glassmorphism) */
.record-card { 
    touch-action: pan-y; 
    position: relative; 
    z-index: 2; 
    transform: translateX(0); 
    will-change: transform; 
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-color: color-mix(in srgb, var(--platform-color, #3b82f6) 20%, rgba(255, 255, 255, 0.85));
    box-shadow: 
        0 8px 24px -4px var(--card-glow, rgba(0, 0, 0, 0.05)),
        0 2px 6px -1px rgba(0, 0, 0, 0.02),
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.record-card:hover {
    box-shadow: 
        0 12px 30px -4px var(--card-glow, rgba(0, 0, 0, 0.08)),
        0 4px 10px -2px rgba(0, 0, 0, 0.03),
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-color: color-mix(in srgb, var(--platform-color, #3b82f6) 34%, rgba(255, 255, 255, 0.95));
}
html.dark .record-card { 
    background: linear-gradient(135deg, rgba(28, 33, 42, 0.8) 0%, rgba(18, 22, 29, 0.68) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-color: color-mix(in srgb, var(--platform-color, #3b82f6) 24%, rgba(255, 255, 255, 0.12));
    box-shadow: 
        0 8px 28px -4px var(--card-glow, rgba(0, 0, 0, 0.5)),
        0 2px 6px -1px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
html.dark .record-card:hover {
    border-color: color-mix(in srgb, var(--platform-color, #3b82f6) 38%, rgba(255, 255, 255, 0.22));
    box-shadow: 
        0 12px 34px -4px var(--card-glow, rgba(0, 0, 0, 0.65)),
        0 4px 12px -2px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tabular-nums { font-variant-numeric: tabular-nums; }
.summary-divider::after { content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background-color: var(--theme-color-summary-border); opacity: 0.2; }
html.dark .summary-divider::after { background-color: rgba(255, 255, 255, 0.15); opacity: 0.8; }

#ritualProgressBar {
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

/* --- 滑動刪除與飛入動畫樣式 --- */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    will-change: opacity, transform;
}
.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-container { position: relative; overflow: hidden; border-radius: 1rem; transform: translateZ(0); }
.swipe-action-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 100px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; display: flex; align-items: center; justify-content: flex-end; padding-right: 1.25rem; font-weight: bold; border-radius: 1rem; z-index: 1; cursor: pointer; opacity: 0; transition: opacity 0.2s ease; box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25); }

.platform-title { cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }

.global-stats-table thead { background-color: var(--color-table-header-bg); color: var(--color-text-secondary); border-bottom: 1px solid var(--color-border); }
.global-stats-table tbody tr { border-bottom: 1px solid var(--color-border); transition: background-color 0.2s; }
.global-stats-table tbody tr:hover { background-color: var(--color-table-header-bg); }

.used { opacity: 0.8; }
.coupon-value { cursor: pointer; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); user-select: none; -webkit-user-select: none; }
.coupon-value.invalid { cursor: default; }
.coupon-value:not(.invalid):hover { transform: translateY(-1.5px); }
.coupon-value:not(.invalid):active { transform: scale(0.97); }

/* Monospaced 數字字體與 tabular-nums 嚴格對齊專用樣式 */
.font-mono-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
}

/* 計算機結果表格：固定寬度與嚴格對齊 */
.calc-table {
    table-layout: fixed !important;
    width: 100% !important;
}


.chart-container { position: relative; height: 300px; width: 100%; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }
md-outlined-select, md-outlined-text-field { 
    width: 100%; 
    min-width: 0; 
    --md-outlined-field-input-text-size: 11px;
    --md-outlined-field-label-text-size: 10px;
    --md-outlined-field-top-space: 6px;
    --md-outlined-field-bottom-space: 6px;
    --md-outlined-field-container-height: 44px;
    --md-outlined-select-text-size: 11px;
    --md-outlined-select-text-field-input-text-size: 11px;
    --md-outlined-select-text-field-label-text-size: 10px;
    --md-outlined-select-text-field-container-height: 44px;
    --md-outlined-field-container-shape: 16px;
    --md-menu-item-label-text-size: 11px;
    font-size: 11px;
}
md-outlined-select, md-outlined-select * {
    font-size: 11px;
}
md-outlined-select::part(menu) {
    --md-menu-item-label-text-size: 11px;
}
md-select-option { 
    --md-menu-item-one-line-container-height: 26px; 
    --md-menu-item-label-text-size: 11px; 
    white-space: nowrap; 
    font-size: 11px !important;
}
md-select-option, md-select-option * {
    font-size: 11px !important;
}
md-select-option::part(headline),
md-select-option::part(label-text),
md-select-option::part(supporting-text) { 
    font-size: 11px !important;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
input, select, textarea {
    font-size: 11px;
}
md-dialog { 
    --md-dialog-container-color: var(--color-surface); 
    --md-dialog-container-shape: 16px;
}
#calculatorDialog {
    --md-dialog-container-max-width: 800px;
    --md-dialog-container-max-height: 90vh;
    --md-dialog-container-min-height: min(650px, 85vh);
    width: 95vw;
    max-width: 800px;
}
#calculatorDialogForm {
    min-height: min(420px, 60vh);
}
.in-dialog-toast {
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.platform-color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.theme-dot { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.theme-dot.selected { border-color: var(--theme-color-primary); transform: scale(1.1); }
md-filled-tonal-button .material-symbols-outlined, md-filled-button .material-symbols-outlined { line-height: 0.7; }

/* 面額按鈕與輸入槽高對比度及大字體樣式 */
.val-btn {
    font-size: 1.25rem !important; /* 20px */
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    min-height: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
@media (min-width: 640px) {
    .val-btn {
        font-size: 1.45rem !important; /* 23px */
        height: 52px;
        min-height: 52px;
    }
}
.coupon-slot {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
}
@media (min-width: 640px) {
    .coupon-slot {
        font-size: 1.5rem !important;
    }
}

.skeleton-loader { background-color: var(--color-border); border-radius: 16px; animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.global-stats-table tbody tr { background-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.global-stats-table th.sticky-col { position: sticky; left: 0; background-color: var(--color-table-header-bg); z-index: 20; box-shadow: 1px 0 0 var(--color-border); }
.global-stats-table td.sticky-col { position: sticky; left: 0; background-color: var(--color-surface); z-index: 10; box-shadow: 1px 0 0 var(--color-border); font-weight: 700; }
html.dark .global-stats-table td.sticky-col { background-color: var(--color-table-header-bg); }

#toast-container { z-index: 100000; }
.app-toast { pointer-events: auto; animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2); }
.app-toast.fade-out { animation: toastFadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes toastSlideIn { from { transform: translateY(-150%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastFadeOut { to { transform: translateY(-150%); opacity: 0; } }

.platform-chip { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

/* --- CDN 斷線或未定義時之防護樣式 (Fallback) --- */
/* 防止未升級之 md-dialog 在頁面平鋪展開 */
md-dialog:not([open]) {
    display: none !important;
}

/* md-dialog 於 Material Web CDN 載入失敗時的降級彈窗呈現 */
md-dialog:not(:defined)[open] {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    background: var(--color-surface, #ffffff) !important;
    color: var(--color-text-primary, #111827) !important;
    border: 1px solid var(--color-border, #e5e7eb) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    width: 92vw !important;
    max-width: 600px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
    flex-direction: column !important;
}

/* 新增抽獎紀錄彈出面板動畫 */
#recordPanel:not(.hidden) {
    animation: fadeInRecordModal 0.2s ease-out forwards;
}
#recordPanel:not(.hidden) > div {
    animation: slideUpRecordModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInRecordModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUpRecordModal {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 核心佈局備用類別 (防止 Tailwind CDN 斷線時頁面結構完全破裂) */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.w-full { width: 100%; }

/* 券狀態切換微動畫 (scale 0.95 -> 1) */
@keyframes couponScaleMicro {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
.coupon-micro-anim {
    animation: couponScaleMicro 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

/* 長按標記已用之環形進度條視覺 */
.press-ring-svg {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
.press-ring-svg.active {
    opacity: 1;
}
.press-ring-bg {
    stroke: rgba(0, 0, 0, 0.1);
}
html.dark .press-ring-bg {
    stroke: rgba(255, 255, 255, 0.15);
}
.press-ring-progress {
    stroke-dasharray: 157.08;
    stroke-dashoffset: 157.08;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
.press-ring-svg.animating .press-ring-progress {
    transition: stroke-dashoffset 800ms linear;
    stroke-dashoffset: 0 !important;
}

/* 觸控目標最低 44x44px 規範保證 */
.touch-min-44 {
    min-width: 44px;
    min-height: 44px;
}



/* --- 右下角懸浮按鈕組 (FAB) 定位 ---
   整體較原本上移（手機 24px→40px、桌機 32px→56px），並補上 iOS 底部安全區域，
   避免在 iPhone 上被 Home Indicator 遮住。 */
#fabContainer {
  right: 1.25rem;
  bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  #fabContainer {
    right: 2rem;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* --- 當周消費券全部用完的慶祝特效 ---
   刻意不攔截點擊（pointer-events: none），讓使用者可以繼續操作，卡片會自動淡出。 */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0) 62%);
  animation: celebration-fade-in 0.28s ease-out;
}

.celebration-overlay.celebration-leave {
  animation: celebration-fade-out 0.4s ease-in forwards;
}

.celebration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 22px 28px;
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.45);
  animation: celebration-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .celebration-card {
  background: rgba(28, 33, 40, 0.97);
  border-color: rgba(245, 158, 11, 0.5);
}

.celebration-emoji {
  font-size: 44px;
  line-height: 1;
  animation: celebration-bounce 1.1s ease-in-out infinite;
}

.celebration-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--theme-color-primary);
}

.celebration-sub {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.celebration-sub-light {
  color: #94a3b8;
}

.dark .celebration-sub {
  color: #cbd5e1;
}

.dark .celebration-sub-light {
  color: #94a3b8;
}

@keyframes celebration-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes celebration-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes celebration-pop {
  from { transform: scale(0.82); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes celebration-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-card,
  .celebration-emoji,
  .celebration-overlay { animation: none; }
}
