:root {
    /* 主色调 — 404 页面风格 */
    --primary: #3c8dbc;
    --primary-light: #87c0ff;
    --primary-dark: #2a6d99;
    --accent: #ff6b6b;
    --accent-light: #ff8e8e;

    /* 文字 */
    --text: #e6f7ff;
    --text-light: #c8e6ff;
    --text-lighter: rgba(200, 230, 255, 0.7);
    --text-muted: rgba(200, 230, 255, 0.45);

    /* 背景 */
    --bg-dark: #0c0e1d;
    --bg-darker: #0a0c18;
    --bg-card: rgba(20, 25, 50, 0.7);
    --bg-glass: rgba(20, 25, 50, 0.55);
    --bg-input: rgba(20, 25, 50, 0.6);

    /* 效果 */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.2s ease;
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px rgba(96, 156, 230, 0.35);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(96, 156, 230, 0.35);
    --glass-highlight: 1px solid rgba(96, 156, 230, 0.5);
    --border-subtle: 1px solid rgba(96, 156, 230, 0.18);

    /* 尺寸 */
    --card-radius: 18px;
    --card-padding: 30px;
    --btn-radius: 12px;
    --btn-radius-sm: 8px;
    --btn-radius-pill: 50px;

    /* 间距/字号 */
    --space-xs: 4px;
    --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 36px; --space-2xl: 48px;
    --font-xs: 0.72rem; --font-sm: 0.85rem; --font-base: 1rem; --font-lg: 1.15rem; --font-xl: 1.5rem; --font-2xl: 2rem;

    /* 滚动条 */
    --scrollbar-width: 6px;
    --scrollbar-track: rgba(255, 255, 255, 0.03);
    --scrollbar-thumb: linear-gradient(135deg, var(--primary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--scrollbar-track);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    color: var(--text);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 300;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(60,141,188,0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.universe-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(106, 155, 216, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 157, 107, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 60%, rgba(154, 198, 255, 0.3) 0%, transparent 40%),
        linear-gradient(135deg, #1a2332 0%, #2a3445 100%);
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    color: white;
    font-size: var(--star-size, 16px);
    animation: twinkle var(--twinkle-duration, 5s) infinite ease-in-out;
    opacity: var(--star-opacity, 0.7);
    text-shadow: 0 0 5px currentColor;
    will-change: opacity;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--star-opacity, 0.7); }
    50% { opacity: calc(var(--star-opacity, 0.7) * 0.3); }
}

.audio-context-restore-btn {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    animation: pulse 2s infinite;
    display: none;
}

.audio-context-restore-btn button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.audio-context-restore-btn button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(1.16); }
    75% { transform: scale(1.08); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

@media (max-width: 768px) {
    .audio-context-restore-btn {
        bottom: 80px;
    }
    
    .audio-context-restore-btn button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.waveform-section-wrapper {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.waveform-container {
    width: 100%;
    height: 120px;
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
}

.waveform-container:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    .waveform-container {
        height: 100px;
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .waveform-container {
        height: 90px;
        margin: 25px 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

header {
    display: flex;
    flex-direction: column;
    padding: 35px 0 15px;
    position: relative;
    margin-bottom: 0;
    z-index: 10;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(154, 198, 255, 0.3) 25%, 
        rgba(255, 157, 107, 0.5) 50%, 
        rgba(154, 198, 255, 0.3) 75%, 
        transparent 100%);
}

@media (max-width: 768px) {
    header {
        padding: 20px 0 10px;
    }
}

.logo-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
    gap: 30px;
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

.logo-main-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0 5px;
    flex: 1;
}

@media (max-width: 768px) {
    .logo-main-container {
        align-items: center;
    }
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--primary-light);
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
    opacity: 0.9;
}

.logo-subtitle::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent);
    animation: starTwinkle 2s infinite;
}

@media (max-width: 768px) {
    .logo-subtitle {
        font-size: 0.8rem;
        padding-left: 18px;
    }
    
    .logo-subtitle::before {
        font-size: 0.7rem;
    }
}

.logo-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    line-height: 1;
    padding: 5px 0;
    margin-bottom: 8px;
}

