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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instruction {
    margin-bottom: 40px;
    opacity: 0.8;
    font-size: 1.1rem;
}

.power-meter {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #333;
}

.meter-label {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.meter-bar {
    width: 100%;
    height: 30px;
    background: #333;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
}

.ai-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-container {
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #333;
    overflow: hidden;
}

.chat-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    background: #111;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    text-align: left;
}

.message.user {
    background: #0088ff;
    margin-left: auto;
}

.message.ai {
    background: #333;
    margin-right: auto;
}

.message.ai.typing {
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    gap: 10px;
}

#messageInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

#messageInput:focus {
    outline: none;
    border-color: #00ff88;
}

#messageInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#sendButton {
    padding: 12px 20px;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sendButton:hover:not(:disabled) {
    background: #00cc6a;
    transform: translateY(-2px);
}

#sendButton:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #222;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}