/*
 * assets/css/lumiere-v2.css
 * İkinci faz ekranları: öncesi–sonrası oyunu, memnuniyet anketi,
 * karşılama ekranı ve tanıtım turu.
 * Renkler mobile/index.php içindeki :root değişkenlerinden okunur; Admin >
 * Tema sayfasından renk değiştirildiğinde bu ekranlar da birlikte değişir.
 */

.imggame-overlay, .survey-overlay, .tour-overlay, .welcome-overlay { position: fixed; inset: 0; z-index: 700; }
.imggame-overlay.hidden, .survey-overlay.hidden, .tour-overlay.hidden, .welcome-overlay.hidden { display: none !important; }

/* ================= HANGİ İŞLEM? ================= */
.imggame-overlay {
    display: flex; flex-direction: column;
    padding: calc(12px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: radial-gradient(circle at 85% -10%, rgba(212,183,153,.30), transparent 34%),
                linear-gradient(180deg, #fbf9f6, #f4eee7);
}
.imggame-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.imggame-close {
    width: 40px !important; min-width: 40px; height: 40px; padding: 0 !important; margin: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important; border: 1px solid rgba(116,82,58,.14) !important;
    background: rgba(255,255,255,.9) !important; color: var(--lm-brown-800, #593d2e) !important;
    box-shadow: none !important;
}
.imggame-close svg { width: 18px; height: 18px; }
.imggame-streak { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.sdots { display: flex; gap: 6px; }
.sd { width: 12px; height: 12px; border-radius: 50%; background: rgba(116,82,58,.16); transition: background .25s, transform .25s; }
.sd.on { background: linear-gradient(140deg, #c9a227, #a5762a); transform: scale(1.12); }
.slabel { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--lm-muted, #918278); text-transform: uppercase; }

.imggame-body { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.imggame-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.imggame-pair figure { margin: 0; }
.imggame-pair img {
    display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 18px; background: rgba(140,100,70,.08);
    box-shadow: 0 14px 34px rgba(49,31,20,.13);
}
.imggame-pair figcaption {
    margin-top: 7px; text-align: center; font-size: 10px; font-weight: 800;
    letter-spacing: .16em; color: var(--lm-muted, #918278);
}
.imggame-q { margin: 20px 0 12px; text-align: center; font-size: 18px; color: var(--lm-brown-900, #432d22); }
.imggame-opts { display: flex; flex-direction: column; gap: 9px; }
.imggame-opt {
    width: 100%; margin: 0 !important; padding: 15px 16px !important; text-align: left;
    border: 1px solid rgba(116,82,58,.14) !important; border-radius: 16px !important;
    background: rgba(255,255,255,.94) !important; color: var(--lm-brown-900, #432d22) !important;
    box-shadow: 0 6px 18px rgba(49,31,20,.06) !important; font-size: 14.5px !important; font-weight: 600 !important;
    transition: transform .15s, box-shadow .2s;
}
.imggame-opt:active { transform: scale(.985); }
.imggame-opt:disabled { opacity: 1; }
.imggame-opt.is-correct {
    border-color: transparent !important; color: #fff !important;
    background: linear-gradient(140deg, #3f8060, #2f7d5b) !important;
}
.imggame-opt.is-wrong {
    border-color: transparent !important; color: #fff !important;
    background: linear-gradient(140deg, #b0554f, #a3352f) !important;
}
.imggame-result { margin-top: 16px; }
.imggame-verdict { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; }
.imggame-verdict svg { width: 20px; height: 20px; }
.imggame-verdict.ok { color: #2f7d5b; }
.imggame-verdict.no { color: #a3352f; }
.imggame-exp {
    margin: 10px 0 0; padding: 11px 14px; border-radius: 13px;
    background: rgba(255,255,255,.78); font-size: 13px; line-height: 1.65; color: var(--lm-text, #594b42);
}
.imggame-grant {
    display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
    padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.6;
}
.imggame-grant svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.imggame-grant.win { color: #6d5410; background: #fdf6e3; border: 1px solid #efe0b8; }
.imggame-grant.info { color: #6b5a4c; background: rgba(255,255,255,.82); border: 1px solid rgba(116,82,58,.12); }
.imggame-next { width: 100%; margin-top: 16px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.imggame-msg { padding: 40px 20px; text-align: center; color: var(--lm-muted, #918278); font-size: 14px; line-height: 1.7; }

/* ================= ANKET ================= */
.survey-overlay {
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(30,18,11,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.survey-sheet {
    width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0; background: var(--lm-surface-solid, #fff);
    box-shadow: 0 -20px 60px rgba(46,28,17,.28);
}
.survey-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.survey-head h3 { margin: 0; font-size: 18px; color: var(--lm-brown-900, #432d22); }
.survey-close {
    width: 36px !important; min-width: 36px; height: 36px; padding: 0 !important; margin: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important; border: 1px solid rgba(116,82,58,.14) !important;
    background: rgba(250,247,243,.9) !important; color: var(--lm-brown-800, #593d2e) !important; box-shadow: none !important;
}
.survey-close svg { width: 16px; height: 16px; }
.survey-desc { margin: 10px 0 4px; font-size: 12.5px; line-height: 1.65; color: var(--lm-muted, #918278); }
.survey-q { padding: 16px 0; border-bottom: 1px solid rgba(116,82,58,.09); }
.survey-q:last-child { border-bottom: none; }
.survey-prompt { margin: 0 0 11px; font-size: 14px; font-weight: 650; line-height: 1.5; color: var(--lm-brown-900, #432d22); }
.survey-opt-tag { font-size: 10.5px; font-weight: 600; color: var(--lm-muted, #918278); }

.survey-stars { display: flex; gap: 6px; }
.survey-stars .star {
    width: auto !important; min-width: 0; margin: 0 !important; padding: 2px 4px !important;
    border: none !important; background: none !important; box-shadow: none !important;
    font-size: 30px !important; line-height: 1; color: rgba(116,82,58,.20) !important;
    transition: color .15s, transform .15s;
}
.survey-stars .star.on { color: #c9a227 !important; }
.survey-stars .star:active { transform: scale(1.15); }

.survey-nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.survey-nps .nps {
    width: 100% !important; min-width: 0; margin: 0 !important; padding: 9px 0 !important;
    border: 1px solid rgba(116,82,58,.14) !important; border-radius: 9px !important;
    background: rgba(250,247,243,.9) !important; color: var(--lm-brown-800, #593d2e) !important;
    box-shadow: none !important; font-size: 12px !important; font-weight: 700 !important;
}
.survey-nps .nps.on { color: #fff !important; background: linear-gradient(140deg, #7a5335, #a5762a) !important; border-color: transparent !important; }
.survey-nps-legend { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--lm-muted, #918278); }

.survey-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.survey-choices.col { flex-direction: column; }
.survey-choices .choice {
    width: auto !important; margin: 0 !important; padding: 11px 16px !important; text-align: left;
    border: 1px solid rgba(116,82,58,.14) !important; border-radius: 13px !important;
    background: rgba(250,247,243,.9) !important; color: var(--lm-brown-900, #432d22) !important;
    box-shadow: none !important; font-size: 13.5px !important; font-weight: 600 !important;
}
.survey-choices.col .choice { width: 100% !important; }
.survey-choices .choice.on { color: #fff !important; background: linear-gradient(140deg, #7a5335, #a5762a) !important; border-color: transparent !important; }

.survey-text { width: 100%; border-radius: 13px; }
.survey-actions { margin-top: 18px; }
.survey-submit { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.survey-later {
    width: 100%; margin-top: 8px !important; border: none !important; background: none !important;
    box-shadow: none !important; color: var(--lm-muted, #918278) !important; font-size: 13px !important; font-weight: 600 !important;
}
.survey-err { margin-top: 10px; text-align: center; font-size: 12.5px; color: #a3352f; }
.survey-done { padding: 26px 10px 10px; text-align: center; }
.survey-done svg { width: 42px; height: 42px; color: #c9a227; }
.survey-done h3 { margin: 14px 0 6px; font-size: 18px; color: var(--lm-brown-900, #432d22); }
.survey-done p { margin: 0 0 18px; font-size: 13px; color: var(--lm-muted, #918278); }
.survey-done button { width: 100%; }

/* ================= KARŞILAMA ================= */
.welcome-overlay {
    display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
    background: radial-gradient(circle at 80% -8%, rgba(212,183,153,.34), transparent 36%),
                linear-gradient(180deg, #fbf9f6, #f3ece4);
}
.welcome-card {
    width: 100%; max-width: 460px; max-height: 94vh; overflow-y: auto;
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
    border-radius: 26px; background: rgba(255,255,255,.96);
    box-shadow: 0 26px 70px rgba(49,31,20,.16);
}
.welcome-mark {
    width: 58px; height: 58px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; background: linear-gradient(140deg, #c9a227, #a5762a);
    box-shadow: 0 12px 28px rgba(165,118,42,.30);
}
.welcome-mark svg { width: 27px; height: 27px; }
.welcome-card h2 { margin: 0; text-align: center; font-size: 23px; color: var(--lm-brown-900, #432d22); }
.welcome-lead { margin: 9px 0 20px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--lm-muted, #918278); }
.welcome-list { margin: 0 0 22px; padding: 0; list-style: none; }
.welcome-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid rgba(116,82,58,.09); }
.welcome-list li:first-child { border-top: none; }
.welcome-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--lm-gold, #b69062); }
.welcome-list strong { display: block; font-size: 14px; color: var(--lm-brown-900, #432d22); }
.welcome-list span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--lm-muted, #918278); }
.welcome-start { width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.welcome-skip {
    width: 100%; margin-top: 8px !important; border: none !important; background: none !important;
    box-shadow: none !important; color: var(--lm-muted, #918278) !important; font-size: 13px !important; font-weight: 600 !important;
}

/* ================= TUR ================= */
.tour-overlay {
    display: flex; align-items: flex-end; justify-content: center; padding: 14px;
    /* Zemin şeffaf: kullanıcı anlatılan sekmeyi arkada görsün diye. */
    background: linear-gradient(180deg, rgba(30,18,11,0) 0%, rgba(30,18,11,.34) 42%, rgba(30,18,11,.62) 100%);
    pointer-events: none;
}
.tour-card {
    pointer-events: auto; width: 100%; max-width: 460px;
    padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px; background: rgba(255,255,255,.98);
    box-shadow: 0 22px 60px rgba(46,28,17,.34);
}
.tour-step { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--lm-gold, #b69062); text-transform: uppercase; }
.tour-card h3 { margin: 7px 0 8px; font-size: 19px; color: var(--lm-brown-900, #432d22); }
.tour-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.68; color: var(--lm-text, #594b42); }
.tdots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.tdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(116,82,58,.18); transition: width .25s; }
.tdot.on { width: 20px; border-radius: 4px; background: linear-gradient(90deg, #c9a227, #a5762a); }
.tour-actions { display: flex; gap: 10px; align-items: center; }
.tour-actions button { margin: 0 !important; }
.tour-prev {
    flex: 0 0 auto; width: auto !important; padding: 12px 18px !important;
    border: 1px solid rgba(116,82,58,.16) !important; background: rgba(250,247,243,.9) !important;
    color: var(--lm-brown-800, #593d2e) !important; box-shadow: none !important;
}
.tour-next { flex: 1; }
.tour-skip {
    width: 100%; margin-top: 8px !important; border: none !important; background: none !important;
    box-shadow: none !important; color: var(--lm-muted, #918278) !important; font-size: 12.5px !important; font-weight: 600 !important;
}

/* ================= ÜCRETSİZ ÇARK ROZETİ ================= */
.free-spin-badge {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
    padding: 8px 14px; border-radius: 22px; font-size: 12px; font-weight: 750;
    color: #6d5410; background: linear-gradient(140deg, #fdf3d6, #f7e6b4);
    border: 1px solid #eeda9f; box-shadow: 0 8px 20px rgba(201,162,39,.18);
}
.free-spin-badge svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------
   Kazanilan cark hakki -> Odul Oyunu'na goturen CTA.
------------------------------------------------------------------ */
.wheel-grant-cta {
    margin: 14px 0 4px;
    padding: 16px 14px;
    border: 1px solid rgba(165, 118, 42, .28);
    border-radius: 16px;
    background: linear-gradient(150deg, #fff6e8, #f7e7cf);
    box-shadow: 0 10px 26px rgba(120, 84, 40, .12);
    text-align: center;
}
.wheel-grant-cta-title { font-size: 17px; font-weight: 800; color: #7a4f22; }
.wheel-grant-cta-text { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; color: #6b5a4e; }
.wheel-grant-cta-btn {
    display: block; width: 100%; margin: 0; padding: 14px 16px;
    border: 0; border-radius: 13px;
    background: linear-gradient(135deg, #8a5a3a, #b98a54);
    color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer;
    box-shadow: 0 8px 20px rgba(122, 79, 34, .28);
}
.wheel-grant-cta-btn:active { transform: translateY(1px); }
