: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}
.smallbtn.active{
  border-color:rgba(155,211,255,.65);
  background:rgba(155,211,255,.22);
}
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;
  --fullscreen-drawer-width:min(400px, 42vw);
  --fullscreen-drawer-right:12px;
  --fullscreen-drawer-gap:8px;
  --fullscreen-rail-width:120px;
  --fullscreen-rail-gap:10px;
}
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:var(--fullscreen-drawer-right);
  top:12px;
  width:var(--fullscreen-drawer-width);
  max-height:calc(100vh - 24px);
  z-index:36;
}
body.fullscreenMode.fullscreenPanelOpen #gamePanelColumn .panel{
  max-height:calc(100vh - 24px);
  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 - 92px);
  overflow:auto;
}
body.fullscreenMode.fullscreenPanelOpen .journalScrollArea{
  max-height:calc(100vh - 260px);
}
body.fullscreenMode.fullscreenPanelOpen .settingsScrollArea{
  max-height:calc(100vh - 260px);
}
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 #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;
  --play-hud-top:12px;
  --boss-hud-top:58px;
  --boss-hud-stack-gap:8px;
}
body.fullscreenMode .playArea{
  --boss-hud-top:94px;
}
.fullscreenQuickDock{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  z-index:12;
  display:none;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  padding:7px;
  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;
  z-index:38;
  width:var(--fullscreen-rail-width);
}
body.fullscreenMode.fullscreenPanelOpen .fullscreenQuickDock{
  right:calc(var(--fullscreen-drawer-right) + var(--fullscreen-drawer-width) + var(--fullscreen-drawer-gap));
}
.fullscreenQuickBtn{
  width:104px;
  min-height:34px;
  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 10px;
  white-space:nowrap;
  cursor:pointer;
}
.fullscreenQuickBtn.active{
  border-color:rgba(155,211,255,.70);
  background:linear-gradient(180deg, rgba(155,211,255,.24), rgba(86,151,210,.18));
  color:#dff2ff;
  box-shadow:0 0 0 1px rgba(155,211,255,.20) inset, 0 8px 20px rgba(0,0,0,.30);
}
.fullscreenQuickBtn:hover{
  border-color:rgba(155,211,255,.54);
  background:rgba(155,211,255,.13);
}
.fullscreenQuickCompact{
  display:none;
}
.fullscreenPanelCloseBtn{
  display:none;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:var(--text);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
body.fullscreenMode.fullscreenPanelOpen .fullscreenPanelCloseBtn{
  display:inline-flex;
  position:sticky;
  right:0;
  margin-left:auto;
  z-index:2;
  box-shadow:-12px 0 18px rgba(10,14,22,.90);
}
body.fullscreenMode.fullscreenPanelOpen .fullscreenPanelCloseBtn:hover{
  border-color:rgba(255,255,255,.34);
  background:rgba(255,255,255,.14);
}
.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;
}
.travelFadeOverlay{
  position:absolute;
  inset:0;
  z-index:15;
  background:#000;
  opacity:0;
  pointer-events:none;
  transition:opacity 450ms ease;
}
.travelFadeOverlay.active{
  opacity:1;
  pointer-events:auto;
}
.areaTitleOverlay{
  position:absolute;
  left:50%;
  top:19%;
  width:max-content;
  max-width:calc(100% - 32px);
  transform:translate(-50%, -6px);
  z-index:20;
  pointer-events:none;
  user-select:none;
  text-align:center;
  color:#f3ecdc;
  opacity:0;
  transition:opacity 500ms ease, transform 500ms ease;
  text-shadow:0 2px 2px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.75);
}
.areaTitleOverlay.active{
  opacity:1;
  transform:translate(-50%, 0);
  transition-duration:320ms;
}
.areaTitleMain{
  font-size:clamp(20px, 3vw, 32px);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.areaTitleSub{
  margin-top:4px;
  font-size:clamp(11px, 1.5vw, 15px);
  letter-spacing:.06em;
  opacity:.82;
}
@media (prefers-reduced-motion: reduce){
  .areaTitleOverlay,
  .areaTitleOverlay.active{
    transform:translate(-50%, 0);
  }
}
.levelToastOverlay{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:12000;
  pointer-events:none;
  box-sizing:border-box;
  min-width:260px;
  max-width:calc(100% - 24px);
  padding:9px 14px;
  border-radius:6px;
  background:rgba(14,18,24,.86);
  border:1px solid rgba(255,255,255,.28);
  text-align:center;
  opacity:0;
  visibility:hidden;
  white-space:pre-line;
}
.levelToastOverlay.levelToastVisible{
  visibility:visible;
}
.levelToastMain{
  font:bold 17px system-ui, "Segoe UI", Arial, sans-serif;
  color:#fff;
}
.levelToastSub{
  margin-top:4px;
  font:bold 15px system-ui, "Segoe UI", Arial, sans-serif;
  color:#e8f2ff;
}
.levelToastSub:empty{
  display: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{
  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;
}
.playHudCluster > .hpHud{
  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;
}
.bossHpHud{
  position:absolute;
  top:var(--boss-hud-top);
  left:50%;
  transform:translateX(-50%);
  z-index:14;
  width:min(540px, calc(100% - 260px));
  min-width:280px;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(255,215,136,.32);
  background:linear-gradient(180deg, rgba(25,19,15,.95), rgba(13,15,20,.95));
  box-shadow:0 8px 20px rgba(0,0,0,.44);
  color:var(--text);
  pointer-events:none;
}
.bossHpHud.hidden{
  display:none !important;
}
.bossHpHudTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.bossHpHudName{
  font-size:14px;
  font-weight:900;
  color:rgba(255,238,204,.98);
}
.bossHpHudPhase{
  font-size:12px;
  font-weight:850;
  color:#ffcf78;
  white-space:nowrap;
}
.bossHpHudBar{
  margin-top:6px;
  height:12px;
  border-radius:6px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.38);
}
.bossHpHudFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #b93030, #e35f45, #ffb15e);
  transition:width 140ms linear;
}
.bossHpHudText{
  margin-top:4px;
  text-align:center;
  font-size:12px;
  font-weight:800;
  color:rgba(238,246,255,.94);
}
body.fullscreenMode .bossHpHud{
  top:94px;
  width:min(560px, calc(100% - 300px));
}
.debuffTopBar{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  z-index:9;
  pointer-events:none;
  max-width:min(72vw, 560px);
}
body.bossHudActive .debuffTopBar{
  top:108px;
}
.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);
}
.skillXpHud{
  position:absolute;
  left:50%;
  top:12px;
  transform:translateX(-50%);
  z-index:13;
  pointer-events:none;
  max-width:min(94vw, 640px);
  display:flex;
  justify-content:center;
}
.skillXpHudRow{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  pointer-events:none;
}
.skillXpEntry{
  position:relative;
  width:58px;
  height:58px;
  flex:0 0 auto;
  pointer-events:none;
  opacity:0;
  transform:scale(.72);
  transition:opacity 260ms ease, transform 260ms ease;
}
.skillXpEntry.skillXpEntryVisible{
  opacity:1;
  transform:scale(1);
}
.skillXpEntry.skillXpEntryFading{
  opacity:0;
  transform:scale(.82);
  transition:opacity 520ms ease, transform 520ms ease;
}
.skillXpEntryBackdrop{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:radial-gradient(circle, rgba(9,13,20,.80) 0%, rgba(9,13,20,.52) 62%, rgba(9,13,20,0) 100%);
  box-shadow:0 6px 16px rgba(0,0,0,.45);
}
.skillXpRingSvg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:rotate(-90deg);
  filter:drop-shadow(0 0 5px rgba(155,211,255,.55));
}
.skillXpRingTrack{
  fill:none;
  stroke:rgba(255,255,255,.16);
  stroke-width:4;
}
.skillXpRingFill{
  fill:none;
  stroke:url(#skillXpRingGrad);
  stroke-width:4;
  stroke-linecap:round;
  transition:stroke-dashoffset 420ms ease;
}
.skillXpEntry.skillXpEntryMax .skillXpRingSvg{
  filter:drop-shadow(0 0 6px rgba(183,255,176,.85));
}
.skillXpEntryIcon{
  position:absolute;
  left:50%;
  top:50%;
  width:30px;
  height:30px;
  transform:translate(-50%,-50%);
  image-rendering:pixelated;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.6));
}
.skillXpEntryLevel{
  position:absolute;
  right:-4px;
  bottom:-4px;
  min-width:16px;
  padding:1px 4px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(20,26,36,.96), rgba(10,14,20,.96));
  border:1px solid rgba(155,211,255,.55);
  color:#f4f8ff;
  font-size:10px;
  font-weight:900;
  line-height:1.4;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.5);
}
@keyframes skillXpLevelUpPulse{
  0% { transform:rotate(-90deg) scale(1); filter:drop-shadow(0 0 5px rgba(155,211,255,.55)); }
  35% { transform:rotate(-90deg) scale(1.30); filter:drop-shadow(0 0 14px rgba(255,238,204,.95)); }
  100% { transform:rotate(-90deg) scale(1); filter:drop-shadow(0 0 5px rgba(155,211,255,.55)); }
}
.skillXpEntry.skillXpEntryLevelUp .skillXpRingSvg{
  animation:skillXpLevelUpPulse 820ms ease;
}
.playHudCluster{
  position:absolute;
  inset:0;
  z-index:10;
  pointer-events:none;
}
.playHudCluster > *{
  position:absolute;
  left:var(--hud-x, 12px);
  top:var(--hud-y, 12px);
  max-width:calc(100% - 24px);
  pointer-events:auto;
}
.hudBtnStack{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.playHudCluster .hudPanel{
  z-index:1;
  width:var(--hud-panel-width, 360px);
  max-height:var(--hud-panel-height, 500px);
  min-width:0;
  overflow:auto;
  overflow-wrap:anywhere;
}
.hotbarWrap{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:8;
  pointer-events:auto;
}
.serverClock{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:6;
  pointer-events:none;
  padding:3px 6px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(5,8,12,.48);
  color:rgba(214,226,242,.72);
  font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size:11px;
  font-variant-numeric:tabular-nums;
  line-height:1.1;
  text-shadow:0 1px 2px rgba(0,0,0,.65);
}
body.fullscreenMode .serverClock{
  right:12px;
  bottom:12px;
}
.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);
}
.durnakRewardOverlay{
  position:absolute;
  inset:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.34);
  pointer-events:auto;
}
.durnakRewardOverlay.hidden{
  display:none !important;
}
.durnakRewardModal{
  width:min(520px, calc(100vw - 40px));
  max-height:min(74vh, 560px);
  overflow:auto;
  border-radius:8px;
  border:1px solid rgba(255,215,136,.24);
  background:linear-gradient(180deg, rgba(22,25,30,.98), rgba(12,15,20,.98));
  box-shadow:0 18px 46px rgba(0,0,0,.62);
  color:var(--text);
  padding:12px;
}
.durnakRewardHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.durnakRewardTitle{
  font-size:16px;
  font-weight:900;
  color:#ffe6af;
}
.durnakRewardTimer{
  margin-top:2px;
  font-size:12px;
  font-weight:750;
  color:var(--muted);
}
.durnakRewardBody{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.durnakRewardRow{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
}
.durnakRewardName{
  font-size:13px;
  font-weight:850;
}
.durnakRewardMeta{
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
}
.durnakRewardResult{
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(155,211,255,.16);
  background:rgba(155,211,255,.06);
  font-size:12px;
  line-height:1.45;
}
.lootRevealOverlay{
  position:absolute;
  inset:0;
  z-index:42;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.36);
  pointer-events:auto;
}
.lootRevealOverlay.hidden{
  display:none !important;
}
.lootRevealModal{
  width:min(460px, calc(100vw - 40px));
  max-height:min(74vh, 560px);
  overflow:auto;
  border-radius:8px;
  border:1px solid rgba(255,215,136,.28);
  background:linear-gradient(180deg, rgba(22,24,30,.98), rgba(10,14,20,.98));
  box-shadow:0 20px 54px rgba(0,0,0,.68);
  color:var(--text);
  padding:14px;
}
.lootRevealModal.celebratory{
  border-color:rgba(155,211,255,.42);
  box-shadow:0 22px 64px rgba(0,0,0,.70), 0 0 28px rgba(155,211,255,.14);
}
.lootRevealHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.lootRevealKicker{
  color:#ffe6af;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.lootRevealModal.celebratory .lootRevealKicker{
  color:#9bd3ff;
}
.lootRevealTitle{
  margin-top:3px;
  font-size:18px;
  font-weight:950;
  color:var(--text);
}
.lootRevealBody{
  display:grid;
  gap:8px;
}
.lootRevealRow{
  display:grid;
  grid-template-columns:36px 1fr auto;
  gap:10px;
  align-items:center;
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
}
.lootRevealIcon{
  width:36px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.lootRevealIcon img{
  width:28px;
  height:28px;
  object-fit:contain;
  image-rendering:pixelated;
}
.lootRevealIconFallback{
  width:18px;
  height:18px;
  border-radius:5px;
  background:rgba(155,211,255,.35);
}
.lootRevealName{
  font-size:13px;
  font-weight:850;
}
.lootRevealQty{
  color:#ffe6af;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
#magicHudBtn{
  width:42px;
  height:42px;
}
#magicHudPanel{
  width:var(--hud-panel-width, 360px);
  max-height:min(420px, var(--hud-panel-height, 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;
}
.contextHint{
  position:absolute;
  left:50%;
  bottom:78px;
  transform:translate(-50%, 0);
  width:min(420px, calc(100% - 260px));
  min-width:260px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(128, 188, 255, .34);
  background:linear-gradient(180deg, rgba(18,27,38,.96), rgba(12,18,27,.96));
  box-shadow:0 12px 30px rgba(0,0,0,.42);
  color:#eef6ff;
  z-index:10;
  opacity:1;
  transition:opacity .22s ease, transform .22s ease;
}
.contextHint.contextHintHidden{
  opacity:0;
  transform:translate(-50%, 8px);
  pointer-events:none;
}
.contextHintTitle{
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  text-transform:uppercase;
  color:#9fd0ff;
}
.contextHintBody{
  margin-top:4px;
  font-size:13px;
  line-height:1.35;
  color:rgba(238,246,255,.92);
}
.contextHintDismiss{
  margin-top:8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:6px;
  background:rgba(255,255,255,.08);
  color:#eef6ff;
  font-weight:800;
  font-size:12px;
  padding:5px 9px;
  cursor:pointer;
}
.contextHintDismiss:hover{
  background:rgba(255,255,255,.14);
}
body.fullscreenMode .contextHint{
  bottom:86px;
}
@media (max-width: 760px){
  .contextHint{
    width:min(420px, calc(100% - 24px));
    bottom:88px;
  }
}
.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;
}
.npcDialogBox.systemDialog{
  background: linear-gradient(#c9e5f7, #91bfe0);
  border-color:#47799f;
  color:#102b40;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.npcDialogBox.systemDialog #npcDialogClose{
  background:#47799f;
  color:#fff;
}

.npcDialogBox.systemDialog .npcDialogChoices .smallbtn{
  background:#47799f;
  color:#fff;
}
.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,
.settingsScrollArea::-webkit-scrollbar{
  height:8px;
  width:8px;
}
.panelTabs::-webkit-scrollbar-track,
.journalScrollArea::-webkit-scrollbar-track,
.settingsScrollArea::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.panelTabs::-webkit-scrollbar-thumb,
.journalScrollArea::-webkit-scrollbar-thumb,
.settingsScrollArea::-webkit-scrollbar-thumb{
  background:rgba(155,211,255,.34);
  border-radius:999px;
}
.panelTabs::-webkit-scrollbar-thumb:hover,
.journalScrollArea::-webkit-scrollbar-thumb:hover,
.settingsScrollArea::-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);
}
.settingsScrollArea{
  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);
  -webkit-overflow-scrolling:touch;
}
.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;
}
.journalTitleSelector{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid rgba(255,214,130,.20);
  border-radius:8px;
  background:rgba(255,214,130,.055);
  padding:9px 10px;
  margin-bottom:10px;
}
.journalTitleSelector b{
  color:#f3d184;
}
.journalTitleSelector select{
  min-width:145px;
}
.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;
}
.clueTierBadge{
  text-transform:uppercase;
  font-weight:800;
}
.clueTier-master{
  color:#ffe4a3;
  border-color:rgba(255, 89, 124, .62);
  background:linear-gradient(135deg, rgba(99, 37, 132, .72), rgba(150, 37, 64, .62) 48%, rgba(207, 145, 42, .42));
  box-shadow:0 0 16px rgba(207, 84, 161, .22);
}
.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;
}
.journalCollectionLine span{
  min-width:0;
}
.journalCollectionLine small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}
.journalSectionTitle{
  margin:12px 0 7px;
  font-size:12px;
  color:#ffd98a;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.journalTableWrap{
  overflow:auto;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.025);
}
.journalDataTable{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
.journalDataTable th,
.journalDataTable td{
  padding:7px 8px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:top;
}
.journalDataTable th{
  color:#dff2ff;
  font-size:11px;
  text-transform:uppercase;
}
.journalDataTable tr:last-child td{
  border-bottom:0;
}
.hofCategory{
  margin-bottom:14px;
}
.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;
}
.achievementToastHost{
  position:absolute;
  right:12px;
  bottom:42px;
  z-index:60;
  display:flex;
  flex-direction:column-reverse;
  gap:8px;
  pointer-events:none;
  max-width:min(280px, calc(100% - 24px));
}
.achievementToast{
  position:relative;
  width:100%;
  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;
  overflow:auto;
  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%;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.minimapCollapseBtn{
  padding:0;
  width:24px;
  height:24px;
  flex:0 0 24px;
  font-size:18px;
  line-height:1;
}
.minimapWrap.minimapCollapsed{
  width:112px;
  gap:0;
  padding:4px 8px;
}
.minimapCollapsed #minimap,
.minimapCollapsed #miniText{
  display:none;
}
.settingsHome{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.settingsCategoryCard{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:border-color .12s ease, background .12s ease, transform .12s ease;
}
.settingsCategoryCard:hover,
.settingsCategoryCard:focus-visible{
  border-color:rgba(155,211,255,.55);
  background:rgba(155,211,255,.08);
  transform:translateY(-1px);
  outline:none;
}
.settingsCategoryText{
  min-width:0;
}
.settingsCategoryTitle{
  font-weight:700;
  color:var(--text);
  font-size:13px;
}
.settingsCategoryDesc{
  margin-top:2px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.35;
}
.settingsCategoryChevron{
  flex:0 0 auto;
  color:var(--muted);
  font-size:16px;
  font-weight:700;
}
.settingsSubpage{
  min-width:0;
}
.settingsHeader{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.settingsHeaderTitle{
  font-weight:800;
  color:var(--text);
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.settingsGroup{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}
.settingsGroup:first-child{
  margin-top:0;
  padding-top:0;
  border-top:none;
}
.settingsGroupTitle{
  font-weight:700;
  margin-bottom:8px;
  color:var(--text);
}
.settingsToggleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.settingsToggleRow + .settingsToggleRow{
  margin-top:10px;
}
.settingsToggleInfo{
  min-width:0;
}
.settingsToggleLabel{
  color:var(--text);
  font-size:12.5px;
}
.settingsToggleHint{
  margin-top:3px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.35;
}
.settingsToggle{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 9px 5px 6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.28);
  cursor:pointer;
  transition:border-color .12s ease, background .12s ease;
}
.settingsToggle:hover,
.settingsToggle:focus-visible{
  border-color:rgba(155,211,255,.55);
  outline:none;
}
.settingsToggle.on{
  border-color:rgba(155,211,255,.55);
  background:rgba(95,204,139,.16);
}
.settingsToggleThumb{
  width:16px;
  height:16px;
  border-radius:50%;
  background:rgba(255,255,255,.30);
  transition:background .12s ease, transform .12s ease;
}
.settingsToggle.on .settingsToggleThumb{
  background:#5fcc8b;
  box-shadow:0 0 8px rgba(95,204,139,.55);
}
.settingsToggleState{
  font-size:10px;
  font-weight:800;
  letter-spacing:.4px;
  color:var(--muted);
  min-width:22px;
}
.settingsToggle.on .settingsToggleState{
  color:#b7ffb0;
}
.settingsCornerLabel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--text);
  font-size:12.5px;
}
.settingsCornerPicker{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(2, 40px);
  gap:6px;
}
.settingsCornerBtn{
  width:40px;
  height:32px;
  padding:0;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .12s ease, background .12s ease, color .12s ease;
}
.settingsCornerBtn:hover,
.settingsCornerBtn:focus-visible{
  border-color:rgba(155,211,255,.5);
  color:var(--text);
  outline:none;
}
.settingsCornerBtn.active{
  border-color:rgba(155,211,255,.72);
  background:rgba(124,184,232,.18);
  color:#dff2ff;
  box-shadow:0 0 0 1px rgba(155,211,255,.20) inset;
}
#miniText{
  margin-top:2px;
  text-align:right;
  font-size:11px;
  color:rgba(198,208,224,.85);
}
.miniOnlineBtn{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(198,208,224,.92);
  font:inherit;
  padding:0;
  margin:0;
  cursor:pointer;
  text-align:right;
}
.miniOnlineBtn:hover,
.miniOnlineBtn:focus-visible{
  color:var(--text);
  text-decoration:underline;
  outline:none;
}
canvas#minimap{
  width:var(--hud-map-size, 168px);
  max-width:100%;
  height:auto;
  aspect-ratio:1;
  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;
}
.mailSubnav{
  display:flex;
  gap:6px;
  align-items:center;
  margin-bottom:10px;
}
.mailUnreadBadge,
.mailQuickBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:16px;
  height:16px;
  padding:0 5px;
  border-radius:999px;
  background:#ff4e66;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1;
}
.mailQuickBadge{
  position:absolute;
  top:-5px;
  right:-5px;
}
.fullscreenQuickBtn{
  position:relative;
}
.mailboxPanel{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mailboxHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.mailList{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:420px;
  overflow:auto;
}
.mailRow{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  cursor:pointer;
}
.mailRow.unread{
  border-color:rgba(120,190,255,.45);
  background:rgba(70,130,180,.12);
}
.mailRowMeta{
  flex:0 0 auto;
  color:var(--muted);
  font-size:11px;
}
.mailUnreadDot{
  width:8px;
  height:8px;
  border-radius:999px;
  display:inline-block;
  margin-right:6px;
  background:transparent;
}
.mailUnreadDot.on{
  background:#7db8ff;
}
.mailDetailHead,
.mailMessage{
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  padding:9px 10px;
}
.mailSubject{
  margin:4px 0;
  font-size:16px;
}
.mailMessage{
  white-space:pre-wrap;
  color:var(--text);
  line-height:1.45;
}
.mailAttachments,
.mailAttachList{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mailItemChip,
.mailAttachRow{
  display:flex;
  align-items:center;
  gap:8px;
}
.mailItemChip{
  color:var(--text);
  font-size:12px;
}
.mailItemChip img{
  width:24px;
  height:24px;
  object-fit:contain;
  image-rendering:pixelated;
}
.mailItemFallback{
  width:24px;
  height:24px;
  border-radius:6px;
  background:rgba(255,255,255,.12);
}
.mailAttachRow select{
  flex:1 1 auto;
}
.mailAttachRow input{
  width:78px;
}
.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;
}
.guildMemberList{
  max-height:340px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(155,211,255,.36) rgba(255,255,255,.06);
}
.guildMemberList::-webkit-scrollbar{
  width:8px;
}
.guildMemberList::-webkit-scrollbar-track{
  background:rgba(255,255,255,.05);
  border-radius:999px;
}
.guildMemberList::-webkit-scrollbar-thumb{
  background:rgba(155,211,255,.34);
  border-radius:999px;
}
.guildMemberList::-webkit-scrollbar-thumb:hover{
  background:rgba(155,211,255,.52);
}
.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;
}
@media (max-height: 700px){
  .guildMemberList{
    max-height:260px;
  }
}
.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;
}
.friendDmMenu{
  width:280px;
  min-width:0;
  max-width:calc(100vw - 16px);
  max-height:calc(100vh - 16px);
  overflow:auto;
}
.friendDmMenuHeading{padding:5px 4px 0;font-size:12px;color:var(--muted)}
.friendDmMenuEmpty{padding:4px;font-size:12px;color:var(--muted)}
.friendDmMenuEntry{text-align:left;white-space:normal;overflow-wrap:anywhere}
.friendDmPreview{display:block;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.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:var(--play-hud-top);
  left:50%;
  transform:translateX(-50%);
  z-index:13;
  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;
}
body.bossHudActive .worldEventBanner{
  top:calc(var(--boss-hud-top) + 66px + var(--boss-hud-stack-gap));
}

