/* ===== Wine Deal Hunter — 酒庄调性专业主题 ===== */
/* Design: 深酒红 × 暗金 / Cormorant Garamond + Inter */
/* Mobile-first / SVG icons / 44px touch targets */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Design Tokens ===== */
:root {
    /* 酒庄主色 */
    --wine-900: #1a0a0e;
    --wine-800: #2d1018;
    --wine-700: #451a25;
    --wine-600: #6b2738;
    --wine-500: #8b3a4a;
    --wine-400: #a85d6b;
    --wine-300: #c4868f;
    --wine-200: #dbb0b5;
    --wine-100: #f0d8db;

    /* 暗金点缀 */
    --gold-500: #c9a55c;
    --gold-400: #d4b574;
    --gold-300: #dfca97;
    --gold-200: #ebe0be;
    --gold-100: #f5eed9;

    /* 背景层 */
    --bg-base: #0f0a0b;
    --bg-surface: #171112;
    --bg-elevated: #1e1617;
    --bg-overlay: rgba(26, 10, 14, 0.92);

    /* 文本 */
    --text-primary: #f2e8ea;
    --text-secondary: #a89194;
    --text-muted: #6b5559;
    --text-inverse: #0f0a0b;

    /* 功能色 */
    --success: #4ade80;
    --success-dim: rgba(74, 222, 128, 0.12);
    --warning: #facc15;
    --warning-dim: rgba(250, 204, 21, 0.12);
    --danger: #f87171;
    --danger-dim: rgba(248, 113, 113, 0.12);
    --info: #60a5fa;
    --info-dim: rgba(96, 165, 250, 0.12);

    /* 边框 & 分割 */
    --border: rgba(200, 165, 92, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(200, 165, 92, 0.2);

    /* 间距 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(200, 165, 92, 0.08);

    /* 过渡 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 侧边栏 */
    --sidebar-w: 260px;

    /* Z-index scale */
    --z-base: 0;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-overlay: 30;
    --z-modal: 40;
    --z-toast: 50;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: var(--z-sticky);
    transition: transform var(--transition-base);
}

.sidebar-header {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo svg {
    width: 28px;
    height: 28px;
    color: var(--gold-500);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-500);
    letter-spacing: 0.03em;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.nav-menu {
    list-style: none;
    padding: var(--space-md) var(--space-sm);
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    min-height: 44px;
    /* 44px 触控目标 */
    user-select: none;
    position: relative;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-item:hover svg {
    opacity: 1;
}

.nav-item.active {
    background: rgba(200, 165, 92, 0.08);
    color: var(--gold-400);
}

.nav-item.active svg {
    color: var(--gold-500);
    opacity: 1;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--gold-500);
    border-radius: 0 2px 2px 0;
}

/* 扫描状态栏 */
.sidebar-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}

.scan-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 4px var(--success);
    flex-shrink: 0;
}

.scan-dot.active {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

/* ===== 主内容 ===== */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: var(--space-xl) var(--space-2xl);
    min-height: 100vh;
}

/* ===== 页面切换 ===== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageIn var(--transition-slow) ease;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 页头 ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.75rem;
    line-height: 1.2;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    white-space: nowrap;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wine-600), var(--wine-700));
    color: var(--gold-200);
    border: 1px solid var(--wine-500);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--wine-500), var(--wine-600));
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-accent);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
}

.btn-icon-only {
    width: 44px;
    padding: 0;
}

/* ===== 统计卡片 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--border-accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stat-value.gold {
    color: var(--gold-500);
}

.stat-value.success {
    color: var(--success);
}

/* ===== 扫描状态面板 ===== */
.scan-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    display: none;
}

.scan-panel.active {
    display: block;
}

.scan-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.scan-panel-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold-400);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.scan-panel-title svg {
    width: 18px;
    height: 18px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scan-progress {
    padding: var(--space-md) var(--space-lg);
}

.progress-bar-track {
    width: 100%;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--wine-500));
    border-radius: 2px;
    transition: width var(--transition-base);
    width: 0%;
}

