:root {
    /* Vibrant premium palette - sunset aurora */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --accent-pink: #EC4899;
    --accent-orange: #F97316;
    --accent-cyan: #06B6D4;
    --accent-purple: #A855F7;
    --accent-lime: #84CC16;

    --bg-dark: #0F0D15;
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --success: #10B981;
    --error: #EF4444;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 【新增】禁用全局文本选中，让页面像一个真正的 App */
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* 【新增】全局默认光标为常规箭头 */
    cursor: default;
}

/* 【新增】仅允许输入框可以被点击选中和显示文本光标 */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

/* Animated gradient background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 10%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        var(--bg-dark);
}

/* ================= 像素风背景动画组件 ================= */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 1. 像素雪花 (保持边缘锐利的方块) */
.pixel-snow {
    position: absolute;
    background: #ffffff;
    animation: pixelFall linear infinite;
    /* 核心：关闭模糊抗锯齿，保持像素边缘的绝对锐利 */
    image-rendering: pixelated;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

@keyframes pixelFall {
    0% { transform: translateY(-20px) translateX(0px); opacity: 0; }
    10% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { transform: translateY(100vh) translateX(40px); opacity: 0; }
}

/* 2. 像素云朵 (利用 box-shadow 拼出的块状云朵) */
.pixel-cloud {
    position: absolute;
    width: 20px;
    height: 20px;
    /* 主体像素块 */
    background: rgba(255, 255, 255, 0.04);
    /* 利用阴影在四周画出像素云的形状 */
    box-shadow:
        20px 0 0 rgba(255, 255, 255, 0.04),
        40px 0 0 rgba(255, 255, 255, 0.04),
        60px 0 0 rgba(255, 255, 255, 0.04),
        10px -20px 0 rgba(255, 255, 255, 0.04),
        30px -20px 0 rgba(255, 255, 255, 0.04),
        50px -20px 0 rgba(255, 255, 255, 0.04),
        20px -40px 0 rgba(255, 255, 255, 0.04),
        40px -40px 0 rgba(255, 255, 255, 0.04);
    animation: cloudDrift linear infinite;
}

@keyframes cloudDrift {
    from { transform: translateX(-200px); }
    to { transform: translateX(100vw); }
}

/* Glassmorphism card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* Auth Page */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.auth-box {
    width: 100%;
    max-width: 800px;
    min-height: 500px;
    padding: 0;
    display: flex;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-box .character-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    position: relative;
    overflow: hidden;
}

.auth-box .character-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-box .form-side {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Character animation */
.character-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.character-svg {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: characterFloat 4s ease-in-out infinite;
}

@keyframes characterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.character-svg .pupil {
    transition: transform 0.05s linear;
}

.character-svg .flipper {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.password-focused .p1-l { transform: translate(26px, -30px); }
.password-focused .p1-r { transform: translate(-26px, -30px); }
.password-focused .p2-l { transform: translate(26px, -30px); }
.password-focused .p2-r { transform: translate(-26px, -30px); }
.password-focused .p3-l { transform: translate(26px, -30px); }
.password-focused .p3-r { transform: translate(-26px, -30px); }

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo h1 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0891B2 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #DC2626 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-small {
    padding: 12px 20px;
    font-size: 14px;
    width: auto;
}

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

.btn-ghost:hover {
    background: var(--bg-card);
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.auth-switch {
    text-align: center;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a {
    color: var(--primary-light);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: var(--accent-pink);
}

.error-msg {
    color: var(--error);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Main Dashboard */
.dashboard-view {
    min-height: 100vh;
    padding-bottom: 40px;
}

.app-header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 13, 21, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    font-family: inherit;
}

.logout-btn:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 17px;
}

/* ================= Room Cards (稳定纯净的暗场发光版) ================= */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.room-card {
    padding: 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* 使用极其稳定的匀速缓动，杜绝闪烁和抽搐 */
    transition: all 0.4s ease;
    transform-origin: center center;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink), var(--accent-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 1. 当鼠标进入大厅区域时：其他所有卡片微微缩小、压暗并加上轻微的模糊（纯 CSS 控制，不会引起 Vue 重绘 Bug） */
.rooms-grid:hover .room-card {
    transform: scale(0.96);
    opacity: 0.7;
    filter: brightness(0.8) blur(1px);
}

/* 2. 鼠标精准悬停的目标卡片：放大、浮起、清除模糊，并散发霓虹光晕 */
.rooms-grid .room-card:hover {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
    filter: brightness(1.1) blur(0px); /* 提亮并保持清晰 */
    background: var(--bg-card-hover);
    z-index: 20;

    /* 深邃底影 + 极细发光边框 + 主题色弥散光晕 */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--primary-light),
        0 15px 35px rgba(99, 102, 241, 0.35);
}

.rooms-grid .room-card:hover::before {
    opacity: 1;
}

/* 卡片内部图标与文字样式保持不变 */
.room-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.room-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.room-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.room-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 500;
    font-size: 14px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.join-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Room View */
.room-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.room-header {
    padding: 20px 32px;
    background: rgba(15, 13, 21, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.room-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.room-icon {
    font-size: 36px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.room-details h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.room-details p {
    color: var(--text-secondary);
    font-size: 14px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 14px;
}

.back-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.room-main {
    flex: 1;
    display: flex;
    padding: 48px 32px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ================= 纯净且高级的 SVG 番茄钟 ================= */
.timer-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-display {
    position: relative;
    width: 360px;
    height: 360px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 核心：拒绝任何形式的弹性挤压变形 */
    flex-shrink: 0;
}

/* 霓虹圆环容器 */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    /* 逆时针旋转 90 度，让起点落在 12 点钟正上方 */
    transform: rotate(-90deg);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4));
}

.ring-bg {
    fill: rgba(20, 20, 30, 0.75);
    stroke: var(--glass-border);
    stroke-width: 12;
}

.ring-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round; /* 圆润的线头 */
    /* 给进度条填充增加平滑的过渡动画 */
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 15px var(--primary-light));
}

/* 中心时间的沉浸式排版 */
.timer-text-container {
    position: relative;
    z-index: 5;
    text-align: center;
}

.timer-time {
    font-size: 80px;
    font-weight: 800;
    font-variant-numeric: tabular-nums; /* 数字等宽对齐，跳动时不抖动 */
    color: #ffffff;
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.3s ease;
}

/* 专注时的呼吸光晕效果 */
.timer-time.glow {
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 60px rgba(168, 85, 247, 0.5);
    animation: textBreathe 2s ease-in-out infinite;
}

@keyframes textBreathe {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.timer-label {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ================= 企鹅光轨跑道 ================= */
.penguin-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    transition: transform 1s linear;
}

/* 坐在圆环正上方的企鹅 */
.penguin-wrapper {
    position: absolute;
    /* 360(宽高) - 166(半径)*2 = 28。因此圆圈顶部离外框有 14px。
       企鹅高 40px，14 - 20(一半) = -6px，完美居中踩在发光线上！ */
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    will-change: transform;
}

/* 跑步状态：启动物理引擎 */
.penguin-wrapper.is-running .running-penguin {
    animation: penguinRun 0.4s steps(2) infinite;
}
.penguin-wrapper.is-running .foot-left {
    animation: footRunLeft 0.4s steps(2) infinite;
}
.penguin-wrapper.is-running .foot-right {
    animation: footRunRight 0.4s steps(2) infinite;
}

@keyframes penguinRun {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); } /* 夸张的上下颠簸感 */
}
@keyframes footRunLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
@keyframes footRunRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}

