* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: #ff6f00;
    margin-bottom: 0.25rem;
}

.tagline {
    color: #666;
}

/* Cat Preview */
.cat-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.monitor-frame {
    background: #333;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.monitor-screen {
    width: 400px;
    height: 250px;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f7fa 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.monitor-stand {
    width: 80px;
    height: 40px;
    background: #444;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

.cat-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Cat */
.cat {
    position: relative;
    width: 80px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cat:hover {
    transform: scale(1.05);
}

.cat-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid var(--cat-color, #ff9800);
    top: 0;
}

.cat-ear.left { left: 8px; transform: rotate(-15deg); }
.cat-ear.right { right: 8px; transform: rotate(15deg); }

.cat-ear::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #ffb74d;
}

.cat-face {
    position: absolute;
    top: 15px;
    left: 5px;
    width: 70px;
    height: 55px;
    background: var(--cat-color, #ff9800);
    border-radius: 50% 50% 45% 45%;
}

.cat-eye {
    position: absolute;
    width: 16px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 15px;
    overflow: hidden;
}

.cat-eye.left { left: 12px; }
.cat-eye.right { right: 12px; }

.pupil {
    position: absolute;
    width: 8px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    transition: all 0.2s;
}

.cat-eye.closed .pupil {
    height: 2px;
    top: 8px;
    border-radius: 0;
}

.cat-nose {
    position: absolute;
    width: 8px;
    height: 6px;
    background: #ff6f00;
    border-radius: 50% 50% 40% 40%;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.cat-mouth {
    position: absolute;
    width: 20px;
    height: 8px;
    border-bottom: 2px solid #bf360c;
    border-radius: 0 0 50% 50%;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
}

.cat-mouth.open {
    background: #e91e63;
    height: 12px;
    border-radius: 50%;
}

.cat-whiskers {
    position: absolute;
    top: 35px;
    width: 25px;
    height: 1px;
    background: #5d4037;
}

.cat-whiskers::before,
.cat-whiskers::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 1px;
    background: #5d4037;
}

.cat-whiskers::before { top: -5px; transform: rotate(10deg); }
.cat-whiskers::after { top: 5px; transform: rotate(-10deg); }

.cat-whiskers.left { left: -20px; }
.cat-whiskers.right { right: -20px; transform: scaleX(-1); }

.cat-body {
    position: absolute;
    top: 65px;
    left: 10px;
    width: 60px;
    height: 40px;
    background: var(--cat-color, #ff9800);
    border-radius: 30px 30px 0 0;
}

.cat-paw {
    position: absolute;
    width: 18px;
    height: 20px;
    background: var(--cat-color, #ff9800);
    border-radius: 50% 50% 40% 40%;
    bottom: -10px;
}

.cat-paw.left { left: 5px; }
.cat-paw.right { right: 5px; }

.cat-paw.wave {
    animation: wave 0.5s ease-in-out infinite;
}

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

.cat-tail {
    position: absolute;
    width: 10px;
    height: 50px;
    background: var(--cat-color, #ff9800);
    border-radius: 5px;
    bottom: 10px;
    right: -15px;
    transform-origin: bottom center;
    transform: rotate(-30deg);
    animation: tailWag 2s ease-in-out infinite;
}

@keyframes tailWag {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(-50deg); }
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    font-size: 0.9rem;
    animation: bubblePop 0.3s ease-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@keyframes bubblePop {
    0% { transform: translateX(-50%) scale(0); }
    70% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Action Effect */
.action-effect {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* Status Display */
.status-display {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 1.1rem;
}

/* Sections */
.controls-section, .settings-section, .install-section, .stats-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ff6f00;
}

/* Controls */
.control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.control-btn {
    padding: 0.75rem;
    border: 2px solid #ffe0b2;
    border-radius: 12px;
    background: #fff3e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #ffe0b2;
    border-color: #ffb74d;
    transform: translateY(-2px);
}

/* Settings */
.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.setting-group input[type="range"] {
    flex: 1;
    margin: 0 0.5rem;
}

.setting-group input[type="text"] {
    padding: 0.5rem;
    border: 2px solid #ffe0b2;
    border-radius: 8px;
    font-size: 1rem;
    width: 150px;
}

.color-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #ff6f00;
    box-shadow: 0 0 10px rgba(255,111,0,0.5);
}

/* Install Section */
.bookmarklet-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9800, #ff6f00);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,111,0,0.4);
    cursor: move;
    margin: 1rem 0;
}

.hint {
    font-size: 0.85rem;
    color: #888;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #fff3e0;
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: #ff6f00;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
}

footer {
    text-align: center;
    color: #888;
    margin-top: 2rem;
}

@media (max-width: 500px) {
    .monitor-screen {
        width: 300px;
        height: 200px;
    }
    
    .control-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
