:root{
  --bg:#0b0f14;
  --panel:#121a24;
  --panel2:#0f141c;
  --text:#d6e2f2;
  --muted:#93a3bd;
  --accent:#9bd3ff;
  --bad:#ff9b9b;
  --good:#b7ffb0;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);font-family:system-ui,Segoe UI,Arial}
a{color:var(--accent);text-decoration:none}
.wrap{min-height:100%;display:grid;place-items:center;padding:24px}

.card{
  width:min(1160px,100%);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.55);
  overflow:hidden;
}

.header{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;align-items:baseline;justify-content:space-between;gap:12px
}
.header h1{margin:0;font-size:16px;letter-spacing:.4px}
.header .hint{color:var(--muted);font-size:12px}
.versionLabel{
  display:inline-block;
  margin-left:8px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color:var(--accent);
  font-size:11px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.versionLabel:hover,
.versionLabel:focus-visible{
  border-color:rgba(155,211,255,.62);
  background:rgba(155,211,255,.12);
  color:#d7efff;
  outline:none;
}

.grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  min-height: 680px;
}

.side{padding:18px;border-right:1px solid rgba(255,255,255,.08)}
.main{padding:18px;position:relative}
.loginLogoWrap{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}
#loginLogo{
  max-width:600px;
  width:92%;
  height:auto;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.30));
}

label{display:block;font-size:12px;color:var(--muted);margin-top:10px}
input{
  width:100%;padding:10px 12px;margin-top:6px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;color:var(--text);outline:none
}
input:focus{border-color:rgba(155,211,255,.55)}

.row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
button{
  padding:10px 12px;border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(155,211,255,.10);
  color:var(--text);cursor:pointer
}
button:hover{border-color:rgba(155,211,255,.55)}
button.ghost{background:transparent}
.smallbtn{padding:8px 10px;font-size:12px}
button.danger{
  border-color:rgba(255,120,120,.48);
  background:rgba(255,90,90,.14);
}
button.ghost.danger{
  border-color:rgba(255,120,120,.45);
  background:transparent;
}
button.danger:hover,
button.ghost.danger:hover{
  border-color:rgba(255,120,120,.72);
}

.msg{margin-top:10px;font-size:13px;color:var(--muted);min-height:18px}
.msg.bad{color:var(--bad)}
.msg.good{color:var(--good)}

.toplistCard{
  width:min(980px,100%);
}
.toplistControls{
  margin-bottom:10px;
}
.toplistControlRow{
  align-items:center;
  gap:8px;
}
.toplistControlRow label{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.toplistSelect{
  min-width:220px;
  padding:9px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.24);
  color:var(--text);
}
.toplistTableWrap{
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  overflow:auto;
  background:rgba(0,0,0,.16);
}
.toplistTable{
  width:100%;
  border-collapse:collapse;
  min-width:560px;
}
.toplistTable thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.toplistTable tbody td{
  padding:10px 12px;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.toplistTable tbody tr:last-child td{
  border-bottom:none;
}

.gameShell{
  display:grid;
  grid-template-columns: 1fr 330px;
  gap: 14px;
  align-items: start;
}
.gameMainColumn{
  position:relative;
}
.gamePanelColumn{
  position:relative;
}
body.fullscreenMode .wrap{
  padding:0;
  place-items:stretch;
}
body.fullscreenMode #gameCard.card{
  width:100%;
  max-width:none;
  min-height:100vh;
  border-radius:0;
  border:0;
  box-shadow:none;
}
body.fullscreenMode .main{
  padding:10px;
}
body.fullscreenMode .gameShell{
  grid-template-columns:1fr;
  gap:0;
}
body.fullscreenMode #gamePanelColumn{
  display:none;
}
body.fullscreenMode .gameMainColumn > .chat{
  display:none;
}
body.fullscreenMode canvas#game{
  height:calc(100vh - 170px);
  min-height:440px;
}
body.fullscreenMode #cornerLogoWrap{
  display:none;
}
body.fullscreenMode.fullscreenPanelOpen #gamePanelColumn{
  display:block;
  position:absolute;
  right:12px;
  top:12px;
  width:min(392px, 42vw);
  z-index:36;
}
body.fullscreenMode.fullscreenPanelOpen #gamePanelColumn .panel{
  max-height:calc(100vh - 100px);
  display:flex;
  flex-direction:column;
  box-shadow:0 18px 40px rgba(0,0,0,.56);
  border-color:rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(16,24,34,.97), rgba(10,14,22,.97));
}
body.fullscreenMode.fullscreenPanelOpen #gamePanelColumn .panelBody{
  min-height:0;
  max-height:calc(100vh - 160px);
  overflow:auto;
}
body.fullscreenMode.fullscreenPanelOpen .journalScrollArea{
  max-height:calc(100vh - 340px);
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock{
  display:block;
  position:absolute;
  left:12px;
  bottom:12px;
  width:min(400px, 42vw);
  min-width:320px;
  margin-top:0;
  z-index:35;
  box-shadow:0 16px 36px rgba(0,0,0,.54);
  border-color:rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(16,24,34,.97), rgba(10,14,22,.97));
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock .chatTabs{
  padding:6px 8px;
  gap:5px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock .chatTab{
  padding:5px 8px;
  font-size:11px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock .chatFriendTarget{
  font-size:11px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock .chatLog{
  height:min(24vh, 190px);
  padding:8px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock .chatInputRow{
  padding:8px;
  gap:6px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock #chatInput{
  font-size:12px;
  padding:8px 10px;
}
body.fullscreenMode .playArea > .chat.fullscreenChatDock #chatSend{
  padding:7px 9px;
  font-size:12px;
}
body.fullscreenMode #fsChatBtn{
  display:none !important;
}
body.fullscreenMode #fullscreenBtn.active{
  border-color:rgba(155,211,255,.65);
  background:rgba(155,211,255,.16);
  color:#e5f4ff;
}
body.lobbyMode .gameShell{
  grid-template-columns: 1fr;
  gap: 0;
}
body.lobbyMode .gameShell > div:first-child{
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
body.lobbyMode .header,
body.lobbyMode .hudRow,
body.lobbyMode .chat,
body.lobbyMode .panel,
body.lobbyMode .playHudCluster,
body.lobbyMode .minimapWrap,
body.lobbyMode #cornerLogoWrap,
body.lobbyMode .hudBtnStack,
body.lobbyMode .hotbarWrap,
body.lobbyMode .hpHud,
body.lobbyMode .networkHud,
body.lobbyMode .debuffTopBar{
  display:none !important;
}
body.lobbyMode .main{
  padding:12px;
}
#cornerLogoWrap{
  position:absolute;
  right:14px;
  bottom:12px;
  pointer-events:none;
  z-index:40;
}
#cornerLogo{
  width:220px;
  max-width:24vw;
  height:auto;
  opacity:.88;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.35));
}

