@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: manipulation;
}

#app {
    width: 100%;
    min-height: 100vh;
}

/* Ana Ekran */
.home-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

/* 3 FARKLI ZAR ANİMASYONU */
.dice-container {
    perspective: 1000px;
    margin-bottom: 25px;
}

.dice {
    width: 70px;
    height: 70px;
    position: relative;
    transform-style: preserve-3d;
}

.dice-anim-1 {
    animation: rotateDice 2.5s ease-in-out forwards;
}

.dice-anim-2 {
    animation: spinDice 2s linear forwards;
}

.dice-anim-3 {
    animation: bounceDice 1.5s ease-in-out forwards;
}

@keyframes rotateDice {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(180deg) rotateY(90deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes spinDice {
    0% {
        transform: rotateZ(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateZ(360deg) rotateY(360deg);
    }
}

@keyframes bounceDice {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
    }

    25% {
        transform: translateY(-15px) rotateX(90deg);
    }

    50% {
        transform: translateY(0) rotateX(180deg);
    }

    75% {
        transform: translateY(-15px) rotateX(270deg);
    }
}

.dice-face {
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    display: grid;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dice-face.front {
    transform: translateZ(35px);
    grid-template-areas: "a";
}

.dice-face.back {
    transform: rotateY(180deg) translateZ(35px);
    grid-template-areas: "a b c" "d e f";
}

.dice-face.right {
    transform: rotateY(90deg) translateZ(35px);
    grid-template-areas: "a b" "c d" "e f";
}

.dice-face.left {
    transform: rotateY(-90deg) translateZ(35px);
    grid-template-areas: "a b";
}

.dice-face.top {
    transform: rotateX(90deg) translateZ(35px);
    grid-template-areas: "a b" "c d";
}

.dice-face.bottom {
    transform: rotateX(-90deg) translateZ(35px);
    grid-template-areas: "a . b" ". c ." "d . e";
}

.dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: block;
}

.dice-face.front .dot {
    justify-self: center;
    align-self: center;
}

.logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 255, 255, 0.2);
    letter-spacing: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.logo-text .letter {
    display: inline-block;
    animation: letterBounce 0.8s ease-in-out infinite;
}

.logo-text .letter:nth-child(1) {
    animation-delay: 0s;
}

.logo-text .letter:nth-child(2) {
    animation-delay: 0.1s;
}

.logo-text .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.logo-text .letter:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes letterBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.08);
    }
}

.logo-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-top: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 380px;
}

