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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #000;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.03) 50%, transparent 100%),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.matrix-column {
    position: absolute;
    animation: matrixRain 10s linear infinite;
    white-space: pre;
    line-height: 1.2;
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 0 30px rgba(0, 255, 0, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.chat-header {
    background: rgba(0, 20, 0, 0.8);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.chat-header h1 {
    color: #00ff00;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.chat-header p {
    color: rgba(0, 255, 0, 0.8);
    font-size: 16px;
}

.thinking-style-selector {
    padding: 25px;
    background: rgba(0, 20, 0, 0.6);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.thinking-style-selector h3 {
    color: #00ff00;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.thinking-style-selector p {
    color: rgba(0, 255, 0, 0.7);
}

.style-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.style-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #00ff00;
}

.style-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.1);
}

.style-btn.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border-color: #00ff00;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.style-btn.experienced {
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.8);
    position: relative;
}

.style-btn.experienced::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00ff00;
    color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.8);
}

.message {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.message.bot {
    text-align: left;
}

.message.user {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    position: relative;
}

.message.bot .message-bubble {
    background: rgba(0, 40, 0, 0.8);
    color: #00ff00;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.message.user .message-bubble {
    background: rgba(0, 100, 0, 0.6);
    color: #ffffff;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.4);
    text-align: left;
}

.thinking-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(0, 255, 0, 0.6);
}

.input-area {
    padding: 20px;
    background: rgba(0, 20, 0, 0.6);
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.response-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-btn {
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 0, 0.4);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    color: #00ff00;
}

.response-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-color: #00ff00;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.score-area {
    padding: 20px;
    background: rgba(0, 20, 0, 0.6);
    text-align: center;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.score {
    color: rgba(0, 255, 0, 0.8);
    font-weight: 500;
}

#experiencedCount {
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

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

@media (max-width: 600px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .style-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .style-btn {
        width: 200px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
}

.style-description {
    background: rgba(0, 40, 0, 0.6);
    border-left: 4px solid #00ff00;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
    color: rgba(0, 255, 0, 0.9);
    line-height: 1.5;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}