* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Sansation — game UI (300/400/700 + italic available via font-weight). */
  --game-font: "Sansation", "Segoe UI", system-ui, sans-serif;
  --float-font: var(--game-font);
  --float-gain: #b6f26d;
  --float-loss: #ff7a7a;
  --float-neutral: #e8eef7;
  /* Tooltip chrome (all game tooltips). */
  --tt-pad: 12px;
  --tt-gap: 4px;
  --tt-radius: 8px;
  --tt-bg: rgba(26, 32, 38, 0.9);
  --tt-border: 1px solid #67593f;
  /* Panel chrome (all game panels except top HUD bar). */
  --panel-bg: url("/assets/sprites/ui/uiparts/bg.png");
  --panel-border-img: url("/assets/sprites/ui/uiparts/border.png");
  --panel-corner-img: url("/assets/sprites/ui/uiparts/corner.png");
  --panel-edge: 4px;
  --panel-corner: 12px;
  /* Empty inventory/station cells (filled cells use item-bg + frame). */
  --inv-empty-bg: rgba(0, 0, 0, 0.8);
  --inv-empty-border: 1px solid #67593f;
  /* Filled inventory/shop slot background (ui.item_slot_bg); legacy / unused for items. */
  /* was: #4a586e, then #707277 */
  --inv-item-slot-bg: #70727782;
  /* Inventory / hotbar / station cell edge length (ui.inv_slot_px). */
  --inv-slot-px: 64px;
  --inv-slot-gap: 4px;
  /* Item icons: source 16×16, display ×2 → 32×32; chrome 48×48 art scaled to slot. */
  --inv-icon-px: 32px;
  --inv-item-bg: url("/assets/sprites/ui/uiparts/item-bg.png");
  --inv-item-frame: url("/assets/sprites/ui/uiparts/item-frame.png");
  /* Game UI layer scale (ui.scale): 1 / 1.5 / 2. Float texts & canvas stay 1×. */
  --ui-scale: 1;
}

#ui-root {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: calc(100% / var(--ui-scale));
  height: calc(100% / var(--ui-scale));
  transform: scale(var(--ui-scale));
  transform-origin: top left;
  pointer-events: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1020;
  color: #e8eef7;
  font-family: var(--game-font);
}

/* ---- Boot gate: veil until session + assets + visible chunks are ready ---- */
#boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  pointer-events: auto;
}

html:not(.is-booting) #boot-overlay {
  display: none;
}

html.is-booting #game,
html.is-booting #ui-root,
html.is-booting #float-layer,
html.is-booting #world-left {
  visibility: hidden;
  pointer-events: none;
}

.boot-panel {
  position: relative;
  width: min(360px, calc(100vw - 48px));
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.boot-brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8eef7;
}

.boot-phase {
  font-size: 13px;
  color: rgba(232, 238, 247, 0.75);
  min-height: 1.2em;
}

.boot-bar {
  height: 8px;
  border: 1px solid #67593f;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: #c4a35a;
  transition: width 0.15s ease-out;
}

.boot-pct {
  font-size: 12px;
  color: rgba(232, 238, 247, 0.55);
}

.boot-retry {
  margin-top: 4px;
  align-self: center;
  padding: 6px 14px;
  border: 1px solid #67593f;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #e8eef7;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.boot-retry:hover {
  border-color: #c4a35a;
}

html.boot-failed .boot-bar-fill {
  background: #a05050;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: #0b1020;
}

#float-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-text {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--float-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  will-change: transform, opacity;
}

.float-text--gain {
  color: var(--float-gain);
}

.float-text--xp {
  color: #a854a5;
}

.float-text--levelup {
  color: #fa9900;
  font-weight: 700;
  font-size: 15px;
}

.float-text--loss {
  color: var(--float-loss);
}

.float-text--neutral {
  color: var(--float-neutral);
}

