/* ==========================================================================
   ETHERSCRIPT — UI styles (v0.11: "stone & parchment").
   The #ui layer is a fixed 960x540 space scaled to fit. Every frame, button and well is 1x pixel art
   from tools/ui_art.py (assets/ui/), laid on with border-image 9-slices so it sits at the world's
   own pixel density. Carved slate + bronze for things you work with; parchment for things you read.
   ========================================================================== */
@font-face { font-family: "Jersey 15"; src: url("../assets/fonts/jersey15.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Jacquarda Bastarda 9"; src: url("../assets/fonts/jacquarda9.woff2") format("woff2"); font-display: block; }

:root {
  /* text on stone */
  --ink: #e9d6ac; --ink2: #cdb68a; --muted: #9a8a6c; --title: #ffb43c; --hi: #fff1c4; --val: #ffffff;
  --gold: #f2c14e; --bronze: #c4913a; --edge: #4d4234;
  --verdant: #5fd07a; --ember: #ff8a3d; --tide: #5aa8ff; --hp: #d8323c; --mp: #3a78d8;
  --good: #8fe08a; --bad: #ff7a64;
  --shadow: 1px 1px 0 #000;
  --font: "Jersey 15", "Pixelify Sans", ui-monospace, monospace;
  --heading: "Jacquarda Bastarda 9", "Jersey 15", serif;
  /* text on parchment */
  --p-ink: #3a2614; --p-muted: #7a5a36; --p-head: #6a1c10; --p-rule: #a4814f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c0907; overflow: hidden; font-family: var(--font); color: var(--ink); color-scheme: dark; font-synthesis: none; }
#stage { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); bottom: env(safe-area-inset-bottom, 0px); display: grid; place-items: center; background: #0c0907; }
#view { position: relative; width: 960px; height: 540px; background: #16110d; overflow: hidden; }
#ui, #ui *, .tooltip, .ctxmenu, .screen-modal, .screen-modal * { image-rendering: pixelated; }
b, strong { font-weight: normal; color: var(--hi); }
.btn:focus-visible, .tab:focus-visible, .thumb:focus-visible, input:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* scrollbars: a bronze-capped slate thumb in a leather channel */
#ui ::-webkit-scrollbar, .screen-modal ::-webkit-scrollbar { width: 9px; }
#ui ::-webkit-scrollbar-track, .screen-modal ::-webkit-scrollbar-track { background: #16110d; border-left: 1px solid #0e0a07; box-shadow: inset 1px 0 0 #2b231c; }
#ui ::-webkit-scrollbar-thumb, .screen-modal ::-webkit-scrollbar-thumb { background: #5c5040; border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #857662, inset -1px -1px 0 #352c23; }
#ui ::-webkit-scrollbar-thumb:hover { background: #6e6150; }
.parch ::-webkit-scrollbar-track { background: #c3a36c !important; box-shadow: inset 1px 0 0 #a4814f !important; border-left-color: #806036 !important; }
.parch ::-webkit-scrollbar-thumb { background: #806036 !important; box-shadow: inset 1px 1px 0 #a4814f, inset -1px -1px 0 #5e4122 !important; border-color: #3a2614 !important; }
#ui * { scrollbar-width: thin; scrollbar-color: #5c5040 #16110d; }
#ui .parch * { scrollbar-color: #806036 #c3a36c; }

/* ---------------------------------------------------------------- coins */
.coins { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--hi); text-shadow: var(--shadow); }
.coins .cn { display: inline-flex; align-items: center; gap: 1px; }
.coin { display: inline-block; width: 11px; height: 11px; background-repeat: no-repeat; flex: none; vertical-align: -1px; }
.coin.g { background-image: url("../assets/ui/coin_gold.png"); }
.coin.s { background-image: url("../assets/ui/coin_silver.png"); }
.coin.b { background-image: url("../assets/ui/coin_bronze.png"); }
.coin.big { width: 22px; height: 22px; background-size: 22px 22px; }
.parch .coins { color: var(--p-ink); text-shadow: none; }

/* ---------------------------------------------------------------- touch controls (phones / tablets) */
.touch { position: absolute; inset: auto 0 18px 0; display: none; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.touch.on { display: flex; }
.hud.touchmode .hotbar { bottom: 150px; }
.touch button.small { font-size: 11px; }
.touch .pad, .touch .acts { display: grid; gap: 6px; pointer-events: auto; }
.touch .pad { grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(2, 44px); }
.touch .acts { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); }
.touch button { font-family: var(--font); font-size: 16px; color: var(--title); text-shadow: var(--shadow); touch-action: none; user-select: none; -webkit-user-select: none;
  border-style: solid; border-width: 3px 4px 4px 3px; border-image: url("../assets/ui/btn.png") 3 4 4 3 fill / 3px 4px 4px 3px; background: none; opacity: .88; }
.touch button:active, .touch button.down { border-image-source: url("../assets/ui/btn_gold.png"); color: #2a1606; text-shadow: none; }

/* ---------------------------------------------------------------- base widgets */
#game { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#ui { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui .hud { position: absolute; inset: 0; pointer-events: none; }
#ui .hud > * { pointer-events: auto; }
#ui .hud .toasts, #ui .hud .lootlog, #ui .hud .region, #ui .hud .tracker, #ui .hud .expbar { pointer-events: none; }
.ico { display: inline-block; background-repeat: no-repeat; image-rendering: pixelated; vertical-align: middle; flex: none; }
kbd { display: inline-block; font-family: var(--font); font-size: 11px; line-height: 1; padding: 1px 3px 2px; min-width: 11px; text-align: center;
  background: #2b231c; color: var(--title); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #5c5040, inset -1px -1px 0 #16110d; margin: 0 1px; text-shadow: var(--shadow); }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12px; } .small { font-size: 12px; } .bad { color: var(--bad); }
.parch .muted { color: var(--p-muted); }
input, textarea, select { font-family: var(--font); }

/* stone buttons: raised slate with orange-gold lettering; primary = cast bronze */
.btn { font-family: var(--font); font-size: 15px; line-height: 15px; color: var(--title); text-shadow: var(--shadow); cursor: pointer; background: none;
  border-style: solid; border-width: 3px 4px 4px 3px; border-image: url("../assets/ui/btn.png") 3 4 4 3 fill / 3px 4px 4px 3px;
  padding: 2px 9px 1px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.btn:hover:not(:disabled) { border-image-source: url("../assets/ui/btn_hover.png"); color: #ffd27a; }
.btn:active:not(:disabled) { border-image-source: url("../assets/ui/btn_down.png"); padding: 3px 8px 0 10px; }
.btn:disabled { filter: grayscale(.7) brightness(.72); cursor: default; }
.btn.primary { border-image-source: url("../assets/ui/btn_gold.png"); color: #2a1606; text-shadow: 1px 1px 0 rgba(255,244,200,.45); }
.btn.primary:hover:not(:disabled) { border-image-source: url("../assets/ui/btn_gold_hover.png"); color: #1a0c02; }
.btn.primary:active:not(:disabled) { border-image-source: url("../assets/ui/btn_gold_down.png"); }
.btn.danger { border-image-source: url("../assets/ui/btn_red.png"); color: #ffe2c8; }
.btn.danger:hover:not(:disabled) { border-image-source: url("../assets/ui/btn_red_hover.png"); color: #fff; }
.btn.sm { font-size: 13px; line-height: 13px; padding: 1px 6px 0; }
.btn.sm:active:not(:disabled) { padding: 2px 5px 0 7px; }
.btn.big { font-size: 19px; line-height: 19px; padding: 6px 16px 5px; }
.btn.big:active:not(:disabled) { padding: 7px 15px 4px 17px; }
.btn.ghost, .btn.ghost:hover:not(:disabled), .btn.ghost:active:not(:disabled) { border-image: none; border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); }
.btn.on { border-image-source: url("../assets/ui/btn_down.png"); color: var(--hi); }
.btn small { font-size: 12px; opacity: .8; margin-left: 4px; }
.btn.primary small { color: #3a2208; }

/* ---------------------------------------------------------------- loading */
#loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--ink); background: #16110d url("../assets/ui/stone_bg.png"); }
#loading .ltitle { font-family: var(--heading); font-size: 36px; letter-spacing: 4px; color: var(--title); text-shadow: 2px 2px 0 #000; }
#loading .lsub { font-size: 15px; color: var(--muted); }
#loadbar { width: 240px; height: 11px; border-style: solid; border-width: 3px; border-image: url("../assets/ui/bar.png") 3 fill / 3px; }
#loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verdant), var(--ember), var(--tide)); transition: width .15s; }

/* ---------------------------------------------------------------- HUD */
.plate { border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: #2b231c url("../assets/ui/stone_bg.png"); color: var(--ink); text-shadow: var(--shadow); }
.panel-lite { border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.9) url("../assets/ui/stone_bg.png"); color: var(--ink); text-shadow: var(--shadow); }
.status { position: absolute; left: 6px; top: 6px; width: 262px; display: flex; gap: 6px; padding: 3px 5px 3px 3px; }
#portrait { width: 44px !important; height: 54px !important; image-rendering: pixelated; flex: none;
  border-style: solid; border-width: 5px; border-image: url("../assets/ui/portrait.png") 5 / 5px; background: radial-gradient(ellipse at 50% 80%, #4a3e32, #1e1812); }
.status-body { flex: 1; min-width: 0; }
.nameline { display: flex; gap: 6px; align-items: baseline; font-size: 15px; line-height: 14px; color: var(--hi); margin: 1px 0 2px; white-space: nowrap; overflow: hidden; }
.nameline .lv { color: var(--title); font-size: 13px; }
.nameline .lv b { color: var(--title); }
.bar { position: relative; height: 11px; margin-bottom: 1px; border-style: solid; border-width: 3px; border-image: url("../assets/ui/bar.png") 3 fill / 3px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .2s; }
.bar.hp i { background: linear-gradient(#ff9a86 0 1px, #e8443c 1px 3px, #b81e2c 3px); }
.bar.mp i { background: linear-gradient(#a8d0ff 0 1px, #4a8ae8 1px 3px, #2456b8 3px); }
.bar span { position: absolute; inset: -3px 0; font-size: 12px; line-height: 11px; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
.bar.st { height: 7px; margin-top: 1px; border-width: 2px; border-image-width: 2px; }
.bar.st i { background: linear-gradient(#fff2a0 0 1px, #e8b030 1px); }
.bar.st span { font-size: 10px; line-height: 3px; }
.pips { display: flex; gap: 2px; align-items: center; height: 7px; margin: 2px 0 3px; }
.pips i { width: 10px; height: 5px; background: #16110d; border: 1px solid #0e0a07; }
.pips i.on { background: linear-gradient(#fff3a8, #f0bf4c); }
.scrip { position: absolute; right: 7px; top: 5px; font-size: 13px; display: flex; gap: 3px; align-items: center; }
.lanrow { display: flex; gap: 3px; margin-top: 2px; }
.gauge { display: flex; align-items: center; gap: 2px; flex: 1; padding: 1px 2px; border: 1px solid transparent; }
.gauge.att { border-color: #c4913a; background: rgba(255,210,120,.08); box-shadow: inset 1px 1px 0 #0e0a07; }
.gauge .gbar { flex: 1; height: 5px; background: #16110d; border: 1px solid #0e0a07; overflow: hidden; }
.gauge .gbar i { display: block; height: 100%; width: 0; transition: width .25s; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.gauge .gval { display: none; }
.lanrow.dark { filter: grayscale(.8) brightness(.7); }
.gauge.pulse { animation: gpulse .5s; }
@keyframes gpulse { 0% { background: rgba(255,230,160,.35); } 100% { background: transparent; } }

.tracker { position: absolute; left: 6px; top: 86px; width: 200px; display: flex; flex-direction: column; gap: 2px; }
#ui .hud .tracker { pointer-events: auto; }
.tq-head { font-family: var(--font); font-size: 13px; color: var(--title); text-shadow: var(--shadow); background: rgba(14,10,7,.62); border: 0; border-bottom: 1px solid #9c6a22; padding: 1px 6px 1px 4px; text-align: left; cursor: pointer; width: max-content; }
.tq { background: linear-gradient(90deg, rgba(14,10,7,.7), rgba(14,10,7,.35) 80%, transparent); border-left: 2px solid #c4913a; padding: 1px 6px; color: var(--ink); font-size: 13px; line-height: 13px; text-shadow: var(--shadow); }
.tq b { display: flex; justify-content: space-between; color: var(--hi); gap: 8px; }
.tq b em { font-style: normal; color: var(--title); }
.tq span { display: block; color: var(--good); }
.tq.done { border-color: var(--verdant); }

.minimap { position: absolute; right: 6px; top: 6px; width: 188px; height: 38px; image-rendering: pixelated;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; }
.region { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); font-family: var(--heading); font-size: 36px; color: #f6e3b0; opacity: 0; white-space: nowrap; letter-spacing: 1px;
  text-shadow: 2px 2px 0 #1a0e06, -1px -1px 0 #1a0e06, 1px -1px 0 #1a0e06, -1px 1px 0 #1a0e06, 0 0 14px rgba(0,0,0,.45); }
.region::after { content: ""; display: block; height: 4px; margin: 2px auto 0; width: 70%; background: url("../assets/ui/rule.png") repeat-x; }
.region.show { animation: region 3s ease forwards; }
@keyframes region { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* hotbar: a bronze-rimmed row of wells, keys stamped on little slate tabs */
.hotbar { position: absolute; right: 6px; bottom: 19px; display: flex; gap: 2px; align-items: center; padding: 3px;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.9) url("../assets/ui/stone_bg.png"); }
.hotbar .sep { width: 4px; align-self: stretch; margin: 0 2px; background: url("../assets/ui/rule.png") repeat-y; background-size: 4px 16px; opacity: .8; }
.qs, .ib { position: relative; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); padding: 0;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; background: none; }
.ib { cursor: pointer; font-family: var(--font); }
.ib:hover { border-image-source: url("../assets/ui/slot_hover.png"); }
.qs kbd, .ib kbd { position: absolute; left: -4px; top: -5px; font-size: 10px; padding: 0 2px 1px; min-width: 0; }
.qs em { position: absolute; right: 1px; bottom: -2px; font-style: normal; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.glyph { font-size: 15px; line-height: 1; color: var(--title); text-shadow: var(--shadow); font-weight: normal; }
.dot { width: 7px; height: 7px; background: var(--gold); position: absolute; top: -3px; right: -3px; border: 1px solid #0e0a07; box-shadow: 0 0 6px var(--gold); }

.expbar { position: absolute; left: 0; right: 0; bottom: 0; height: 15px; border-style: solid; border-width: 3px; border-image: url("../assets/ui/bar.png") 3 fill / 3px; }
.expbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#fff4b0 0 1px, #f0c040 1px 5px, #b8801a 5px); transition: width .3s; }
.expbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(14,10,7,.75) calc(10% - 1px) 10%); pointer-events: none; }
.expbar span { position: absolute; inset: -3px 0; z-index: 1; text-align: center; font-size: 12px; line-height: 14px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }

.lootlog { position: absolute; left: 272px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; }
.loot { display: flex; align-items: center; gap: 4px; background: linear-gradient(90deg, rgba(14,10,7,.78), rgba(14,10,7,.4) 85%, transparent); border-left: 2px solid #c4913a; padding: 1px 12px 1px 3px; font-size: 13px; text-shadow: var(--shadow); animation: slidein .2s; transition: opacity .5s; }
.loot.out, .toast.out { opacity: 0; }
@keyframes slidein { from { transform: translateX(-10px); opacity: 0; } }
.toasts { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.toast { color: var(--ink); font-size: 14px; padding: 2px 10px 1px; white-space: nowrap; text-shadow: var(--shadow); animation: slidedown .25s; transition: opacity .5s;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.94); }
.toast.gold { color: #ffd27a; }
.toast.quest { color: #c8ffd2; }
.toast.warn { color: #ffb4a0; }
.toast.legendary { color: #ffc4f2; font-size: 17px; box-shadow: 0 0 18px rgba(255,122,224,.45); }
@keyframes slidedown { from { transform: translateY(-8px); opacity: 0; } }
/* the chat box: bottom left, see-through (and click-through) unless you're typing in it, or pointing at it after you have */
.chatbox { position: absolute; left: 6px; bottom: 20px; width: 260px; display: flex; flex-direction: column; transition: opacity .35s, background-color .35s;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(22,17,13,.72); }
.chatbox.idle { opacity: .6; border-image: none; border-color: transparent; background: transparent; pointer-events: none !important; }
.chatbox.idle .chatlog { scrollbar-width: none; }
.chatbox.idle .cl { text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000; }
.chatlog { height: 72px; overflow-y: auto; padding: 1px 4px; font-size: 12px; line-height: 14px; scrollbar-width: thin; scrollbar-color: #6a5238 transparent; }
.chatlog .cl { color: #efe6d2; text-shadow: var(--shadow); word-wrap: break-word; }
.chatlog .cl b { color: #b8f0ff; font-weight: normal; }
.chatlog .cl.me b { color: #ffffff; }
.chatlog .cl.party, .chatlog .cl.party b { color: #8ff0a8; }
.chatlog .cl.sys { color: #ffd27a; }
.chatlog .cl.loot { color: #c9bfa8; }
.chatlog .cl.town b { color: #dfe9ff; }
.chatlog .cl.town { color: #d8d0c0; }
.chatin { font-family: var(--font); font-size: 12px; padding: 2px 5px; color: var(--hi); caret-color: var(--gold); display: none; text-shadow: var(--shadow);
  border: 0; border-top: 1px solid #4a3a28; background: #16110d; outline: none; }
.chatin::placeholder { color: var(--muted); }
.chatin.on { display: block; }
/* your group */
.partyframe { position: relative; width: 188px; padding: 3px 5px 5px; pointer-events: auto;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.9); }
.partyframe.hidden { display: none; }
.partyframe .ph { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8ff0a8; margin-bottom: 2px; }
.partyframe .ph .x { font-family: var(--font); font-size: 12px; color: #ffb4a0; background: none; border: 0; cursor: pointer; padding: 0; }
.partyframe .pm { margin-top: 3px; }
.partyframe .pn { display: flex; gap: 4px; align-items: baseline; font-size: 13px; line-height: 13px; color: #fff; text-shadow: var(--shadow); white-space: nowrap; overflow: hidden; }
.partyframe .pn b { font-weight: normal; }
.partyframe .pn small { font-size: 11px; color: var(--muted); }
.partyframe .crown { color: #ffd75a; font-style: normal; }
.partyframe .pbar { height: 5px; background: #3d2a36; border: 1px solid #1a1224; }
.partyframe .pbar i { display: block; height: 100%; background: #62ee6e; }
.partyframe .pm.far { opacity: .6; }
.partyframe .pm.down .pbar i { background: #ff5a5a; }

/* right column under the minimap: your group first, then status effects */
#ui .hud .rightcol { position: absolute; right: 6px; top: 47px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; pointer-events: none; }
/* players online: tucked against the top-left corner of the minimap */
.onlinebadge { position: absolute; right: 196px; top: 6px; font-size: 13px; line-height: 14px; padding: 1px 6px 2px; color: #8ff0a8; text-shadow: var(--shadow); white-space: nowrap;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.92); }
#ui .hud .onlinebadge { pointer-events: none; }
.onlinebadge.hidden { display: none; }
.statusfx { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; }
.statusfx span { font-size: 13px; padding: 0 6px; color: #fff; text-shadow: var(--shadow); border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: rgba(33,26,20,.92); }
.statusfx .wild { color: #ff9a86; }
.statusfx .skull { color: #ffffff; background: rgba(110,20,20,.92); }
.statusfx .poison { color: #b8f07a; }
.statusfx .cold { color: #bfe6ff; background: rgba(24,40,64,.92); }
.statusfx .warm { color: #ffc88a; }
.statusfx .eating { color: #ffc48a; }
.statusfx .online { color: #8ff0a8; }
.hud.inwild::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(160,20,30,.35); }
.qs.ammo em.low, .qs em.low { color: #ff8a7a; }
.glyph.dim { opacity: .35; font-size: 13px; }

/* ---------------------------------------------------------------- panels: carved slate */
.panel { position: absolute; font-size: 14px; color: var(--ink); text-shadow: var(--shadow);
  border-style: solid; border-width: 12px; border-image: url("../assets/ui/frame_stone.png") 12 / 12px; background: #2b231c url("../assets/ui/stone_bg.png");
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.ptitle { position: relative; display: flex; justify-content: center; align-items: center; height: 20px; margin: -5px -5px 0; padding: 0 22px 3px;
  border-style: solid; border-width: 0 9px; border-image: url("../assets/ui/plaque.png") 0 9 fill / 0 9px stretch; color: var(--title); }
.ptitle > span { font-family: var(--heading); font-size: 18px; line-height: 16px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 #000; }
.ptitle .x { position: absolute; right: -4px; top: 1px; width: 13px; height: 13px; padding: 0; border: 0; font-size: 0; cursor: pointer;
  background: url("../assets/ui/close.png") no-repeat; }
.ptitle .x:hover { background-image: url("../assets/ui/close_hover.png"); }
.pbody { padding: 7px 6px 5px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.parch .hint { color: var(--p-muted); }
/* a carved rule between sections */
.rule, .prof { background: url("../assets/ui/rule.png") repeat-x top left; }

/* rows on stone: shallow recessed strips */
.srow2 { display: flex; align-items: center; gap: 7px; padding: 3px 6px; background: rgba(14,10,7,.34); border-top: 1px solid rgba(0,0,0,.5); border-bottom: 1px solid rgba(133,118,98,.22); }
.srow2:hover { background: rgba(14,10,7,.5); }
.srow2 > div:nth-of-type(1) { flex: 1; min-width: 0; } .srow2 small { display: block; font-size: 12px; color: var(--muted); line-height: 12px; }
.srow2 b { color: var(--hi); }
.srow2.evo > div:nth-of-type(1) { flex: none; } .srow2.evo > div:nth-of-type(2) { flex: 1; }
.srow2 .needs { display: flex; gap: 6px; margin-top: 2px; }
.srow2 .need { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; cursor: help; }
.srow2 .need.ok { color: #9be85a; } .srow2 .need.no { color: #ff8a7a; }
/* world events (v0.17): a banner across the top of the screen, for everyone in the realm */
#eventbanner { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); pointer-events: none; z-index: 30; text-align: center;
  padding: 8px 28px 10px; background: linear-gradient(180deg, rgba(58,34,14,.92), rgba(30,18,10,.92)); border: 2px solid #c89424; box-shadow: 0 0 0 2px rgba(14,10,7,.7), 0 0 24px rgba(255,190,90,.35);
  color: #fff0c8; font-size: 22px; letter-spacing: 1px; text-shadow: 0 2px 0 #1a0e06; opacity: 0; transition: opacity .6s; }
#eventbanner.on { opacity: 1; }
#eventbanner small { display: block; font-size: 14px; color: #e8c890; letter-spacing: 0; }
.price { display: flex; align-items: center; gap: 3px; min-width: 58px; justify-content: flex-end; flex-direction: column; align-items: flex-end; }
.arrow { font-size: 18px; }

/* item wells */
.eslot, .cell { width: 40px; height: 40px; display: grid; place-items: center; position: relative;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; }
.eslot span { font-size: 10px; color: #6e6150; text-align: center; line-height: 10px; text-shadow: none; }
.eslot.has, .cell.has { cursor: pointer; }
.eslot.has:hover, .cell.has:hover { border-image-source: url("../assets/ui/slot_hover.png"); }
/* rarity: a coloured border inside the well (green / blue / pink / opal), plus a soft glow from below */
.t-uncommon { box-shadow: inset 0 0 0 2px #6fe08a, inset 0 0 0 3px rgba(14,10,7,.55), inset 0 -10px 12px -6px rgba(111,224,138,.35); }
.t-rare { box-shadow: inset 0 0 0 2px #6aa9ff, inset 0 0 0 3px rgba(14,10,7,.55), inset 0 -10px 12px -6px rgba(106,169,255,.4); }
.t-legendary { box-shadow: inset 0 0 0 2px #ff7ae0, inset 0 0 0 3px rgba(14,10,7,.55), inset 0 -10px 12px -6px rgba(255,122,224,.45), 0 0 6px rgba(255,122,224,.5); }
.t-mythic { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(14,10,7,.45), inset 0 -10px 12px -6px rgba(168,236,255,.5), 0 0 7px rgba(255,184,220,.6); animation: opal 2.4s linear infinite; }
@keyframes opal { 0% { box-shadow: inset 0 0 0 2px #ffd0ea, inset 0 -10px 12px -6px rgba(255,184,220,.6), 0 0 7px rgba(255,184,220,.6); } 33% { box-shadow: inset 0 0 0 2px #c8f2ff, inset 0 -10px 12px -6px rgba(168,236,255,.6), 0 0 7px rgba(168,236,255,.6); } 66% { box-shadow: inset 0 0 0 2px #d4ffe2, inset 0 -10px 12px -6px rgba(196,255,216,.6), 0 0 7px rgba(196,255,216,.6); } 100% { box-shadow: inset 0 0 0 2px #ffd0ea, inset 0 -10px 12px -6px rgba(255,184,220,.6), 0 0 7px rgba(255,184,220,.6); } }
.cell.dragging, .eslot.dragging { opacity: .35; }
.cell.dropto, .eslot.dropto { border-image-source: url("../assets/ui/slot_hover.png"); outline: 1px dashed #e3b85a; outline-offset: -3px; }
.inv-foot .btn.sm { margin-left: auto; margin-right: 8px; }
.cell em, .eslot em { position: absolute; right: 1px; bottom: -2px; font-style: normal; font-size: 12px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.cell .lock { position: absolute; left: 1px; top: 1px; width: 5px; height: 5px; background: #d8323c; border: 1px solid #0e0a07; }
.cell.sel { border-image-source: url("../assets/ui/slot_hover.png"); box-shadow: 0 0 0 1px #e3b85a; }

/* inventory */
.panel.inv { right: 8px; top: 50px; width: 486px; }
.inv-wrap { display: flex; gap: 8px; }
.doll { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
#doll { width: 128px; height: 140px; image-rendering: pixelated;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 / 2px; background: radial-gradient(ellipse at 50% 85%, #54463a 0%, #2a221b 70%); }
.eslots { display: grid; grid-template-columns: repeat(3, 36px) !important; gap: 3px; }
.eslots .eslot { width: 36px; height: 36px; }
.eslots .eslot .ico { transform: scale(0.85); }
.doll-stats { font-size: 13px; text-align: center; color: var(--ink2); line-height: 14px; }
.grid-side { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(6, 40px); gap: 3px; max-height: 300px; overflow-y: auto; align-content: start; }
.inv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 14px; padding: 2px 4px; background: rgba(14,10,7,.35); border-top: 1px solid rgba(0,0,0,.5); }

/* stats */
.panel.stats { right: 8px; top: 50px; width: 300px; }
.sp { margin-bottom: 4px; font-size: 14px; } .sp b { color: var(--title); font-size: 17px; }
.srow { display: flex; align-items: center; gap: 6px; padding: 2px 0; border-bottom: 1px solid rgba(0,0,0,.45); box-shadow: 0 1px 0 rgba(133,118,98,.18); }
.srow > div:first-child { flex: 1; } .srow small { display: block; font-size: 11px; line-height: 11px; color: var(--muted); }
.srow b { color: var(--hi); font-size: 15px; }
.sval { font-size: 17px; min-width: 50px; text-align: right; color: #fff; }
.bonus { color: var(--good); font-size: 13px; margin-left: 2px; }
.derived { display: flex; flex-wrap: wrap; gap: 1px 10px; margin-top: 6px; font-size: 12px; color: var(--ink2); }
.srow .add { color: var(--good); font-size: 14px; margin-left: 2px; }
.srow.pending { background: rgba(143,224,138,.08); }
.stat-confirm { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.prof { margin-top: 7px; padding-top: 7px; }
.prof-h { font-family: var(--heading); font-size: 18px; color: var(--title); margin-bottom: 3px; }
.prow { display: grid; grid-template-columns: 96px 40px 1fr; align-items: center; gap: 2px 6px; font-size: 13px; margin-bottom: 2px !important; }
.prow small { grid-column: 3; font-size: 11px; color: var(--muted); }
.prow b { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.prow b .ico { flex: none; }
.pbar { height: 7px; background: #16110d; border: 1px solid #0e0a07; box-shadow: inset 0 1px 0 #000; }
.pbar i { display: block; height: 100%; background: linear-gradient(#c8f080 0 1px, #6fbf5a 1px); }
#p-stats .pbody { max-height: 440px; overflow-y: auto; }

/* ---------------------------------------------------------------- panels: parchment (things you read) */
.panel.parch { color: var(--p-ink); text-shadow: none; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png");
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)) drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
.parch b, .parch strong { color: #1a0e06; }
.parch .ptitle { border: 0; border-image: none; height: auto; margin: -4px -4px 2px; padding: 0 20px 7px; color: var(--p-head); background: url("../assets/ui/flourish.png") no-repeat center bottom; }
.parch .ptitle > span { font-size: 27px; line-height: 24px; text-shadow: 1px 1px 0 rgba(255,244,210,.6); display: flex; align-items: center; gap: 6px; }
.parch .ptitle > span::before { content: ""; width: 16px; height: 16px; background: url("../assets/ui/seal.png"); flex: none; }
.parch .ptitle .x { right: -6px; top: -4px; }

/* quests */
.panel.quests { left: 50%; top: 52px; transform: translateX(-50%); width: 380px; }
.qsum { font-size: 13px; color: var(--p-muted); margin-bottom: 4px; text-align: center; }
.qscroll { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.qrow { padding: 4px 4px 6px; margin-bottom: 3px; border-bottom: 1px dashed var(--p-rule); }
.qrow:last-child { border-bottom: 0; }
.qrow.locked { opacity: .5; }
.qrow.avail .qhead b::before { content: "! "; color: #b8700a; }
.qrow.active .qhead b::before { content: "◆ "; color: #9c6a22; font-size: 11px; vertical-align: 1px; }
.qrow.done .qhead b { color: #5e4122; text-decoration: line-through; text-decoration-color: rgba(106,28,16,.6); }
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qhead b { font-size: 16px; color: #1a0e06; }
.qhead span { font-size: 12px; color: var(--p-muted); white-space: nowrap; }
.qrow.active .qhead span { color: #6a1c10; }
.qdesc { font-size: 14px; line-height: 14px; margin: 2px 0; }
.qmeta { font-size: 12px; color: var(--p-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* dialog: a hanging scroll between two wooden rods */
.panel.dialog { left: 50%; bottom: 26px; transform: translateX(-50%); width: 600px; overflow: visible; }
.panel.dialog::before, .panel.dialog::after { content: ""; position: absolute; top: -20px; bottom: -20px; width: 14px;
  border-style: solid; border-width: 9px 0; border-image: url("../assets/ui/roller.png") 9 0 fill / 9px 0 stretch; }
.panel.dialog::before { left: -20px; } .panel.dialog::after { right: -20px; }
.dlg { display: flex; gap: 10px; padding: 0 4px; }
.dport { width: 96px; height: 96px; image-rendering: pixelated; flex: none;
  border-style: solid; border-width: 5px; border-image: url("../assets/ui/portrait.png") 5 / 5px; background: radial-gradient(ellipse at 50% 80%, #fff6dc, #d8bd88 75%); }
.dtext { flex: 1; display: flex; flex-direction: column; }
.dname { font-family: var(--heading); font-size: 22px; line-height: 20px; color: var(--p-head); padding-bottom: 5px; background: url("../assets/ui/flourish.png") no-repeat left bottom; }
.dname small { font-family: var(--font); color: var(--p-muted); font-size: 13px; margin-left: 4px; }
.dtext p { font-size: 16px; line-height: 17px; margin: 5px 0 8px; min-height: 40px; white-space: pre-line; }
.dbtns { display: flex; gap: 6px; justify-content: flex-end; margin-top: auto; flex-wrap: wrap; }

/* shop / shrine */
.panel.shop { left: 50%; top: 40px; transform: translateX(-50%); width: 470px; }
.panel.shrine { left: 50%; top: 40px; transform: translateX(-50%); width: 600px; }
.tabs { display: flex; gap: 2px; align-items: flex-end; margin: 0 -2px 6px; padding: 0 2px; border-bottom: 2px solid #0e0a07; box-shadow: 0 1px 0 #5c5040; }
.tab { font-family: var(--font); font-size: 14px; line-height: 14px; color: var(--ink2); text-shadow: var(--shadow); cursor: pointer; background: none; margin-bottom: -2px;
  border-style: solid; border-width: 3px 3px 0; border-image: url("../assets/ui/tab.png") 3 3 0 3 fill / 3px 3px 0; padding: 2px 10px 3px; }
.tab:hover { color: var(--hi); }
.tab.on { border-image-source: url("../assets/ui/tab_on.png"); color: #ffe0a0; padding-bottom: 5px; }
.wallet { margin-left: auto; display: flex; gap: 3px; align-items: center; font-size: 14px; padding-bottom: 3px; }
.slist { max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.energies { display: flex; gap: 14px; margin-bottom: 6px; font-size: 14px; } .energies span { display: flex; align-items: center; gap: 3px; }
.orecost { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--good); cursor: help; }
.orecost.short { color: var(--bad); }
.orecost .ico { vertical-align: middle; }
.needs { display: flex; gap: 6px; margin-top: 1px; flex-wrap: wrap; }
.shop .slist > p.muted, .panel .slist > p.muted { padding: 2px 4px; margin: 2px 0 4px; }

/* menu */
.panel.menu { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 400px; }
.panel.menu .tabs { margin-bottom: 8px; }
.menu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.controls { margin-top: 10px; font-size: 13px; line-height: 2; }
.controls h4 { margin: 0; font-size: 14px; }
.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys td { padding: 2px 4px; border-bottom: 1px solid rgba(0,0,0,.4); vertical-align: middle; }
.keys td:first-child { white-space: nowrap; width: 116px; }
.volumes { margin-top: 10px; }
.volumes h4 { margin: 0 0 4px; font-size: 14px; }
.vol { display: grid; grid-template-columns: 60px 1fr 30px; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 3px; }
.vol input[type=range] { width: 100%; accent-color: #c4913a; }
.vol b { text-align: right; font-size: 13px; }
.savecode textarea { color: var(--ink); width: 100%; height: 110px; font-family: ui-monospace, monospace; font-size: 9px; padding: 6px; resize: none;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; background: none; text-shadow: none; }
.savecode .row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }

/* tooltip (lives outside the scaled #ui, so it scales itself by --uis) */
.tooltip { position: fixed; z-index: 50; display: none; max-width: calc(270px * var(--uis, 1)); color: var(--ink); pointer-events: none;
  border-style: solid; border-width: calc(4px * var(--uis, 1)); border-image: url("../assets/ui/frame_thin.png") 4 / calc(4px * var(--uis, 1));
  background: rgba(22,17,13,.97) url("../assets/ui/stone_bg.png"); background-size: calc(64px * var(--uis, 1));
  padding: calc(3px * var(--uis, 1)) calc(6px * var(--uis, 1)); font-family: var(--font); font-size: calc(13px * var(--uis, 1)); line-height: 1.15;
  text-shadow: calc(1px * var(--uis, 1)) calc(1px * var(--uis, 1)) 0 #000; }
#ui .tooltip { position: fixed; }
.tooltip b { color: #fff; }
.tt-name { font-size: 1.3em; } .tt-sub { color: var(--muted); font-size: .92em; margin-bottom: 2px; }
.tt-lore { color: #d8c49a; font-style: normal; margin-top: 3px; opacity: .9; }
.tt-evo { color: #c8ffd2; margin-top: 2px; } .tt-foot { color: #8a7a60; font-size: .9em; } .tt-hint { color: var(--title); margin-top: 3px; } .relic { color: #ff6a6a; }
.tooltip .coins { gap: .3em; } .tooltip .coin { width: calc(11px * var(--uis, 1)); height: calc(11px * var(--uis, 1)); background-size: 100%; }

/* death: the page goes grey; a notice is pinned over it */
.death { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,10,7,.45); backdrop-filter: grayscale(1) brightness(.8); }
.death-card { text-align: center; padding: 6px 30px 4px; color: var(--p-ink);
  border-style: solid; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.death-card h2 { margin: 0 0 4px; font-family: var(--heading); font-weight: normal; font-size: 30px; color: var(--p-head); }
.death-card p { margin: 3px 0; font-size: 15px; } .death-card .small { font-size: 13px; color: var(--p-muted); display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.death-card .big { font-family: var(--heading); font-size: 44px; margin: 2px 0 6px; color: var(--p-head); }

/* ---------------------------------------------------------------- screens */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.title .logo { width: 520px; filter: drop-shadow(0 3px 0 rgba(14,10,7,.6)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.subtitle { font-family: var(--heading); color: #f6e3b0; letter-spacing: 6px; font-size: 22px; text-shadow: 2px 2px 0 #1a0e06, 0 0 10px rgba(0,0,0,.5); margin: -14px 0 18px; }
.title-btns { display: flex; flex-direction: column; gap: 5px; align-items: stretch; width: 340px; padding: 8px;
  border-style: solid; border-width: 12px; border-image: url("../assets/ui/frame_stone.png") 12 / 12px; background: #2b231c url("../assets/ui/stone_bg.png"); }
.version { position: absolute; bottom: 8px; font-size: 13px; color: #f6e3b0; text-shadow: 1px 1px 0 #000; }
.version a { color: var(--title); }
.confirm-row { display: flex; flex-direction: column; gap: 6px; font-size: 14px; text-align: center; padding: 4px 6px; color: var(--p-ink); text-shadow: none;
  border-style: solid; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); margin-top: 2px; }
.confirm-row div { display: flex; gap: 6px; justify-content: center; }
.screen-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(14,10,7,.5); z-index: 40; font-size: 16px; font-family: var(--font); }
.screen-modal .panel { position: relative; width: 580px; max-width: 92vw; }
body > .screen-modal > .panel { transform: scale(var(--uis, 1)); }
.screen-modal p { line-height: 1.3; }
.panel.how { color: var(--p-ink); text-shadow: none; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.panel.how .ptitle { border: 0; border-image: none; height: auto; color: var(--p-head); padding-bottom: 7px; background: url("../assets/ui/flourish.png") no-repeat center bottom; }
.panel.how .ptitle > span { font-size: 27px; line-height: 24px; text-shadow: none; }
.panel.how b { color: #1a0e06; }
.create-card { position: relative; width: 790px; }
.create-body { display: flex; gap: 14px; }
.preview-col { width: 272px; display: flex; flex-direction: column; align-items: center; }
#cprev { width: 260px; height: 260px; image-rendering: pixelated;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 / 2px; background: radial-gradient(ellipse at 50% 85%, #6a5a48 0%, #2a221b 72%); }
.anim-btns { display: flex; gap: 3px; margin: 6px 0; }
.lore { font-size: 14px; color: var(--muted); text-align: center; margin: 4px 8px; line-height: 1.2; }
.pick-col { flex: 1; } .pick-col h4 { margin: 6px 0 3px; font-family: var(--heading); font-weight: normal; font-size: 18px; color: var(--title); }
.pick { display: flex; flex-wrap: wrap; gap: 3px; }
.thumb { width: 44px; height: 44px; image-rendering: pixelated; cursor: pointer;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; }
.thumb:hover { border-image-source: url("../assets/ui/slot_hover.png"); }
.thumb.sel { border-image-source: url("../assets/ui/slot_hover.png"); box-shadow: 0 0 0 1px #e3b85a, 0 0 8px rgba(227,184,90,.5); }
.namerow { display: flex; gap: 6px; margin-bottom: 10px; }
.namerow input { flex: 1; font-family: var(--font); font-size: 18px; padding: 3px 8px; color: var(--hi); caret-color: var(--gold); text-shadow: var(--shadow); outline: none;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; background: none; }
.namerow input::placeholder { color: #6e6150; }
.pwrow input { min-width: 0; }
/* online title: log in */
.login-form { display: flex; flex-direction: column; gap: 5px; }
.field { font-family: var(--font); font-size: 18px; padding: 3px 8px; color: var(--hi); caret-color: var(--gold); text-shadow: var(--shadow); outline: none; min-width: 0;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; background: none; }
.field::placeholder { color: #6e6150; }
.field:focus { border-image-source: url("../assets/ui/slot_hover.png"); }
.confirm-row .field { color: var(--p-ink); text-shadow: none; background: rgba(255,248,225,.55); border-image: none; border: 1px solid #8a6a3c; }
.title-msg { font-size: 14px; text-align: center; color: #e8dcc0; min-height: 0; line-height: 1.15; }
.title-msg:empty { display: none; }
.title-msg.warn { color: #ffb08a; }
.confirm-row .title-msg.warn { color: #9a2a14; }
.confirm-row b { color: #1a0e06; }
.title-btns.moving > :not(#t-move) { display: none; }
#c-msg { text-align: left; margin: -6px 0 6px; }
.title.online .logo { width: 440px; }
#c-mint { width: 100%; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* in-panel confirmation: a parchment note pinned over the panel */
.confirm-veil { position: absolute; inset: 0; background: rgba(14,10,7,.55); display: flex; align-items: center; justify-content: center; z-index: 5; }
.confirm-box { width: 82%; padding: 2px 6px; color: var(--p-ink); text-shadow: none;
  border-style: solid; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.confirm-box .ct { font-family: var(--heading); font-size: 20px; color: var(--p-head); margin-bottom: 4px; }
.confirm-box .cb { font-size: 14px; line-height: 1.2; margin-bottom: 8px; }
.confirm-box .cb b { color: #1a0e06; }
.confirm-box .cb small { color: var(--p-muted); font-size: 13px; }
.confirm-box .cbtns { display: flex; justify-content: flex-end; gap: 6px; }

.itemmenu { position: absolute; z-index: 8; display: flex; flex-direction: column; gap: 2px; padding: 3px; min-width: 150px;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: #211a14 url("../assets/ui/stone_bg.png"); }
.itemmenu .imh { font-size: 14px; color: var(--title); margin: 0 2px 2px; }
.itemmenu .btn { justify-content: flex-start; }
.ctxmenu { position: fixed; z-index: 100; display: flex; flex-direction: column; gap: 2px; padding: 3px; font-family: var(--font); transform: scale(var(--uis, 1)); transform-origin: 0 0;
  border-style: solid; border-width: 4px; border-image: url("../assets/ui/frame_thin.png") 4 / 4px; background: #211a14 url("../assets/ui/stone_bg.png"); image-rendering: pixelated; }
.ctxmenu .btn { justify-content: flex-start; }
.warnmodal { z-index: 50; }
.panel.warn { width: min(440px, 90vw); color: var(--p-ink); text-shadow: none; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.panel.warn .ptitle { border: 0; border-image: none; height: auto; color: #8a1a10; padding-bottom: 7px; background: url("../assets/ui/flourish.png") no-repeat center bottom; }
.panel.warn .ptitle > span { font-size: 27px; line-height: 24px; text-shadow: none; }
.panel.warn .pbody p { font-size: 15px; line-height: 1.25; }
.panel.warn b { color: #6a1c10; }
.panel.warn .cbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* vault + trade */
.grid.small { grid-template-columns: repeat(6, 34px); gap: 3px; max-height: 190px; }
.grid.small .cell { width: 34px; height: 34px; }
.grid.small .cell .ico { transform: scale(0.9); }
.grid p.muted { grid-column: 1 / -1; margin: 4px 0; font-size: 13px; }
.panel.vault { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 540px; }
.vault-wrap { display: flex; gap: 14px; }
.vault-grid { max-height: 260px; }
.vh { font-size: 15px; color: var(--title); margin-bottom: 3px; }
.vh small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.vbtns { display: flex; gap: 3px; margin-top: 6px; }
.panel.trade { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; }
.trade-top, .trade-bottom { display: flex; gap: 12px; }
.trade-top .offer { flex: 1; padding: 5px; min-height: 96px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000, 0 1px 0 rgba(133,118,98,.25); }
.trade-top .grid.small { max-height: 80px; }
.trade-bottom > div { flex: 1; }
.trade-bottom .grid.small { max-height: 120px; }
.trade-status { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 13px; flex-wrap: wrap; }
.accept { padding: 0 6px; background: #211a14; border: 1px solid #0e0a07; color: var(--muted); }
.accept.on { background: #2e5a24; color: #d8ffc8; border-color: #0e0a07; box-shadow: inset 1px 1px 0 #5a9a4a; }
.scripin { display: flex; align-items: center; gap: 4px; font-size: 14px; margin-top: 5px; flex-wrap: wrap; }
.scripin input, .coinin input { width: 70px; font-family: var(--font); font-size: 15px; color: var(--hi); text-shadow: var(--shadow); padding: 0 4px; outline: none; background: none;
  border-style: solid; border-width: 2px; border-image: url("../assets/ui/slot.png") 2 fill / 2px; }
.coinin { display: inline-flex; align-items: center; gap: 3px; }
.coinin label { display: inline-flex; align-items: center; gap: 2px; }
.coinin input { width: 44px; text-align: right; -moz-appearance: textfield; }
.coinin input.g { width: 54px; }
.coinin input::-webkit-outer-spin-button, .coinin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.panel.trade .cbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------------------------------------------------------------- Trading Post */
.panel.market { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 560px; }
.panel.market .slist { max-height: 300px; overflow-y: auto; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.chip { font: inherit; font-size: 13px; line-height: 13px; padding: 1px 7px 2px; cursor: pointer; color: var(--ink2); text-shadow: var(--shadow); background: #211a14; border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #4d4234; }
.chip:hover { color: var(--hi); }
.chip.on { background: #5a1c12; color: #ffe0a0; box-shadow: inset 1px 1px 0 #a04a2e; }
.chip.sort { margin-left: auto; }
.mk-sell { display: flex; gap: 12px; }
.mk-sell .grid.small { max-height: 250px; }
.mk-form { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; min-height: 150px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.mk-form .coinin input { width: 44px; } .mk-form .coinin input.g { width: 54px; }
.mk-form small { font-size: 12px; }
.mk-collect { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; margin-bottom: 8px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.mk-collect .big { font-size: 22px; display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- shrine: evolution paths */
.evo-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.evo-h { font-size: 15px; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.evo-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-bottom: 4px; padding: 3px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.evo-step { display: flex; flex-direction: column; align-items: center; width: 52px; opacity: 0.5; }
.evo-step.have { opacity: 1; }
.evo-step small { font-size: 10px; text-align: center; line-height: 10px; }
.panel.shrine .slist { max-height: 200px; overflow-y: auto; }

/* ---------------------------------------------------------------- energy paths */
.panel.path { left: 50%; top: 34px; transform: translateX(-50%); width: 650px; }
.path-head { display: flex; align-items: center; gap: 10px; border: 1px solid; padding: 4px 10px; background: rgba(14,10,7,.45); margin-bottom: 7px; flex-wrap: wrap; box-shadow: inset 1px 1px 0 #000; }
.path-head small { color: var(--muted); }
.path-head .pts { margin-left: auto; }
.ptier { margin-bottom: 7px; }
.ptier-h { font-size: 13px; color: var(--title); margin-bottom: 3px; }
.ptier.locked .pcards { opacity: 0.45; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pnode { padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000, 0 1px 0 rgba(133,118,98,.2); }
.pnode small { font-size: 12px; line-height: 12px; }
.pnode small.next { color: var(--muted); }
.pnode .pn-top { display: flex; justify-content: space-between; align-items: center; }
.pnode .pips { display: flex; gap: 2px; }
.pnode .pips i { width: 7px; height: 7px; background: #16110d; border: 1px solid #0e0a07; display: inline-block; }
.pnode button { margin-top: auto; align-self: flex-start; }
.path-teaser, .path-choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.path-teaser > div { border: 1px solid; padding: 7px; background: rgba(14,10,7,.4); display: flex; flex-direction: column; gap: 3px; text-align: left; }
.path-choose button { padding: 7px; display: flex; flex-direction: column; gap: 3px; text-align: left; align-items: flex-start; white-space: normal; }
.path-teaser small, .path-choose small { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- cursor: a plain bronze pointer (tip = hotspot) */
html, body, #view, #game, #ui, .tooltip { cursor: url("../assets/ui/cursor.png") 0 0, auto; }
.btn, button, a, .tab, .chip, .thumb, .cell.has, .eslot.has, .ib, .tq-head, .ptitle .x, label.btn, [data-tip], .evo-step, .touch button {
  cursor: url("../assets/ui/cursor_hot.png") 0 0, pointer; }
.btn:disabled { cursor: url("../assets/ui/cursor.png") 0 0, default; }
input[type=text], input:not([type]), input[type=number], textarea { cursor: text; }

/* patch notes: parchment, like the warnings */
.panel.patchnotes { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 500px; color: var(--p-ink); text-shadow: none; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.panel.patchnotes .ptitle { border: 0; border-image: none; height: auto; color: var(--p-head); padding-bottom: 7px; background: url("../assets/ui/flourish.png") no-repeat center bottom; }
.panel.patchnotes .ptitle > span { font-size: 24px; line-height: 24px; text-shadow: none; }
.panel.patchnotes .pn-sub { font-size: 11px; color: #7a5a32; margin: -2px 0 4px; letter-spacing: .5px; }
.panel.patchnotes .pn-intro { margin: 0 0 6px; font-style: italic; color: #5a3e22; }
.panel.patchnotes .pn-scroll { max-height: 262px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #9a7a4a transparent; }
.panel.patchnotes h4 { margin: 8px 0 2px; font-weight: normal; font-size: 15px; color: #7a2e14; border-bottom: 1px solid rgba(90,60,30,.25); }
.panel.patchnotes ul { margin: 2px 0 4px; padding-left: 16px; }
.panel.patchnotes li { margin: 2px 0; line-height: 15px; font-size: 13px; }
.panel.patchnotes li b { color: #3a2410; }
.panel.patchnotes kbd { color: var(--title); }
.panel.patchnotes .cbtns { margin-top: 8px; display: flex; justify-content: flex-end; }

/* v0.18: the enchanting table */
.panel.enchant { left: 50%; top: 36px; transform: translateX(-50%); width: 640px; }
.ench-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 15px; }
.ench-head b { display: flex; align-items: center; gap: 4px; color: var(--hi); }
.ench-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.panel.enchant .slist { max-height: 210px; }
.panel.sorcery { left: 50%; top: 36px; transform: translateX(-50%); width: 640px; }
.panel.sorcery .slist { max-height: 240px; }
.srow2.tome { cursor: pointer; }
.srow2.tome.on { background: rgba(120,90,150,.35); box-shadow: inset 2px 0 0 #d890ff; }
.srow2 small.bad, .tt-foot.bad { color: #ff8a7a; }
.odds { display: flex; gap: 8px; font-size: 12px; margin-top: 1px; }
.odds .ok { color: #9be85a; } .odds .fail { color: #c8c0b0; } .odds .brk { color: #ff8a7a; }
.ench-last { padding: 3px 6px; margin-bottom: 5px; font-size: 13px; border: 1px solid #0e0a07; background: rgba(14,10,7,.45); }
.ench-last.ok { color: #ffe08a; } .ench-last.fail { color: #c8c0b0; } .ench-last.brk { color: #ff8a7a; }
.ench-book { display: flex; flex-wrap: wrap; gap: 1px; padding: 3px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.ench-step { display: flex; flex-direction: column; align-items: center; width: 31px; opacity: 0.45; }
.ench-step.have { opacity: 1; }
.ench-step small { font-size: 10px; line-height: 10px; }
.tt-ench { margin: 1px 0; }
.tooltip .muted, .tooltip .bad { font-size: calc(12px * var(--uis, 1)); }

/* v0.19: Tansy's still, tonics */
.panel.alchemy { left: 50%; top: 36px; transform: translateX(-50%); width: 560px; }
.panel.alchemy .slist { max-height: 330px; }
.panel.alchemy .srow2 .btn { margin-left: 2px; }
.statusfx .tonic { font-weight: bold; }
/* v0.20: the Skill Tree graph (0.20.3: compact) */
.panel.path { width: 392px; }
.panel.path .path-head { padding: 2px 8px; margin-bottom: 4px; gap: 8px; font-size: 13px; }
.panel.path .hint { font-size: 11px; margin-top: 3px; }
.glyph-strip { display: flex; align-items: flex-start; gap: 1px; margin-top: 4px; padding: 3px 2px 2px; flex-wrap: nowrap !important; justify-content: space-between; background: rgba(14,10,7,.35); border: 1px solid #0e0a07; flex-wrap: wrap; }
.glyph-strip .gs-title { display: none; }
.glyph-strip .gs-title small { color: #b8a890; font-weight: normal; }
.gnode { width: 56px; display: flex; flex-direction: column; align-items: center; background: none; border: 1px solid transparent; padding: 2px 0; cursor: pointer; color: #e8dcc0; }
.gnode img { width: 21px; height: 21px; image-rendering: pixelated; }
.gnode small { font-size: 9px; line-height: 10px; text-align: center; }
.gnode.on { border-color: var(--el); background: rgba(255,255,255,.06); }
.gnode.locked { opacity: .55; cursor: help; }
.tree-wrap { position: relative; width: 360px; height: 308px; margin: 0 auto; background: rgba(14,10,7,.35); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.tree-lines { position: absolute; left: 0; top: 0; pointer-events: none; }
.tree-row { position: absolute; left: 0; right: 0; height: 48px; border-top: 1px dashed rgba(133,118,98,.18); pointer-events: none; }
.tree-row span { position: absolute; left: 4px; top: 1px; font-size: 10px; color: var(--muted); }
.tree-row.locked { background: rgba(0,0,0,.18); }
.tnode { position: absolute; width: 38px; height: 38px; padding: 0; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.tnode img { width: 32px; height: 32px; image-rendering: pixelated; }
.tnode.can img { filter: drop-shadow(0 0 3px var(--el)); }
.tnode.cap img { width: 36px; height: 36px; margin-top: -2px; }
.tnode em { position: absolute; right: -8px; top: 20px; font-style: normal; font-size: 10px; line-height: 10px; padding: 1px 2px; color: #fff; background: #16110d; border: 1px solid #0e0a07; }
.tnode.has em { color: var(--el); }
.tnode small { position: absolute; top: 34px; width: 96px; left: -29px; text-align: center; font-size: 10px; line-height: 10px; color: var(--ink2); text-shadow: var(--shadow); pointer-events: none; }
.tnode.locked small { color: #6a6058; }
.tnode:hover img { transform: translateY(-1px); }
/* (0.28.3) patch notes: page through every patch */
.panel.patchnotes .pn-nav { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.panel.patchnotes .pn-nav .btn[disabled] { opacity: .45; cursor: default; }
.panel.patchnotes .pn-nav [data-a=ok] { margin-left: auto; }
.panel.patchnotes .pn-sub b { color: #7a2e14; font-weight: bold; }

/* ---------------------------------------------------------------- (0.28.5) the title screen, rebuilt
   logo on top; a slate login card (left) beside a parchment card with the latest update (right); a footer strip with the
   server's status, How to play and the Discord */
.title.t2 { justify-content: flex-start; padding-top: 10px; }
.title.t2 .logo, .title.online.t2 .logo { width: 330px; }
.title.t2 .subtitle { margin: -12px 0 10px; font-size: 20px; }
.title-main { display: flex; gap: 14px; align-items: flex-start; }
.login-card { width: 334px; display: flex; flex-direction: column;
  border-style: solid; border-width: 12px; border-image: url("../assets/ui/frame_stone.png") 12 / 12px; background: #2b231c url("../assets/ui/stone_bg.png");
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.lc-head { display: flex; justify-content: center; align-items: center; height: 22px; margin: -5px -5px 4px; padding: 0 22px 3px;
  border-style: solid; border-width: 0 9px; border-image: url("../assets/ui/plaque.png") 0 9 fill / 0 9px stretch; color: var(--title); }
.lc-head span { font-family: var(--heading); font-size: 19px; line-height: 17px; text-shadow: 1px 1px 0 #000; }
.title-btns.lc-body { width: auto; padding: 4px 6px 6px; border: 0; border-image: none; background: none; gap: 6px; }
.lc-note { margin: 2px 4px 4px; font-size: 14px; line-height: 1.2; color: var(--ink2); text-align: center; }
.lc-or { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 2px 0; }
.lc-or::before, .lc-or::after { content: ""; flex: 1; height: 2px; background: #0e0a07; box-shadow: 0 1px 0 #5c5040; }
.fl { display: flex; flex-direction: column; gap: 1px; }
.fl > span:first-child { font-size: 13px; color: var(--ink2); letter-spacing: .5px; }
.pwwrap { position: relative; display: flex; }
.pwwrap .field { flex: 1; padding-right: 46px; }
.peek { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font); font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.peek:hover { color: var(--hi); }
.login-form { gap: 6px; }
.login-form .btn.big, .lc-body > .btn.big { width: 100%; }
.news-card { width: 296px; display: flex; flex-direction: column; color: var(--p-ink); text-shadow: none; padding: 2px 4px;
  border-style: solid; border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png");
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.news-card .nc-sub { font-size: 12px; color: var(--p-muted); letter-spacing: .5px; }
.news-card h3 { margin: 0 0 4px; font-family: var(--heading); font-weight: normal; font-size: 24px; line-height: 24px; color: var(--p-head); padding-bottom: 6px;
  background: url("../assets/ui/flourish.png") no-repeat left bottom; }
.news-card p { margin: 2px 0 6px; font-size: 14px; line-height: 1.2; font-style: italic; color: #5a3e22; }
.news-card ul { margin: 0 0 6px; padding-left: 16px; font-size: 14px; line-height: 1.25; flex: 1; }
.news-card li::marker { color: var(--p-head); }
.news-card .nc-btns { display: flex; justify-content: flex-end; }
.title-foot { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: #f6e3b0; text-shadow: 1px 1px 0 #000; }
.title-foot .ver { color: #d8c8a0; opacity: .85; }
.srv { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; background: rgba(14,10,7,.55); border: 1px solid rgba(0,0,0,.6); }
.srv i { width: 7px; height: 7px; background: #8fe08a; box-shadow: 0 0 0 1px #1a3a14, 0 0 6px #8fe08a; }
.srv.offline i { background: #d8c8a0; box-shadow: 0 0 0 1px #3a2e1c; }
.srv.down i { background: #ff7a64; box-shadow: 0 0 0 1px #3a1410, 0 0 6px #ff7a64; }
/* the Discord's own blurple, in the same pixel-button shape as everything else */
.btn.discord { border-image: none; border: 2px solid #1e2470; background: #5865f2; color: #ffffff; text-shadow: 1px 1px 0 #1e2470;
  box-shadow: inset 1px 1px 0 #8e98ff, inset -1px -1px 0 #3c45b8; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 3px 9px 1px; }
.btn.discord:hover { background: #6d78ff; color: #fff; }
.btn.discord:active { background: #4752c4; box-shadow: inset 1px 1px 0 #3c45b8; }
.menu-btns .btn.discord { padding: 5px 9px 3px; }
/* create character */
#c-mint { width: 100%; }
/* how to play: four pages */
.screen-modal.howm .panel.how { width: 640px; }
.how-tabs { display: flex; gap: 2px; margin: 0 -2px 8px; border-bottom: 2px solid #8a6a3c; }
.how-tabs .tab { color: var(--ink2); }
.how-tabs .tab.on { color: #ffe0a0; text-shadow: var(--shadow); }
.how-page { height: 290px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #806036 #c3a36c; }
.how-page p { margin: 0 0 8px; font-size: 15px; line-height: 1.28; }
.how-page kbd, .how-keys kbd { color: var(--title); }
.how-page .relic { color: #a8261c; }
.how-keys td { border-bottom-color: rgba(90,60,30,.25); font-size: 14px; }
.how-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.ch { padding: 0 3px; text-shadow: 1px 1px 0 #000; }
.ch.world { color: #f4ead4; background: #4a3a2a; } .ch.guild { color: #8fe08a; background: #1e3a1e; } .ch.party { color: #7cc8ff; background: #1a2c44; }
.screen-modal.notes .panel.patchnotes { position: relative; }

/* ---------------------------------------------------------------- (0.28.5) reports */
.panel.report { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 470px; color: var(--p-ink); text-shadow: none;
  border-width: 14px; border-image: url("../assets/ui/frame_parch.png") 14 / 14px; background: #e9d6a9 url("../assets/ui/parch_bg.png"); }
.panel.report .ptitle { border: 0; border-image: none; height: auto; color: var(--p-head); padding-bottom: 7px; background: url("../assets/ui/flourish.png") no-repeat center bottom; }
.panel.report .ptitle > span { font-size: 24px; line-height: 24px; text-shadow: none; }
.panel.report b { color: #6a1c10; }
.rp-lead { margin: 0 0 6px; font-size: 14px; line-height: 1.25; }
.rp-label { font-size: 13px; color: var(--p-muted); margin: 6px 0 3px; letter-spacing: .3px; }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 3px; }
.rp-text { width: 100%; resize: none; font-family: var(--font); font-size: 15px; line-height: 1.2; color: var(--p-ink); background: rgba(255,248,225,.6); border: 1px solid #8a6a3c; padding: 4px 6px; outline: none; }
.rp-text:focus { border-color: #6a1c10; box-shadow: 0 0 0 1px #c4913a; }
.rp-msg { min-height: 16px; font-size: 13px; color: #9a2a14; margin-top: 4px; }
.panel.report .cbtns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.ctxmenu .btn.danger { color: #ffe2c8; }

/* ---------------------------------------------------------------- (0.28.5) chat channels and their colours
   World: warm cream · Guild: green · Party: blue · System: gold · Loot: dusty tan */
.chattabs { display: flex; gap: 2px; padding: 0 0 2px; margin: 0 0 1px; border-bottom: 1px solid #0e0a07; box-shadow: 0 1px 0 #3a3024; }
.chatbox.idle .chattabs { visibility: hidden; }
.ctab { position: relative; font-family: var(--font); font-size: 12px; line-height: 12px; padding: 2px 6px 1px; background: rgba(14,10,7,.5); border: 1px solid #0e0a07; color: var(--muted); cursor: pointer; text-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 4px; }
.ctab i { width: 6px; height: 6px; display: inline-block; }
.ctab.world i { background: #f4ead4; } .ctab.guild i { background: #8fe08a; } .ctab.party i { background: #7cc8ff; }
.ctab:hover { color: var(--hi); }
.ctab.on { color: var(--hi); background: #3a2e22; box-shadow: inset 0 1px 0 #6a5a46; }
.ctab.world.on { color: #f4ead4; } .ctab.guild.on { color: #8fe08a; } .ctab.party.on { color: #7cc8ff; }
.ctab .unread { display: none; position: absolute; top: -2px; right: -2px; width: 5px; height: 5px; background: #ffd27a; box-shadow: 0 0 0 1px #000; }
.ctab.has .unread { display: block; }
.ctab.help { margin-left: auto; padding: 2px 5px 1px; }
.chatlog .cl.say { color: #f4ead4; } .chatlog .cl.say b { color: #cfe6ff; }
.chatlog .cl.me { color: #f4ead4; } .chatlog .cl.me b { color: #ffffff; }
.chatlog .cl.guild, .chatlog .cl.guild b, .chatlog .cl.gsys { color: #8fe08a; }
.chatlog .cl.guild b { color: #b8f5b0; }
.chatlog .cl.party, .chatlog .cl.party b, .chatlog .cl.psys { color: #7cc8ff; }
.chatlog .cl.party b { color: #b0dcff; }
.chatlog .cl.gsys, .chatlog .cl.psys { font-style: italic; }
.chatlog .ctag { opacity: .85; }
.chatin.ch-world { color: #f4ead4; } .chatin.ch-guild { color: #8fe08a; } .chatin.ch-party { color: #7cc8ff; }
.rp-kinds .btn.on { border-image-source: url("../assets/ui/btn_gold.png"); color: #2a1606; text-shadow: 1px 1px 0 rgba(255,244,200,.45); }
/* (0.29) menu options */
.opt-row { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; padding: 3px 4px; background: rgba(14,10,7,.35); border: 1px solid #0e0a07; }
.opt-row > span { flex: 1; color: var(--ink2); font-size: 14px; }
/* ---------------------------------------------------------------- (0.29) the shrines, widened */
.panel.shrine.wide { width: 900px; top: 24px; }
.panel.shrine.wide .energies { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.panel.shrine.wide .energies .muted { margin-left: auto; }
.shrine-cols { display: grid; grid-template-columns: 380px 1fr; gap: 10px; }
.shrine-left, .shrine-right { min-width: 0; }
.panel.shrine.wide .slist { max-height: 380px; overflow-y: auto; }
.panel.shrine.wide .srow2.evo { display: grid; grid-template-columns: 32px 14px 32px 1fr auto; align-items: center; gap: 4px; }
.evo-txt { min-width: 0; } .evo-txt small { display: block; line-height: 12px; }
.evo-act { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.evo-tabs { margin-bottom: 6px; }
.evo-tabs .tab small { opacity: .7; margin-left: 2px; }
.evo-paths2 { display: flex; flex-direction: column; gap: 5px; max-height: 356px; overflow-y: auto; }
.evo-paths2 .evo-chain { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 4px 6px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.evo-paths2 .evo-step { width: 74px; flex: 0 0 74px; }
.evo-paths2 .evo-step small { font-size: 11px; line-height: 11px; margin-top: 1px; }
.evo-arr { flex: 1 1 0; min-width: 30px; display: flex; flex-direction: column; align-items: center; font-size: 11px; line-height: 11px; }
.evo-arr .line { font-size: 20px; line-height: 14px; }
.evo-arr .cost { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.evo-arr .needs { display: flex; gap: 2px; color: var(--ink2); }
.evo-arr .needs span { display: inline-flex; align-items: center; }
/* ---------------------------------------------------------------- (0.29) the guild windows */
.btn.xs { font-size: 12px; line-height: 12px; padding: 0 5px; }
.panel.guild { left: 50%; top: 32px; transform: translateX(-50%); width: 560px; }
.panel.guild .pbody { max-height: 470px; overflow-y: auto; }
.g-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.g-tabs .btn.on, .g-em .btn.on { border-image-source: url("../assets/ui/btn_gold.png"); color: #2a1606; text-shadow: 1px 1px 0 rgba(255,244,200,.45); }
.g-found p { margin: 0 0 6px; }
.g-name { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; color: var(--title); }
.g-name input, .g-post textarea { flex: 1; font: inherit; font-size: 15px; color: #f4ead4; background: rgba(14,10,7,.6); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; padding: 3px 6px; }
.g-cost { margin: 4px 0 6px; }
.g-roster { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; margin-bottom: 6px; }
.g-mem { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: rgba(14,10,7,.35); border: 1px solid #0e0a07; color: var(--muted); }
.g-mem.on { color: #b8f5b0; }
.g-mem .dot { width: 6px; height: 6px; background: #5a5048; box-shadow: 0 0 0 1px #000; }
.g-mem.on .dot { background: #6ad07a; }
.g-mem .nm { flex: 1; } .g-mem .lv { color: var(--ink2); font-size: 13px; }
.g-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.g-projects { display: flex; flex-direction: column; gap: 6px; }
.g-proj { padding: 5px 7px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; }
.g-proj.done { opacity: .78; } .g-proj.locked { opacity: .6; } .g-proj.focus { outline: 1px solid #ffd27a; }
.g-ph { display: flex; justify-content: space-between; color: var(--title); }
.g-st { color: var(--ink2); font-size: 13px; } .g-proj.done .g-st { color: #8fe08a; }
.g-bar { height: 5px; background: #1a120c; margin: 3px 0; box-shadow: inset 1px 1px 0 #000; }
.g-bar i { display: block; height: 100%; background: linear-gradient(#ffd27a, #c88a2a); }
.g-proj.done .g-bar i { background: linear-gradient(#a8f08a, #4aa84a); }
.g-desc { font-size: 13px; line-height: 14px; color: var(--ink2); margin-bottom: 3px; }
.g-need { display: flex; align-items: center; gap: 5px; font-size: 13px; padding: 1px 0; }
.g-need .nm { flex: 1; } .g-need .ct { color: var(--ink2); min-width: 54px; text-align: right; }
.g-need.full .ct { color: #8fe08a; }
.g-colors { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.g-colors canvas { image-rendering: pixelated; background: rgba(14,10,7,.45); border: 1px solid #0e0a07; flex: 0 0 auto; }
.g-sw { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.g-sw .sw { width: 20px; height: 20px; border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.g-sw .sw.on { outline: 2px solid #ffd27a; }
.g-em { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.g-notes { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; margin-bottom: 6px; }
.g-note { padding: 4px 7px; background: #e8dcc0; color: #2a1a10; border: 1px solid #6a4a2a; box-shadow: 1px 1px 0 #000; font-size: 14px; line-height: 15px; }
.g-nh { display: flex; gap: 6px; align-items: center; font-size: 12px; } .g-nh .muted { color: #6a5a46; } .g-nh .x { margin-left: auto; }
.g-post { display: flex; gap: 6px; align-items: flex-end; } .g-post textarea { resize: none; font-size: 14px; }
.g-recs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.g-rec { padding: 4px 6px; background: rgba(14,10,7,.4); border: 1px solid #0e0a07; }
.g-rr { display: flex; justify-content: space-between; font-size: 13px; }
.g-tro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.g-plq { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px; text-align: center; background: rgba(60,36,20,.55); border: 1px solid #0e0a07; box-shadow: inset 1px 1px 0 #000; font-size: 12px; line-height: 12px; }
.g-plq .xs, .muted.xs { font-size: 11px; }
.g-hallinfo p { margin: 4px 0; }
.good { color: #8fe08a; }
