/* Explain: Styles for the wheel-based security gate. */
/* --------------------------------------------------
   Çarkıfelek sayı doğrulama kapısı (ilk giriş)
-------------------------------------------------- */
.wheel-gate {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: radial-gradient(circle at 30% 25%, rgba(242, 106, 33, 0.1) 0%, transparent 45%), var(--background-color);
    transition: opacity 0.4s ease;
}

.wheel-gate.is-done {
    opacity: 0;
    pointer-events: none;
}

.wheel-gate__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 22px 18px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.wheel-gate__mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.5rem;
}

.wheel-gate__title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color);
}

.wheel-gate__stage {
    margin-top: 6px;
}

.wheel {
    position: relative;
    width: 146px;
    height: 146px;
    margin: 0 auto;
}

.wheel__face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 6px solid #ffffff;
    background: conic-gradient(
        #f97316 0deg 45deg, #fdba74 45deg 90deg,
        #f97316 90deg 135deg, #fdba74 135deg 180deg,
        #f97316 180deg 225deg, #fdba74 225deg 270deg,
        #f97316 270deg 315deg, #fdba74 315deg 360deg
    );
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55), 0 14px 30px rgba(234, 88, 12, 0.22);
    transform: rotate(0deg);
    transition: transform 3.4s cubic-bezier(0.17, 0.67, 0.16, 1);
}

.wheel__hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(31, 36, 48, 0.16);
}

.wheel__hub img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.wheel__pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 0;
    height: 0;
    margin-inline-start: -9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 16px solid var(--primary-color);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
    z-index: 2;
}

.wheel-gate__spin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wheel-gate__spin:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.34);
}

.wheel-gate__spin:disabled {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

.wheel-gate__result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.wheel-gate__result-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.wheel-gate__result-num {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

.wheel-gate__timer {
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.wheel-gate__field {
    display: grid;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.wheel-gate__field label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-color);
}

.wheel-gate__field input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8f6f1;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wheel-gate__field input::placeholder {
    color: rgba(138, 133, 120, 0.6);
    letter-spacing: normal;
}

.wheel-gate__field input:focus {
    outline: none;
    border-color: rgba(242, 106, 33, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.13);
}

.wheel-gate__status {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
}

.wheel-gate__status.is-error {
    color: #dc2626;
}

.wheel-gate__status.is-ok {
    color: #1e9e4e;
}

.wheel-gate__notice {
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: #dc2626;
}

/* --------------------------------------------------
   Kapı görünürlüğü — sayfa geçişlerinde titreme olmaması için
   görünürlük html üzerindeki data-gate ile kontrol edilir
-------------------------------------------------- */
.wheel-gate,
.verify-gate {
    display: none;
}

html[data-gate="wheel"] .wheel-gate,
html[data-gate="verify"] .verify-gate {
    display: flex;
}