/* Duskmere: classic gump styling. Textures, frames, gems and cursors are generated at runtime
   by js/gumpart.js and js/cursor.js and published as CSS custom properties. */
:root {
  --ink: #2a1806;
  --ink-soft: #5a3a18;
  --rubric: #7a1a0a;
  --gold: #e8c46a;
  --gold-hi: #fbe7a1;
  --gold-lo: #6a4410;
  --serif: 'Crimson Text', 'Palatino Linotype', 'Book Antiqua', Georgia, 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --title: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --gothic: 'Pirata One', 'UnifrakturMaguntia', 'Old English Text MT', 'Cinzel', Georgia, serif;
  --sys: #b8cadc;
}
:root:lang(ja) {
  --serif: 'Crimson Text', 'Palatino Linotype', Georgia, 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
  --title: 'Cinzel', 'Palatino Linotype', Georgia, 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS Mincho', serif;
}
:root:lang(ko) {
  --serif: 'Crimson Text', 'Palatino Linotype', Georgia, 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', serif;
  --title: 'Cinzel', 'Palatino Linotype', Georgia, 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #000; color: #e8e0d0;
  font-family: var(--serif); user-select: none; cursor: var(--cur-ui, default);
}
button, select, label, a, input[type=range], input[type=checkbox] { cursor: inherit; }
input[type=text], input:not([type]), input[type=password], input[type=number] { cursor: text; }
body.targeting, body.targeting * { cursor: var(--cur-target, crosshair) !important; }
#game { position: fixed; left: 0; top: 0; display: block; image-rendering: pixelated; }
#overlay { position: fixed; left: 0; top: 0; display: block; pointer-events: none; }
body.dead #game { filter: grayscale(1) brightness(0.82) contrast(1.08); transition: filter 1.5s; }   /* names and your corpse's beacon stay in colour */
#loot-btn { position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%) scale(.9); z-index: 4001; display: none; padding: 6px 16px; font-size: 14px;
  box-shadow: 0 0 0 1px #000, 0 0 14px rgba(255,200,80,.55), 0 4px 10px rgba(0,0,0,.6); }
#loot-btn.on { display: block; animation: loot-in .18s ease-out forwards; }
#loot-btn i { font-style: normal; margin-right: 4px; }
#loot-btn small { font-size: 10px; opacity: .7; margin-left: 3px; }
@keyframes loot-in { to { transform: translateX(-50%) scale(1); } }
body.touch #loot-btn { left: auto; right: calc(200px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); transform: none; padding: 12px 18px; font-size: 16px; animation: none; }
body.touch #loot-btn small { display: none; }
.hidden { display: none !important; }