#hud {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  overflow: visible;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hud-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: visible;
  background-image: url("/assets/sprites/ui/uiparts/bg.png");
  background-repeat: repeat;
  background-position: 0 0;
}

.hud-edge {
  position: relative;
  z-index: 0;
  flex: 0 0 4px;
  width: 100%;
  height: 4px;
  background-image: url("/assets/sprites/ui/uiparts/border.png");
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 4px 4px;
  pointer-events: none;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  align-self: center;
  pointer-events: auto;
  z-index: 40;
}

.hud-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  pointer-events: auto;
  z-index: 40;
}

.hud-tips-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #e7e9ee;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  opacity: 0.92;
}

.hud-tips-toggle input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #2e6b3f;
  cursor: pointer;
}

.hud-tips-toggle:hover {
  opacity: 1;
}

.hud-menu {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 22px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.9;
}

.hud-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.hud-menu[aria-expanded="true"] {
  opacity: 1;
}

.hud-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 140px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(43, 26, 2, 0.92);
  border: 1px solid #67593f;
  border-radius: 8px;
  box-sizing: border-box;
  pointer-events: auto;
}

.hud-menu-dropdown.hidden {
  display: none;
}

.hud-menu-dropdown button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e7e9ee;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.hud-menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* In-game settings panel */
#settings-panel {
  pointer-events: auto;
  position: absolute;
  top: 48px;
  left: 12px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw / 3));
  padding: 10px 12px;
  color: #e7e9ee;
  font-size: 12px;
  line-height: 1.25;
  box-sizing: border-box;
}

#settings-panel.hidden {
  display: none;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.settings-title {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.settings-close {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c8cad0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.settings-close:hover {
  color: #ffffff;
}

.settings-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.settings-key {
  color: #aeb2bd;
  flex: 1 1 auto;
  min-width: 0;
}

.settings-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e7e9ee;
  cursor: pointer;
  user-select: none;
}

.settings-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2e6b3f;
  cursor: pointer;
}

.settings-bind {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 4px 8px;
  border: 1px solid #67593f;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.settings-bind:hover {
  border-color: #8a7855;
}

.settings-bind.is-listening {
  border-color: #ff8c1a;
  color: #ff8c1a;
}

.hud-resources {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hud-res {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
}

.hud-res::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
}

.hud-res:hover::before {
  opacity: 1;
}

.hud-res img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.hud-res-sep,
.hud-res-amt {
  position: relative;
  z-index: 1;
}

.hud-res-sep {
  opacity: 0.95;
}

.hud-res-amt {
  min-width: 1ch;
}

.hud-res-tt {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 160px;
  max-width: 310px;
  transform: translateX(-50%);
  text-shadow: none;
  white-space: normal;
  pointer-events: none;
}

.hud-res:hover .hud-res-tt {
  display: flex;
}

.hud-res-tt-title,
.hud-tt-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.hud-res-tt-kind,
.hud-tt-kind {
  margin: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  color: #9aa6bc;
}

.hud-res-tt-desc,
.hud-tt-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #b7c2d6;
}

#clock,
.hud-clock {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 5px;
  font-size: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  pointer-events: auto;
  cursor: default;
}

.hud-clock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
}

.hud-clock:hover::before {
  opacity: 1;
}

#clock-text {
  position: relative;
  z-index: 1;
}

.hud-clock .hud-tt {
  display: none;
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 160px;
  max-width: 310px;
  transform: none;
  text-shadow: none;
  white-space: normal;
  pointer-events: none;
  text-align: left;
  letter-spacing: normal;
  font-variant-numeric: normal;
}

.hud-clock:hover .hud-tt {
  display: flex;
}

#clock[data-phase="night"],
.hud-clock[data-phase="night"] {
  color: #c8d6f0;
}

#clock[data-phase="dusk"],
.hud-clock[data-phase="dusk"] {
  color: #f0d0b0;
}

#clock[data-phase="dawn"],
.hud-clock[data-phase="dawn"] {
  color: #e0d4f0;
}

