/* Kelime ve Bilgi Oyunu Stilleri */
.wordgame-container {
    position: relative;
    overflow: hidden;
    max-width: 650px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.wordgame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wordgame-stats {
    display: flex;
    gap: 12px;
}

.wordgame-stat-badge {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    text-align: center;
}

.wordgame-stat-badge .stat-label {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
}

.wordgame-stat-badge .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0fbcf9;
}

.wordgame-level-info {
    text-align: right;
}

.wordgame-level-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffd700;
}

.wordgame-level-count {
    font-size: 0.8rem;
    color: #b0bec5;
}

.wordgame-definition-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.wordgame-definition-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

.hexagon-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 80px;
    align-items: center;
    margin: 16px 0;
}

.hexagon {
    width: 48px;
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon .hexagon-inner {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hexagon.revealed .hexagon-inner {
    background: linear-gradient(135deg, #0fbcf9 0%, #0984e3 100%);
}

.hexagon .hexagon-letter {
    color: white;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}

.hexagon.shake {
    animation: shake 0.5s;
}

.wordgame-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 500px) {
    .wordgame-controls {
        flex-direction: row;
    }
}

.btn-hint {
    background: linear-gradient(135deg, #ff9100 0%, #e65100 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
    white-space: nowrap;
}

.btn-hint:hover {
    filter: brightness(1.1);
}

.wordgame-input-group {
    display: flex;
    flex: 1;
    gap: 8px;
}

.wordgame-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.wordgame-input:focus {
    border-color: #ffd700;
}

.btn-submit {
    background: linear-gradient(135deg, #0fbcf9 0%, #0984e3 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 188, 249, 0.3);
}

.btn-submit:hover {
    filter: brightness(1.1);
}

.wordgame-message {
    min-height: 28px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
}

.wordgame-message.success { color: #00e676; }
.wordgame-message.error { color: #ff5252; }

/* Modallar & Overlay */
.screen-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 18, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 50;
    pointer-events: auto;
    border-radius: 20px;
    box-sizing: border-box;
    animation: fadeInModal 0.25s ease-out forwards;
}

.screen-overlay.hidden,
.screen-overlay[style*="display: none"] {
    display: none !important;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-modal {
    background: linear-gradient(145deg, #1e272e, #141c22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 51;
    box-sizing: border-box;
    animation: modalPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-icon-badge {
    font-size: 42px;
    line-height: 1;
    margin-bottom: -2px;
}

.game-modal-title {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.game-score-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.score-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.score-val {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: #ffd700;
}

.score-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

.game-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-game {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-game:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-game:active {
    transform: translateY(0);
}

.btn-game-primary {
    background: linear-gradient(135deg, #0fbcf9, #0984e3) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 188, 249, 0.4);
}

.btn-game-danger {
    background: rgba(235, 77, 75, 0.15) !important;
    color: #ff7979 !important;
    border: 1px solid rgba(235, 77, 75, 0.3) !important;
}

.btn-game-danger:hover {
    background: rgba(235, 77, 75, 0.25) !important;
    color: #ff5252 !important;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