/* ================================================================ common widgets */
.ubtn {
  font: 700 12px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #3a1e06;
  padding: 4px 12px 3px; border: 1px solid #2a1604; border-radius: 2px;
  background: linear-gradient(#f4dc94, #d0a650 45%, #a67828 55%, #c89a44);
  box-shadow: inset 0 1px 0 rgba(255,250,220,.8), inset 0 -1px 0 rgba(80,40,0,.5), 0 1px 2px rgba(0,0,0,.5);
  text-shadow: 0 1px 0 rgba(255,240,190,.6);
}
.ubtn:hover:not(:disabled) { background: linear-gradient(#fff0b0, #e0b860 45%, #b88a34 55%, #d8aa54); color: #1a0c00; }
.ubtn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.ubtn:disabled { filter: grayscale(.7) brightness(.85); opacity: .7; }
.ubtn.small { font-size: 10px; padding: 3px 8px 2px; }
.ubtn.big { font: 700 17px var(--title); padding: 9px 22px 8px; letter-spacing: 2px; }
.ubtn.ok { background: linear-gradient(#fff2b8, #e8bc58 45%, #b8882a 55%, #dca848); }
.tabbtn {
  font: 600 13px var(--serif); color: var(--ink-soft); padding: 2px 10px; border: 1px solid rgba(90,58,26,.5);
  background: rgba(255,240,200,.25); border-radius: 2px 2px 0 0;
}
.tabbtn:hover { background: rgba(255,240,200,.5); color: var(--ink); }
.tabbtn.on { background: linear-gradient(#7a4a1c, #4a2a0c); color: #f8e6b8; border-color: #2a1404; }
.tabbtn em { font-style: normal; opacity: .7; font-size: 11px; }
.empty { padding: 18px 10px; text-align: center; color: #6a5030; font-style: italic; }
.err { color: #b8200c; min-height: 1.2em; text-align: center; font-weight: 600; }
.err.note { color: #3a5a1a; font-style: italic; }

/* Tooltips: a dark slate with gold rule, like the later classic client */
.tooltip {
  display: none; position: fixed; z-index: 99999; pointer-events: none; max-width: 300px;
  padding: 6px 10px 7px; color: #e8dcc0; font: 14px/1.3 var(--serif);
  background: linear-gradient(rgba(28,22,14,.96), rgba(16,12,8,.96)); border: 1px solid #8a6a2a;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255,220,140,.12), 0 4px 14px rgba(0,0,0,.6);
}
body.no-tips .tooltip { display: none !important; }
.tooltip .tt-name { font: 700 15px var(--serif); color: #ffd87a; margin-bottom: 2px; }
.tooltip .tt-words { font-style: italic; color: #e8a070; }
.tooltip .tt-dim { color: #b0a088; font-size: 13px; margin-top: 2px; }
.tooltip .tt-how { color: #9fc4f0; font-size: 13px; margin-top: 4px; font-style: italic; }
.tooltip .tt-good { color: #a8e08a; }
.tooltip .tt-name.art { color: #ffcf5a; text-shadow: 0 0 6px rgba(255,180,40,.5); }
.tooltip .tt-art { color: #ffcf5a; font-variant: small-caps; letter-spacing: .05em; }
.pd-trophy b { color: #e8c060; }
.citem.artifact img { filter: drop-shadow(0 0 3px #ffc040) drop-shadow(0 0 1px #ffe080); }
.drag-ghost { position: fixed; width: 44px; height: 44px; pointer-events: none; z-index: 99998; filter: drop-shadow(2px 5px 3px rgba(0,0,0,.6)); transform-origin: 0 0; }

/* ================================================================ HUD chrome */
#menubar {
  position: fixed; top: 4px; left: 8px; z-index: 5000; display: flex; align-items: center; gap: 1px; height: 28px;
  padding: 0 4px 0 2px; color: #e8d8a8; font: 600 13px var(--title);
  background: linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.25)), var(--tx-stone);
  border: 1px solid #000; box-shadow: inset 0 1px 0 #8a7a5a, inset 0 -1px 0 #2a2010, 0 0 0 1px #6a5228, 0 0 0 2px #000, 0 4px 10px rgba(0,0,0,.6);
  border-top: 2px solid #c8a050; border-bottom: 2px solid #8a6a2a;
}
#menubar button {
  font: 600 12px var(--title); letter-spacing: .5px; color: #ecd8a0; background: transparent; border: 1px solid transparent; padding: 3px 7px; height: 22px;
  text-shadow: 0 1px 1px #000;
}
#menubar button:hover { color: #fff4c8; border-color: #8a6a2a; background: linear-gradient(rgba(255,220,140,.18), rgba(255,220,140,.04)); }
.mb-grip { width: 10px; height: 20px; margin-right: 3px; background: repeating-linear-gradient(#c8a050 0 1px, transparent 1px 3px); opacity: .6; }
.mb-sep { width: 1px; height: 18px; background: #8a6a2a; margin: 0 6px; box-shadow: 1px 0 0 #000; }
#mb-region { font: 600 12px var(--title); color: #c8d8a8; margin-right: 8px; }
#mb-region.guarded { color: #a8d8ff; }
#mb-region.dungeon { color: #ff9a7a; }
#clock { color: #c8b890; font: italic 13px var(--serif); margin-right: 6px; }
#warmode { min-width: 52px; border: 1px solid #6a5228 !important; }
#warmode .war { display: none; color: #ff7a5a; }
#warmode.on .war { display: inline; }
#warmode.on .peace { display: none; }
#warmode.on { background: rgba(160,20,10,.35) !important; }
#menubar .mb-hide { font-size: 9px; padding: 3px 5px; opacity: .6; }

#gumps { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
#gumps > * { pointer-events: auto; }

#sysmsgs { position: fixed; left: 12px; bottom: 46px; width: min(620px, 62vw); pointer-events: none; z-index: 90; font: 700 15px/1.2 var(--serif); }
.sysline { color: var(--sys); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 4px #000; transition: opacity 2s; margin-top: 1px; }
.sysline.fade { opacity: 0; }
#hint {
  display: none; position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); padding: 4px 14px; z-index: 6000;
  font: 700 16px var(--serif); color: #cfe2ff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 0 0 6px #000;
  background: rgba(0,0,0,.35); border-top: 1px solid rgba(120,170,255,.5); border-bottom: 1px solid rgba(120,170,255,.5);
}
#chat-row { position: fixed; left: 12px; bottom: 12px; width: min(620px, 62vw); z-index: 5000; display: flex; align-items: stretch; gap: 4px; }
#chat-chan, #chat-send {
  flex: none; padding: 0 8px; font: 700 11px var(--title); letter-spacing: .5px; text-transform: uppercase; color: #f2d65a;
  background: rgba(0,0,0,.45); border: 1px solid rgba(232,196,106,.3); opacity: .7; text-shadow: 0 1px 1px #000;
}
#chat-chan:hover, #chat-send:hover { opacity: 1; border-color: var(--gold); }
#chat-send { display: none; color: #f0dca0; }
#chat-row.open #chat-send, body.touch #chat-send { display: block; }
#chat {
  flex: 1; min-width: 0; padding: 5px 8px;
  background: transparent; border: none; border-bottom: 1px solid rgba(232,196,106,.18); color: #f2d65a;
  font: 700 15px var(--serif); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; opacity: .6;
}
#chat::placeholder { color: rgba(220,210,180,.45); font-weight: 400; font-style: italic; }
#chat:focus, #chat.active { opacity: 1; outline: none; background: rgba(0,0,0,.45); border-bottom-color: var(--gold); }

#hotbar {
  position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 4000; display: flex; gap: 3px; padding: 4px;
  background: var(--tx-stone); border: 1px solid #000; box-shadow: inset 0 0 0 1px #8a6a2a, inset 0 0 0 2px #1a1408, 0 4px 10px rgba(0,0,0,.6);
}
.hb-slot { position: relative; width: 40px; height: 40px; background: rgba(0,0,0,.45); border: 1px solid #000; box-shadow: inset 0 0 0 1px rgba(200,160,80,.35), inset 0 2px 6px rgba(0,0,0,.8); }
.hb-slot img { width: 38px; height: 38px; display: block; margin: 0; }
.hb-slot b { position: absolute; left: 2px; top: 0; font: 700 11px var(--title); color: #f0dca0; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.hb-slot.empty b { opacity: .45; }
.hb-slot:hover, .hb-slot.over { box-shadow: inset 0 0 0 1px #ffd87a, 0 0 6px rgba(255,210,120,.6); }

#death { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 1.2s; z-index: 80; }
#death.show { opacity: 1; }
#death div { font: 72px var(--gothic); color: #d8d0c4; text-shadow: 0 0 2px #000, 2px 3px 0 #000, 0 0 30px rgba(0,0,0,.9); letter-spacing: 3px; }
#death p { margin: 6px 0 0; font: italic 600 18px var(--serif); color: #c8c0b4; text-shadow: 1px 1px 0 #000, 0 0 10px #000; }

#buffs { position: fixed; top: 40px; right: 12px; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; z-index: 30; }
.buff { font: 600 12px/1 var(--serif); padding: 4px 8px; border: 1px solid; background: rgba(12,10,6,.78); text-shadow: 0 1px 1px #000; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.buff i { opacity: .7; font-style: normal; margin-left: 4px; }
#trackarrow { position: fixed; display: none; width: 40px; height: 40px; pointer-events: none; z-index: 25; color: #f0c860; font-size: 30px; text-align: center; line-height: 40px; text-shadow: 0 0 4px #000, 0 0 2px #000; }
#trackarrow span { position: absolute; top: 38px; left: -40px; width: 120px; font: 600 12px var(--serif); color: #f0e0b0; display: block; }

/* ================================================================ gump base */
.gump { position: absolute; color: var(--ink); font: 15px/1.25 var(--serif); filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.gump.moving { filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.g-title { font: 24px/1.1 var(--gothic); text-align: center; color: var(--rubric); margin: 0 18px 6px; text-shadow: 0 1px 0 rgba(255,240,200,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-close {
  position: absolute; top: -15px; right: -15px; width: 15px; height: 15px; padding: 0; border: none; z-index: 3;
  background: var(--gem-red) center/contain no-repeat; filter: drop-shadow(0 1px 1px #000);
}
.g-close:hover { filter: brightness(1.35) drop-shadow(0 0 3px #ff8a6a); }

/* Gold filigree frame on parchment */
.fr-gold, .g-paperdoll {
  border: 16px solid transparent; border-image: var(--fr-gold) 20 / 16px round;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(110,60,10,.28)), var(--tx-parchment);
  padding: 4px 8px 8px;
}
.fr-bronze {
  border: 14px solid transparent; border-image: var(--fr-bronze) 20 / 14px round;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(110,60,10,.28)), var(--tx-parchment);
  padding: 4px 8px 8px;
}
.fr-stone {
  border: 12px solid transparent; border-image: var(--fr-stone) 20 / 12px round;
  background: var(--tx-marble); padding: 2px;
}

/* Rolled scroll (skills, journal) */
.g-scroll {
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(120,70,10,.22)), var(--tx-scroll);
  padding: 24px 18px 22px; margin: 12px 0;
  box-shadow: inset 7px 0 8px -6px rgba(70,35,0,.55), inset -7px 0 8px -6px rgba(70,35,0,.55);
}
.g-scroll::before, .g-scroll::after {
  content: ''; position: absolute; left: -13px; right: -13px; height: 22px; pointer-events: none;
  background: var(--roll-end) left center / 22px 26px no-repeat, var(--roll-end) right center / 22px 26px no-repeat, var(--roll) center / 64px 22px repeat-x;
  background-clip: border-box, border-box, content-box; padding: 0 9px;
}
.g-scroll::before { top: -11px; }
.g-scroll::after { bottom: -11px; transform: scaleY(-1); }
.g-scroll .g-close { top: 14px; right: 6px; }
.g-scroll .g-title { margin-top: 2px; }

/* ================================================================ status */
.g-status { border: 12px solid transparent; border-image: var(--fr-stone) 20 / 12px round; background: var(--tx-marble); padding: 0; }
.g-status.bar { width: 196px; padding: 0 4px 3px; }
.g-status.war { border-image-source: var(--fr-gold); }
.g-status.ghost { filter: grayscale(.7) drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.sb-name { font: 700 15px var(--serif); text-align: center; text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 0 0 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.sbar { position: relative; height: 8px; margin: 2px 2px; background: #0e0c0a; border: 1px solid #000; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.25); }
.sbar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .25s; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.sbar.hp i { background: linear-gradient(#ff6a50, #c8261a 60%, #7a1008); }
.sbar.hp.poison i { background: linear-gradient(#a8ff70, #3aa020 60%, #1a5a0a); }
.sbar.mana i { background: linear-gradient(#7aaaff, #2a5ad8 60%, #10287a); }
.sbar.stam i { background: linear-gradient(#e8ff7a, #a8c020 60%, #5a6a08); }
.g-status.full { width: 480px; padding: 0 8px 6px; }
.st-head { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 4px; border-bottom: 1px solid rgba(30,24,16,.5); box-shadow: 0 1px 0 rgba(255,255,255,.25); }
.st-name { font: 24px var(--gothic); text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.g-min { position: absolute; right: -2px; top: 4px; width: 14px; height: 14px; padding: 0; border: none; background: var(--gem-blue-sm) center/contain no-repeat; }
.g-min:hover { filter: brightness(1.4); }
.st-cols { display: grid; grid-template-columns: 0.7fr 1.5fr 1.1fr 1.15fr; gap: 0 10px; }
.st-col { display: flex; flex-direction: column; gap: 1px; }
.st-cell { display: flex; align-items: baseline; gap: 6px; padding: 1px 2px; border-bottom: 1px dotted rgba(30,24,16,.35); }
.st-cell label { font: 700 11px var(--title); color: #1e180e; letter-spacing: .5px; text-shadow: 0 1px 0 rgba(255,255,255,.35); min-width: 34px; }
.st-cell b { font: 700 15px var(--serif); color: #120c04; text-shadow: 0 1px 0 rgba(255,255,255,.4); display: flex; align-items: center; gap: 2px; flex: 1; }
.st-cell b small { font-size: 12px; font-weight: 600; color: #3a3020; }
.st-cell.warn b { color: #8a1a0a; }
.mbar { display: inline-block; position: relative; flex: 1; height: 6px; margin-left: 4px; background: #0e0c0a; border: 1px solid #000; min-width: 40px; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; }
.mbar.hp i { background: linear-gradient(#ff6a50, #9a1a10); } .mbar.hp.poison i { background: linear-gradient(#a8ff70, #2a7a10); }
.mbar.mana i { background: linear-gradient(#7aaaff, #1a3a9a); } .mbar.stam i { background: linear-gradient(#e8ff7a, #7a8a10); }
.st-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; margin-top: 4px; font: 600 12px var(--title); color: #1e180e; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.st-foot .war { color: #8a1a0a; } .st-foot .poison { color: #1a5a0a; } .st-foot .warn { color: #8a1a0a; }
.fac-dawnguard { color: #6a4a00; } .fac-ashen { color: #7a1a10; }

/* Health bars for other mobiles: a small stone bar edged in the mobile's notoriety colour */
.g-hbar { width: 172px; border: 10px solid transparent; border-image: var(--fr-stone) 20 / 10px round; background: linear-gradient(color-mix(in srgb, var(--noto, #888) 22%, transparent), transparent 70%), var(--tx-marble); padding: 0 4px 3px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--noto, #888) 70%, #000); }
.g-hbar.combatant { border-image-source: var(--fr-gold); }
.g-hbar.far { filter: grayscale(.8) brightness(.8) drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.hb-name { font: 700 14px var(--serif); text-align: center; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Spell and skill icons on screen */
.g-icon { width: 48px; height: 48px; padding: 2px; background: #120c06; border: 1px solid #c8a050; box-shadow: 0 0 0 1px #000; }
.g-icon img { width: 44px; height: 44px; display: block; pointer-events: none; }
.g-icon:hover { box-shadow: 0 0 0 1px #000, 0 0 8px rgba(255,210,120,.7); }

/* ================================================================ paperdoll */
.g-paperdoll { padding: 2px 6px 6px; }
.pd-main { display: flex; align-items: flex-start; gap: 4px; }
.pd-fig { display: block; background: radial-gradient(ellipse at 50% 92%, rgba(80,45,10,.28), transparent 45%); }
.pd-slots { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.slot {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(80,48,14,.18); border: 1px solid rgba(90,58,26,.55); box-shadow: inset 0 0 6px rgba(60,35,10,.4), 0 1px 0 rgba(255,240,200,.4);
}
.slot.empty { opacity: .55; }
.slot img { width: 34px; height: 34px; pointer-events: none; }
.slot[data-item]:hover { box-shadow: inset 0 0 6px rgba(60,35,10,.4), 0 0 5px rgba(255,200,100,.9); }
.pd-btns { display: flex; flex-direction: column; gap: 4px; margin-left: 6px; padding-top: 4px; width: 82px; }
.pd-btn {
  font: 700 11px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #3a1e06; text-align: center;
  height: 27px; padding: 0 4px; border: 1px solid #2a1604;
  background: linear-gradient(#f8e4a8, #d8b464 40%, #b08430 60%, #d0a450);
  box-shadow: inset 0 1px 0 rgba(255,250,220,.85), inset 0 -2px 0 rgba(90,50,0,.35), 0 0 0 1px rgba(255,220,140,.35), 0 2px 3px rgba(0,0,0,.4);
  text-shadow: 0 1px 0 rgba(255,240,190,.7);
}
.pd-btn:hover { background: linear-gradient(#fff2c0, #e8c470 40%, #c09440 60%, #e0b460); color: #1a0c00; }
.pd-btn:active { transform: translateY(1px); }
.pd-btn.war { color: #fff0e0; background: linear-gradient(#e86a50, #b02a18 45%, #7a1408 60%, #a02818); text-shadow: 0 1px 0 #000; }
.pd-btn.peace { color: #0e2a5a; }
.pd-btn.small { height: 22px; font-size: 10px; }
.pd-btn.wide { display: block; margin: 6px auto 0; width: 140px; }
.pd-name { text-align: center; margin-top: 4px; padding: 3px 8px 4px; border-top: 1px solid rgba(90,58,26,.45); }
.pd-name b { display: block; font: 24px/1.05 var(--gothic); color: var(--rubric); text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.pd-name span { display: block; font: italic 600 14px var(--serif); color: var(--ink-soft); }
.pd-tags { font-size: 13px; margin-top: 2px; line-height: 1.45; text-align: center; color: var(--ink-soft); }

/* ================================================================ containers */
.g-cont { background-repeat: no-repeat; background-size: 100% 100%; padding: 0; }
.g-cont .gump-body { position: relative; width: 100%; height: 100%; }
.g-cont .g-close { top: 4px; right: 6px; }
.cont-area { position: absolute; }
.citem { position: absolute; width: 44px; height: 44px; }
.citem img { width: 44px; height: 44px; display: block; pointer-events: none; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.65)); }
.citem:hover img { filter: drop-shadow(0 0 2px #ffe9a8) drop-shadow(1px 2px 1px rgba(0,0,0,.65)); }
.citem.lifted { opacity: .25; }
.citem .amt { position: absolute; right: 1px; bottom: 0; font: 700 11px var(--serif); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; pointer-events: none; }
.cont-label {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); white-space: nowrap; padding: 1px 8px;
  font: 600 12px var(--serif); color: #f0dcb0; background: rgba(20,10,2,.65); border: 1px solid rgba(200,160,80,.4); text-shadow: 0 1px 1px #000;
}
.cont-woodchest .cont-label, .cont-metalchest .cont-label { bottom: auto; top: 14px; }
.cont-corpse .cont-label { bottom: 6px; }

.g-amount { width: 250px; }
.am-row { display: flex; gap: 8px; align-items: center; }
.am-row b { display: block; font: 600 15px var(--serif); }
.am-row small { display: block; font-style: italic; color: var(--ink-soft); }
.am-slider { width: 100%; margin: 8px 0 6px; }
.am-foot { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.am-num { width: 76px; }

/* parchment form controls */
.gump input[type=number], .gump input:not([type]), .gump input[type=text], .gump select, .menu-input {
  font: 600 15px var(--serif); color: var(--ink); padding: 3px 6px; border: 1px solid #5a3a18; border-radius: 0;
  background: linear-gradient(rgba(255,250,235,.75), rgba(240,225,190,.75)); box-shadow: inset 0 1px 3px rgba(60,30,0,.4);
}
.gump input:focus, .gump select:focus { outline: 1px solid #b8862a; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(#2a1a08, #5a3a18); border: 1px solid #1a0e02; box-shadow: 0 1px 0 rgba(255,240,200,.45), inset 0 1px 2px #000; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border: none; background: var(--gem-blue) center/contain no-repeat; filter: drop-shadow(0 1px 1px #000); }
input[type=range]::-moz-range-track { height: 6px; background: linear-gradient(#2a1a08, #5a3a18); border: 1px solid #1a0e02; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: none; background: var(--gem-blue) center/contain no-repeat; }
input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #3a2208; background: rgba(255,245,220,.6); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); position: relative; }
input[type=checkbox]:checked { background: var(--gem-green) center/14px no-repeat, rgba(255,245,220,.6); }

/* ================================================================ skills */
.g-skills { width: 340px; }
.sk-view { display: flex; gap: 3px; border-bottom: 1px solid rgba(90,58,26,.5); margin-bottom: 4px; }
.sk-list { max-height: 400px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; }
.sk-grp { display: flex; align-items: center; gap: 5px; font: 700 13px var(--title); color: var(--rubric); margin: 6px 0 1px; border-bottom: 1px solid rgba(90,58,26,.35); letter-spacing: .5px; }
.sk-grp i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--rubric); }
.sk-grp.shut i { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--rubric); border-right: 0; margin-left: 2px; }
.sk-grp em { margin-left: auto; font: italic 600 12px var(--serif); color: var(--ink-soft); }
.sk-row { display: flex; align-items: center; gap: 6px; padding: 0 2px; font-size: 15px; line-height: 19px; }
.sk-row:hover { background: rgba(120,70,10,.1); }
.sk-name { flex: 1; white-space: nowrap; }
.sk-row b { min-width: 40px; text-align: right; font-weight: 600; }
.sk-row.zero { color: #7a6448; }
.sk-use { width: 14px; height: 14px; padding: 0; border: none; background: var(--gem-blue) center/contain no-repeat; flex: none; }
.sk-use:hover { filter: brightness(1.4) drop-shadow(0 0 2px #8ab8ff); }
.sk-use.none { background: none; }
.sk-lock { width: 13px; height: 13px; padding: 0; border: none; background: center/contain no-repeat; flex: none; }
.sk-lock.up { background-image: var(--lock-up); }
.sk-lock.down { background-image: var(--lock-down); }
.sk-lock.locked { background-image: var(--lock-locked); }
.sk-lock:hover { filter: brightness(1.3); }
.st-lock { margin-left: auto; align-self: center; }
.sk-total { margin-top: 6px; text-align: right; font: 600 14px var(--serif); border-top: 1px solid rgba(90,58,26,.45); padding-top: 3px; color: var(--ink-soft); }
.sk-total b { color: var(--ink); }
.sk-total.full b { color: var(--rubric); }
.sk-help { font: italic 12px var(--serif); color: #6a5030; text-align: center; margin-top: 2px; }

/* ================================================================ journal */
.jr-tabs { display: flex; gap: 3px; border-bottom: 1px solid rgba(90,58,26,.5); }
.jr-list {
  height: 240px; width: 100%; min-height: 80px; min-width: 260px; overflow-y: auto; font: 600 14px/1.3 var(--serif); user-select: text; padding: 4px 4px 2px;
  resize: both; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; cursor: inherit;
}
.jr-line { padding: 0 2px; }
.jr-line time { font: 11px var(--serif); color: #8a7050; margin-right: 6px; }
.jr-speech { color: #6a4a00; } .jr-system { color: #1e3a5a; } .jr-skill { color: #1a3a8a; }
.g-journal .jr-line:nth-child(odd) { background: rgba(120,80,20,.05); }

/* ================================================================ spellbook */
.g-book {
  width: 600px; padding: 26px 14px 14px; border-radius: 4px 8px 8px 4px;
  background: linear-gradient(rgba(130,14,10,.55), rgba(70,4,2,.7)), var(--tx-leather);
  border: 2px solid #1a0402;
  box-shadow: inset 0 0 0 3px #3a0a06, inset 0 0 0 4px #c8a050, inset 0 0 0 6px #3a0a06, inset 0 0 30px rgba(0,0,0,.6);
}
.g-book .g-close { top: 6px; right: 8px; }
.g-book.necro {
  background: linear-gradient(rgba(20,24,22,.7), rgba(6,8,8,.85)), var(--tx-leather);
  border-color: #050606;
  box-shadow: inset 0 0 0 3px #101412, inset 0 0 0 4px #b8b098, inset 0 0 0 6px #101412, inset 0 0 30px rgba(0,0,0,.7);
}
.g-book.necro .bk-tab { background: linear-gradient(#4a524c, #1a1e1c); color: #e0dccc; border-color: #050606; }
.g-book.necro .bk-tab.on { background: linear-gradient(#e8e0c8, #9a927a); color: #1a1a14; }
.g-book.necro .bk-page h4, .g-book.necro .sp-detail h3 { color: #3a4a3a; }
.bk-tab.bk-swap { margin-left: 10px; }
.bk-tabs { position: absolute; top: 4px; left: 30px; display: flex; gap: 4px; }
.bk-tab {
  font: 700 11px var(--title); min-width: 32px; height: 20px; padding: 0 5px; color: #f6e2b0; border: 1px solid #1a0402; border-bottom: none;
  background: linear-gradient(#a03a24, #5a1208); box-shadow: inset 0 1px 0 rgba(255,200,160,.4); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.bk-tab.on { background: linear-gradient(#f2d488, #b08030); color: #3a1806; height: 24px; }
.bk-tab:hover { filter: brightness(1.2); }
.bk-pages { display: grid; grid-template-columns: 1fr 1fr; background: var(--tx-scroll); border: 1px solid #2a1404; box-shadow: 0 2px 6px rgba(0,0,0,.6); min-height: 360px; }
.bk-page { padding: 10px 14px; position: relative; }
.bk-page.left { box-shadow: inset -14px 0 14px -10px rgba(60,30,0,.55); border-right: 1px solid rgba(60,30,0,.4); }
.bk-page.right { box-shadow: inset 14px 0 14px -10px rgba(60,30,0,.45); }
.bk-page h4 { margin: 0 0 6px; font: 22px var(--gothic); color: var(--rubric); text-align: center; }
.sp-list { display: flex; flex-direction: column; }
.sp-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; font: 600 15px var(--serif); }
.sp-row img { width: 22px; height: 22px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.sp-row:hover { background: rgba(120,40,10,.12); }
.sp-row.sel { background: rgba(120,40,10,.2); color: var(--rubric); }
.sp-row.unknown { opacity: .4; font-weight: 400; }
.bk-foot { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: italic 12px var(--serif); color: #6a5030; }
.sp-detail { text-align: center; }
.sp-big { width: 48px; height: 48px; box-shadow: 0 0 0 1px #000, 0 2px 4px rgba(0,0,0,.5); }
.sp-detail h3 { margin: 4px 0 0; font: 22px var(--gothic); color: var(--rubric); }
.sp-words { font: italic 600 16px var(--serif); color: #8a3a10; letter-spacing: 1px; }
.sp-detail p { margin: 6px 0; font-size: 14px; line-height: 1.3; }
.sp-meta { font-size: 13px; color: var(--ink-soft); }
.sp-meta b { color: #1a3a8a; font-size: 15px; }
.sp-regs-h { margin-top: 6px; font: 700 11px var(--title); letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }
.sp-regs { list-style: none; padding: 0; margin: 2px 0 10px; font-size: 14px; }
.sp-regs em { font-style: normal; color: #6a5030; font-size: 12px; }
.sp-regs li.short { color: #9a1a0a; }
.sp-empty { padding: 60px 14px; text-align: center; font-style: italic; color: #6a5030; }

/* ================================================================ vendor / craft / menus */
.vd-tabs, .cr-tabs { display: flex; gap: 3px; flex-wrap: wrap; border-bottom: 1px solid rgba(90,58,26,.5); margin-bottom: 4px; }
.vd-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.vd-list { max-height: 360px; min-height: 200px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #8a6a3a transparent; }
.vd-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-bottom: 1px solid rgba(90,58,26,.18); }
.vd-row:hover { background: rgba(120,70,10,.12); }
.vd-row img { width: 36px; height: 36px; flex: none; }
.vd-name { flex: 1; font: 600 15px var(--serif); }
.vd-name small { display: block; font: 13px var(--serif); color: var(--ink-soft); }
.vd-add { font: 700 16px var(--title); color: var(--rubric); opacity: .5; padding: 0 4px; }
.vd-row:hover .vd-add { opacity: 1; }
.vd-bill { border-left: 1px solid rgba(90,58,26,.4); padding-left: 10px; display: flex; flex-direction: column; }
.vd-bill h4 { margin: 0 0 4px; font: 20px var(--gothic); color: var(--rubric); text-align: center; }
.vd-lines { flex: 1; min-height: 120px; max-height: 260px; overflow-y: auto; }
.vd-line { display: flex; align-items: center; gap: 4px; font-size: 14px; padding: 1px 0; border-bottom: 1px dotted rgba(90,58,26,.35); }
.vd-lname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-ctr { display: flex; align-items: center; }
.vd-ctr button { width: 18px; height: 18px; padding: 0; font: 700 13px/1 var(--serif); color: #3a1e06; border: 1px solid #3a2208; background: linear-gradient(#f4dc94, #b88a34); }
.vd-ctr input { width: 38px !important; height: 18px; text-align: center; padding: 0 2px !important; font-size: 13px !important; }
.vd-line > b { min-width: 46px; text-align: right; }
.vd-total { display: flex; justify-content: space-between; font: 700 15px var(--serif); border-top: 2px solid rgba(90,58,26,.6); margin-top: 4px; padding-top: 3px; }
.vd-total b.short { color: #9a1a0a; }
.vd-gold { font-size: 13px; color: var(--ink-soft); text-align: right; }
.vd-foot { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.mats { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-bottom: 4px; font: 700 11px var(--title); color: var(--ink-soft); text-transform: uppercase; }
.mats span { margin-right: 4px; }
.cr-list { max-height: 330px; }
.cr-row .ubtn { flex: none; }
.cr-chance { font: 700 14px var(--serif); min-width: 40px; text-align: right; color: #2a5a1a; }
.cr-chance.lo { color: #8a5a0a; } .cr-chance.no { color: #9a1a0a; }
.vd-row.dim { opacity: .55; }
.menu-body { font-size: 15px; line-height: 1.4; margin-bottom: 8px; max-height: 320px; overflow-y: auto; }
.menu-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; font: 700 11px var(--title); letter-spacing: .5px; color: var(--ink-soft); text-transform: uppercase; }
.menu-input { width: 100%; font-size: 16px !important; padding: 5px 8px !important; }
.menu-opts { display: flex; flex-direction: column; gap: 1px; }
.menu-opt { display: flex; align-items: center; gap: 8px; text-align: left; font: 600 15px var(--serif); color: var(--ink); padding: 3px 6px; background: transparent; border: 1px solid transparent; }
.menu-opt i { width: 14px; height: 14px; flex: none; background: var(--gem-blue) center/contain no-repeat; }
.menu-opt:hover:not(:disabled) { background: rgba(120,70,10,.14); border-color: rgba(90,58,26,.35); }
.menu-opt:disabled { opacity: .45; }
.menu-opt:disabled i { filter: grayscale(1); }
.menu-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatch { width: 22px; height: 22px; border: 2px solid #2a1a0a; border-radius: 50%; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px #f6e6c0, 0 0 0 4px #6a4a24; }
.swatch.big { width: 40px; height: 40px; border-radius: 3px; border: 2px solid #3a2a18; }
.swatch.big:hover { box-shadow: 0 0 0 2px #ffd87a; }
.info-body { font-size: 15px; line-height: 1.4; max-height: 70vh; overflow-y: auto; }
.info-body h4 { margin: 8px 0 2px; font: 700 13px var(--title); color: var(--rubric); }
.info-body p { margin: 3px 0 6px; }
.info-body button { font: 600 13px var(--serif); }

/* ================================================================ maps */
.g-radar { padding: 0; }
.g-radar .g-close { top: -11px; right: -11px; width: 12px; height: 12px; }
.radar-cv { display: block; width: 200px; height: 200px; border: 1px solid #000; }
.radar-foot { font: 600 12px var(--serif); color: #1a140a; text-align: center; padding: 1px 0 0; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.g-mapview .gump-body { text-align: center; }
.map-cv { display: block; margin: 0 auto; border: 2px solid #6a4a28; box-shadow: inset 0 0 20px rgba(80,40,10,.5); }
.map-foot { font-size: 13px; font-style: italic; color: var(--ink-soft); margin-top: 4px; max-width: 300px; }
.atlas-cv { display: block; border: 2px solid #5a3a18; box-shadow: 0 0 0 1px #000, inset 0 0 30px rgba(80,40,10,.5); }
.atlas-foot { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 14px; }
.atlas-foot label { display: flex; gap: 4px; align-items: center; }
.atlas-pos { margin-left: auto; font: italic 13px var(--serif); color: var(--ink-soft); }

/* ================================================================ options & help */
.g-options h4, .hp-page h3 { margin: 8px 0 3px; font: 20px var(--gothic); color: var(--rubric); border-bottom: 1px solid rgba(90,58,26,.35); }
.g-options h4:first-child { margin-top: 0; }
.op-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font: 600 15px var(--serif); }
.op-row:hover { background: rgba(120,70,10,.08); }
.op-row > span { flex: 1; }
.op-row input[type=range] { width: 130px; }
.op-row em { font-style: normal; font-size: 13px; min-width: 40px; text-align: right; color: var(--ink-soft); }
.hp-cols { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.hp-nav { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(90,58,26,.4); padding-right: 8px; }
.hp-nav button { text-align: left; font: 600 15px var(--serif); color: var(--ink-soft); background: transparent; border: none; padding: 3px 8px; border-left: 3px solid transparent; }
.hp-nav button:hover { color: var(--ink); background: rgba(120,70,10,.1); }
.hp-nav button.on { color: var(--rubric); border-left-color: var(--rubric); background: rgba(120,70,10,.14); }
.hp-page { min-height: 340px; max-height: 64vh; overflow-y: auto; font-size: 15px; line-height: 1.42; padding-right: 6px; }
.hp-page h3 { margin-top: 0; }
.hp-page p { margin: 4px 0 8px; }
.hp-page ul { margin: 4px 0 8px; padding-left: 20px; }
.hp-page li { margin: 2px 0; }
.hp-cur { width: 26px; height: 26px; vertical-align: middle; background: rgba(40,60,30,.55); border: 1px solid rgba(60,40,10,.5); border-radius: 2px; }
.hp-next { text-align: right; margin-top: 6px; }
.noto-list b { text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.keys { border-collapse: collapse; width: 100%; font-size: 14px; }
.keys td { padding: 2px 6px; border-bottom: 1px dotted rgba(90,58,26,.35); }
.keys td:first-child { font: 700 12px var(--title); white-space: nowrap; color: var(--rubric); }

/* ================================================================ login & character creation */
.screen {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 18px; z-index: 9000; overflow-y: auto; padding: 10px 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,170,80,.14), transparent 55%), radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.85)), var(--tx-wall, #2a2622);
}
#login::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 88%, rgba(255,120,30,.16), transparent 30%), radial-gradient(circle at 88% 88%, rgba(255,120,30,.16), transparent 30%); }

.lg-arch {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 46px 34px;
  border: 22px solid transparent; border-image: var(--fr-stone) 20 / 22px round;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55)), var(--tx-stone);
  box-shadow: 0 20px 60px rgba(0,0,0,.85);
}
.lg-title { text-align: center; }
.lg-title h1 {
  font: 110px/0.9 var(--gothic); margin: 0; letter-spacing: 3px; color: var(--gold);
  background: linear-gradient(#fff3c0, #e8c060 45%, #a87420 55%, #e8c46a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #2a1604) drop-shadow(0 0 18px rgba(232,196,106,.35));
}
.lg-title p { margin: 8px 0 0; font: italic 600 19px var(--serif); color: #c8b07a; text-shadow: 0 1px 2px #000; }
.lg-panel {
  width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 18px 24px 16px;
  border: 16px solid transparent; border-image: var(--fr-gold) 20 / 16px round;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(110,60,10,.3)), var(--tx-parchment); color: var(--ink);
}
.lg-panel label, .cc-name { display: flex; flex-direction: column; gap: 2px; font: 700 12px var(--title); letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }
.lg-panel input, .cc-name input {
  font: 600 19px var(--serif); padding: 5px 9px; color: var(--ink); border: 1px solid #4a2a0a; border-radius: 0;
  background: linear-gradient(rgba(255,250,235,.85), rgba(240,225,190,.85)); box-shadow: inset 0 1px 4px rgba(60,30,0,.45);
}
.lg-panel input:focus, .cc-name input:focus { outline: 1px solid #b8862a; }
.lg-go { align-self: center; margin-top: 4px; }
.lg-arrow { display: inline-block; color: #6a1a06; margin-left: 4px; }
.lg-panel small { text-align: center; color: #6a5030; font-style: italic; }
.lang-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.lang-globe { font-size: 22px; filter: drop-shadow(0 1px 2px #000); }
.lang-pick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.lang-pick button {
  font: 700 16px var(--serif); padding: 5px 12px; color: #f0dca8; cursor: pointer; letter-spacing: .5px;
  background: linear-gradient(#4a3418, #2a1c0c); border: 2px solid #8a6428; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,150,.2);
  text-shadow: 0 1px 1px #000;
}
.lang-pick button:hover { border-color: #e8c46a; color: #fff3c0; }
.lang-pick button.on { background: linear-gradient(#e8c46a, #a87420); color: #2a1806; border-color: #fbe7a1; text-shadow: none; }
.vd-lang .lang-pick button { font-size: 13px; padding: 3px 8px; }
body.lang-cjk .lg-panel label, body.lang-cjk .cc-label { letter-spacing: 0; }
.lg-foot { position: relative; z-index: 1; font: italic 15px var(--serif); color: #a89878; text-shadow: 0 1px 2px #000; }

.cc {
  width: min(1060px, 98vw); padding: 4px 16px 10px; color: var(--ink); flex: none;
  border: 18px solid transparent; border-image: var(--fr-gold) 20 / 18px round;
  background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(110,60,10,.3)), var(--tx-parchment);
  box-shadow: 0 20px 60px rgba(0,0,0,.85);
}
.cc-head { margin: 0 0 2px; text-align: center; font: 32px/1.1 var(--gothic); color: var(--rubric); text-shadow: 0 1px 0 rgba(255,240,200,.6); }
.cc-label { font: 700 11px var(--title); letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }
.cc-prof { text-align: center; border-bottom: 1px solid rgba(90,58,26,.4); padding-bottom: 6px; margin-bottom: 8px; }
.cc-templates { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.cc-tpl {
  width: 136px; height: 42px; padding: 3px 5px; border: 1px solid rgba(90,58,26,.55); background: rgba(255,245,215,.35); color: var(--ink);
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; text-align: left;
  font: 700 13px var(--title); letter-spacing: .5px;
}
.cc-tpl img { grid-row: span 2; width: 32px; height: 32px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.cc-tpl small { font: italic 11px/1.05 var(--serif); color: var(--ink-soft); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tpl:hover { background: rgba(255,245,215,.7); }
.cc-tpl.on { background: linear-gradient(#7a4a1c, #4a2a0c); color: #f8e6b8; border-color: #2a1404; }
.cc-tpl.on small { color: #e0c890; }
.cc-tdesc { font: italic 15px var(--serif); color: var(--ink-soft); margin-top: 4px; min-height: 1.3em; }
.cc-cols { display: grid; grid-template-columns: 224px 230px 1fr; gap: 16px; }
.cc-doll { display: flex; flex-direction: column; gap: 6px; }
.cc-look { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(90,58,26,.4); border-right: 1px solid rgba(90,58,26,.4); padding: 0 14px; }
.cc-fig { position: relative; align-self: center; }
/* The figure stands in a stone niche lit from below, framed in gilt, like a portrait in a hall. */
.cc-fig { padding: 8px; background: linear-gradient(#3a2a14, #1a1208); border: 1px solid #0a0604; box-shadow: inset 0 0 0 2px #b8862a, inset 0 0 0 3px #3a2408, 0 4px 10px rgba(0,0,0,.45); border-radius: 60px 60px 4px 4px; }
#c-preview { display: block; border-radius: 54px 54px 2px 2px;
  background: radial-gradient(ellipse at 50% 92%, rgba(255,190,90,.38), transparent 45%), radial-gradient(ellipse at 50% 30%, rgba(255,220,160,.10), transparent 60%), linear-gradient(rgba(10,8,12,.55), rgba(10,8,12,.25)), var(--tx-stone);
  box-shadow: inset 0 0 26px rgba(0,0,0,.85); }
.cc-fig .cc-rot { z-index: 2; }
.cc-rot { position: absolute; bottom: 6px; width: 26px; height: 26px; padding: 0; font: 700 16px/1 var(--serif); color: #3a1e06; border: 1px solid #2a1604; border-radius: 50%; background: linear-gradient(#f4dc94, #b88a34); }
.cc-rot.l { left: 6px; } .cc-rot.r { right: 6px; }
.cc-row { display: flex; flex-direction: column; gap: 2px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font: 600 14px var(--serif); padding: 1px 9px; border: 1px solid rgba(90,58,26,.7); background: rgba(255,245,215,.4); color: var(--ink); border-radius: 0; }
.chip:hover { background: rgba(255,245,215,.8); }
.chip.on { background: linear-gradient(#7a4a1c, #4a2a0c); color: #f6e6c0; border-color: #2a1404; }
.cc-desc { font: italic 14px/1.28 var(--serif); color: var(--ink-soft); margin: 2px 0; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-sheet h3 { margin: 0 0 4px; font: 22px var(--gothic); color: var(--rubric); display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(90,58,26,.35); }
.cc-sheet h3 + * { margin-top: 2px; }
.cc-sheet h3 em { font: italic 600 15px var(--serif); color: #2a6a1a; }
.cc-sheet h3 em.bad { color: #a02010; }
.c-stat { display: grid; grid-template-columns: 96px 1fr 30px; align-items: center; gap: 8px; font: 600 15px var(--serif); }
.c-stat b, .c-skrow b { text-align: right; font: 700 16px var(--serif); }
.c-skrow { display: grid; grid-template-columns: 180px 1fr 30px; gap: 8px; align-items: center; margin-bottom: 4px; }
.cc-town { font: 600 15px var(--serif); color: var(--ink); padding: 2px 4px; border: 1px solid #4a2a0a; background: linear-gradient(rgba(255,250,235,.85), rgba(240,225,190,.85)); }
.c-skrow select { font: 600 15px var(--serif); color: var(--ink); padding: 2px 4px; border: 1px solid #4a2a0a; background: linear-gradient(rgba(255,250,235,.85), rgba(240,225,190,.85)); }
.cc-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 8px; border-top: 1px solid rgba(90,58,26,.4); padding-top: 8px; }
.cc-foot .err { flex: 1; text-align: left; }

/* Looting: items you take vanish at once; the server's refresh follows. */
.citem.taken { visibility: hidden; }
.g-cont .loot-all { position: absolute; right: 10px; bottom: 6px; font-size: 12px; padding: 2px 9px; z-index: 3; }

/* ================================================================ character selection (charselect.js) */
#charsel { outline: none; }
#charsel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 88%, rgba(255,120,30,.16), transparent 30%), radial-gradient(circle at 88% 88%, rgba(255,120,30,.16), transparent 30%); }

.cs-arch {
  position: relative; z-index: 1; width: 640px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px 28px 22px;
  border: 22px solid transparent; border-image: var(--fr-stone) 20 / 22px round;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.6)), var(--tx-stone);
  box-shadow: 0 20px 60px rgba(0,0,0,.85);
}
.cs-crest { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cs-crest h2 {
  margin: 0; font: 40px/1 var(--gothic); letter-spacing: 1px; color: var(--gold);
  background: linear-gradient(#fff3c0, #e8c060 45%, #a87420 55%, #e8c46a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a1604);
}
.cs-orn { font-size: 26px; color: #a87a2a; text-shadow: 0 1px 0 #000; }
.cs-orn.flip { transform: scaleX(-1); display: inline-block; }
.cs-acct { text-align: center; font: italic 15px var(--serif); color: #b8a274; text-shadow: 0 1px 2px #000; margin-top: -4px; }
.cs-acct b { color: #e8d49a; font-style: normal; }
.cs-panel {
  border: 16px solid transparent; border-image: var(--fr-gold) 20 / 16px round;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(110,60,10,.32)), var(--tx-parchment);
  padding: 6px 8px;
}
.cs-slots { display: flex; flex-direction: column; gap: 6px; }
.cs-slot {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 6px; cursor: pointer;
  border: 1px solid rgba(90,58,20,.45); border-radius: 2px;
  background: linear-gradient(90deg, rgba(120,80,30,.10), rgba(255,250,230,.12) 40%, rgba(120,80,30,.08));
  box-shadow: inset 0 1px 0 rgba(255,250,230,.45), inset 0 -1px 0 rgba(90,58,20,.25);
}
.cs-slot:hover { background: linear-gradient(90deg, rgba(150,100,30,.18), rgba(255,250,230,.2) 40%, rgba(150,100,30,.12)); }
.cs-slot.sel { border-color: #7a1a0a; background: linear-gradient(90deg, rgba(122,26,10,.16), rgba(255,240,200,.25) 45%, rgba(122,26,10,.10)); box-shadow: inset 0 0 0 1px rgba(122,26,10,.35), 0 0 10px rgba(122,26,10,.25); }
.cs-frame {
  flex: 0 0 60px; height: 80px; display: flex; align-items: flex-end; justify-content: center;
  border: 3px solid #4a3418; border-radius: 2px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,200,120,.18), transparent 60%), var(--tx-marble);
  box-shadow: inset 0 0 10px rgba(0,0,0,.85), 0 1px 0 rgba(255,250,230,.5);
}
.cs-slot.empty .cs-frame { background: var(--tx-marble); filter: grayscale(.4) brightness(.75); height: 40px; flex-basis: 60px; }
.cs-slot.empty { padding-top: 3px; padding-bottom: 3px; }
.cs-slot.empty .cs-info { display: flex; align-items: baseline; gap: 12px; }
.cs-info { flex: 1; min-width: 0; }
.cs-name { font: 27px/1.05 var(--gothic); color: #2a1406; letter-spacing: .5px; }
.cs-name.red { color: #8a0e06; }
.cs-sub { font: italic 600 15px var(--serif); color: var(--ink-soft); }
.cs-where { font: 13px var(--serif); color: #6a4a24; margin-top: 1px; }
.cs-empty { font: italic 20px var(--gothic); color: rgba(90,58,20,.55); }
.cs-tags { display: flex; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.cs-tag { font: 700 10px var(--title); letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px; color: #f8ecc8; background: #5a3a18; }
.cs-tag.on { background: #2a6a2a; } .cs-tag.ling { background: #8a5a10; } .cs-tag.ghost { background: #4a5a7a; } .cs-tag.jail { background: #3a3a3a; } .cs-tag.red { background: #8a0e06; }
.cs-seal { flex: 0 0 34px; height: 34px; border-radius: 50%; opacity: 0; transition: opacity .15s;
  background: radial-gradient(circle at 38% 35%, #e04a2a, #9a1a0a 55%, #5a0a04); box-shadow: 0 2px 3px rgba(0,0,0,.5), inset 0 -2px 3px rgba(0,0,0,.4); position: relative; }
.cs-seal::after { content: '\2726'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,210,170,.75); font-size: 16px; }
.cs-slot.sel .cs-seal { opacity: 1; }
.cs-err { min-height: 18px; text-align: center; font: 600 15px var(--serif); color: #ff9a7a; text-shadow: 0 1px 2px #000; }
.cs-err.note { color: #e8d49a; font-style: italic; }
.cs-del { text-align: center; color: #e8dcc0; font: 15px var(--serif); text-shadow: 0 1px 2px #000; }
.cs-del p { margin: 0 0 6px; }
.cs-del-row { display: flex; gap: 8px; justify-content: center; align-items: center; }
.cs-del-input { width: 180px; font: 16px var(--serif); padding: 4px 6px; background: #f2e4bc; border: 2px solid #6a4a1a; color: var(--ink); }
.cs-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 2px; }

/* Carved stone tablets with a gold rim and a gem: the classic gump button. */
.gbtn {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px 6px 30px; min-height: 32px;
  font: 700 14px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: #f4e2b0; text-shadow: 0 1px 0 #000, 0 0 6px rgba(0,0,0,.6);
  border: 2px solid #c89a46; border-radius: 3px;
  background: linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.25)), var(--tx-marble);
  box-shadow: inset 0 0 0 1px #3a2a10, inset 0 2px 4px rgba(255,255,255,.18), inset 0 -3px 6px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.7);
}
.gbtn::before { content: ''; position: absolute; left: 9px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bfe0ff, #2a6ae0 45%, #0a2a6a); box-shadow: 0 0 0 1.5px #6a4a14, 0 1px 2px rgba(0,0,0,.7); }
.gbtn.red::before { background: radial-gradient(circle at 35% 30%, #ffc0b0, #c0281a 45%, #5a0a04); }
.gbtn.dim::before { background: radial-gradient(circle at 35% 30%, #e0e0e0, #6a6a6a 45%, #2a2a2a); }
.gbtn.big { font-size: 17px; padding: 8px 26px 8px 38px; }
.gbtn.big::before { width: 16px; height: 16px; margin-top: -8px; left: 12px; background: radial-gradient(circle at 35% 30%, #c8ffd0, #2a9a3a 45%, #0a4a14); }
.gbtn:hover:not(:disabled) { color: #fff6d0; border-color: #f0c870; box-shadow: inset 0 0 0 1px #3a2a10, inset 0 2px 4px rgba(255,255,255,.25), inset 0 -3px 6px rgba(0,0,0,.45), 0 0 10px rgba(240,200,112,.35), 0 2px 4px rgba(0,0,0,.7); }
.gbtn:active:not(:disabled) { transform: translateY(1px); }
.gbtn:disabled { opacity: .45; filter: grayscale(.6); }
@media (max-width: 560px) { .cs-name { font-size: 24px; } .cs-crest h2 { font-size: 32px; } .cs-arch { padding: 12px 10px 16px; } }

/* ================================================================ macros (macros.js) */
.g-macros .mc-cols { display: flex; gap: 10px; min-height: 250px; }
.g-macros .mc-list { flex: 0 0 150px; max-height: 330px; overflow-y: auto; border: 1px solid rgba(90,58,20,.5); background: rgba(255,248,224,.4); }
.g-macros .mc-item { padding: 4px 6px; cursor: pointer; border-bottom: 1px dotted rgba(90,58,20,.35); font: 13px var(--serif); color: var(--ink); display: flex; flex-direction: column; }
.g-macros .mc-item b { font: 700 11px var(--title); color: #7a1a0a; letter-spacing: .05em; }
.g-macros .mc-item.on { background: rgba(122,26,10,.14); box-shadow: inset 3px 0 0 #7a1a0a; }
.g-macros .mc-edit { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.g-macros .mc-row { display: flex; align-items: center; gap: 8px; font: 700 12px var(--title); color: var(--ink-soft); }
.g-macros .mc-row span { flex: 0 0 44px; }
.g-macros .mc-name { flex: 1; font: 15px var(--serif); padding: 2px 5px; background: #f6ecd0; border: 1px solid #8a6a3a; }
.g-macros .mc-key.listening { background: #7a1a0a; color: #fff; animation: mcblink 1s infinite; }
@keyframes mcblink { 50% { opacity: .6; } }
.g-macros .mc-steps { display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow-y: auto; }
.g-macros .mc-step { display: flex; gap: 4px; align-items: center; font: 13px var(--serif); }
.g-macros .mc-n { width: 18px; text-align: right; color: var(--ink-soft); }
.g-macros .mc-step select, .g-macros .mc-step input { font: 13px var(--serif); padding: 1px 3px; background: #f6ecd0; border: 1px solid #8a6a3a; color: var(--ink); }
.g-macros .mc-act { width: 140px; } .g-macros .mc-arg { flex: 1; min-width: 0; }
.g-macros .mc-noarg { flex: 1; color: #a08a6a; }
.g-macros .mc-mini { font-size: 10px; padding: 1px 4px; background: #e8d6a6; border: 1px solid #8a6a3a; color: #3a2008; }
.g-macros .mc-btns, .g-macros .mc-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.g-macros .mc-foot { margin-top: 8px; }
.g-macros .mc-help { font: italic 12px var(--serif); color: var(--ink-soft); flex-basis: 100%; }

/* Town invasion banner: a torn war-notice nailed to the top of the screen. */
#invasion { position: fixed; top: 40px; left: 50%; transform: translateX(-50%) rotate(-.6deg); z-index: 24; display: flex; gap: 10px; align-items: center;
  padding: 7px 18px 8px 12px; color: #2a1408; font: 600 13px var(--serif, Georgia, serif); pointer-events: auto;
  background: linear-gradient(180deg, #e8d3a0, #d4b77a 60%, #c4a462); border: 1px solid #5a3a18;
  box-shadow: 0 3px 10px rgba(0,0,0,.6), inset 0 0 18px rgba(90,50,10,.35);
  clip-path: polygon(0 4%, 6% 0, 18% 3%, 32% 0, 50% 2%, 66% 0, 82% 3%, 94% 0, 100% 5%, 99% 50%, 100% 95%, 88% 100%, 70% 97%, 52% 100%, 34% 97%, 16% 100%, 2% 96%, 1% 50%); }
#invasion b { display: block; font: 700 15px 'Cinzel', Georgia, serif; color: #6a0e06; letter-spacing: .04em; text-transform: uppercase; }
#invasion span { display: block; font-style: italic; }
#invasion em { display: block; font-size: 11px; color: #5a3a18; }
#invasion .inv-seal { width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 35%, #e04a3a, #8a1208 60%, #4a0804); box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 3px rgba(60,0,0,.35);
  animation: inv-pulse 1.6s ease-in-out infinite; }
@keyframes inv-pulse { 50% { box-shadow: 0 0 10px 2px rgba(255,60,30,.7), inset 0 0 0 3px rgba(60,0,0,.35); } }

.jr-search { display: block; width: calc(100% - 4px); margin: 2px 0 4px; height: 20px; padding: 0 6px; font: 13px var(--serif); background: rgba(250,240,210,.7); border: 1px solid rgba(90,50,10,.5); color: #2a1404; }

/* ================================================================ retro skin
   The look of the late-90s classics: Diablo's dark carved stone and Ultima Online's parchment gumps.
   Flat colours from a small palette, hard bevels instead of soft gradients, hard drop shadows instead
   of blurred ones, square corners, and every texture blown up with hard pixels (see gumpart.js). */
:root {
  --ink: #23150a; --ink-soft: #4a3418; --rubric: #8a1408; --gold: #c8a050; --gold-hi: #e8cc84; --gold-lo: #4a3210;
  --sys: #a8b8c8;
  --bev-hi: #8c7c5c; --bev-lo: #120c06; --stone-mid: #3a3128;
}
.gump, #menubar, #hotbar, .tooltip, .npc-menu, #counters { image-rendering: pixelated; }
.gump { filter: drop-shadow(4px 5px 0 rgba(0,0,0,.55)); }
.gump.moving { filter: drop-shadow(6px 8px 0 rgba(0,0,0,.5)); }
.g-title { color: var(--rubric); text-shadow: 1px 1px 0 rgba(255,235,190,.35); }
.fr-gold, .g-paperdoll { border-width: 20px; border-image: var(--fr-gold) 20 / 20px round; }
.fr-bronze { border-width: 20px; border-image: var(--fr-bronze) 20 / 20px round; }
.fr-stone, .g-status, .g-hbar { border-width: 10px; border-image-width: 10px; }
.fr-gold, .fr-bronze, .g-paperdoll { background: var(--tx-parchment); }
.g-scroll { background: var(--tx-scroll); box-shadow: inset 4px 0 0 rgba(70,40,10,.35), inset -4px 0 0 rgba(70,40,10,.35); }
.g-close { image-rendering: pixelated; filter: drop-shadow(1px 1px 0 #000); }

/* buttons: square, bevelled stone with dull-gold lettering */
.ubtn, .pd-btn {
  color: #e0c070; background: var(--stone-mid) var(--tx-stone); border: 1px solid #000; border-radius: 0;
  box-shadow: inset 2px 2px 0 var(--bev-hi), inset -2px -2px 0 var(--bev-lo);
  text-shadow: 1px 1px 0 #000; filter: none;
}
.ubtn:hover:not(:disabled), .pd-btn:hover { color: #fff0b8; background: #4a3e30 var(--tx-stone); box-shadow: inset 2px 2px 0 #b0a078, inset -2px -2px 0 var(--bev-lo); }
.ubtn:active:not(:disabled), .pd-btn:active { transform: translate(1px, 1px); box-shadow: inset 2px 2px 0 var(--bev-lo), inset -2px -2px 0 var(--bev-hi); }
.ubtn.ok { color: #ffe08a; }
.ubtn:disabled { color: #8a7a5a; filter: none; opacity: .75; }
.pd-btn.war { color: #ffb0a0; background: #5a1408; }
.pd-btn.peace { color: #c8d8ff; }
.tabbtn { border-radius: 0; color: #e0c070; background: #2e261e; border: 1px solid #000; box-shadow: inset 1px 1px 0 var(--bev-hi), inset -1px -1px 0 var(--bev-lo); text-shadow: 1px 1px 0 #000; }
.tabbtn:hover { background: #3e3326; color: #fff0b8; }
.tabbtn.on { background: #5a1a0e; color: #ffe8b0; box-shadow: inset 1px 1px 0 #a0503a, inset -1px -1px 0 #200604; }

/* menu bar and hotbar: a strip of carved stone */
#menubar { border: 1px solid #000; border-top: 2px solid #9a7a40; border-bottom: 2px solid #5a4220; box-shadow: inset 1px 1px 0 var(--bev-hi), inset -1px -1px 0 var(--bev-lo), 3px 4px 0 rgba(0,0,0,.55); background: var(--tx-stone); }
#menubar button { color: #d8b868; border-radius: 0; }
#menubar button:hover { color: #fff0b8; background: rgba(0,0,0,.35); border-color: #000; box-shadow: inset 1px 1px 0 var(--bev-lo), inset -1px -1px 0 var(--bev-hi); }
.mb-grip { background: repeating-linear-gradient(#9a7a40 0 2px, transparent 2px 4px); }
#hotbar { border: 1px solid #000; background: var(--tx-stone); box-shadow: inset 2px 2px 0 var(--bev-hi), inset -2px -2px 0 var(--bev-lo), 3px 4px 0 rgba(0,0,0,.55); padding: 5px; }
.hb-slot { background: #0c0906; border: 1px solid #000; box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #5a4c38; }
.hb-slot:hover, .hb-slot.over { box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #5a4c38, 0 0 0 2px #c8a050; }
.hb-slot img { image-rendering: pixelated; }

/* bars: flat colours, hard highlight, notched every tenth */
.sbar, .mbar { border-radius: 0; background: #0a0806; border: 1px solid #000; box-shadow: inset 1px 1px 0 #000, 0 1px 0 rgba(255,230,180,.15); }
.sbar i, .mbar i { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4); }
.sbar.hp i, .mbar.hp i { background: #a81810; }
.sbar.hp.poison i, .mbar.hp.poison i { background: #3a8a18; }
.sbar.mana i, .mbar.mana i { background: #2440a8; }
.sbar.stam i, .mbar.stam i { background: #a89418; }
.sbar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0,0,0,.55) calc(10% - 1px) 10%); pointer-events: none; }

/* form widgets: inset stone, a square checkbox with a gold cross, a gem-cut slider knob */
input[type=checkbox] { border-radius: 0; background: #1a140e; border: 1px solid #000; box-shadow: inset 2px 2px 0 #000, inset -1px -1px 0 #6a5a40; }
input[type=checkbox]:checked { background: #1a140e; }
input[type=checkbox]:checked::after { content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; background:
  linear-gradient(45deg, transparent 40%, #e8c060 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, #e8c060 40% 60%, transparent 60%); }
input[type=range]::-webkit-slider-runnable-track { background: #120c08; border: 1px solid #000; box-shadow: inset 1px 1px 0 #000, 0 1px 0 rgba(255,230,180,.25); }
input[type=range]::-webkit-slider-thumb { width: 12px; height: 14px; margin-top: -5px; background: #c8a050; border: 1px solid #000; box-shadow: inset 2px 2px 0 #f0d890, inset -2px -2px 0 #6a4a14; filter: none; }
input[type=range]::-moz-range-track { background: #120c08; border: 1px solid #000; }
input[type=range]::-moz-range-thumb { width: 12px; height: 14px; border-radius: 0; background: #c8a050; border: 1px solid #000; }
select { border-radius: 0; color: #e8d0a0; background: #241c14; border: 1px solid #000; box-shadow: inset 1px 1px 0 var(--bev-hi), inset -1px -1px 0 var(--bev-lo); }
.c-skrow select { color: #e8d0a0; background: #241c14; }
input[type=text], input[type=password], input:not([type]), textarea { border-radius: 0; }

/* scrollbars: a stone trough and a bevelled stone knob */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #1a140e; box-shadow: inset 2px 2px 0 #000, inset -1px -1px 0 #4a3e2e; }
::-webkit-scrollbar-thumb { background: #5a4a36; border: 1px solid #000; box-shadow: inset 2px 2px 0 #9a8662, inset -2px -2px 0 #1e160c; }
::-webkit-scrollbar-button { display: none; }
* { scrollbar-color: #5a4a36 #1a140e; }

/* tooltips and pop-up menus: black stone with a hard gold rule */
.tooltip { background: #14100c; border: 2px solid #8a6a2a; box-shadow: 0 0 0 1px #000, 3px 4px 0 rgba(0,0,0,.6); border-radius: 0; }
.npc-menu { border-radius: 0; background: #1a140e; border: 2px solid #8a6a2a; box-shadow: 0 0 0 1px #000, 3px 4px 0 rgba(0,0,0,.6); }
.npc-menu .hd { color: #c8a050; border-bottom-color: #4a3a22; }
.npc-menu button { color: #e8d0a0; }
.npc-menu button:hover { background: #5a1a0e; color: #fff0c0; }
.buff { border-radius: 0; box-shadow: 2px 2px 0 rgba(0,0,0,.6); }
#counters { border-radius: 0; box-shadow: inset 1px 1px 0 var(--bev-hi), inset -1px -1px 0 var(--bev-lo), 2px 3px 0 rgba(0,0,0,.5); }
.g-icon { border-radius: 0; box-shadow: inset 1px 1px 0 var(--bev-hi), inset -1px -1px 0 var(--bev-lo), 2px 3px 0 rgba(0,0,0,.5); }

.sk-row.zero { color: #5e4628; opacity: 1; }
/* login and creation: blackletter title in flat gold with a hard outline; dark inset fields */
.lg-title h1 { font-family: var(--gothic); font-weight: 400; letter-spacing: 2px; background: none !important; -webkit-text-fill-color: #d8a840; color: #d8a840;
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 4px 5px 0 #000, 0 0 0 #000 !important; filter: none !important; }
.lg-title p { color: #b8a070; }
.lg-panel input, .cc-name input, .pf-edit, .fr-tell input, .atlas-pin input, .cont-tools input {
  border-radius: 0; color: #f0d890; background: #120c08 !important; border: 1px solid #000; box-shadow: inset 2px 2px 0 #000, inset -1px -1px 0 #6a5a40; font-weight: 600;
}
.lg-panel input:focus, .cc-name input:focus { outline: 1px solid #c8a050; }
.cc-name input::placeholder { color: #7a6a4a; }
/* readability: darker, heavier ink on the calm parchment */
:root { --ink: #160c04; --ink-soft: #3a2810; }
.gump { font-weight: 600; }
.sk-row.zero { color: #4e3a20; }
.g-title, .pd-name b { text-shadow: none; }
.tooltip { font-weight: 400; }
.sk-row.zero { color: #6a5434; font-weight: 400; }
/* the painted pixel-art logo (logo.js) replaces the heading text */
.lg-title h1.painted { line-height: 0; text-shadow: none !important; filter: none !important; }
.lg-logo { display: block; margin: 0 auto; image-rendering: pixelated; }
.hp-page h4 { margin: 12px 0 2px; font: 700 14px var(--title); letter-spacing: .5px; color: var(--rubric); text-transform: uppercase; }

.cr-count { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--serif); color: #2a1a08; margin-left: 6px; }
.cr-count input { width: 44px; font: 600 12px var(--serif); padding: 1px 3px; }