.menu-btn {
    padding: 18px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn.primary-menu {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
    font-size: 1.4rem;
    padding: 22px 45px;
    animation: primaryPulse 1.8s ease-in-out infinite;
}

@keyframes primaryPulse {

    0%,
    100% {
        box-shadow: 0 6px 18px rgba(240, 147, 251, 0.4);
    }

    50% {
        box-shadow: 0 10px 30px rgba(240, 147, 251, 0.6);
    }
}

.menu-btn:active {
    transform: scale(0.98);
}

/* Oyun Ayarları */
.game-setup,
.settings-screen,
.words-screen {
    padding: 20px;
    max-width: 750px;
    margin: 0 auto;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.setup-header,
.settings-header,
.words-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.setup-header h1,
.settings-header h1,
.words-header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.setup-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.setup-section {
    background: rgba(255, 255, 255, 0.96);
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.setup-section h2 {
    font-size: 1.35rem;
    color: #667eea;
    margin-bottom: 18px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.team-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.team-item:active {
    transform: scale(0.98);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.team-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.team-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.small-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.edit-btn {
    background: #4CAF50;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.small-btn:active {
    transform: scale(0.95);
}

.add-team-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
}

.add-team-btn:active {
    transform: scale(0.98);
}

.max-team-text,
.min-team-text {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95rem;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    gap: 10px;
}

.setting-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.setting-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.increment-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.increment-btn:active {
    background: #764ba2;
    transform: scale(0.95);
}

.value-display {
    min-width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #667eea;
}

.input-field {
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.25s ease;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mode-btn {
    padding: 12px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.mode-btn:active {
    transform: scale(0.98);
}

.start-game-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.start-game-btn:active {
    transform: scale(0.98);
}

.pulse-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.back-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 18px;
}

.back-btn:active {
    background: white;
    color: #667eea;
}

/* Oyun Ekranı - MOBİL UYUMLU */
.game-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    max-width: 100vw;
    overflow: hidden;
}

.game-header-mobile {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 12px 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.header-top-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.pause-btn-small {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-btn-small:active {
    transform: scale(0.95);
}

.timer-display {
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    text-align: center;
}

.timer-display.warning {
    color: #f5576c;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* PAS HAKKI ÜSTTE */
.pass-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pass-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffa502;
    text-transform: uppercase;
}

.pass-counter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa502 0%, #ff7f50 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-display-game {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.score-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #667eea;
}

.score-change {
    font-size: 1rem;
    font-weight: 800;
    animation: scorePopup 0.4s ease;
}

.score-change.positive {
    color: #4ecdc4;
}

.score-change.negative {
    color: #ff6b6b;
}

@keyframes scorePopup {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    perspective: 1000px;
    padding: 0 10px;
}

.tabu-card {
    background: white;
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 450px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: cardEnter 0.35s ease;
    transform-style: preserve-3d;
}

@keyframes cardEnter {
    from {
        transform: rotateY(90deg) scale(0.85);
        opacity: 0;
    }

    to {
        transform: rotateY(0) scale(1);
        opacity: 1;
    }
}

.card-word {
    font-size: 2.2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    word-wrap: break-word;
}

.forbidden-words {
    width: 100%;
}

.forbidden-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f5576c;
    margin-bottom: 12px;
    text-align: center;
}

.forbidden-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forbidden-item {
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.game-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.control-btn {
    padding: 18px 12px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.tabu-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.pass-btn {
    background: linear-gradient(135deg, #ffa502 0%, #ff7f50 100%);
}

.correct-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.control-btn:active {
    transform: scale(0.96);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 18px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 8px;
}

.modal-desc {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

.team-display-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.team-emoji-large {
    font-size: 3.5rem;
}

.team-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.round-info {
    margin-top: 18px;
    color: #666;
    font-size: 1.05rem;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.emoji-btn {
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.emoji-btn:hover,
.emoji-btn.selected {
    background: #667eea;
    border-color: #667eea;
    transform: scale(1.08);
}

.suggestion-text {
    margin: 12px 0 8px;
    color: #666;
    font-size: 0.9rem;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.suggestion-btn {
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.suggestion-btn:active {
    transform: scale(0.98);
}

.emoji-label {
    margin-top: 18px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.secondary-btn {
    background: #e0e0e0;
    color: #333;
}

.modal-btn:active {
    transform: scale(0.98);
}

/* İstatistik Ekranı */
.stats-screen {
    padding: 20px;
    max-width: 750px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.stats-header {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.stats-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.team-display-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
}

.correct-card .stat-value {
    color: #4ecdc4;
}

.pass-card .stat-value {
    color: #ffa502;
}

.tabu-card .stat-value {
    color: #ff6b6b;
}

.points-card .stat-value {
    color: #667eea;
}

.scoreboard-stats {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.scoreboard-stats h3 {
    text-align: center;
    color: #667eea;
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.score-item.current-team {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.score-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.score-team span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
    flex-shrink: 0;
}

.score-item.current-team .score-value {
    color: white;
}

.word-lists {
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 18px;
}

.word-list-section {
    margin-bottom: 20px;
}

.word-list-section:last-child {
    margin-bottom: 0;
}

.word-list-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}

.word-list-title.correct {
    color: #4ecdc4;
}

.word-list-title.pass {
    color: #ffa502;
}

.word-list-title.tabu {
    color: #ff6b6b;
}

.word-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.word-list-item {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.word-list-item.correct {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.word-list-item.pass {
    background: linear-gradient(135deg, #ffa502 0%, #ff7f50 100%);
}

.word-list-item.tabu {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.continue-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.continue-btn:active {
    transform: scale(0.98);
}

/* Kategori */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-item:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.category-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.category-label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Kelimeler Ekranı */
.words-info {
    background: rgba(255, 255, 255, 0.96);
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 18px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.reset-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.reset-btn:active {
    transform: scale(0.98);
}

/* Kazanan Ekranı */
.final-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.winner-animation {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.winner-emoji {
    font-size: 5rem;
    animation: winnerBounce 0.8s infinite;
}

@keyframes winnerBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.trophy-icon {
    font-size: 3rem;
    margin: 15px 0;
    animation: trophySpin 2s infinite ease-in-out;
}

@keyframes trophySpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.winner-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin: 15px 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.winner-team {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.final-title {
    text-align: center;
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.final-scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.final-score-item {
    padding: 16px 18px;
    background: white;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 35px 1fr 60px;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.final-score-item.winner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.final-score-rank {
    font-size: 1.5rem;
    font-weight: 800;
}

.final-score-team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 0;
}

.final-score-team span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.final-score-value {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: right;
}

/* Responsive - MOBİL ÖNCELIK */
@media (max-width: 768px) {
    .logo-text {
        font-size: 3rem;
        letter-spacing: 8px;
    }

    .logo-subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
    }

    .menu-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .menu-btn.primary-menu {
        font-size: 1.25rem;
        padding: 18px 35px;
    }

    .card-word {
        font-size: 1.8rem;
    }

    .tabu-card {
        padding: 20px 15px;
        min-height: 280px;
    }

    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .emoji-btn {
        padding: 10px;
        font-size: 1.5rem;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .control-btn {
        padding: 16px 10px;
        font-size: 1rem;
    }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }

    .mode-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .dice {
        width: 55px;
        height: 55px;
    }

    .dice-face {
        width: 55px;
        height: 55px;
    }

    .logo-text {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .card-word {
        font-size: 1.5rem;
    }

    .forbidden-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

.hidden {
    display: none;
}
.stats-cards .tabu-card {
    min-height: auto !important;
    /* 320px zorlamasını kaldırır */
    width: auto !important;
    /* Genişliği serbest bırakır */
    padding: 14px 12px !important;
    /* Normal kutu dolgusu */
    display: block !important;
    /* Flex yapısını bozar */
    transform: none !important;
    /* Varsa 3D efektini kaldırır */
    animation: none !important;
    /* Giriş animasyonunu iptal eder */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    /* Küçük gölge */
}

/* Tabu yazısının (h3) rengini ve boyutunu düzeltir */
.stats-cards .tabu-card h3 {
    font-size: 0.9rem !important;
    color: #ff6b6b !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Tabu sayısının (0) rengini ve boyutunu düzeltir */
.stats-cards .tabu-card .stat-value {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ff6b6b !important;
    text-align: center !important;
}