#hud-meta {
  position: fixed;
  top: 40px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: min(520px, calc(100% - 20px));
}

#debug-undead {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: #9fd49a;
  opacity: 0.9;
}

#status {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

#hint {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.65;
}

/* —— Game panel chrome (bg + border.png edges + corner.png) —— */
.ziv-panel {
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  background-color: transparent;
  background-image: var(--panel-bg);
  background-repeat: repeat;
  background-position: 0 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ziv-panel-edge {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background-image: var(--panel-border-img);
  background-size: var(--panel-edge) var(--panel-edge);
}

.ziv-panel-edge--t,
.ziv-panel-edge--b {
  left: 0;
  right: 0;
  height: var(--panel-edge);
  background-repeat: repeat-x;
}

.ziv-panel-edge--t {
  top: calc(var(--panel-edge) * -1);
  transform: scaleY(-1);
}

.ziv-panel-edge--b {
  bottom: calc(var(--panel-edge) * -1);
}

.ziv-panel-edge--l,
.ziv-panel-edge--r {
  top: 0;
  bottom: 0;
  width: var(--panel-edge);
  overflow: hidden;
  background: none;
}

.ziv-panel-edge--l {
  left: calc(var(--panel-edge) * -1);
}

.ziv-panel-edge--r {
  right: calc(var(--panel-edge) * -1);
}

/*
 * border.png is a horizontal bevel strip. For vertical edges we rotate a long
 * repeat-x strip 90°. rotate(90deg) alone maps the strip to x=-4..0 (clipped
 * away) — nudge with translateX / origin so it fills the 4px gutter.
 */
.ziv-panel-edge--l::before,
.ziv-panel-edge--r::before {
  content: "";
  position: absolute;
  top: 0;
  width: 4096px;
  height: var(--panel-edge);
  background-image: var(--panel-border-img);
  background-repeat: repeat-x;
  background-size: var(--panel-edge) var(--panel-edge);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform-origin: top left;
}

.ziv-panel-edge--l::before {
  left: 0;
  /* rotate first → strip at x=-edge..0; then shift into the gutter */
  transform: translateX(var(--panel-edge)) rotate(90deg);
}

.ziv-panel-edge--r::before {
  /* Anchor on the outer side of the gutter, rotate strip downward. */
  left: var(--panel-edge);
  transform: rotate(90deg);
}

.ziv-panel-corner {
  position: absolute;
  width: var(--panel-corner);
  height: var(--panel-corner);
  pointer-events: none;
  z-index: 6;
  background-image: var(--panel-corner-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--panel-corner) var(--panel-corner);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Center of 12×12 sits on the panel corner → offset by half size. */
.ziv-panel-corner--tl {
  top: calc(var(--panel-corner) / -2);
  left: calc(var(--panel-corner) / -2);
}

.ziv-panel-corner--tr {
  top: calc(var(--panel-corner) / -2);
  right: calc(var(--panel-corner) / -2);
}

.ziv-panel-corner--br {
  bottom: calc(var(--panel-corner) / -2);
  right: calc(var(--panel-corner) / -2);
}

.ziv-panel-corner--bl {
  bottom: calc(var(--panel-corner) / -2);
  left: calc(var(--panel-corner) / -2);
}

#inventory-root {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#inventory-root.inv-open {
  background: rgba(0, 0, 0, 0.35);
}

#hotbar-dock {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: calc(9 * var(--inv-slot-px) + 8 * var(--inv-slot-gap) + 8px);
}

#hotbar-status-wrap {
  position: relative;
  width: 100%;
}

#hotbar-status {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.hotbar-bar {
  position: relative;
  height: 15px;
  border: none;
  background: rgba(10, 12, 18, 0.72);
  overflow: hidden;
}

.hotbar-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  max-width: 100%;
  pointer-events: none;
}

