/* ============================================
   龙虾池 (LobsterPool) — 全局样式
   深色主题 | 玻璃态设计 | 龙虾红+金色强调
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============ CSS变量 ============ */
:root {
    /* 主色系 — 深黑底色，匹配 LOGO 的纯黑背景 */
    --bg-primary: #050507;
    --bg-secondary: #0c0a0e;
    --bg-card: rgba(18, 10, 12, 0.88);
    --bg-card-hover: rgba(30, 14, 18, 0.95);
    --bg-glass: rgba(255, 30, 30, 0.03);
    --bg-glass-border: rgba(200, 40, 40, 0.1);

    /* 火焰红 — LOGO 主色调 */
    --lobster-red: #d41920;
    --lobster-red-light: #f03030;
    --lobster-red-dark: #9a0e12;
    --lobster-red-glow: rgba(212, 25, 32, 0.35);

    /* 暖金色 — LOGO 边框光晕 */
    --gold: #c8943a;
    --gold-light: #e0b050;
    --gold-dark: #8a6420;
    --gold-glow: rgba(200, 148, 58, 0.25);

    /* 文字 */
    --text-primary: #f2ece8;
    --text-secondary: #9a8e88;
    --text-muted: #584e48;
    --text-accent: var(--lobster-red-light);

    /* 成功/警告/错误 */
    --success: #3fb950;
    --warning: #d29922;
    --error: #f04848;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--lobster-red-dark) 0%, var(--lobster-red) 40%, var(--gold) 100%);
    --gradient-bg: radial-gradient(ellipse at top, rgba(212, 25, 32, 0.1) 0%, transparent 55%);
    --gradient-card: linear-gradient(135deg, rgba(212, 25, 32, 0.06) 0%, rgba(200, 148, 58, 0.03) 100%);

    /* 间距 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 阴影 */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 59, 59, 0.15);

    /* 字体 */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============ Reset ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--lobster-red-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold);
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 8, 15, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-brand .logo-icon {
    font-size: 1.6rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.navbar-nav a.active {
    color: var(--lobster-red-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 连接钱包按钮 */
.btn-connect {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    box-shadow: 0 2px 12px var(--lobster-red-glow);
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--lobster-red-glow);
}

.btn-connect.connected {
    background: var(--bg-card);
    border: 1px solid var(--success);
    color: var(--success);
    box-shadow: none;
}

/* ============ 代币余额展示 ============ */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
    margin-right: 8px;
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.balance-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
}

.balance-symbol {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============ 龙虾钳份额可视化展示 ============ */
.share-visual {
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
}

.share-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.share-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.share-percent {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--gold);
    font-size: 1rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lobster-red) 0%, var(--gold) 100%);
    box-shadow: 0 0 10px var(--lobster-red-glow);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ 社交媒体悬浮按钮 ============ */
.social-links-float {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.social-item svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-item:hover {
    transform: scale(1.1) translateY(-4px);
    border-color: var(--lobster-red);
    box-shadow: 0 8px 24px rgba(212, 25, 32, 0.2);
}

.social-item:hover svg {
    fill: var(--text-primary);
}

.social-item.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-item.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

/* ============ 主页面布局 ============ */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 88px;
    padding-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============ 卡片样式 ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 59, 59, 0.15);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-glass-border);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: rgba(255, 59, 59, 0.15);
    color: var(--lobster-red-light);
}

/* ============ 倒计时模块 ============ */
.countdown-section {
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--lobster-red-glow);
    min-width: 90px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 59, 59, 0.06);
    border: 1px solid rgba(255, 59, 59, 0.12);
    position: relative;
    /* Re-apply gradient on top */
    background-image: var(--gradient-primary);
}

.countdown-unit-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 1.2rem;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ============ 轮次信息条 ============ */
.round-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.round-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.round-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.round-stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.round-stat-value.bnb::after {
    content: ' BNB';
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ 网格布局 ============ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ============ 购买面板 ============ */
.buy-panel {
    background: var(--gradient-card);
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: var(--lobster-red);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-amount-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.quick-amount-btn:hover {
    background: rgba(255, 59, 59, 0.1);
    border-color: var(--lobster-red);
    color: var(--text-primary);
}

.buy-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-glass-border);
}

.buy-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.buy-info-row strong {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.buy-info-row:first-child strong {
    color: var(--lobster-red-light);
}

/* 按钮通用 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--lobster-red-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--lobster-red-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(248, 81, 73, 0.15);
    color: var(--error);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.25);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: #000;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--gold-glow);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

/* ============ 个人信息面板 ============ */
.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-stat {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.player-stat-value {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.player-actions {
    display: flex;
    gap: 0.75rem;
}

.player-actions .btn {
    flex: 1;
}

/* ============ 排行榜 ============ */
.leaderboard {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard::-webkit-scrollbar {
    width: 4px;
}

.leaderboard::-webkit-scrollbar-track {
    background: transparent;
}

.leaderboard::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.leaderboard-item:hover {
    background: var(--bg-glass);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.leaderboard-rank.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.leaderboard-rank.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.leaderboard-rank.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.leaderboard-rank.rank-other {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.leaderboard-address {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-prize {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    text-align: right;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.empty-state .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* ============ 规则页面 ============ */
.rules-page {
    max-width: 800px;
    margin: 0 auto;
}

.rules-page h1 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.rule-section {
    margin-bottom: 2rem;
}

.rule-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lobster-red-light);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.rule-section p,
.rule-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.92rem;
}

.rule-section ul,
.rule-section ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.rule-section li {
    margin-bottom: 0.3rem;
}

.rule-highlight {
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.15);
    border-left: 3px solid var(--lobster-red);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-glass);
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    padding: 0 1.25rem 1rem;
    max-height: 200px;
}

/* ============ 发奖记录页面 ============ */
.prizes-page {
    max-width: 900px;
    margin: 0 auto;
}

.prizes-page h1 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prizes-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.prize-record {
    margin-bottom: 1.5rem;
}

.prize-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.prize-round-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: #fff;
}

.prize-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.prize-total {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--bg-glass-border);
}

td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

td.mono {
    font-family: var(--font-mono);
}

tr:hover td {
    background: var(--bg-glass);
}

/* ============ Toast 通知 ============ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ============ 加载动画 ============ */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-top-color: var(--lobster-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ 状态标签 ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
}

.status-badge.ended {
    background: rgba(248, 81, 73, 0.15);
    color: var(--error);
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============ 页脚 ============ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--bg-glass-border);
    margin-top: 2rem;
}

.footer a {
    color: var(--text-secondary);
}

/* ============ 粒子背景动画 ============ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--lobster-red);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s linear infinite;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

/* ============ 移动端响应式 ============ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(6, 8, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-glass-border);
    }

    .navbar-nav.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .countdown-value {
        font-size: 2.2rem;
        min-width: 60px;
    }

    .round-info-bar {
        gap: 1rem;
    }

    .player-stats {
        grid-template-columns: 1fr;
    }

    .player-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .countdown-value {
        font-size: 1.8rem;
        min-width: 50px;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}