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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

#gameScreen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.phone-container {
    display: flex;
    justify-content: center;
}

.phone {
    width: 350px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.phone-header {
    background: #000;
    border-radius: 20px 20px 0 0;
    color: white;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.app-header {
    padding: 10px 15px;
    border-bottom: 1px solid #333;
}

.app-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.phone-content {
    height: 500px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
}

.message-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

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

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

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

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.sender .message-bubble {
    background: #007aff;
    color: white;
}

.message.received .message-bubble {
    background: #e5e5ea;
    color: #333;
}

.message.suspicious .message-bubble {
    background: #ff3b30;
    color: white;
    position: relative;
}

.message.suspicious .message-bubble::before {
    content: "⚠️";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

.choices-container {
    padding: 20px;
    border-top: 1px solid #e5e5ea;
}

.choice-button {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f8f8;
    color: #333;
}

.choice-button:hover {
    background: #e5e5ea;
    transform: translateY(-1px);
}

.choice-button:last-child {
    margin-bottom: 0;
}

.game-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.score-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.score-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.score-item .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.score-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.feedback {
    transition: all 0.3s ease;
}

.feedback.hidden {
    opacity: 0;
    pointer-events: none;
}

.feedback-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.feedback-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feedback-content.correct h3 {
    color: #28a745;
}

.feedback-content.incorrect h3 {
    color: #dc3545;
}

.feedback-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #666;
}

.next-button {
    background: #007aff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.next-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.results-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.results-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.final-score {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-score span:first-child {
    color: #007aff;
}

.score-rating {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: inline-block;
}

.score-rating.excellent {
    background: #d4edda;
    color: #155724;
}

.score-rating.good {
    background: #d1ecf1;
    color: #0c5460;
}

.score-rating.needs-improvement {
    background: #f8d7da;
    color: #721c24;
}

.results-summary {
    text-align: left;
    margin-bottom: 2rem;
}

.results-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.results-summary ul {
    list-style: none;
    padding: 0;
}

.results-summary li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #666;
}

.results-summary li:before {
    content: "💡 ";
    margin-right: 0.5rem;
}

.restart-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

@media (max-width: 768px) {
    #gameScreen {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .phone {
        width: 300px;
        height: 550px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .results-container {
        padding: 2rem 1rem;
    }
    
    .final-score {
        font-size: 3rem;
    }
}

