.zmo-game-wrap,
.zmo-game-wrap * {
    box-sizing: border-box;
}

.zmo-game-wrap {
    max-width: 760px;
    margin: 30px auto;
    padding: 15px;
    font-family: "Arial", sans-serif;
}

.zmo-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fff7fc 0%, #f8efff 100%);
    border: 2px solid #f0d8ff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(158, 92, 191, 0.15);
}

.zmo-bottom-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.zmo-card::before,
.zmo-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.zmo-card::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -60px;
}

.zmo-card::after {
    width: 120px;
    height: 120px;
    bottom: -35px;
    left: -25px;
}

.zmo-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 24px;
}

.zmo-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #7a3d99;
}

.zmo-subtitle {
    margin: 0;
    color: #9251b4;
    font-size: 16px;
}

.zmo-stars-box {
    min-width: 92px;
    text-align: center;
    background: #fff;
    border: 2px solid #efd3ff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(179, 110, 216, 0.12);
}

.zmo-stars-label {
    display: block;
    font-size: 13px;
    color: #8a5aa7;
    margin-bottom: 5px;
}

#zmo-stars-count {
    font-size: 24px;
    font-weight: 700;
    color: #ffaf2e;
}

.zmo-welcome,
.zmo-finish,
.zmo-game-panel {
    position: relative;
    z-index: 2;
}

.zmo-welcome {
    text-align: center;
    padding: 24px 10px 10px;
}

.zmo-welcome h3,
.zmo-finish h3 {
    font-size: 28px;
    color: #893ea8;
    margin-bottom: 10px;
}

.zmo-welcome p,
.zmo-finish p {
    color: #7e6290;
    font-size: 17px;
    margin-bottom: 22px;
}

.zmo-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.zmo-pill {
    background: #fff;
    border: 2px solid #efd7ff;
    border-radius: 999px;
    padding: 10px 16px;
    color: #7d4e95;
    font-size: 15px;
}

.zmo-hearts {
    font-size: 30px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 42px;
}

.zmo-progress {
    width: 100%;
    height: 16px;
    background: #f2ddff;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 22px;
}

.zmo-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff93d1 0%, #c88dff 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.zmo-question-box {
    background: #fff;
    border: 2px solid #efd7ff;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 12px 25px rgba(171, 104, 209, 0.09);
}

.zmo-level-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #9250b4;
    font-weight: 700;
}

.zmo-question {
    font-size: 44px;
    font-weight: 800;
    color: #703f8f;
    letter-spacing: 1px;
}

.zmo-answer-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.zmo-answer-input {
    width: 100%;
    border: 2px solid #e8cfff;
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 24px;
    text-align: center;
    outline: none;
    background: #fff;
    color: #65357f;
}

.zmo-answer-input:focus {
    border-color: #ca93ff;
    box-shadow: 0 0 0 4px rgba(202, 147, 255, 0.18);
}

.zmo-btn {
    border: none;
    border-radius: 18px;
    padding: 16px 22px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.zmo-btn:hover {
    transform: translateY(-2px);
}

.zmo-btn-primary {
    background: linear-gradient(90deg, #ff99cf 0%, #c58cff 100%);
    color: #fff;
    box-shadow: 0 12px 25px rgba(183, 111, 230, 0.22);
}

.zmo-btn-secondary {
    background: #fff;
    color: #8a52ac;
    border: 2px solid #ebd3ff;
}

.zmo-feedback {
    min-height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #8749a8;
    padding: 12px 10px;
}

.zmo-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.zmo-summary-item {
    background: #fff;
    border: 2px solid #efd5ff;
    border-radius: 20px;
    padding: 18px;
    text-align: center;
}

.zmo-summary-item span {
    display: block;
    color: #8f68a8;
    font-size: 14px;
    margin-bottom: 8px;
}

.zmo-summary-item strong {
    color: #703f8f;
    font-size: 26px;
}

.zmo-finish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.zmo-hidden {
    display: none;
}

.zmo-confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.zmo-confetti {
    position: absolute;
    width: 10px;
    height: 18px;
    border-radius: 4px;
    opacity: 0.95;
    animation: zmoFall 1.8s linear forwards;
}

@keyframes zmoFall {
    0% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(700px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .zmo-card {
        padding: 18px;
        border-radius: 22px;
    }

    .zmo-header {
        flex-direction: column;
        align-items: stretch;
    }

    .zmo-header h2 {
        font-size: 24px;
    }

    .zmo-question {
        font-size: 36px;
    }

    .zmo-answer-input {
        font-size: 22px;
        padding: 16px;
    }

    .zmo-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 1.1: ekrandaki sayı tuşları ---------- */
.zmo-answer-input[readonly] {
    caret-color: transparent;
    cursor: default;
}

.zmo-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 340px;
    margin: 16px auto 0;
    touch-action: manipulation;
}

.zmo-numpad button {
    font: inherit;
    font-size: 30px;
    font-weight: 700;
    min-height: 64px;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #7a3e9d;
    box-shadow: 0 5px 0 #ead2fb, 0 8px 16px rgba(158, 92, 191, 0.12);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform .08s, box-shadow .08s;
}

.zmo-numpad button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #ead2fb;
}

.zmo-numpad .zmo-numpad-sil {
    background: #fff0f6;
    color: #d0457f;
}

.zmo-numpad .zmo-numpad-tamam {
    background: linear-gradient(135deg, #ff9bcf, #c999ff);
    color: #fff;
    box-shadow: 0 5px 0 #b77fe0;
}

.zmo-numpad.zmo-numpad-kucuk {
    max-width: 260px;
}

.zmo-numpad.zmo-numpad-kucuk button {
    min-height: 48px;
    font-size: 22px;
}
