/* ==========================================================================
   Jadvaliga light edition
   Shared by the public app, the admin panel and the player portal.
   The controller is assets/theme.js and stores the choice in localStorage.
   ========================================================================== */
html.light{color-scheme:light;background:#f4efe5}
html.light body{
  --ink:#f7f2e9; --ink-2:#fcf8f1;
  --panel:#fffdf9; --panel-2:#f8f2e7; --panel-3:#f1e8da;
  --line:#ded3c2; --line-2:#c8bba8; --line-soft:#eae0d2;
  --bg:#f4efe5; --bg-soft:#fbf7f0;
  --txt:#1c2634; --muted:#4f5f73; --muted-2:#56657a;
  --mut:#4f5f73; --mut-2:#56657a;
  --gold:#8a5a06; --gold-2:#6f4a03; --gold-soft:rgba(155,101,6,.10);
  --green:#08704d; --green-soft:rgba(11,132,90,.11);
  --red:#b33644; --red-soft:rgba(189,62,77,.10);
  --blue:#2a5fba; --blue-soft:rgba(45,100,192,.10);
  --violet:#7b4bb7;
  --shadow:0 24px 65px -34px rgba(82,62,27,.30);
  background:
    radial-gradient(1000px 580px at 96% -8%,rgba(198,151,48,.16),transparent 60%),
    radial-gradient(900px 620px at 0% 100%,rgba(73,124,190,.10),transparent 60%),
    #f4efe5 !important;
  color:var(--txt);
}
html.light body::selection{background:rgba(155,101,6,.22)}
html.light body ::-webkit-scrollbar-thumb{background:#c9bca8;border-color:#f4efe5}
html.light body :focus-visible{outline-color:#9b6506}

/* ------------------------------------------------------------------ shell */
html.light body .topbar,
html.light body .app-topbar,
html.light body .player-topbar{
  background:rgba(253,250,244,.91) !important;
  border-color:var(--line) !important;
  box-shadow:0 8px 28px -24px rgba(62,47,20,.55);
}
html.light body .sidebar{
  background:rgba(253,250,244,.98) !important;
  border-left-color:var(--line) !important;
}
html.light body .app-footer,
html.light body .player-footer,
html.light body .site-footer{border-color:var(--line) !important;color:var(--muted-2) !important}
html.light body .mobile-bottom-nav,
html.light body .admin-bottom-nav,
html.light body .player-bottom-nav{
  background:rgba(253,250,244,.96) !important;
  border-color:rgba(155,101,6,.22) !important;
  box-shadow:0 16px 42px -22px rgba(80,60,25,.45) !important;
}
html.light body .mobile-bottom-nav button,
html.light body .admin-bottom-nav button,
html.light body .player-bottom-nav a,
html.light body .player-bottom-nav button{color:#56657a !important}
html.light body .mobile-bottom-nav button.on,
html.light body .admin-bottom-nav button.active{background:rgba(155,101,6,.11) !important;color:var(--gold) !important}

html.light body .mode-nav,
html.light body .segmented,
html.light body .auth-tabs,
html.light body .tabs,
html.light body .night-chip,
html.light body .account-chip,
html.light body .date-chip,
html.light body .icon-btn,
html.light body .icon-ghost,
html.light body .tag,
html.light body .badge,
html.light body .stage-pill{
  background:#fbf7f0 !important;
  border-color:var(--line) !important;
  color:var(--muted) !important;
}
html.light body .mode-nav button.on,
html.light body .segmented button.on,
html.light body .auth-tab.active,
html.light body .auth-tabs button.on,
html.light body .tab.active{
  background:rgba(155,101,6,.12) !important;color:var(--gold) !important;
}
html.light body .night-chip b,
html.light body .account-chip .avatar{color:var(--gold) !important}
html.light body .account-chip .avatar{background:rgba(155,101,6,.1) !important;border-color:rgba(155,101,6,.24) !important}

/* ------------------------------------------------------------------ cards */
html.light body .card,
html.light body .metric,
html.light body .feature,
html.light body .winner-card,
html.light body .hud,
html.light body .grid-card,
html.light body .clues-card,
html.light body .result-card,
html.light body .official-box,
html.light body .record-box,
html.light body .modal,
html.light body .jalali-card,
html.light body .stat-card,
html.light body .login-card,
html.light body .auth-card,
html.light body .welcome-copy,
html.light body .sponsor-card,
html.light body .league-card,
html.light body .quiz-shell,
html.light body .result-shell,
html.light body .table-card,
html.light body .detail-item,
html.light body .board-row,
html.light body .sponsor-live,
html.light body .sponsor-live-body,
html.light body .promo,
html.light body .daily-slot{
  background:#fffdf9 !important;
  border-color:var(--line) !important;
  box-shadow:0 13px 34px -30px rgba(75,57,24,.45) !important;
  color:var(--txt) !important;
}
html.light body .sponsor-live-head,
html.light body .quiz-head,
html.light body .quiz-foot,
html.light body .result-top,
html.light body .result-foot,
html.light body .modal-head,
html.light body .modal-foot,
html.light body .card-head,
html.light body .tonight-head,
html.light body .section-head{border-color:var(--line) !important}
html.light body .hero{
  background:
    radial-gradient(circle at 18% 12%,rgba(198,151,48,.18),transparent 35%),
    radial-gradient(circle at 88% 82%,rgba(73,124,190,.11),transparent 38%),
    linear-gradient(145deg,#fffdf8,#f4ecdf 70%) !important;
  border-color:rgba(155,101,6,.22) !important;
}
html.light body .hero::after{opacity:.22}
html.light body .hero p{color:#536176 !important}
html.light body .hero-art{border-color:rgba(86,66,27,.16) !important;background:#e7ddcc !important}
html.light body .hero-art::after{background:linear-gradient(180deg,transparent 42%,rgba(48,38,20,.56)) !important}
html.light body .art-note b{color:#fff}
html.light body .art-note small{color:#ece3d2}
html.light body .tonight::before{background:radial-gradient(circle,rgba(155,101,6,.12),transparent 68%)}
html.light body .countdown{color:#8b5b06}
html.light body .prize{background:#fbf6ed !important;border-color:var(--line) !important}
html.light body .daily-slot{background:rgba(198,151,48,.08) !important;border-color:rgba(155,101,6,.20) !important;box-shadow:none !important}
html.light body .daily-slot.upcoming{background:rgba(73,124,190,.07) !important;border-color:rgba(73,124,190,.18) !important}
html.light body .daily-slot-art{opacity:.12;filter:none}
html.light body .login-note{background:rgba(45,100,192,.06) !important;border-color:rgba(45,100,192,.16) !important;color:#355a91 !important}
html.light body .login-note b{color:#1c2634 !important}
html.light body .start-schedule-note{background:rgba(155,101,6,.07) !important;border-color:rgba(155,101,6,.18) !important}
html.light body .start-schedule-note b{color:#6b4704 !important}

html.light body .puzzle-card{
  background-color:#fffdf9 !important;
  background-image:linear-gradient(155deg,rgba(255,253,249,.90),rgba(248,242,231,.82)),var(--cover) !important;
  border-color:var(--line) !important;
  box-shadow:0 10px 26px -24px rgba(75,57,24,.5) !important;
}
html.light body .puzzle-card:hover{border-color:rgba(155,101,6,.40) !important;box-shadow:0 18px 38px -26px rgba(75,57,24,.45) !important}
html.light body .pc-art{opacity:.13}
html.light body .pc-icon{background:color-mix(in srgb,var(--accent,#9b6506) 12%,transparent) !important}
html.light body .pc-title,
html.light body .pc-meta b,
html.light body .metric .v,
html.light body .result-title,
html.light body .active-clue .text,
html.light body .clue,
html.light body .clue b,
html.light body .option,
html.light body .check-line,
html.light body .detail-item-head strong,
html.light body .result-stats b,
html.light body .cell-main,
html.light body .chart-col b,
html.light body .board-name,
html.light body .league-meta span{color:var(--txt) !important}
html.light body .pc-sub,
html.light body .muted,
html.light body .tiny{color:var(--muted) !important}
html.light body .pc-foot{border-top-color:var(--line) !important}
html.light body .tag.gold,
html.light body .badge-gold{background:#f7eccb !important;color:#815405 !important;border-color:#e6d19b !important}
html.light body .tag,
html.light body .badge-blue{background:#eaf2fd !important;color:#2b5a9e !important;border-color:#cbdff5 !important}
html.light body .badge-green{background:#e5f6ef !important;color:#08734f !important;border-color:#bde7d8 !important}
html.light body .badge-red{background:#fcebed !important;color:#a83241 !important;border-color:#f0c4cb !important}
html.light body .badge-muted{color:var(--muted-2) !important}

/* ---------------------------------------------------------------- controls */
html.light body input,
html.light body select,
html.light body textarea,
html.light body .search,
html.light body .select{
  background:#fffdf9 !important;color:var(--txt) !important;border-color:var(--line) !important;
}
html.light body input:focus,
html.light body select:focus,
html.light body textarea:focus,
html.light body .search:focus,
html.light body .select:focus{border-color:rgba(155,101,6,.55) !important;background:#fffefb !important;box-shadow:0 0 0 3px rgba(155,101,6,.09) !important}
html.light body input::placeholder,
html.light body textarea::placeholder{color:#6f6b63 !important}
html.light body .btn-ghost,
html.light body .icon-btn,
html.light body .icon-ghost,
html.light body .jalali-display,
html.light body .jalali-nav,
html.light body .modal-close{
  background:#fffdf9 !important;border-color:var(--line) !important;color:var(--txt) !important;
}
html.light body .btn-ghost:hover,
html.light body .icon-btn:hover,
html.light body .icon-ghost:hover{border-color:var(--line-2) !important;background:#faf5ea !important}
html.light body .btn{color:#354356}
html.light body .btn-gold,
html.light body .btn-primary{color:#241a07 !important;background:linear-gradient(135deg,#f3ce75,#dda52d) !important;border-color:#caa144 !important}
html.light body .switch i{background:#e5dccd}
html.light body .switch input:checked+i{background:rgba(155,101,6,.18);border-color:rgba(155,101,6,.4)}
html.light body .switch input:checked+i:after{background:var(--gold)}
html.light body .field>span{color:#46556a !important}
html.light body .form-error{color:var(--red) !important}
html.light body .btn-danger{color:var(--red) !important;background:rgba(179,54,68,.10) !important;border-color:rgba(179,54,68,.28) !important}
html.light body .toast.error{border-color:rgba(179,54,68,.35) !important;color:var(--red) !important}
html.light body .rules{color:var(--muted) !important}
html.light body .mini-table td:last-child,
html.light body .mini-table th:last-child{color:var(--gold) !important}

/* --------------------------------------------------------------- play area */
html.light body .active-clue{background:#fffdf9 !important;border-color:var(--line) !important}
html.light body .active-clue .dir{background:rgba(155,101,6,.10) !important;color:var(--gold) !important}
html.light body .play-mode{color:var(--green) !important;border-color:rgba(8,112,77,.28) !important;background:rgba(8,112,77,.08) !important}
html.light body .play-mode.practice{color:var(--gold) !important;border-color:rgba(155,101,6,.30) !important;background:rgba(155,101,6,.08) !important}
html.light body .official-box{background:rgba(8,112,77,.06) !important;border-color:rgba(8,112,77,.20) !important;color:var(--txt) !important}
html.light body .official-box.practice{background:rgba(155,101,6,.06) !important;border-color:rgba(155,101,6,.22) !important}
html.light body .official-box b{color:var(--txt) !important}
html.light body .official-box .pill{color:var(--green) !important;background:rgba(8,112,77,.12) !important;border-color:rgba(8,112,77,.24) !important}
html.light body .official-box.practice .pill{color:var(--gold) !important;background:rgba(155,101,6,.10) !important;border-color:rgba(155,101,6,.26) !important}
html.light body .clue:hover{background:#f6f0e5 !important}
html.light body .clue.active{background:rgba(155,101,6,.09) !important;color:var(--txt) !important}
html.light body .clue.done{color:#5e7065 !important}
html.light body .clue.done b{color:#5e7065 !important}
html.light body .clue small{color:var(--muted-2) !important}
html.light body .active-clue b{color:var(--txt) !important}
html.light body .acell .num{color:#e8d59b !important}
html.light body .acell.revealed input{color:#cbd6e5 !important}
html.light body .progress,
html.light body .combo-track,
html.light body .league-progress .track{background:#ece3d5 !important;border-color:#e1d5c4 !important}
html.light body .grid-card{background:#0b111a !important;border-color:#273142 !important;color:#f7f2e9 !important}
html.light body .grid-card .progress{background:#202a38 !important}
html.light body .acell{background:#151d2a !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.045) !important}
html.light body .acell.blank{background:#05080d !important;border-color:#05080d !important}
html.light body .acell input{color:#f7f2e9 !important;caret-color:#f2c14e !important}
html.light body .acell.word{background:#2a2312 !important;box-shadow:inset 0 0 0 1.5px rgba(242,193,78,.95) !important}
html.light body .acell.word input:focus{background:#332b18 !important}
html.light body .acell.ok{background:#0e3b2a !important}
html.light body .acell.ok input{color:#9ef1bf !important}
html.light body .acell.hinted{background:#122d48 !important}
html.light body .acell.hinted input{color:#d7eaff !important}
html.light body .acell.revealed{background:#232b36 !important}
html.light body .acell.bad{background:#4a1a24 !important}
html.light body .acell.bad input{color:#ffc2c2 !important}
html.light body .grid-foot small{color:#aebcd0 !important}
html.light body .kbd{
  background:linear-gradient(180deg,rgba(255,253,249,.99),rgba(247,241,231,.995)) !important;
  border-color:#d6c9b5 !important;box-shadow:0 -18px 48px -22px rgba(70,53,22,.42) !important;
}
html.light body .kbd-key,
html.light body .kbd-act{background:linear-gradient(180deg,#fffdf9,#f3ecdf) !important;border-color:#d8cbb7 !important;color:#26333f !important}
html.light body .kbd-head{color:#526174 !important}
html.light body .kbd-close{background:#f7f0e4 !important;border-color:#d8cbb7 !important;color:#425266 !important}

/* --------------------------------------------------------------- admin side */
html.light body .login-visual,
html.light body .auth-visual,
html.light body .login-panel,
html.light body .auth-panel{
  background:linear-gradient(150deg,rgba(198,151,48,.10),transparent 42%),#fbf7f0 !important;
  border-color:var(--line) !important;
}
html.light body .login-visual:before,
html.light body .auth-visual:before{opacity:.22}
html.light body .login-screen,
html.light body .auth-screen{background:#f4efe5 !important}
html.light body .login-points li{color:var(--muted) !important}
html.light body .switch{color:var(--muted) !important}
html.light body .detail-row b{color:var(--txt) !important}
html.light body .detail-item p b{color:var(--txt) !important}
html.light body .auth-chips span{color:var(--muted) !important;background:#fbf7f0 !important;border-color:var(--line) !important}
html.light body .quiz-timer.warn{color:var(--red) !important;background:rgba(179,54,68,.08) !important;border-color:rgba(179,54,68,.28) !important}
html.light body .qpick{background:#fbf7f0 !important;border-color:transparent !important}
html.light body .qpick:hover{border-color:var(--line) !important}
html.light body .qpick-body strong{color:var(--txt) !important}
html.light body .nav-item{color:#4f5f73 !important}
html.light body .nav-item:hover{background:#f4ecdf !important;color:var(--txt) !important}
html.light body .nav-item.active{background:linear-gradient(90deg,rgba(155,101,6,.13),rgba(155,101,6,.03)) !important;border-color:rgba(155,101,6,.18) !important;color:var(--gold) !important}
html.light body .side-note{background:linear-gradient(135deg,rgba(198,151,48,.12),transparent) !important;border-color:rgba(155,101,6,.18) !important}
html.light body .side-note strong{color:#6f4a05 !important}
html.light body .avatar,
html.light body .user-chip>span{background:linear-gradient(135deg,#f5e6c8,#ead4a9) !important;border-color:#d5bf95 !important;color:#855706 !important}
html.light body .stat-card{background:linear-gradient(145deg,#fffdf9,#fbf5ea) !important}
html.light body .stat-card:after{background:rgba(198,151,48,.10) !important}
html.light body .night-hero{
  background:radial-gradient(500px 240px at 95% 0%,rgba(198,151,48,.17),transparent 70%),linear-gradient(150deg,#fffdf9,#f6eddf) !important;
  border-color:rgba(155,101,6,.20) !important;
}
html.light body .night-gift{background:#f7f0e4 !important;border-color:#e0d4c1 !important;color:#77520c !important}
html.light body .table-wrap{border-color:var(--line) !important}
html.light body thead th{background:#f7f1e7 !important;color:#526174 !important;border-color:var(--line) !important}
html.light body tbody td{color:#3e4d60 !important;border-color:var(--line-soft) !important}
html.light body tbody tr:hover td{background:#fbf6ed !important}
html.light body .cell-main{color:var(--txt) !important}
html.light body .empty-cell,
html.light body .table-empty{color:var(--muted-2) !important}
html.light body .chart-bar{background:linear-gradient(180deg,#c99627,rgba(201,150,39,.25)) !important}
html.light body .skeleton{background:linear-gradient(90deg,#f2eadf,#fffdf9,#f2eadf) !important}
html.light body .modal-overlay{background:rgba(62,48,22,.30) !important}
html.light body .jalali-overlay{background:rgba(62,48,22,.28) !important}
html.light body .jalali-day{background:#fffdf9 !important;border-color:#e6dccb !important;color:#354356 !important}
html.light body .jalali-day:hover{border-color:#c7a55b !important}
html.light body .jalali-day.today{color:var(--gold) !important;border-color:rgba(155,101,6,.38) !important}
html.light body .jalali-day.selected{background:linear-gradient(145deg,#f4ce75,#d9a52e) !important;color:#241a07 !important}
html.light body .jalali-time input{background:#fffdf9 !important;border-color:var(--line) !important}
html.light body .notice{background:#f8efd9 !important;border-color:#e5d2a5 !important;color:#72500d !important}
html.light body .notice.error{background:#fcebed !important;border-color:#efc4cb !important;color:#a83241 !important}
html.light body .toast{background:#fffdf9 !important;border-color:var(--line) !important;color:var(--txt) !important;box-shadow:0 14px 36px -22px rgba(63,47,20,.4) !important}
html.light body .sponsor-lightbox{background:rgba(46,36,18,.86) !important}

/* -------------------------------------------------------------- player side */
html.light body .welcome-copy{background:linear-gradient(150deg,#fffdf9,#f7efe3) !important}
html.light body .welcome-copy:after{background:radial-gradient(circle,rgba(198,151,48,.18),transparent 68%) !important}
html.light body .welcome-stats div{background:#faf4e9 !important;border-color:#e4d8c6 !important}
html.light body .sponsor-card{background:linear-gradient(160deg,#fffdf9,#f7efe3) !important}
html.light body .sponsor-media{background:#e7ddcc !important}
html.light body .sponsor-media:after{background:linear-gradient(to top,#fffdf9 2%,transparent 80%) !important}
html.light body .sponsor-gift{background:#f8efd9 !important;border-color:#e5d2a5 !important;color:#72500d !important}
html.light body .league-card{background:linear-gradient(160deg,#fffdf9,#f8f1e6) !important}
html.light body .league-card:hover{border-color:#cdbb9e !important;box-shadow:0 18px 38px -28px rgba(75,57,24,.45) !important}
html.light body .league-icon{background:rgba(198,151,48,.12) !important;border-color:rgba(155,101,6,.18) !important}
html.light body .league-meta span{background:#faf4e9 !important;border-color:#e4d8c6 !important}
html.light body .league-lock{background:rgba(255,253,249,.78) !important}
html.light body .league-lock b{color:var(--txt) !important}
html.light body .quiz-overlay,
html.light body .result-overlay{background:rgba(62,48,22,.30) !important}
html.light body .quiz-aside,
html.light body .quiz-foot,
html.light body .quiz-head{background:#fbf5eb !important}
html.light body .option{background:#fffdf9 !important;border-color:var(--line) !important;color:var(--txt) !important}
html.light body .option:hover{background:#faf4e9 !important;border-color:#cdbb9e !important}
html.light body .option .key{background:#f2e9da !important;border-color:#ddcfba !important;color:#526174 !important}
html.light body .option.selected{background:#faf0d6 !important;border-color:#c9a044 !important;color:#33250b !important}
html.light body .palette button{background:#fffdf9 !important;border-color:var(--line) !important;color:#4f5f73 !important}
html.light body .palette button.answered{color:var(--green) !important;border-color:rgba(8,112,77,.26) !important;background:rgba(8,112,77,.08) !important}
html.light body .result-stats div,
html.light body .board-row{background:#faf5eb !important;border-color:#e6dccb !important}
html.light body .score-ring:before{background:#fffdf9 !important;border-color:#e4d8c6 !important}
html.light body .player-footer{border-color:var(--line) !important}
html.light body .theme-fab{
  position:fixed;top:14px;left:14px;z-index:30;width:36px;height:36px;border-radius:11px;
  border:1px solid rgba(155,101,6,.34);background:#fffdf9;color:#8a5a06;font-size:16px;cursor:pointer;
  box-shadow:0 8px 22px -16px rgba(63,47,20,.65)
}
html.light body .theme-toggle{background:#fffdf9 !important;border-color:var(--line) !important;color:var(--txt) !important}
