:root {
  --bg: #15110d;
  --panel: rgba(24, 18, 12, .82);
  --panel-2: rgba(40, 30, 20, .9);
  --line: rgba(232, 184, 106, .18);
  --ink: #f2e6d2;
  --ink-2: #bba88c;
  --gold: #f0b64a;
  --hp: #5fcf5a;
  --mp: #4aa3f0;
  --ui: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 14px/1.35 var(--ui); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; image-rendering: pixelated; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .14) 2px 3px); mix-blend-mode: multiply; }
body.noscan .scanlines { display: none; }

.rpg-logo { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(240, 182, 74, .28)); -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .5) 3px 4px); mask-image: repeating-linear-gradient(to bottom, #000 0 3px, rgba(0, 0, 0, .5) 3px 4px); }

#splash { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; gap: 18px; background: radial-gradient(ellipse at 50% 45%, #2a1d10, var(--bg) 70%); transition: opacity .6s, visibility .6s; text-align: center; }
#splash .logo-wrap { width: min(420px, 78vw); margin: 0 auto; }
#splash p { margin: 0; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
#splash.gone { opacity: 0; visibility: hidden; }

.brand { display: block; width: 92px; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(4px); }

.where { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 7px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(4px); text-align: center; white-space: nowrap; }
.coords { display: flex; gap: 6px; align-items: baseline; justify-content: center; font-variant-numeric: tabular-nums; }
.coords span { color: var(--ink-2); font-size: 11px; font-weight: 700; }
.coords b { min-width: 3ch; font-size: 16px; }
.biome { display: flex; gap: 8px; justify-content: center; align-items: baseline; font-size: 12px; }
.biome b { font-weight: 700; }
.biome i { font-style: normal; color: var(--ink-2); }

.map { position: fixed; top: 43px; right: 12px; z-index: 5; padding: 4px; border-radius: 10px; background: #000; border: 1px solid var(--line); }
.map canvas { display: block; width: 132px; height: 132px; border-radius: 6px; background: #000; }

.dock { position: fixed; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.dock button { display: grid; place-items: center; gap: 2px; width: 58px; padding: 6px 2px 5px; border: 1px solid transparent; border-radius: 9px; background: var(--panel-2); cursor: pointer; font-size: 19px; line-height: 1; }
.dock button span { font-size: 10px; color: var(--ink-2); font-weight: 600; }
.dock button:hover, .dock button.on { border-color: var(--gold); }
.dock button.on span { color: var(--gold); }

.panel { position: fixed; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); border-radius: 14px; background: rgba(22, 17, 12, .95); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.panel[hidden] { display: none; }
.panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.panel .x { border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--ink-2); }
.panel footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.panel button.primary, .panel footer button { border: 1px solid var(--gold); background: linear-gradient(#f5c865, #c98a2c); color: #2a1a08; font-weight: 800; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.panel footer button:not(.primary) { background: var(--panel-2); color: var(--ink); border-color: var(--line); font-weight: 700; }
.cr { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 14px 16px; align-items: center; }
#preview { width: 140px; height: 140px; image-rendering: pixelated; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #3a5a26, #1d2a14); }
.cr-row { display: grid; grid-template-columns: 58px 28px 1fr 28px; gap: 6px; align-items: center; margin: 3px 0; }
.cr-row span { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.cr-row b { text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.cr-row button { height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 16px; line-height: 1; }
.cr-row button:hover { border-color: var(--gold); }
#goForm { display: flex; gap: 10px; align-items: end; padding: 14px 16px 4px; }
#goForm label { display: grid; gap: 4px; color: var(--ink-2); font-size: 12px; font-weight: 700; flex: 1; }
#goForm input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0f0b08; color: var(--ink); font: 700 15px var(--ui); }
.hint { margin: 6px 16px 12px; color: var(--ink-2); font-size: 12px; }

#toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -8px); z-index: 35; padding: 9px 16px; border-radius: 999px; background: rgba(24, 18, 12, .92); border: 1px solid var(--gold); font-weight: 700; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#fade { position: fixed; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
#fade.on { animation: zfade 1s ease-out; }
@keyframes zfade { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
#zone { --zc: #f0b64a; position: fixed; left: 50%; top: 24%; z-index: 7; transform: translate(-50%, 8px); display: grid; justify-items: center; gap: 4px; opacity: 0; pointer-events: none; text-align: center; transition: opacity .5s, transform .5s; }
#zone.on { opacity: 1; transform: translate(-50%, 0); }
#zone b { font: 900 clamp(26px, 5vw, 44px)/1.05 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #fff4dc; text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 24px var(--zc); white-space: nowrap; }
#zone small { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: var(--zc); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.help { position: fixed; left: 12px; bottom: 12px; z-index: 4; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--panel); color: var(--ink-2); font-size: 11.5px; }

@media (max-width: 720px) {
  .brand { display: none; }
  .map canvas { width: 88px; height: 88px; }
  .help { display: none; }
  .dock { left: 12px; right: 12px; justify-content: space-between; }
  .dock button { width: auto; flex: 1; }
  .cr { grid-template-columns: 1fr; justify-items: center; }
}
.vitals { position: fixed; left: 16px; top: 12px; width: 224px; z-index: 5; pointer-events: none; font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif; }
.vitals__name { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.vitals__name, .hb-key, .hb-cd { paint-order: stroke fill; -webkit-text-stroke: 3px rgba(0, 0, 0, .9); text-shadow: 0 2px 3px rgba(0, 0, 0, .55); }
#vName { font: 900 15px/1.2 "Nunito", sans-serif; color: #fff; }
.vitals__lv { font: 800 12px/1.2 "Nunito", sans-serif; color: #f5c53a; letter-spacing: .3px; }
.vbar { position: relative; height: 15px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .07); margin-top: 4px; }
.vbar i { position: absolute; inset: 0 100% 0 0; background: #35d55f; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .18); transition: right .18s ease-out; }
.vbar i.mp { background: #2f9df5; }
.vbar em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 10.5px/1 "Nunito", sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); letter-spacing: .2px; }

.hotbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; font-family: "Nunito", "Segoe UI", system-ui, sans-serif; }
.hb-buffs { display: flex; gap: 5px; min-height: 20px; }
.hb-levels { display: flex; align-items: center; gap: 8px; box-sizing: border-box; width: 485px; padding: 0 2px 2px; }
.hb-xp { flex: 1; height: 5px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; position: relative; }
.hb-xp i { position: absolute; inset: 0 100% 0 0; background: #f5c53a; transition: right .2s; }
.hb-cap { font: 700 10px/1 "Nunito", sans-serif; color: #a3a9b3; white-space: nowrap; }
.hb-pill { padding: 3px 9px; border-radius: 999px; background: rgba(139, 108, 255, .12); border: 1px solid rgba(139, 108, 255, .4); font: 800 10px/1 "Nunito", sans-serif; color: #d9ccff; white-space: nowrap; cursor: pointer; pointer-events: auto; }
.hb-wrap { position: relative; display: flex; pointer-events: auto; }
.hb-row { display: flex; gap: 5px; }
.hb-slot { position: relative; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; background: rgba(20, 21, 24, .82); border: 1px solid rgba(255, 255, 255, .07); box-sizing: border-box; transition: transform .08s ease-out, box-shadow .08s ease-out; }
.hb-slot canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; }
.hb-slot.press { box-shadow: inset 0 0 0 2px #8b6cff, 0 0 12px #8b6cff66; transform: translateY(-2px); }
.hb-key { position: absolute; left: 4px; top: 2px; font: 800 9px/1 "Nunito", sans-serif; color: #a3a9b3; -webkit-text-stroke: 0; text-shadow: 0 1px 2px #000; }
.hb-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; display: none; padding: 4px 8px; border-radius: 6px; background: rgba(20, 21, 24, .80); border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font: 800 10.5px/1 "Nunito", sans-serif; color: #f2f3f5; pointer-events: none; }
.hb-slot:hover .hb-tip:not(:empty) { display: block; }
.hb-plus { position: absolute; left: calc(100% + 6px); top: 0; width: 26px; height: 44px; border-radius: 8px; background: rgba(20, 21, 24, .82); border: 1px solid rgba(255, 255, 255, .07); color: #a3a9b3; font: 900 17px/1 "Nunito", sans-serif; cursor: pointer; padding: 0; transition: color .1s, border-color .1s; }
.hb-plus:hover { color: #f2f3f5; border-color: rgba(255, 255, 255, .2); }
@media (max-width: 1180px) { .help { display: none; } }
@media (max-width: 900px) { .hotbar { left: 6px; transform: scale(.64); transform-origin: left bottom; bottom: 76px; align-items: flex-start; } .vitals { left: 9px; top: 6px; width: 150px; transform: scale(.86); transform-origin: left top; } }
#talk { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 8; min-width: 300px; max-width: min(520px, 92vw); padding: 14px 18px 12px; background: rgba(20, 21, 24, .80); border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-family: "Nunito", "Segoe UI", system-ui, sans-serif; color: #f2f3f5; cursor: pointer; }
.talk__title { font: 900 15px/1.2 "Nunito", sans-serif; color: #f5c53a; margin-bottom: 6px; }
.talk__text { font: 800 14px/1.45 "Nunito", sans-serif; white-space: pre-line; }
.talk__hint { margin-top: 8px; font: 700 10px/1 "Nunito", sans-serif; color: #a3a9b3; text-align: right; }
#prompt { position: fixed; z-index: 6; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 6px; background: rgba(20, 21, 24, .85); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font: 900 12px/22px "Nunito", sans-serif; text-align: center; pointer-events: none; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
#chat { position: fixed; left: 16px; bottom: 14px; z-index: 6; width: 360px; font-family: "Nunito", "Segoe UI", system-ui, sans-serif; }
.chat-tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.chat-tabs button { padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(20, 21, 24, .72); color: #a3a9b3; font: 800 10.5px/1.2 "Nunito", sans-serif; cursor: pointer; }
.chat-tabs button.on { color: #f2f3f5; border-color: rgba(139, 108, 255, .55); background: rgba(139, 108, 255, .18); }
.chat-log { height: 128px; overflow-y: auto; padding: 6px 8px; border-radius: 8px; background: rgba(20, 21, 24, .55); font: 700 12px/1.45 "Nunito", sans-serif; color: #f2f3f5; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); scrollbar-width: thin; }
.chat-log p { margin: 0; word-wrap: break-word; }
.chat-log .ch { font-weight: 900; margin-right: 4px; }
.chat-log .sys { color: #f5c53a; }
.chat-log .party { color: #7fd6ff; }
.chat-log .npc { color: #b6f09c; }
#chatIn { box-sizing: border-box; width: 100%; margin-top: 4px; padding: 6px 9px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(20, 21, 24, .72); color: #f2f3f5; font: 700 12px/1.2 "Nunito", sans-serif; outline: none; }
#chatIn:focus { border-color: rgba(139, 108, 255, .7); background: rgba(20, 21, 24, .9); }
@media (max-width: 900px) { #chat { width: 220px; bottom: 150px; } .chat-log { height: 80px; } }
#actBtn, #chatToggle, #atkBtn, #spellBtn { display: none; }
@media (pointer: coarse) {
  #actBtn { display: block; position: fixed; right: 18px; bottom: 150px; z-index: 7; width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: rgba(20, 21, 24, .78); color: #f2f3f5; font: 900 15px/1 "Nunito", sans-serif; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; pointer-events: none; touch-action: none; }
  #actBtn.on { opacity: 1; transform: scale(1); pointer-events: auto; box-shadow: 0 0 0 3px rgba(139, 108, 255, .45); }
  #chatToggle { display: block; position: fixed; left: 12px; bottom: 150px; z-index: 7; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(20, 21, 24, .78); font-size: 20px; }
  #chat { display: none; }
  body.chat-open #chat { display: block; bottom: 200px; }
  #prompt { display: none !important; }
}
.dock { display: none; }
.menu { position: fixed; right: 14px; bottom: 14px; z-index: 6; display: flex; gap: 4px; padding: 5px; border-radius: 10px; background: rgba(20, 21, 24, .55); border: 1px solid rgba(255, 255, 255, .06); }
.menu button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .12s, transform .12s; }
.menu button:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.menu button.on { background: rgba(139, 108, 255, .22); border-color: rgba(139, 108, 255, .5); }
.menu button.off img { opacity: .4; filter: grayscale(1); }
.menu img, .menu canvas { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.menu button::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 6px; background: #f6f3ea; color: #26221b; border: 2px solid #3b3326; font: 800 11px/1 "Nunito", sans-serif; opacity: 0; pointer-events: none; transition: opacity .1s; }
.menu button::before { content: ""; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #3b3326; opacity: 0; transition: opacity .1s; }
.menu button:hover::after, .menu button:hover::before { opacity: 1; }
.zoombar { position: fixed; right: 14px; top: 163px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.zoombar button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(20, 21, 24, .7); color: #f2f3f5; font: 900 16px/1 "Nunito", sans-serif; cursor: pointer; }
.bag-body, .settings-body { padding: 14px 16px; }
#bag { width: min(520px, calc(100vw - 32px)); }
#bag .bag-body { max-height: calc(100vh - 110px); overflow-y: auto; }
.bag-grid.pets { max-height: none; }
.it.pet i img { width: 28px; height: 28px; image-rendering: pixelated; display: block; border-radius: 6px; }
.bag-gold { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(245, 197, 58, .1); border: 1px solid rgba(245, 197, 58, .35); }
.bag-gold img { width: 32px; height: 32px; image-rendering: pixelated; }
.bag-gold span { flex: 1; font-weight: 800; }
.bag-gold b { color: #f5c53a; font-size: 18px; }
.journal-list { list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 8px; }
.journal-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.journal-list b { color: #f5c53a; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-weight: 700; }
.toggle { width: 44px; height: 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); position: relative; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #a3a9b3; transition: left .15s, background .15s; }
.toggle.on { background: rgba(139, 108, 255, .35); border-color: rgba(139, 108, 255, .6); }
.toggle.on::after { left: 23px; background: #fff; }
@media (max-width: 900px) {
  .menu { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; gap: 2px; }
  .menu button { width: 34px; height: 34px; }
  .menu img, .menu canvas { width: 26px; height: 26px; }
  .menu button::after, .menu button::before { display: none; }
}
.cr-name { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; }
.cr-name input { padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: 800 14px var(--ui); }
.cr-sw { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: start; margin: 6px 0; font-size: 12.5px; font-weight: 800; }
.cr-sw > div { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--c, #888); cursor: pointer; position: relative; }
.sw.nat { background: conic-gradient(#e0b08a, #7a4a26, #22222a, #e0b08a); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 2px #8b6cff; }
.sw.locked { filter: grayscale(.8) brightness(.6); }
.sw.locked::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; }
#creator { width: min(640px, 94vw); max-height: 88vh; overflow-y: auto; }
#creator .cr { grid-template-columns: 170px 1fr; align-items: start; }
#creator #preview { width: 170px; height: 170px; }
.cr-sw { grid-template-columns: 76px 1fr; }
.cr-name { grid-template-columns: 76px 1fr; }
@media (max-width: 640px) { #creator .cr { grid-template-columns: 1fr; } }
#welcome { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(20, 14, 8, .82), rgba(5, 3, 2, .95)); font-family: "Nunito", "Segoe UI", system-ui, sans-serif; }
#welcome[hidden] { display: none; }
.wel-card { width: min(440px, 100%); padding: 26px 24px 20px; border-radius: 16px; background: rgba(20, 21, 24, .92); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); text-align: center; color: #f2f3f5; }
.wel-logo { width: 220px; image-rendering: pixelated; }
.wel-card h2 { margin: 12px 0 4px; font: 900 22px/1.2 "Nunito", sans-serif; }
.wel-sub { margin: 0 0 16px; color: #a3a9b3; font-weight: 700; font-size: 14px; }
.wel-name { display: grid; gap: 6px; text-align: left; font-weight: 800; font-size: 13px; color: #a3a9b3; }
.wel-name input { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #fff; font: 800 16px "Nunito", sans-serif; outline: none; }
.wel-name input:focus { border-color: rgba(139, 108, 255, .7); }
.wel-link { min-height: 18px; margin: 12px 0; font-size: 13px; font-weight: 700; color: #f5c53a; }
.wel-link a { color: #c9b8ff; }
.wel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wel-btns button { padding: 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #f2f3f5; font: 900 15px "Nunito", sans-serif; cursor: pointer; }
.wel-btns button.primary { background: #8b6cff; border-color: #8b6cff; }
.wel-btns button:hover { filter: brightness(1.1); }
.bag-h { margin: 14px 0 6px; font: 900 12px/1 "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #a3a9b3; }
.bag-equip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 8px; max-height: 46vh; overflow-x: hidden; overflow-y: auto; padding: 6px 4px 2px; }
.it { position: relative; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 9px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(255, 255, 255, .03)); color: inherit; text-align: left; cursor: pointer; font-family: "Nunito", sans-serif; }
.it:hover { border-color: var(--rc); }
.it.on { box-shadow: inset 0 0 0 1px var(--rc); }
.it i { grid-row: span 2; font-style: normal; font-size: 22px; text-align: center; }
.it-n { font-weight: 900; font-size: 12.5px; color: var(--rc); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.it-s { font-weight: 700; font-size: 11px; color: #a3a9b3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.it-q, .it-e { position: absolute; top: -6px; right: -4px; padding: 1px 6px; border-radius: 8px; background: #26282e; border: 1px solid rgba(255, 255, 255, .15); font-size: 10.5px; }
.it-e { right: auto; left: -4px; background: var(--rc); color: #111; border: 0; }

.vol { width: 150px; accent-color: #8b6cff; cursor: pointer; }
#sleepFade { position: fixed; inset: 0; z-index: 25; background: #05060d; opacity: 0; pointer-events: none; }
#sleepFade.on { animation: sleep-fade 2s ease; }
@keyframes sleep-fade { 0% { opacity: 0; } 35%, 60% { opacity: 1; } 100% { opacity: 0; } }
#shop { width: min(520px, calc(100vw - 32px)); }
.it:disabled { cursor: default; opacity: .55; }
.shop-sell { width: 100%; margin-top: 12px; padding: 11px; border-radius: 10px; border: 1px solid rgba(245, 197, 58, .5); background: rgba(245, 197, 58, .16); color: #f5c53a; font: 900 14px "Nunito", sans-serif; cursor: pointer; }
.shop-sell:disabled { opacity: .45; cursor: default; }
.set-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.set-actions button { padding: 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: inherit; font: 800 13px "Nunito", sans-serif; cursor: pointer; }
.set-actions button.danger { border-color: rgba(232, 72, 58, .5); color: #ff8a7a; }
.journal-list li.ach span { color: #f5c53a; }
#travel { width: min(600px, calc(100vw - 32px)); }
.big-map { display: block; width: calc(100% - 32px); height: auto; margin: 14px 16px 0; border-radius: 10px; image-rendering: pixelated; background: #0d0a07; }
.map-info { margin: 10px 16px 14px; font-weight: 800; font-size: 13.5px; color: #d9cbb0; text-align: center; }
.panel footer.map-foot { justify-content: center; }
.st-body { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px 16px 12px; }
.st-body h3 { margin: 12px 0 6px; font: 900 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #8ff3ff; }
.st-note { margin: 8px 0 2px; color: #b9b2a6; font-weight: 700; font-size: 13px; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.st-list li.cur { border-color: rgba(143, 243, 255, .45); background: rgba(143, 243, 255, .08); }
.st-list span { display: grid; gap: 2px; min-width: 0; }
.st-list b { font-weight: 900; font-size: 13.5px; color: #f2ede4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list small { color: #9aa3ad; font-weight: 700; font-size: 11.5px; }
.st-list button { flex: none; padding: 6px 11px; border-radius: 7px; border: 1px solid rgba(143, 243, 255, .5); background: rgba(143, 243, 255, .14); color: #d8fbff; font: 900 12px var(--ui); cursor: pointer; }
.st-list button:hover:not(:disabled) { background: rgba(143, 243, 255, .3); }
.st-list button:disabled { opacity: .45; cursor: not-allowed; }
.it.pet i img.shiny { filter: hue-rotate(150deg) saturate(1.2); }
.sw.none { background: transparent; border-style: dashed; }
.gold-pill { position: fixed; top: 12px; right: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgba(20, 21, 24, .85); border: 1px solid rgba(255, 255, 255, .07); font: 800 12px/1 "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif; color: #f2f3f5; font-variant-numeric: tabular-nums; }
.gold-pill img { width: 15px; height: 15px; display: block; }
.bag-gold img.gold-coin { width: 26px; height: 26px; image-rendering: auto; }
@media (pointer: coarse) {
  #atkBtn, #spellBtn { display: grid; place-items: center; position: fixed; z-index: 7; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: rgba(20, 21, 24, .78); color: #f2f3f5; touch-action: none; }
  #atkBtn { right: 100px; bottom: 150px; width: 68px; height: 68px; font: 900 28px/1 "Nunito", sans-serif; }
  #spellBtn { right: 22px; bottom: 232px; width: 54px; height: 54px; font: 900 24px/1 "Nunito", sans-serif; color: #c9b8ff; }
  #atkBtn:active, #spellBtn:active { transform: scale(.92); background: rgba(139, 108, 255, .4); }
}
.hb-skills { display: flex; gap: 6px; pointer-events: auto; }
.sk { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 9px; border: 1px solid rgba(245, 197, 58, .45); background: rgba(20, 21, 24, .86); color: #f2f3f5; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); transition: transform .1s, border-color .2s; }
.sk:hover { border-color: #f5c53a; }
.sk:active { transform: translateY(1px) scale(.96); }
.sk i { position: absolute; inset: 0; display: grid; place-items: center; font: 22px/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-style: normal; }
.sk::after { content: ""; position: absolute; inset: 0; background: conic-gradient(rgba(0, 0, 0, .68) calc(var(--cd, 0) * 360deg), transparent 0); pointer-events: none; }
.sk-key { position: absolute; left: 3px; top: 2px; z-index: 1; font: 800 9px/1 "Nunito", sans-serif; color: #f5c53a; text-shadow: 0 1px 2px #000; }
.sk-cd { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 900 14px/1 "Nunito", sans-serif; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 3px rgba(0, 0, 0, .9); }
.sk.locked { border-color: rgba(255, 255, 255, .1); }
.sk.locked i { filter: grayscale(1); opacity: .35; }
.sk.locked .sk-cd { font-size: 10px; color: #c9ccd3; }
.tskills { display: none; }
@media (pointer: coarse) {
  .hb-skills { display: none; }
  .tskills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; position: fixed; right: 14px; bottom: 300px; z-index: 7; width: 150px; }
  .tsk { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(245, 197, 58, .5); background: rgba(20, 21, 24, .8); font: 20px/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; touch-action: none; overflow: hidden; }
  .tsk::after { content: ""; position: absolute; inset: 0; background: conic-gradient(rgba(0, 0, 0, .7) calc(var(--cd, 0) * 360deg), transparent 0); }
  .tsk.locked { filter: grayscale(1); opacity: .4; }
}
.journal-list li.boss span { color: #ffb3a0; } .journal-list li.boss.done span { color: #f5c53a; }
.it.pet { position: relative; } .pet-acts { position: absolute; right: 4px; top: 4px; display: flex; gap: 4px; } .pet-act { font: 800 11px/1 "Nunito", sans-serif; padding: 3px 5px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: #f2f3f5; cursor: pointer; } .pet-act:hover { background: rgba(232, 72, 58, .6); } .pet-h { grid-column: 1 / -1; margin: 6px 0 2px !important; font-weight: 800; color: #d9cbb0 !important; }
.wel-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.wel-pick { display: grid; gap: 6px; margin-top: 12px; text-align: left; font-weight: 800; font-size: 13px; color: #a3a9b3; }
.wel-cls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wel-pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wel-opt { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #f2f3f5; text-align: left; cursor: pointer; font: 800 13px/1.25 "Nunito", sans-serif; }
.wel-opt small { font-weight: 700; font-size: 11.5px; color: #a3a9b3; }
.wel-opt.on { border-color: #8b6cff; background: rgba(139, 108, 255, .16); box-shadow: 0 0 0 1px #8b6cff inset; }
.wel-opt img { width: 32px; height: 32px; image-rendering: pixelated; justify-self: center; }
.wel-pets .wel-opt { text-align: center; justify-items: center; }
.cls-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-weight: 800; }
.cls-row button { padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: inherit; font: 800 12.5px "Nunito", sans-serif; cursor: pointer; }
.cls-row button:disabled { opacity: .45; cursor: not-allowed; }
.cls-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -4px 0 12px; }

#craft { width: min(620px, calc(100vw - 24px)); }
.craft-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ct { display: grid; gap: 2px; padding: 7px 4px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #f2f3f5; font: 800 12px/1.2 "Nunito", sans-serif; cursor: pointer; }
.ct small { font-weight: 700; font-size: 10.5px; color: #a3a9b3; }
.ct.on { border-color: #8b6cff; background: rgba(139, 108, 255, .16); }
.craft-list { display: grid; gap: 8px; margin-top: 8px; max-height: min(56vh, 520px); overflow-y: auto; padding-right: 4px; }
.job-bar { display: grid; gap: 5px; font-weight: 800; font-size: 13px; }
.job-bar i { display: block; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.job-bar b { display: block; height: 100%; background: #f5c53a; }
.rcp { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-left: 3px solid var(--rc); }
.rcp > i { font: 26px/1 "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-style: normal; text-align: center; }
.rcp-b { min-width: 0; display: grid; gap: 3px; }
.rcp-b b { font: 800 14px "Nunito", sans-serif; }
.rcp-b small { font-weight: 700; font-size: 11.5px; color: #a3a9b3; }
.ings { display: flex; flex-wrap: wrap; gap: 4px; }
.ing { padding: 2px 6px; border-radius: 6px; background: rgba(232, 72, 58, .14); color: #ffb3a8; font: 700 11px "Nunito", sans-serif; }
.ing.ok { background: rgba(95, 208, 104, .14); color: #a8f0b0; }
.rcp button { padding: 8px 12px; border-radius: 9px; border: 0; background: #8b6cff; color: #fff; font: 900 13px "Nunito", sans-serif; cursor: pointer; }
.rcp button:disabled { background: rgba(255, 255, 255, .08); color: #8a9099; cursor: not-allowed; }
.rcp.locked { opacity: .6; }
.hb-buffs .buff { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(20, 21, 24, .85); border: 1px solid rgba(245, 197, 58, .35); font: 14px/1 "Segoe UI Emoji", sans-serif; }
.hb-buffs .buff b { font: 800 10px/1 "Nunito", sans-serif; color: #f2f3f5; }
@media (max-width: 560px) { .craft-tabs { grid-template-columns: repeat(3, 1fr); } }

#land { width: min(420px, calc(100vw - 24px)); }
.land-lead { margin: 0 0 6px; font: 900 18px "Nunito", sans-serif; }
.land-price { display: flex; align-items: center; gap: 8px; margin: 12px 0; font: 900 22px "Nunito", sans-serif; color: #f5c53a; }
.land-price img { width: 26px; height: 26px; }
.land-price span { font-size: 13px; color: #a3a9b3; }
.land-buy { width: 100%; padding: 11px; border-radius: 10px; border: 0; background: #8b6cff; color: #fff; font: 900 15px "Nunito", sans-serif; cursor: pointer; }
.land-buy:disabled { background: rgba(255, 255, 255, .08); color: #8a9099; cursor: not-allowed; }
.land-row { display: flex; gap: 8px; } .land-row input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #fff; font: 800 14px "Nunito", sans-serif; } .land-row .land-buy { width: auto; padding: 9px 14px; }
#landBody .bag-h { margin-top: 16px; }

.shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.shop-tabs button { padding: 8px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #f2f3f5; font: 800 13px "Nunito", sans-serif; cursor: pointer; }
.shop-tabs button.on { border-color: #8b6cff; background: rgba(139, 108, 255, .16); }
.mk { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--rc); }
.mk > i { font: 24px/1 "Segoe UI Emoji", sans-serif; font-style: normal; text-align: center; }
.mk b { display: block; font: 800 13.5px "Nunito", sans-serif; }
.mk small { font-weight: 700; font-size: 11.5px; color: #a3a9b3; }
.mk button, #mkList { padding: 7px 12px; border-radius: 9px; border: 0; background: #8b6cff; color: #fff; font: 900 12.5px "Nunito", sans-serif; cursor: pointer; }
.mk button:disabled, #mkList:disabled { background: rgba(255, 255, 255, .08); color: #8a9099; cursor: not-allowed; }
.mk-sell { display: grid; grid-template-columns: minmax(0, 1fr) 64px 100px auto; gap: 6px; }
.mk-sell select, .mk-sell input { min-width: 0; padding: 7px 8px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #fff; font: 700 13px "Nunito", sans-serif; }
.mk-sell select option { background: #1c1d21; }
@media (max-width: 560px) { .mk-sell { grid-template-columns: 1fr 1fr; } }

.map { width: 142px; box-sizing: border-box; }
.map .where { position: static; transform: none; z-index: auto; margin: 0; padding: 6px 2px 2px; border: 0; border-radius: 0; background: none; backdrop-filter: none; display: grid; gap: 2px; white-space: normal; }
.map .where #biome { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 12.5px/1.2 "Nunito", sans-serif; }
.where-row { display: flex; justify-content: center; gap: 8px; font-size: 11px; }
.where-row i { font-style: normal; color: var(--ink-2); }
.map .coords { gap: 4px; }
.map .coords span { font-size: 10px; }
.map .coords b { font-size: 12.5px; min-width: 0; }
.map .zoombar { position: absolute; top: 4px; right: calc(100% + 6px); }
.map .zoombar button { display: block; width: 26px; height: 26px; font-size: 15px; }
.map .zoombar button + button { margin-top: 4px; }
.menu { gap: 2px; padding: 0; border: 0; background: none; }
.menu button { width: 32px; height: 32px; }
.menu img, .menu canvas { width: 26px; height: 26px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.menu button:hover { background: rgba(0, 0, 0, .25); }
@media (max-width: 720px) {
  .map { width: 98px; }
  .map .where #biome { font-size: 10.5px; }
  .where-row { font-size: 9.5px; gap: 5px; }
  .map .coords b { font-size: 10.5px; }
  .map .coords span { font-size: 9px; }
  .menu button { width: 30px; height: 30px; }
  .menu img, .menu canvas { width: 22px; height: 22px; }
}
.zoombar button:disabled { opacity: .35; cursor: default; }

#mini { cursor: pointer; }
#chat { width: 380px; }
#chat .chat-tabs { gap: 10px; margin: 0 0 2px 8px; opacity: 0; transition: opacity .2s; }
#chat:hover .chat-tabs, #chat:focus-within .chat-tabs { opacity: 1; }
#chat .chat-tabs button { padding: 2px 0; border: 0; border-radius: 0; background: none; color: rgba(242, 243, 245, .55); font: 800 11px/1.2 "Nunito", sans-serif; text-shadow: 0 1px 2px #000; border-bottom: 2px solid transparent; }
#chat .chat-tabs button.on { color: #fff; border-bottom-color: #f5c53a; background: none; }
#chat .chat-log { height: 132px; padding: 6px 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .18) 75%, rgba(0, 0, 0, 0)); font: 700 12.5px/1.5 "Nunito", sans-serif; text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, .9); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px); mask-image: linear-gradient(to bottom, transparent, #000 22px); transition: background .2s, opacity .2s; scrollbar-width: none; }
#chat .chat-log::-webkit-scrollbar { display: none; }
#chat:not(:hover):not(:focus-within) .chat-log { background: none; opacity: .85; }
#chat:hover .chat-log, #chat:focus-within .chat-log { scrollbar-width: thin; }
#chat .chat-log .sys { color: #ffd66b; }
#chat .chat-log .ch { color: #cfd4dc; }
#chatIn { margin-top: 2px; padding: 7px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 11, 14, .78); font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
#chat:focus-within #chatIn { opacity: 1; transform: none; }
#chat:not(:focus-within) #chatIn { pointer-events: none; }
@media (max-width: 900px) { #chat { width: 240px; } #chat .chat-log { height: 84px; } }
@media (pointer: coarse) { #chat .chat-tabs { opacity: 1; } #chatIn { opacity: 1; transform: none; } #chat:not(:focus-within) #chatIn { pointer-events: auto; } }

.quest { position: fixed; left: 16px; top: 72px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 250px; padding: 6px 10px 7px; border: 0; border-left: 3px solid #f5c53a; border-radius: 0 8px 8px 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12)); color: #f2f3f5; text-align: left; font: 800 12.5px/1.35 "Nunito", sans-serif; text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, .9); cursor: pointer; animation: questIn .4s ease-out; }
.quest[hidden] { display: none; }
.quest b { font: 900 10.5px/1.2 "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #f5c53a; }
.quest small { margin-left: 4px; color: #ffd66b; font-weight: 900; }
.quest:hover { background: linear-gradient(90deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .2)); }
@keyframes questIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .quest { left: 9px; top: 58px; max-width: 190px; font-size: 11px; padding: 4px 8px 5px; } }

.party-box { position: fixed; left: 16px; top: 124px; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 5px 10px 6px; border-left: 3px solid #5fd068; border-radius: 0 8px 8px 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1)); color: #cfd4dc; font: 800 12px/1.35 "Nunito", sans-serif; text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, .9); pointer-events: none; }
.party-box[hidden] { display: none; }
.party-box b { font: 900 10.5px/1.2 "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5fd068; }
.party-box .near { color: #fff; }
.party-box .me { color: #f5c53a; }
.party-box small { color: #9aa3ad; font-weight: 800; }
.pmenu { position: fixed; z-index: 30; width: 180px; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(18, 13, 9, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: #f2ede4; font: 800 13px/1.3 "Nunito", sans-serif; }
.pmenu[hidden] { display: none; }
.pmenu small { color: #9aa3ad; font-weight: 800; }
.pmenu em { color: #b9b2a6; font-style: normal; font-size: 11.5px; font-weight: 700; }
.pmenu button { margin-top: 4px; padding: 7px 10px; border: 0; border-radius: 7px; background: #5fd068; color: #0d1a0e; font: 900 12.5px "Nunito", sans-serif; cursor: pointer; }
.pmenu button:hover { background: #7fe086; }
.quest[hidden] + .party-box { top: 72px; }
@media (max-width: 900px) { .party-box { left: 9px; top: 104px; font-size: 11px; } .quest[hidden] + .party-box { top: 58px; } }

.mk-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 8px; }
.mk-search input[type=search] { flex: 1 1 140px; min-width: 0; }
.mk-search select, .mk-search input[type=search] { padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 11, 14, .7); color: #f2f3f5; font: 700 12.5px "Nunito", sans-serif; }
.mk-rare { display: flex; align-items: center; gap: 4px; font: 800 12px "Nunito", sans-serif; color: #b36bff; cursor: pointer; }
.mk .mk-p { color: #f5c53a; font-weight: 900; }
.mk button.mk-one { margin-right: 4px; background: rgba(255, 255, 255, .08); }
.mk-guide { min-height: 1.2em; color: #cfd4dc; }
.mk-guide b { color: #f5c53a; }
.mk-recent { display: flex; flex-direction: column; gap: 3px; font: 700 12px/1.4 "Nunito", sans-serif; color: #cfd4dc; }
.mk-recent b { color: #f5c53a; }
.mk-recent small { color: #8a929c; }

.ev-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; padding: 5px 12px; border: 1px solid rgba(245, 197, 58, .45); border-radius: 999px; background: linear-gradient(180deg, rgba(40, 30, 8, .88), rgba(20, 16, 6, .88)); color: #ffe7a0; font: 900 12.5px/1.2 "Nunito", sans-serif; text-shadow: 0 1px 0 #000; box-shadow: 0 0 18px rgba(245, 197, 58, .25); cursor: pointer; animation: evGlow 2.4s ease-in-out infinite; }
.ev-bar[hidden] { display: none; }
.ev-bar small { color: #c9b27a; font-weight: 800; margin-left: 2px; }
@keyframes evGlow { 50% { box-shadow: 0 0 26px rgba(245, 197, 58, .45); } }
@media (max-width: 900px) { .ev-bar { top: 198px; left: auto; right: 8px; transform: none; flex-direction: column; gap: 2px; padding: 4px 9px; border-radius: 10px; font-size: 10.5px; } }

.quest em { font: 700 10px/1.2 "Nunito", sans-serif; font-style: normal; color: rgba(242, 243, 245, .5); }

.daily-btn { position: fixed; top: 12px; right: 150px; z-index: 6; padding: 5px 12px; border: 1px solid rgba(245, 197, 58, .6); border-radius: 999px; background: linear-gradient(180deg, #3a2a08, #1d1506); color: #ffe7a0; font: 900 12.5px/1.2 "Nunito", sans-serif; cursor: pointer; animation: evGlow 2s ease-in-out infinite; }
.daily-btn[hidden] { display: none; }
.daily-btn:disabled { opacity: .6; }
@media (max-width: 900px) { .daily-btn { top: auto; bottom: 150px; right: auto; left: 9px; font-size: 11px; } }

.look-note { margin: 0 0 10px; padding: 8px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); color: #c9c2b4; font: 700 12.5px/1.45 "Nunito", sans-serif; }
.look-note.on { border-color: rgba(245, 197, 58, .5); background: rgba(245, 197, 58, .1); color: #ffe7a0; }
.look-note b { color: #f5c53a; }
#creator .off { opacity: .38; filter: grayscale(.5); }
#creator .off button, #creator .off input { cursor: not-allowed; }
.panel *::-webkit-scrollbar, .panel::-webkit-scrollbar, .wel-card::-webkit-scrollbar, .wel-card *::-webkit-scrollbar { width: 10px; height: 10px; }
.panel *::-webkit-scrollbar-track, .panel::-webkit-scrollbar-track, .wel-card::-webkit-scrollbar-track, .wel-card *::-webkit-scrollbar-track { margin: 14px 0; border-radius: 99px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.panel *::-webkit-scrollbar-thumb, .panel::-webkit-scrollbar-thumb, .wel-card::-webkit-scrollbar-thumb, .wel-card *::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 99px; background: linear-gradient(180deg, #f5c53a, #b8860f) padding-box; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.panel *::-webkit-scrollbar-thumb:hover, .panel::-webkit-scrollbar-thumb:hover, .wel-card::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffd96b, #d49c16) padding-box; }
.panel *::-webkit-scrollbar-corner, .panel::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { .panel, .panel *, .wel-card, .wel-card * { scrollbar-color: #d4a21c rgba(0, 0, 0, .28); scrollbar-width: thin; } }

#tree { width: min(760px, 96vw); }
.ico-tree { font-size: 17px; line-height: 1; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.tree-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 800 13px "Nunito", sans-serif; color: #cfc6b4; }
.tree-top b { color: #fff; font-size: 15px; }
.tree-top em { font-style: normal; color: #f5c53a; font-size: 18px; font-weight: 900; }
.tree-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tb { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .06); }
.tb-h { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; margin-bottom: 2px; }
.tb-h i { grid-row: span 2; font-style: normal; font-size: 22px; }
.tb-h b { font: 900 13.5px "Nunito", sans-serif; color: #ffe7a0; }
.tb-h small { font: 700 10.5px/1.3 "Nunito", sans-serif; color: #9e9584; }
.tn { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: #cfc6b4; font: 800 12px "Nunito", sans-serif; text-align: left; cursor: pointer; transition: transform .08s, border-color .15s, background .15s; }
.tn i { font-style: normal; font-size: 17px; text-align: center; }
.tn em { font-style: normal; font-size: 11px; color: #8e8676; }
.tn:hover { transform: translateY(-1px); border-color: rgba(245, 197, 58, .35); }
.tn.lock { opacity: .4; filter: grayscale(.7); }
.tn.can { border-color: rgba(245, 197, 58, .55); box-shadow: 0 0 10px rgba(245, 197, 58, .18); }
.tn.has { background: rgba(245, 197, 58, .1); color: #fff; }
.tn.has em { color: #f5c53a; }
.tn.max { background: linear-gradient(90deg, rgba(245, 197, 58, .25), rgba(245, 197, 58, .06)); border-color: rgba(245, 197, 58, .7); }
.tn.cap { border-width: 2px; }
.tn.cap.max { box-shadow: 0 0 16px rgba(255, 180, 60, .45); }
.tn.sel { outline: 2px solid #fff; outline-offset: 1px; }
.tree-tip { margin-top: 10px; min-height: 64px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); font: 700 12.5px/1.45 "Nunito", sans-serif; color: #e6dfd0; }
.tree-tip b { color: #ffe7a0; font-size: 14px; }
.tree-tip small { color: #9e9584; }
.tree-tip p { margin: 4px 0; }
.tree-tip button { margin-top: 4px; padding: 6px 16px; border-radius: 8px; border: 0; background: linear-gradient(180deg, #f5c53a, #c8930f); color: #2a1c02; font: 900 13px "Nunito", sans-serif; cursor: pointer; }
.tree-tip button:disabled { background: rgba(255, 255, 255, .1); color: #8e8676; cursor: default; }
#tree footer { display: flex; justify-content: space-between; gap: 8px; }
.forge-w { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rc, #666); background: rgba(0, 0, 0, .25); margin: 4px 0 8px; }
.forge-w i { font-style: normal; font-size: 30px; }
.forge-w b { display: block; color: #fff; font: 900 15px "Nunito", sans-serif; }
.forge-w small { color: #b9b09e; font: 700 12px "Nunito", sans-serif; }
.forge-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 800 12.5px "Nunito", sans-serif; color: #e6dfd0; }
.forge-row b { color: #f5c53a; }
.forge-row button, .forge-runes button { padding: 6px 14px; border-radius: 8px; border: 0; background: linear-gradient(180deg, #f5c53a, #c8930f); color: #2a1c02; font: 900 12.5px "Nunito", sans-serif; cursor: pointer; }
.forge-row button:disabled, .forge-runes button:disabled { background: rgba(255, 255, 255, .1); color: #8e8676; cursor: default; }
.forge-runes { display: flex; flex-wrap: wrap; gap: 6px; }
.forge-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.forge-perks span { padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .05); color: #8e8676; font: 800 11.5px "Nunito", sans-serif; }
.forge-perks span.on { background: rgba(245, 197, 58, .15); color: #ffe7a0; }
@media (max-width: 700px) { .tree-cols { grid-template-columns: 1fr; } .tn { padding: 8px; } }

.wel-beta { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: linear-gradient(90deg, #f5c53a, #ff8a3d); color: #1a1206; font: 900 11px/1.5 "Nunito", sans-serif; letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; }
.wel-betanote { margin: 6px 0 0; font: 700 11.5px/1.4 "Nunito", sans-serif; color: #9e9584; text-align: center; }
