/* =====================================================================
   Pixel gothic UI: chunky pixel stone, hard-edged iron and bronze trim,
   a pixel blackletter for titles and a pixel sans for everything else.
   Loaded last; keeps the gothic.css palette and overrides fonts and edges.
   ===================================================================== */
@font-face { font-family: "Bastarda"; src: url("node_modules/@fontsource/jacquarda-bastarda-9/files/jacquarda-bastarda-9-latin-400-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Pixelify Sans"; font-weight: 400; src: url("node_modules/@fontsource/pixelify-sans/files/pixelify-sans-latin-400-normal.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; src: url("node_modules/@fontsource/pixelify-sans/files/pixelify-sans-latin-700-normal.woff2") format("woff2"); font-display: block; }

:root {
  --title: "Pixelify Sans", monospace;   /* bold pixel caps; the blackletter was unreadable small */
  --px: "Pixelify Sans", monospace;
  --body: "Pixelify Sans", monospace;
  --toon: "Pixelify Sans", monospace;
  /* hard 2px pixel bevels */
  --bronze: inset 0 0 0 2px #050403, inset 0 0 0 4px #7a5e34, inset 2px 2px 0 4px #a8844a, inset 0 0 0 6px #241a10;
  --bronze-hi: inset 0 0 0 2px #050403, inset 0 0 0 4px #c9a45c, inset 2px 2px 0 4px #f0d08a, inset 0 0 0 6px #3a2a16;
}
body { -webkit-font-smoothing: none; font-smooth: never; }
img, .tile img, .sicon img, #doll .ghostIcon, .ghostTile img, #topRow .icon img, .node img { image-rendering: pixelated !important; }

/* pixel stone everywhere a panel shows */
#panel, .screen.solid, .side { background: var(--stone), #1c1915 !important; background-size: 192px 192px !important; image-rendering: pixelated; }

/* ---------------- arena overlay */
#hud { background: linear-gradient(rgba(5, 4, 3, .95) 0 70%, rgba(5, 4, 3, 0)); }
#floorBox small { font-family: var(--px); font-size: 11px; }
#floorBox b { font-family: var(--title); font-size: 22px; font-weight: 700; line-height: .8; }
.unit .nm { font-family: var(--px); font-size: 13px; }
.hp { height: 8px; box-shadow: 0 0 0 2px #050403, 0 0 0 4px #6a5434; }
#status { font-family: var(--px); font-size: 12px; }
#toast { font-family: var(--px); font-size: 15px; border: 0; box-shadow: var(--bronze); padding: 10px 12px; }
.floater { font-family: var(--px); font-weight: 700; font-size: 16px; letter-spacing: 0; animation: pxRise .8s steps(8) forwards;
  text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 2px 2px #000, -2px 2px #000; }
@keyframes pxRise { from { transform: translate(-50%, -100%); opacity: 1; } 70% { opacity: 1; } to { transform: translate(-50%, calc(-100% - 36px)); opacity: 0; } }
.floater.crit { font-size: 20px; }
.floater.big { font-family: var(--title); font-weight: 700; font-size: 18px; }
.floater.shield, .floater.block, .floater.coin, .floater.loot-normal { font-size: 13px; }
.ob { height: 6px; width: 40px; margin-left: -20px; box-shadow: 0 0 0 2px #050403; }
.ob.boss { width: 110px; margin-left: -55px; height: 8px; box-shadow: 0 0 0 2px #050403, 0 0 0 4px #c9a45c, 0 0 0 6px #050403; }
.ob i { box-shadow: inset 0 2px 0 rgba(255, 200, 180, .35); }

/* ---------------- top row, tabs, buttons */
.chip { font-family: var(--px); font-size: 15px; font-weight: 700; }
.coin { border-radius: 0; width: 10px; height: 10px; background: #e0b862; box-shadow: inset -2px -2px 0 #8a6a2a, 0 0 0 2px #050403; }
.corei { border-radius: 0; width: 10px; height: 10px; background: #c0201a; box-shadow: inset -2px -2px 0 #6a0a08, 0 0 0 2px #050403; }
#topRow .icon img { width: 26px; height: 26px; filter: none; }
#tabs button { font-family: var(--title); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
#tabs button i { font-family: var(--px); font-size: 13px; }
.bayHead { font-family: var(--title); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.bayHead::before { transform: none; width: 6px; height: 6px; }
.bayHead i { font-family: var(--px); font-size: 12px; }
.bayHead #autoSell { font-family: var(--px); font-size: 10px; white-space: nowrap; }
.bayHead #sellZone { font-family: var(--title); font-size: 13px; font-weight: 700; padding: 0 10px 2px; box-shadow: inset 0 0 0 2px #050403, inset 0 0 0 4px #8a2a1a; }

/* ---------------- paper doll and bag */
#doll { box-shadow: 0 0 0 2px #050403, 0 0 0 4px #7a5e34, 0 0 0 6px #050403; }
#doll .slot { box-shadow: inset 0 0 0 2px #050403, inset 0 0 0 4px #2a2014; }
#doll .slot small { font-family: var(--px); font-size: 9px; }
.dollStats { font-family: var(--px); font-size: 12px; line-height: 1.35; }
.dollStats b { font-family: var(--title); font-size: 15px; font-weight: 700; }
#inv { box-shadow: 0 0 0 2px #050403, 0 0 0 4px #7a5e34, 0 0 0 6px #050403; }
#inv .tile.bagItem { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 40%, #1a140c); }
.tile.new::before { font-family: var(--px); font-size: 9px; font-weight: 700; }
#inv .tile.new::before { font-size: 8px; }

/* ---------------- skills */
#skillHead { font-family: var(--title); font-size: 13px; font-weight: 700; }
#skillHead b.has { font-family: var(--px); font-size: 16px; }
#skillHead small { font-family: var(--px); font-size: 12px; }
.skill { box-shadow: inset 0 0 0 2px #2e2416; }
.skill.learned { box-shadow: inset 0 0 0 2px #6a5434, inset 4px 0 0 #b0281e; }
.sicon { box-shadow: inset 0 0 0 2px #8a6a3a; }
.sicon img { width: 28px; height: 28px; }
.stxt b { font-family: var(--px); font-size: 14px; font-weight: 700; }
.stxt em { font-family: var(--px); font-size: 12px; }
.stxt span { font-family: var(--px); font-size: 13px; }
.plus { font-family: var(--px); font-size: 20px; }

/* ---------------- item sheet */
.iname { font-family: var(--title); font-size: 18px; font-weight: 700; line-height: 1.1; }
.ibase { font-family: var(--px); font-size: 12px; }
#itemBody ul { font-family: var(--px); font-size: 15px; gap: 2px; }
#itemBody h5 { font-family: var(--title); font-size: 14px; font-weight: 700; }
.cmp { font-family: var(--px); font-size: 12px; box-shadow: inset 0 0 0 2px #2e2416; }
.cmp div { font-size: 13px; }
.acts button { font-family: var(--title); font-size: 15px; font-weight: 700; }
.crafts b { font-family: var(--title); font-size: 13px; font-weight: 700; }
.crafts small { font-family: var(--px); font-size: 11px; }
.crafts i { font-family: var(--px); font-size: 13px; }
.crafts button { box-shadow: inset 0 0 0 2px #050403, inset 0 0 0 4px #5a4a7a; }
#itemBody .x { font-family: var(--px); font-size: 14px; }
.sheet { box-shadow: inset 0 4px 0 #c9a45c, inset 0 6px 0 #050403; }

/* ---------------- other pages */
.sheet h3 { font-family: var(--title); font-size: 16px; font-weight: 700; }
.screen header h2 { font-family: var(--title); font-size: 18px; font-weight: 700; }
.back { font-family: var(--px); font-size: 13px; }
.rankList li { font-family: var(--px); font-size: 15px; box-shadow: inset 0 0 0 2px #2e2416; }
.rankList li .n, .rankList li .f { font-size: 13px; }
.opt label { font-family: var(--px); font-size: 14px; }
.opt label small { font-size: 12px; }
.opt button { font-family: var(--px); font-size: 13px; }
.branch { font-family: var(--title); font-size: 11px; font-weight: 700; }
.node span { font-family: var(--px); font-size: 10px; }
#nodeInfo .t { font-family: var(--title); font-size: 15px; font-weight: 700; }
#nodeInfo p { font-family: var(--px); font-size: 14px; }
#nodeInfo button, #prestige button { font-family: var(--px); font-size: 13px; }
#prestige p { font-family: var(--px); font-size: 12px; }
@media (min-width: 980px) {
  .side h2 { font-family: var(--title); font-size: 16px; font-weight: 700; }
  #stats, #log li { font-family: var(--px); font-size: 14px; }
}