canvas#game{
  width:100%;
  height: 610px;
  background:#05070a;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  image-rendering: pixelated;
}
.playArea{
  position:relative;
  overflow:visible;
}
.fullscreenQuickDock{
  position:absolute;
  left:12px;
  top:84px;
  z-index:12;
  display:none;
  align-items:center;
  gap:6px;
  padding:6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.20);
  background:linear-gradient(180deg, rgba(16,22,30,.92), rgba(10,14,22,.92));
  box-shadow:0 10px 24px rgba(0,0,0,.42);
}
body.fullscreenMode .fullscreenQuickDock{
  display:flex;
}
.fullscreenQuickBtn{
  width:32px;
  height:32px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-size:12px;
  font-weight:700;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.fullscreenQuickBtn.active{
  border-color:rgba(155,211,255,.70);
  background:rgba(155,211,255,.18);
  color:#dff2ff;
}
.loadingOverlay{
  position:absolute;
  inset:0;
  z-index:15;
  display:grid;
  place-items:center;
  padding:18px;
  background:linear-gradient(180deg, rgba(6,10,14,0.90), rgba(6,10,14,0.82));
  backdrop-filter: blur(2px);
  opacity:1;
  visibility:visible;
  transition:opacity 260ms ease, visibility 260ms ease;
}
.loadingOverlay.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.loadingCard{
  width:min(420px, 90%);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(18,26,36,.97), rgba(15,20,28,.97));
  box-shadow:0 18px 48px rgba(0,0,0,.62);
  padding:16px 16px 14px;
}
#loadingLogo{
  display:block;
  margin:0 auto 14px auto;
  max-width:480px;
  width:80%;
  height:auto;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.loadingTitle{
  font-size:16px;
  font-weight:800;
  letter-spacing:.4px;
  color:var(--text);
}
.loadingStatus{
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  min-height:18px;
}
.loadingBar{
  margin-top:12px;
  width:100%;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.35);
  overflow:hidden;
}
.loadingBarFill{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(88,164,232,.92), rgba(155,211,255,.98));
  box-shadow:0 0 12px rgba(104,184,255,.42);
  transition:width 180ms ease;
}
.loadingHint{
  margin-top:10px;
  font-size:12px;
  color:rgba(194,206,224,.86);
}
.hpHud{
  position:absolute;
  top:12px;
  left:12px;
  z-index:7;
  width:70px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(180deg, rgba(18,26,36,.96), rgba(15,20,28,.96));
  box-shadow:0 6px 16px rgba(0,0,0,.45);
  padding:6px 6px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  pointer-events:none;
}
.hpHud img{
  width:24px;
  height:24px;
  object-fit:contain;
  image-rendering:pixelated;
}
.hpHudText{
  font-size:13px;
  font-weight:800;
  line-height:1;
  color:rgba(220,60,60,0.98);
  text-shadow:0 1px 0 rgba(0,0,0,.65);
}
.networkHud{
  position:absolute;
  top:92px;
  left:12px;
  z-index:7;
  min-width:190px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(18,26,36,.94), rgba(15,20,28,.94));
  box-shadow:0 6px 16px rgba(0,0,0,.40);
  color:var(--text);
  pointer-events:none;
  font-size:11px;
}
.networkHud.hidden{
  display:none !important;
}
.networkHudTitle{
  font-size:10px;
  font-weight:800;
  letter-spacing:.8px;
  color:var(--muted);
  margin-bottom:5px;
}
.networkHudBody{
  display:grid;
  grid-template-columns:auto auto;
  gap:3px 10px;
}
.networkHudBody .netLabel{
  color:var(--muted);
}
.networkHudBody .netValue{
  text-align:right;
  font-weight:700;
}
.networkHudBody .netGood{
  color:#caffd8;
}
.networkHudBody .netWarn{
  color:#ffe0a8;
}
.networkHudBody .netBad{
  color:#ffc1c1;
}
body.fullscreenMode .networkHud{
  top:134px;
}
.weatherHud{
  position:absolute;
  top:92px;
  left:214px;
  z-index:7;
  min-width:132px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(188,220,255,.22);
  background:linear-gradient(180deg, rgba(18,25,34,.92), rgba(12,17,24,.92));
  box-shadow:0 6px 16px rgba(0,0,0,.34);
  color:var(--text);
  pointer-events:none;
  font-size:11px;
}
.weatherHud.hidden{
  display:none !important;
}
.weatherHudTitle{
  font-size:13px;
  font-weight:850;
  color:rgba(232,242,255,.96);
  line-height:1.1;
}
.weatherHudMeta{
  margin-top:3px;
  color:var(--muted);
  font-weight:700;
}
.weatherHudTimer{
  margin-top:2px;
  color:#bfe0ff;
  font-weight:900;
}
body.fullscreenMode .weatherHud{
  top:134px;
  left:214px;
}
.debuffTopBar{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:9;
  pointer-events:none;
  max-width:min(72vw, 560px);
}
.debuffTopList{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
}
.debuffTopEntry{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(16,22,30,.92), rgba(11,15,22,.92));
  box-shadow:0 4px 12px rgba(0,0,0,.38);
  padding:4px 8px;
  min-height:24px;
  white-space:nowrap;
}
.debuffTopIcon{
  width:14px;
  height:14px;
  object-fit:contain;
  image-rendering:pixelated;
}
.debuffTopName{
  font-size:12px;
  font-weight:700;
  color:rgba(226,236,250,.95);
}
.debuffTopTime{
  font-size:12px;
  font-weight:800;
  color:rgba(255,188,123,.98);
}
.playHudCluster{
  position:absolute;
  top:12px;
  right:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
  z-index:10;
  pointer-events:none;
}
.playHudCluster > *{
  pointer-events:auto;
}
.hudBtnStack{
  position:static;
  display:flex;
  flex-direction:row;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.playHudCluster .hudPanel{
  align-self:flex-end;
}
.hotbarWrap{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:8;
  pointer-events:auto;
}
.hotbarSlots{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:8px;
  padding:6px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(10,14,20,.84), rgba(8,11,16,.84));
  box-shadow:0 8px 18px rgba(0,0,0,.40);
}
.hotbarSlot{
  position:relative;
  width:58px;
  height:58px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  overflow:hidden;
}
.hotbarSlot:hover{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.hotbarSlot.bindActive{
  border-color:rgba(255,217,130,.72);
  box-shadow:0 0 0 1px rgba(255,217,130,.25) inset;
}
.hotbarSlot.spellSelected{
  border-color:rgba(155,211,255,.72);
  box-shadow:0 0 0 1px rgba(155,211,255,.28) inset;
}
.hotbarSlot.empty{
  opacity:.8;
}
.hotbarSlotIcon{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:34px;
  height:34px;
  object-fit:contain;
  image-rendering:pixelated;
  pointer-events:none;
}
.hotbarSlotHint{
  position:absolute;
  top:3px;
  left:4px;
  font-size:10px;
  font-weight:700;
  color:rgba(236,242,255,.92);
  text-shadow:0 1px 2px rgba(0,0,0,.8);
  pointer-events:none;
}
.hotbarSlotQty{
  position:absolute;
  right:4px;
  bottom:3px;
  font-size:10px;
  font-weight:700;
  color:rgba(255,255,255,.96);
  text-shadow:0 1px 2px rgba(0,0,0,.82);
  pointer-events:none;
}
.hotbarSlotLabel{
  position:absolute;
  left:5px;
  bottom:3px;
  font-size:9px;
  font-weight:600;
  color:rgba(201,211,228,.90);
  pointer-events:none;
}
.hotbarCooldown{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(180deg, rgba(10,14,22,.08), rgba(10,14,22,.70));
  transform-origin:bottom center;
  transform:scaleY(var(--cd-scale, 0));
  opacity:0;
  transition:transform 90ms linear, opacity 110ms ease;
  pointer-events:none;
}
.hotbarSlot.cooldown .hotbarCooldown{
  opacity:1;
}
.hotbarHelp{
  margin-top:4px;
  text-align:center;
  font-size:10px;
  color:rgba(198,208,224,.82);
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}
#magicHudBtn{
  width:42px;
  height:42px;
}
#magicHudPanel{
  width:min(360px, calc(100vw - 48px));
  max-height:min(64vh, 420px);
  background-image:
    linear-gradient(180deg, rgba(18,13,7,.58), rgba(11,8,5,.66)),
    url("/static/assets/ui/dialog/spellbook_parchment_bg.png");
  background-size:cover, cover;
  background-position:center;
  background-repeat:no-repeat;
}
.magicSpellbookBody{
  margin-top:8px;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(56,36,20,.45);
  background:rgba(0,0,0,.34);
}
.magicSpellGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.magicSpellCategorySection{
  margin-bottom:12px;
}
.magicSpellCategoryTitle{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#d9c7a4;
  margin-bottom:6px;
}
.magicSpellCard{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  padding:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
  cursor:pointer;
}
.magicSpellCard:hover{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.magicSpellCard.selected{
  border-color:rgba(155,211,255,.75);
  box-shadow:0 0 0 1px rgba(155,211,255,.35) inset;
  background:rgba(155,211,255,.14);
}
.magicSpellIcon{
  width:38px;
  height:38px;
  object-fit:contain;
  image-rendering:pixelated;
}
.magicSpellDetails{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(0,0,0,.30);
  padding:8px;
}
.magicSpellDetailsTitle{
  font-size:13px;
  font-weight:700;
  color:#fff;
}
.magicSpellDetailsDesc{
  margin-top:3px;
  font-size:12px;
  color:rgba(255,255,255,.84);
}
.magicSpellDetailsMeta{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px 10px;
}
.magicSpellDetailsMetaRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  color:var(--muted);
}
.magicSpellDetailsMetaRow b{
  color:#fff;
  font-size:11px;
  font-weight:700;
}
.hudIconBtn{
  position:relative;
  width:42px;
  height:42px;
  padding:0;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(180deg, rgba(18,26,36,.96), rgba(15,20,28,.96));
  display:flex;
  align-items:center;
  justify-content:center;
}
.hudIconBtn.cooldown::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(10,14,22,.08), rgba(10,14,22,.66));
  transform-origin:bottom center;
  transform:scaleY(var(--cd-scale, 0));
  transition:transform 90ms linear;
  pointer-events:none;
}
.hudIconBtn img{
  width:24px;
  height:24px;
  image-rendering:pixelated;
  object-fit:contain;
  pointer-events:none;
}
.hudIconBtn.active{
  border-color:rgba(155,211,255,.65);
  box-shadow:0 0 0 1px rgba(155,211,255,.25) inset;
}
.hudPanel{
  width:min(360px, calc(100vw - 48px));
  max-height:min(72vh, 500px);
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(18,26,36,.98), rgba(15,20,28,.98));
  box-shadow:0 14px 34px rgba(0,0,0,.55);
  padding:10px;
}
.hudPanelHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.gearSlots{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.gearSlot{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  min-height:112px;
  padding:10px 8px 9px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  cursor:default;
}
.gearSlot.filled{
  cursor:pointer;
}
.gearSlot.filled:hover{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.gearSlotLabel{
  font-size:11px;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--muted);
}
.gearSlotImg{
  width:46px;
  height:46px;
  object-fit:contain;
  image-rendering:pixelated;
}
.gearSlotName{
  font-size:12px;
  color:var(--text);
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.skillsHudGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.skillHudCard{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  min-height:116px;
  padding:10px 8px 9px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  text-align:center;
}
.skillHudCardBtn{
  width:100%;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.skillHudCardBtn:focus-visible{
  outline:2px solid rgba(155,211,255,.72);
  outline-offset:2px;
}
.skillHudCard:hover{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.skillHudIcon{
  width:44px;
  height:44px;
  object-fit:contain;
  image-rendering:pixelated;
}
.skillHudName{
  font-size:12px;
  font-weight:700;
  color:var(--text);
}
.skillHudLvl{
  font-size:12px;
  color:var(--muted);
}
.skillHudCardHint{
  margin-top:2px;
  font-size:11px;
  color:rgba(188,208,232,.9);
}
.skillHudHint{
  margin-top:6px;
  margin-bottom:10px;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(0,0,0,.16);
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.skillMasteryBlock{
  margin-top:10px;
  margin-bottom:10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:8px;
  background:rgba(4,10,17,.24);
  padding:10px;
}
.skillMasteryHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.skillMasteryStatus{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}
.skillMasteryLegend{
  flex:0 0 auto;
  border:1px solid rgba(255,210,86,.46);
  border-radius:999px;
  padding:3px 8px;
  background:rgba(255,210,86,.13);
  color:#ffd96e;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.skillMasteryPerks{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.skillMasteryPerk{
  width:100%;
  min-height:62px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  color:var(--text);
  font:inherit;
  text-align:left;
  padding:8px 10px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  grid-template-areas:"name state" "desc state";
  gap:3px 10px;
  cursor:pointer;
}
.skillMasteryPerk:hover:not(:disabled){
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.skillMasteryPerk:disabled{
  cursor:default;
  opacity:.74;
}
.skillMasteryPerk.unlocked{
  border-color:rgba(116,204,135,.45);
  background:rgba(43,92,58,.28);
  opacity:1;
}
.skillMasteryPerkName{
  grid-area:name;
  font-size:12px;
  font-weight:800;
}
.skillMasteryPerkDesc{
  grid-area:desc;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
}
.skillMasteryPerkState{
  grid-area:state;
  align-self:center;
  justify-self:end;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:2px 7px;
  color:rgba(213,228,245,.92);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.skillMasteryPerk.unlocked .skillMasteryPerkState{
  border-color:rgba(116,204,135,.45);
  color:#9be4a9;
  background:rgba(116,204,135,.14);
}
.skillHudDetailHero{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
}
.skillHudDetailList{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.skillProgressList{
  margin-top:2px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.skillProgressGroup{
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  padding:10px;
}
.skillProgressGroup.unlocked{
  border-color:rgba(116,204,135,.35);
  background:linear-gradient(180deg, rgba(26,46,35,.34), rgba(16,28,22,.26));
}
.skillProgressGroup.locked{
  border-color:rgba(230,124,124,.30);
  background:linear-gradient(180deg, rgba(52,28,28,.30), rgba(24,18,18,.24));
}
.skillProgressLevel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.skillProgressLevelText{
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
}
.skillProgressLevel.unlocked .skillProgressLevelText{
  color:#9be4a9;
}
.skillProgressLevel.locked .skillProgressLevelText{
  color:#efabab;
}
.skillProgressLevelState{
  padding:2px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.skillProgressLevelState.unlocked{
  background:rgba(116,204,135,.18);
  color:#8dde9a;
  border:1px solid rgba(116,204,135,.42);
}
.skillProgressLevelState.locked{
  background:rgba(230,124,124,.15);
  color:#f1a2a2;
  border:1px solid rgba(230,124,124,.35);
}
.skillProgressEntries{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.skillProgressEntry{
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:rgba(5,10,16,.28);
  padding:8px 9px;
}
.skillProgressEntryMain{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.skillProgressType{
  display:inline-flex;
  align-items:center;
  padding:2px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(126,198,255,.16);
  color:#8ed2ff;
}
.skillProgressType-spell{
  background:rgba(144,160,255,.18);
  color:#b7c2ff;
  border-color:rgba(144,160,255,.42);
}
.skillProgressType-tool{
  background:rgba(123,211,178,.18);
  color:#95e0c1;
  border-color:rgba(123,211,178,.42);
}
.skillProgressType-recipe{
  background:rgba(255,202,128,.18);
  color:#ffd79a;
  border-color:rgba(255,202,128,.42);
}
.skillProgressType-quest{
  background:rgba(244,168,118,.20);
  color:#ffc59e;
  border-color:rgba(244,168,118,.40);
}
.skillProgressType-resource{
  background:rgba(135,196,255,.18);
  color:#a7d4ff;
  border-color:rgba(135,196,255,.40);
}
.skillProgressType-crafting{
  background:rgba(188,174,255,.18);
  color:#d0c6ff;
  border-color:rgba(188,174,255,.40);
}
.skillProgressType-generic{
  background:rgba(255,255,255,.12);
  color:#d9e2ef;
  border-color:rgba(255,255,255,.25);
}
.skillProgressEntryTitle{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  line-height:1.35;
}
.skillProgressDesc{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  word-break:break-word;
}
.skillHudLevelBlock{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  padding:8px;
}
.skillHudLevelHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  font-weight:700;
  color:var(--text);
}
.skillHudLevelBadge{
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.01em;
}
.skillHudLevelBadge.unlocked{
  background:rgba(116,204,135,.18);
  color:#8dde9a;
}
.skillHudLevelBadge.locked{
  background:rgba(230,124,124,.15);
  color:#f1a2a2;
}
.skillHudUnlockList{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.skillHudUnlockRow{
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:rgba(0,0,0,.16);
  padding:7px 8px;
}
.skillHudUnlockTop{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.skillHudUnlockType{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#7ec6ff;
}
.skillHudUnlockLabel{
  font-size:12px;
  color:var(--text);
  font-weight:700;
}
.skillHudUnlockDetail{
  margin-top:3px;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}
.skillHudEmpty{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}
.hudSubsectionTitle{
  margin-top:10px;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  color:rgba(220,228,242,.94);
  letter-spacing:.01em;
}
.gearBonusBox{
  margin-top:10px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(0,0,0,.16);
}
.npcDialogOverlay{
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:12px;
  background: rgba(0,0,0,0.0);
  z-index:8;
  pointer-events:auto;
}
.npcDialogOverlay.hidden{ display:none; }
.appearanceOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.35);
  z-index:12;
}
.appearanceOverlay.hidden{
  display:none;
}
.tutorialHint{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  max-width:min(92%, 620px);
  padding:9px 12px;
  border-radius:10px;
  border:1px solid rgba(228, 205, 142, 0.48);
  background:linear-gradient(180deg, rgba(48, 34, 16, 0.88), rgba(36, 26, 14, 0.88));
  color:#f1e2bb;
  font-size:13px;
  line-height:1.35;
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,.38);
  pointer-events:none;
  z-index:9;
}
.tutorialHint.hidden{
  display:none;
}
.appearanceModal{
  width:min(820px, calc(100% - 32px));
  max-height:calc(100% - 32px);
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(18,26,36,.98), rgba(15,20,28,.98));
  box-shadow:0 18px 50px rgba(0,0,0,.62);
  padding:12px;
}
#appearanceModalBody .appearanceEditor{
  margin-top:0;
}
.hidden{ display:none !important; }
.npcDialogBox{
  margin-bottom:18px;
  width:min(720px, calc(100% - 24px));
  padding:14px 16px;
  border-radius:10px;
  background: linear-gradient(#e6d3a5, #d6bd86);
  border:2px solid #8a6a3d;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  color:#2b1c0f;
}
.npcDialogText{
  font-size:16px;
  line-height:1.35;
}
.npcDialogChoices{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.npcDialogChoices.hidden{
  display:none;
}
.npcDialogChoices .smallbtn{
  min-width:180px;
  background:#8a6a3d;
  color:#fff;
  border:0;
  padding:8px 10px;
  border-radius:8px;
}

.npcDialogChoices .smallbtn:hover{
  filter: brightness(1.06);
}
#npcDialogClose{
  margin-top:10px;
  background:#8a6a3d;
  color:#fff;
  border:0;
  padding:8px 10px;
  border-radius:8px;
}
#npcDialogClose:hover{
  filter: brightness(1.06);
}

.panel{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
  background:rgba(0,0,0,.18);
}

.panelTabs{
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:rgba(155,211,255,.36) rgba(255,255,255,.06);
  -webkit-overflow-scrolling:touch;
}
.tab{
  padding:8px 10px;border-radius:10px;font-size:12px;color:var(--muted);
  border:1px solid rgba(255,255,255,.10);cursor:pointer;user-select:none;
  flex:0 0 auto
}
.tab.active{color:var(--text);border-color:rgba(155,211,255,.55);background:rgba(155,211,255,.10)}
.panelTabsSpacer{
  flex:0 0 8px;
}
.panelTabs::-webkit-scrollbar,
.journalScrollArea::-webkit-scrollbar{
  height:8px;
  width:8px;
}
.panelTabs::-webkit-scrollbar-track,
.journalScrollArea::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.panelTabs::-webkit-scrollbar-thumb,
.journalScrollArea::-webkit-scrollbar-thumb{
  background:rgba(155,211,255,.34);
  border-radius:999px;
}
.panelTabs::-webkit-scrollbar-thumb:hover,
.journalScrollArea::-webkit-scrollbar-thumb:hover{
  background:rgba(155,211,255,.52);
}
.panelBody{padding:12px;font-size:13px;color:var(--text);min-height: 360px}
.questStatusValue{color:var(--text)}
.questStatusCompleted{color:var(--good)}
.questStatusInProgress{color:#ffbe73}
.questStatusLocked{color:var(--bad)}
.questOverviewTitle{
  color:var(--text);
  font-size:15px;
  font-weight:700;
  letter-spacing:.2px;
}
.questOverviewHeader{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  padding:9px 10px;
  margin-bottom:8px;
}
.questOverviewToolbar{
  margin-top:7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.questPointsBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(155,211,255,.38);
  border-radius:999px;
  padding:3px 9px;
  background:rgba(95,145,190,.12);
  color:var(--muted);
  font-size:11px;
}
.questPointsBadge b{
  color:var(--text);
}
.questFilterChips{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.questFilterChip{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  color:var(--muted);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease;
}
.questFilterChip:hover{
  border-color:rgba(188,223,249,.55);
  color:var(--text);
  transform:translateY(-1px);
}
.questFilterChip.active,
.questFilterChip[aria-pressed="true"]{
  border-color:rgba(155,211,255,.72);
  background:rgba(124,184,232,.16);
  color:#dff2ff;
  box-shadow:0 0 0 1px rgba(155,211,255,.20) inset;
}
.journalTabs,
.journalFilterRow{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
  min-width:0;
}
.journalView{
  min-width:0;
}
.journalScrollArea{
  max-height:360px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:3px;
  min-width:0;
  scrollbar-width:thin;
  scrollbar-color:rgba(155,211,255,.36) rgba(255,255,255,.06);
}
.journalSummaryGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:10px;
}
.journalSummaryBox{
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:8px 10px;
}
.journalSummaryBox span{
  display:block;
  color:var(--muted);
  font-size:11px;
}
.journalSummaryBox b{
  display:block;
  margin-top:2px;
  color:var(--text);
  font-size:16px;
}
.journalAchievementList,
.journalCollectionList{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.journalAchievementRow{
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:9px 10px;
  min-width:0;
}
.journalAchievementRow.locked{
  opacity:.72;
}
.journalAchievementTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.journalAchievementDesc{
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  margin-top:2px;
}
.journalPoints{
  flex:0 0 auto;
  color:#dff2ff;
  border:1px solid rgba(155,211,255,.35);
  border-radius:999px;
  padding:2px 7px;
  font-size:11px;
}
.journalProgressLine{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:8px;
  align-items:center;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
}
.journalProgressBar{
  height:7px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}
.journalProgressBar div{
  height:100%;
  background:linear-gradient(90deg, rgba(126,210,143,.95), rgba(155,211,255,.95));
}
.journalCollectionGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(86px,100%),1fr));
  gap:8px;
  min-width:0;
}
.journalCollectionTile{
  min-width:0;
  min-height:98px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:8px 6px;
  text-align:center;
}
.journalCollectionTile.locked{
  opacity:.62;
}
.journalCollectionIcon{
  width:40px;
  height:40px;
  margin:0 auto 7px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(0,0,0,.20);
  color:var(--muted);
}
.journalCollectionIcon img{
  max-width:34px;
  max-height:34px;
  image-rendering:pixelated;
}
.journalCollectionName{
  font-size:11px;
  color:var(--text);
  line-height:1.2;
  overflow-wrap:anywhere;
}
.journalCollectionLine{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:8px 10px;
  min-width:0;
}
.journalCollectionLine.locked{
  opacity:.64;
}
.journalBossTag{
  color:#ffd98a;
  font-size:10px;
  margin-left:5px;
}
.contractPeriod{
  margin-top:10px;
}
.contractPeriodHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.contractPeriodHead h3{
  margin:0;
  color:var(--text);
  font-size:15px;
}
.contractBonus{
  flex:0 0 auto;
  color:#dff2ff;
  border:1px solid rgba(155,211,255,.30);
  border-radius:8px;
  background:rgba(124,184,232,.10);
  padding:5px 8px;
  font-size:11px;
}
.contractGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));
  gap:8px;
  min-width:0;
}
.contractCard{
  min-width:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:9px 10px;
  min-height:132px;
}
.contractCard.complete{
  border-color:rgba(126,210,143,.45);
  background:rgba(126,210,143,.07);
}
.contractCard.claimed{
  opacity:.72;
}
.contractCardTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.contractReward{
  margin-top:8px;
  color:#b8f0c4;
  font-size:11px;
  line-height:1.3;
}
.contractActions{
  min-height:30px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-top:8px;
}
.contractClaimed,
.contractPending{
  color:var(--muted);
  font-size:11px;
}
.contractClaimed{
  color:#b8f0c4;
}
.achievementToast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  width:min(280px,calc(100vw - 36px));
  border:1px solid rgba(155,211,255,.42);
  border-radius:8px;
  background:rgba(13,20,30,.96);
  box-shadow:0 14px 36px rgba(0,0,0,.42);
  padding:12px 14px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .22s ease, transform .22s ease;
  pointer-events:none;
}
.achievementToast.show{
  opacity:1;
  transform:translateY(0);
}
.achievementToastKicker{
  color:#9bd3ff;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.achievementToastName{
  color:var(--text);
  font-weight:800;
  margin-top:3px;
}
.achievementToastPoints{
  color:#b8f0c4;
  font-size:12px;
  margin-top:3px;
}
.questOverviewList{
  display:grid;
  gap:8px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.questOverviewRowBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  padding:9px 10px;
}
.questOverviewRowBtn:hover{
  border-color:rgba(162,218,255,.58);
  background:rgba(112,166,211,.13);
}
.questOverviewRowBtn:focus-visible{
  outline:2px solid rgba(155,211,255,.65);
  outline-offset:1px;
}
.questRowTitle{
  flex:1 1 auto;
  min-width:0;
  color:var(--text);
}
.questRowStatus{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:var(--muted);
  padding:2px 8px;
  font-size:11px;
  font-weight:700;
}
.questRowStatus.questStatusCompleted{
  border-color:rgba(110,220,148,.50);
  background:rgba(88,176,122,.16);
  color:var(--good);
}
.questRowStatus.questStatusInProgress{
  border-color:rgba(255,190,115,.52);
  background:rgba(255,190,115,.15);
  color:#ffd2a4;
}
.questRowStatus.questStatusLocked{
  border-color:rgba(241,118,118,.50);
  background:rgba(241,118,118,.12);
  color:#ffc4c4;
}
.questOverviewEmpty{
  border:1px dashed rgba(255,255,255,.14);
  border-radius:9px;
  padding:10px;
  color:var(--muted);
  text-align:center;
}
.questDetailCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  padding:10px;
  background:rgba(255,255,255,.03);
}
.questDetailTitle{
  font-size:16px;
  font-weight:700;
  color:var(--text);
}
.questDetailMeta{
  margin-top:8px;
  color:var(--muted);
}
.questDetailText{
  margin-top:8px;
  color:var(--muted);
  line-height:1.45;
}
.questStageList{
  margin-top:10px;
  display:grid;
  gap:6px;
}
.questStageItem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
  color:var(--muted);
}
.questStageItem.done{
  border-color:rgba(88,176,122,.35);
  color:rgba(176,229,197,.96);
}
.questStageItem.active{
  border-color:rgba(155,211,255,.66);
  background:rgba(155,211,255,.13);
  color:rgba(226,244,255,.98);
  box-shadow:0 0 0 1px rgba(155,211,255,.20) inset;
}
.questStageBullet{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(180,196,214,.5);
  flex:0 0 auto;
}
.questStageItem.done .questStageBullet{
  background:rgba(95,204,139,.94);
}
.questStageItem.active .questStageBullet{
  background:rgba(155,211,255,.95);
  box-shadow:0 0 10px rgba(155,211,255,.72);
}

.appearanceHint{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.appearanceEditor{
  margin-top:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(0,0,0,.16);
  padding:10px;
  display:grid;
  grid-template-columns:220px 1fr;
  gap:10px;
}
.appearancePreviewBox{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  padding:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
}
#appearancePreviewCanvas{
  width:200px;
  height:208px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(22,30,40,.85), rgba(14,20,28,.85));
}
.appearancePreviewHint{
  color:var(--muted);
  font-size:11px;
}
.appearanceGroups{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.appearanceGroup{
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  padding:8px;
  background:rgba(255,255,255,.02);
}
.appearanceGroupTitle{
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.appearanceOptionGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.appearanceOption{
  width:100%;
  padding:7px 6px;
  font-size:11px;
  line-height:1.2;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.appearanceOption.selected{
  border-color:rgba(155,211,255,.70);
  background:rgba(155,211,255,.16);
  box-shadow:0 0 0 1px rgba(155,211,255,.20) inset;
}
.appearanceControls{
  grid-column:1 / -1;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:2px;
}

.kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.08)}
.kv:last-child{border-bottom:none}

.minimapWrap{
  margin:0;
  width:188px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg, rgba(18,26,36,.94), rgba(15,20,28,.94));
  box-shadow:0 8px 20px rgba(0,0,0,.40);
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
  color:var(--muted);
  font-size:12px;
}
.minimapMeta{
  width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
#miniText{
  margin-top:2px;
  text-align:right;
  font-size:11px;
  color:rgba(198,208,224,.85);
}
canvas#minimap{
  width: 168px;
  height: 168px;
  flex:0 0 auto;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:#030406;
  image-rendering: pixelated;
}