.logo-main,
.section-header h2,
.modal-title,
.player-header h3 {
    background: linear-gradient(135deg, 
        #9ac6ff 0%, 
        #ffffff 30%, 
        #ff9d6b 70%, 
        #9ac6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(154, 198, 255, 0.4);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 25px rgba(154, 198, 255, 0.4); }
    100% { text-shadow: 0 0 35px rgba(154, 198, 255, 0.7), 0 0 45px rgba(255, 157, 107, 0.5); }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 2.4rem;
    }
}

.logo-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    padding-left: 20px;
    position: relative;
}

.logo-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: rgba(154, 198, 255, 0.6);
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    background: rgba(30, 40, 60, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 0;
    }
}

.nav-links {
    display: flex;
    gap: 10px;
    position: relative;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 40px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    min-width: 120px;
    text-align: center;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(154, 198, 255, 0.05);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

@media (max-width: 768px) {
    .nav-link {
        padding: 12px 20px;
        min-width: 90px;
        font-size: 0.95rem;
    }
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.section-wrapper {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(40, 50, 70, 0.1) 100%);
    z-index: -1;
}

.section-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

@media (max-width: 768px) {
    .section-wrapper {
        padding: 20px;
    }
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-header h2::before,
.section-header h2::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-light);
    opacity: 0.7;
    animation: starFloat 3s infinite ease-in-out;
}

.section-header h2::before {
    left: -15px;
}

.section-header h2::after {
    right: -15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

.gallery-container {
    position: relative;
    border-radius: calc(var(--card-radius) - 5px);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    height: 540px;
    background: rgba(26, 35, 50, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
}

@media (max-width: 768px) {
    .gallery-container {
        height: 350px;
    }
}

.photo-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--card-radius) - 10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
}

.gallery-photo:hover img {
    transform: scale(1.02);
}

.daily-photo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 5px 9px;
    border: 1px solid rgba(255, 157, 107, 0.3);
    border-radius: 999px;
    background: rgba(10, 16, 32, 0.74);
    color: #ffc2a6;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 25px;
    color: white;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: var(--glass-border);
}

.gallery-photo:hover .photo-info {
    opacity: 1;
}

.photo-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

@media (max-width: 768px) {
    .photo-info {
        padding: 14px;
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.18) 100%);
    }
    
    .photo-info h3 {
        font-size: 1.3rem;
    }
}

.interaction-buttons {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .interaction-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.interaction-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.interaction-btn.active {
    background: rgba(154, 198, 255, 0.2);
    border-color: var(--primary-light);
    color: white;
}

.interaction-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.daily-photo-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.primary-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    min-width: 220px;
    text-decoration: none;
}

.primary-action-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(154, 198, 255, 0.5);
}

@media (max-width: 768px) {
    .primary-action-button {
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .primary-action-button {
        padding: 12px 25px;
        min-width: 160px;
        font-size: 0.95rem;
    }
}

.photo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.photo-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.photo-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(154, 198, 255, 0.3);
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.photo-loading-text {
    color: var(--text-light);
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-content {
    max-width: 900px;
    margin: 0 auto;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 35px;
    text-align: center;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .game-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    transition: var(--transition);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(154, 198, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(154, 198, 255, 0.1);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: var(--glass-highlight);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(154, 198, 255, 0.5));
}

.feature-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
    width: 100%;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    width: 100%;
}

.game-controls {
    display: flex;
    justify-content: center;
}

.time-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .time-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .time-stats-grid {
        grid-template-columns: 1fr;
    }
}

.time-stat-card {
    background: rgba(30, 40, 60, 0.12);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.time-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(154, 198, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 157, 107, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.time-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow), 
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: var(--glass-highlight);
}

.time-stat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.time-stat-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    color: var(--primary-light);
}

.time-stat-title {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.time-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.time-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
    line-height: 1.2;
}

.time-stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 10px;
}

.time-stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(154, 198, 255, 0.6);
}

.time-stat-desc {
    font-size: 0.9rem;
    color: var(--text-lighter);
    opacity: 0.9;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: flex-end;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes starFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-50%) rotate(180deg); opacity: 1; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer p {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    background: linear-gradient(145deg, 
        rgba(18, 24, 38, 0.98) 0%,
        rgba(26, 35, 50, 0.95) 50%,
        rgba(18, 24, 38, 0.98) 100%);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-radius: var(--card-radius);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(154, 198, 255, 0.15);
    animation: modalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(40, 50, 70, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(154, 198, 255, 0.2);
    flex-shrink: 0;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 157, 107, 0.2);
    transform: rotate(90deg);
}