.hotbar-bar--xp .hotbar-bar-fill {
  background: #a854a5;
}

.hotbar-bar--hp .hotbar-bar-fill {
  background: #41b619;
}

.hotbar-bar--mana .hotbar-bar-fill {
  background: #3b82f6;
}

.hotbar-bar--mana[hidden] {
  display: none;
}

#player-panel {
  pointer-events: auto;
  position: absolute;
  right: calc(100% + 24px);
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: calc(100vw / 6);
  padding: 8px 10px;
  color: #e7e9ee;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  box-sizing: border-box;
}

#player-panel.hidden {
  display: none;
}

#player-panel.has-points {
  box-shadow: 0 0 0 4px #ff8c1a;
}

.pp-divider {
  width: 100%;
  height: 1px;
  margin: 1px 0;
  background: #67593f;
  flex-shrink: 0;
}

.pp-name {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
  text-align: center;
}

.pp-points {
  color: #ff8c1a;
  font-size: 11px;
  margin-bottom: 2px;
  text-align: center;
}

.pp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.pp-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pp-key {
  color: #aeb2bd;
}

.pp-val {
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.pp-bonus {
  color: #41b619;
  font-weight: 700;
}

.pp-plus {
  pointer-events: auto;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent url("/assets/sprites/ui/uiparts/btn-exp-add.png") center / 16px 16px no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: none;
}

#player-panel.has-points .pp-plus {
  display: inline-block;
}

/* Object inspect panel — right of hotbar, mirrors player panel chrome. */
#info-panel {
  pointer-events: auto;
  position: absolute;
  left: calc(100% + 24px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 250px;
  min-height: 100%;
  padding: 8px 10px;
  color: #e7e9ee;
  font-size: 12px;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: normal;
}

#info-panel.hidden {
  display: none;
}

.ip-name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
}

.ip-desc {
  font-size: 12px;
  font-style: italic;
  color: #c8cad0;
  text-align: center;
}

.ip-combat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin-top: 2px;
}

.ip-combat[hidden],
.ip-desc[hidden],
.ip-row[hidden] {
  display: none !important;
}

.ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ip-key {
  color: #aeb2bd;
}

.ip-val {
  font-weight: 700;
  color: #ffffff;
}

.ip-house-repair {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.ip-house-repair[hidden] {
  display: none !important;
}

.ip-repair-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.ip-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.ip-cost img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.ip-cost.missing {
  color: #e07070;
}

.ip-repair-btn {
  appearance: none;
  border: 1px solid #67593f;
  background: rgba(0, 0, 0, 0.55);
  color: #e7e9ee;
  font: inherit;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.ip-repair-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.ip-repair-btn:not(:disabled):hover {
  background: rgba(0, 0, 0, 0.75);
}

.hotbar-bar-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

#hotbar {
  pointer-events: auto;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: grid;
  grid-template-columns: repeat(9, var(--inv-slot-px));
  gap: var(--inv-slot-gap);
  padding: 4px;
  width: 100%;
  box-sizing: border-box;
}

/* Compact combat stats — left of hotbar, same chrome, hotbar-aligned height. */
#combat-strip {
  pointer-events: none;
  position: absolute;
  right: calc(100% + 24px);
  bottom: 0;
  width: 200px;
  min-height: calc(var(--inv-slot-px) + 8px);
  box-sizing: border-box;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: #e7e9ee;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

#combat-strip .cs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

#combat-strip .cs-key {
  color: #aeb2bd;
}

#combat-strip .cs-val {
  font-weight: 700;
  color: #ffffff;
}

#combat-strip .cs-points {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
  color: #ff9900;
  white-space: normal;
}

#combat-strip .cs-points[hidden] {
  display: none !important;
}

#hotbar .inv-slot {
  position: relative;
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  padding: 0;
  border: var(--inv-empty-border);
  border-radius: 0;
  background: var(--inv-empty-bg);
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}

