/* =================================================
   Dating Game Pro – HARD CODED THEME
   ================================================= */


/* =================================================
   GAME WRAPPER – כל המסכים
   ================================================= */

.dgp-game-wrapper {
    max-width: 720px;
    margin: 24px auto;
    padding: 24px 18px;
    border-radius: 22px;

    /* 🔧 רקע זהה אך פחות בוהק */
    background: linear-gradient(
        160deg,
        rgba(255, 81, 47, 0.85),
        rgba(240, 152, 25, 0.85)
    );

    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    box-sizing: border-box;
    direction: rtl;

    font-family: -apple-system, BlinkMacSystemFont,
                 "Segoe UI", "Heebo", "Alef", sans-serif;
    color: #ffffff;
}


/* =================================================
   SCREENS
   ================================================= */

.dgp-screen {
    display: none;
}


/* =================================================
   HEADINGS – כחול בלבד
   ================================================= */

.dgp-screen-title,
.dgp-welcome-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: #1e3a8a;
}


/* =================================================
   BODY TEXT – 17px, לבן, ימין
   ================================================= */

.dgp-screen-text,
.dgp-welcome-subtitle,
.dgp-skip-counter,
.dgp-access-description,
.dgp-access-help-text {
    font-size: 17px;
    line-height: 1.55;
    text-align: right;
    color: rgba(255,255,255,0.92);
}


/* =================================================
   LEVEL SELECT
   ================================================= */

.dgp-level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 440px;
    margin: 0 auto 24px;
}

@media (max-width: 600px) {
    .dgp-level-grid {
        grid-template-columns: 1fr;
    }
}

.dgp-level-btn {
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #fff3e0);
    color: #e65100;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.dgp-level-btn:active {
    transform: scale(0.97);
}


/* =================================================
   CARD
   ================================================= */

.dgp-card-display {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.dgp-card {
    width: min(100%, 420px);
    min-height: 200px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    padding: 20px 18px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


/* =================================================
   LOGO – שמאל עליון
   ================================================= */

.dgp-card-logo {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    pointer-events: none;
}


/* =================================================
   CARD TYPE BADGE – ימין עליון
   ================================================= */

.dgp-card-type-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff512f, #f09819);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}


/* =================================================
   CARD CONTENT – מרכז
   ================================================= */

.dgp-card-content {
    margin: auto;
    text-align: center;
    font-size: 17px;
    line-height: 1.55;
    color: #2b2b2b;
}


/* =================================================
   LOADER
   ================================================= */

.dgp-card-loader {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.dgp-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.15);
    border-top-color: #ff512f;
    border-radius: 50%;
    animation: dgp-spin .8s linear infinite;
}

@keyframes dgp-spin {
    to { transform: rotate(360deg); }
}


/* =================================================
   CONTROLS – אמת / חובה / דלג / מיצינו
   ================================================= */

.dgp-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

@media (max-width: 360px) {
    .dgp-controls {
        flex-wrap: wrap;
    }
}

.dgp-btn {
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ff512f, #f09819);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,0.32);
}

.dgp-btn:active {
    transform: scale(0.96);
}


/* =================================================
   SKIP COUNTER
   ================================================= */

.dgp-skip-counter {
    margin-top: 18px;
    text-align: center;
    font-size: 17px;
    color: rgba(255,255,255,0.92);
}


/* =================================================
   WELCOME – כפתור התחלה ממורכז
   ================================================= */

.dgp-welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center; /* כפתורים נשארים במרכז */
}

/* 🔧 תיקון: טקסט ההסבר מיושר לימין */
.dgp-welcome-subtitle {
    align-self: stretch;
    text-align: right;
}

#dgp-welcome-start-btn {
    display: inline-flex;
    margin-inline: auto;
}


/* =================================================
   ACCESS GATE – כפתור אימות ממורכז
   ================================================= */

.dgp-access-gate {
    display: flex;
    justify-content: center;
    padding: 32px 18px;
}

.dgp-access-content {
    max-width: 420px;
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    text-align: center;
}

.dgp-access-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dgp-access-form button {
    margin-inline: auto;
}

.dgp-access-form input {
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid #ddd;
    font-size: 17px;
    text-align: center;
}

.dgp-access-error {
    color: #d32f2f;
    font-size: 17px;
}
