/* Miyomi - Reserved Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, #1a1f3b, #05060d 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    color: #f8fbff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(255, 161, 161, 0.15), transparent 55%),
                radial-gradient(circle at 80% 20%, rgba(130, 202, 255, 0.12), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.universe-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 65% 15%, rgba(255, 255, 255, 0.05), transparent 55%),
                radial-gradient(circle at 20% 70%, rgba(255, 132, 169, 0.08), transparent 45%);
}

.nebula-layer,
.starfield-layer {
    position: absolute;
    inset: -10%;
}

.nebula-layer {
    background: conic-gradient(from 90deg, rgba(255, 132, 169, 0.6), rgba(87, 99, 255, 0.3), rgba(255, 255, 255, 0.1));
    filter: blur(80px);
    animation: nebulaDrift 30s ease-in-out infinite;
}

.starfield-layer {
    background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 140px 140px;
    animation: starDrift 45s linear infinite;
    opacity: 0.3;
}

.anime-character {
    position: absolute;
    width: 220px;
    border-radius: 26px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 25px 55px rgba(5, 0, 40, 0.55);
    animation: cardFloat 14s ease-in-out infinite;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.anime-character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.15);
}

.character-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(5, 6, 20, 0.7);
    color: #f8fbff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.char-cute {
    top: 10%;
    left: 6%;
}

.char-angry {
    bottom: 10%;
    right: 8%;
    animation-delay: -5s;
}

.chibi-scout {
    position: absolute;
    width: 160px;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.35));
    animation: chibiHover 8s ease-in-out infinite;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    mix-blend-mode: screen;
    animation: orbPulse 18s ease-in-out infinite;
    pointer-events: none;
}

.orb-one { top: -10%; right: 15%; }
.orb-two { bottom: -15%; left: 12%; animation-delay: -6s; }
.orb-three { top: 30%; left: -12%; animation-delay: -12s; }

.main-content {
    background: rgba(6, 9, 22, 0.8);
    border-radius: 20px;
    padding: 56px 42px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(3, 2, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Avatar Section */
.avatar-section {
    margin-bottom: 50px;
}

.miyomi-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(7, 4, 33, 0.45);
}

.avatar-glow {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.35), rgba(130, 202, 255, 0.25));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.avatar-image:hover {
    transform: scale(1.05);
    border-color: #ffc107;
}

.avatar-image:hover + .avatar-glow {
    opacity: 1;
}

.brand-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #f1f5ff;
    letter-spacing: -0.02em;
}

/* Quote Section */
.quote-section {
    margin: 50px 0;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-container {
    position: relative;
    max-width: 500px;
    padding: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.quote-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-text {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fdfbff;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
}

.quote-source {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.quote-decoration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffbd62, transparent);
    border-radius: 1px;
}

/* Redirect Controls */
.redirect-controls {
    margin-top: 40px;
}

.countdown-display {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: rgba(248, 251, 255, 0.8);
}

.countdown-number {
    font-weight: 600;
    color: #ffd166;
    font-size: 1.4rem;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-number.updating {
    transform: scale(1.2);
    color: #ff9d5c;
}

.countdown-number.paused-state {
    color: #7acbff;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 189, 98, 0.4), rgba(151, 197, 255, 0.3));
    opacity: 0.5;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffbd62, #7acbff);
    width: 100%;
    border-radius: 999px;
    transition: width 1s linear;
    box-shadow: 0 0 12px rgba(255, 189, 98, 0.6);
}

/* Control Buttons */
.control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fbff;
    padding: 12px 22px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(5, 0, 40, 0.35);
}

.control-btn:hover {
    background: rgba(255, 189, 98, 0.3);
    border-color: #ffbd62;
    transform: translateY(-2px) scale(1.01);
}

.btn-icon {
    font-size: 1rem;
    width: 20px;
    display: inline-flex;
    justify-content: center;
}

.btn-icon::before {
    content: '';
}

.btn-icon[data-icon-state="pause"]::before {
    content: '\23F8';
}

.btn-icon[data-icon-state="play"]::before {
    content: '\25B6';
}

.toggle-btn[data-state="paused"] {
    background: rgba(122, 203, 255, 0.18);
    border-color: rgba(122, 203, 255, 0.5);
}

.miyomi-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(130deg, #ffb74d, #ff5f6d 60%, #8a5dff);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(255, 105, 97, 0.35);
    position: relative;
    overflow: hidden;
}

.miyomi-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 35px rgba(255, 105, 97, 0.4);
}

.button-icon {
    font-size: 1.1rem;
    display: inline-flex;
    transition: transform 0.3s ease;
}

.button-icon::before {
    content: '\2197';
}

.miyomi-button:hover .button-icon {
    transform: translateX(2px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    color: rgba(255, 249, 214, 0.4);
    font-size: 1.6rem;
    animation: gentleFloat 9s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.star-2 {
    bottom: 25%;
    left: 12%;
    animation-delay: -5s;
}

@keyframes nebulaDrift {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
}

@keyframes starDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-120px, -120px, 0); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes orbPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-8px) scale(1.1); opacity: 0.3; }
}

/* Responsive Design */
@media (min-width: 1024px) {
    body {
        padding: 60px 40px;
    }
    
    .main-content {
        padding: 72px 64px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 40px 30px;
    }
    
    .avatar-section {
        margin-bottom: 40px;
    }
    
    .avatar-image {
        width: 80px;
        height: 80px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .quote-section {
        margin: 40px 0;
        min-height: 120px;
    }

    .anime-character {
        width: 160px;
    }
    
    .char-cute {
        top: 6%;
        left: -4%;
    }
    
    .char-angry {
        bottom: 6%;
        right: -2%;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .control-btn,
    .miyomi-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .countdown-display {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 30px 20px;
    }

    .anime-character {
        width: 130px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-source {
        font-size: 0.9rem;
    }
    
    .brand-title {
        font-size: 1.6rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.control-btn:focus,
.miyomi-button:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.avatar-image,
.control-btn,
.miyomi-button,
.countdown-number,
.quote-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