.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:var(--play-hud-top);
    min-width:0;
    width:calc(100% - 24px);
  }
  body.bossHudActive .bossHpHud{
    top:var(--play-hud-top);
    width:calc(100% - 24px);
    min-width:0;
  }
  body.bossHudActive .worldEventBanner{
    top:102px;
  }
  .worldEventBannerName{
    max-width:48vw;
  }
  .weatherHud{
    top:286px;
    left:12px;
  }
  body.fullscreenMode .weatherHud{
    top:328px;
    left:12px;
  }
}

@media(max-width: 640px){
  body.fullscreenMode .wrap{
    --fullscreen-drawer-width:min(400px, calc(100vw - 72px));
    --fullscreen-drawer-right:8px;
    --fullscreen-drawer-gap:6px;
    --fullscreen-rail-width:56px;
    --fullscreen-rail-gap:6px;
  }
  body.fullscreenMode .fullscreenQuickDock{
    right:8px;
    padding:5px;
    gap:5px;
  }
  body.fullscreenMode.fullscreenPanelOpen .fullscreenQuickDock{
    right:calc(var(--fullscreen-drawer-right) + var(--fullscreen-drawer-width) + var(--fullscreen-drawer-gap));
  }
  body.fullscreenMode .fullscreenQuickBtn{
    width:44px;
    min-height:40px;
    padding:0;
    font-size:13px;
  }
  body.fullscreenMode .fullscreenQuickLabel{
    display:none;
  }
  body.fullscreenMode .fullscreenQuickCompact{
    display:inline;
  }
  body.fullscreenMode.fullscreenPanelOpen #gamePanelColumn{
    right:var(--fullscreen-drawer-right);
    width:var(--fullscreen-drawer-width);
  }
  body.fullscreenMode .playArea > .chat.fullscreenChatDock{
    width:min(360px, calc(100vw - 24px));
    min-width:0;
  }
}


