:root{--ink:#3A2212;--navy:#FFF1CF;--navy2:#FFE4AE;--navy3:#D9A860;--gold:#B8660F;--gold2:#3A2212;--text:#3A2212;--dim:#7A5A3A;--wood:#9A6232;--aqua:#35E0C8;--red:#E8435A;--green:#7FCF5A}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#5AB4E5;overflow:hidden;font-family:"Trebuchet MS",Verdana,system-ui,sans-serif;color:var(--text);-webkit-user-select:none;user-select:none}
#game{position:fixed;inset:0}
#game canvas{image-rendering:pixelated;image-rendering:crisp-edges;display:block}
img{image-rendering:pixelated}
.panel{background:rgba(23,35,63,.94);border:2px solid var(--gold2);border-radius:4px;box-shadow:0 0 0 2px var(--ink),0 5px 0 2px rgba(0,0,0,.28),inset 0 2px 0 rgba(255,255,255,.08)}
#hud{position:fixed;inset:0;pointer-events:none}
#hud .hud-left{position:absolute;left:14px;top:14px;padding:8px 12px;pointer-events:auto;max-width:calc(100vw - 28px)}
#hud .row{display:flex;align-items:center;gap:6px;white-space:nowrap}
#hud .row.big{font-size:22px;font-weight:bold;color:#fff}
#hud .row img{width:24px;height:24px}
#hud .row.big img{width:28px;height:28px}
#hud .mult{font-size:13px;color:var(--aqua);font-weight:bold;margin-left:4px}
#hud .locks{margin-top:4px;gap:10px;font-size:14px;font-weight:bold;flex-wrap:wrap;color:var(--text)}
#hud .locks span{display:flex;align-items:center;gap:3px}
#hud .locks img{width:20px;height:20px}
#hud .hud-right{position:absolute;right:14px;top:14px;display:flex;gap:10px;align-items:flex-start;pointer-events:auto}
#hud .hud-right .tool{display:flex;align-items:center;gap:6px;padding:7px 10px;font-weight:bold;font-size:14px}
#hud .hud-right .tool img{width:24px;height:24px}
.btn{font:inherit;font-weight:bold;color:var(--ink);background:linear-gradient(#FFE27A,#E9B12F);border:2px solid var(--ink);border-radius:4px;padding:6px 10px;cursor:pointer;display:flex;align-items:center;gap:6px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2),0 3px 0 rgba(0,0,0,.3)}
.btn:hover{filter:brightness(1.07)}.btn:active{transform:translateY(2px);box-shadow:inset 0 -1px 0 rgba(0,0,0,.2)}
.btn:disabled{filter:grayscale(.7) brightness(.9);cursor:not-allowed}
.btn img{width:24px;height:24px}.btn.small{padding:2px 8px}.btn.go{background:linear-gradient(#A6E97F,#4FA843)}
#hud .prompt{position:absolute;left:50%;bottom:84px;transform:translateX(-50%);padding:5px 12px;font-weight:bold;font-size:14px;white-space:nowrap}
#hud .prompt small{color:var(--dim);font-weight:normal}
#hud .prompt kbd{background:var(--gold);color:var(--ink);border-radius:3px;padding:0 6px;margin-right:6px;font:inherit}
#hud .hotbar{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:4px;padding:5px;pointer-events:auto}
.cell{width:48px;height:48px;background:var(--navy2);border:2px solid var(--navy3);border-radius:3px;position:relative;display:flex;align-items:center;justify-content:center}
.cell img{width:36px;height:36px}.cell.tool{border-color:var(--gold)}
.cell b{position:absolute;right:2px;bottom:0;font-size:11px;color:#fff;text-shadow:1px 1px 0 #000,-1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000}
.modal{position:fixed;inset:0;background:rgba(8,14,30,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:5}
.modal[hidden],#hud[hidden],#touch[hidden],.prompt[hidden]{display:none}
.window{width:min(560px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;padding:12px}
.window.narrow{width:min(360px,100%)}
.title{font-size:20px;font-weight:bold;color:var(--gold);display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.x{font:inherit;font-size:18px;background:none;border:none;cursor:pointer;color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;overflow:auto;padding:2px}
.slot{background:var(--navy2);border:2px solid var(--navy3);border-radius:3px;padding:6px 4px;text-align:center;font-size:11px;line-height:1.2;position:relative;min-height:84px}
.slot img,.slot .emo{width:36px;height:36px;display:block;margin:2px auto 4px;font-size:28px;line-height:36px}
.slot .n{position:absolute;right:4px;top:3px;font-weight:bold;font-size:12px}
.slot.eq{border-color:var(--gold)}
.pager{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:8px;font-weight:bold}
.list{overflow:auto;display:flex;flex-direction:column;gap:6px}
.item{display:flex;align-items:center;gap:8px;background:var(--navy2);border:2px solid var(--navy3);border-radius:3px;padding:6px 8px}
.item img,.item .emo{width:32px;height:32px;font-size:24px;line-height:32px;text-align:center;flex:none}
.item .name{flex:1;font-weight:bold;font-size:14px}.item .price{font-size:12px;color:var(--dim);display:block;font-weight:normal}
.item .btn{padding:4px 8px;font-size:13px}
.buttons{display:flex;justify-content:flex-end;gap:8px}
.hint{font-size:13px;color:var(--dim)}code{background:var(--navy2);padding:1px 4px;border-radius:3px}
#toasts{position:fixed;left:50%;top:84px;transform:translateX(-50%);display:flex;flex-direction:column;gap:6px;z-index:9;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.toast{background:var(--navy);border:2px solid var(--gold2);border-radius:4px;padding:6px 12px;font-weight:bold;animation:pop .2s ease-out}
.toast.err{background:#4A1524;border-color:var(--red)}
@keyframes pop{from{transform:scale(.8);opacity:0}to{transform:none;opacity:1}}
#touch{position:fixed;inset:auto 0 0 0;height:0}
#touch .pad{position:fixed;left:14px;bottom:14px;display:flex;gap:8px}
#touch .pad button{width:68px;height:68px;font-size:22px;border:2px solid var(--ink);border-radius:6px;background:rgba(242,239,230,.85)}
#touch .act{position:fixed;right:14px;bottom:14px;width:78px;height:78px;border-radius:50%;border:2px solid var(--ink);background:linear-gradient(#FFE27A,#E9B12F);font-weight:bold;font-size:15px}
#touch .jump{right:102px;bottom:40px;width:64px;height:64px;background:linear-gradient(#A6E97F,#4FA843)}
@media (pointer:coarse){#hud .hotbar{bottom:8px;gap:2px;padding:3px}#hud .hotbar .cell{width:36px;height:36px}#hud .hotbar .cell img{width:28px;height:28px}#hud .prompt{bottom:62px}#hud .hud-right .tool{display:none}}

@media (max-width:760px){#hud .hud-right .tool{display:none}#hud .hud-right{flex-direction:column;gap:6px}#hud .hud-left{max-width:calc(100vw - 90px)}#hud .row.big{font-size:18px}#hud .locks{font-size:12px;gap:6px}#hud .locks img{width:16px;height:16px}.btn span{display:none}.cell{width:36px;height:36px}.cell img{width:28px;height:28px}}
.cell.pick{cursor:pointer}.cell.pick:hover{border-color:var(--dim)}.cell.on{border-color:var(--aqua);box-shadow:0 0 0 1px var(--aqua)}
#hud .areaname{position:absolute;left:50%;top:14px;transform:translateX(-50%);padding:4px 14px;font-weight:bold;color:var(--gold)}
.worlds{display:grid;grid-template-columns:1fr 1fr;gap:8px}.worlds .btn{justify-content:center}
#btn-auto.on{background:linear-gradient(#A6E97F,#4FA843)}#btn-auto.pulse{outline:2px solid #fff}
.window p{margin:6px 0}
#gems.pop{display:inline-block;animation:gempop .22s ease-out}@keyframes gempop{40%{transform:scale(1.18);color:var(--aqua)}}
@media (prefers-reduced-motion:reduce){#gems.pop,.toast{animation:none}}
@font-face{font-family:Pixelify;src:url(fonts/silkscreen.woff2) format("woff2");font-weight:400;font-display:swap}
.title,#hud .row.big,#hud .areaname,.btn{font-family:Pixelify,"Trebuchet MS",sans-serif;font-weight:400;letter-spacing:.3px}
.tabs{display:flex;gap:6px;margin-bottom:8px}.tabs .on{background:linear-gradient(#A6E97F,#4FA843)}
.set{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}.set input[type=range]{width:170px;accent-color:var(--gold)}.set input[type=checkbox]{width:20px;height:20px;accent-color:var(--gold)}
.cell.more{cursor:pointer;font-family:Pixelify,sans-serif;font-size:20px}.blockgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px}.blockgrid .cell{width:auto}
.btn:focus-visible,.cell:focus-visible,.x:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media (max-width:760px){.hud-right{max-height:calc(100vh - 110px);overflow:auto}}
#hud .areaname{left:14px;top:92px;transform:none}
.cell.tool img,.item img.toolimg{image-rendering:pixelated}
#chat{position:fixed;left:14px;bottom:14px;width:350px;height:250px;display:flex;flex-direction:column;z-index:4;background:rgba(14,22,44,.72);;transition:opacity .15s,transform .15s}
#chat.closed{opacity:0;pointer-events:none;transform:translateY(12px)}
.chat-head{display:flex;align-items:center;gap:3px;padding:4px 5px}.ctab{font:400 10px Pixelify,sans-serif;color:var(--dim);background:none;border:0;border-radius:3px;padding:4px 6px;cursor:pointer}.ctab.on{background:var(--gold);color:var(--ink)}
.chat-online{margin-left:auto;font-size:11px;color:var(--dim);display:flex;align-items:center;gap:4px}.chat-online i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 6px var(--green);animation:live 1.6s infinite}@keyframes live{50%{opacity:.35}}
#chat-status{font-size:11px;color:var(--gold);padding:0 7px}#chat-status:empty{display:none}
#chat-log{flex:1;overflow-y:auto;padding:2px 7px;font-size:13px;line-height:1.3;user-select:text;-webkit-user-select:text;scrollbar-width:thin}
.msg{margin:2px 0;overflow-wrap:anywhere;text-shadow:1px 1px 0 rgba(0,0,0,.7);animation:msgin .16s ease-out}@keyframes msgin{from{opacity:0;transform:translateX(-6px)}}
.msg b{cursor:pointer}.msg.system{color:var(--gold);font-style:italic}.msg.me{font-style:italic;color:#CFE6FF}.msg.whisper{color:#F3B8FF}.msg.mention{background:rgba(255,216,77,.2);border-left:2px solid var(--gold);padding-left:4px}
.lv{font:400 9px Pixelify,sans-serif;background:var(--navy3);border-radius:2px;padding:1px 3px;margin-right:4px}.tag{font:400 8px Pixelify,sans-serif;color:var(--ink);background:var(--aqua);border-radius:2px;padding:1px 3px;margin-right:4px}
.emotes{display:flex;gap:2px;padding:2px 5px}.emotes button{flex:1;background:rgba(255,255,255,.07);border:0;border-radius:3px;padding:2px;cursor:pointer;font-size:14px}.emotes button:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
#chat-input{margin:3px 5px 5px;padding:6px 7px;font:inherit;font-size:13px;color:var(--text);background:rgba(0,0,0,.4);border:1px solid var(--navy3);border-radius:3px;outline:none;user-select:text;-webkit-user-select:text}#chat-input:focus{border-color:var(--gold);box-shadow:0 0 6px rgba(255,216,77,.45)}
#chat-toggle{position:fixed;left:14px;bottom:270px;z-index:4;padding:3px 8px;font-size:11px}
@media (max-width:1050px),(pointer:coarse){#chat{left:8px;top:96px;bottom:auto;width:min(320px,calc(100vw - 16px));height:min(190px,calc(100vh - 190px))}#chat.closed{display:none}#chat-toggle{left:auto;right:8px;top:62px;bottom:auto}}
#chat{height:190px;width:320px}#chat-toggle{bottom:210px}
#join input{font:inherit;padding:5px;width:170px;color:var(--text);background:rgba(0,0,0,.4);border:1px solid var(--navy3);border-radius:3px;user-select:text;-webkit-user-select:text}
.window.wide{width:min(720px,100%)}
#bv-body{overflow-y:auto;font-size:14px;line-height:1.35;user-select:text;-webkit-user-select:text;scrollbar-width:thin}#bv-body.busy{opacity:.6;pointer-events:none}
.bv-embed{position:relative;background:var(--navy2);border-left:4px solid var(--gold2);border-radius:3px;padding:9px 11px;margin-bottom:8px;overflow-wrap:anywhere}.bv-title{font-weight:bold;font-size:16px;color:#fff;margin-bottom:4px}.bv-author{font-size:12px;color:var(--dim)}.bv-foot{font-size:11px;color:var(--dim);margin-top:7px}.bv-desc small{color:var(--dim)}
.bv-thumb{float:right;width:64px;height:64px;object-fit:contain;margin-left:8px}.bv-img{display:block;max-width:100%;margin-top:7px;border-radius:3px}.bv-fields{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.bv-field{flex:1 1 100%}.bv-field.in{flex:1 1 30%}.bv-field b{color:var(--gold)}
#bv-body .emo{width:18px;height:18px;vertical-align:-4px;image-rendering:auto}#bv-body pre{background:rgba(0,0,0,.35);padding:6px;border-radius:3px;white-space:pre-wrap;margin:4px 0;font-size:12px}#bv-body code{font-size:12px}#bv-body blockquote{margin:2px 0;padding-left:7px;border-left:2px solid var(--navy3)}#bv-body h3,#bv-body h4,#bv-body h5{margin:4px 0;color:#fff}
.bv-row{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px}.bv-btn{font:inherit;font-size:13px;font-weight:bold;color:#fff;border:0;border-bottom:3px solid rgba(0,0,0,.3);border-radius:4px;padding:6px 10px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:4px}.bv-btn:hover{filter:brightness(1.12)}.bv-btn:disabled{opacity:.45;cursor:not-allowed}.bv-btn.s1{background:#5865F2}.bv-btn.s2{background:#4E5668}.bv-btn.s3{background:#2E9E5B}.bv-btn.s4{background:#D83C3E}.bv-btn.s5{background:#4E5668}
.bv-sel{flex:1;min-width:200px;font:inherit;font-size:13px;padding:6px;color:var(--text);background:var(--navy2);border:1px solid var(--navy3);border-radius:3px}.bv-label{display:block;margin:8px 0;font-weight:bold}.bv-label input,.bv-label textarea{display:block;width:100%;margin-top:3px;font:inherit;padding:6px;color:var(--text);background:rgba(0,0,0,.4);border:1px solid var(--navy3);border-radius:3px;user-select:text;-webkit-user-select:text}

.gw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;max-height:52vh;overflow:auto}
.gw-card{display:flex;flex-direction:column;gap:4px;padding:8px;background:rgba(255,226,122,.07);border:2px solid rgba(201,150,43,.55);border-radius:4px}
.gw-card.on{border-color:#FFE27A;background:rgba(255,226,122,.18)}
.gw-card span{font-size:13px;opacity:.9}.gw-card .gw-price{color:#FFE27A;flex:1}

.ttl{color:#FFE27A;font-size:.9em}
.gw-card.pickable{cursor:pointer;text-align:center}
#zoom{display:flex;gap:4px}#zoom .btn{min-width:30px;padding-left:6px;padding-right:6px}

/* Cartoon interface: cream paper, wood, thick outlines */
@font-face{font-family:Fredoka;src:url(fonts/fredoka-600.woff2) format("woff2");font-weight:600;font-display:swap}
html,body{font-family:Fredoka,"Trebuchet MS",Verdana,sans-serif;font-weight:600}
.title,#hud .row.big,#hud .areaname,.btn,.ctab,.lv,.tag,.cell.more{font-family:Fredoka,"Trebuchet MS",sans-serif;font-weight:600;letter-spacing:0}
.panel{color:var(--text);background:var(--navy);border:3px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 rgba(58,34,18,.55),inset 0 2px 0 #fff8e4}
.btn{border:3px solid var(--ink);border-radius:10px;background:#FFC93C;color:var(--ink);box-shadow:inset 0 -4px 0 rgba(150,80,10,.35),inset 0 2px 0 rgba(255,255,255,.55),0 3px 0 rgba(58,34,18,.55);transition:transform .08s,filter .1s}
.btn:hover{transform:translateY(-1px);filter:brightness(1.06)}.btn:active{transform:translateY(2px);box-shadow:inset 0 -1px 0 rgba(150,80,10,.35)}
.btn.go,.tabs .on,#btn-auto.on{background:#7FD45A}
#hud .hud-left{padding:7px 12px;top:12px;left:12px}
#hud .row.big{color:var(--ink);font-size:24px}
#hud .mult{color:#fff;background:#E8603C;border:2px solid var(--ink);border-radius:8px;padding:0 6px;font-size:13px}
#hud .locks{font-weight:600;color:var(--ink)}
#hud .toolrow{margin-top:3px;font-size:13px;color:var(--dim)}#hud .toolrow img{width:18px;height:18px}
#hud .hud-right{top:12px;right:12px;flex-direction:row;gap:8px;overflow:visible;max-height:none}
#zoom .btn,#btn-menu{height:44px;min-width:44px;justify-content:center;padding:0 8px}
#zoom .btn span{display:inline;font-size:22px;line-height:1}
#btn-menu{position:relative}#btn-menu.open{background:#FFE9A8}

#menu{position:absolute;right:0;top:54px;width:190px;padding:8px;display:flex;flex-direction:column;gap:7px;animation:pop .14s ease-out;transform-origin:top right;z-index:3}
#menu[hidden]{display:none}
#menu .btn{width:100%;justify-content:flex-start;gap:10px;padding:6px 10px}
#menu .btn span{display:inline}#menu .btn svg{order:-1;flex:none}
#hud .areaname{left:50%;top:12px;transform:translateX(-50%);padding:3px 18px;color:#FFF1CF;background:var(--wood);text-shadow:0 2px 0 var(--ink)}
#hud .prompt{color:var(--ink)}#hud .prompt kbd{background:#FFC93C;border:2px solid var(--ink);border-radius:6px}
#hud .hotbar{background:var(--wood);padding:6px;gap:5px}
.cell{background:var(--navy);border:3px solid #5F3A1B;border-radius:9px}.cell.tool{border-color:#FFC93C}.cell.on{border-color:#35C9B5;box-shadow:0 0 0 2px #35C9B5}.cell.more{color:var(--ink)}
.modal{background:rgba(30,18,10,.58)}
.window{padding:0 14px 14px;animation:pop .16s ease-out;overflow:hidden}
.window>.title{margin:0 -14px 12px;padding:9px 14px;background:var(--wood);color:#FFF1CF;font-size:21px;text-shadow:0 2px 0 var(--ink);border-bottom:3px solid var(--ink)}
.x{width:30px;height:30px;padding:0;font-size:15px;color:#fff;background:#E8503F;border:3px solid var(--ink);border-radius:9px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.2)}
#panel-body,#inv-grid,#shop-list{min-height:0;overflow-y:auto}.window>.buttons,.window>p{flex:none}.window>p{margin:6px 0}
.slot,.item,.bv-embed{border-radius:10px;border-color:var(--navy3)}.item{font-weight:600}.item .name{font-weight:600}.slot.eq{border-color:var(--gold)}
.bv-title,#bv-body h3,#bv-body h4,#bv-body h5{color:var(--ink)}.bv-embed{border:3px solid var(--navy3);border-left:6px solid var(--gold)}.bv-field b{color:var(--gold)}#bv-body pre{background:rgba(58,34,18,.1)}
.bv-btn{border:3px solid var(--ink);border-bottom-width:5px;border-radius:10px;font-weight:600}.bv-btn.s1{background:#3E8FD0}.bv-btn.s2,.bv-btn.s5{background:#A9794A}.bv-btn.s3{background:#4FA843}.bv-btn.s4{background:#D9503F}
.bv-sel,.bv-label input,.bv-label textarea,#join input{color:var(--ink);background:#fffaf0;border:2px solid var(--ink);border-radius:8px}
.gw-card{background:var(--navy2);border:3px solid var(--navy3);border-radius:10px}.gw-card.on{background:#FFD978;border-color:var(--ink)}.gw-card .gw-price,.ttl{color:var(--gold)}
.toast{color:var(--ink);background:var(--navy);border:3px solid var(--ink);border-radius:10px;box-shadow:0 3px 0 rgba(58,34,18,.55)}.toast.err{color:#fff;background:#D9503F}
#touch .act,#touch .pad button{border-width:3px;font-family:inherit;font-weight:600;color:var(--ink)}
/* Chat stays dark so it reads over any world, and takes less of the ground */
#chat{--text:#FFF1CF;--dim:#D9BE93;--gold:#FFD84D;--navy3:#7A5A3A;color:var(--text);background:rgba(58,34,18,.72);box-shadow:none;width:300px;height:158px}
#chat .emotes{display:none}#chat:focus-within .emotes{display:flex}#chat:focus-within{height:194px}
.ctab{font-size:12px}.ctab.on{color:var(--ink)}
#chat-toggle{left:14px;bottom:178px;top:auto;right:auto;height:auto;padding:2px 10px;font-size:13px}
#chat:focus-within~#chat-toggle{bottom:214px}
@media (max-width:1050px),(pointer:coarse){#chat{left:8px;top:112px;bottom:auto;width:min(300px,calc(100vw - 16px));height:min(150px,calc(100vh - 210px))}#chat-toggle{left:8px;right:auto;top:auto;bottom:auto;top:82px;left:auto;right:8px;top:62px;height:auto;width:auto}}
@media (max-width:760px){#hud .hud-right{flex-direction:row}#hud .areaname{top:auto;bottom:62px;left:8px;transform:none;font-size:12px;padding:1px 10px}#hud .toolrow{display:none}#hud .hud-left{max-width:calc(100vw - 170px)}}
@media (pointer:coarse){#hud .areaname{top:auto;bottom:auto;left:50%;top:8px;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.window,#menu{animation:none}}
@media (max-width:1050px),(pointer:coarse){#chat-toggle{left:194px;right:auto;top:12px;bottom:auto}}
@media (max-height:480px){#menu{width:300px;display:grid;grid-template-columns:1fr 1fr;gap:6px}#menu .btn{padding:3px 8px;min-height:40px}}

/* Bottom bar gone: signs live in the world */
#prompt{display:none!important}
#hud .blockrow{margin-top:3px;font-size:13px;cursor:pointer;pointer-events:auto}#hud .blockrow img{width:20px;height:20px;border:2px solid var(--ink);border-radius:5px}#hud .blockrow:hover{color:var(--gold)}
#hud .autoline{position:absolute;left:50%;top:52px;transform:translateX(-50%);padding:2px 12px;font-size:13px;white-space:nowrap}#hud .autoline[hidden]{display:none}
.bagcap{margin-left:auto;align-self:center;font-size:13px}.bagcap.full{color:#D9503F}
.slot.pick{cursor:pointer}.slot.pick:hover{border-color:var(--ink)}
.stillbar{height:12px;border:3px solid var(--ink);border-radius:8px;overflow:hidden;background:#fff;margin:8px 0}.stillbar i{display:block;height:100%;width:100%;background:#E8503F}
#still .window{animation:shakeit .3s 3}@keyframes shakeit{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.titlechip{display:inline-block;align-self:center;padding:1px 12px;border:3px solid var(--ink);border-radius:9px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.6)}
.bv-pick{width:100%}.bv-pickhead{font-size:13px;color:var(--dim);margin:4px 0}.bv-opt{font:inherit;font-weight:600;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;color:var(--ink);background:#FFD978;border:3px solid var(--ink);border-radius:10px;padding:7px 9px;cursor:pointer;box-shadow:0 3px 0 rgba(58,34,18,.55)}.bv-opt:hover{filter:brightness(1.07);transform:translateY(-1px)}.bv-opt small{color:var(--dim);font-size:12px}

/* Lucktopia menu and loading screen. "only light" stops browsers repainting the bright buttons dark. */
:root{color-scheme:only light}
#menu .btn{background:#FFC93C;color:#3A2212;forced-color-adjust:none}#menu .btn.on,#menu #btn-auto.on{background:#7FD45A}
#menu .btn img{order:-1;width:24px;height:24px;flex:none}#menu .btn span{flex:1;text-align:left}
#loader{--p:2px;--wd:#6B4226;--wm:#A36B3A;--wl:#C98F55;--ink:#2B1D14;position:fixed;inset:0;z-index:15;display:flex;flex-direction:column;align-items:center;padding:calc(var(--p)*6) 12px 0;overflow:hidden;background:#5FA8D8;font-family:Pixelify,monospace;color:#FFF1CF;text-align:center}
#l-scene{position:absolute;left:0;bottom:0;image-rendering:pixelated}
#l-logo{position:relative;width:calc(var(--p)*280);height:calc(var(--p)*46);image-rendering:pixelated}
#l-hang{position:relative;display:flex;flex-direction:column;align-items:center}
.l-rope{display:flex;justify-content:space-between;width:calc(var(--p)*150);height:calc(var(--p)*5)}.l-rope i{width:calc(var(--p)*2);background:var(--ink)}
.l-board{position:relative;background:repeating-linear-gradient(180deg,var(--wm) 0 calc(var(--p)*8),var(--wd) calc(var(--p)*8) calc(var(--p)*9));box-shadow:0 calc(var(--p)*-1) 0 var(--wl) inset,0 0 0 var(--p) var(--ink),0 calc(var(--p)*2) 0 var(--p) rgba(43,29,20,.45)}
#l-board{width:calc(var(--p)*190);max-width:92vw;padding:calc(var(--p)*5) calc(var(--p)*6)}
#l-row{display:flex;align-items:center;gap:calc(var(--p)*4)}
#l-bar{flex:1;height:calc(var(--p)*8);border:var(--p) solid var(--ink);background:var(--ink);overflow:hidden}
#l-fill{display:block;width:100%;height:100%;transform:translateX(-100%);transition:transform .22s linear;will-change:transform;background:repeating-linear-gradient(90deg,#9FDB5F 0 calc(var(--p)*6),#55B84A calc(var(--p)*6) calc(var(--p)*7))}
#l-pct{min-width:calc(var(--p)*26);font-weight:400;font-size:max(calc(var(--p)*8),10px);line-height:1;text-shadow:var(--p) var(--p) 0 var(--ink);text-align:right}
#l-status{margin-top:calc(var(--p)*3);font-size:max(calc(var(--p)*8),10px);line-height:1.1;text-shadow:var(--p) var(--p) 0 var(--ink)}
#l-sign{max-width:92vw;padding:calc(var(--p)*3) calc(var(--p)*6);font-size:max(calc(var(--p)*7),10px);line-height:1.3;text-shadow:1px 1px 0 var(--ink)}
#l-retry{position:relative;margin-top:calc(var(--p)*4);padding:calc(var(--p)*3) calc(var(--p)*6);font:400 calc(var(--p)*8) Pixelify,monospace;color:#FFF1CF;background:var(--wm);border:0;border-radius:0;box-shadow:0 0 0 var(--p) var(--ink);cursor:pointer}#l-retry:hover{background:var(--wl)}#l-retry:focus-visible{outline:calc(var(--p)*1) solid #FFF1CF}#l-retry[hidden]{display:none}
#loader{will-change:opacity}#loader.out{pointer-events:none;opacity:0;transition:opacity .32s ease-out}
@media (prefers-reduced-motion:reduce){#l-fill{transition:none}}
.xprow{align-items:center;gap:6px}#lv{font:400 12px Pixelify,sans-serif;white-space:nowrap}#xpbar{display:block;flex:1;min-width:56px;height:8px;background:#3A2212;border-radius:2px;overflow:hidden}#xpfill{display:block;height:100%;width:0;background:#7FD45A}#more-btn{width:18px;height:18px;padding:0;font:700 13px/1 sans-serif;color:#3A2212;background:#FFD84D;border:2px solid #3A2212;border-radius:4px;cursor:pointer}
#hud-more{margin-top:6px;padding-top:6px;border-top:2px solid rgba(58,34,18,.25);width:210px;max-width:100%;max-height:45vh;overflow:auto;font-size:12px}#hud-more div{display:flex;justify-content:space-between;gap:8px}#hud-more span{opacity:.75}#hud-more h5{margin:6px 0 2px;font-size:12px}#hud-more p{margin:0}#hud-more .dim{opacity:.65;font-size:11px;margin-top:3px}
#fine-btn{display:block;width:100%;margin-top:6px;padding:4px 6px;font-size:12px}#fine-btn[hidden]{display:none}
#wipe{position:fixed;left:50%;top:50%;width:220vmax;height:220vmax;margin:-110vmax 0 0 -110vmax;border-radius:50%;background:#0A0E1E;transform:scale(0);transition:transform .16s ease-in;pointer-events:none;z-index:14;will-change:transform}#wipe.on{transform:scale(1)}
#lvbanner{position:fixed;left:50%;top:22%;z-index:12;padding:8px 26px;font:400 34px Pixelify,sans-serif;color:#FFF1CF;background:#3C9A4B;border:4px solid #2B1D14;box-shadow:0 5px 0 rgba(43,29,20,.5);pointer-events:none;transform:translateX(-50%)}#lvbanner.go{animation:lvb 1.8s ease-out both}@keyframes lvb{0%{opacity:0;transform:translate(-50%,16px) scale(.7)}12%{opacity:1;transform:translate(-50%,0) scale(1.08)}20%{transform:translate(-50%,0) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-14px)}}
@media (prefers-reduced-motion:reduce){#wipe{display:none}#lvbanner.go{animation:none}}
#inv-grid>p{grid-column:1/-1}
#chat.closed~#chat-toggle{bottom:14px}
@media (max-width:760px){#chat-toggle,#chat.closed~#chat-toggle{left:8px;right:auto;top:auto;bottom:150px}}
/* Blacksmith shop */
.window.forge-win{width:min(900px,100%);color-scheme:only light;background:#241820;border-color:#D9B054}.forge-win>.title{background:linear-gradient(#6B3A20,#4A2614);color:#FFE27A;text-shadow:0 2px 0 #1D1418}
#bv-body.forge{user-select:none;-webkit-user-select:none;color:#FFF1CF;padding:0}#bv-body.forge.busy{opacity:1}
.sm-head{position:relative;border:3px solid #1D1418;border-radius:6px;overflow:hidden;box-shadow:0 0 0 2px #A97B4E;margin:2px 2px 10px}#sm-scene{display:block;width:100%;height:auto;max-height:230px;object-fit:cover;object-position:center bottom;image-rendering:pixelated}
.sm-wallet{position:absolute;left:50%;top:8px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;background:rgba(29,20,24,.88);border:2px solid #D9B054;border-radius:6px;padding:3px 12px}.sm-wallet span{font-size:11px;color:#D9C49A}.sm-wallet b{display:flex;gap:5px;align-items:center;color:#FFE27A;font-size:16px;white-space:nowrap}.sm-wallet img{width:18px;height:18px;image-rendering:pixelated}
.sm-main{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,1fr);gap:12px;align-items:stretch;margin:0 2px 2px}
.sm-rack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 10px;border-radius:6px;background:#4A2E1E;background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.14) 0 2px,transparent 2px 26px);border:3px solid #1D1418;box-shadow:inset 0 0 0 2px #6B4226}
.sm-card{--c:#8A94A8;position:relative;font:inherit;color:#FFF1CF;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 5px 7px;min-height:118px;background:linear-gradient(#3A2930,#2B1D24);border:3px solid var(--c);border-radius:6px;cursor:pointer;box-shadow:0 4px 0 #1D1418;transition:transform .1s,box-shadow .1s}.sm-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 7px 0 #1D1418,0 0 14px var(--c)}.sm-card:focus-visible,.sm-go:focus-visible,.sm-back:focus-visible{outline:3px solid #FFF;outline-offset:2px}
.sm-card.on{background:linear-gradient(#5A3F30,#3A2930);box-shadow:0 4px 0 #1D1418,0 0 0 2px #FFE27A,0 0 16px var(--c)}.sm-card img{width:44px;height:44px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 0 rgba(0,0,0,.5))}.sm-card.locked img{filter:brightness(.72) drop-shadow(0 2px 0 rgba(0,0,0,.5))}.sm-card:disabled{cursor:default;opacity:.65}.sm-card b{font-size:13px;line-height:1.1;text-align:center}.sm-card small{font-size:11px;color:#E5CFA5;text-align:center;line-height:1.15}.sm-card small.eq{color:#8FF0A8;font-weight:bold}.sm-card small.own{color:#9FD0FF}.sm-card i{position:absolute;top:5px;right:5px;font:normal 13px Fredoka,sans-serif;background:var(--c);color:#1D1418;border-radius:4px;padding:0 4px}.sm-peg{position:absolute;top:-7px;left:50%;width:8px;height:8px;margin-left:-4px;background:#D9B054;border:2px solid #1D1418;border-radius:50%}
.sm-ask{--c:#FFD84D}.t0{--c:#8A94A8}.t1{--c:#7FCF5A}.t2{--c:#35C8E8}.t3{--c:#C07BF0}.t4{--c:#FF6B6B}.t5{--c:#FFD84D}
.sm-show{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:10px 12px 12px;background:linear-gradient(#3A2930,#1F151B);border:3px solid var(--c);border-radius:6px;box-shadow:0 0 18px color-mix(in srgb,var(--c) 45%,transparent)}#bv-body.forge .sm-show h3{margin:0;font:600 21px Fredoka,sans-serif;color:#FFF1CF}.sm-tier{font:600 12px Fredoka,sans-serif;color:#1D1418;background:var(--c);padding:1px 10px;border-radius:9px;letter-spacing:.5px;text-transform:uppercase}
.sm-stand{position:relative;width:112px;height:104px;display:flex;align-items:center;justify-content:center;overflow:hidden}.sm-stand img{position:relative;width:80px;height:80px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 4px 0 rgba(0,0,0,.55));animation:smfloat 2.2s ease-in-out infinite}.sm-rays{position:absolute;inset:-34px;background:repeating-conic-gradient(color-mix(in srgb,var(--c) 34%,transparent) 0 15deg,transparent 15deg 30deg);border-radius:50%;animation:smspin 14s linear infinite;mask-image:radial-gradient(circle,#000 25%,transparent 66%);-webkit-mask-image:radial-gradient(circle,#000 25%,transparent 66%)}
@keyframes smfloat{50%{transform:translateY(-5px)}}@keyframes smspin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.sm-stand img,.sm-rays{animation:none}}
.sm-mult{font:600 32px/1 Fredoka,sans-serif;color:var(--c);text-shadow:0 2px 0 #000}.sm-mult small{display:block;font-size:12px;color:#D9C49A;text-shadow:none;margin-top:2px}.sm-cost{font-weight:bold;color:#FFE27A}.sm-status{color:#D9C49A}
.sm-meter{position:relative;width:100%;height:22px;background:#1D1418;border:2px solid #000;border-radius:5px;overflow:hidden}.sm-meter span{position:absolute;inset:0 auto 0 0;background:linear-gradient(#FFB03C,#E8743B)}.sm-meter b{position:relative;display:block;text-align:center;font-size:13px;line-height:18px;text-shadow:0 1px 2px #000}
.sm-go{font:600 17px Fredoka,sans-serif;width:100%;margin-top:3px;padding:10px;color:#1D1418;background:linear-gradient(#FFE27A,#E9A12F);border:3px solid #1D1418;border-radius:6px;box-shadow:0 4px 0 #8A5A14;cursor:pointer}.sm-go:hover:not(:disabled){filter:brightness(1.1)}.sm-go:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #8A5A14}.sm-go.equip{background:linear-gradient(#9FD0FF,#4E96D8);box-shadow:0 4px 0 #24547E}.sm-go:disabled{background:#4B3A35;color:#D9C49A;box-shadow:none;cursor:default}
.sm-back{font:inherit;width:100%;padding:7px;color:#FFF1CF;background:#4B3A35;border:2px solid #1D1418;border-radius:6px;cursor:pointer}.sm-note{margin:4px 0 0;font-size:12px;line-height:1.3;color:#D9C49A}.sm-show p{margin:2px 0}.sm-show p .emo{width:18px;height:18px}.sm-won{--c:#FFD84D;animation:smwon .5s ease-out}.sm-lost{--c:#8A94A8}.sm-lost .sm-stand img{filter:grayscale(1) brightness(.75)}@keyframes smwon{0%{transform:scale(.85)}60%{transform:scale(1.05)}}
@media (max-width:680px){.sm-main{grid-template-columns:1fr}.sm-show{order:-1}.sm-rack{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-card{min-height:104px}#sm-scene{height:110px}.sm-wallet{top:4px;padding:1px 8px}.sm-wallet b{font-size:13px}}
.sm-head::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 34px rgba(0,0,0,.6)}.sm-wallet{z-index:1;box-shadow:0 3px 0 #1D1418}.sm-wallet::before,.sm-wallet::after{content:"";position:absolute;top:-10px;width:2px;height:8px;background:#14100F}.sm-wallet::before{left:14px}.sm-wallet::after{right:14px}
.sm-rack{grid-auto-rows:1fr}.sm-card{justify-content:center;background:linear-gradient(#46323A,#2B1D24 60%);border-width:2px;box-shadow:0 0 0 2px #1D1418,inset 0 2px 0 rgba(255,255,255,.14),inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent),0 5px 0 #1D1418}.sm-card:hover:not(:disabled){box-shadow:0 0 0 2px #1D1418,inset 0 2px 0 rgba(255,255,255,.14),0 8px 0 #1D1418,0 0 16px var(--c)}.sm-card.on{background:linear-gradient(#6B4A3A,#3A2930 65%);box-shadow:0 0 0 2px #FFE27A,inset 0 2px 0 rgba(255,255,255,.2),0 5px 0 #1D1418,0 0 18px var(--c)}
.sm-socket{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--c) 34%,#1D1418),#1D1418 72%);margin-bottom:2px}.sm-card b{font-size:14px}.sm-card small{font-size:12px}.sm-card i{border:1px solid #1D1418;font-size:14px}
.sm-show{background:radial-gradient(circle at 50% 22%,color-mix(in srgb,var(--c) 18%,#3A2930),#1F151B 72%);box-shadow:0 0 0 2px #1D1418,inset 0 2px 0 rgba(255,255,255,.12),0 0 18px color-mix(in srgb,var(--c) 45%,transparent)}.sm-tier{border:2px solid #1D1418}
.sm-cost{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:4px 8px;box-sizing:border-box;background:rgba(29,20,24,.75);border:1px solid #6B4226;border-radius:5px}.sm-cost img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
.sm-go{box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 4px 0 #8A5A14,0 6px 8px rgba(0,0,0,.4)}.sm-go.get:not(:disabled){animation:smpulse 1.8s ease-in-out infinite}@keyframes smpulse{50%{filter:brightness(1.12)}}@media (prefers-reduced-motion:reduce){.sm-go.get{animation:none!important}}
/* Farmables shop */
.window.farm-win{background:#3A2A1C;border-color:#7FCF5A}.farm-win>.title{background:linear-gradient(#3C9A4B,#2A6B38);color:#FFF6B8}.farm-win .sm-rack{background:#6B4226;box-shadow:inset 0 0 0 2px #8A5A34}.farm-win .sm-card{background:linear-gradient(#FFF1CF,#E8D3A4 70%);color:#3A2212}.farm-win .sm-card.on{background:linear-gradient(#FFF8C8,#FFE27A 70%)}.farm-win .sm-card:disabled{opacity:.7}.farm-win .sm-socket{width:44px;height:44px;background:radial-gradient(circle,#FFF,#D9C49A 75%)}.farm-win .sm-card img{width:34px;height:34px}
.fm-rack{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;max-height:430px;overflow-y:auto;scrollbar-width:thin}.fm-card{min-height:84px;padding:6px 3px}.fm-card b{font-size:12px}.fm-stats{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;width:100%;margin:2px 0;text-align:left;font-size:13px}.fm-stats dt{color:#D9C49A}.fm-stats dd{margin:0;text-align:right;color:#FFF1CF;font-weight:bold}.fm-stats .emo{width:15px;height:15px;vertical-align:-2px}.fm-buy{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.farm-win #bv-form{width:100%}.farm-win .bv-title,.farm-win .bv-label{color:#FFF1CF}.farm-win #bv-form input{width:100%;box-sizing:border-box}
@media (max-width:680px){.fm-rack{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}
.farm-win .sm-wallet{left:14%}.farm-win .fm-rack{align-content:start}
/* Shop and Lock Vault */
.window.sp-win{background:#1F3448;border-color:#9FD0FF}.sp-win>.title{background:linear-gradient(#E8435A,#B92F44);color:#FFF6E0}.sp-win .sm-rack{background:#D5DEE4;box-shadow:inset 0 0 0 2px #FFFFFF}.sp-win .sm-show{--c:#9FD0FF}.sp-win .sm-card{--c:#3E8FD0;background:linear-gradient(#FFFFFF,#E4EDF2 70%);color:#22303C}.sp-win .sm-card small{color:#465A6A}.sp-win .sm-card.on{background:linear-gradient(#FFFBEA,#FFE9A0 70%)}.sp-win .sm-socket{width:48px;height:48px;background:radial-gradient(circle,#FFF,#BFD4E0 75%)}.sp-win .sm-card img{width:38px;height:38px}.sp-win #bv-form{width:100%}.sp-win .bv-title,.sp-win .bv-label{color:#FFF1CF}.sp-win #bv-form input{width:100%;box-sizing:border-box}
.sp-rack{grid-auto-rows:auto;align-content:start}.sp-card{min-height:112px;padding:6px 3px}.sp-card b{font-size:13px}.sp-card .emo,.sm-cost .emo{width:15px;height:15px;vertical-align:-2px}.sp-about{white-space:normal;max-height:140px;overflow-y:auto;scrollbar-width:thin}.sm-go small{font-size:13px;opacity:.75}
.sp-tabs{display:flex;gap:6px;margin:0 2px}.sp-tabs:empty{display:none}.sp-tab{font:600 15px Fredoka,sans-serif;padding:7px 16px;color:#FFF1CF;background:#34506A;border:2px solid #14202C;border-bottom:0;border-radius:6px 6px 0 0;cursor:pointer}.sp-tab.on{background:#FFD84D;color:#3A2212}.sp-tab:hover{filter:brightness(1.1)}.sp-tab:focus-visible{outline:3px solid #FFF;outline-offset:-3px}.sp-tabs+.sp-main{margin-top:-1px}
.window.vault-win{background:#20252E;border-color:#D9B054}.vault-win>.title{background:linear-gradient(#525A6E,#39414F);color:#FFE27A}.vault-win .sm-rack.vt-rack{background:#2C333F;box-shadow:inset 0 0 0 2px #525A6E;display:flex;flex-direction:column;gap:8px}.vault-win .sm-show{--c:#D9B054}.vt-rate{display:flex;align-items:center;gap:8px;padding:9px 12px;background:linear-gradient(#46505F,#39414F);border:2px solid #14181F;border-radius:6px;box-shadow:inset 0 1px 0 rgba(255,255,255,.2);font-size:15px;color:#FFF1CF}.vt-rate b{white-space:nowrap;color:#FFE27A}.vt-rate i{flex:1;border-bottom:2px dotted #7A828C}.vt-rate span{font-weight:bold;white-space:nowrap}.vt-rate .emo{width:20px;height:20px;vertical-align:-4px}
.vt-gems{display:flex;gap:10px;align-items:center;width:100%;box-sizing:border-box;padding:8px 12px;background:#14181F;border:2px solid #D9B054;border-radius:6px;text-align:left}.vt-gems img{width:38px;height:38px;image-rendering:pixelated}.vt-gems small{display:block;color:#D9C49A}.vt-gems b{font:600 22px Fredoka,sans-serif;color:#9BEBFA}
@media (max-width:680px){.sp-tab{flex:1;padding:7px 4px;font-size:14px}.vt-rate{font-size:13px;padding:7px}}
.sm-wallet b{gap:9px}.sm-wallet em{display:flex;align-items:center;gap:3px;font-style:normal}.vault-win .sm-wallet{left:16%}.vault-win .sp-about{text-align:left;max-height:none}
/* Second pass on the shop windows */
.window.forge-win{box-shadow:0 0 0 2px #14100F,0 0 0 5px color-mix(in srgb,currentColor 0%,#D9B054),0 14px 40px rgba(0,0,0,.6);max-height:calc(100vh - 20px)}.forge-win>.title{position:relative;font-size:21px;letter-spacing:.6px;box-shadow:inset 0 2px 0 rgba(255,255,255,.3),inset 0 -3px 0 rgba(0,0,0,.25)}.forge-win .sm-head{box-shadow:0 0 0 2px #A97B4E,0 4px 0 rgba(0,0,0,.35)}#sm-scene{max-height:250px}
.sm-card{overflow:hidden}.sm-card.on::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.45) 50%,transparent 60%);background-size:300% 100%;animation:smshine 2.6s linear infinite;pointer-events:none}@keyframes smshine{0%{background-position:130% 0}60%,100%{background-position:-60% 0}}@media (prefers-reduced-motion:reduce){.sm-card.on::after{animation:none;display:none}}
.farm-win .sm-card b{color:#3A2212}.fm-card{min-height:104px;padding-top:18px}.fm-tag{position:absolute;top:0;left:0;right:0;font:600 10px Fredoka,sans-serif;letter-spacing:.5px;text-transform:uppercase;color:#1D1418;background:var(--c);padding:1px 0}.farm-win .sm-show{--c:#7FCF5A;background:radial-gradient(circle at 50% 18%,#54743C,#2A2118 70%)}.farm-win .fm-rack{background:#7A4E2A;background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.14) 0 2px,transparent 2px 34px)}
.fm-chips{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%}.fm-chip{background:rgba(29,20,24,.7);border:1px solid #6B4226;border-radius:5px;padding:3px 7px;text-align:left}.fm-chip small{display:block;font-size:11px;color:#D9C49A}.fm-chip b{font-size:14px;color:#FFF1CF}.fm-chip .emo{width:15px;height:15px;vertical-align:-2px}.fm-chip:has(b:not(:empty)) b{word-break:break-word}.fm-store{display:flex;justify-content:space-between;width:100%;font-size:13px;color:#D9C49A}.fm-store b{color:#9FE86A}
.sp-win .sm-show{background:radial-gradient(circle at 50% 16%,#2A5070,#14202C 72%)}.sp-win .sm-rack{background:#E8EEF2;background-image:repeating-linear-gradient(0deg,transparent 0 118px,#A8B8C4 118px 122px)}.sp-card small{display:inline-flex;gap:3px;align-items:center;margin-top:2px;padding:1px 7px;font-weight:bold;color:#3A2212!important;background:#FFE27A;border:1px solid #B98A20;border-radius:3px}.sp-card small b{font-size:12px}
.vault-win .sm-show{background:radial-gradient(circle at 50% 12%,#4B4230,#14181F 72%)}.vt-eco{--t:#7FCF5A;padding:9px 12px;background:#14181F;border:2px solid var(--t);border-radius:6px;box-shadow:0 0 12px color-mix(in srgb,var(--t) 35%,transparent)}.vt-eco.warm{--t:#FFD84D}.vt-eco.hot{--t:#FF9A3C}.vt-eco.full{--t:#E8435A}.vt-eco small{display:block;font-size:12px;color:#D9C49A}.vt-eco b{font:600 22px Fredoka,sans-serif;color:var(--t)}.vt-bar{position:relative;height:14px;margin:5px 0 3px;background:#2C333F;border:2px solid #000;border-radius:4px;overflow:hidden}.vt-bar span{position:absolute;inset:0 auto 0 0;background:linear-gradient(color-mix(in srgb,var(--t) 70%,#fff),var(--t))}.vt-bar u{position:absolute;top:0;bottom:0;width:1px;background:rgba(0,0,0,.55)}.vt-eco-low{display:flex;justify-content:space-between;font-size:12px;color:#C4CCD8}.vt-eco p{margin:4px 0 0;font-size:12px;color:#FFB0B8}
.vt-rate{padding:6px 10px;border-left:5px solid #7A828C}.vt-cgl{border-left-color:#A8DCF0}.vt-blgl{border-left-color:#FFD84D}.vt-bgl{border-left-color:#D8DEE8}.vt-dl{border-left-color:#E89A5C}.vt-wl{border-left-color:#8A94A8}.vt-rate em{font-style:normal;font-size:12px;color:#C4CCD8;white-space:nowrap}
@media (max-width:680px){.vt-rate em{display:none}.vt-eco b{font-size:18px}.window.forge-win{max-height:calc(100vh - 8px)}}
/* Polish pass */
#lv,.lv,.tag,.ctab,.cell.more,#lvbanner,#l-retry{font-family:Fredoka,"Trebuchet MS",sans-serif;font-weight:600}
#eco-alert{position:fixed;top:56px;left:50%;transform:translateX(-50%);z-index:6;max-width:min(560px,92vw);padding:5px 14px;font-size:13px;text-align:center;color:#3A2212;background:#FFD84D;border:2px solid #3A2212;border-radius:6px;box-shadow:0 3px 0 rgba(0,0,0,.3);pointer-events:none}#eco-alert[hidden]{display:none}#eco-alert.lv90{background:#FF9A3C}#eco-alert.lv100{background:#E8435A;color:#FFF}
.sm-wallet b.ping{animation:smping .6s ease-out}@keyframes smping{30%{transform:scale(1.18);filter:brightness(1.4)}}@media (prefers-reduced-motion:reduce){.sm-wallet b.ping{animation:none}}
.sp-tag{position:absolute;top:4px;left:4px;z-index:1;padding:0 5px;font-size:11px;color:#FFF;background:#E8435A;border:1px solid #8E1F34;border-radius:3px}.sp-tag.New{background:#3C9A4B;border-color:#1F5B3A}
.fm-amts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:6px}.fm-amts button{font:inherit;font-size:13px;padding:6px 2px;color:#3A2212;background:#FFE27A;border:2px solid #1D1418;border-radius:5px;cursor:pointer}.fm-amts button:hover{filter:brightness(1.08)}.fm-amts button:focus-visible{outline:3px solid #FFF}
.window.hall-win{--h:#8E1F34;width:min(780px,100%);background:#241820;border-color:#D9B054;box-shadow:0 0 0 2px #14100F,0 0 0 5px #D9B054,0 14px 40px rgba(0,0,0,.6);color-scheme:only light}.hall-win.hall-t{--h:#1E8C9C}.hall-win.hall-m{--h:#4E7A2A}.hall-win.hall-r{--h:#2A3A6A}.hall-win.hall-c{--h:#6B4226}.hall-win>.title{background:linear-gradient(color-mix(in srgb,var(--h) 80%,#fff),var(--h));color:#FFE27A;text-shadow:0 2px 0 #1D1418;font-size:21px}
.hall-banner{display:flex;align-items:center;gap:16px;min-height:96px;margin:2px 2px 10px;padding:8px 18px;background:radial-gradient(circle at 12% 50%,color-mix(in srgb,var(--h) 55%,#FFE9B0),var(--h) 60%,#1D1418);border:3px solid #1D1418;border-radius:6px;box-shadow:0 0 0 2px #D9B054}.hall-banner img{max-height:92px;max-width:96px;image-rendering:pixelated;filter:drop-shadow(0 3px 0 rgba(0,0,0,.5))}.hall-banner b{display:block;font-size:26px;color:#FFF1CF;text-shadow:0 2px 0 #000}.hall-banner small{font-size:14px;color:#FFE27A}
#botview .hall-win #bv-body{color:#FFF1CF}.hall-win .bv-embed{background:linear-gradient(#3A2930,#2B1D24);border:2px solid #6B4226;border-left:6px solid #D9B054;color:#FFF1CF}.hall-win .bv-title,.hall-win #bv-body h3,.hall-win #bv-body h4,.hall-win #bv-body h5,.hall-win .bv-field b,.hall-win .bv-author{color:#FFE27A}.hall-win #bv-body pre,.hall-win #bv-body code{background:rgba(0,0,0,.35);color:#FFF1CF}.hall-win .bv-foot,.hall-win #bv-body small,.hall-win .bv-pickhead{color:#D9C49A}.hall-win .bv-btn{min-height:36px;padding:7px 13px;font-size:14px;color:#1D1418;background:linear-gradient(#FFE27A,#E9A12F);border:2px solid #1D1418;border-radius:6px;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 3px 0 #8A5A14}.hall-win .bv-btn:hover:not(:disabled){filter:brightness(1.1)}.hall-win .bv-btn:disabled{color:#D9C49A;background:#4B3A35;box-shadow:none}.hall-win .bv-opt{color:#FFF1CF;background:linear-gradient(#46323A,#2B1D24);border:2px solid #A97B4E;border-radius:6px;box-shadow:0 3px 0 #1D1418}.hall-win .bv-opt small{color:#D9C49A}.hall-win .bv-sel{color:#FFF1CF;background:#2B1D24;border:2px solid #A97B4E}.hall-win .bv-label{color:#FFF1CF}.hall-win .bv-opt:focus-visible,.hall-win .bv-btn:focus-visible{outline:3px solid #FFF;outline-offset:2px}
@media (max-width:680px){.hall-banner{min-height:70px;padding:6px 10px}.hall-banner img{max-height:62px;max-width:66px}.hall-banner b{font-size:20px}}
.hall-banner{background:linear-gradient(90deg,var(--h),#1D1418)}.hall-banner small{color:#FFE27A;text-shadow:0 1px 0 #000}
/* Parts D and F */
.sm-bit{position:absolute;width:5px;height:5px;pointer-events:none;z-index:2}.modal:not([hidden]) .window{animation:winIn .16s ease-out}@keyframes winIn{from{transform:translateY(10px) scale(.97);opacity:0}}@media (prefers-reduced-motion:reduce){.modal:not([hidden]) .window{animation:none}}
#toasts{top:auto;bottom:28px;z-index:9}.toast{text-align:center}
.sm-show p{line-height:1.35}.sm-go{transition:transform .08s}.sp-tab,.sm-back{transition:filter .1s}.sm-back:hover{filter:brightness(1.2)}
/* Part E */
.hall-win .hall-text{margin:0 0 8px}.hall-chips{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.hall-win .fm-chip{background:rgba(0,0,0,.3);border-color:#6B4226}.hall-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 2px}.hall-win .bv-btn.hall-tile{min-height:50px;color:#FFF1CF;background:linear-gradient(#46323A,#2B1D24);border:2px solid #A97B4E;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #1D1418}.hall-win .bv-btn.hall-tile:hover:not(:disabled){border-color:#FFE27A;transform:translateY(-1px)}.hall-win .bv-btn.hall-tile:disabled{color:#1D1418;background:linear-gradient(#FFE27A,#E9A12F);border-color:#FFF6B8;opacity:1}.hall-act{display:flex;flex-wrap:wrap;gap:8px;margin:8px 2px}.hall-win .bv-btn.hall-main{flex:1;min-width:180px;min-height:46px;font-size:17px}.hall-foot{display:flex;gap:8px;margin:8px 2px 2px}.hall-win .hall-foot .bv-btn{color:#FFF1CF;background:#4B3A35;box-shadow:none}
/* Part F: narrow screens */
@media (max-width:760px){#hud .areaname{left:auto;right:8px;top:66px;bottom:auto;transform:none}#chat-toggle,#chat.closed~#chat-toggle{left:8px;right:auto;top:auto;bottom:14px}#chat{top:auto;bottom:50px;left:8px}#eco-alert{top:112px;font-size:12px}#toasts{bottom:60px}}
@media (pointer:coarse){#toasts{bottom:96px}}
/* Gacha capsule */
.gc-cap{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;background:rgba(20,10,16,.9);border-radius:inherit;cursor:pointer}
.gc-stage{position:relative;width:200px;height:200px;display:flex;align-items:center;justify-content:center}
.gc-mach{height:170px;image-rendering:pixelated;animation:gcShake .22s linear infinite}
.gc-ball{position:absolute;left:50%;bottom:6px;width:34px;height:34px;margin-left:-17px;border-radius:50%;background:linear-gradient(#E8435A 50%,#FFF6DC 50%);border:3px solid #1D1418;opacity:0}
.gc-rays{position:absolute;inset:-30px;opacity:0;border-radius:50%;background:repeating-conic-gradient(#FFD84D 0 12deg,transparent 12deg 30deg);-webkit-mask:radial-gradient(circle,#000 25%,transparent 70%);mask:radial-gradient(circle,#000 25%,transparent 70%)}
.gc-res{font-size:30px;color:#FFF6DC;text-shadow:0 2px 0 #000}.gc-sub{min-height:20px;max-width:90%;color:#FFE27A;font-size:15px;overflow-wrap:anywhere}
.gc-cap.open .gc-mach{animation:none;opacity:.35}.gc-cap.open .gc-ball{opacity:1;animation:gcDrop .45s cubic-bezier(.3,1.5,.5,1) both}
.gc-cap.won .gc-rays{opacity:.85;animation:gcSpin 5s linear infinite}.gc-cap.won .gc-res{color:#FFD84D;font-size:38px}.gc-cap.lost .gc-ball{filter:grayscale(1)}.gc-cap.lost .gc-res{color:#C9C0B8}
.gc-prize{position:absolute;left:50%;top:50%;width:128px;height:128px;margin:-64px 0 0 -64px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 4px 0 rgba(0,0,0,.55));animation:gcPrize .4s cubic-bezier(.3,1.6,.5,1) both}.gc-cap.prize .gc-ball{display:none}.gc-cap.prize .gc-mach{opacity:.12}@keyframes gcPrize{from{transform:scale(.2)}to{transform:scale(1)}}
.gc-cap.calm *{animation:none!important}
@keyframes gcShake{0%,100%{transform:translate(0,0) rotate(0)}25%{transform:translate(-3px,1px) rotate(-2deg)}75%{transform:translate(3px,-1px) rotate(2deg)}}
@keyframes gcDrop{from{transform:translateY(-110px) scale(.5)}to{transform:translateY(-70px) scale(2)}}
@keyframes gcSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.gc-cap *{animation:none!important}}
/* Hall and Market menus */
.gh-win{--c:#FFB81F;--t:#6B3A20}.gh-win.gh-g{--c:#FF7FC4;--t:#5A1E8C}.gh-win.gh-t{--c:#35E0C8;--t:#0E5A6A}.gh-win.gh-m{--c:#9FE870;--t:#3A6A22}.gh-win.gh-r{--c:#FFD84D;--t:#22346A}.gh-win.gh-k{--c:#FF9A3C;--t:#8E3A1E}
.window.gh-win{width:min(960px,100%)}.gh-win>.title{background:linear-gradient(color-mix(in srgb,var(--t) 75%,#fff),var(--t))}
.gh-plaque{position:absolute;left:12px;bottom:8px;z-index:1;padding:3px 14px 5px;font:400 clamp(16px,3vw,30px)/1 Silkscreen,Pixelify,monospace;letter-spacing:1px;color:#FFF6DC;background:color-mix(in srgb,var(--t) 88%,#000);border:3px solid var(--c);border-radius:5px;box-shadow:0 3px 0 #14100F;text-shadow:0 2px 0 #14100F}
.gh-left{display:flex;flex-direction:column;gap:10px;min-width:0}.gh-side{--c:inherit}.gh-win .sm-show{border-color:var(--c);box-shadow:0 0 18px color-mix(in srgb,var(--c) 40%,transparent)}
.gh-win .sm-rack{background:#241A2E;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--c) 40%,#1D1418);max-height:420px;overflow:auto}.gh-rack{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.gh-card{--c:inherit;min-height:104px;border-color:color-mix(in srgb,var(--c) 55%,#3A2930)}.gh-card.on{cursor:default}.gh-win .sm-card b{font-size:12px}
.gh-capsule{border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,color-mix(in srgb,var(--c) 70%,#fff) 40%,color-mix(in srgb,var(--c) 70%,#000));padding:3px}.gh-capsule img{width:38px;height:38px}
.gh-bar{width:100%;height:12px;position:relative;background:#14100F;border:2px solid #000;border-radius:7px;overflow:hidden}.gh-bar span{display:block;height:100%;min-width:2px;background:linear-gradient(90deg,var(--c),#FFF6B8)}.gh-sup{color:#D9C49A;font-size:12px}
.gh-chips{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}.gh-win .fm-chip{background:rgba(0,0,0,.3);border:1px solid #6B4226;border-radius:5px;padding:3px 7px;text-align:left}.gh-win .fm-chip small{display:block;font-size:11px;color:#D9C49A}.gh-win .fm-chip b{color:#FFE27A;font-size:14px}
.gh-extra{display:flex;flex-wrap:wrap;gap:8px;margin:10px 2px 2px}.gh-extra>*{flex:1 1 140px;width:auto;text-align:center;text-decoration:none}.gh-extra .gh-back{flex:0 0 120px;margin-left:auto}.gh-extra select{flex:1 1 100%;padding:8px}
.gh-rule{margin:6px 2px;font-size:13px;line-height:1.35;color:#E5CFA5}.gh-h{margin:6px 0 3px;font:600 15px Fredoka,sans-serif;color:#FFE27A;align-self:flex-start}.gh-banner{margin:0 2px 8px;padding:8px 12px;font-weight:bold;text-align:center;color:#FFF6DC;background:#3A2930;border:2px solid var(--c);border-radius:6px}.gh-banner.won{background:#3C6A22;animation:smwon .5s ease-out}.gh-banner.lost{background:#6A2230;animation:ghShake .3s linear}
.gh-gem{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;font:600 18px Fredoka,sans-serif;font-style:normal;color:#14100F;background:linear-gradient(135deg,#fff,var(--c) 45%,color-mix(in srgb,var(--c) 60%,#000));clip-path:polygon(50% 0,100% 30%,100% 70%,50% 100%,0 70%,0 30%)}
.gh-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px;height:100%}.gh-slot{--c:#4B3A35;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px;text-align:center;background:linear-gradient(#1A3640,#0F242C);border:3px solid var(--c);border-radius:6px;box-shadow:0 0 16px color-mix(in srgb,var(--c) 45%,transparent)}.gh-slot small{color:#9FD8DC;font-size:12px}.gh-slot>b{font:600 22px Fredoka,sans-serif;color:#FFF6DC}.gh-slot p{flex:1;margin:0;font-size:13px;color:#CFEDEE}.gh-slot .gh-gem{width:64px;height:64px;font-size:32px}.gh-slot.empty .gh-gem{--c:#6B7A80}
.gh-list{width:100%;display:flex;flex-direction:column;gap:5px;max-height:350px;overflow:auto;text-align:left}.gh-trait{display:flex;gap:8px;align-items:center;padding:5px 7px;background:rgba(0,0,0,.28);border-left:4px solid var(--c);border-radius:4px}.gh-trait b{display:block;font-size:14px;color:#FFF1CF}.gh-trait em{font:600 10px Fredoka,sans-serif;font-style:normal;padding:0 6px;border-radius:8px;color:#14100F;background:var(--c)}.gh-trait small{font-size:11px;line-height:1.2;color:#D9C49A}
#bv-body.busy .gh-spin .gh-gem,#bv-body.busy .gh-spin img{animation:ghShake .2s linear infinite}@keyframes ghShake{25%{transform:translate(-3px,1px) rotate(-3deg)}75%{transform:translate(3px,-1px) rotate(3deg)}}
.gh-ladder{display:flex;flex-direction:column;gap:4px}.gh-ladder div{display:flex;justify-content:space-between;align-items:center;padding:6px 12px;color:#14100F;background:linear-gradient(90deg,var(--c),color-mix(in srgb,var(--c) 45%,#1D1418));border:2px solid #14100F;border-radius:5px}.gh-ladder b{font:600 16px Fredoka,sans-serif}.gh-ladder span{font-weight:bold;color:#FFF6DC;text-shadow:0 1px 0 #000}
.gh-warn{padding:7px 12px;color:#FFF6DC;font-size:14px;background:repeating-linear-gradient(135deg,#6A2230 0 14px,#551A26 14px 28px);border:2px solid #E8435A;border-radius:5px}.gh-warn b{color:#FFD84D}.gh-copies{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px;max-height:190px;overflow:auto}.gh-copies .bv-opt.on{outline:3px solid var(--c)}
.gh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(122px,1fr));gap:10px;height:100%;align-content:start}.gh-tile{position:relative;overflow:hidden;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:108px;padding:10px 6px;color:#FFF6DC;background:linear-gradient(#2F4178,#1C2A52);border:3px solid #D9B054;border-radius:7px;box-shadow:0 4px 0 #14100F;cursor:pointer;transition:transform .1s,box-shadow .1s}.gh-tile img{width:50px;height:50px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 0 rgba(0,0,0,.5))}.gh-tile b{font:600 15px Fredoka,sans-serif}.gh-tile:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 7px 0 #14100F,0 0 16px #FFD84D}.gh-tile:focus-visible{outline:3px solid #fff}.gh-tile:disabled{opacity:.55;cursor:default}.gh-tile::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transition:left .35s}.gh-tile:hover::after{left:120%}
.gh-pass{width:100%;display:flex;gap:10px;align-items:center;text-align:left;padding:8px;background:linear-gradient(#FFF6DC,#E8DFC8);color:#1D1418;border:3px solid #D9B054;border-radius:6px}.gh-pass img{width:52px;height:52px;object-fit:contain;image-rendering:pixelated}.gh-pass small{display:block;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:#6B4226}.gh-pass b{display:block;font:600 19px Fredoka,sans-serif;overflow-wrap:anywhere}.gh-pass em{font-style:normal;font-weight:bold;color:#8E1F34}
.gh-kvs{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left}.gh-kv{display:flex;justify-content:space-between;gap:10px;padding:3px 8px;background:rgba(0,0,0,.26);border-radius:4px}.gh-kv small{flex:none;color:#D9C49A;font-size:12px}.gh-kv b{color:#FFF1CF;font-size:13px;text-align:right;overflow-wrap:anywhere}.gh-kv .emo{width:15px;height:15px}
.gh-mlist{grid-template-columns:1fr!important;min-height:230px;align-content:start}.gh-listing{font:inherit;display:flex;gap:10px;align-items:center;text-align:left;padding:8px;color:#FFF1CF;background:linear-gradient(#4A3024,#2F1E18);border:2px solid var(--c);border-radius:6px;cursor:pointer;box-shadow:0 3px 0 #14100F}.gh-listing:hover:not(:disabled){filter:brightness(1.2)}.gh-listing:disabled{opacity:.6;cursor:default}.gh-listing img{width:34px;height:34px;image-rendering:pixelated}.gh-listing b{display:block;font-size:15px}.gh-price{display:block;color:#FFE27A;font-size:13px}.gh-listing small{color:#D9C49A;font-size:11px}
.gh-step{display:flex;align-items:center;gap:10px;margin:6px 0;padding:8px 10px;border-radius:10px;background:rgba(127,127,127,.12);font-size:14px;line-height:1.4}.gh-step>img{flex:none;width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.gh-step>div{min-width:0;overflow-wrap:anywhere}
.gh-empty.soft{padding:10px;color:inherit}.gh-empty.soft img{width:48px;height:48px}.gh-empty.soft b{color:inherit}
.gh-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:30px 10px;text-align:center;color:#FFF1CF}.gh-empty img{width:70px;height:70px;opacity:.75;image-rendering:pixelated}.gh-empty b{font:600 19px Fredoka,sans-serif}.gh-empty small{color:#D9C49A}.gh-pager{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:6px}
.gh-stalls{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:7px;max-height:400px;overflow:auto;padding:8px;background:#241A2E;border:3px solid #1D1418;border-radius:6px}.gh-stall{--a:#3E8FD0;position:relative;font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;padding:20px 5px 7px;color:#FFF1CF;background:#3A2930;border:2px solid #14100F;border-radius:5px;overflow:hidden;cursor:pointer;text-align:center}.gh-stall.open{--a:#3C9A4B;box-shadow:0 0 10px #7FCF5A}.gh-stall i{position:absolute;inset:0 0 auto;height:14px;background:repeating-linear-gradient(90deg,var(--a) 0 12px,#FFF6E0 12px 24px)}.gh-stall b{font-size:13px}.gh-stall small{font-size:11px;line-height:1.15;color:#D9C49A}.gh-stall:hover{filter:brightness(1.2)}
.gh-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.gh-lot{position:relative;display:flex;flex-direction:column;gap:3px;padding:10px 8px 8px;color:#FFF1CF;background:linear-gradient(#4A3024,#2F1E18);border:2px solid var(--c);border-radius:6px}.gh-lot.empty{opacity:.55;border-style:dashed;min-height:70px;justify-content:center;text-align:center}.gh-lot em{align-self:flex-start;font:600 10px Fredoka,sans-serif;font-style:normal;padding:0 7px;border-radius:8px;color:#14100F;background:#7FCF5A}.gh-lot em.gh-buy{background:#9FD0FF}.gh-lot em.gh-rent{background:#FFD84D}.gh-lot small{font-size:11px;color:#E5CFA5}
.gh-auction{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:18px;background:radial-gradient(circle,#5A3020,#241418);border:3px solid var(--c);border-radius:6px}.gh-auction>b{font:600 26px Fredoka,sans-serif;color:#FFE27A;text-shadow:0 2px 0 #000}.gh-gavel{width:64px;height:64px;background:url(assets/icons/menu_market.png) center/contain no-repeat;image-rendering:pixelated;animation:smfloat 2.2s ease-in-out infinite}
@media (max-width:680px){.gh-slots{grid-template-columns:1fr}.gh-win .sm-show{order:0}.gh-plaque{left:6px;bottom:4px;padding:2px 8px}}
.gc-cap.calm .gh-spin *,.gh-win.calm *{animation:none!important}@media (prefers-reduced-motion:reduce){.gh-win *{animation:none!important}}
#bv-body .gh-h{color:#FFE27A}.gh-win #sm-scene{max-height:170px}.gh-win .gh-list{max-height:250px}.gh-slots{height:auto}.gh-slot p{flex:none}.gh-slot .sm-go{margin-top:auto}
.gh-price b{display:inline!important;font-size:inherit!important}.gh-slot .sm-go small{color:#5A3A14}
.gh-win.gh-w1{--c:#5FB8E8;--t:#1F6B8C}.gh-win.gh-w2{--c:#7FFFD8;--t:#14505A}.gh-win.gh-w3{--c:#E8535A;--t:#2A6FB0}.gh-win.gh-w4{--c:#FFD84D;--t:#A8201F}.gh-win.gh-w5{--c:#E8B88A;--t:#8E1F34}.gh-win.gh-w6{--c:#C8A0FF;--t:#2A1A48}
.gh-wbox{padding:10px 12px;background:rgba(0,0,0,.28);border:2px solid color-mix(in srgb,var(--c) 45%,#1D1418);border-radius:6px;overflow-wrap:anywhere}#bv-body .gh-wt{margin:0 0 4px;font:600 20px Fredoka,sans-serif;color:#FFE27A}.gh-wimg{display:block;max-width:100%;margin:6px auto;border-radius:5px}.gh-wtiles{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;margin-top:6px}.gh-side .gh-kvs{margin-bottom:6px}
/* Elite pass: minimum text sizes and centring */
.gh-win .sm-card b,.sp-win .sm-card b,.forge-win .sm-card b{font-size:14px}.forge-win .sm-card small,.forge-win .sm-note,.gh-rule,.gh-sup,.gh-kv small,.gh-kv b,.gh-trait small,.gh-listing small,.gh-price,.gh-stall small,.gh-stall b,.gh-lot small,.gh-slot small,.gh-slot p,.fm-chip small,.sm-wallet span{font-size:13px;line-height:1.3}.gh-kv b{font-size:14px}.sm-wallet b{font-size:17px}.gh-trait em,.gh-lot em{font-size:12px}
.gh-extra .gh-back,.sm-back{white-space:nowrap}.gh-extra .gh-back{flex:0 0 auto;padding:8px 18px}.sm-go{text-align:center}.sm-go small{font-size:14px}.gh-plaque{text-align:center}.gh-tile b{font-size:16px;text-align:center}.sm-card b,.gh-card b{display:block;width:100%;text-align:center}.bv-opt b{font-size:14px}.bv-opt small{font-size:13px}
.sm-go,.sm-back,.gh-tile,.gh-listing,.gh-stall,.bv-opt{transition:transform .08s,filter .12s}.sm-back:hover:not(:disabled),.bv-opt:hover{filter:brightness(1.18)}.sm-back:active:not(:disabled),.bv-opt:active,.gh-tile:active:not(:disabled),.gh-listing:active:not(:disabled){transform:translateY(2px)}
.gh-win #sm-scene{object-position:center 35%}
/* Upright phones: controls sit on the ground area, thumbs reach everything */
@media (pointer:coarse) and (orientation:portrait){#touch .pad{left:12px;bottom:calc(18px + env(safe-area-inset-bottom))}#touch .pad button{width:72px;height:72px;background:linear-gradient(#FFF6DC,#E8D3A4);box-shadow:0 4px 0 var(--ink)}#touch .act{right:12px;bottom:calc(18px + env(safe-area-inset-bottom));width:84px;height:84px;box-shadow:0 4px 0 #8A5A14}#touch .jump{right:30px;bottom:calc(112px + env(safe-area-inset-bottom));width:66px;height:66px;box-shadow:0 4px 0 #2A6A22}#chat-toggle,#chat.closed~#chat-toggle{left:12px;right:auto;top:auto;bottom:calc(102px + env(safe-area-inset-bottom))}#chat{bottom:calc(140px + env(safe-area-inset-bottom));left:8px}#toasts{bottom:calc(190px + env(safe-area-inset-bottom))}body{overscroll-behavior:none;touch-action:manipulation}#touch button{touch-action:none;user-select:none;-webkit-user-select:none}}
@media (pointer:coarse) and (orientation:portrait){#chat{width:calc(100vw - 112px);max-width:calc(100vw - 112px)}}
/* Menu popups */
.gh-win.gh-n1{--c:#FFD84D;--t:#2A3080}.gh-win.gh-n2{--c:#FFD84D;--t:#6B3A20}.gh-win.gh-n3{--c:#E8535A;--t:#3A3460}.gh-win.gh-n4{--c:#FF7FC4;--t:#3A2A90}.gh-win.gh-n5{--c:#E8B88A;--t:#6B4226}
.gh-skills{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:7px;max-height:440px;overflow:auto;padding:2px}.gh-skill{font:inherit;display:flex;flex-direction:column;gap:4px;padding:8px 10px;text-align:left;color:#FFF1CF;background:linear-gradient(#2A3066,#1A1E48);border:2px solid #4A52A0;border-radius:6px;cursor:pointer;box-shadow:0 3px 0 #0E1230}.gh-skill:hover{filter:brightness(1.2);border-color:#FFD84D}.gh-skill.done{border-color:#FFD84D;background:linear-gradient(#4A3A1A,#2A2010)}.gh-skill b{display:flex;justify-content:space-between;gap:6px;font-size:14px}.gh-skill em{font-style:normal;color:#FFE27A}.gh-skill small{font-size:13px;line-height:1.25;color:#C8CCE8}.gh-skill .gh-bar{height:8px;display:block}.gh-points{text-align:center}.gh-points b{display:block;font:600 40px/1 Fredoka,sans-serif;color:#FFD84D;text-shadow:0 2px 0 #000}.gh-points small{font-size:13px;color:#D9C49A}.gh-side .sm-back{margin-top:2px}
.window.gh-panel{--c:#FFD84D;--t:#6B3A20;width:min(640px,100%);background:#241820;border-color:#D9B054;color:#FFF1CF}.gh-panel.gh-n6{--c:#FFD84D;--t:#6E1F3A}.gh-panel.gh-n7{--c:#7FCF5A;--t:#1F6B8C}.gh-panel.gh-n8{--c:#9FD0FF;--t:#20304A}.gh-panel>.title{background:linear-gradient(color-mix(in srgb,var(--t) 75%,#fff),var(--t));color:#FFE27A;text-shadow:0 2px 0 #1D1418}.gh-panel .sm-head canvas{display:block;width:100%;height:auto;max-height:170px;object-fit:cover;image-rendering:pixelated}.gh-panel p,.gh-panel label,.gh-panel .hint{color:#FFF1CF;font-size:15px}.gh-panel .set{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0;padding:8px 12px;background:rgba(0,0,0,.28);border-radius:6px}.gh-panel .worlds{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}.gh-panel .worlds .btn{min-height:58px;justify-content:center;font-size:17px;color:#FFF6DC;background:linear-gradient(#2F7AA8,#1F4F78);border:3px solid #D9B054;box-shadow:0 4px 0 #14100F}.gh-panel .worlds .btn:hover{filter:brightness(1.18);transform:translateY(-2px)}.gh-panel .btn{cursor:pointer}
/* Inventory */
.gh-n5 .sp-tabs{margin-bottom:0}.iv-tab.on{background:var(--iv);color:#1D1418}.gh-n5 .sm-show{border-color:var(--iv);box-shadow:0 0 18px color-mix(in srgb,var(--iv) 40%,transparent)}.gh-n5 .sm-rays{background:repeating-conic-gradient(color-mix(in srgb,var(--iv) 38%,transparent) 0 15deg,transparent 15deg 30deg)}
.iv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:9px;align-content:start;min-height:280px;max-height:430px;overflow:auto;padding:10px;background:#3A2216;background-image:repeating-linear-gradient(0deg,transparent 0 126px,#2A1810 126px 131px,#8A5A34 131px 134px);border:3px solid #1D1418;border-radius:0 6px 6px 6px;box-shadow:inset 0 0 0 2px #6B4226}
.iv-card{position:relative;font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:116px;padding:9px 5px 7px;color:#FFF1CF;background:linear-gradient(#4A3024,#2B1D18);border:2px solid color-mix(in srgb,var(--iv) 55%,#3A2930);border-radius:7px;box-shadow:0 4px 0 #14100F;cursor:pointer;transition:transform .1s,box-shadow .1s,filter .1s}.iv-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 7px 0 #14100F,0 0 14px var(--iv)}.iv-card:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #14100F}.iv-card:focus-visible{outline:3px solid #fff}.iv-card.on{background:linear-gradient(#6B4A30,#3A2930);border-color:#FFE27A;box-shadow:0 4px 0 #14100F,0 0 0 2px #FFE27A,0 0 16px var(--iv)}.iv-card:disabled{cursor:default;opacity:.8}.iv-card.eq{border-color:#7FD45A}.iv-card b{font-size:13px;line-height:1.12;text-align:center;overflow-wrap:anywhere}.iv-card small{font-size:12px;color:#D9C49A}
.iv-slot{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--iv) 45%,#fff),color-mix(in srgb,var(--iv) 35%,#1D1418));box-shadow:inset 0 -3px 0 rgba(0,0,0,.35)}.iv-pic{width:44px;height:44px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 0 rgba(0,0,0,.5))}.iv-glyph{display:flex;align-items:center;justify-content:center;width:38px;height:38px;font:600 21px Fredoka,sans-serif;font-style:normal;color:#14100F;background:linear-gradient(135deg,#fff,var(--iv) 50%,color-mix(in srgb,var(--iv) 60%,#000));clip-path:polygon(50% 0,100% 30%,100% 70%,50% 100%,0 70%,0 30%)}.iv-glyph.big{position:relative;width:72px;height:72px;font-size:38px}.iv-stand .iv-pic{position:relative;width:80px;height:80px;animation:smfloat 2.2s ease-in-out infinite}
.iv-n{position:absolute;right:4px;top:4px;z-index:1;padding:0 6px;font-size:12px;font-weight:bold;color:#FFF6DC;background:#14100F;border-radius:8px}.iv-eq{position:absolute;left:50%;top:-7px;z-index:1;transform:translateX(-50%);padding:0 7px;font:600 11px Fredoka,sans-serif;font-style:normal;color:#14300A;background:#7FD45A;border:1px solid #14100F;border-radius:8px;white-space:nowrap}.iv-rar{font:600 12px Fredoka,sans-serif;font-style:normal;padding:1px 10px;color:#1D1418;background:var(--iv);border-radius:9px;text-transform:uppercase;letter-spacing:.4px}.iv-main{width:100%}
.iv-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:280px;padding:20px;text-align:center;color:#FFF1CF;background:radial-gradient(circle,#4A3024,#2A1810);border:3px solid #1D1418;border-radius:0 6px 6px 6px;box-shadow:inset 0 0 0 2px #6B4226}.iv-chest img{width:86px;height:86px;image-rendering:pixelated;animation:smfloat 2.6s ease-in-out infinite}.iv-empty b{font:600 21px Fredoka,sans-serif}.iv-empty small{font-size:14px;color:#D9C49A}.iv-stats{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}.iv-stats div{padding:6px;text-align:center;background:rgba(0,0,0,.3);border-radius:5px}.iv-stats b{display:block;font:600 26px/1 Fredoka,sans-serif;color:var(--iv)}.iv-stats small{font-size:12px;color:#D9C49A}
.iv-nav{display:inline-flex;align-items:center;justify-content:center;gap:7px}.iv-nav img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
@media (prefers-reduced-motion:reduce){.iv-pic,.iv-chest img{animation:none!important}}@media (max-width:680px){.iv-grid{grid-template-columns:repeat(3,minmax(0,1fr));min-height:180px;background-image:none}.gh-n5 .gh-main .gh-side{order:-1}}
.gh-n5 #gh-tabs{flex-wrap:wrap}@media (max-width:680px){.gh-n5 #gh-tabs .sp-tab{padding:5px 9px;font-size:14px}}
#hud .hud-left #btn-auto{display:flex;width:100%;min-height:36px;margin-top:6px;justify-content:center;gap:6px;font-size:14px;background:#FFC93C;color:#3A2212}#hud .hud-left #btn-auto.on{background:#7FD45A}#hud .hud-left #btn-auto img{width:20px;height:20px}@media (pointer:coarse){#hud .hud-left #btn-auto{min-height:44px}}
.hall-win .bv-embed{border-left:0!important;border-radius:14px;box-shadow:none}
#hud .hud-left #btn-auto{display:none}#hud .hud-left #btn-auto.on{display:flex}
.gh-li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 10px;margin:3px 0;border-radius:8px;background:rgba(255,255,255,.05);font-size:14px}.gh-li span{min-width:0}.gh-libar{flex:0 0 64px;height:8px;border-radius:5px;background:rgba(0,0,0,.45);overflow:hidden}.gh-libar u{display:block;height:100%;background:linear-gradient(90deg,#FFC93C,#7FD45A)}.gh-gap{height:8px}
#botview:not([hidden]) .window{animation:gh-pop .2s cubic-bezier(.2,1.3,.5,1)}@keyframes gh-pop{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
#botview button:not(:disabled){transition:transform .08s,filter .08s}#botview button:not(:disabled):hover{filter:brightness(1.12)}#botview button:not(:disabled):active{transform:translateY(2px) scale(.98)}#botview button:focus-visible{outline:3px solid #FFE27A;outline-offset:2px}
.toast{display:flex;align-items:center;gap:7px}.toast img{width:20px;height:20px;flex:none}
.gh-load{display:flex;justify-content:center;gap:10px;padding:60px 0}.gh-load i{width:14px;height:14px;border-radius:3px;background:#FFC93C;animation:gh-dot .7s infinite alternate}.gh-load i:nth-child(2){animation-delay:.15s}.gh-load i:nth-child(3){animation-delay:.3s}@keyframes gh-dot{to{transform:translateY(-10px);opacity:.5}}
#chat-log>div{background:rgba(255,255,255,.08);border-radius:9px;padding:3px 8px;margin:3px 0}
.iv-grid,.gh-copies,.gh-tiles{contain:content}
@media (prefers-reduced-motion:reduce){#botview .window,.gh-load i{animation:none}}
.gh-kvi{width:16px;height:16px;vertical-align:-3px;margin-right:5px}.gh-kv{flex-wrap:wrap}.gh-libar.wide{flex:1 0 100%;margin-top:4px}.gh-wbox .gh-tiles{margin-top:8px}
.gh-main.gh-solo{display:block}.gh-main.gh-solo .gh-side{display:none}.gh-solo .gh-tiles{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.gh-hp{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:8px;margin:5px 0;font-size:14px}.gh-hp i{height:14px;border-radius:7px;background:rgba(0,0,0,.5);overflow:hidden;border:1px solid rgba(255,255,255,.2)}.gh-hp u{display:block;height:100%;background:linear-gradient(#9FE870,#4FA843);transition:width .3s}.gh-hp.foe u{background:linear-gradient(#FF7F7F,#C92F48)}
.gh-card{display:flex;align-items:center;gap:12px;width:100%;margin-top:8px;padding:10px 12px;text-align:left;font:inherit;color:#FFF6DC;background:linear-gradient(#3A2A4E,#2A1E3A);border:2px solid #D9B054;border-radius:12px;cursor:pointer}.gh-card:disabled{opacity:.55;cursor:default}.gh-card img{width:40px;height:40px;flex:none;image-rendering:pixelated}.gh-card b{display:block;font-size:16px;color:#FFE27A}.gh-card small{display:block;font-size:13px;line-height:1.3}.gh-w4 .gh-card{background:linear-gradient(#7A1F34,#4E1224);border-style:dashed}.gh-w5 .gh-card{background:linear-gradient(#4A3020,#2C1C12)}
.gh-bi{width:20px;height:20px;vertical-align:-4px;margin-right:6px;image-rendering:pixelated}
.gh-card span{flex:1;min-width:0;text-align:left}
#panel-body .btn{justify-content:center;text-align:center}.wbtn{flex-wrap:wrap;gap:6px}.wbtn img{width:24px;height:24px;image-rendering:pixelated}.wbtn small{flex:1 0 100%;font-size:12px;color:#FFE27A}.wbtn.here{outline:3px solid #FFE27A}
.sm-back.gh-danger,.sm-go.gh-danger{background:linear-gradient(#C92F48,#8E1F34)!important;color:#FFF!important;border-color:#FFB0B8!important}
.wh{margin:8px 0;padding:10px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14)}.wh-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:6px 0}.wh-stat{display:flex;align-items:center;gap:8px;min-width:0;padding:6px 8px;border-radius:9px;background:rgba(0,0,0,.28)}.wh-stat img{width:30px;height:30px;flex:none;image-rendering:pixelated}.wh-stat span{min-width:0}.wh-stat small,.wh-log small,.wh-state small,.wh-fighter small{display:block;font-size:12px;opacity:.8}.wh-stat b{font-size:14px;overflow-wrap:anywhere}.wh-lab{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-top:6px}.wh-bar{display:block;height:12px;margin-top:3px;border-radius:7px;overflow:hidden;background:rgba(0,0,0,.5)}.wh-bar u{display:block;height:100%;background:linear-gradient(#8FD8FF,#3E8FD0)}.wh-bar.teal u{background:linear-gradient(#7FE8D8,#1E9C8C)}.wh-bar.gold u{background:linear-gradient(#FFE27A,#D9962B)}.wh-state{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:6px 10px;border-radius:9px;background:rgba(200,80,80,.22)}.wh-state.on{background:rgba(90,190,90,.28)}.wh-log{margin-top:8px;padding:6px 10px;border-left:3px solid #FFD84D;background:rgba(0,0,0,.25);border-radius:0 8px 8px 0}.wh-log.hard{border-color:#E8354A}
.wh-tanks{display:flex;justify-content:center;gap:10px;padding:4px 0}.wh-tank{position:relative;width:34px;height:58px;border:3px solid #525A6E;border-radius:7px 7px 3px 3px;background:#101A28}.wh-tank.on{background:linear-gradient(#BDEFE6,#1E9C8C);box-shadow:0 0 10px #35E0C8}.wh-tank.on::after{content:"";position:absolute;left:8px;top:16px;width:12px;height:16px;border-radius:7px 7px 2px 2px;background:#fff}
.wh-chart{position:relative;background:#F4F7F2;color:#17324A;border-color:#1E9C8C}.wh-chart .wh-stat{background:#DDEBE7}.wh-chart .wh-log{background:#E8EFEF}.wh-clip{width:64px;height:9px;margin:-4px auto 6px;border-radius:4px;background:#8E99A8}
.wh-fighter{display:flex;align-items:center;gap:12px;padding:6px 10px;border-radius:10px;background:linear-gradient(90deg,#7A1F34,#2C1C12)}.wh-fighter img{width:48px;height:48px;image-rendering:pixelated}.wh-fighter b{font-size:24px;color:#FFE27A}
#coach{position:fixed;left:50%;top:62px;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);padding:7px 10px 7px 14px;border-radius:12px;background:#FFF6DC;color:#3A2212;border:2px solid #3A2212;font-size:14px;box-shadow:0 3px 0 #3A2212}#coach button{font:inherit;font-size:13px;min-height:32px;padding:0 10px;border:0;border-radius:8px;background:#E8D8B0;cursor:pointer}@media (max-width:760px){#coach{top:auto;bottom:66px;width:calc(100vw - 24px)}}@media (pointer:coarse){#coach button{min-height:44px}}
body:has(#botview:not([hidden])) #coach{display:none}
body.not-farm #coach{display:none}
.gh-card b,.gh-card small{text-align:left}
.gh-item{margin-top:8px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14)}.gh-item b{display:block;color:#FFE27A;font-size:15px}.gh-item small{display:block;font-size:13px;line-height:1.35}
.gh-card small b,.gh-item small b{display:inline;font-size:inherit}
.wbtn .wcount{color:#CFF4FF}.wbtn .wcount b{color:#FFF}
@media (max-width:1050px),(pointer:coarse){#chat-toggle{left:auto!important;right:12px!important;top:104px!important;bottom:auto!important;width:auto!important;height:auto!important;min-height:36px}#coach{top:130px;bottom:auto;width:auto;max-width:calc(100vw - 24px)}}
@media (max-height:500px){#chat-toggle{top:66px!important}#hud .hud-left{transform:scale(.72);transform-origin:top left}#coach{top:8px;left:50%;font-size:13px;padding:4px 8px 4px 12px;max-width:44vw}#hud .areaname{display:none}}
@media (pointer:coarse){#hud .hud-left{left:max(12px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top))}#touch .pad{left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom))}#touch .act:not(.jump){right:max(14px,env(safe-area-inset-right))}}
@media (pointer:coarse){#touch .jump{right:calc(max(14px,env(safe-area-inset-right)) + 88px)!important}}
.worlds{grid-auto-rows:1fr}.wbtn{height:100%;box-sizing:border-box}.wbtn.here{outline:3px solid #FFE27A;outline-offset:-1px;filter:brightness(1.18)}
#bv-form .bv-title{color:#FFE27A}
/* Login */
#login{background:#17233f url(assets/loading_bg.png) center bottom/cover no-repeat;image-rendering:pixelated;padding:16px;box-sizing:border-box}
#login::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,20,44,.35),rgba(13,20,44,.72))}
.login-card{position:relative;width:min(400px,100%);box-sizing:border-box;padding:28px 26px 24px;text-align:center;background:#FFF3D6;border:4px solid #3A2414;border-radius:14px;box-shadow:0 6px 0 #3A2414,0 18px 34px rgba(0,0,0,.45);color:#3A2414;image-rendering:auto}
.login-logo{display:block;width:min(280px,88%);margin:0 auto 16px;image-rendering:pixelated}
.login-head{margin:0 0 6px;font:400 22px/1.2 Pixelify,"Trebuchet MS",sans-serif}
.login-sub{margin:0 0 20px;font-size:14px;line-height:1.4;font-weight:700;opacity:.82}
.login-discord{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 16px;border-radius:10px;background:#5865F2;border:3px solid #2B3280;box-shadow:0 4px 0 #2B3280;color:#fff;text-decoration:none;font:700 17px "Trebuchet MS",sans-serif;transition:transform .08s,box-shadow .08s,background .12s}
.login-discord:hover{background:#6B77F5}.login-discord:active{transform:translateY(3px);box-shadow:0 1px 0 #2B3280}.login-discord:focus-visible{outline:3px solid #FFC93C;outline-offset:2px}
.dc-mark{width:26px;height:26px;flex:none}
.login-note{margin:14px 0 0;font-size:12.500px;line-height:1.4;opacity:.75}
.login-off{margin:0;padding:12px;border-radius:8px;background:#F4DFB2;font-weight:700;font-size:14px}
.login-error{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#FBDAD5;border:2px solid #B3362B;color:#7F1D15;font-weight:700;font-size:13.500px}
.login-tester{margin-top:4px}.login-tester p{margin:0 0 8px;font-weight:700}.login-tester .btn{width:100%;margin-top:10px}
@media (max-height:480px){.login-card{padding:14px 20px}.login-logo{width:190px;margin-bottom:8px}.login-sub{margin-bottom:10px}}
@media (prefers-reduced-motion:reduce){.login-discord{transition:none}}
.login-card [hidden]{display:none!important}
.nick-row{display:inline-flex;gap:6px;align-items:center}.nick-row input{width:150px;min-height:32px;box-sizing:border-box}
/* Polish layer: one look for every designed window */
.gh-win #sm-scene,#bv-body.forge #sm-scene{height:clamp(84px,17vh,150px);object-fit:cover}
.gh-win .sm-wallet{left:auto!important;right:8px;top:8px;transform:none!important;border-radius:8px;box-shadow:0 2px 0 rgba(0,0,0,.45)}
.gh-win .sm-wallet::before,.gh-win .sm-wallet::after{display:none!important}
.gh-win .gh-plaque{left:8px;bottom:8px}
.gh-left,.gh-win .sm-show{min-width:0}
.gh-win .gh-rule{line-height:1.45;overflow-wrap:anywhere}
.gh-win button:not(:disabled),.gh-win [data-bv]:not(:disabled){transition:transform .08s,filter .12s,box-shadow .12s}
.gh-win button:not(:disabled):hover{filter:brightness(1.1)}
.gh-win button:not(:disabled):active{transform:translateY(2px);filter:brightness(.96)}
.gh-win button:focus-visible{outline:3px solid #FFE27A;outline-offset:2px}
.gh-win button:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.45)}
.gh-win .gh-card:not(:disabled):hover,.gh-win .gh-tile:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.4)}
#bv-body,.gh-list,.sm-rack,.gh-stalls{scrollbar-width:thin;scrollbar-color:#8A6A4A rgba(0,0,0,.25)}
#bv-body::-webkit-scrollbar,.gh-list::-webkit-scrollbar,.sm-rack::-webkit-scrollbar,.gh-stalls::-webkit-scrollbar{width:8px}
#bv-body::-webkit-scrollbar-thumb,.gh-list::-webkit-scrollbar-thumb,.sm-rack::-webkit-scrollbar-thumb,.gh-stalls::-webkit-scrollbar-thumb{background:#8A6A4A;border-radius:6px}
.gh-pass+.gh-bar{display:none}
@media (prefers-reduced-motion:reduce){.gh-win button,.gh-win [data-bv]{transition:none!important}.gh-win .gh-card:hover,.gh-win .gh-tile:hover,.gh-win button:active{transform:none!important}}
.gh-wtiles>:last-child:nth-child(odd){grid-column:1/-1}
.gh-skill.planned{cursor:default}.gh-skill.planned.on{outline:2px solid #FFE27A;outline-offset:-1px}
.sk-ctl{display:flex;align-items:center;gap:5px;margin-top:auto;padding-top:4px}.sk-ctl button{min-width:34px;min-height:32px;padding:0 8px;font:700 16px Fredoka,sans-serif;color:#1D1418;background:linear-gradient(#FFE27A,#E9A92B);border:2px solid #1D1418;border-radius:6px;cursor:pointer}.sk-ctl [data-skd=max]{margin-left:auto;font-size:13px;color:#FFF1CF;background:#4B3A35}.sk-ctl output{min-width:38px;text-align:center;font:700 15px Fredoka,sans-serif;color:#FFE27A}
.sk-actions{display:flex;flex-direction:column;gap:6px;width:100%}.sk-actions [hidden]{display:none}.sk-danger{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:auto;padding-top:10px;border-top:2px dashed rgba(232,67,90,.55)}
@media (max-width:680px){.sk-actions{position:sticky;bottom:0;z-index:3}}
@media (max-width:680px){.gh-side:has(#sk-pts) .sm-stand{display:none}.gh-side:has(#sk-pts) .sm-note{margin:0}}
.tcard{display:flex;flex-direction:column;align-items:center;gap:4px}.tbadge{width:28px;height:28px;image-rendering:pixelated}.tgem{min-height:15px;color:#FFE27A;font-weight:700}.tlock{padding:8px 0;opacity:.8}.tcard.locked{opacity:.55;filter:grayscale(.55)}.tcard.king{box-shadow:0 0 0 2px #FFD84D,0 0 14px rgba(255,216,77,.55)}
.tcard .tgem{color:#7A4A00}.tcard .tlock{color:#3A2414;font-weight:700}.tcard.locked{opacity:.8;filter:grayscale(.35);background:#CDBFA6}
.tr-list{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto}.tr-pick{display:flex;justify-content:space-between;align-items:center;width:100%}.tr-empty{padding:22px 8px;text-align:center;font-weight:700}
/* Hospital: clean white, teal and red */
.window.sg-med{background:#E8F3F3;border-color:#2FC4B2;color:#17333A}.sg-med>.title{background:linear-gradient(#2FC4B2,#17877C);color:#fff}
.sg-med .gh-left,.sg-med .gh-side{background:#FFFFFF;border:2px solid #B9DAD9;border-radius:10px;box-shadow:0 2px 0 #B9DAD9;color:#17333A;padding:12px}
.sg-med .gh-wt,.sg-med .sg-h{color:#17877C;margin:0 0 6px;font:600 15px Fredoka,sans-serif}.sg-med .gh-rule,.sg-med .gh-sup,.sg-med .gh-item,.sg-med .gh-item small,.sg-med .gh-item b{color:#17333A}
.sg-med .gh-extra button,.sg-med .gh-back,.sg-med .gh-wtiles>button,.sg-med .sm-back{background:#F4FAFB;color:#17333A;border:2px solid #9FC9C8}
.sg-monitor{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;background:#0D242B;border:3px solid #14323A;border-radius:8px}.sg-monitor .gh-kv{flex-direction:column;gap:0;padding:5px 8px;background:#14323A;border-radius:6px}.sg-monitor .gh-kv small{color:#8FD9CF;font-size:11px;text-transform:uppercase;letter-spacing:.4px}.sg-monitor .gh-kv b{color:#2FE0C8;font:600 16px Fredoka,sans-serif;text-align:left}
.sg-tray{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:6px;width:100%}.sg-tool{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;padding:6px 3px;min-height:74px;background:#F4FAFB;color:#17333A;border:2px solid #2FC4B2;border-radius:8px;box-shadow:0 2px 0 #17877C;cursor:pointer}.sg-tool img{width:32px;height:32px;image-rendering:pixelated}.sg-tool b{font-size:11.5px;line-height:1.1}.sg-tool small{font-weight:700;color:#17877C}.sg-tool:disabled{background:#E2E8EA;border-color:#B8C4C8;box-shadow:none}.sg-tool:disabled img{filter:grayscale(1);opacity:.55}
.sg-giveup{width:100%;margin-top:10px;min-height:42px;background:linear-gradient(#E8535A,#B92F44)!important;color:#fff!important;border:2px solid #7F1D2A!important;border-radius:8px;font-weight:700}
.sg-log{margin:0 0 5px;padding:5px 9px;border-left:3px solid #2FC4B2;background:#F2FAF9;border-radius:0 6px 6px 0}.sg-log:last-of-type{border-left-color:#E8353F;font-weight:700}
.sg-result{display:flex;align-items:center;gap:10px;padding:12px;margin-bottom:8px;border-radius:10px;font:600 22px Fredoka,sans-serif;color:#fff}.sg-result img{width:40px;height:40px;image-rendering:pixelated}.sg-result.lost{background:linear-gradient(#E8535A,#A81F2A)}.sg-result.saved{background:linear-gradient(#2FC4B2,#17877C)}
.sg-med .gh-left>*:not(.sg-result){background:transparent!important;border:0!important;box-shadow:none!important;padding:0}.sg-med .gh-wt{color:#17877C!important}
.sg-med .gh-main{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr)}.sg-med .sg-monitor{grid-template-columns:repeat(3,minmax(0,1fr))}.sg-med .sg-monitor .gh-kv b{font-size:14px}.sg-med .sg-tray{grid-template-columns:repeat(auto-fill,minmax(74px,1fr))}.sg-med .sg-h{align-self:flex-start;margin:4px 0}
@media (max-width:680px){.sg-med .gh-main{grid-template-columns:1fr}.sg-med .sg-monitor{grid-template-columns:repeat(2,minmax(0,1fr))}}
img.emo{margin:0 3px 0 1px;vertical-align:-3px}
/* Codex picture cards */
.cx-win .gh-main{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr)}.cx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:7px;max-height:440px;overflow:auto;padding:2px}
.cx-band{grid-column:1/-1;margin:6px 0 0;padding:5px 10px;font:600 13px Fredoka,sans-serif;letter-spacing:.5px;color:#1D1418;background:linear-gradient(90deg,var(--c,#FFD84D),transparent);border-radius:5px}
.cx-card{display:flex;gap:8px;align-items:flex-start;padding:7px;background:rgba(255,255,255,.07);border:2px solid rgba(255,255,255,.14);border-radius:7px;min-width:0;transition:transform .08s}.cx-card:hover{transform:translateY(-1px)}.cx-card>img{flex:none;width:36px;height:36px;image-rendering:pixelated;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--c,#FFD84D) 55%,transparent))}.cx-card>div{min-width:0;flex:1}.cx-card b{display:flex;justify-content:space-between;gap:6px;font-size:13px;color:#FFF1CF}.cx-card em{font-style:normal;color:#FFE27A;white-space:nowrap}.cx-card small{display:block;margin-top:3px;font-size:11.5px;line-height:1.3;color:#E5CFA5;overflow-wrap:anywhere}.cx-card .gh-bar{height:8px;margin-top:3px;display:block}.cx-card.dim{opacity:.68}.cx-card.dim>img{filter:grayscale(.75)}
@media (max-width:680px){.cx-win .gh-main{grid-template-columns:1fr}.cx-grid{max-height:none}}
@media (prefers-reduced-motion:reduce){.cx-card{transition:none}}
.cx-line{grid-column:1/-1;margin:0;padding:4px 8px;background:rgba(255,255,255,.05);border-radius:5px}
.sg-med .gh-side>.gh-kvs:not(.sg-monitor) .gh-kv{background:#F2FAF9}.sg-med .gh-side>.gh-kvs:not(.sg-monitor) small,.sg-med .gh-side>.gh-kvs:not(.sg-monitor) b{color:#17333A}
.cm-h{margin:10px 0 5px;font:600 15px Fredoka,sans-serif}.cm-card{display:flex;flex-direction:column;gap:3px;padding:9px 11px;margin-bottom:6px;background:rgba(0,0,0,.08);border:2px solid rgba(58,36,20,.3);border-radius:8px}.cm-big{font-size:18px}.cm-m{white-space:nowrap}.cm-list{list-style:none;margin:6px 0 0;padding:0}.cm-list li{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-top:1px solid rgba(58,36,20,.2);font-size:13px;flex-wrap:wrap}.cm-empty{margin:4px 0;font-weight:700}.cm-note{display:block;margin-bottom:6px;opacity:.8}
img.btn-ic{width:18px;height:18px;margin-right:5px;vertical-align:-4px;image-rendering:pixelated}
.sg-op .gh-main{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr)}.window.sg-med:not(.sg-op) .gh-main{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.sg-op .sg-monitor{grid-template-columns:repeat(3,minmax(0,1fr))}
.gh-win .gh-wtiles{min-width:0;max-width:100%;grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}.gh-win .gh-wtiles>button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.gh-gemic{flex:none;width:34px;height:34px;image-rendering:pixelated}
@media (max-width:680px){.window.sg-med:not(.sg-op) .gh-main,.sg-op .gh-main{grid-template-columns:1fr}.sg-op .sg-monitor{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-op .gh-side{order:-1}}
.gh-pager{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}.gh-pager>*{flex:1 1 auto;min-width:0;white-space:normal}
.sg-monitor b.sgc-g{color:#5BE37A}.sg-monitor b.sgc-y{color:#FFE066}.sg-monitor b.sgc-o{color:#FFA53D}.sg-monitor b.sgc-r{color:#FF5A5F}.sg-monitor b.sgc-p{color:#C08BFF}
*{scrollbar-width:thin;scrollbar-color:#A36B3A rgba(43,29,20,.35)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:rgba(43,29,20,.35);border-radius:8px}
::-webkit-scrollbar-thumb{background:linear-gradient(#C98F55,#A36B3A);border:2px solid #6B4226;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(#FFD84D,#C98F55)}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-corner{background:transparent}
.sg-monitor .gh-kv b[class*=sgc-] *{color:inherit!important}
.gh-cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:8px}.gh-cgrid>.gh-item{margin:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:10px 8px}.gh-cgrid>.gh-item>b{display:flex;flex-direction:column;align-items:center;gap:4px}.gh-cgrid>.gh-item>b>img.btn-ic{width:40px;height:40px;margin:0}.gh-cgrid details{width:100%;font-size:12px}.gh-cgrid summary{cursor:pointer;opacity:.8;font-size:12px}
details.gh-more{margin-top:8px;border-radius:10px;border:1px dashed rgba(255,226,122,.5);padding:6px 10px}details.gh-more>summary{cursor:pointer;font-weight:700;display:flex;align-items:center;gap:6px;color:#FFE27A}.sg-med details.gh-more>summary{color:#17333A}
.gh-cgrid>.gh-item>b>img.btn-ic:first-child{width:44px!important;height:44px!important;image-rendering:pixelated;margin:0 0 2px!important}
.sg-med .cx-card{background:#F2FAF9;border-color:#BFE3DE}.sg-med .cx-card,.sg-med .cx-card b,.sg-med .cx-card small,.sg-med .cx-card span,.sg-med .cx-line{color:#17333A!important}.sg-med .cx-line{background:#EAF6F4}
.gh-kv{position:relative}.kv-ic{width:18px;height:18px;image-rendering:pixelated;vertical-align:-4px;margin-right:4px}.kv-bar{display:block;height:6px;border-radius:4px;margin-top:4px;background:linear-gradient(90deg,#FFD84D var(--p),rgba(255,255,255,.15) var(--p))}.sg-med .kv-bar{background:linear-gradient(90deg,#2FBFA8 var(--p),#D8EEEA var(--p))}

/* Phone: touch targets at least 44 pixels; small buttons grow their tap area, not their look. Notch and rounded corners stay clear. */
@media (max-width:1050px),(pointer:coarse){.x{min-width:44px;min-height:44px}.sm-back,.sp-tab{min-height:44px}#bv-body summary{min-height:44px;display:flex;align-items:center;gap:6px}[data-emote]{min-height:44px}#more-btn{position:relative}#more-btn::after{content:'';position:absolute;inset:-13px}}
#hud .hud-left{margin-top:env(safe-area-inset-top);margin-left:env(safe-area-inset-left)}#hud .hud-right{margin-top:env(safe-area-inset-top);margin-right:env(safe-area-inset-right)}#touch .pad{margin-left:env(safe-area-inset-left)}#touch .act,#touch .jump{margin-right:env(safe-area-inset-right)}
@media (max-width:1050px),(pointer:coarse){#coach button,.coach button,.sk-ctl button{min-width:44px;min-height:44px}}

#offline{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top));transform:translateX(-50%);z-index:9999;display:flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;max-width:calc(100vw - 24px);border-radius:10px;background:#3A1A20;color:#FFF1CF;border:2px solid #E8435A;font-size:14px;box-shadow:0 4px 12px rgba(0,0,0,.45)}#offline[hidden]{display:none}#offline img{width:24px;height:24px;image-rendering:pixelated}#offline button{min-height:44px;min-width:44px}
.fh{margin:0 0 8px;padding:12px;border-radius:14px;background:linear-gradient(165deg,#12506A,#0B2C42 62%,#0A2236);border:2px solid #49C3D6;box-shadow:inset 0 0 26px rgba(95,224,232,.2),0 4px 0 #06202F;color:#EAFBFF}.fh small{display:block;font-size:12px;color:#A9E4EE}.fh b{overflow-wrap:anywhere}.fh-gear{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fh-slot{display:flex;align-items:center;gap:10px;min-width:0;padding:8px;border-radius:11px;background:rgba(3,22,34,.55);border:1px solid rgba(95,224,232,.35)}.fh-pic{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:10px;background:radial-gradient(circle,#2A87A0,#10455B);border:2px solid #FFD978}.fh-pic img{width:40px!important;height:40px!important;margin:0!important;image-rendering:pixelated}.fh-slot em{display:block;font-style:normal;font-size:12px;color:#FFE27A}.fh-mid{display:flex;align-items:center;gap:14px;margin-top:10px}.fh-cast{flex:none;text-align:center}.fh-dial{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 3px;border-radius:50%;background:conic-gradient(#5FE0E8 var(--p,0%),rgba(3,22,34,.8) 0);position:relative}.fh-dial::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#0B2C42}.fh-dial b{position:relative;font:600 18px Fredoka,sans-serif;color:#EAFBFF}.fh-cast.on .fh-dial{background:#7FE08A;box-shadow:0 0 16px rgba(127,224,138,.75)}.fh-cast.on .fh-dial b{color:#B8F7C0}.fh-info{flex:1;min-width:0}.fh-bp u{background:linear-gradient(#8FF0F5,#1E9CB8)!important}.fh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.fh-chips span{display:inline-grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center;padding:4px 10px;border-radius:9px;background:rgba(3,22,34,.55)}.fh-chips small,.fh-chips b{grid-column:2}.fh-chips span:not(:has(img)) small,.fh-chips span:not(:has(img)) b{grid-column:1/-1}.fh-chips img{grid-row:1/3;width:30px;height:30px;image-rendering:pixelated}.fh-chips b{color:#FFE27A}.fh-catch,.fh-goals{margin-top:10px;padding:8px 10px;border-radius:10px;background:rgba(3,22,34,.5)}.fh-catch{border-left:4px solid #FFD84D}.fh-goals{border-left:4px solid #5FE0E8;font-size:13px}.fh-fish{font-size:16px;animation:fhpop .32s cubic-bezier(.3,1.6,.5,1)}.fh-fish img{width:36px!important;height:36px!important;vertical-align:middle;image-rendering:pixelated}.fh-goals img{width:22px!important;height:22px!important;vertical-align:middle;image-rendering:pixelated}.fh-none{margin:2px 0 0;opacity:.85}.fh-ring{display:inline-block;width:24px;height:24px;margin-left:8px;vertical-align:middle;border-radius:50%;background:conic-gradient(#0B2C42 var(--p,0%),rgba(11,44,66,.28) 0)}@keyframes fhpop{from{transform:scale(.8);opacity:0}to{transform:none;opacity:1}}@media (prefers-reduced-motion:reduce){.fh-fish{animation:none}}@media (max-width:480px){.fh-slot{padding:6px;gap:7px}.fh-pic{width:44px;height:44px}.fh-pic img{width:34px!important;height:34px!important}}
.gt{color:#EAFBFF}.gt small{color:#A9E4EE}.gt-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.gt-tabs{display:flex;gap:6px}.gt-tabs button{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 14px;border-radius:11px;border:2px solid #2B7E94;background:#0B2C42;color:#BFEFF5;font:600 15px Fredoka,sans-serif;cursor:pointer}.gt-tabs button.on{background:linear-gradient(#5FE0E8,#2AA3BC);border-color:#FFD978;color:#06202F}.gt-tabs img,.gt-tok img,.gt-auto>img,.gt-lock img{image-rendering:pixelated}.gt-tabs img{width:26px;height:26px}.gt-tok{display:flex;align-items:center;gap:6px;padding:4px 12px;border-radius:11px;background:#0B2C42;border:2px solid #2B7E94}.gt-tok img{width:26px;height:26px}.gt-tok b{color:#FFE27A}.gt-note{margin:0 0 10px;padding:8px 12px;border-radius:10px;font-weight:600;animation:fhpop .28s ease-out}.gt-note.ok{background:rgba(95,200,120,.28);border:1px solid #7FE08A}.gt-note.bad{background:rgba(220,90,90,.25);border:1px solid #E88}.gt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:10px}.gt-card{position:relative;display:flex;flex-direction:column;gap:9px;min-width:0;padding:11px;border-radius:13px;background:linear-gradient(165deg,#12506A,#0B2C42);border:2px solid #2B7E94;box-shadow:0 3px 0 #06202F}.gt-card.on{border-color:#FFD978;box-shadow:0 3px 0 #06202F,0 0 16px rgba(255,217,120,.45)}.gt-card.lock{background:linear-gradient(165deg,#233A4B,#14242F);border-color:#3F5563}.gt-card.lock .gt-pic img{filter:grayscale(.75) brightness(.72)}.gt-tag{position:absolute;top:-2px;right:10px;padding:2px 9px;border-radius:0 0 8px 8px;background:#FFD978;color:#3A2406;font:600 12px Fredoka,sans-serif}.gt-top{display:flex;align-items:center;gap:10px}.gt-pic{display:grid;place-items:center;flex:none;width:60px;height:60px;border-radius:12px;background:radial-gradient(circle,#2A87A0,#10455B);border:2px solid rgba(255,217,120,.7)}.gt-pic img{width:46px;height:46px;image-rendering:pixelated}.gt-name{min-width:0}.gt-name b{display:block;font:600 17px Fredoka,sans-serif;overflow-wrap:anywhere}.gt-name small{font-size:13px}.gt-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px}.gt-stats span{padding:4px 8px;border-radius:8px;background:rgba(3,22,34,.55);text-align:center}.gt-stats small{display:block;font-size:12px}.gt-stats b{color:#FFE27A}.gt-lock{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;font-size:14px}.gt-lock>span{display:inline-flex;gap:5px;align-items:center}.gt-lock img{width:20px;height:20px}.gt-odds{display:grid;grid-template-columns:auto auto;justify-content:space-between;width:100%;font-size:13px}.gt-odds i{grid-column:1/-1;display:block;height:7px;margin-top:3px;border-radius:4px;background:rgba(0,0,0,.45);overflow:hidden}.gt-odds u{display:block;height:100%;background:linear-gradient(#FFE27A,#D9962B)}.gt-act{min-height:44px;margin-top:auto;width:100%}.gt-auto{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding:11px;border-radius:13px;background:linear-gradient(100deg,#3A2C6E,#12506A);border:2px solid #C08CFF}.gt-auto>img{width:42px;height:42px}.gt-auto div{flex:1;min-width:170px}.gt-auto b{display:block}.gt-auto button{min-height:44px}@media (prefers-reduced-motion:reduce){.gt-note{animation:none}}
body:has(#panel:not([hidden])) #coach{display:none}.window:has(.gt){width:min(880px,96vw);max-width:none;background:#0A2236;border-color:#49C3D6}.window:has(.gt) .title{background:linear-gradient(#2A87A0,#12506A)}#panel-body:has(.gt){background:#0A2236}
.gh-main:has(.fs){display:block}.gh-main:has(.fs) .gh-side{display:none}.gh-left:has(.fs){background:none;border:0;padding:0;box-shadow:none}.fs .gt-stats{grid-template-columns:repeat(auto-fit,minmax(92px,1fr))}.fs .gt-stats img,.fs .gt-name img,.fs-status img,.fs-top img,.fs-intro img{width:18px;height:18px;vertical-align:middle;image-rendering:pixelated}.fs .gt-pic img{width:46px;height:46px;image-rendering:pixelated}.fs-wide{grid-column:1/-1;background:linear-gradient(100deg,#3A2C6E,#12506A)!important;border-color:#C08CFF!important}.fs-status{margin:0;font-size:13px;color:#FFE27A}.fs-top{display:flex;justify-content:flex-end;margin:4px 0}.fs-top .gt-tok{color:#EAFBFF}.fs-intro{margin:4px 0 6px;font-size:13px;color:#BFEFF5}.fs-tab{display:inline-flex;align-items:center;gap:5px}.fs-tab img{width:22px;height:22px;image-rendering:pixelated}.fs-tab:disabled{opacity:1}.fc-sec{margin-bottom:10px;padding:9px;border-radius:12px;background:#0B2C42;border:2px solid var(--r)}.fc-sec h4{margin:0 0 7px;color:var(--r);font:600 15px Fredoka,sans-serif;letter-spacing:.06em}.fc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:7px}.fc{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:82px;padding:6px;border-radius:10px;background:rgba(3,22,34,.6);border:1px solid var(--r);text-align:center}.fc img{width:42px!important;height:42px!important;image-rendering:pixelated}.fc b{font-size:12px;overflow-wrap:anywhere}.fc.unk{opacity:.55;border-style:dashed}.fc.unk span{font:600 28px Fredoka,sans-serif;color:var(--r)}
#gh-tabs:has(.fs-tab){display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px;overflow:visible}.fs-tab{justify-content:center;min-width:0;min-height:44px;background:#0B2C42!important;color:#BFEFF5!important;border:2px solid #2B7E94!important;border-radius:11px!important}.fs-tab.on{background:linear-gradient(#5FE0E8,#2AA3BC)!important;color:#06202F!important;border-color:#FFD978!important}.fs .gt-pic img{width:46px!important;height:46px!important}.fs .gt-card:only-child{grid-column:1/-1}
.fs-tab:disabled{opacity:1!important;filter:none!important;cursor:default}.gt-act{display:flex;align-items:center;justify-content:center;gap:6px;text-align:center}
/* Lucktopia design layer: every new window, button and HUD piece reads these. */
:root{--ui-bg:#141433;--ui-bg2:#1F1E4D;--ui-glass:rgba(24,23,62,.92);--ui-line:rgba(255,255,255,.14);--ui-gold:#FFD978;--ui-gold2:#C9892B;--ui-text:#F3F1FF;--ui-dim:#B9B6DC;--ui-good:#7FE08A;--ui-bad:#FF6B7A;--ui-r-s:8px;--ui-r:12px;--ui-r-l:18px;--ui-gap:8px;--ui-gap-l:14px;--ui-shadow:0 4px 0 rgba(6,6,28,.65),0 14px 34px rgba(6,6,28,.5);--ui-font-title:600 20px Fredoka,sans-serif;--ui-font-sm:13px;--ui-spring:cubic-bezier(.3,1.5,.5,1);--accent:#7FE08A}
body[data-world="farm"]{--accent:#7FE08A}body[data-world="townhall"]{--accent:#FFD978}body[data-world="hall"]{--accent:#FFD978}body[data-world="fish"]{--accent:#5FE0E8}body[data-world="ssu"]{--accent:#7FF0C8}body[data-world="surg"]{--accent:#FF6B7A}body[data-world="carnival"]{--accent:#FF7FC4}body[data-world="arena"]{--accent:#FF9A4D}body[data-world="dungeon"]{--accent:#B48CFF}body[data-world="casino"]{--accent:#FFD84D}body[data-world="casinohall"]{--accent:#FFD84D}
/* Button system: chunky, press-down, one look everywhere. */
.btn,.sm-go,.bv-btn{position:relative;overflow:hidden;border:2px solid #17132F;border-radius:12px;font-family:Fredoka,sans-serif;font-weight:600;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),inset 0 -4px 0 rgba(0,0,0,.18),0 4px 0 #17132F;transition:transform .09s cubic-bezier(.3,1.5,.5,1),box-shadow .09s,filter .12s;animation:none}
.btn:hover:not(:disabled),.sm-go:hover:not(:disabled),.bv-btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.08)}.btn:active:not(:disabled),.sm-go:active:not(:disabled),.bv-btn:active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 0 rgba(255,255,255,.35),inset 0 -2px 0 rgba(0,0,0,.18),0 1px 0 #17132F}
.btn::after,.sm-go::after,.bv-btn::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);pointer-events:none}.btn:hover:not(:disabled)::after,.sm-go:hover:not(:disabled)::after,.bv-btn:hover:not(:disabled)::after{left:120%;transition:left .45s ease-out}
.btn:disabled,.sm-go:disabled,.bv-btn:disabled{filter:saturate(.3) brightness(.74);box-shadow:inset 0 2px 0 rgba(255,255,255,.14),0 2px 0 #17132F;cursor:not-allowed}
.btn[aria-busy="true"],.sm-go[aria-busy="true"],.bv-btn[aria-busy="true"]{color:transparent!important;pointer-events:none}.btn[aria-busy="true"] img,.sm-go[aria-busy="true"] img,.bv-btn[aria-busy="true"] img{opacity:0}.btn[aria-busy="true"]::before,.sm-go[aria-busy="true"]::before,.bv-btn[aria-busy="true"]::before{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:3px solid rgba(23,19,47,.3);border-top-color:#17132F;animation:uispin .7s linear infinite}
@keyframes uispin{to{transform:rotate(360deg)}}
.btn.danger,.bv-btn.s4{background:linear-gradient(#FF8A8A,#D8353F);color:#2A0610}.bv-btn.s3{background:linear-gradient(#A6E97F,#4FA843);color:#10300A}
@media (pointer:coarse){.btn,.sm-go,.bv-btn{min-height:44px}}
@media (prefers-reduced-motion:reduce){.btn::after,.sm-go::after,.bv-btn::after{display:none}.btn,.sm-go,.bv-btn{transition:none}.btn[aria-busy="true"]::before,.sm-go[aria-busy="true"]::before,.bv-btn[aria-busy="true"]::before{animation:none}}
/* Window frame: glass panel, world accent edge, title plate, spring open. */
body:has(.modal:not([hidden])) #coach{display:none}
.modal{background:radial-gradient(circle at 50% 40%,rgba(30,28,90,.5),rgba(6,6,28,.8));backdrop-filter:blur(2px)}
.modal .window{border:2px solid var(--accent)!important;border-radius:var(--ui-r-l)!important;box-shadow:0 0 0 2px #0B0A24,0 0 0 4px var(--ui-gold),0 0 30px color-mix(in srgb,var(--accent) 45%,transparent),0 18px 44px rgba(0,0,0,.6)!important}
.modal .window:not(.forge-win):not(.farm-win):not(.sp-win):not(.vault-win):not(.hall-win):not(:has(.gt)){--navy:#1F1E4D;--navy2:#2B2A63;--navy3:#4A4896;--text:#F3F1FF;--dim:#B9B6DC;--gold:#FFD978;--gold2:#FFD978;background:var(--ui-glass);color:var(--ui-text)}
.modal .window>.title{position:relative;display:flex;align-items:center;gap:9px;background:linear-gradient(#2F2C80,#181744)!important;color:var(--ui-gold)!important;font:600 21px Fredoka,sans-serif;letter-spacing:.3px;text-shadow:0 2px 0 #0B0A24;border-bottom:3px solid var(--accent)!important;box-shadow:inset 0 2px 0 rgba(255,255,255,.14)}
.modal .window>.title::before{content:"";flex:none;width:30px;height:30px;border-radius:9px;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433) center/cover;border:2px solid var(--ui-gold);background-repeat:no-repeat}
body[data-world="farm"] .modal .window>.title::before{background-image:url(assets/icons/farm_dirt.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="townhall"] .modal .window>.title::before{background-image:url(assets/icons/shop.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="hall"] .modal .window>.title::before{background-image:url(assets/icons/shop.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="fish"] .modal .window>.title::before{background-image:url(assets/icons/rod_fishing_rod.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="ssu"] .modal .window>.title::before{background-image:url(assets/icons/item_ghost_jar.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="surg"] .modal .window>.title::before{background-image:url(assets/icons/item_healers_charm.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="carnival"] .modal .window>.title::before{background-image:url(assets/icons/item_carnival_ticket.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="arena"] .modal .window>.title::before{background-image:url(assets/icons/item_kembars_sword.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="dungeon"] .modal .window>.title::before{background-image:url(assets/icons/item_soul_lantern.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="casino"] .modal .window>.title::before{background-image:url(assets/icons/gem.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}body[data-world="casinohall"] .modal .window>.title::before{background-image:url(assets/icons/gem.png),radial-gradient(circle,color-mix(in srgb,var(--accent) 55%,#141433),#141433);background-size:22px 22px,cover;background-position:center;image-rendering:pixelated}
.modal .window>.title .x{margin-left:auto;display:grid;place-items:center;border-radius:50%;background:linear-gradient(#FF8A8A,#D8353F);border:2px solid #17132F;box-shadow:inset 0 2px 0 rgba(255,255,255,.45),0 3px 0 #17132F;transition:transform .14s cubic-bezier(.3,1.5,.5,1)}.modal .window>.title .x:hover{transform:rotate(90deg) scale(1.08)}
.modal:not([hidden]):not(#still) .window{animation:winspring .24s cubic-bezier(.3,1.5,.5,1)}@keyframes winspring{from{transform:translateY(16px) scale(.92);opacity:0}}.win-ghost{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;z-index:6;pointer-events:none}.win-ghost .window{animation:winout .15s ease-in forwards!important}@keyframes winout{to{transform:scale(.93);opacity:0}}
.modal .window *{scrollbar-width:thin;scrollbar-color:var(--accent) rgba(6,6,28,.45)}.modal .window ::-webkit-scrollbar{width:9px;height:9px}.modal .window ::-webkit-scrollbar-track{background:rgba(6,6,28,.45);border-radius:6px}.modal .window ::-webkit-scrollbar-thumb{background:var(--accent);border-radius:6px;border:2px solid rgba(6,6,28,.45)}
@media (prefers-reduced-motion:reduce){.modal:not([hidden]) .window,.win-ghost .window{animation:none!important}.modal .window>.title .x{transition:none}}
.modal .tcard{background:linear-gradient(165deg,#2B2A63,#1A1947)!important;border-color:#4A4896!important;color:var(--ui-text)}.modal .tcard.locked{opacity:1!important;filter:none!important}.modal .tcard.locked .tbadge{filter:grayscale(.7) brightness(.8)}.modal .tcard.on{border-color:var(--ui-gold)!important;box-shadow:0 0 14px rgba(255,217,120,.45)}.modal .tcard .tlock,.modal .tcard .tgem{color:var(--ui-dim)}
.modal .titlechip{color:#fff;text-shadow:-1px -1px 0 #17132F,1px -1px 0 #17132F,-1px 1px 0 #17132F,1px 1px 0 #17132F}
/* HUD: glass card, shining level bar, chips, world plate. */
#hud .hud-left.panel{background:var(--ui-glass);border:2px solid var(--accent);border-radius:var(--ui-r-l);box-shadow:0 0 0 2px #0B0A24,0 0 18px color-mix(in srgb,var(--accent) 35%,transparent),0 6px 16px rgba(0,0,0,.45);color:var(--ui-text);backdrop-filter:blur(3px)}
#hud .row.big{color:var(--ui-gold);text-shadow:0 2px 0 #0B0A24}#hud .mult{background:linear-gradient(#FF9A6B,#E8503F);border:2px solid #17132F;text-shadow:none}#hud #lv{color:var(--ui-text)}#hud #locks,#hud .locks{color:var(--ui-text)}
#hud #xpbar{position:relative;overflow:hidden;background:rgba(6,6,28,.75)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:6px}#hud #xpfill{display:block;background:linear-gradient(#FFE27A,#E9A12F)!important}#hud #xpbar::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:30%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);animation:uishine 3.4s ease-in-out infinite}@keyframes uishine{60%,100%{transform:translateX(533.3%)}}
#hud #more-btn{background:var(--ui-gold);border:2px solid #17132F;border-radius:6px;color:#17132F}
#hud .blockrow,#hud .toolrow{margin-top:4px;padding:2px 8px 2px 4px;border-radius:9px;background:rgba(255,255,255,.08);color:var(--ui-text);font-size:13px}#hud .blockrow{cursor:pointer}#hud .blockrow:hover{background:rgba(255,255,255,.17)}
#hud .areaname.panel,#hud .areaname{background:linear-gradient(#2F2C80,#181744);border:2px solid var(--accent);border-radius:12px;color:var(--ui-gold);text-shadow:0 2px 0 #0B0A24;box-shadow:0 0 0 2px #0B0A24,0 0 14px color-mix(in srgb,var(--accent) 40%,transparent)}
#hud .hud-right>#zoom .btn,#hud .hud-right>#btn-menu{background:linear-gradient(#2F2C80,#181744);color:var(--ui-gold);border-color:#0B0A24;outline:2px solid var(--accent);outline-offset:-1px}#hud #btn-menu svg{stroke:var(--ui-gold)}
@media (prefers-reduced-motion:reduce){#hud #xpbar::after{animation:none;display:none}}
/* Main menu: icon tiles by group. */
#menu.panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 80px);overflow-y:auto;padding:10px;background:var(--ui-glass);border:2px solid var(--accent);border-radius:var(--ui-r-l);box-shadow:0 0 0 2px #0B0A24,0 0 0 4px var(--ui-gold),0 0 26px color-mix(in srgb,var(--accent) 40%,transparent),0 14px 32px rgba(0,0,0,.55);animation:winspring .2s cubic-bezier(.3,1.5,.5,1);transform-origin:top right}#menu[hidden]{display:none!important}
#menu .menu-h{grid-column:1/-1;margin:2px 2px -2px;color:var(--accent);font:600 13px Fredoka,sans-serif;letter-spacing:.08em;text-transform:uppercase}
#menu .btn{position:relative;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:76px;padding:7px 3px;background:linear-gradient(165deg,#312F7C,#1C1B52);color:var(--ui-text);border:2px solid #4A4896;box-shadow:inset 0 2px 0 rgba(255,255,255,.14),0 3px 0 #0B0A24;font-size:13px}#menu .btn:hover:not(:disabled){border-color:var(--accent);filter:brightness(1.15)}#menu .btn img,#menu .btn svg{order:-1;width:36px;height:36px;flex:none;image-rendering:pixelated}#menu .btn span{flex:none;text-align:center;overflow-wrap:anywhere}#menu .menu-dot{position:absolute;top:3px;right:3px;min-width:20px;padding:0 5px;border-radius:10px;background:#FF5A6E;border:2px solid #17132F;color:#fff;font:600 12px/16px Fredoka,sans-serif;font-style:normal}#menu .menu-dot[hidden]{display:none}
@media (max-height:480px){#menu.panel{grid-template-columns:repeat(5,minmax(0,1fr));width:min(540px,calc(100vw - 24px))}#menu .btn{min-height:62px}#menu .btn img,#menu .btn svg{width:28px;height:28px}}
@media (prefers-reduced-motion:reduce){#menu.panel{animation:none}}
body:has(#menu:not([hidden])) #coach,body:has(#menu:not([hidden])) #chat-toggle{display:none!important}
/* Toasts, loader, empty states, tip. */
.toast{color:var(--ui-text);background:var(--ui-glass);border:2px solid var(--accent);border-radius:14px;padding:8px 14px;box-shadow:0 0 0 2px #0B0A24,0 0 14px color-mix(in srgb,var(--accent) 40%,transparent),0 8px 18px rgba(0,0,0,.45);font:600 15px Fredoka,sans-serif;animation:toastin .28s cubic-bezier(.3,1.5,.5,1)}.toast.err{color:#FFF1F2;background:linear-gradient(#6E1B2E,#3C1020);border-color:#FF6B7A}.toast img{width:30px;height:30px;padding:2px;border-radius:8px;background:rgba(255,255,255,.1);image-rendering:pixelated}@keyframes toastin{from{transform:translateY(14px) scale(.85);opacity:0}}
.gh-load{padding:70px 0;perspective:300px}.gh-load i:nth-child(n+2){display:none}.gh-load i:first-child{position:relative;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFF1A0,#FFC830 55%,#C9892B);border:4px solid #8A5A14;box-shadow:inset 0 0 0 5px rgba(255,255,255,.28),0 0 22px rgba(255,216,77,.55);animation:coinspin 1s linear infinite}.gh-load i:first-child::after{content:"";position:absolute;inset:18px;background:#8A5A14;transform:rotate(45deg);border-radius:3px}@keyframes coinspin{to{transform:rotateY(360deg)}}
.iv-empty,.gh-empty{color:var(--ui-text)}.iv-empty{background:radial-gradient(circle,#2F2C80,#141433);border:2px dashed var(--accent);border-radius:14px}.tr-empty,.cm-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 8px;color:var(--ui-dim);font-weight:600;text-align:center}.tr-empty::before,.cm-empty::before{content:"";width:64px;height:64px;background:url(assets/icons/item_golden_booty_chest.png) center/contain no-repeat;image-rendering:pixelated;opacity:.8;animation:floaty 2.6s ease-in-out infinite}@keyframes floaty{50%{transform:translateY(-6px)}}
#coach{color:var(--ui-text);background:var(--ui-glass);border:2px solid var(--ui-gold);box-shadow:0 0 0 2px #0B0A24,0 0 16px rgba(255,217,120,.35),0 6px 14px rgba(0,0,0,.4)}#coach button{background:var(--ui-gold);color:#17132F;border:2px solid #17132F;border-radius:9px}
@media (prefers-reduced-motion:reduce){.toast,.gh-load i:first-child,.tr-empty::before,.cm-empty::before{animation:none}}
.gr{position:fixed;width:0;height:0;z-index:20;pointer-events:none}.gr-glow{position:absolute;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,#fff 0,var(--c) 34%,transparent 70%);mix-blend-mode:screen}.gr b{position:absolute;display:block}.gr-spark{width:9px;height:9px;background:var(--c);box-shadow:0 0 8px var(--c)}.gr-coin{width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#FFF1A0,#FFC830 60%,#C9892B);border:2px solid #8A5A14}
/* Rarity look: border and glow come from the colour the screen already gives each card. */
.iv-card{border-color:var(--iv,#8A94A8)!important;box-shadow:inset 0 0 14px color-mix(in srgb,var(--iv,#8A94A8) 28%,transparent),0 3px 0 #0B0A24;transition:transform .12s cubic-bezier(.3,1.5,.5,1),box-shadow .15s}.iv-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:inset 0 0 18px color-mix(in srgb,var(--iv,#8A94A8) 42%,transparent),0 0 14px var(--iv,#8A94A8),0 3px 0 #0B0A24}.iv-card .iv-slot{background:radial-gradient(circle,color-mix(in srgb,var(--iv,#8A94A8) 40%,#141433),#141433)}
.sm-card{box-shadow:inset 0 0 12px color-mix(in srgb,var(--c,#8A94A8) 24%,transparent),0 3px 0 #1D1418;transition:transform .12s cubic-bezier(.3,1.5,.5,1),box-shadow .15s}.sm-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:inset 0 0 16px color-mix(in srgb,var(--c,#8A94A8) 40%,transparent),0 0 12px var(--c,#8A94A8),0 3px 0 #1D1418}
@media (prefers-reduced-motion:reduce){.iv-card,.sm-card{transition:none}.iv-card:hover:not(:disabled),.sm-card:hover:not(:disabled){transform:none}}
.gr{z-index:70}
#wipe{background:radial-gradient(circle,#2F2C80,#0B0A24 40%)}#world-name{position:fixed;left:50%;top:30%;z-index:13;padding:10px 34px;border-radius:16px;background:linear-gradient(#2F2C80,#181744);border:3px solid var(--accent);box-shadow:0 0 0 3px #0B0A24,0 0 0 5px var(--ui-gold),0 0 34px color-mix(in srgb,var(--accent) 60%,transparent);color:var(--ui-gold);font:600 36px Fredoka,sans-serif;letter-spacing:.06em;text-shadow:0 3px 0 #0B0A24;white-space:nowrap;pointer-events:none;opacity:0;transform:translateX(-50%)}#world-name.go{animation:worldname 1.25s cubic-bezier(.3,1.3,.5,1) both}@keyframes worldname{0%{opacity:0;transform:translateX(-50%) scale(.6)}18%{opacity:1;transform:translateX(-50%) scale(1.06)}26%{transform:translateX(-50%) scale(1)}78%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) translateY(-16px)}}@media (max-width:480px){#world-name{font-size:25px;padding:8px 20px}}@media (prefers-reduced-motion:reduce){#world-name{display:none}}
.ms{grid-column:1/-1;width:100%;margin:6px 0;padding:10px;border-radius:14px;background:var(--ui-glass);border:2px solid var(--accent);color:var(--ui-text)}.ms-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font:600 16px Fredoka,sans-serif}.ms-n{padding:2px 10px;border-radius:9px;background:var(--ui-gold);color:#17132F}.ms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:8px;max-height:46vh;overflow-y:auto;padding:2px}.ms-opt{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:112px;padding:8px 5px;border-radius:12px;font:inherit;color:var(--ui-text);background:linear-gradient(165deg,#312F7C,#1C1B52);border:2px solid #4A4896;cursor:pointer;transition:transform .12s cubic-bezier(.3,1.5,.5,1)}.ms-opt[aria-pressed="true"]{border-color:var(--ui-gold);box-shadow:0 0 14px rgba(255,217,120,.6);transform:translateY(-2px)}.ms-opt small{font-size:12px;color:var(--ui-dim);text-align:center}.ms-opt b{font-size:14px;text-align:center;overflow-wrap:anywhere}.ms-pic img{width:44px!important;height:44px!important;image-rendering:pixelated}.ms-go{margin-top:9px}
#dg-next{margin:0 0 8px;color:var(--ui-text)}#dg-next small{font-size:12px;color:var(--ui-dim)}#dg-next i{display:block;height:9px;border-radius:6px;background:rgba(6,6,28,.7);overflow:hidden}#dg-next u{display:block;height:100%;background:linear-gradient(#D8B8FF,#8A5CE0);transition:width .4s linear}
.gh-main:has(.cg){display:block}.gh-main:has(.cg) .gh-side{display:none}.gh-left:has(.cg){background:none;border:0;padding:0;box-shadow:none}.cg{padding:12px;border-radius:14px;background:linear-gradient(165deg,#3A1F5E,#1A1440);border:2px solid #FF7FC4;color:var(--ui-text)}.cg-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.cg-head h3{margin:0;font:600 21px Fredoka,sans-serif;color:var(--ui-gold)}.cg-time{min-width:74px;padding:4px 12px;border-radius:11px;background:rgba(6,6,28,.65);border:2px solid var(--ui-gold);text-align:center}.cg-time small{display:block;font-size:11px;color:var(--ui-dim)}.cg-time b{font:600 19px Fredoka,sans-serif;color:var(--ui-gold)}.cg-time.low{border-color:#FF6B7A}.cg-time.low b{color:#FF6B7A}.cg-note{margin:6px 0;font-size:14px}.cg-res{margin:8px 0;padding:10px 14px;border-radius:12px;font:600 17px Fredoka,sans-serif;text-align:center;animation:fhpop .3s}.cg-res.w{background:rgba(95,200,120,.3);border:2px solid #7FE08A}.cg-res.l{background:rgba(220,90,90,.28);border:2px solid #FF6B7A}.cg-maze{display:grid;grid-template-columns:repeat(var(--n),1fr);width:min(100%,430px,58vh);margin:10px auto;padding:6px;border-radius:10px;background:#120C2E;border:3px solid var(--ui-gold)}.cg-c{position:relative;display:grid;place-items:center;aspect-ratio:1}.cg-c.w{background:linear-gradient(135deg,#5A2E86,#3A1F5E);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}.cg-c.p,.cg-c.g,.cg-c.y{background:#F4E8C8}.cg-c.g{background:#7FE08A}.cg-c.g span{font-size:min(4.4vw,24px);line-height:1}.cg-c.y img{width:92%;height:92%;image-rendering:pixelated}.cg-pad{display:grid;grid-template-columns:repeat(3,58px);grid-template-rows:repeat(2,58px);gap:6px;justify-content:center;margin:8px 0}.cg-dir{font-size:24px;color:#17132F;background:linear-gradient(#FFE27A,#E9A12F);border:2px solid #17132F;border-radius:13px;box-shadow:inset 0 2px 0 rgba(255,255,255,.5),0 4px 0 #17132F;cursor:pointer}.cg-dir:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #17132F}.cg-dir:disabled{filter:saturate(.3) brightness(.7)}.cg-dir[data-dir=up]{grid-column:2;grid-row:1}.cg-dir[data-dir=left]{grid-column:1;grid-row:2}.cg-dir[data-dir=down]{grid-column:2;grid-row:2}.cg-dir[data-dir=right]{grid-column:3;grid-row:2}.cg-hint{margin:2px 0 0;font-size:12px;color:var(--ui-dim);text-align:center}@media (pointer:coarse){.cg-hint{display:none}}.cg-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,520px);margin:10px auto}.cg-card{display:grid;place-items:center;aspect-ratio:1/1.15;padding:0;border-radius:12px;cursor:pointer;background:linear-gradient(165deg,#312F7C,#1C1B52);border:3px solid var(--ui-gold);box-shadow:0 4px 0 #0B0A24}.cg-back{width:62%;aspect-ratio:1;background:url(assets/icons/item_carnival_ticket.png) center/contain no-repeat;image-rendering:pixelated;opacity:.85}.cg-card.up{background:#FFF8E4;animation:cgflip .22s ease-out}.cg-card span{font-size:clamp(28px,7vw,46px);line-height:1}.cg-card.match{background:#BFF0C8;border-color:#7FE08A;animation:none}.cg-card.open{border-color:#5FB8FF}.cg-card:disabled{cursor:default}@keyframes cgflip{from{transform:rotateY(90deg)}}.cg-boxes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.cg-box{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:120px;justify-content:center;padding:8px 3px;border-radius:14px;color:var(--ui-text);font:600 15px Fredoka,sans-serif;background:linear-gradient(165deg,#312F7C,#1C1B52);border:3px solid var(--ui-gold);box-shadow:0 4px 0 #0B0A24;cursor:pointer}.cg-box img{width:min(68px,15vw);height:min(68px,15vw);image-rendering:pixelated}.cg-box span{font-size:44px}.cg-box.bang{background:#7A1F34;border-color:#FF6B7A}.cg-box:hover:not(:disabled){transform:translateY(-3px)}.cg-box:disabled{opacity:.7;cursor:default}@media (prefers-reduced-motion:reduce){.cg-card.up,.cg-res{animation:none}}
#bv-body:has(.cg) .sm-head{display:none}.cg-head h3{color:var(--ui-gold)!important}.cg-maze{width:min(100%,430px,62vh)}@media (max-height:500px){.cg-play{display:flex;gap:14px;justify-content:center;align-items:center}.cg-maze{margin:4px 0;width:min(52vh,100%)}}.cg-play{display:block}@media (min-width:760px){.cg-play{display:flex;gap:26px;justify-content:center;align-items:center}.cg-pad{margin:0}.cg-hint{display:none}}
.cg-card span::before{content:attr(data-f)}
.cg-card:disabled{opacity:1!important;filter:none!important}
/* Weather you can see. Purely visual; the server applies the real bonus. */
#wx{position:fixed;inset:0;z-index:1;pointer-events:none;display:none}body[data-weather]:not([data-weather=""]):not([data-world=hall]):not([data-world=casinohall]) #wx{display:block}body[data-weather=sunny] #wx{background:radial-gradient(circle at 88% 6%,rgba(255,236,150,.55),rgba(255,214,120,.14) 34%,transparent 62%)}body[data-weather=rain] #wx{background:rgba(30,50,90,.26)}body[data-weather=night] #wx{background:rgba(8,10,50,.48)}body[data-weather=snow] #wx{background:rgba(190,220,255,.2)}body[data-weather=thunderstorm] #wx{background:rgba(14,18,48,.46);animation:wxbolt 7s linear infinite}@keyframes wxbolt{0%,91%,95%,100%{background:rgba(14,18,48,.46)}92%,94%{background:rgba(240,244,255,.72)}}body[data-weather=rainbow] #wx{background:radial-gradient(ellipse 80% 62% at 50% 62%,transparent 62%,rgba(255,60,60,.34) 64%,rgba(255,170,40,.34) 68%,rgba(255,240,70,.34) 72%,rgba(80,220,110,.34) 76%,rgba(70,150,255,.34) 80%,rgba(170,90,240,.34) 84%,transparent 87%)}#hud .wxrow{margin-top:4px;padding:2px 8px 2px 4px;border-radius:9px;background:color-mix(in srgb,var(--ui-gold) 22%,transparent);color:var(--ui-gold);font-size:13px}#hud .wxrow[hidden]{display:none}#hud .wxrow img{width:20px;height:20px;image-rendering:pixelated}@media (prefers-reduced-motion:reduce){body[data-weather=thunderstorm] #wx{animation:none}}
body[data-weather=rainbow] #wx{-webkit-mask-image:linear-gradient(#000 40%,transparent 66%);mask-image:linear-gradient(#000 40%,transparent 66%)}
.gl-list{display:flex;flex-direction:column;gap:6px;max-height:64vh;overflow-y:auto}.gl-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 11px;border-radius:10px;background:rgba(255,255,255,.07);border-left:3px solid var(--ui-gold)}.gl-row img{width:24px;height:24px;vertical-align:middle;image-rendering:pixelated}.gl-row small{flex:none;color:var(--ui-dim)}
#treq{position:fixed;left:50%;top:84px;transform:translateX(-50%);z-index:30;display:flex;flex-direction:column;gap:9px;align-items:center;padding:13px 20px;border-radius:16px;background:var(--ui-glass);border:2px solid var(--ui-gold);box-shadow:0 0 0 2px #0B0A24,0 0 22px rgba(255,217,120,.5);color:var(--ui-text);font:600 17px Fredoka,sans-serif;animation:winspring .24s cubic-bezier(.3,1.5,.5,1);max-width:calc(100vw - 24px);text-align:center}#treq>div{display:flex;gap:9px}#treq .btn{min-height:44px;padding:6px 18px}
.msg.guild .tag{background:#2AA38C;color:#fff}
.tr-row{display:flex;gap:6px}.tr-row .tr-pick{flex:1;min-width:0}.tr-row>.btn{min-height:44px}.cm-form{gap:6px}.cm-form input{min-height:44px;padding:0 10px;font:inherit;border-radius:8px;border:2px solid rgba(58,40,20,.4);width:100%;box-sizing:border-box}.cm-card>.btn{min-height:44px}
.tr-row .tr-pick>span{display:block!important;flex:1;width:auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
#bv-body a{color:var(--accent);text-decoration:underline;font-weight:700}
#buff-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}#buff-chips:empty{display:none}.buff-chip{font-size:11px;padding:2px 7px;border-radius:9px;background:rgba(127,90,240,.28);color:var(--text,#fff);white-space:nowrap}.buff-chip b{margin-left:3px}
.sp-card small{display:inline-block!important;white-space:normal;text-align:center;line-height:1.5;max-width:100%}.sp-card small img,.sp-card small .emo{display:inline-block;vertical-align:-3px;margin:0 2px}
#buff-chips{margin:0 0 4px}
.sp-card small b{display:inline!important}.wh-state{flex-wrap:wrap}.wh-hunt{display:block;flex:0 0 100%;height:9px;margin-top:6px;border-radius:6px;background:rgba(6,6,28,.7);overflow:hidden}.wh-hunt u{display:block;height:100%;width:0;background:linear-gradient(#D8B8FF,#8A5CE0);transition:width .25s linear}
.buff-chip{display:inline-flex;align-items:center;gap:3px;font-weight:700;color:#FFF7E0!important;background:rgba(92,70,190,.92);border:1px solid rgba(255,255,255,.35)}.buff-chip img{width:14px;height:14px}.buff-chip b{color:#FFE27A}.wh-cast{text-align:center;margin-top:8px}.wh-cast small{display:block;font-size:12px;color:#A9E4EE}.wh-cast.on .fh-dial{background:#7FE08A;box-shadow:0 0 16px rgba(127,224,138,.75)}#dg-next .wh-cast{margin:0 0 6px}
#wx{z-index:0}#hud,#chat,#zoom,#menu{z-index:5}body[data-weather=rain] #wx{background:rgba(30,50,90,.12)}body[data-weather=rain] #wx::after,body[data-weather=thunderstorm] #wx::after,body[data-weather=snow] #wx::after{content:"";position:absolute;inset:0}body[data-weather=rain] #wx::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27320%27%20height%3D%27320%27%3E%3Cpath%20d%3D%27M0%20143l-2%207%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.32%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M275%20131l-2%208%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.49%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M151%2090l-2%207%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M45%20122l-2%208%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M122%2027l-2%207%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M190%20177l-2%208%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M99%20255l-2%206%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M184%20228l-2%206%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M284%20167l-2%206%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.6%27%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27460%27%20height%3D%27460%27%3E%3Cpath%20d%3D%27M441%20147l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M330%20372l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M77%20368l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M460%20368l-2%208%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.40%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M283%2011l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M162%20402l-2%206%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.57%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M438%20253l-2%209%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.50%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M392%20200l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.70%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M196%20373l-2%208%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M22%2024l-2%209%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.34%27%20stroke-width%3D%271.6%27%2F%3E%3C%2Fsvg%3E");background-size:320px 320px,460px 460px;animation:wx-rain 2.6s linear infinite}body[data-weather=thunderstorm] #wx::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27200%27%20height%3D%27200%27%3E%3Cpath%20d%3D%27M70%20110l-2%2018%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.49%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M21%2076l-2%2016%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.53%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M110%20185l-2%2015%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.69%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M199%20155l-2%2020%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M172%20129l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.42%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M107%2051l-2%2024%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.53%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M182%2029l-2%2016%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.68%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M138%2058l-2%2022%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M176%2097l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M20%20160l-2%2023%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.40%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M151%2068l-2%2023%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.47%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M0%204l-2%2014%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.52%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M59%20162l-2%2017%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M198%2099l-2%2022%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M131%2099l-2%2016%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M99%20125l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.42%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M98%20102l-2%2015%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.55%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M163%2099l-2%2020%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M155%2075l-2%2015%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.53%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M77%2039l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.67%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M79%2033l-2%2022%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M145%2048l-2%2017%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M62%20184l-2%2021%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.52%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M84%20103l-2%2018%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M3%20157l-2%2022%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M157%2097l-2%2020%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.30%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M169%20195l-2%2023%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.40%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M34%2074l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.70%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M150%2094l-2%2016%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.53%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M121%20199l-2%2017%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.33%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M93%20192l-2%2022%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.33%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M116%20145l-2%2023%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.50%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M73%2036l-2%2023%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M28%20111l-2%2017%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M168%205l-2%2020%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M162%20154l-2%2016%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M149%20155l-2%2015%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M170%2076l-2%2017%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.50%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M39%2017l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.62%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M197%20106l-2%2024%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M74%20181l-2%2019%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M139%20167l-2%2015%27%20stroke%3D%27%23E4F2FF%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27260%27%20height%3D%27260%27%3E%3Cpath%20d%3D%27M4%2085l-2%2020%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.58%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M243%20203l-2%2012%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.30%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M132%200l-2%2016%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M132%20126l-2%2014%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M208%2030l-2%2012%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.66%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M105%20241l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M232%2072l-2%2016%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.47%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M75%20250l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.35%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M142%20162l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.34%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M35%2032l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M178%204l-2%2016%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M159%20246l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M225%20216l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.35%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M108%20255l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M171%2073l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.69%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M161%20151l-2%2016%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.50%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M182%2076l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.61%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M24%20122l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M149%20202l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.48%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M246%2033l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.49%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M127%20212l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.49%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M182%20192l-2%2019%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.33%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M84%20238l-2%2014%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M19%20224l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.62%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M101%20114l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M241%20102l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M140%2017l-2%2018%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M109%20172l-2%2019%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M96%20203l-2%2020%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M32%2043l-2%2012%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.33%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M2%2025l-2%2019%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.57%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M186%2074l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M257%2063l-2%2018%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.61%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M204%20209l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M236%20170l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.42%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M230%2012l-2%2016%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M206%20243l-2%2017%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M208%2018l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.58%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M191%20256l-2%2014%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M63%20233l-2%2014%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.62%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M241%2022l-2%2020%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.34%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M142%20107l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.36%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M190%20139l-2%2015%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M202%20198l-2%2020%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.41%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M145%2067l-2%2012%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M237%20170l-2%2013%27%20stroke%3D%27%23D8EEFF%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27360%27%20height%3D%27360%27%3E%3Cpath%20d%3D%27M235%20128l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M228%20308l-2%2016%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M151%20116l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M122%2046l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.66%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M141%20125l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.33%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M311%20272l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M29%20178l-2%2016%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.39%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M258%20306l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.57%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M340%20316l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M232%20349l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.43%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M102%20110l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M24%20337l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M327%20202l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M130%20254l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M157%20167l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M344%20166l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.40%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M141%20179l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.46%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M193%20158l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M282%2031l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.53%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M66%20297l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M189%20101l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.48%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M117%20299l-2%2010%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M190%20339l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M309%20256l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.59%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M313%20270l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.55%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M326%2063l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.65%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M35%20121l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.62%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M279%20130l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.60%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M250%2057l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.32%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M239%20216l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M213%20123l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.58%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M101%20104l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.69%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M336%202l-2%2013%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.56%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M329%20229l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M56%20137l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.62%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M129%20180l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M324%2076l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.32%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M202%20270l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.31%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M334%20112l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.32%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M215%20171l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.46%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M318%20240l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.63%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M78%20218l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M357%20225l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.68%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M180%20164l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.48%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M244%20256l-2%2011%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.47%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M90%20352l-2%2014%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.61%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M159%20317l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.36%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M75%20201l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.37%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M170%20270l-2%2015%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.45%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M274%20125l-2%2012%27%20stroke%3D%27%23B9D8F2%27%20stroke-opacity%3D%270.50%27%20stroke-width%3D%271.6%27%2F%3E%3C%2Fsvg%3E");background-size:200px 200px,260px 260px,360px 360px;animation:wx-storm .9s linear infinite}body[data-weather=snow] #wx::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27260%27%20height%3D%27260%27%3E%3Crect%20x%3D%2713%27%20y%3D%27163%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.91%27%2F%3E%3Crect%20x%3D%27192%27%20y%3D%27114%27%20width%3D%274%27%20height%3D%274%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.80%27%2F%3E%3Crect%20x%3D%2793%27%20y%3D%27141%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.80%27%2F%3E%3Crect%20x%3D%27253%27%20y%3D%279%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.65%27%2F%3E%3Crect%20x%3D%27156%27%20y%3D%27252%27%20width%3D%274%27%20height%3D%274%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.67%27%2F%3E%3Crect%20x%3D%27195%27%20y%3D%27103%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.83%27%2F%3E%3Crect%20x%3D%27117%27%20y%3D%27203%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.57%27%2F%3E%3Crect%20x%3D%27184%27%20y%3D%2764%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.72%27%2F%3E%3Crect%20x%3D%27178%27%20y%3D%27109%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.82%27%2F%3E%3Crect%20x%3D%2765%27%20y%3D%2729%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.87%27%2F%3E%3Crect%20x%3D%27190%27%20y%3D%27142%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.73%27%2F%3E%3Crect%20x%3D%2747%27%20y%3D%27116%27%20width%3D%274%27%20height%3D%274%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.67%27%2F%3E%3Crect%20x%3D%27157%27%20y%3D%27100%27%20width%3D%274%27%20height%3D%274%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.89%27%2F%3E%3Crect%20x%3D%27127%27%20y%3D%2747%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.84%27%2F%3E%3Crect%20x%3D%27147%27%20y%3D%2737%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.80%27%2F%3E%3Crect%20x%3D%27250%27%20y%3D%27185%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.86%27%2F%3E%3Crect%20x%3D%27192%27%20y%3D%2783%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.89%27%2F%3E%3Crect%20x%3D%27178%27%20y%3D%2788%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.56%27%2F%3E%3Crect%20x%3D%27187%27%20y%3D%2790%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.66%27%2F%3E%3Crect%20x%3D%27124%27%20y%3D%27222%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.76%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%2791%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.85%27%2F%3E%3Crect%20x%3D%27137%27%20y%3D%27100%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.62%27%2F%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27380%27%20height%3D%27380%27%3E%3Crect%20x%3D%2781%27%20y%3D%2727%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.84%27%2F%3E%3Crect%20x%3D%27109%27%20y%3D%27187%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.69%27%2F%3E%3Crect%20x%3D%2758%27%20y%3D%27253%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.69%27%2F%3E%3Crect%20x%3D%27105%27%20y%3D%27310%27%20width%3D%274%27%20height%3D%274%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.57%27%2F%3E%3Crect%20x%3D%27251%27%20y%3D%2731%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.88%27%2F%3E%3Crect%20x%3D%27122%27%20y%3D%27224%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.78%27%2F%3E%3Crect%20x%3D%27233%27%20y%3D%2747%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.56%27%2F%3E%3Crect%20x%3D%27305%27%20y%3D%27203%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.91%27%2F%3E%3Crect%20x%3D%27291%27%20y%3D%2763%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.67%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%27170%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.74%27%2F%3E%3Crect%20x%3D%27219%27%20y%3D%27134%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.84%27%2F%3E%3Crect%20x%3D%27305%27%20y%3D%2770%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.59%27%2F%3E%3Crect%20x%3D%27324%27%20y%3D%27300%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.68%27%2F%3E%3Crect%20x%3D%27275%27%20y%3D%27243%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.67%27%2F%3E%3Crect%20x%3D%27128%27%20y%3D%2786%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.84%27%2F%3E%3Crect%20x%3D%27194%27%20y%3D%27156%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.89%27%2F%3E%3Crect%20x%3D%27298%27%20y%3D%27287%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.81%27%2F%3E%3Crect%20x%3D%2757%27%20y%3D%2771%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.82%27%2F%3E%3Crect%20x%3D%27203%27%20y%3D%2762%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.81%27%2F%3E%3Crect%20x%3D%27364%27%20y%3D%27332%27%20width%3D%272%27%20height%3D%272%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.92%27%2F%3E%3Crect%20x%3D%27179%27%20y%3D%27334%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.69%27%2F%3E%3Crect%20x%3D%27318%27%20y%3D%27283%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.57%27%2F%3E%3Crect%20x%3D%27214%27%20y%3D%27173%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.92%27%2F%3E%3Crect%20x%3D%27297%27%20y%3D%27129%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.70%27%2F%3E%3Crect%20x%3D%2791%27%20y%3D%27262%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.58%27%2F%3E%3Crect%20x%3D%2766%27%20y%3D%27345%27%20width%3D%273%27%20height%3D%273%27%20fill%3D%27%23fff%27%20fill-opacity%3D%270.87%27%2F%3E%3C%2Fsvg%3E");background-size:260px 260px,380px 380px;animation:wx-snow 14s linear infinite}body[data-weather=thunderstorm] #wx{animation:wxbolt2 7s linear infinite}body[data-weather=thunderstorm] #wx::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27150%27%20height%3D%27430%27%20viewBox%3D%270%200%20150%20430%27%3E%3Cpath%20d%3D%27M86%200%2040%20150h34L22%20280h36L8%20430%20128%20240H88L132%20112H94L126%200z%27%20fill%3D%27%23FFF6B8%27%20stroke%3D%27%23FFFFFF%27%20stroke-width%3D%274%27%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:150px 430px;background-position:64% 0;opacity:0;animation:wx-strike 7s steps(1) infinite}@keyframes wxbolt2{0%,45%,49%,91%,95%,100%{background:rgba(14,18,48,.46)}46%,48%,92%,94%{background:rgba(240,244,255,.55)}}@keyframes wx-strike{0%{opacity:0;background-position:64% 0}46%{opacity:1;background-position:24% 0}48.5%{opacity:0;background-position:24% 0}92%{opacity:1;background-position:64% 0}94.5%{opacity:0;background-position:64% 0}}@keyframes wx-rain{to{background-position:-320px 1280px,-460px 1840px}}@keyframes wx-storm{to{background-position:-200px 800px,-260px 1040px,-360px 1440px}}@keyframes wx-snow{to{background-position:-260px 1040px,-380px 1520px}}@media (prefers-reduced-motion:reduce){body[data-weather=thunderstorm] #wx,#wx::after,#wx::before{animation:none!important}}
#tab-block{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;text-align:center;background:#14182B;color:#FFF7E0}#tab-block b{font-size:22px}#tab-block p{margin:0;max-width:420px;color:#C9D2E8}
body[data-q=medium] .modal,body[data-q=low] .modal{backdrop-filter:none}body[data-q=medium] #wx,body[data-q=medium] #wx::after,body[data-q=medium] #wx::before,body[data-q=low] #wx{animation:none!important}body[data-q=low] #wx::after,body[data-q=low] #wx::before{display:none!important}body[data-q=low] .panel,body[data-q=low] .modal>*{box-shadow:none!important}
/* Phone held sideways: chat sits bottom centre, between the arrow pad and Jump/Use, clear of the money box */
@media (pointer:coarse) and (orientation:landscape) and (max-height:540px){#chat{top:auto;bottom:calc(8px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(340px,calc(100vw - 380px));height:min(128px,38vh)}#chat:focus-within{height:min(170px,52vh)}#chat-log{font-size:12px}}
/* Chat hides while a menu window is open (it covered trades), and the phone move buttons sit above the chat so walking always works. */
body:has(.modal:not([hidden])) #chat,body:has(.modal:not([hidden])) #chat-toggle{visibility:hidden!important}#touch{z-index:6}