.game-modal-content {
    max-height: 90vh;
    height: auto;
}

.game-frame {
    width: 100%;
    flex: 1;
    border: none;
    background: var(--bg-darker);
    min-height: 80vh;
    height: 80vh;
    overflow: hidden;
}

.message-detail-modal-content {
    max-width: 900px;
    max-height: 92vh;
}

.about-content {
    padding: 30px;
    height: calc(100% - 70px);
    overflow-y: auto;
    color: var(--text);
    position: relative;
}

.about-section {
    margin-bottom: 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 25px;
    border: var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.4);
    position: relative;
    padding-bottom: 12px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(154, 198, 255, 0.3), transparent);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
    animation: pulse 2s infinite;
}

.intro-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.intro-text {
    flex: 1;
}

.intro-photo {
    flex-shrink: 0;
    width: 200px;
}

.intro-photo-frame {
    width: 100%;
    border-radius: calc(var(--card-radius) - 5px);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
    position: relative;
}

.intro-photo-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: calc(var(--card-radius) - 3px);
    z-index: -1;
    opacity: 0.5;
}

.intro-photo-frame:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(154, 198, 255, 0.4);
}

.intro-photo-frame img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.intro-photo-frame:hover img {
    transform: scale(1.05);
}

.skills-grid {
    display: grid;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    width: 90px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.skill-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(154, 198, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.interest-tag {
    background: rgba(154, 198, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interest-tag:hover {
    background: rgba(154, 198, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(154, 198, 255, 0.3);
    color: white;
}

.highlight-text {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.3);
    padding: 0 3px;
    position: relative;
}

.quote-text {
    font-style: italic;
    color: var(--text-light);
    padding: 15px;
    margin: 15px 0;
    position: relative;
    background: rgba(154, 198, 255, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: 5px;
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.timeline-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.message-detail-content {
    padding: 0;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.message-detail-header {
    padding: 35px 40px 20px;
    background: linear-gradient(135deg, 
        rgba(40, 50, 80, 0.4) 0%,
        rgba(30, 40, 60, 0.3) 100%);
    border-bottom: 1px solid rgba(154, 198, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.detail-author-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-author-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.detail-author-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-light);
    text-shadow: 0 0 15px rgba(154, 198, 255, 0.5);
}

.detail-type {
    display: inline-block;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(154, 198, 255, 0.15));
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(154, 198, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-top: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(154, 198, 255, 0.1);
}

.detail-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-lighter);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-detail-body {
    padding: 40px;
    position: relative;
    background: 
        radial-gradient(circle at 10% 20%, rgba(18, 24, 38, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(26, 35, 50, 0.6) 0%, transparent 40%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.detail-content {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-light);
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    border: 1px solid rgba(154, 198, 255, 0.1);
    position: relative;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    font-style: italic;
}

.message-detail-footer {
    padding: 30px 40px;
    background: rgba(30, 40, 60, 0.2);
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
}

.detail-stats {
    display: flex;
    gap: 36px;
}

.detail-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-stat-icon {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(154, 198, 255, 0.08);
    border-radius: 6px;
}

.message-detail-footer .stat-label {
    font-size: 0.78rem;
    color: rgba(216, 236, 247, 0.5);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.message-detail-footer .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f6ff;
    font-family: 'Montserrat', sans-serif;
    margin-left: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 0 12px rgba(154, 198, 255, 0.5);
}

.detail-like-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, 
        rgba(154, 198, 255, 0.2), 
        rgba(154, 198, 255, 0.1));
    border: 2px solid rgba(154, 198, 255, 0.4);
    border-radius: 50px;
    padding: 15px 35px;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detail-like-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, 
        rgba(154, 198, 255, 0.3), 
        rgba(154, 198, 255, 0.2));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(154, 198, 255, 0.4);
    color: white;
}

.detail-like-btn.liked {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.3), 
        rgba(255, 107, 107, 0.2));
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.5);
}

.detail-like-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.detail-back-btn {
    text-align: center;
    padding: 30px 40px 40px;
    background: linear-gradient(to bottom, transparent, rgba(18, 24, 38, 0.5));
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(154, 198, 255, 0.15);
    border: 2px solid rgba(154, 198, 255, 0.4);
    border-radius: 50px;
    padding: 14px 35px;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: rgba(154, 198, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: white;
}

.star-messages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .star-messages-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .star-messages-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -15px;
    }
}

.star-message-card {
    background: linear-gradient(145deg, 
        rgba(30, 40, 60, 0.4) 0%, 
        rgba(40, 50, 80, 0.3) 50%, 
        rgba(30, 40, 60, 0.4) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(154, 198, 255, 0.15);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(154, 198, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.6s ease-out;
    animation-fill-mode: backwards;
    user-select: none;
}

.star-message-card.daily {
    border-color: rgba(255, 157, 107, 0.36);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 157, 107, 0.16);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.star-message-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 30px rgba(154, 198, 255, 0.2);
    border: 1px solid rgba(154, 198, 255, 0.3);
}

.star-message-content {
    flex: 1;
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(154, 198, 255, 0.1);
    border-bottom: 1px solid rgba(154, 198, 255, 0.1);
}

.star-message-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    padding-left: 25px;
    position: relative;
}

.star-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(154, 198, 255, 0.2);
    position: relative;
}

