﻿/*
 * پالت ثابت بازی‌ها
 * این فایل همیشه آخر بارگذاری می‌شود و به تنظیم dark/light دستگاه وابسته نیست.
 */
:root,
html,
body {
    color-scheme: dark;
}

button,
input,
textarea,
select {
    forced-color-adjust: none;
    -webkit-forced-color-adjust: none;
}

.sendmessagebox,
.sendmessagebox .messagetextbox {
    background-color: #ffffff !important;
}

.messagetextbox {
    background-color: #eeeeee !important;
}

textarea.messagetext,
#txttext {
    background-color: transparent !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    caret-color: #111111 !important;
}

.messagetext::placeholder,
#txttext::placeholder {
    color: #666666 !important;
    -webkit-text-fill-color: #666666 !important;
    opacity: 1;
}

button {
    -webkit-appearance: none;
    appearance: none;
}

/* دکمه‌های عمومی */
.btnyellow,
.btnyellow_fnew,
.btnyellownew,
.btnyellownew_2 {
    background-color: #ffde01 !important;
    color: #111 !important;
}

.btngreen,
.btngreennew,
.btngreennew_2 {
    background-color: #57d686 !important;
    background-image: linear-gradient(180deg, #77ffab, #57d686) !important;
    color: #111 !important;
}

.btnrednew {
    background-color: #c31b1b !important;
    background-image: linear-gradient(180deg, #ff4f4f, #c31b1b) !important;
    color: #fff !important;
}

.btnwhitenew,
.btnwhite,
.btnwhiteitem,
.btnwhiteback,
.btnwhitehelp {
    background-color: #f1f1f1 !important;
    color: #111 !important;
}

/* پوسته و کنترل‌های مشترک بازی‌ها */
.fgs-page .navback,
.fgs-page .btnwhiteback,
.fgs-page .fgs-top__back,
.fws-page .navback,
.fws-page .btnwhiteback,
.fws-page .fws-top__back {
    background-color: #f1f1f1 !important;
}

.fgs-stage {
    background-color: #243443 !important;
}

.fgs-page .fgs-rounds .fgs-chip,
.fgs-page .fgs-rounds.tab div.fgs-chip {
    background-color: #243443 !important;
}

.fgs-page .fgs-chip.active,
.fgs-page .fgs-rounds.tab div.fgs-chip.active {
    background-color: var(--fgs-accent) !important;
}

/* پنالتی: کارت‌ها، دکمه‌ها و نمایش باد */
.fpn-hubcard {
    background-color: #172738 !important;
    background-image: linear-gradient(165deg, #1c3348 0%, #172738 52%, #13202e 100%) !important;
}

.fpn-hubcard.is-tour {
    background-color: #16344b !important;
    background-image: linear-gradient(165deg, #1d4966 0%, #17364d 48%, #132638 100%) !important;
}

.fpn-hubcard.is-ch {
    background-color: #30251f !important;
    background-image: linear-gradient(165deg, #3b2b22 0%, #2c2422 52%, #201c1d 100%) !important;
}

.fpn-hubcard.is-hot {
    background-color: #2d2c20 !important;
    background-image: linear-gradient(165deg, #393723 0%, #29291f 52%, #1d1e1b 100%) !important;
}

.fpn-hubcard__start,
.fpn-hubcard__start--stages {
    color: #082f49 !important;
    background-color: #38bdf8 !important;
    background-image: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 55%, #0ea5e9 100%) !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

.fpn-ch-item {
    background-color: #17243a !important;
}

.fpn-ch-item__timer-row {
    background-color: #111d31 !important;
}

.fpn-ch-item.is-cooldown .fpn-ch-item__timer-row {
    background-color: #332a19 !important;
}

.fpn-ch-item__btn {
    background-color: #16a34a !important;
    background-image: linear-gradient(180deg, #4ade80 0%, #16a34a 100%) !important;
    color: #052e16 !important;
}

.fpn-ch-item__btn.is-heart {
    background-color: #0284c7 !important;
    background-image: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #0f172a !important;
}

.fpn-ch-item__btn.is-muted {
    background-color: #334155 !important;
    background-image: none !important;
    color: #aebaca !important;
}

.fpn-card {
    background-color: #172535 !important;
    background-image: linear-gradient(180deg, #26394c 0%, #172535 58%, #101923 100%) !important;
}

.fpn-card__btn {
    background-color: #5eead4 !important;
    background-image: linear-gradient(180deg, #bffaf0, #5eead4) !important;
    color: #042f2e !important;
}

.fpn-card__btn--ghost,
.fpn-mode {
    background-color: #263544 !important;
    background-image: none !important;
    color: #e8eef5 !important;
}

.fpn-mode.is-bot {
    background-image: linear-gradient(180deg, #24504c, #263544) !important;
}

.fpn-mode.is-hot {
    background-image: linear-gradient(180deg, #243b66, #263544) !important;
}

.fpn-wind__glass {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.fpn-wind__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 14px;
}

.fpn-wind__head,
.fpn-wind__track {
    position: relative;
    z-index: 1;
}

.fpn-wind__track {
    background: transparent !important;
    border-color: transparent !important;
    min-height: 22px;
}

.fpn-wind__glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.fpn-wind__icon {
    color: #7dd3fc !important;
}

.fpn-wind__flow {
    display: none !important;
}

.fpn-wind__label {
    color: #f0f9ff !important;
}

/* سودوکو */
.fgs-sd .fsd-modes__track {
    background-color: #14242b !important;
}

.fgs-sd .fsd-modebtn {
    background-color: #263840 !important;
}

.fgs-sd .fsd-modebtn.is-on {
    background-color: #23514e !important;
    background-image: linear-gradient(180deg, #2d625e, #214743) !important;
}

.fgs-sd .fsd-diff {
    background-color: #263840 !important;
}

/* کلمه‌یابی، حدس کلمه و حافظه */
.fws-page .catagoryname,
.fws-top__round,
.fws-words li,
#words li {
    background-color: #344657 !important;
}

.fws-words li.is-hot {
    background-color: #265342 !important;
}

.fws-words li.is-complete,
#words .wordFound,
.fws-words .wordFound {
    background-color: #21613d !important;
}

.fwg-cluebox {
    background-color: #293746 !important;
    background-image: linear-gradient(165deg, #514a24 0%, #293746 42%, #1b2734 100%) !important;
}

.fwg-board {
    background-color: #2a3949 !important;
    background-image: linear-gradient(180deg, #344657 0%, #263543 100%) !important;
}

.fwg-slot {
    background-color: #172535 !important;
}

.fwg-keygrid {
    background-color: #17232f !important;
}

/* کارت‌بازی */
.fcg-hero {
    background-color: #202938 !important;
}

.fcg-hub-card {
    background-color: #202938 !important;
}

.fcg-btn-ghost,
.fcg-action-bar__btn--ghost,
.fcg-lg-btn.is-ghost {
    background-color: #293747 !important;
    color: #fff !important;
}

.fcg-cta,
.fcg-action-bar__btn--go,
.fcg-lg-btn {
    background-color: #57d686 !important;
    color: #111 !important;
}

/* جام جهانی و فرم‌های پیش‌بینی */
.wc26-standings-mode {
    background-color: #261022 !important;
}

.wc26-match-card {
    background-color: #32132f !important;
}

.wc26-mode-btn.active {
    background-color: #ffde01 !important;
    color: #120210 !important;
}

/* مودال‌های عمومی */
#alertbox .alertbox,
#qalertbox .qalertbox,
#notheart .notheart,
#helpbox .helpbox,
#balertbox .balertbox {
    color-scheme: dark;
}