#hotbar .inv-slot:hover {
  background: var(--inv-empty-bg);
}

#hotbar .inv-slot.has-item,
#hotbar .inv-slot.has-item:hover {
  background: transparent;
  border-color: transparent;
}

#hotbar .inv-slot.equipped {
  box-shadow: none;
}

/* Only remaining UI stroke: selected hotbar item */
#hotbar .inv-slot.selected {
  z-index: 1;
}

#hotbar .inv-slot.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #ffffff;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

#hotbar .inv-slot.drag-over {
  z-index: 1;
}

#hotbar .inv-slot .inv-icon,
#hotbar .inv-slot .inv-fallback {
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  border-radius: 0;
  image-rendering: pixelated;
  object-fit: contain;
  pointer-events: none;
}

#inv-above-stack {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

#inv-notify {
  padding: 4px 10px;
  color: #fa9900;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

#inv-notify.hidden {
  display: none;
}

#inv-selected-name {
  pointer-events: none;
  position: relative;
  left: auto;
  bottom: auto;
  z-index: auto;
  transform: none;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}

#inv-selected-name.hidden {
  display: none;
}

#inventory-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  max-width: calc(100vw - 24px);
  padding: 12px;
  text-shadow: none;
}

#inventory-panel.hidden {
  display: none;
}

.inv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  width: calc(9 * var(--inv-slot-px) + 8 * var(--inv-slot-gap));
}

.inv-foot {
  margin-top: 10px;
  width: calc(9 * var(--inv-slot-px) + 8 * var(--inv-slot-gap));
}

.inv-hint {
  display: block;
  font-size: 11px;
  color: #8b97b0;
  line-height: 1.35;
}

.inv-close.hidden {
  display: none;
}

.inv-close,
.station-counter .st-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #c5d0e6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

.inv-close:hover,
.station-counter .st-close:hover {
  background: transparent;
  color: #e8eef7;
}

.inv-label {
  font-size: 11px;
  color: #9aa7c2;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inv-grid {
  display: grid;
  gap: var(--inv-slot-gap);
}

.inv-bag {
  grid-template-columns: repeat(9, var(--inv-slot-px));
}

.inv-equip {
  grid-template-columns: repeat(5, var(--inv-slot-px));
  margin-bottom: 8px;
  width: calc(9 * var(--inv-slot-px) + 8 * var(--inv-slot-gap));
}

.inv-hotbar-panel {
  grid-template-columns: repeat(9, var(--inv-slot-px));
}

.inv-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  padding: 0;
  background: var(--inv-empty-bg);
  border: var(--inv-empty-border);
  border-radius: 0;
  color: #e8eef7;
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
}

/* Main bag window: square cells/icons, no rounding. */
#inventory-panel .inv-slot {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  border-radius: 0;
}

#inventory-panel .inv-slot .inv-equip-ph {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0.45;
  pointer-events: none;
}

#inventory-panel .inv-slot .inv-icon,
#inventory-panel .inv-slot .inv-fallback {
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  border-radius: 0;
}

.inv-slot:hover {
  background: var(--inv-empty-bg);
}

.inv-slot.has-item,
.inv-slot.has-item:hover {
  background: transparent;
  border-color: transparent;
}

.inv-slot.equipped {
  box-shadow: none;
}

.inv-slot.selected {
  z-index: 1;
}

.inv-slot.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #ffffff;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}

/* Item icon stack: bg → 16×16@2× icon → frame */
.inv-icon-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-image: var(--inv-item-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.inv-icon-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--inv-item-frame);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.inv-icon {
  position: relative;
  z-index: 1;
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  pointer-events: none;
}

.inv-fallback {
  position: relative;
  z-index: 1;
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  display: grid;
  place-items: center;
  background: #262e45;
  border-radius: 0;
  font-weight: 700;
  font-size: 12px;
  pointer-events: none;
}

