* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1117; font-family: "Segoe UI", system-ui, sans-serif; color: #f3ecd8; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.hidden { display: none !important; }

.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20,30,20,.55), rgba(0,0,0,.85)); z-index: 10; }
.panel { background: linear-gradient(#3b2a1a, #2a1d12); border: 3px solid #c99a4b; border-radius: 10px; padding: 24px 28px;
  box-shadow: 0 0 0 3px #4a3015, 0 20px 50px rgba(0,0,0,.6); width: min(340px, 92vw); text-align: center; }
.panel.wide { width: min(640px, 96vw); }
.logo { font-size: 44px; margin: 0; letter-spacing: 1px; color: #ffd76a; text-shadow: 0 3px 0 #8a3b12, 0 0 18px rgba(255,170,40,.5); }
.logo span { color: #ff5b3a; }
.tag { margin: 4px 0 18px; color: #d8c49a; font-size: 13px; }
h2 { margin: 0 0 14px; color: #ffd76a; }
input { width: 100%; padding: 10px 12px; margin: 6px 0; border-radius: 6px; border: 2px solid #7a5a2e; background: #1b130b; color: #fff; font-size: 15px; }
input:focus { outline: none; border-color: #ffd76a; }
button { cursor: pointer; padding: 9px 16px; border-radius: 6px; border: 2px solid #7a5a2e; background: #4b3520; color: #f3ecd8; font-weight: 600; font-size: 14px; }
button:hover { border-color: #ffd76a; }
button.primary { background: linear-gradient(#e0782c, #b3471b); border-color: #ffb35c; color: #fff; }
.row { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.row.small button { padding: 4px 12px; }
.msg { min-height: 18px; font-size: 13px; color: #ffb4a0; margin: 10px 0 0; }
.msg.good { color: #b6f0a0; }

.create-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; text-align: left; }
@media (max-width: 560px) { .create-grid { grid-template-columns: 1fr; } .preview-box { justify-self: center; } }
.preview-box { background: #1b130b; border: 2px solid #7a5a2e; border-radius: 8px; padding: 10px; text-align: center; }
#preview { image-rendering: pixelated; width: 200px; height: 200px; }
.opts label { font-size: 13px; color: #d8c49a; }
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 10px; }
.classes button { padding: 8px 6px; text-align: left; }
.classes button small { display: block; font-weight: 400; font-size: 11px; color: #d8c49a; }
.classes button.on { background: #7a4a1c; border-color: #ffd76a; }
.pick { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.pick span { width: 70px; font-size: 13px; color: #d8c49a; }
.pick button { padding: 2px 10px; }
.pick b { min-width: 34px; text-align: center; }

#hud > * { position: fixed; z-index: 5; }
#status { top: 10px; left: 10px; width: 230px; background: rgba(30,20,10,.82); border: 2px solid #c99a4b; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
#status .who b { color: #ffd76a; }
#status .lv { float: right; }
.bar { position: relative; height: 14px; background: #1b130b; border-radius: 3px; margin-top: 5px; overflow: hidden; border: 1px solid #000; }
.bar i { position: absolute; inset: 0; width: 0; transition: width .2s; }
.bar.hp i { background: linear-gradient(#ff6a5a, #b0201a); }
.bar.xp i { background: linear-gradient(#ffe27a, #c58b12); }
.bar span { position: relative; font-size: 10px; display: block; text-align: center; line-height: 14px; text-shadow: 0 1px 1px #000; }
.gold { margin-top: 5px; }
#evbar, #bossbar { position: fixed; z-index: 5; left: 50%; transform: translateX(-50%); }
#mapname { top: 10px; left: 50%; transform: translateX(-50%); background: rgba(30,20,10,.82); border: 2px solid #c99a4b; border-radius: 8px; padding: 4px 16px; font-weight: 700; color: #ffd76a; }
#minimap { top: 10px; right: 10px; background: rgba(0,0,0,.6); border: 2px solid #c99a4b; border-radius: 6px; }
#chat { left: 10px; bottom: 10px; width: min(380px, 70vw); }
#log { max-height: 150px; overflow-y: auto; font-size: 13px; background: rgba(0,0,0,.45); border-radius: 6px 6px 0 0; padding: 4px 8px; }
#log div { margin: 1px 0; text-shadow: 0 1px 1px #000; word-wrap: break-word; }
#log .sys { color: #ffd76a; }
#log .name { color: #8fd3ff; font-weight: 600; }
#chatIn { margin: 0; border-radius: 0 0 6px 6px; padding: 6px 8px; font-size: 13px; background: rgba(0,0,0,.6); }
#touch { right: 16px; bottom: 16px; display: flex; gap: 10px; align-items: flex-end; }
#touch button:not(#btnAtk) { width: 50px; height: 50px; border-radius: 50%; font-size: 20px; padding: 0; position: relative; background: rgba(60,40,20,.9); border: 2px solid #c99a4b; }
#touch small { position: absolute; right: -4px; bottom: -4px; font-size: 10px; background: #000; border-radius: 8px; padding: 0 4px; }
#btnGM { color: #ffd76a; font-size: 14px !important; font-weight: 800; }
#btnAtk { width: 72px; height: 72px; border-radius: 50%; font-size: 30px; background: radial-gradient(#e0782c, #8a2f10); border: 3px solid #ffd76a; }
#help { top: 46px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #d8c49a; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 10px; }
@media (max-width: 700px) { #help { display: none; } #minimap { width: 110px; height: 80px; } }

#dialog { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, 94vw); z-index: 8;
  display: flex; gap: 12px; align-items: flex-end; background: linear-gradient(#3b2a1a, #2a1d12); border: 3px solid #c99a4b; border-radius: 10px; padding: 12px; }
#dFace { width: 96px; image-rendering: pixelated; }
.dbody { flex: 1; }
.dbody b { color: #ffd76a; font-size: 16px; }
.dbody i { margin-left: 8px; color: #d8c49a; font-size: 12px; }
.dbody p { margin: 6px 0 0; line-height: 1.4; }
#dead { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(60,0,0,.5); z-index: 9; }
#toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 20; pointer-events: none; }
#toast div { background: rgba(0,0,0,.75); border: 1px solid #c99a4b; padding: 6px 14px; border-radius: 6px; margin-top: 6px; color: #ffd76a; animation: fade 2.5s forwards; }
@keyframes fade { 0%,70% { opacity: 1; } 100% { opacity: 0; } }
#langbar { position: fixed; top: 10px; right: 170px; z-index: 30; display: flex; gap: 4px; }
#langbar button { padding: 3px 9px; font-size: 12px; background: rgba(30,20,10,.85); }
#langbar button.on { background: #b3471b; border-color: #ffd76a; color: #fff; }
@media (max-width: 700px) { #langbar { right: 130px; } }

.win { position: fixed; z-index: 12; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, 96vw); max-height: 88vh; overflow: auto;
  background: linear-gradient(#3b2a1a, #2a1d12); border: 3px solid #c99a4b; border-radius: 10px; padding: 10px 14px; box-shadow: 0 0 0 3px #4a3015, 0 20px 50px rgba(0,0,0,.6); }
.whead { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #7a5a2e; padding-bottom: 6px; margin-bottom: 8px; }
.whead > b { color: #ffd76a; font-size: 17px; }
.whead span { flex: 1; font-size: 12px; color: #d8c49a; }
.whead .x { padding: 2px 9px; }
.sub { display: block; color: #d8c49a; font-size: 12px; margin: 4px 0; }
.bagbody { display: grid; grid-template-columns: 250px 1fr; gap: 12px; }
@media (max-width: 560px) { .bagbody { grid-template-columns: 1fr; } }
.eqslots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.slot { position: relative; width: 48px; height: 48px; background: #1b130b; border: 2px solid #5a4020; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slot img { image-rendering: pixelated; max-width: 36px; max-height: 36px; transform: scale(1.6); }
.slot .q { position: absolute; right: 2px; bottom: 0; font-size: 10px; text-shadow: 0 1px 1px #000; }
.slot.sel { border-color: #ffd76a; box-shadow: 0 0 6px #ffd76a; }
.slot.r1 { border-color: #5a8ad8; } .slot.r2 { border-color: #b65ad8; }
.eqslot { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #d8c49a; min-width: 0; }
.eqslot span { overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 5px; }
.info { margin-top: 10px; min-height: 60px; background: rgba(0,0,0,.3); border-radius: 6px; padding: 8px; font-size: 13px; }
.info b { color: #ffd76a; }
.info .bad { color: #ff8a7a; }
.info .acts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.info .acts button { padding: 5px 12px; }
.hint { font-size: 12px; color: #d8c49a; margin: 0 0 6px; }
.shoplist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.shoplist.small { max-height: 34vh; }
.srow { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px 8px; font-size: 13px; }
.srow img { width: 28px; height: 28px; image-rendering: pixelated; object-fit: contain; }
.srow .nm { flex: 1; }
.srow .nm small { display: block; color: #d8c49a; font-size: 11px; }
.srow .pr { color: #ffd76a; min-width: 70px; text-align: right; }
.srow button { padding: 4px 10px; }
.dbtns { display: flex; flex-direction: column; gap: 6px; }
.gmgrid { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; align-items: center; font-size: 13px; }
.gmgrid label { color: #d8c49a; }
.r { display: flex; gap: 6px; align-items: center; }
.r input, .r select { margin: 0; padding: 5px 8px; font-size: 13px; }
.win select { background: #1b130b; color: #fff; border: 2px solid #7a5a2e; border-radius: 6px; padding: 5px; }
.r .sm { width: 70px; flex: none; }
.btns { flex-wrap: wrap; margin: 10px 0; }
.btns button.on { background: #b3471b; border-color: #ffd76a; }
#log .gm { color: #ffb04a; }
#log .ann { color: #ff7ad9; font-weight: 600; }
@media (min-width: 900px) {
  body.split #shop { left: 25%; width: min(470px, 48vw); }
  body.split #bag { left: 74%; width: min(560px, 50vw); }
  body.split .bagbody { grid-template-columns: 1fr; }
  body.split .eqslots { grid-template-columns: repeat(4, 1fr); }
  body.split .eqslot span { display: none; }
}

#zoombar { top: 128px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
#zoombar button { width: 34px; height: 30px; padding: 0; font-size: 18px; background: rgba(30,20,10,.85); }
#qtrack { top: 128px; right: 52px; width: 230px; background: rgba(20,14,8,.72); border: 1px solid #7a5a2e; border-radius: 8px; padding: 6px 9px; font-size: 12px; cursor: pointer; }
#qtrack:empty { display: none; }
#qtrack .qt { color: #ffd23a; font-weight: 700; }
#qtrack .qt.daily { color: #7cd3ff; margin-top: 5px; }
#qtrack .qm { color: #aee3ff; font-size: 11px; }
@media (max-width: 700px) { #qtrack { width: 170px; top: 100px; } #zoombar { top: 100px; } }
.qlist { display: flex; flex-direction: column; gap: 5px; max-height: 64vh; overflow: auto; }
.qrow { background: rgba(0,0,0,.25); border-radius: 6px; padding: 6px 9px; font-size: 13px; border-left: 3px solid #5a4020; }
.qrow b { color: #ffd76a; }
.qrow small { color: #d8c49a; }
.qrow.done { opacity: .55; border-left-color: #5aa05a; }
.qrow.done b::after { content: ' ✓'; color: #7dff8a; }
.qrow.cur { border-left-color: #ffd23a; background: rgba(90,60,10,.35); }
.qrow.locked { opacity: .7; }
.row.col { flex-direction: column; }
.r.wrap { flex-wrap: wrap; margin: 4px 0; font-size: 12px; color: #d8c49a; }
.r.wrap input:not(.sm) { flex: 1; min-width: 140px; }

.tabs { display: flex; gap: 4px; }
.tab { padding: 3px 12px; font-size: 13px; }
.tab.on { background: #b3471b; border-color: #ffd76a; color: #fff; }
#gmTabItems .shoplist { max-height: 52vh; }

.bar.mp i { background: linear-gradient(#6ab0ff, #1f4fb0); }
#hotbar { bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 6; }
.hk { position: relative; width: 46px; height: 46px; border-radius: 8px; background: rgba(20,14,8,.85); border: 2px solid #c99a4b; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; overflow: hidden; }
.hk img { width: 36px; height: 36px; image-rendering: pixelated; }
.hk .key { position: absolute; left: 3px; top: 1px; font-size: 10px; color: #ffd76a; text-shadow: 0 1px 1px #000; }
.hk .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.65); }
.hk .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; text-shadow: 0 1px 2px #000; }
.hk.nomp img { filter: grayscale(.8) brightness(.6); }
#buffbar { top: 134px; left: 10px; display: flex; gap: 4px; }
#buffbar .bf { position: relative; width: 26px; height: 26px; border: 1px solid #ffd76a; border-radius: 4px; overflow: hidden; }
#buffbar .bf img { width: 24px; height: 24px; image-rendering: pixelated; }
#buffbar .bf span { position: absolute; right: 1px; bottom: 0; font-size: 9px; text-shadow: 0 1px 1px #000; }
#partyframe { top: 166px; left: 10px; width: 190px; background: rgba(20,14,8,.78); border: 1px solid #7a5a2e; border-radius: 8px; padding: 6px 8px; font-size: 12px; }
#partyframe .pm { margin: 3px 0; }
#partyframe .pm b { color: #8fd3ff; } #partyframe .pm.lead b::before { content: '👑 '; }
#partyframe .pbar { height: 5px; background: #300; border-radius: 3px; overflow: hidden; } #partyframe .pbar i { display: block; height: 100%; background: #e33; }
#partyframe .pm small { color: #d8c49a; float: right; }
#partyframe .pact { display: flex; gap: 4px; margin-top: 4px; } #partyframe .pact button { padding: 2px 8px; font-size: 11px; }
.chathead { display: flex; justify-content: space-between; gap: 4px; }
.chathead select { background: rgba(0,0,0,.6); color: #fff; border: 1px solid #7a5a2e; border-radius: 6px 6px 0 0; font-size: 12px; padding: 2px 6px; }
#chatMin { padding: 0 10px; font-size: 14px; border-radius: 6px 6px 0 0; background: rgba(0,0,0,.6); }
#chatOpen { position: fixed; left: 10px; bottom: 10px; z-index: 6; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; padding: 0; background: rgba(60,40,20,.9); border: 2px solid #c99a4b; }
#chatOpen small { position: absolute; right: -4px; top: -4px; background: #e33; border-radius: 9px; font-size: 10px; padding: 0 5px; }
#chatOpen small:empty { display: none; }
#log .party { color: #7dff8a; } #log .guild { color: #c9a0ff; }
.skrow { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; background: rgba(0,0,0,.25); border-radius: 6px; padding: 5px 8px; font-size: 12px; }
.skrow img { width: 36px; height: 36px; image-rendering: pixelated; }
.skrow b { color: #ffd76a; font-size: 13px; }
.skrow .lock { opacity: .55; }
.skrow .acts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 170px; }
.skrow .acts button { padding: 2px 7px; font-size: 11px; }
.skrow .acts button.on { background: #b3471b; border-color: #ffd76a; }
.trgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trside { background: rgba(0,0,0,.25); border-radius: 8px; padding: 8px; }
.trside .grid { min-height: 106px; grid-template-columns: repeat(4, 48px); }
.trst { font-size: 12px; margin-top: 4px; color: #d8c49a; } .trst.ok { color: #7dff8a; }
#pmenu { position: fixed; z-index: 15; background: linear-gradient(#3b2a1a, #2a1d12); border: 2px solid #c99a4b; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
#pmenu b { color: #ffd76a; } #pmenu small { color: #d8c49a; margin-bottom: 4px; } #pmenu button { padding: 5px 8px; font-size: 13px; }
#invite { position: fixed; z-index: 25; top: 90px; left: 50%; transform: translateX(-50%); background: linear-gradient(#3b2a1a, #2a1d12); border: 3px solid #c99a4b; border-radius: 10px; padding: 12px 18px; text-align: center; min-width: 260px; }
#invite p { margin: 0 0 6px; }
.gmem { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px 8px; margin: 3px 0; font-size: 13px; }
.gmem .dot { width: 8px; height: 8px; border-radius: 50%; background: #666; } .gmem .dot.on { background: #4f4; }
.gmem .nm { flex: 1; } .gmem button { padding: 2px 8px; font-size: 11px; }
@media (max-width: 700px) {
  #hotbar { bottom: 76px; } .hk { width: 42px; height: 42px; }
  #partyframe { top: 150px; width: 150px; }
  .trgrid { grid-template-columns: 1fr; }
}
button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
@media (min-width: 900px) {
  body.split #tradew { left: 25%; width: min(470px, 48vw); }
  body.split #tradew .trgrid { grid-template-columns: 1fr 1fr; }
  body.split #tradew .trside .grid { grid-template-columns: repeat(4, 44px); }
}
@media (max-width: 899px) {
  body.split #shop, body.split #tradew { top: 8px; transform: translateX(-50%); max-height: 46vh; }
  body.split #bag { top: auto; bottom: 8px; transform: translateX(-50%); max-height: 46vh; }
}

.slot .up { position: absolute; left: 2px; top: 0; font-size: 10px; font-weight: 800; color: #7dff8a; text-shadow: 0 1px 1px #000; }
.matl { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.matl img { width: 24px; height: 24px; image-rendering: pixelated; }
.bad { color: #ff8a7a !important; }
#svcBody .srow { margin: 4px 0; }
#svcBody > button { margin-top: 8px; }
#svcBody .rk { font-size: 13px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
@media (min-width: 900px) { body.split #svc { left: 25%; width: min(470px, 48vw); } }
@media (max-width: 899px) { body.split #svc { top: 8px; transform: translateX(-50%); max-height: 46vh; } }

.gems { margin-left: 10px; color: #9fe8ff; }
#attr { width: min(460px, 94vw); }
.arow { display: grid; grid-template-columns: 90px 70px 1fr auto auto; gap: 6px; align-items: center; background: rgba(0,0,0,.25); border-radius: 6px; padding: 5px 8px; margin: 4px 0; font-size: 13px; }
.arow b { color: #ffd76a; } .arow .av { font-weight: 700; } .arow small { color: #d8c49a; font-size: 11px; }
.arow button { padding: 2px 8px; font-size: 12px; }
.agrid { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 3px 10px; margin-top: 10px; font-size: 13px; }
.agrid span { color: #d8c49a; } .agrid b { text-align: right; }
.hint.good { color: #7dff8a; }

/* ---- v0.9 stage 4: social, mail, market, login reward */
#touch small:empty { display: none; }
#mailN { background: #e33 !important; top: -4px; bottom: auto !important; }
#social { width: min(760px, 97vw); }
#social .tab small { background: #e33; border-radius: 8px; padding: 0 5px; font-size: 10px; }
#social .tab small:empty { display: none; }
.sotabs { display: flex; gap: 4px; margin-bottom: 8px; }
.sotabs .tab { font-size: 12px; padding: 2px 10px; }
.frow { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 5px 8px; margin: 3px 0; font-size: 13px; }
.frow .dot { width: 8px; height: 8px; border-radius: 50%; background: #666; flex: none; } .frow .dot.on { background: #4f4; }
.frow .nm { flex: 1; min-width: 0; } .frow .nm small { color: #d8c49a; margin-left: 6px; }
.frow button { padding: 2px 8px; font-size: 11px; }
.mailgrid { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; gap: 10px; }
@media (max-width: 620px) { .mailgrid { grid-template-columns: 1fr; } }
.mlist { display: flex; flex-direction: column; gap: 3px; max-height: 52vh; overflow: auto; }
.mrow { background: rgba(0,0,0,.25); border-radius: 6px; padding: 5px 8px; font-size: 12px; cursor: pointer; border-left: 3px solid transparent; }
.mrow b { display: block; font-size: 13px; color: #f3ecd8; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow.unread { border-left-color: #ffd76a; } .mrow.unread b { font-weight: 800; color: #ffd76a; }
.mrow.sel { background: rgba(120,80,20,.45); }
.mrow small { color: #d8c49a; }
.mview { background: rgba(0,0,0,.25); border-radius: 6px; padding: 8px 10px; font-size: 13px; min-height: 140px; }
.mview h4 { margin: 0 0 2px; color: #ffd76a; }
.mview .meta { color: #d8c49a; font-size: 11px; margin-bottom: 8px; }
.mview .bodytxt { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 8px; }
.mview .att { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.compose { display: grid; gap: 6px; }
.compose input, .compose textarea { margin: 0; padding: 6px 8px; font-size: 13px; }
.compose textarea { width: 100%; min-height: 70px; resize: vertical; background: #1b130b; color: #fff; border: 2px solid #7a5a2e; border-radius: 6px; font-family: inherit; }
.minigrid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 4px; max-height: 150px; overflow: auto; background: rgba(0,0,0,.2); padding: 4px; border-radius: 6px; }
.minigrid .slot { width: 44px; height: 44px; }
.mktbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; font-size: 12px; }
.mktbar input:not([type=checkbox]) { flex: 1; min-width: 130px; margin: 0; padding: 5px 8px; font-size: 13px; }
.mktbar input[type=checkbox] { width: auto; margin: 0; }
.mktbar label { display: flex; align-items: center; gap: 4px; color: #d8c49a; }
.srow .who { color: #d8c49a; font-size: 11px; min-width: 90px; text-align: right; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: #d8c49a; }
.pager button { padding: 2px 10px; }
.sellbox { background: rgba(0,0,0,.25); border-radius: 6px; padding: 8px; margin: 6px 0; font-size: 13px; }
.sellbox .r { margin-top: 6px; flex-wrap: wrap; }
.sellbox input { width: 140px; margin: 0; padding: 5px 8px; }
#login7 { width: min(560px, 96vw); }
.l7days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.l7d { background: rgba(0,0,0,.3); border: 2px solid #5a4020; border-radius: 8px; padding: 6px 2px; text-align: center; font-size: 11px; color: #d8c49a; min-height: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.l7d b { color: #f3ecd8; font-size: 12px; }
.l7d img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.l7d .big { font-size: 22px; line-height: 32px; }
.l7d.done { opacity: .5; } .l7d.done::after { content: '✓'; color: #7dff8a; font-weight: 800; }
.l7d.today { border-color: #ffd76a; box-shadow: 0 0 10px rgba(255,215,106,.5); background: rgba(120,80,20,.4); }
@media (max-width: 520px) { .l7days { grid-template-columns: repeat(4, 1fr); } }
#confirmBox { position: fixed; z-index: 40; top: 40%; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(#3b2a1a, #2a1d12); border: 3px solid #c99a4b; border-radius: 10px; padding: 14px 20px; text-align: center; width: min(360px, 90vw); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
#confirmBox p { margin: 0 0 8px; }
#log .w { color: #ff9ee0; }
#pmenu [data-pm=whisper], #pmenu [data-pm=friend], #pmenu [data-pm=block] { font-size: 12px; }

/* ---- v0.10 phone & tablet layout */
#tmenu { display: contents; }
#btnMenu { display: none; }
#btnCfg { top: 10px; right: 170px; width: 38px; height: 30px; padding: 0; font-size: 15px; background: rgba(30,20,10,.85); }
body.ingame #langbar { display: none; }
#cfgMenu { position: fixed; z-index: 35; top: 46px; right: 150px; display: flex; flex-direction: column; gap: 6px; padding: 10px; min-width: 170px;
  background: linear-gradient(#3b2a1a, #2a1d12); border: 2px solid #c99a4b; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
#cfgMenu button { padding: 7px 10px; font-size: 14px; text-align: left; }
#cfgMenu .r button { flex: 1; text-align: center; }
#cfgMenu .r button.on { background: #b3471b; border-color: #ffd76a; color: #fff; }
#rotateHint { display: none; }
#status, #chat, #chatOpen, #buffbar, #partyframe { margin-left: env(safe-area-inset-left); }
#minimap, #zoombar, #qtrack, #btnCfg { margin-right: env(safe-area-inset-right); }
#touch { margin-right: env(safe-area-inset-right); margin-bottom: env(safe-area-inset-bottom); }

@media (hover: none) and (pointer: coarse) {
  #help { display: none !important; }
  /* attack button bottom-right; 5 skill slots in an arc around it; potion + menu to the left */
  #touch { width: 72px; height: 72px; display: block; }
  #touch > button { position: absolute !important; }
  #btnAtk { right: 0; bottom: 0; }
  #touch > #btnPot, #touch > #btnMenu { width: 48px !important; height: 48px !important; bottom: 12px; }
  #touch > #btnPot { right: 196px; }
  #touch > #btnMenu { display: block; right: 252px; font-size: 22px !important; }
  #menuN:empty { display: none; }
  #menuN { background: #e33 !important; top: -4px; bottom: auto !important; }
  #tmenu { display: none; }
  body.menuopen #tmenu { display: grid; grid-template-columns: repeat(4, 50px); gap: 8px; position: fixed; z-index: 7;
    right: calc(240px + env(safe-area-inset-right)); bottom: calc(78px + env(safe-area-inset-bottom)); padding: 8px;
    background: rgba(25,17,10,.92); border: 2px solid #c99a4b; border-radius: 12px; }
  body.menuopen #tmenu button { position: relative; }
  #hotbar { left: auto !important; transform: none !important; width: 0; height: 0; display: block;
    right: calc(52px + env(safe-area-inset-right)); bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
  #hotbar .hk { position: absolute; width: 44px !important; height: 44px !important; border-radius: 50%; }
  #hotbar .hk:nth-child(1) { left: -140px; top: -22px; }
  #hotbar .hk:nth-child(2) { left: -131px; top: -67px; }
  #hotbar .hk:nth-child(3) { left: -105px; top: -105px; }
  #hotbar .hk:nth-child(4) { left: -67px;  top: -131px; }
  #hotbar .hk:nth-child(5) { left: -22px;  top: -140px; }
  #hotbar .hk .key { left: 50%; transform: translateX(-50%); top: 0; }
  #chat { width: min(340px, 46vw); }
  #log { max-height: 110px; }
}
/* short screens (phones in landscape) */
@media (max-height: 520px) {
  #status { transform: scale(.8); transform-origin: top left; }
  #minimap { width: 112px; height: 82px; }
  #btnCfg { right: 132px; }
  #cfgMenu { right: 110px; }
  #zoombar { top: 100px; }
  #zoombar button { width: 30px; height: 26px; font-size: 16px; }
  #qtrack { top: 100px; right: 46px; width: 180px; font-size: 11px; padding: 4px 7px; }
  #mapname { top: 8px; font-size: 13px; padding: 2px 12px; }
  #buffbar { top: 112px; }
  #partyframe { top: 142px; width: 150px; }
  .win { max-height: 94vh; padding: 8px 10px; }
}
@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  #rotateHint { display: flex; position: fixed; z-index: 50; left: 50%; transform: translate(-50%, -50%); top: 42%; width: min(92vw, 420px);
    gap: 8px; align-items: center; background: rgba(25,17,10,.94); border: 2px solid #ffd76a; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
  #rotateHint span { flex: 1; } #rotateHint button { padding: 2px 9px; }
  body.rotok #rotateHint { display: none; }
  #status { transform: scale(.78); transform-origin: top left; }
  #mapname { top: 92px; }
  #btnCfg { top: 10px; right: 132px; }
  #minimap { width: 112px; height: 82px; }
  #qtrack { top: 132px; width: 170px; }
  #zoombar { top: 132px; }
}

/* narrow desktop windows: lift the hotbar above the button row so they never overlap */
@media (hover: hover) and (max-width: 1300px) {
  #hotbar { left: auto; right: calc(20px + env(safe-area-inset-right)); transform: none; bottom: 88px; }
}

/* ---- v0.11: news popup, new-version banner, VIP lines in the settings menu */
#newsw { width: min(520px, 94vw); z-index: 30; }
.newsitem { background: rgba(0,0,0,.25); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.newsitem h4 { margin: 0; color: #ffd76a; font-size: 15px; }
.newsitem small { color: #d8c49a; }
.newsitem ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
#newVer { position: fixed; z-index: 45; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center;
  background: linear-gradient(#3b2a1a, #2a1d12); border: 2px solid #ffd76a; border-radius: 10px; padding: 6px 8px 6px 14px; font-size: 13px; }
#newVer button { padding: 4px 12px; }
#cfgVip { white-space: pre-line; margin: 0; color: #ffd76a; }

/* ---- v0.12 touch joystick (lower-left). Only on touch screens, hidden while the chat is open. */
#joyZone { display: none; }
@media (hover: none) and (pointer: coarse) {
  body.ingame #joyZone { display: block; position: fixed; z-index: 4; left: 0; bottom: 0; width: 42vw; height: 58vh; touch-action: none;
    padding-left: env(safe-area-inset-left); }
  body.ingame.chatopen #joyZone { display: none; }
  #joyBase { position: absolute; left: calc(22px + env(safe-area-inset-left)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 124px; height: 124px; border-radius: 50%;
    background: radial-gradient(circle, rgba(30,20,10,.25) 55%, rgba(30,20,10,.5)); border: 3px solid rgba(201,154,75,.55); opacity: .55; pointer-events: none;
    transition: opacity .15s; }
  #joyBase.on { opacity: 1; bottom: auto; }
  #joyKnob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe08f, #c99a4b 60%, #7a5a2e); border: 2px solid #3a2412; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
  /* chat bubble moves up, out of the joystick's way */
  #chatOpen { bottom: calc(168px + env(safe-area-inset-bottom)); }
}
@media (hover: none) and (pointer: coarse) and (max-height: 520px) {
  #joyBase { width: 112px; height: 112px; }
  #chatOpen { bottom: auto; top: 128px; width: 42px; height: 42px; font-size: 18px; }
}

/* v0.13 ranking notice board: solid wood, pinned paper */
#svc.board { background: #6b4423; background-image: repeating-linear-gradient(0deg, #6b4423 0 22px, #5a381c 22px 24px), linear-gradient(#6b4423, #6b4423);
  border: 6px solid #3b2412; border-top-width: 14px; box-shadow: 0 0 0 2px #1e1209, 0 20px 50px rgba(0,0,0,.7); border-radius: 6px; width: min(560px, 96vw); }
#svc.board .whead { border-bottom: 0; justify-content: center; position: relative; }
#svc.board .whead > b { background: #f2c94c; color: #3b2412; padding: 2px 14px; border: 2px solid #3b2412; border-radius: 3px; box-shadow: 0 2px 0 #3b2412; }
#svc.board .whead .x { position: absolute; right: 0; top: 0; }
#svc.board .whead > span { display: none; }
.nb-podium { display: flex; gap: 10px; justify-content: center; align-items: flex-end; margin: 4px 0 12px; }
.nb-card, .nb-sheet { position: relative; background: #efe3c2; color: #3b2a1a; border-radius: 2px; box-shadow: 2px 3px 0 rgba(30,18,9,.55); }
.nb-card { flex: 1; max-width: 160px; text-align: center; padding: 14px 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.nb-card b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-card span { font-size: 12px; color: #6b5233; }
.nb-med { font-size: 26px; line-height: 1; }
.nb-p1 { order: 2; padding-top: 20px; transform: rotate(-1deg); background: #fff4cf; }
.nb-p2 { order: 1; transform: rotate(1.5deg); }
.nb-p3 { order: 3; transform: rotate(-2deg); }
.nb-card .pin, .nb-sheet .pin { position: absolute; top: 4px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #d9443b; box-shadow: inset -2px -2px 0 #8e2620; }
.nb-p2 .pin { background: #4a8fe0; box-shadow: inset -2px -2px 0 #22579a; } .nb-p3 .pin { background: #5fbf5f; box-shadow: inset -2px -2px 0 #2f7a2f; }
.nb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-sheet { padding: 16px 10px 8px; transform: rotate(.4deg); }
.nb-sheet + .nb-sheet { transform: rotate(-.6deg); }
.nb-h { display: block; text-align: center; color: #3b2412; font-size: 14px; border-bottom: 1px dashed #b49a6a; padding-bottom: 4px; margin-bottom: 4px; }
.nb-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px; font-size: 13px; padding: 2px 0; border-bottom: 1px dotted #d4c29a; }
.nb-row em { font-style: normal; color: #8a6d45; } .nb-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nb-row small { color: #6b5233; }
@media (max-width: 520px) { .nb-cols { grid-template-columns: 1fr; } }

/* v0.13 account recovery */
.linkbtn { background: none !important; border: 0 !important; box-shadow: none !important; color: #ffd76a; text-decoration: underline; padding: 4px; margin-top: 6px; font-size: 13px; cursor: pointer; }
#lrec .hint, #rcw p, #accw .hint { font-size: 13px; color: #e8d8b8; line-height: 1.45; }
#lrec .small { font-size: 12px; opacity: .8; }
#rcw, #accw { width: min(420px, 94vw); z-index: 40; }
#rcw { z-index: 60; }
.rccode { font: 700 24px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 2px; text-align: center; background: #f3e6c4; color: #2a1d12; border-radius: 6px; padding: 12px 6px; margin: 10px 0; user-select: all; -webkit-user-select: all; }
.rcchk { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
#rcw .row, #accw > button { margin-top: 6px; }
#accw input { display: block; width: 100%; box-sizing: border-box; margin: 6px 0; }
#accw .sub { display: block; margin-top: 10px; }
.rcchk input { width: auto; margin: 0; }

/* v0.13 events, world boss, dungeons */
#evbar { top: 80px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw; pointer-events: none; }
#evbar > span { pointer-events: auto; background: rgba(30,20,10,.86); border: 1px solid #c99a4b; border-radius: 12px; padding: 2px 10px; font-size: 12px; color: #ffe9b0; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
#evbar > span.hot { border-color: #ff8a4a; color: #fff; background: rgba(120,40,10,.9); }
#evbar button { padding: 1px 8px; font-size: 12px; border-radius: 9px; }
#bossbar { top: 108px; width: min(420px, 70vw); text-align: center; background: rgba(30,10,10,.85); border: 2px solid #ff6a3a; border-radius: 8px; padding: 4px 8px 6px; }
#bossbar b { color: #ffb08a; font-size: 13px; }
#bossbar .bar { height: 12px; margin-top: 3px; }
#bossbar .bar span { line-height: 12px; }
#dgw { width: min(560px, 96vw); }
.dgrow { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px; margin: 6px 0; background: rgba(0,0,0,.25); border: 1px solid #6a4a24; border-radius: 8px; }
.dgrow.lock { opacity: .5; }
.dgrow canvas { width: 54px; height: 54px; image-rendering: pixelated; background: rgba(0,0,0,.3); border-radius: 6px; }
.dgrow b { color: #ffd76a; display: block; }
.dgrow small { color: #d8c49a; }
@media (hover: none) and (pointer: coarse) {
  #evbar { top: 34px; max-width: 46vw; }
  #evbar > span { font-size: 11px; padding: 1px 8px; }
  #bossbar { top: 58px; width: min(360px, 46vw); padding: 2px 6px 4px; }
}
@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  #evbar { top: 118px; max-width: 92vw; }
  #bossbar { top: 146px; width: 80vw; }
}

/* v0.13 new-player tutorial */
#tut { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: 150px; width: min(380px, 90vw); background: rgba(30,20,10,.94);
  border: 2px solid #ffd76a; border-radius: 10px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#tut .tuth { display: flex; justify-content: space-between; align-items: baseline; }
#tut .tuth b { color: #ffd76a; } #tut .tuth span { font-size: 12px; color: #d8c49a; }
#tut p { margin: 4px 0 6px; font-size: 13px; line-height: 1.4; }
#tut .row { justify-content: flex-end; margin-top: 0; }
#tut.ok { border-color: #8fe07a; }
.tutpulse { animation: tutpulse 1.1s ease-in-out infinite; }
@keyframes tutpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,106,.9); } 50% { box-shadow: 0 0 0 7px rgba(255,215,106,0); } }
@media (prefers-reduced-motion: reduce) { .tutpulse { animation: none; outline: 3px solid #ffd76a; } }
@media (hover: none) and (pointer: coarse) {
  /* phones: low and left of centre, under the character's feet, clear of the menu buttons; touches pass through to the joystick */
  #tut { left: 140px; transform: none; bottom: 84px; width: min(320px, 40vw); padding: 6px 10px; pointer-events: none; }
  #tut button { pointer-events: auto; }
  #tut p { font-size: 12px; margin: 2px 0 4px; }
}
@media (hover: none) and (pointer: coarse) and (orientation: portrait) { #tut { left: 6vw; top: auto; bottom: 260px; width: 88vw; } }

/* v0.16 titles, guild boost */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; }
.tchip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 6px 8px; font-weight: 400; }
.tchip b { font-size: 13px; } .tchip small { font-size: 11px; color: #d8c49a; line-height: 1.3; }
.tchip.on { border-color: #ffd76a; box-shadow: 0 0 0 1px #ffd76a inset; }
.tchip.lock { opacity: .55; cursor: default; } .tchip.lock b { color: #9a8a6a; }
.gboost { margin-top: 12px; padding: 8px 10px; background: rgba(0,0,0,.25); border: 1px solid #7a5a2e; border-radius: 8px; }
.gboost > b { color: #ffd76a; }
.gbrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.gbtier { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; padding: 6px; background: rgba(0,0,0,.25); border-radius: 6px; }
.gbtier > b { font-size: 18px; color: #ffe27a; } .gbtier small { font-size: 11px; color: #d8c49a; }
.gbtier button { padding: 4px 6px; font-size: 12px; }

/* v0.18 report */
#repw { width: min(440px, 94vw); z-index: 40; }
.repr { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.repr button.on { border-color: #ffd76a; background: #6b4a1e; }
#repw input { display: block; width: 100%; box-sizing: border-box; }

/* v0.18 gem exchange */
#gxw { width: min(560px, 96vw); max-height: 88vh; overflow: auto; z-index: 38; }
.gxtop { font-size: 13px; margin: 4px 0 8px; }
.gxbook { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gxrow { padding: 3px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.gxrow.sell { color: #ff9c8a; } .gxrow.buy { color: #8aff9c; } .gxrow:hover { background: rgba(255,255,255,.06); }
.gxform { margin: 10px 0; display: grid; gap: 6px; }
.gxform label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gxform input { width: 140px; }
[data-gxside].on { border-color: #ffd76a; background: #6b4a1e; }
#bagX { margin-left: 6px; padding: 0 6px; }

/* v0.18 auto hunt + AFK */
#btnAuto { position: fixed; z-index: 6; bottom: 136px; right: calc(18px + env(safe-area-inset-right)); width: 56px; height: 46px; border-radius: 10px; padding: 0; line-height: 1;
  background: rgba(40,30,18,.9); border: 2px solid #8a6a3a; color: #d8c8a8; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#btnAuto b { font-size: 12px; letter-spacing: .5px; } #btnAuto small { font-size: 10px; opacity: .8; margin-top: 2px; }
#btnAuto.on { border-color: #7dff8a; color: #c8ffd0; box-shadow: 0 0 10px rgba(125,255,138,.55); animation: autoPulse 1.6s ease-in-out infinite; }
@keyframes autoPulse { 50% { box-shadow: 0 0 2px rgba(125,255,138,.2); } }
@media (prefers-reduced-motion: reduce) { #btnAuto.on { animation: none; } }
#afkw { width: min(400px, 94vw); z-index: 41; }
.afkres { display: grid; gap: 4px; margin: 8px 0; font-size: 14px; }
.afkit { display: flex; align-items: center; gap: 6px; } .afkit img { width: 24px; height: 24px; }
@media (hover: none) and (pointer: coarse) {
  #btnAuto { right: calc(14px + env(safe-area-inset-right)); bottom: calc(210px + env(safe-area-inset-bottom)); width: 52px; height: 42px; }
}

/* v0.19 PvP + crafting */
#pvpbar { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); z-index: 7; background: rgba(60,14,10,.88); border: 2px solid #c9433a; border-radius: 10px; padding: 5px 12px; color: #ffd9d0; display: flex; gap: 8px; align-items: center; font-size: 14px; }
#pvpTime { font-variant-numeric: tabular-nums; }
#pvpBig { position: fixed; top: 32%; left: 50%; transform: translate(-50%, -50%); z-index: 8; font: 900 54px/1 system-ui, sans-serif; letter-spacing: 2px; pointer-events: none;
  text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,.7); animation: bigPop .35s ease-out; }
@keyframes bigPop { from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #pvpBig { animation: none; } }
#pvpw { width: min(480px, 95vw); max-height: 86vh; overflow: auto; z-index: 38; }
.pvpme { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0; } .pvpme b { color: #ffd76a; }
.pvptop { display: grid; gap: 2px; margin: 6px 0 10px; }
.pvprow { display: grid; grid-template-columns: 34px 1fr 52px 50px; gap: 6px; font-size: 13px; padding: 3px 4px; border-radius: 4px; }
.pvprow:nth-child(odd) { background: rgba(255,255,255,.04); } .pvprow b { color: #ffd76a; text-align: right; } .pvprow small { opacity: .7; text-align: right; }
.pvpwar { padding: 6px 8px; margin: 4px 0; border-radius: 6px; background: rgba(255,255,255,.05); } .pvpwar.on { background: rgba(200,60,50,.22); border: 1px solid #c9433a; }
.tabs { display: flex; gap: 4px; margin: 4px 0 8px; } .tabs button.on { border-color: #ffd76a; background: #6b4a1e; }
.cflt { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .cflt button.on { border-color: #ffd76a; background: #6b4a1e; }
.clist { max-height: 190px; overflow: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.clist .srow { cursor: pointer; } .clist .srow.on { background: rgba(255,215,106,.15); } .clist .srow small { margin-left: auto; opacity: .7; }
.cdet { margin-top: 8px; padding: 8px; border: 1px solid rgba(201,154,75,.4); border-radius: 8px; display: grid; gap: 4px; }
.codds { display: flex; gap: 10px; font-size: 13px; }

/* v0.20 season pass */
#btnSeason img { image-rendering: pixelated; vertical-align: middle; }
#seasonw { width: min(760px, 96vw); max-height: 90vh; overflow: auto; z-index: 38; border-color: #7d4fd0;
  background: linear-gradient(180deg, rgba(46,24,78,.97), rgba(26,16,36,.97)); }
#seasonw .whead b { color: #d6b8ff; } #ssLeft { margin-left: 10px; font-size: 13px; color: #9fe8ff; }
.sshead { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.sstier { display: grid; grid-template-columns: auto 180px auto; gap: 8px; align-items: center; }
.sstier b { color: #ffd76a; }
.ssbar { height: 8px; background: rgba(0,0,0,.45); border-radius: 4px; overflow: hidden; border: 1px solid rgba(155,92,255,.5); }
.ssbar i { display: block; height: 100%; background: linear-gradient(90deg, #9b5cff, #7fd6ff); }
.ssbuy { display: flex; gap: 6px; flex-wrap: wrap; } #ssPrem.owned { background: #3d2a5c; color: #c99bff; }
.sstrack { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.sslab { display: grid; grid-template-rows: 18px 54px 54px; gap: 4px; position: sticky; left: 0; z-index: 1; background: rgba(36,20,56,.98); padding-right: 4px; font-size: 11px; }
.sslab span { align-self: center; color: #cbb8e8; } .sslab span:first-child { grid-row: 2; } .sslab span.p { grid-row: 3; color: #ffd76a; }
.sscol { display: grid; grid-template-rows: 18px 54px 54px; gap: 4px; scroll-snap-align: start; }
.sscol > b { text-align: center; font-size: 11px; color: #8d7aa8; } .sscol.got > b { color: #9fe8ff; } .sscol.next > b { color: #ffd76a; }
.sscell { position: relative; width: 54px; height: 54px; padding: 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3); display: grid; place-items: center; }
.sscell img { width: 30px; height: 30px; image-rendering: pixelated; }
.sscell.big img { width: 40px; height: 40px; }
.sscell.prem { border-color: rgba(255,215,106,.35); background: rgba(80,50,10,.25); }
.sscell.locked img { opacity: .45; filter: grayscale(.4); }
.sscell.ready { border-color: #7dff8a; box-shadow: 0 0 8px rgba(125,255,138,.5); }
.sscell.done { opacity: .55; }
.sscell small { position: absolute; right: 3px; bottom: 1px; font-size: 10px; color: #fff; text-shadow: 0 1px 0 #000; }
.sscell i { position: absolute; left: 3px; top: 1px; font-style: normal; font-size: 11px; }
.ssmis { display: grid; grid-template-columns: 1fr 140px 90px; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.ssmis small { text-align: right; opacity: .8; } .ssmis.done span { color: #7dff8a; }
.sscos { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sscos img { width: 40px; height: 40px; image-rendering: pixelated; } .sscos.off img { opacity: .4; filter: grayscale(.6); } .sscos small { color: #ffd76a; }
@media (max-width: 600px) { .sstier { grid-template-columns: auto 110px auto; } .ssmis { grid-template-columns: 1fr 70px 70px; font-size: 13px; } }

/* v0.20.1 redeem code */
#codew { width: min(420px, 94vw); z-index: 40; } #codeIn { text-transform: uppercase; letter-spacing: 1px; flex: 1; } #codew .row { display: flex; gap: 8px; }