.star-message-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.9rem;
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
}

.star-message-date {
    font-size: 0.85rem;
    color: var(--text-lighter);
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.1), rgba(255, 157, 107, 0.1));
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.star-message-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(255, 157, 107, 0.25));
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(154, 198, 255, 0.4);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.star-message-interactions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    justify-content: flex-end;
}

.star-message-like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.star-message-like-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 107, 107, 0.4);
}

.star-message-like-btn.liked {
    background: rgba(255, 107, 107, 0.25);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2);
    animation: heartbeat 0.5s ease;
}

.star-message-like-btn.liking {
    animation: pulse 0.6s infinite;
}

.star-message-like-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.star-message-like-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, rgba(154, 198, 255, 0.25), rgba(255, 157, 107, 0.25));
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(154, 198, 255, 0.5);
}

.star-messages-controls {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.star-messages-controls .primary-action-button {
    min-width: 0;
}

.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(154, 198, 255, 0.2);
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(154, 198, 255, 0.3);
}

.loading-text {
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
    font-weight: 600;
}

.no-messages {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
    background: 
        radial-gradient(circle at 50% 30%, rgba(154, 198, 255, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.no-messages-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(154, 198, 255, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(-10px) rotate(-5deg); }
}

/* ========================================
   MUSIC PLAYER
   ======================================== */

.mini-player {
    position: fixed;
    bottom: 24px;
    left: 24px;
    min-width: 190px;
    max-width: min(290px, calc(100vw - 32px));
    min-height: 58px;
    padding: 8px 12px 8px 8px;
    background: rgba(12, 18, 34, 0.88);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(154, 198, 255, 0.2);
    border-radius: 16px;
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
    color: var(--text);
    font: inherit;
    text-align: left;
}
.mini-player:hover {
    border-color: rgba(154, 198, 255, 0.38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}
.mini-player-art {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    background: linear-gradient(145deg, rgba(60, 141, 188, 0.35), rgba(255, 107, 107, 0.22));
    border: 1px solid rgba(154, 198, 255, 0.18);
}
.mini-player-icon { width: 18px; height: 18px; color: #fff; }
.mini-player-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mini-song-title,
.mini-song-state {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-song-title {
    color: #f3f9ff;
    font-size: 0.82rem;
    font-weight: 600;
}
.mini-song-state {
    color: rgba(200, 230, 255, 0.48);
    font-size: 0.68rem;
}
.mini-player.playing .mini-player-art {
    border-color: rgba(135, 192, 255, 0.42);
    box-shadow: inset 0 0 16px rgba(135, 192, 255, 0.12);
}

.music-player-expanded {
    position: fixed;
    bottom: 92px;
    left: 24px;
    width: min(320px, calc(100vw - 48px));
    background: rgba(12, 18, 34, 0.94);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 16px;
    padding: 18px 16px 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(154, 198, 255, 0.2);
    z-index: 101;
    display: none;
}
.music-player-expanded.active {
    display: block;
    animation: playerIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes playerIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
}

.close-player-btn {
    position: absolute; top: 11px; right: 11px;
    width: 28px; height: 28px; border: 1px solid rgba(154,198,255,0.1); border-radius: 9px;
    background: rgba(255,255,255,0.035); color: rgba(216,236,247,0.45);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; padding: 0;
}
.close-player-btn svg { width: 14px; height: 14px; }
.close-player-btn:hover { background: rgba(255,157,107,0.15); color: #ff9d6b; }

.player-meta {
    text-align: left; margin: 2px 0 14px; padding-right: 30px;
}
.player-meta::before {
    content: 'NOW PLAYING';
    display: block;
    margin-bottom: 4px;
    color: rgba(154, 198, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.song-title {
    font-family: 'Montserrat','Microsoft YaHei',sans-serif;
    font-size: 1.02rem; font-weight: 700; color: #fff;
    letter-spacing: 0.2px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-artist {
    font-size: 0.75rem; font-weight: 400;
    color: rgba(216,236,247,0.6); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.progress-container {
    width: 100%; height: 3px; background: rgba(255,255,255,0.12);
    border-radius: 2px; cursor: pointer; overflow: hidden; margin-bottom: 3px;
}
.progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px; box-shadow: 0 0 8px rgba(154,198,255,0.4);
}
.time-display {
    display: flex; justify-content: space-between;
    font-size: 0.65rem; color: rgba(216,236,247,0.45);
    margin-bottom: 14px; font-variant-numeric: tabular-nums;
}

.player-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 22px; margin-bottom: 14px;
}
.player-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(216,236,247,0.7); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); padding: 0;
}
.player-btn svg { width: 16px; height: 16px; }
.player-btn:hover { background: rgba(154,198,255,0.12); color: #fff; border-color: rgba(154,198,255,0.2); }
.player-main-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: none;
    box-shadow: 0 4px 16px rgba(106,155,216,0.3);
}
.player-main-btn:hover { box-shadow: 0 6px 22px rgba(106,155,216,0.5); transform: scale(1.06); }
.player-main-btn svg { width: 22px; height: 22px; }

.player-footer {
    display: flex; align-items: center; gap: 10px;
}
.volume-control {
    flex: 1; display: flex; align-items: center; gap: 8px;
}
.vol-icon { width: 14px; height: 14px; color: rgba(216,236,247,0.5); flex-shrink: 0; }
.volume-slider {
    -webkit-appearance: none; flex: 1; height: 3px;
    background: rgba(255,255,255,0.14); border-radius: 2px;
    outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    border-radius: 50%; background: var(--primary-light);
    box-shadow: 0 0 6px rgba(154,198,255,0.4);
}

.playlist-toggle {
    display: flex; align-items: center; gap: 4px;
    height: 28px; padding: 0 8px; border-radius: 8px; border: none;
    background: rgba(255,255,255,0.08); color: rgba(216,236,247,0.55);
    cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.playlist-label { font-size: 0.65rem; }
.playlist-toggle:hover { background: rgba(154,198,255,0.12); color: var(--primary-light); }

.playlist-container { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.playlist-container.show { max-height: 160px; margin-top: 10px; }
.playlist {
    list-style: none; max-height: 148px; overflow-y: auto;
    background: rgba(0,0,0,0.3); border-radius: 10px; padding: 6px;
    border: 1px solid rgba(154,198,255,0.12);
}
.playlist::-webkit-scrollbar { width: 3px; }
.playlist::-webkit-scrollbar-thumb { background: rgba(154,198,255,0.2); border-radius: 2px; }
.playlist-item {
    padding: 7px 10px; border-radius: 6px; margin-bottom: 2px;
    cursor: pointer; font-size: 0.73rem; color: rgba(216,236,247,0.6);
    transition: all 0.15s; line-height: 1.3;
}
.playlist-item:hover { background: rgba(154,198,255,0.1); color: #eef5ff; }
.playlist-item.playing { background: rgba(154,198,255,0.15); color: #fff; font-weight: 600; }

/* ============== Lyrics Overlay (on waveform) ============== */
.lyrics-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 6px;
    z-index: 5; pointer-events: none;
    width: 90%; text-align: center;
}

.lyrics-focus {
    font-family: 'Montserrat', 'Microsoft YaHei', sans-serif;
    font-size: 1.25rem; font-weight: 700;
    background: linear-gradient(135deg, #a0d0ff 0%, #ffffff 40%, #ffc8a0 70%, #a0d0ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(154,198,255,0.5)) drop-shadow(0 0 4px rgba(255,255,255,0.3));
    animation: lyricShine 3s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
    padding: 2px 16px;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
    max-width: 100%;
}

@keyframes lyricShine {
    0%, 100% { background-position: 0% center; filter: drop-shadow(0 0 12px rgba(154,198,255,0.5)); }
    50% { background-position: 100% center; filter: drop-shadow(0 0 20px rgba(255,200,160,0.6)) drop-shadow(0 0 8px rgba(255,255,255,0.4)); }
}

.lyrics-ghost {
    font-family: 'Montserrat', 'Microsoft YaHei', sans-serif;
    font-size: 0.8rem; font-weight: 400;
    color: rgba(216,236,247,0.25);
    transition: all 0.6s ease;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
    max-width: 90%;
    min-height: 1.2em;
}

.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.85);
    z-index: 5000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-alert.active {
    display: flex;
}

.alert-content {
    background: rgba(30, 40, 60, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: calc(var(--card-radius) - 5px);
    padding: 35px;
    max-width: 450px;
    width: 90%;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: var(--glass-border);
    text-align: center;
    position: relative;
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.alert-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(154, 198, 255, 0.6));
}

.alert-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 0 10px rgba(154, 198, 255, 0.5);
}

.alert-message {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.alert-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.alert-button {
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    min-width: 110px;
}

.alert-button.confirm {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.alert-button.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

audio {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.star-message-card:nth-child(1) { animation-delay: 0.1s; }
.star-message-card:nth-child(2) { animation-delay: 0.2s; }
.star-message-card:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-color-scheme: dark) {
    .universe-background {
        background: 
            radial-gradient(ellipse at 20% 20%, rgba(106, 155, 216, 0.2) 0%, transparent 40%),
            radial-gradient(ellipse at 80% 80%, rgba(255, 157, 107, 0.15) 0%, transparent 40%),
            radial-gradient(ellipse at 40% 60%, rgba(154, 198, 255, 0.2) 0%, transparent 40%),
            linear-gradient(135deg, #121826 0%, #1a2332 100%);
    }
    
    .waveform-container {
        background: rgba(30, 40, 60, 0.12);
    }
}

/* 修复关于页面、星空心语详情页的宽度 */
#aboutModalContainer .modal-content,
.message-detail-modal .modal-content {
    width: 90%;
    max-width: 1200px;
}

/* 关于页面的特定样式 */
#aboutModal {
    display: none;
}

#aboutModal.active {
    display: flex;
}

#aboutModal .modal-content {
    max-height: 85vh;
}

/* ========================================
   消息详情重设计 (.msg-detail-*)
   ======================================== */

.msg-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.msg-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 16px 0 0 32px;
    width: fit-content;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(154,198,255,0.08);
    border-radius: 20px;
    color: rgba(216,236,247,0.45);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.msg-detail-back:hover {
    background: rgba(154,198,255,0.1);
    color: var(--primary-light);
    border-color: rgba(154,198,255,0.25);
}

.msg-detail-hd {
    padding: 28px 36px 20px;
    border-bottom: 1px solid rgba(154,198,255,0.06);
}
.msg-detail-author {
    display: flex;
    align-items: center;
    gap: 18px;
}
.msg-detail-avatar {
    width: 64px; height: 64px; flex-shrink: 0; position: relative;
    background: linear-gradient(135deg,var(--primary),var(--accent));
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(106,155,216,0.35);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.4rem;
}

.msg-detail-avatar-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.msg-detail-avatar-img.loaded {
    opacity: 1; transform: scale(1);
}

.msg-detail-avatar-fb {
    position: relative; z-index: 1;
    transition: opacity 0.3s ease;
}
.msg-detail-avatar-img.loaded ~ .msg-detail-avatar-fb {
    opacity: 0;
}
.msg-detail-meta { flex: 1; min-width: 0; }
.msg-detail-name {
    font-family: 'Montserrat',sans-serif; font-weight: 700;
    font-size: 1.25rem; color: #f0f6ff; margin-bottom: 8px;
}
.msg-detail-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.msg-detail-tag {
    display: inline-block; padding: 4px 14px;
    background: rgba(154,198,255,0.08);
    border: 1px solid rgba(154,198,255,0.12);
    border-radius: 12px; font-size: 0.78rem;
    color: var(--primary-light); font-weight: 600; letter-spacing: 0.2px;
}
.msg-detail-date {
    font-size: 0.78rem; color: rgba(216,236,247,0.32);
}

.msg-detail-body {
    flex: 1; overflow-y: auto; padding: 36px 40px;
}
.msg-detail-text {
    font-size: 1.1rem; line-height: 2;
    color: rgba(216,236,247,0.85);
    white-space: pre-wrap; word-break: break-word;
}

.msg-detail-ft {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 40px;
    border-top: 1px solid rgba(154,198,255,0.06);
    background: rgba(20,28,44,0.25);
    flex-wrap: wrap; gap: 16px;
}
.msg-detail-stats {
    display: flex; align-items: center; gap: 10px;
}
.msg-detail-stat {
    font-size: 0.85rem; color: rgba(216,236,247,0.45);
}
.msg-detail-stat strong {
    font-family: 'Montserrat',sans-serif; color: #f0f6ff; font-weight: 700; margin: 0 3px; font-size: 1.05em;
}
.msg-detail-sep {
    color: rgba(216,236,247,0.1);
}
.msg-detail-actions { flex-shrink: 0; }
.msg-detail-like {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px; color: rgba(216,236,247,0.6);
    cursor: pointer; font-size: 0.88rem; transition: all 0.25s;
}
.msg-detail-like:hover:not(:disabled) {
    background: rgba(255,100,100,0.15);
    border-color: rgba(255,100,100,0.3); color: #ff6b6b; transform: scale(1.04);
}
.msg-detail-like.liked {
    background: rgba(255,100,100,0.1);
    border-color: rgba(255,100,100,0.2); color: #ff6b6b;
}
.msg-detail-like:disabled { cursor: default; opacity: 0.6; }

@media (max-width: 640px) {
    .msg-detail-body { padding: 22px 20px; }
    .msg-detail-hd  { padding: 18px 20px 14px; }
    .msg-detail-ft  { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
    .msg-detail-text { font-size: 1rem; line-height: 1.75; }
    .msg-detail-back { margin-left: 20px; }
}

/* ─── 页面分区与移动端收口 ─── */
html,
body {
    width: 100%;
    max-width: 100%;
}

.section-wrapper {
    scroll-margin-top: 20px;
}

@media (max-width: 768px) {
    .main-content {
        gap: 36px;
        margin-bottom: 56px;
    }

    .logo-main {
        font-size: clamp(1.75rem, 7.6vw, 2.2rem);
        letter-spacing: 0.06em;
        max-width: 100%;
        white-space: nowrap;
        text-align: center;
    }

    .logo-subtitle,
    .logo-tagline {
        padding-left: 0;
        text-align: center;
    }

    .logo-tagline {
        max-width: 320px;
        line-height: 1.6;
    }

    .logo-tagline::before {
        display: none;
    }

    .nav-container {
        padding: 10px 8px;
    }

    .nav-links {
        width: 100%;
        gap: 4px;
    }

    .nav-link {
        flex: 1 1 28%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .section-wrapper {
        padding: 22px 16px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        padding: 0 12px;
    }

    .section-header h2::before,
    .section-header h2::after {
        font-size: 1.15rem;
    }

    .section-header h2::before {
        left: -4px;
    }

    .section-header h2::after {
        right: -4px;
    }

    .section-header p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .primary-action-button {
        min-width: 0;
    }

    .star-messages-controls .primary-action-button {
        width: 100%;
    }

    .daily-photo-controls .primary-action-button {
        width: 100%;
    }

    .nav-container,
    .section-wrapper,
    .waveform-container,
    .star-message-card,
    .feature-card,
    .time-stat-card,
    .mini-player,
    .music-player-expanded,
    .modal-content,
    .daily-photo-badge {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background-color: rgba(15, 22, 40, 0.82);
    }

    .section-wrapper,
    .time-stat-card {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    }

    .mini-player {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: auto;
        min-width: 180px;
        max-width: min(260px, calc(100vw - 24px));
    }

    .music-player-expanded {
        left: 12px;
        right: 12px;
        bottom: 82px;
        width: auto;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
    }

    .audio-context-restore-btn {
        left: 12px;
        right: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        transform: none;
        animation: none;
    }

    .audio-context-restore-btn button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }

    .section-wrapper {
        padding: 18px 12px;
        border-radius: 14px;
    }

    .logo-main {
        font-size: clamp(1.55rem, 7.5vw, 2rem);
    }

    .nav-link {
        flex-basis: 30%;
        padding: 9px 5px;
        font-size: 0.86rem;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 7.2vw, 1.95rem);
    }
}

@media (hover: none) {
    .section-wrapper:hover,
    .time-stat-card:hover,
    .dash-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