.inv-count {
  position: absolute;
  right: 3px;
  bottom: 2px;
  z-index: 4;
  font-size: 12px;
  font-weight: 700;
  color: #b6f26d;
  pointer-events: none;
  line-height: 1;
  text-shadow: 0 1px 1px #000;
}

/* Vertical durability bar (left edge of slot, 1px inset) */
.inv-dur-bar {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  z-index: 4;
  width: 4px;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.inv-dur-fill {
  display: block;
  width: 100%;
  background: #3ecf6a;
  border-radius: 1px;
  min-height: 0;
}

.inv-empty {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.inv-slot.drag-source {
  opacity: 0.35;
}

.inv-slot.drag-over {
  box-shadow: none;
}

.inv-drag-ghost {
  position: fixed;
  z-index: 60;
  width: calc(var(--inv-slot-px) * var(--ui-scale));
  height: calc(var(--inv-slot-px) * var(--ui-scale));
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.inv-drag-ghost .inv-icon-stack {
  width: 100%;
  height: 100%;
}

.inv-drag-ghost .inv-icon,
.inv-drag-ghost .inv-fallback {
  width: calc(var(--inv-icon-px) * var(--ui-scale));
  height: calc(var(--inv-icon-px) * var(--ui-scale));
}

#inventory-root.inv-dragging {
  cursor: grabbing;
}


/* Shared tooltip chrome — HUD + inventory/station (see .cursor/rules/ui-tooltips.mdc) */
.ziv-tooltip,
.hud-res-tt,
.hud-clock .hud-tt,
.item-tooltip {
  box-sizing: border-box;
  padding: var(--tt-pad);
  border: var(--tt-border);
  border-radius: var(--tt-radius);
  background: var(--tt-bg);
  color: #e8eef7;
  flex-direction: column;
  gap: var(--tt-gap);
  box-shadow: none;
}

/* Newbie tips stack — under HUD, top-right */
#tips-stack {
  position: fixed;
  top: 44px;
  right: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  pointer-events: none;
}

#tips-stack.hidden {
  display: none;
}

.tip-card {
  display: flex;
  width: 300px;
  box-sizing: border-box;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
  gap: 8px; /* 2× --tt-gap */
}

.tip-card.is-leaving {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.tip-title {
  font-size: 14px;
  font-weight: 600;
  color: #fa9900;
  line-height: 1.25;
}

.tip-body {
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.35;
  white-space: pre-wrap;
}

.tip-ack {
  align-self: flex-start;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 4px;
  background: #2e6b3f;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tip-ack:hover {
  background: #37824c;
}

.item-tooltip {
  display: flex;
  font-size: 13px;
  line-height: 1.35;
}

/* Shared item tooltip */
#item-tooltip-layer {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  max-width: 310px;
}

#item-tooltip-layer.hidden {
  display: none;
}

.item-tt-name {
  font-weight: 400;
  font-size: 14px;
  margin: 0;
  color: #fff;
}

.item-tt-desc {
  color: #b7c2d6;
  font-size: 13px;
  margin: 0;
}

.item-tt-meta {
  color: #9aa6bc;
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  margin: 0;
}

.item-tt-use-hint {
  color: #9aa6bc;
  font-size: 10px;
  font-style: italic;
  margin: 0;
}

.item-tt-rule {
  flex: 0 0 auto;
  width: 100%;
  height: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.25);
}

.item-tt-effects {
  margin: 0;
  padding: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: var(--tt-gap);
}

.item-tt-fx {
  font-weight: 400;
  font-size: 13px;
  margin: 0;
  color: #fa9900;
}

.item-tt-fx.fx-heal,
.item-tt-fx.fx-melee,
.item-tt-fx.fx-harvest,
.item-tt-fx.fx-generic {
  color: #fa9900;
}

.item-tt-price {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.item-tt-price-caption {
  display: none;
}

.item-tt-cost-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #b6f26d;
  font-weight: 400;
  white-space: nowrap;
  margin: 0;
}