.chat{
  margin-top: 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
  background:rgba(0,0,0,.18);
}
.chatTabs{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.16);
}
.chatTab{
  padding:6px 10px;
  font-size:12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  transition:background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.chatTab:hover:not(.active){
  color:#eaf6ff;
  border-color:rgba(183,255,176,.36);
  background:rgba(183,255,176,.08);
}
.chatTab.disabled{
  opacity:.5;
}
.chatTab.unread{
  color:#eaf6ff;
  border-color:rgba(130,205,255,.92);
  background:rgba(70,136,220,.26);
  box-shadow:0 0 0 1px rgba(130,205,255,.28) inset;
  animation:chatTabUnreadPulse 1.1s ease-in-out infinite;
  position:relative;
}
.chatTab.unread::after{
  content:"";
  position:absolute;
  top:5px;
  right:5px;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#9bd3ff;
  box-shadow:0 0 8px rgba(155,211,255,.95);
}
.chatTab.active,
.chatTab.active.unread{
  color:#f4fff2;
  border-color:rgba(183,255,176,.86);
  background:rgba(48,154,69,.86);
  box-shadow:0 0 0 1px rgba(183,255,176,.22) inset, 0 0 12px rgba(82,220,105,.22);
  animation:none;
}
.chatTab.active.unread::after{
  background:#d8ffd2;
  box-shadow:0 0 8px rgba(183,255,176,.95);
}
@keyframes chatTabUnreadPulse{
  0% { background:rgba(70,136,220,.18); border-color:rgba(130,205,255,.75); }
  50% { background:rgba(70,136,220,.34); border-color:rgba(162,226,255,.96); }
  100% { background:rgba(70,136,220,.18); border-color:rgba(130,205,255,.75); }
}
.chatFriendTarget{
  margin-left:auto;
  font-size:12px;
  color:var(--muted);
}
.chatLog{
  height: 160px;
  overflow:auto;
  padding:10px;
  font-size:12px;
  color:var(--text);
}
.chatLine{color:var(--muted);margin-bottom:6px}
.chatLine b{color:var(--text)}
.chatInputRow{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.08)}
.chatInputRow input{margin-top:0}
.friendOnlineDot{
  width:9px;
  height:9px;
  border-radius:999px;
  display:inline-block;
  margin-right:6px;
  vertical-align:middle;
}
.friendOnlineDot.on{ background:#52ff73; }
.friendOnlineDot.off{ background:#8892a8; }
.partySection{
  margin-bottom:10px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.partyMemberRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:5px 0;
  border-bottom:1px dashed rgba(255,255,255,.06);
}
.partyMemberRow:last-child{
  border-bottom:none;
}
.partyLeaderTag{
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  border-radius:999px;
  font-size:10px;
  border:1px solid rgba(255,214,130,.55);
  color:#ffd58d;
  background:rgba(122,80,25,.25);
}
.partyMeta{
  color:var(--muted);
  font-size:11px;
}
.guildHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:9px 10px;
  margin-bottom:8px;
}
.guildXpBlock,
.guildMotdBox,
.guildCreateBox,
.guildInviteBox{
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:9px 10px;
  margin-bottom:10px;
}
.guildCreateBox label{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:8px;
}
.guildCreateBox label:first-child{
  margin-top:0;
}
.guildCreateBox button,
.guildInviteBox button,
.guildMotdBox button{
  margin-top:8px;
}
.guildInviteBox{
  display:flex;
  gap:8px;
  align-items:center;
}
.guildInviteBox input{
  margin-top:0;
}
.guildMotdBox textarea{
  width:100%;
  min-height:70px;
  resize:vertical;
  border-radius:8px;
}
.guildMotdText{
  color:var(--text);
  line-height:1.45;
  overflow-wrap:anywhere;
}
.guildInviteList,
.guildMemberList{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}
.guildInviteRow,
.guildMemberRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:rgba(0,0,0,.14);
  padding:8px 9px;
}
.guildActionCluster{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:wrap;
}
.guildFooterActions{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:flex-end;
}
.friendsListScroll{
  max-height: 332px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.friendsListScroll .kv{
  min-height: 32px;
}
.playerCtxMenu{
  position:fixed;
  z-index:10020;
  min-width:150px;
  padding:8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(18,26,36,.98), rgba(15,20,28,.98));
  box-shadow:0 12px 30px rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.playerCtxMenu.hidden{
  display:none;
}

.hudRow{
  margin-top: 10px;
  display:flex;justify-content:flex-end;align-items:center;gap:10px;
  color:var(--muted);font-size:12px
}
.hudRowActions{
  display:flex;
  align-items:center;
  gap:8px;
}

.shutdownBanner{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:30;
  min-width:280px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(255,120,120,.42);
  background:linear-gradient(180deg, rgba(70,18,18,.96), rgba(40,10,10,.96));
  box-shadow:0 10px 26px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  gap:12px;
  color:#ffd9d9;
  pointer-events:none;
}

.shutdownBanner.hidden{
  display:none;
}

.shutdownBannerTitle{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.4px;
  color:#ffb3b3;
}

.shutdownBannerText{
  font-size:14px;
  color:#ffe6e6;
}

.shutdownBannerTimer{
  font-size:22px;
  font-weight:800;
  color:#ffffff;
  min-width:52px;
  text-align:right;
}

.worldEventBanner{
  position:absolute;
  top:68px;
  left:50%;
  transform:translateX(-50%);
  z-index:28;
  min-width:260px;
  max-width:min(520px, calc(100% - 24px));
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(255,214,112,.42);
  background:linear-gradient(180deg, rgba(44,34,18,.96), rgba(22,25,28,.96));
  box-shadow:0 10px 26px rgba(0,0,0,.38);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff2c8;
  cursor:pointer;
}

.worldEventBanner.hidden{
  display:none;
}

.worldEventKicker{
  font-size:10px;
  font-weight:800;
  color:#ffd670;
  text-transform:uppercase;
}

.worldEventBannerName{
  min-width:0;
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:800;
  color:#fff7dd;
}

.worldEventBannerTimer{
  min-width:48px;
  text-align:right;
  font-size:14px;
  font-weight:900;
  color:#ffffff;
}

.worldEventModal{
  width:min(540px, 96vw);
}

.worldEventModalIntro{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}

.worldEventModalDesc{
  color:var(--muted);
  line-height:1.45;
}

.worldEventBonusList{
  display:grid;
  gap:8px;
}

.worldEventBonusRow{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#f5ead1;
  font-size:13px;
}

.worldEventModalTime{
  color:#ffd670;
  font-weight:800;
}

@media(max-width: 980px){
  .grid{grid-template-columns:1fr}
  .side{border-right:none;border-bottom:1px solid rgba(255,255,255,.08)}
  .gameShell{grid-template-columns:1fr}
  canvas#game{height:560px}
  .appearanceEditor{grid-template-columns:1fr}
  .appearanceGroups{grid-template-columns:1fr}
  #cornerLogo{
    width:170px;
    max-width:34vw;
  }
  .hotbarWrap{
    bottom:8px;
  }
  .hotbarSlot{
    width:52px;
    height:52px;
  }
  .hotbarSlotIcon{
    width:30px;
    height:30px;
  }
  .worldEventBanner{
    top:62px;
    min-width:0;
    width:calc(100% - 24px);
  }
  .worldEventBannerName{
    max-width:48vw;
  }
  .weatherHud{
    top:286px;
    left:12px;
  }
  body.fullscreenMode .weatherHud{
    top:328px;
    left:12px;
  }
}