.scan-stats {
    display: flex;
    gap: var(--space-xl);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.scan-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scan-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.scan-log {
    max-height: 180px;
    overflow-y: auto;
    padding: 0 var(--space-lg) var(--space-md);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.scan-log-entry {
    padding: 2px 0;
}

.scan-log-entry.found {
    color: var(--success);
}

.scan-log-entry.error {
    color: var(--danger);
}

.scan-log-entry.info {
    color: var(--text-secondary);
}

/* ===== Section ===== */
.section-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* ===== 机会卡片 ===== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.deal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.deal-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.deal-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--space-md);
}

.deal-info {
    flex: 1;
    min-width: 0;
}

.deal-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.deal-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.deal-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.deal-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.deal-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.deal-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-profit {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.badge-profit.hot {
    background: rgba(250, 204, 21, 0.12);
    color: var(--warning);
    border-color: rgba(250, 204, 21, 0.15);
}

.badge-profit.fire {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.15);
}

.badge-region {
    background: rgba(200, 165, 92, 0.08);
    color: var(--gold-400);
    border: 1px solid rgba(200, 165, 92, 0.12);
}

.badge-score {
    background: var(--info-dim);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.deal-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.deal-profit {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--success);
    line-height: 1;
}

.deal-profit.hot {
    color: var(--warning);
}

.deal-profit.fire {
    color: var(--danger);
}

/* ===== 搜索区 ===== */
.search-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.search-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: stretch;
}

.input {
    flex: 1;
    min-width: 200px;
    padding: 0.625rem var(--space-md);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
    min-height: 44px;
}

.input:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 165, 92, 0.1);
}

.input::placeholder {
    color: var(--text-muted);
}

.select {
    padding: 0.625rem var(--space-md);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    min-height: 44px;
    cursor: pointer;
}

.select:focus {
    outline: none;
    border-color: var(--gold-500);
}

/* ===== 搜索结果 ===== */
.result-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-value {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}

.result-value.positive {
    color: var(--success);
}

.result-value.negative {
    color: var(--danger);
}

/* ===== 酒单网格 ===== */
.wine-group {
    margin-bottom: var(--space-xl);
}

.wine-group-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
    border-left: 2px solid var(--gold-500);
    color: var(--gold-400);
}

.wine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
}

.wine-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
}

.wine-chip:hover {
    border-color: var(--border-accent);
    background: var(--bg-overlay);
}

.wine-chip svg {
    width: 18px;
    height: 18px;
    color: var(--wine-400);
    flex-shrink: 0;
}

.wine-chip-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wine-chip-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wine-chip-region {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== 日志 ===== */
.log-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.log-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.log-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.log-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.log-dot.empty {
    background: var(--text-muted);
}

.log-time {
    font-weight: 600;
    font-size: 0.875rem;
}

.log-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.log-right {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.log-metric strong {
    color: var(--text-primary);
}

/* ===== Watchlist form ===== */
.watchlist-form {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: none;
}

.watchlist-form.show {
    display: block;
}

/* ===== 空态 ===== */
.empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    color: var(--text-muted);
}

.empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.3;
    color: var(--wine-400);
}

.empty p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.empty .hint {
    font-size: 0.8125rem;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(80px);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: var(--z-toast);
    max-width: 360px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.info {
    border-left: 3px solid var(--gold-500);
}

/* ===== Loading ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
    gap: var(--space-sm);
    font-size: 0.875rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    z-index: var(--z-sticky);
    padding: 6px 0;
    padding-bottom: env(safe-area-inset-bottom, 6px);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    min-width: 56px;
    min-height: 44px;
    justify-content: center;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-item.active {
    color: var(--gold-500);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main {
        margin-left: 0;
        padding: var(--space-lg) var(--space-md);
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-nav {
        display: block;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md);
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.35rem;
    }

    .deal-row {
        flex-direction: column;
    }

    .deal-right {
        flex-direction: row;
        align-items: center;
    }

    .deal-profit {
        font-size: 1.3rem;
    }

    .search-row {
        flex-direction: column;
    }

    .input {
        min-width: unset;
    }

    .wine-grid {
        grid-template-columns: 1fr;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scan-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .log-entry {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 375px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}