/* soggybet QOL pass — shared semantic surfaces and complete light theme */
:root{
 --qol-surface:var(--color-surface,#111923);--qol-surface-2:#0d151e;--qol-border:var(--color-border,#293646);
 --qol-text:var(--color-text,#f4f7fb);--qol-muted:var(--color-text-muted,#8c9bb0);--qol-shadow:0 18px 50px rgb(0 0 0/.18);
}
html[data-theme="light"]{
 --color-background:#edf4f9;--color-surface:#f7fbfe;--color-surface-soft:#e8f1f7;--color-border:#cfdee9;
 --color-text:#152231;--color-text-muted:#71859b;--qol-surface:#f7fbfe;--qol-surface-2:#e8f1f7;--qol-border:#cfdee9;
 --qol-text:#152231;--qol-muted:#71859b;--qol-shadow:0 14px 38px rgb(38 70 94/.09);
 color-scheme:light;
}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"] body,html[data-theme="light"] .app-main{background:#edf4f9!important;color:#152231!important}
html[data-theme="light"] .sidebar{background:#e5eff6!important;border-color:#c8d9e5!important}
html[data-theme="light"] .topbar{background:rgb(247 251 254/.94)!important;border-color:#d3e1ea!important;backdrop-filter:blur(14px)}
html[data-theme="light"] .sidebar-link{color:#667d95!important}
html[data-theme="light"] .sidebar-link:hover,html[data-theme="light"] .sidebar-link.is-active{background:#d7e8f3!important;color:#168fc5!important}
html[data-theme="light"] :is(.card,.sog-card,.settings-card,.achievement-card,.achievement-summary-card,.achievement-overall,.litterbox-panel,.litterbox-board-card,.blackcat-game,.offer-panel,.asset-card){background:var(--qol-surface)!important;border-color:var(--qol-border)!important;color:var(--qol-text)!important;box-shadow:var(--qol-shadow)}
html[data-theme="light"] :is(input,select,textarea,.sog-input,.sog-select,.sog-textarea,.theme-choice){background:#f9fcfe!important;color:#152231!important;border-color:#c8d9e5!important}
html[data-theme="light"] :is(.button:not(.primary),.profile-button,.balance-pill,.settings-tabs,.achievement-filter){background:#e4eef5!important;color:#294056!important;border-color:#c9d9e4!important}
html[data-theme="light"] .settings-tab{color:#627991!important}html[data-theme="light"] .settings-tab.is-active{background:#cfe6f3!important;color:#087faf!important}
html[data-theme="light"] .home-hero{background:radial-gradient(circle at 75% 40%,rgb(70 187 233/.17),transparent 31%),linear-gradient(125deg,#f8fcff,#e5f0f7 72%)!important;border-color:#cfdee9!important;box-shadow:var(--qol-shadow)!important}
html[data-theme="light"] .hero-card{background:linear-gradient(150deg,#f9fcfe,#dceaf3)!important;border-color:#cadce7!important;box-shadow:0 24px 55px rgb(38 70 94/.12)!important}
html[data-theme="light"] .soggening-hero{background:linear-gradient(135deg,rgb(75 184 232/.13),rgb(111 91 255/.06))!important}
html[data-theme="light"] .trade-chat{background:#e9f2f7!important}html[data-theme="light"] .chat-msg,html[data-theme="light"] .offer-item{background:#f7fbfe!important}
html[data-theme="light"] .achievement-progress-track{background:#dce8ef!important}
html[data-theme="light"] .site-loader{background:#edf4f9!important;color:#152231!important}
/* unified focus and interaction */
:where(button,a,input,select,textarea):focus-visible{outline:3px solid rgb(74 185 233/.35);outline-offset:2px}
.button,.sidebar-link,.achievement-filter,.sog-card,.asset-card{transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.button:not(:disabled):active{transform:translateY(1px) scale(.99)}
button:disabled{cursor:not-allowed;opacity:.52}
/* world gets a real status-page hierarchy */
#weather-name{font-size:clamp(1.65rem,4vw,2.6rem);margin:.25rem 0}.weather-orb{filter:drop-shadow(0 10px 22px rgb(74 185 233/.18));animation:qol-float 4s ease-in-out infinite}
#event-list:empty::after{content:"no active events right now — suspiciously peaceful.";display:block;padding:24px;border:1px dashed var(--color-border);border-radius:16px;color:var(--color-text-muted)}
@keyframes qol-float{50%{transform:translateY(-6px)}}
/* game feel without changing mechanics */
.litterbox-board button,.litterbox-tile{transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}.litterbox-board button:hover,.litterbox-tile:hover{transform:translateY(-2px);filter:brightness(1.08)}
.playing-card{transition:transform .22s ease,filter .22s ease}.playing-card:hover{transform:translateY(-3px)}
/* nicer responsive density */
@media(max-width:760px){.page-content{padding-inline:14px!important}.soggening-page{padding:16px!important}.achievement-grid{grid-template-columns:1fr!important}.achievement-summary{grid-template-columns:repeat(3,1fr)!important}.home-hero{padding:30px 22px!important}.weather-orb{font-size:3rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}

/* QOL v2: component coverage */
html[data-theme="light"] :is(.modal,.notification-panel,.trade-card,.trade-room,.market-news-card,.world-event,.inventory-toolbar,.soggydex-toolbar,.achievement-overall,.achievement-toolbar,.blackcat-panel,.litterbox-panel,.wheel-panel,.settings-section){background:var(--qol-surface)!important;color:var(--qol-text)!important;border-color:var(--qol-border)!important}
html[data-theme="light"] :is(.text-muted,.sog-muted,.setting-help,.achievement-card-description){color:var(--qol-muted)!important}
html[data-theme="light"] .topbar :is(.balance-pill,.button){background:#e5eef5!important;color:#1d3043!important;border-color:#cbdce7!important}
html[data-theme="light"] .sidebar-logo-title,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3{color:#152231!important}
html[data-theme="light"] .achievement-card.is-unlocked{box-shadow:0 0 0 1px rgb(64 185 137/.18),var(--qol-shadow)!important}
.achievement-toolbar{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.achievement-filter{white-space:nowrap}
.achievement-card-progress-line{display:flex;justify-content:space-between;gap:12px}.achievement-progress-track{overflow:hidden}
@media(min-width:900px){.settings-content,.settings-panels{max-width:1100px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== complete light-mode coverage hotfix ===== */
html[data-theme="light"] :is(.marketplace-hero,.leader-hero,.market-tabs,.listing-card,.seller-section,.seller-row,.history-card,.leaderboard-card,.podium-card,.market-hero-mini,.market-search,.market-tools select,.wheel-game,.wheel-panel,.wheel-identity-card,.casino-stat-strip article,.market-chart-wrap,.market-trade-card,.market-chart-card){background:#f7fbfe!important;color:#152231!important;border-color:#c8d9e5!important}
html[data-theme="light"] :is(.wheel-stage){background:radial-gradient(circle at 50% 50%,rgb(60 191 238/.13),transparent 41%),linear-gradient(145deg,#e9f4fa,#dceaf3)!important;border-color:#c8d9e5!important}
html[data-theme="light"] :is(.wheel-type-button,.wager-button){background:#e7f0f6!important;color:#536b82!important;border-color:#c8d9e5!important}
html[data-theme="light"] :is(.wheel-type-button.is-active,.wager-button.is-active,.market-tab.active){background:#bfe5f5!important;color:#0c658c!important;border-color:#78c7e8!important}
html[data-theme="light"] :is(.market-topline,.market-meta-line,.listing-meta,.listing-marketline,.seller-market-stats,.market-status,.podium-score,.rank-refresh-note,.wheel-panel-heading p,.wheel-control-heading>span,.wheel-identity-card span){color:#678096!important}
html[data-theme="light"] .market-chart-wrap{background:#eef6fa!important}
html[data-theme="light"] .market-chart-tooltip{background:#fff!important;color:#152231!important;border-color:#bfd2df!important;box-shadow:0 12px 30px rgb(35 69 93/.16)!important}
html[data-theme="light"] .market-chart-tooltip span{color:#667f94!important}
html[data-theme="light"] .market-chart-grid line{stroke:rgba(26,54,75,.11)!important}
html[data-theme="light"] .toast{background:#f8fcff!important;color:#152231!important;border-color:#c5d8e5!important;box-shadow:0 15px 35px rgb(37 69 94/.14)!important}
html[data-theme="light"] .splash-avatar{background:#e7f1f7!important;border-color:#c8d9e5!important;color:#152231!important}
html[data-theme="light"] .splash-item{border-color:#d3e1ea!important}
html[data-theme="light"] .price-editor input{background:#fff!important;color:#152231!important;border-color:#c8d9e5!important}

html[data-theme="light"] .sidebar-group-toggle{color:#657b91}
html[data-theme="light"] .sidebar-group-toggle:hover,
html[data-theme="light"] .sidebar-group.has-active>.sidebar-group-toggle{background:#dceaf3;color:#1d3448}
html[data-theme="light"] .sidebar-group.has-active{background:#e0edf5;border-color:#cadde9}
html[data-theme="light"] .sidebar-sub-link{color:#71879b}
html[data-theme="light"] .sidebar-static-bottom{border-color:#cbdce7}
@media(max-width:980px){html[data-theme="light"] .sidebar-group-body{background:#eef6fa}}