/* ---- Modal (Bank UI) ---- */
.modalOverlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  place-items:center;
  padding: 18px;
  z-index: 9999;
}
.modalOverlay.show{ display:grid; }

.modal{
  width: min(860px, 96vw);
  max-height: 84vh;
  overflow:auto;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,26,36,.98), rgba(15,20,28,.98));
  box-shadow: 0 18px 60px rgba(0,0,0,.7);
}
.modalHeader{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.modalHeader b{ font-size: 13px; letter-spacing:.3px; }
.modalClose{
  border-radius: 10px;
  padding: 8px 10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.modalClose:hover{ border-color: rgba(155,211,255,.55); }

.modalBody{ padding: 14px; }
.modalGrid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width: 820px){
  .modalGrid{ grid-template-columns: 1fr; }
}
.playerInspectModal{
  width:min(760px, 96vw);
}
.playerInspectSummary{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.playerInspectBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:11px;
}
.playerInspectBadge b{
  color:var(--text);
}
.playerInspectRoleBadge{
  border-color: rgba(255,255,255,.24);
}
.playerInspectRole-superadmin{
  border-color: rgba(255,184,92,.6);
  background: rgba(255,184,92,.12);
}
.playerInspectRole-admin{
  border-color: rgba(155,211,255,.58);
  background: rgba(120,188,255,.12);
}
.playerInspectRole-mod{
  border-color: rgba(142,224,173,.5);
  background: rgba(106,194,140,.12);
}
.playerInspectProfile{
  display:grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap:12px;
  align-items:stretch;
  margin-bottom:12px;
}
.playerInspectProfile .playerInspectSummary{
  margin-bottom:0;
  align-content:flex-start;
}
.playerInspectSpriteCard{
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:8px;
  gap:6px;
}
.playerInspectSpriteTitle{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.35px;
}
.playerInspectSpriteCanvas{
  width:116px;
  height:156px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(14,21,30,.92), rgba(11,16,24,.95));
  image-rendering:pixelated;
}
@media(max-width: 720px){
  .playerInspectProfile{
    grid-template-columns:1fr;
  }
  .playerInspectSpriteCard{
    width:fit-content;
  }
}
.playerInspectSection{
  margin-top:12px;
}
.playerInspectSectionTitle{
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
}
.playerInspectSkillGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:8px;
}
.playerInspectSkillRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  padding:6px 8px;
  font-size:12px;
}
.playerInspectSkillRow b{
  font-size:12px;
}
.playerInspectEquipGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:8px;
}
.playerInspectEquipRow{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.playerInspectEquipIcon{
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.28);
  object-fit:contain;
  image-rendering:pixelated;
  flex:0 0 auto;
}
.playerInspectEquipFallback{
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px dashed rgba(255,255,255,.20);
  background:rgba(255,255,255,.02);
  flex:0 0 auto;
}
.playerInspectEquipMeta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.playerInspectEquipSlot{
  font-size:11px;
  color:var(--muted);
}
.playerInspectEquipName{
  font-size:12px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.playerInspectActions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.playerInspectHint{
  color:var(--muted);
  font-size:12px;
}
.playerInspectAdminSection{
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.10);
}
.playerInspectAdminGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:10px;
}
.playerInspectAdminGroup{
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  padding:10px;
}
.playerInspectAdminGroupTitle{
  color:var(--text);
  font-size:12px;
  margin-bottom:8px;
}
.playerInspectAdminStatus{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:11px;
  margin-bottom:8px;
}
.playerInspectAdminStatus b{
  color:var(--text);
}
.playerInspectAdminRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.playerInspectAdminRow input,
.playerInspectAdminRow select{
  width:auto;
  min-width:86px;
  max-width:180px;
  margin-top:0;
  padding:7px 8px;
  font-size:12px;
}
.reportModal{
  width:min(640px, 96vw);
}
.reportModalHint{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin-bottom:10px;
}
.reportFieldLabel{
  display:block;
  margin-top:10px;
  color:var(--text);
  font-size:12px;
}
.reportTextarea{
  width:100%;
  min-height:140px;
  resize:vertical;
  margin-top:6px;
  line-height:1.45;
}
.reportModalFooter{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.reportCharCount{
  color:var(--muted);
  font-size:11px;
}
.reportedModal{
  width:min(820px, 96vw);
}
.reportedModalBody{
  padding-top:12px;
}
.reportedList{
  max-height:64vh;
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-right:2px;
}
.reportedRow{
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  padding:10px;
}
.reportedMeta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
}
.reportedBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
}
.reportedBadge.idea{
  border-color:rgba(155,211,255,.58);
  background:rgba(120,188,255,.12);
  color:#b6ddff;
}
.reportedBadge.bug{
  border-color:rgba(255,168,154,.55);
  background:rgba(255,116,92,.12);
  color:#ffd2c9;
}
.reportedMessage{
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.48;
  color:var(--text);
  font-size:13px;
}
.reportedActions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.reportedActionBtn{
  padding:6px 8px;
  font-size:11px;
}
.reportedActionBtn.active{
  border-color:rgba(164, 217, 255, .62);
  background:rgba(115, 176, 255, .14);
  color:#cde8ff;
}
.devlogModal{
  width:min(840px, 96vw);
}
.devlogModalBody{
  max-height:min(70vh, 760px);
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:12px;
}
.devlogIntro{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.devlogVersionCard{
  border:1px solid rgba(255,255,255,.14);
  border-radius:11px;
  background:rgba(255,255,255,.04);
  padding:11px 12px;
}
.devlogVersionHeader{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px;
  margin-bottom:8px;
}
.devlogVersionTag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 9px;
  border-radius:999px;
  border:1px solid rgba(155,211,255,.45);
  background:rgba(120,188,255,.12);
  color:#c9e8ff;
  font-size:11px;
  letter-spacing:.3px;
}
.devlogVersionTitle{
  font-size:14px;
  color:var(--text);
}
.devlogSectionList{
  display:flex;
  flex-direction:column;
  gap:11px;
}
.devlogSection{
  padding-top:2px;
}
.devlogSectionTitle{
  margin-bottom:6px;
  color:#f1f7ff;
  font-size:13px;
  font-weight:800;
}
.devlogVersionList{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.devlogVersionList li{
  color:#dbe9f8;
  font-size:13px;
  line-height:1.45;
}
.shopSectionTitle,
.itemSectionTitle{
  color:var(--muted);
  margin:8px 0 8px;
  font-size:12px;
}
.shopGrid,
.itemGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(74px,1fr));
  gap:10px;
}
.shopCell,
.itemCell{
  position:relative;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  min-height:88px;
  padding:6px;
  cursor:pointer;
  user-select:none;
}
.shopCell:hover,
.itemCell:hover{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.10);
}
.shopCell.disabled,
.itemCell.disabled{
  opacity:.55;
  cursor:default;
}
.shopCellImgWrap,
.itemCellImgWrap{
  display:flex;
  align-items:center;
  justify-content:center;
  height:54px;
}
.shopCellImg,
.itemCellImg{
  width:44px;
  height:44px;
  object-fit:contain;
  image-rendering:pixelated;
}
.shopCellFallback,
.itemCellFallback{
  width:44px;
  height:44px;
  border-radius:8px;
  border:1px dashed rgba(255,255,255,.20);
}
.shopCellName,
.itemCellName{
  font-size:11px;
  color:var(--text);
  text-align:center;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.shopBadge,
.itemBadge{
  position:absolute;
  right:6px;
  bottom:6px;
  font-size:10px;
  padding:1px 6px;
  border-radius:999px;
  background:rgba(11,15,20,.92);
  border:1px solid rgba(255,255,255,.20);
  color:var(--text);
}
.shopItemCtxMenu{
  z-index:10080;
  min-width:146px;
}
.bankItemCtxMenu{
  z-index:10080;
  min-width:146px;
}
.tradeItemCtxMenu{
  z-index:10080;
  min-width:168px;
}
.invItemCtxMenu{
  z-index:10080;
  min-width:146px;
}
.furnaceRecipeCtxMenu{
  z-index:10080;
  min-width:146px;
}
.cookRecipeCtxMenu{
  z-index:10080;
  width:min(392px, calc(100vw - 16px));
  min-width:280px;
  max-height:438px;
  padding:8px;
  gap:8px;
  overflow:hidden;
}
.cookPanelHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.cookPanelTitle{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.cookPanelTabs{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.cookPanelBody{
  overflow:auto;
  max-height:288px;
  padding-right:2px;
}
.cookRecipeCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  padding:8px;
  margin-bottom:8px;
}
.cookRecipeCard:last-child{
  margin-bottom:0;
}
.cookRecipeCardLocked{
  opacity:.88;
  background:rgba(255,255,255,.025);
}
.cookRecipeTitle{
  font-weight:700;
  font-size:12px;
  line-height:1.3;
}
.cookRecipeMeta{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}
.cookRecipeActions{
  display:flex;
  gap:6px;
  margin-top:8px;
  flex-wrap:wrap;
}
.cookEmptyHint{
  color:var(--muted);
  font-size:12px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius:10px;
  padding:10px;
}
.cookBatchProgress{
  margin-bottom:10px;
}
.cookBatchLabel{
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.cookBatchBar{
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  overflow:hidden;
}
.cookBatchFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(240,191,109,.92), rgba(155,211,255,.95));
  box-shadow:0 0 10px rgba(240,191,109,.35);
  transition:width 120ms linear;
}
.skillBatchFloating,
.cookBatchFloating,
.fletchBatchFloating,
.smeltBatchFloating{
  position:fixed;
  right:12px;
  bottom:96px;
  width:min(360px, calc(100vw - 24px));
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(12,16,22,.92);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
  pointer-events:none;
  z-index:10030;
}
.skillBatchFloating .cookBatchProgress,
.cookBatchFloating .cookBatchProgress,
.fletchBatchFloating .cookBatchProgress,
.smeltBatchFloating .cookBatchProgress{
  margin-bottom:0;
}
.furnaceRecipeGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(188px,1fr));
  gap:10px;
}
.furnaceBatchProgress{
  margin-bottom:10px;
}
.furnaceBatchLabel{
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}
.furnaceBatchBar{
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  overflow:hidden;
}
.furnaceBatchFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(240,191,109,.92), rgba(155,211,255,.95));
  box-shadow:0 0 10px rgba(240,191,109,.35);
  transition:width 120ms linear;
}
.furnaceBatchHint{
  margin-bottom:8px;
  font-size:11px;
  color:rgba(223,201,140,.92);
}
.furnaceRecipeWrap{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.furnaceRecipeWrap .itemCell{
  min-height:80px;
}
.furnaceRecipeMeta{
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  margin-top:7px;
}
.furnaceXp{
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
}
.millModal{
  width:min(760px, 96vw);
}
.millRecipeGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:10px;
}
.millRecipeWrap{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.millRecipeWrap .itemCell{
  min-height:80px;
}
.millRecipeMeta{
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  margin-top:7px;
}
.millActionRow{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:8px;
}
.millHint{
  margin-bottom:8px;
  font-size:11px;
  color:rgba(223,201,140,.92);
}
.qtyPromptModal{
  width:min(360px, 92vw);
}
.shopConfirmModal{
  width:min(460px, 94vw);
}
.shopConfirmText{
  color:var(--text);
  line-height:1.45;
  margin-bottom:8px;
  font-size:14px;
}
.shopConfirmSummary{
  color:var(--muted);
  font-size:12px;
  margin-bottom:12px;
}
.shopConfirmActions{
  justify-content:flex-end;
  gap:8px;
}
.anvilTabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}
.anvilTab{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:10px;
  padding:7px 10px;
  font-size:12px;
  cursor:pointer;
}
.anvilTab.active{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.16);
}
.anvilRecipeGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(188px,1fr));
  gap:10px;
}
.anvilRecipeWrap{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  padding:8px;
}
.anvilRecipeWrap .itemCell{
  min-height:80px;
}
.anvilRecipeMeta{
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  margin-top:7px;
}
.anvilEnchantSpell{
  display:flex;
  align-items:center;
  gap:6px;
}
.anvilEnchantSpellIcon{
  width:16px;
  height:16px;
  object-fit:contain;
  image-rendering:pixelated;
}
.anvilEnchantHint{
  margin-top:8px;
  font-size:11px;
  color:rgba(223,201,140,.92);
}

