/* v1.4.0 — configurable colors, theme-font inheritance, segment-aligned labels and stable form fields. */
.wtlw-theme-scope {
    --wtlw-primary: #171717;
    --wtlw-secondary: #2b2b2b;
    --wtlw-accent: #c7a35a;
    --wtlw-background: #0d0d0f;
    --wtlw-surface: #1b1b1e;
    --wtlw-text: #f7f3e8;
    --wtlw-muted-custom: #c9c0ae;
    direction: rtl;
    font-family: inherit !important;
}

.wtlw-theme-scope *,
.wtlw-account,
.wtlw-account *,
.wtlw-notice,
.wtlw-notice * {
    font-family: inherit !important;
}

.wtlw-is-hidden { display: none !important; }
.wtlw-popup-shell[hidden] { display: none !important; }

.wtlw-theme-scope .wtlw-app {
    color: var(--wtlw-text);
    border-color: var(--wtlw-accent);
    background:
        radial-gradient(circle at 82% 2%, var(--wtlw-secondary) 0, transparent 33%),
        radial-gradient(circle at 8% 96%, var(--wtlw-primary) 0, transparent 31%),
        linear-gradient(145deg, var(--wtlw-primary) 0%, var(--wtlw-background) 72%);
    box-shadow: 0 28px 74px rgba(0,0,0,.38);
}
.wtlw-theme-scope .wtlw-app:before {
    opacity: .18;
    background-image:
        linear-gradient(45deg, transparent 45%, var(--wtlw-accent) 45% 50%, transparent 50%),
        linear-gradient(-45deg, transparent 45%, var(--wtlw-accent) 45% 50%, transparent 50%);
}
.wtlw-theme-scope .wtlw-kicker,
.wtlw-theme-scope .wtlw-attempt-icon,
.wtlw-theme-scope .wtlw-result-sparkle { color: var(--wtlw-accent); }
.wtlw-theme-scope .wtlw-hero h2,
.wtlw-theme-scope .wtlw-form-heading h3,
.wtlw-theme-scope .wtlw-app label { color: var(--wtlw-text); }
.wtlw-theme-scope .wtlw-hero p,
.wtlw-theme-scope .wtlw-form-heading p,
.wtlw-theme-scope .wtlw-trust-row,
.wtlw-theme-scope .wtlw-result-name,
.wtlw-theme-scope .wtlw-result-code { color: var(--wtlw-muted-custom); }
.wtlw-theme-scope .wtlw-register-form {
    border-color: var(--wtlw-secondary);
    background: var(--wtlw-surface);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px rgba(0,0,0,.18);
}
.wtlw-theme-scope .wtlw-app input {
    color: var(--wtlw-text);
    border-color: var(--wtlw-secondary);
    background: var(--wtlw-background) !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.wtlw-theme-scope .wtlw-app input:focus,
.wtlw-theme-scope .wtlw-app input:not(:placeholder-shown) {
    background: var(--wtlw-background) !important;
}
.wtlw-theme-scope .wtlw-app input:-webkit-autofill,
.wtlw-theme-scope .wtlw-app input:-webkit-autofill:hover,
.wtlw-theme-scope .wtlw-app input:-webkit-autofill:focus,
.wtlw-theme-scope .wtlw-app input:autofill {
    -webkit-text-fill-color: var(--wtlw-text) !important;
    caret-color: var(--wtlw-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--wtlw-background) inset !important;
    box-shadow: 0 0 0 1000px var(--wtlw-background) inset !important;
    background: var(--wtlw-background) !important;
}
.wtlw-theme-scope .wtlw-app input:focus {
    border-color: var(--wtlw-accent);
    box-shadow: 0 0 0 3px rgba(199,163,90,.16);
}
.wtlw-theme-scope .wtlw-button {
    color: var(--wtlw-background);
    border-color: var(--wtlw-accent);
    background: var(--wtlw-accent);
    box-shadow: 0 11px 28px rgba(0,0,0,.24);
}
.wtlw-theme-scope .wtlw-button:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 15px 34px rgba(0,0,0,.3);
}
.wtlw-theme-scope .wtlw-badge,
.wtlw-theme-scope .wtlw-attempt-count {
    color: var(--wtlw-background);
    border-color: var(--wtlw-accent);
    background: var(--wtlw-accent);
}
.wtlw-theme-scope .wtlw-attempts {
    color: var(--wtlw-text);
    border-color: var(--wtlw-accent);
    background: var(--wtlw-surface);
}
.wtlw-theme-scope .wtlw-wheel-stage:before {
    box-shadow: 0 0 0 4px var(--wtlw-accent), 0 0 34px 8px rgba(0,0,0,.4), inset 0 0 0 10px var(--wtlw-background);
}
.wtlw-theme-scope .wtlw-pointer { border-top-color: var(--wtlw-accent); }
.wtlw-theme-scope .wtlw-wheel { border-color: var(--wtlw-secondary); }