.timer-presets {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.preset-btn {
    padding: 14px 28px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.preset-btn:hover, .preset-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.custom-time {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}

.custom-time input {
    width: 70px;
    padding: 14px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    font-family: inherit;
}

.custom-time input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.custom-time span {
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 600;
}

.timer-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.timer-controls .btn {
    min-width: 140px;
}

/* ================= 待办事项 Vue 过渡动画 ================= */
.todo-anim-enter-active,
.todo-anim-leave-active {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.todo-anim-enter-from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
}
.todo-anim-leave-to {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
}
.todo-anim-leave-active {
    position: absolute; /* 让删除元素脱离文档流，后续元素能平滑顶上 */
}

/* Todo Sidebar */
.todo-sidebar {
    width: 380px;
    padding: 28px;
    height: fit-content;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.todo-header {
    margin-bottom: 24px;
}

.todo-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.todo-input-group input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
}

.todo-input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.todo-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.todo-list::-webkit-scrollbar {
    width: 4px;
}

.todo-list::-webkit-scrollbar-track {
    background: transparent;
}

.todo-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    background: var(--bg-card);
    transition: all 0.3s;
}

.todo-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.todo-item.completed {
    opacity: 0.5;
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-light);
    border-radius: 6px;
    margin-right: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.todo-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
    color: var(--text-primary);
}

.todo-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.todo-item.completed .todo-content {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-delete {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    padding: 4px;
    filter: grayscale(1);
}

.todo-item:hover .todo-delete {
    opacity: 1;
    filter: grayscale(0);
}

.todo-delete:hover {
    transform: scale(1.2);
}

.empty-todo {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--glass-border);
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .room-main {
        flex-direction: column;
        align-items: center;
    }

    .todo-sidebar {
        width: 100%;
        max-width: 500px;
        max-height: none;
    }

    .timer-circle-outer {
        width: 320px;
        height: 320px;
    }

    .timer-circle-inner {
        width: 270px;
        height: 270px;
    }

    .timer-time {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .auth-box {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .character-side {
        padding: 32px;
        min-height: 200px;
    }

    .character-container {
        width: 120px;
    }

    .form-side {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .auth-box {
        padding: 0;
    }

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

    .room-header-content {
        flex-direction: column;
        gap: 16px;
    }

    .timer-presets {
        gap: 8px;
    }

    .preset-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }
}

/* Entrance animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Divider & Guest Badge */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}
.divider span {
    padding: 0 15px;
    font-size: 13px;
}

.guest-badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Page Transition Animation */
.page-fade-enter-active,
.page-fade-leave-active {
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-fade-enter-from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
}
.page-fade-leave-to {
    opacity: 0;
    transform: scale(1.02) translateY(-20px);
}