.item-tt-cost-row.missing {
  color: #ff6b6b;
}

.item-tt-reqs {
  display: flex;
  flex-direction: column;
  gap: var(--tt-gap);
  margin: 0;
}

.item-tt-req {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: #ff6b6b;
}

.item-tt-req.ok {
  color: #b6f26d;
}

.item-tt-req.missing {
  color: #ff6b6b;
}

.item-tt-req-name {
  font-style: italic;
}

.item-tt-res-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  object-fit: contain;
  flex: 0 0 16px;
}

.item-tt-res-fallback {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #c9a227;
}

.item-tt-cost-sep {
  display: none;
}

#station-root {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

#station-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
}

#station-shell.hidden {
  display: none;
}

body.station-open #inventory-root.inv-shop-mode {
  background: transparent;
}

/* Pair centered: inventory | 24px gap | counter */
body.station-open #inventory-root.inv-shop-mode #inventory-panel {
  left: calc(50% - 12px);
  top: 50%;
  transform: translate(-100%, -50%);
  margin: 0;
}

body.station-open #inventory-root.inv-shop-mode .inv-close {
  display: none;
}

body.station-open #hotbar-dock {
  opacity: 0.35;
  pointer-events: none;
}

.station-counter {
  pointer-events: auto;
  position: absolute;
  left: calc(50% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: fit-content;
  max-width: calc(50vw - 24px);
  padding: 12px;
  text-shadow: none;
}

.station-counter .st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  width: calc(7 * var(--inv-slot-px) + 6 * var(--inv-slot-gap));
}

.station-counter .st-label {
  font-size: 11px;
  color: #9aa7c2;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.st-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--inv-slot-px));
  gap: var(--inv-slot-gap);
}

/* Cells: same as #inventory-panel .inv-slot */
.station-counter .inv-slot {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  padding: 0;
  background: var(--inv-empty-bg);
  border: var(--inv-empty-border);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.station-counter .inv-slot:hover {
  background: var(--inv-empty-bg);
  border-radius: 0;
}

.station-counter .inv-slot.has-item,
.station-counter .inv-slot.has-item:hover {
  background: transparent;
  border-color: transparent;
}

.station-counter .inv-slot.drag-over {
  box-shadow: none;
  border-radius: 0;
}

.station-counter .inv-slot .inv-icon,
.station-counter .inv-slot .inv-fallback {
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  border-radius: 0;
  image-rendering: pixelated;
  object-fit: contain;
}

.st-slot.st-unaffordable {
  opacity: 0.4;
}

.st-slot.st-unaffordable img {
  opacity: 1;
}

.st-foot {
  margin-top: 10px;
  width: calc(7 * var(--inv-slot-px) + 6 * var(--inv-slot-gap));
}

.st-hint {
  display: block;
  font-size: 11px;
  color: #8b97b0;
  line-height: 1.35;
}

.st-repair {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 8px;
  background: transparent;
  border: var(--tt-border);
  width: calc(7 * var(--inv-slot-px) + 6 * var(--inv-slot-gap));
  box-sizing: border-box;
}

.st-repair.hidden {
  display: none;
}

.st-repair-slot {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  flex: 0 0 var(--inv-slot-px);
  border-radius: 0;
}

.st-repair-slot .inv-icon,
.st-repair-slot .inv-fallback {
  width: var(--inv-icon-px);
  height: var(--inv-icon-px);
  border-radius: 0;
}

.st-repair-info {
  flex: 1;
  min-width: 0;
}

.st-repair-name {
  font-weight: 600;
  font-size: 13px;
  color: #e8eef7;
}

.st-repair-dur {
  font-size: 11px;
  color: #9aa7c2;
  margin-top: 2px;
}

.st-repair-cost {
  margin-top: 4px;
  font-size: 12px;
  color: #c5d0e6;
}

.st-repair-cost-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #e8eef7;
}