/* ---- 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);
}
.onlineListModal{
  width:min(420px, 94vw);
}
.onlineListModalBody{
  max-height:56vh;
  overflow-y:auto;
}
.onlineListSummary{
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}
.onlineListRows{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.onlineListRow{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
}
.onlineListEmpty{
  color:var(--muted);
  font-size:13px;
  padding:8px 0;
}
.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;
}
#reportedBtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.reportedNewBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:16px;
  padding:0 6px;
  border-radius:999px;
  border:1px solid rgba(255,184,106,.72);
  background:rgba(255,92,62,.22);
  color:#ffd6bd;
  font-size:9px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
}
.reportedNewBadge.hidden{
  display:none;
}
.reportedNewBadge.pulse{
  animation:reportedNewBadgePulse 1s ease-out 1;
}
@keyframes reportedNewBadgePulse{
  0%{box-shadow:0 0 0 0 rgba(255,116,92,.55)}
  100%{box-shadow:0 0 0 8px rgba(255,116,92,0)}
}
@media (prefers-reduced-motion: reduce){
  .reportedNewBadge.pulse{
    animation:none;
  }
}
.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;
}
.adminCommandsModal{
  width:min(900px, 96vw);
}
.adminCommandsModalBody{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.adminCommandsSearch{
  width:100%;
  margin:0;
}
.adminCommandsStatus{
  min-height:18px;
  color:var(--muted);
  font-size:12px;
}
.adminCommandsList{
  max-height:min(62vh, 680px);
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-right:2px;
}
.adminCommandCard{
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  padding:10px;
}
.adminCommandCardTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.adminCommandName{
  font-family:ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size:14px;
  font-weight:800;
  color:var(--text);
}
.adminCommandDesc{
  margin-top:5px;
  color:var(--text);
  font-size:12px;
  line-height:1.4;
}
.adminCommandUsage{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.adminCommandRunBtn{
  flex:0 0 auto;
}
.adminCommandArgLabel{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
}
.adminCommandArgInput{
  width:100%;
  margin-top:5px;
}
.adminCommandQuickRow{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.adminCommandQuickBtn{
  padding:6px 8px;
  font-size:11px;
}
@media(max-width: 620px){
  .adminCommandCardTop{
    flex-direction:column;
  }
  .adminCommandRunBtn{
    width:100%;
  }
}
.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;
}
.equipmentCompareTooltip{
  position:fixed;
  left:0;
  top:0;
  z-index:10050;
  max-width:min(320px, calc(100vw - 18px));
  padding:10px 11px;
  border:1px solid rgba(255,214,130,.28);
  border-radius:8px;
  background:rgba(9,12,16,.96);
  box-shadow:0 12px 32px rgba(0,0,0,.48);
  color:var(--text);
  pointer-events:none;
  font-size:12px;
  line-height:1.35;
}
.equipmentCompareTooltip.hidden{
  display:none;
}
.equipmentCompareTitle{
  font-weight:800;
  color:#f3d184;
  margin-bottom:7px;
}
.equipmentCompareSection{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.10);
}
.equipmentCompareMuted{
  color:var(--muted);
}
.equipmentCompareRows{
  display:grid;
  grid-template-columns:minmax(82px,1fr) auto;
  gap:3px 14px;
  align-items:baseline;
}
.equipmentCompareValue{
  text-align:right;
  color:rgba(236,242,249,.94);
  font-variant-numeric:tabular-nums;
}
.equipmentCompareDelta.pos{
  color:#75d68a;
}
.equipmentCompareDelta.neg{
  color:#ff7e7e;
}
.equipmentCompareDelta.zero{
  color:var(--muted);
}
.equipmentCompareReqBad{
  color:#ff9a9a;
}
.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;
}
#reverenceRecipeCtxMenu{
  position:absolute;
  top:76px;
  right:12px;
  left:auto;
  width:min(392px, calc(100% - 24px));
  min-width:0;
  max-height:min(460px, calc(100% - 90px));
  z-index:10080;
}
#reverenceRecipeCtxMenu .cookPanelBody{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
}
.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:absolute;
  left:50%;
  right:auto;
  bottom:24px;
  transform:translateX(-50%);
  width:min(420px, calc(100% - 48px));
  max-width:calc(100% - 48px);
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(155,211,255,.30);
  background:linear-gradient(180deg, rgba(12,17,24,.94), rgba(7,10,15,.88));
  box-shadow:0 14px 32px rgba(0,0,0,.46), 0 0 0 1px rgba(0,0,0,.24) inset;
  color:var(--text);
  pointer-events:none;
  z-index:14;
}
.skillBatchFloating .cookBatchProgress,
.cookBatchFloating .cookBatchProgress,
.fletchBatchFloating .cookBatchProgress,
.smeltBatchFloating .cookBatchProgress{
  margin-bottom:0;
}
.skillBatchFloatingKicker{
  margin-bottom:4px;
  color:#9bd3ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.1;
}
.skillBatchFloatingHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.skillBatchFloatingHead .cookBatchLabel,
.skillBatchFloatingLabel{
  flex:1 1 auto;
  min-width:0;
  margin-bottom:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f4f8ff;
  font-size:15px;
  font-weight:850;
  line-height:1.2;
}
.skillBatchFloatingBar{
  height:12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.42);
  overflow:hidden;
}
.skillBatchFloatingFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(240,191,109,.96), rgba(155,211,255,.98));
  box-shadow:0 0 14px rgba(240,191,109,.34);
  transition:width 120ms linear;
}
.skillBatchFloatingText{
  margin-top:7px;
  color:rgba(214,226,242,.90);
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  text-align:center;
}
.skillBatchCancel{
  flex:0 0 auto;
  padding:4px 10px;
  font-size:11px;
  line-height:1.2;
  pointer-events:auto;
}
.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);
}
.teleportModal{
  width:min(360px, 92vw);
}
.teleportModalIntro{
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}
.teleportModalDestinations{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.teleportModalDestinations .tradeInviteBtn{
  width:100%;
  text-align:left;
}
.qtyPromptModal{
  width:min(360px, 92vw);
}
.shopConfirmModal{
  width:min(460px, 94vw);
}
.tradeInviteDialog{
  width:min(340px, calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  padding:0;
  color:var(--text);
  border-color:#cba4ff;
}
.tradeInviteDialog::backdrop{background:rgba(0,0,0,.35)}
#tradeInviteText{margin:0 0 16px;overflow-wrap:anywhere}
.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);
}
.invSlotDragging{
  opacity:.4;
}


.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 [hidden]{
  display:none !important;
}
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 h2.forgot-title{
  margin:0 0 8px;
  font-size:20px;
}
body.loginPage .forgot-sub{
  margin-top:4px;
  font-size:12px;
  color:#a8bdd7;
}
body.loginPage .loginUpdateOverlay{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(4,7,11,.68);
  backdrop-filter:blur(3px);
}
body.loginPage .loginUpdateOverlay[hidden]{
  display:none;
}
body.loginPage .loginUpdateModal{
  width:min(420px, 100%);
  border:1px solid rgba(155,211,255,.24);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(18,27,39,.97), rgba(10,16,24,.97));
  box-shadow:0 20px 54px rgba(0,0,0,.54);
  padding:16px;
}
body.loginPage .loginUpdateKicker{
  color:#9bd3ff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.loginPage .loginUpdateModal h2{
  margin:8px 0 8px;
  color:#eef6ff;
  font-size:20px;
  line-height:1.2;
}
body.loginPage .loginUpdateVersion{
  color:#c9ddf5;
  font-size:14px;
  font-weight:700;
}
body.loginPage .loginUpdateStatus{
  min-height:18px;
  margin-top:10px;
  color:#a9bfd8;
  font-size:12px;
}
body.loginPage .loginUpdateStatus.bad{
  color:#ffd0d7;
}
body.loginPage .loginUpdateActions{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:12px;
}
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;
  }
  body.loginPage .loginUpdateActions{
    grid-template-columns:1fr 1fr;
  }
}
/* Shared by Legacy and WebGL. Each deadline controls its own filter contribution;
   identity fallbacks let either effect expire without removing the other. */
body.spectralSightActive {
  --spectral-filter: saturate(1.06) contrast(1.03) hue-rotate(5deg);
}
body.prismTripActive {
  --prism-filter: hue-rotate(75deg) saturate(1.25);
}
body.spectralSightActive,
body.prismTripActive {
  filter: var(--prism-filter, hue-rotate(0deg)) var(--spectral-filter, saturate(1));
}
