* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.version-badge {
    position: fixed;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 20;
}

#app {
    width: 100%;
    max-width: 500px;
}

.screen {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.player-selector {
    margin: 40px 0;
}

.input-number {
    width: 100%;
    max-width: 150px;
    padding: 15px;
    font-size: 1.5em;
    text-align: center;
    border: 2px solid #667eea;
    border-radius: 10px;
    margin-bottom: 20px;
}

.input-number:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    color: #444;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #667eea;
    color: white;
}

.btn-secondary:hover {
    background: #764ba2;
}

.btn-secondary:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary:disabled:hover {
    background: #ccc;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #f0f4ff;
}

.info {
    color: #999;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Player Screen */
.player-header {
    margin-bottom: 40px;
}

.role-label {
    color: #999;
    font-size: 0.95em;
}

.card-container {
    perspective: 1000px;
    margin: 40px 0;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.card {
    width: 100%;
    max-width: 300px;
    height: 250px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    user-select: none;
}

.card:active {
    cursor: grabbing;
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-front {
    background: white;
    color: #333;
    flex-direction: column;
}

.card-content {
    text-align: center;
}

.swipe-text {
    font-size: 1.2em;
    font-weight: 500;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.role-badge {
    display: inline-block;
    font-size: 2em;
    margin-bottom: 15px;
}

.role-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
}

.word {
    font-size: 2.2em;
    font-weight: 800;
    color: #667eea;
    letter-spacing: 2px;
}

.hint {
    font-size: 1.5em;
    color: #764ba2;
    font-weight: 600;
    letter-spacing: 1px;
}

.word-label,
.hint-label {
    font-size: 0.9em;
    color: #999;
    margin-top: 15px;
}

/* Summary */
.summary {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.summary p {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #333;
}

.summary span {
    font-weight: 700;
    color: #667eea;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.4em;
    }

    .card {
        height: 220px;
    }

    .word {
        font-size: 1.8em;
    }

    .hint {
        font-size: 1.3em;
    }
}
