/* Original game layouts and colors come from the original documents.
   Only features added since that version need compatibility styles. */
.kuji-home-card[hidden],.mall-product.kuji[hidden],.pool-card[hidden],[data-room-ip="kuji"][hidden],[data-mall-ip="kuji"][hidden],.ui-categories button[hidden]{display:none!important}
html[data-ui=legacy]{color-scheme:dark;--bg:#0e1913;--panel:#19271f;--line:#36503d;--accent:#c7e7a7;--muted:#afbea9}
html[data-ui=legacy] .account-bar{background:#17251c;color:#afbea9;border-color:#36503d}
html[data-ui=legacy] .account-bar a,html[data-ui=legacy] .account-bar button{color:#c7e7a7}
html[data-ui=legacy] .account-bar button{background:#19271f;border-color:#36503d}
html[data-ui=legacy] .account-main,html[data-ui=legacy] .account-dialog{color:#eef3e9}
html[data-ui=legacy] .account-main p,html[data-ui=legacy] .account-main label,html[data-ui=legacy] .account-dialog p{color:#afbea9}
html[data-ui=legacy] .account-main a,html[data-ui=legacy] .account-main summary,html[data-ui=legacy] .account-hero small{color:#c7e7a7}
html[data-ui=legacy] .account-hero,html[data-ui=legacy] .account-panel,html[data-ui=legacy] .account-dialog,html[data-ui=legacy] .account-dialog code{background:#19271f;border-color:#36503d;box-shadow:none}
html[data-ui=legacy] .account-main input:not([type=checkbox]){background:#101b14;color:#eef3e9;border-color:#36503d}
html[data-ui=legacy] .account-main button,html[data-ui=legacy] .account-dialog button{background:#c7e7a7;color:#152010;border-color:#36503d;box-shadow:none}
html[data-ui=legacy] body:has(.account-main){background:#0e1913}
html[data-ui=legacy] body:has(.kuji-app){background:#0e1913;color:#eef3e9}
html[data-ui=legacy] .kuji-app{--ink:#eef3e9;--muted:#afbea9;--purple:#c7e7a7;--line:#36503d}
html[data-ui=legacy] .kuji-app :is(section,article,dialog,.hero,.panel,.prize,.ticket){background:#19271f;color:#eef3e9;border-color:#36503d;box-shadow:none}
html[data-ui=legacy] .kuji-app button{background:#c7e7a7;color:#152010;border-color:#36503d;box-shadow:none}
html[data-ui=legacy]:has(.kuji-app){background:#0e1913;color:#eef3e9}
html[data-ui=legacy] .kuji-app :is(.pool,.item,.metrics,.rule,.legacy-art){background:#19271f;color:#eef3e9;border-color:#36503d}
html[data-ui=legacy] .kuji-app :is(a,.price,.metrics b,.item p,.brand,.ticket b){color:#c7e7a7}
html[data-ui=legacy] .kuji-app :is(p,small,footer,.rank-head span){color:#afbea9}
html[data-ui=legacy] .kuji-app input{background:#101b14;color:#eef3e9;border-color:#36503d}
html[data-ui=legacy] .mag-room-ip-tabs,html[data-ui=legacy] .mag-mall-ip-tabs,html[data-ui=legacy] .mag-mall-room-navigation{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
html[data-ui=legacy] .mag-room-ip-tabs button small,html[data-ui=legacy] .mag-room-ip-tabs button span{display:none}
html[data-ui=legacy] .mag-mall-native-filter{display:none}
html[data-ui=legacy] [aria-pressed=true]{outline:2px solid #c7e7a7;outline-offset:2px}
html[data-ui=legacy] dialog:is(.mag-player-result-dialog,.mag-mall-room-dialog,.mag-mall-experience,.mag-budget-alert){position:fixed;inset:0;margin:auto;width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;background:#19271f;color:#eef3e9;border:1px solid #36503d;border-radius:20px}
html[data-ui=legacy] dialog::backdrop{background:#000a}
html[data-ui=legacy] :is(.mag-all-player-items,.mag-all-player-benefits,.mag-player-result-grid,.mag-reveal-choices .bags){display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
html[data-ui=legacy] :is(.mag-all-player-items,.mag-all-player-benefits,.mag-player-result-grid) img{max-width:100%;height:130px;object-fit:contain}
html[data-ui=legacy] .mag-mall-toast{position:fixed;z-index:100;top:60px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#c7e7a7;color:#152010;border-radius:12px}
html[data-ui=legacy] .mag-mall-room-list{display:grid;gap:12px}
html[data-ui=legacy] .mag-member-clickable{cursor:pointer}
html[data-ui=legacy] .mag-member-status{display:block;color:#afbea9}
html[data-ui=legacy] .mag-mall-product-art .art{width:100%}
html[data-ui=legacy] .mag-settlement-items{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
html[data-ui=legacy] .mag-settlement-items article{min-width:0;text-align:center;border:1px solid #36503d;border-radius:12px;padding:10px}
html[data-ui=legacy] .mag-settlement-items :is(b,small){display:block;overflow-wrap:anywhere}
html[data-ui=legacy] .mag-settlement-items .art{height:130px;width:100%}
html[data-ui=legacy] .mag-experience-pack{width:min(220px,100%);aspect-ratio:3/4;margin:24px auto;background:#223b2b;border:1px dashed #c7e7a7;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
html[data-ui=legacy] .mag-experience-pack b{font-size:64px}
html[data-ui=legacy] :is(.mag-wish-progress,.mag-wish-celebration){background:#203727!important;color:#eef3e9;border:1px solid #52704b!important;padding:16px!important;border-radius:14px;margin:16px 0!important}
html[data-ui=legacy] :is(.mag-wish-progress h3,.mag-wish-progress summary,.mag-wish-celebration b){color:#c7e7a7}
html[data-ui=legacy] .mag-wish-progress p{color:#afbea9}
html[data-ui=legacy] .mag-wish-progress progress{display:block;width:100%;accent-color:#c7e7a7}
html[data-ui=legacy] .mag-wish-celebration :is(b,span){display:block;text-align:center}
@media(max-width:600px){html[data-ui=legacy] .mag-settlement-items{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){html[data-ui=legacy] :is(.mag-all-player-items,.mag-all-player-benefits,.mag-player-result-grid){grid-template-columns:repeat(3,minmax(0,1fr))}}