.st-repair-cost-row strong {
  font-size: 14px;
}

.st-repair-btn {
  background: #2e6b3f;
  border: none;
  color: #e8eef7;
  border-radius: 0;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.st-repair-btn:disabled {
  background: #262e45;
  cursor: default;
  opacity: 0.7;
}

.st-smelt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 8px;
  width: calc(7 * var(--inv-slot-px) + 6 * var(--inv-slot-gap));
  box-sizing: border-box;
}

.st-smelt.hidden {
  display: none;
}

.st-smelt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: var(--tt-border);
  box-sizing: border-box;
}

.st-smelt-inputs {
  display: flex;
  gap: var(--inv-slot-gap);
  flex: 0 0 auto;
}

.st-smelt-slot,
.st-smelt-out {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  flex: 0 0 var(--inv-slot-px);
  border-radius: 0;
  position: relative;
}

.st-smelt-bar-wrap {
  flex: 1;
  min-width: 24px;
  height: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #67593f;
  box-sizing: border-box;
  overflow: hidden;
}

.st-smelt-bar {
  height: 100%;
  width: 0%;
  background: #c4a35a;
  transition: width 0.05s linear;
}

.st-cook {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 8px;
  width: calc(7 * var(--inv-slot-px) + 6 * var(--inv-slot-gap));
  box-sizing: border-box;
}

.st-cook.hidden {
  display: none;
}

.st-cook-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-cook-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: transparent;
  border: var(--tt-border);
  box-sizing: border-box;
}

.st-cook-slot {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  flex: 0 0 var(--inv-slot-px);
  border-radius: 0;
  position: relative;
}

.st-cook-slot .inv-equip-ph {
  width: var(--inv-slot-px);
  height: var(--inv-slot-px);
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0.45;
  pointer-events: none;
}

.st-cook-bar-wrap {
  flex: 1;
  min-width: 24px;
  height: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #67593f;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.st-cook-bar {
  height: 100%;
  width: 0%;
  background: #e07830;
  transition: width 0.05s linear;
}

.st-cook-msg {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: #f0c080;
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
  white-space: nowrap;
}

.st-cook-msg.visible {
  display: flex;
}

.st-grid.hidden,
.st-label.hidden {
  display: none;
}

#grave-root {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#grave-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#grave-shell.hidden {
  display: none;
}

.grave-panel {
  pointer-events: auto;
  min-width: 280px;
  max-width: 90vw;
  padding: 16px 18px;
}

.grave-title {
  font-size: 16px;
  font-weight: 700;
  color: #e8eef7;
  margin-bottom: 14px;
  text-align: center;
}

.grave-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grave-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: #2a3550;
  color: #e8eef7;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.grave-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.grave-btn-resurrect {
  background: #3a4a2e;
}

.grave-btn-leave,
.grave-btn-leave-confirm {
  background: #4a2a2a;
}

.grave-leave-warn {
  font-size: 12px;
  line-height: 1.35;
  color: #ffb4b4;
  margin: 0 0 4px;
}

.grave-btn-cancel {
  background: transparent;
  font-weight: 500;
}

.grave-gold-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.grave-btn.hidden {
  display: none;
}

.world-left {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(6, 8, 14, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-left[hidden] {
  display: none !important;
}

.world-left-panel {
  padding: 24px 28px;
  max-width: 420px;
  text-align: center;
  color: #e8eef7;
}

.world-left-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.world-left-note {
  color: #9aa7c2;
  font-size: 13px;
  margin: 10px 0 16px;
}

.world-left-panel button,
.world-left-home {
  border: none;
  background: #3a4a2e;
  color: #e8eef7;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.cursor-float {
  position: fixed;
  z-index: 80;
  transform: translate(-50%, -120%);
  pointer-events: none;
  color: #b6f26d;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 2px #000;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.7s ease;
}

.cursor-float-show {
  opacity: 1;
  transform: translate(-50%, -180%);
}