/* Prize labels follow the center axis of each segment and stay readable on the lower half. */
.wtlw-theme-scope .wtlw-wheel-labels span {
    width: 116px;
    margin-left: -58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transform: rotate(var(--wtlw-label-angle)) translateY(-118px) rotate(var(--wtlw-label-flip, 0deg));
    transform-origin: 50% 50%;
    text-align: center;
}
.wtlw-theme-scope .wtlw-segment-icon {
    display: block;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
}
.wtlw-theme-scope .wtlw-wheel-labels b {
    width: 108px;
    max-width: 108px;
    margin: 0 auto;
    overflow: visible;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
    font-size: 10px;
    line-height: 1.55;
    font-weight: 800;
}

.wtlw-theme-scope .wtlw-wheel:after { background: none; }
.wtlw-theme-scope .wtlw-wheel-hub {
    color: var(--wtlw-accent);
    border-color: var(--wtlw-accent);
    background: radial-gradient(circle at 35% 30%, var(--wtlw-secondary), var(--wtlw-background) 72%);
    box-shadow: 0 0 0 6px var(--wtlw-background), 0 0 18px rgba(0,0,0,.44);
}
.wtlw-welcome { margin: 0 auto 12px; color: var(--wtlw-muted-custom); font-size: 13px; }
.wtlw-welcome strong { color: var(--wtlw-accent); }
.wtlw-theme-scope .wtlw-popup-dialog { border-color: var(--wtlw-accent); background: var(--wtlw-background); }
.wtlw-theme-scope .wtlw-popup-backdrop,
.wtlw-theme-scope .wtlw-modal-backdrop { background: rgba(0,0,0,.82); }
.wtlw-theme-scope .wtlw-popup-close { color: var(--wtlw-text); border-color: var(--wtlw-accent); background: var(--wtlw-surface); }
.wtlw-theme-scope .wtlw-modal-card { color: var(--wtlw-text); border-color: var(--wtlw-accent); background: linear-gradient(145deg, var(--wtlw-secondary), var(--wtlw-background)); }
.wtlw-theme-scope .wtlw-result-code code { color: var(--wtlw-accent); border-color: var(--wtlw-accent); background: var(--wtlw-surface); }

html.wtlw-popup-open,
html.wtlw-popup-open body { overflow: hidden !important; }

@media (max-width: 560px) {
    .wtlw-form-grid-two { grid-template-columns: 1fr; }
    .wtlw-theme-scope .wtlw-app { padding-top: 34px; }
    .wtlw-theme-scope .wtlw-wheel-labels span {
        width: 92px;
        margin-left: -46px;
        transform: rotate(var(--wtlw-label-angle)) translateY(-101px) rotate(var(--wtlw-label-flip, 0deg));
    }
    .wtlw-theme-scope .wtlw-wheel-labels b {
        width: 86px;
        max-width: 86px;
        font-size: 8.5px;
        line-height: 1.45;
    }
    .wtlw-theme-scope .wtlw-segment-icon { font-size: 16px; }
}