.invHudGrid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.invHudGrid .itemCell{
  min-height:72px;
  padding:5px;
}
.invHudGrid .itemCellName{
  display:none;
}
.invHudGrid .itemCellImgWrap{
  height:50px;
}
.invSlotEmpty{
  opacity:.65;
  cursor:default;
}
.invSlotEmpty:hover{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}


.equipBox{border:1px solid rgba(255,255,255,0.08); background:rgba(0,0,0,0.25); padding:10px; border-radius:10px; margin-top:10px}
.equipTitle{font-weight:700; margin-bottom:6px; color:rgba(255,255,255,0.85)}
.tradeCols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media(max-width: 820px){
  .tradeCols{
    grid-template-columns: 1fr;
  }
}
.tradeBox{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(0,0,0,.18);
  padding:10px;
}
.tradeRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:6px 0;
  border-bottom:1px dashed rgba(255,255,255,.08);
}
.tradeRow:last-child{
  border-bottom:none;
}
.tradeInviteBtn{
  margin-left:8px;
  padding:4px 8px;
  font-size:11px;
}

/* --- Login page refresh (scoped so game UI stays unchanged) --- */
body.loginPage{
  min-height:100%;
  margin:0;
  background:
    radial-gradient(1200px 540px at 50% -140px, rgba(85,152,211,.20), rgba(0,0,0,0)),
    radial-gradient(780px 360px at 88% 8%, rgba(73,124,175,.16), rgba(0,0,0,0)),
    linear-gradient(180deg, #090f17 0%, #0b121c 50%, #0b121b 100%);
}
body.loginPage .login-shell{
  width:min(580px, 100%);
  margin:0 auto;
  padding:18px 14px 34px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
body.loginPage .login-hero{
  position:relative;
  text-align:center;
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(18,28,42,.80), rgba(11,18,27,.64));
  box-shadow:0 16px 42px rgba(0,0,0,.42);
  overflow:hidden;
  padding:16px 14px 14px;
}
body.loginPage .hero-orb{
  position:absolute;
  width:340px;
  height:340px;
  left:50%;
  top:-220px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(126,199,255,.62) 0%, rgba(126,199,255,.18) 33%, rgba(126,199,255,0) 70%);
  filter:blur(8px);
  pointer-events:none;
}
body.loginPage #loginLogo{
  position:relative;
  width:min(460px, 94%);
  max-width:460px;
  height:auto;
  margin:6px auto 8px;
  display:block;
  filter:drop-shadow(0 10px 26px rgba(0,0,0,.40));
}
body.loginPage .hero-title{
  position:relative;
  margin:2px 0 6px;
  font-size:clamp(20px, 4.8vw, 30px);
  line-height:1.1;
  letter-spacing:.4px;
  color:#eaf3ff;
}
body.loginPage .hero-sub{
  position:relative;
  margin:0 auto;
  max-width:48ch;
  color:#adc0d9;
  font-size:13px;
  line-height:1.45;
}
body.loginPage .login-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(18,27,39,.93), rgba(11,18,27,.93));
  box-shadow:0 16px 42px rgba(0,0,0,.46);
  padding:14px;
}
body.loginPage .login-card-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
body.loginPage .mode-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:102px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(139,200,255,.38);
  color:#dbeeff;
  font-size:12px;
  letter-spacing:.22px;
  background:rgba(87,151,208,.15);
}
body.loginPage .login-status{
  margin-top:10px;
  min-height:38px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:rgba(255,255,255,.03);
  color:#9eb2ca;
}
body.loginPage .login-status.info{
  border-color:rgba(152,198,235,.26);
  color:#adc1da;
  background:rgba(111,162,209,.11);
}
body.loginPage .login-status.good{
  border-color:rgba(116,198,142,.32);
  color:#ccffd8;
  background:rgba(77,139,95,.18);
}
body.loginPage .login-status.bad{
  border-color:rgba(225,125,140,.32);
  color:#ffd0d7;
  background:rgba(135,67,78,.20);
}
body.loginPage .field-group{
  margin-top:10px;
}
body.loginPage .field-group label{
  display:block;
  margin:0 0 5px;
  color:#a4b7d1;
  font-size:12px;
}
body.loginPage .field-group input{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:rgba(0,0,0,.26);
  color:#e4efff;
  padding:11px 12px;
  outline:none;
  transition:border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
body.loginPage .field-group input::placeholder{
  color:rgba(191,206,224,.65);
}
body.loginPage .field-group input:focus{
  border-color:rgba(152,204,255,.62);
  background:rgba(0,0,0,.34);
  box-shadow:0 0 0 2px rgba(79,139,194,.24);
}
body.loginPage .auth-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:14px;
}
body.loginPage .auth-secondary,
body.loginPage .session-actions,
body.loginPage .forgot-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:10px;
}
body.loginPage .btn{
  width:100%;
  min-height:42px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.14);
  color:#e7f2ff;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.15px;
  transition:transform 110ms ease, filter 110ms ease, border-color 110ms ease, background-color 110ms ease;
}
body.loginPage .btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}
body.loginPage .btn:active{
  transform:translateY(0);
  filter:brightness(.98);
}
body.loginPage .btn-primary{
  background:linear-gradient(180deg, rgba(108,176,236,.92), rgba(73,137,194,.92));
  border-color:rgba(188,227,255,.56);
  color:#0d1c2b;
}
body.loginPage .btn-ghost{
  background:rgba(255,255,255,.04);
}
body.loginPage .btn-soft{
  background:linear-gradient(180deg, rgba(85,149,208,.38), rgba(68,124,175,.35));
  border-color:rgba(145,194,236,.42);
}
body.loginPage .btn-text{
  min-height:36px;
  background:transparent;
  border-color:rgba(255,255,255,.10);
  color:#bcd3eb;
  font-weight:500;
}
body.loginPage .forgot-wrap{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  padding:11px;
}
body.loginPage .forgot-title{
  font-size:13px;
  font-weight:700;
  color:#e4f1ff;
}
body.loginPage .forgot-sub{
  margin-top:4px;
  font-size:12px;
  color:#a8bdd7;
}
body.loginPage .login-tip{
  margin:12px 2px 2px;
  font-size:12px;
  color:#9bb0c9;
  line-height:1.45;
}
@media (min-width: 560px){
  body.loginPage .login-shell{
    padding-top:26px;
  }
  body.loginPage .auth-actions{
    grid-template-columns:1fr 1fr;
  }
  body.loginPage .session-actions{
    grid-template-columns:1fr 1fr;
  }
}
