:root {
  color-scheme: dark;
  --bg-top: #8ec5ff;
  --bg-bottom: #e8bb73;
  --panel: rgba(10, 16, 24, 0.7);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text: #f6f3ec;
  --muted: rgba(246, 243, 236, 0.72);
  --accent: #f5b84a;
  --accent-strong: #ffda7b;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 244, 206, 0.38), transparent 36%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
}

body {
  position: fixed;
  inset: 0;
  --hotbar-bottom: max(0.45rem, env(safe-area-inset-bottom));
  --toolbar-bottom: calc(max(0.45rem, env(safe-area-inset-bottom)) + 5.35rem);
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  image-rendering: pixelated;
  cursor: crosshair;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.panel {
  position: absolute;
  top: 1rem;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px var(--shadow);
  line-height: 1.45;
  font-size: 0.92rem;
}

.panel-left {
  left: 1rem;
}

.panel-right {
  right: 1rem;
  text-align: right;
}

.diagnostic {
  display: none;
}

body.show-diagnostics .diagnostic {
  display: block;
}

.action-feedback {
  color: #fff2ba;
  font-weight: 750;
  min-height: 1.35em;
}

.objective {
  margin-top: 0.55rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.discovery-notice {
  margin-top: 0.35rem;
  color: #fff2ba;
  font-weight: 800;
}

.onboarding-loop {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.onboarding-loop span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.onboarding-loop b {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 184, 74, 0.16);
  color: var(--accent-strong);
}

#worldSeedInput {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

#worldSeedInput[aria-invalid="true"] {
  border-color: #ff8f78;
}

.setting-help,
.seed-help {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.seed-help {
  margin: -0.35rem 0 1.15rem;
  padding: 0 0.8rem;
}

.seed-help strong {
  color: var(--text);
}

.health-readout {
  display: grid;
  grid-template-columns: auto 7rem;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: #ffd6cc;
  font-weight: 800;
}

.health-readout i {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.health-readout b {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b62f2f, #f16d52);
  transition: width 180ms ease;
}

.world-time {
  margin-bottom: 0.25rem;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.night-warning {
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 174, 96, 0.5);
  border-radius: 8px;
  background: rgba(108, 35, 20, 0.62);
  color: #ffe1bd;
  font-weight: 800;
}

#reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  pointer-events: none;
  z-index: 4;
}

#damageFlash {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, transparent 35%, rgba(194, 28, 28, 0.5));
  transition: opacity 160ms ease-out;
}

#damageFlash.active {
  opacity: 1;
  transition-duration: 30ms;
}

#reticle::before,
#reticle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

#reticle::before {
  width: 2px;
  height: 22px;
}

#reticle::after {
  width: 22px;
  height: 2px;
}

#hotbar {
  position: fixed;
  left: 50%;
  bottom: var(--hotbar-bottom);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px var(--shadow);
  pointer-events: auto;
}

.slot {
  min-width: 58px;
  padding: 0.3rem 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  display: grid;
  gap: 0.14rem;
  justify-items: center;
  font: inherit;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.slot.empty {
  opacity: 0.62;
}

.slot.active {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 123, 0.95);
  background: rgba(245, 184, 74, 0.18);
}

.slot-number {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-name {
  display: none;
}

.slot-count {
  min-width: 1.7rem;
  padding: 0.06rem 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
}

.swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at center, rgba(24, 36, 52, 0.26), rgba(7, 10, 16, 0.7)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.28));
  z-index: 5;
}

#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-card {
  width: min(31rem, 100%);
  padding: 1.5rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(15, 21, 30, 0.88), rgba(15, 21, 30, 0.62)),
    rgba(15, 21, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 0.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-strong);
}

.overlay-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.lead {
  margin: 1rem 0 1.3rem;
  color: var(--muted);
  font-size: 1rem;
}

#playButton {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #271400;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(245, 184, 74, 0.28);
}

.footnote {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 800px) {
  .panel {
    top: 0.5rem;
    bottom: auto;
    max-width: calc(100vw - 1rem);
    font-size: 0.84rem;
  }

  .panel-left {
    left: 0.5rem;
  }

  .panel-right {
    top: auto;
    right: 0.5rem;
    bottom: calc(17rem + env(safe-area-inset-bottom));
  }

  #hotbar {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    transform: none;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.3rem;
  }

  .slot {
    min-width: 48px;
    padding: 0.28rem 0.3rem;
  }

  .slot-name {
    display: none;
  }
}

#mineProgress {
  --progress: 0%;
  position: fixed;
  left: 50%;
  top: calc(50% + 24px);
  width: 92px;
  height: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

#mineProgress.active {
  opacity: 1;
}

#mineProgress::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

#topActions {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 0.5rem;
}

#topActions button {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

#craftingButton {
  border-color: rgba(255, 218, 123, 0.42) !important;
  background: rgba(50, 39, 18, 0.78) !important;
}

#craftingButton span {
  margin-left: 0.35rem;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

#settingsPanel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 7, 12, 0.58);
}

#craftingPanel,
#chestPanel,
#furnacePanel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 184, 74, 0.13), transparent 34%),
    rgba(4, 7, 12, 0.66);
}

.crafting-card,
.chest-card {
  width: min(38rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid rgba(255, 218, 123, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(62, 43, 20, 0.3), transparent 45%),
    rgba(12, 18, 27, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.crafting-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.crafting-heading h2 {
  margin: 0;
}

.crafting-heading button,
.recipe-card button,
.chest-list button,
.furnace-card button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.62rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.crafting-lead,
.crafting-feedback {
  color: var(--muted);
}

.crafting-lead {
  margin: 0.7rem 0 1rem;
}

.chest-card {
  width: min(42rem, 100%);
}

.chest-list {
  display: grid;
  gap: 0.45rem;
}

.chest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.chest-row strong,
.chest-row span {
  display: block;
}

.chest-row span,
.chest-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.chest-section-title {
  margin: 1rem 0 0.55rem;
  font-size: 0.95rem;
}

.chest-list button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.recipe-list {
  display: grid;
  gap: 0.7rem;
}

.recipe-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 140ms ease, background 140ms ease;
}

.recipe-card.available {
  border-color: rgba(142, 205, 124, 0.5);
  background: rgba(81, 137, 65, 0.14);
}

.recipe-card.unavailable {
  opacity: 0.72;
}

.recipe-card.available button {
  border-color: rgba(255, 218, 123, 0.65);
  background: linear-gradient(135deg, rgba(245, 184, 74, 0.92), rgba(255, 218, 123, 0.92));
  color: #271400;
  font-weight: 800;
}

.recipe-name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.recipe-flow,
.recipe-owned {
  margin: 0;
  font-size: 0.84rem;
}

.recipe-flow {
  color: var(--text);
}

.recipe-owned {
  margin-top: 0.25rem;
  color: var(--muted);
}

.crafting-feedback {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
}

.crafting-feedback.success {
  color: #bcecae;
}

.crafting-feedback.failure {
  color: #ffd09c;
}

.furnace {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245, 184, 74, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(165, 82, 31, 0.16), rgba(255, 255, 255, 0.035));
}

.furnace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.furnace-heading h3,
.furnace-heading p,
.furnace-help {
  margin: 0;
}

.furnace-heading > span {
  color: #ffd09c;
  font-weight: 800;
}

.furnace-help {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.furnace-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.furnace-slot {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(5, 8, 12, 0.36);
}

.furnace-slot > span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.furnace-slot > div {
  display: flex;
  gap: 0.35rem;
}

.furnace-slot button {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.furnace-slot button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.furnace-meter {
  height: 0.45rem;
  margin-top: 0.8rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.furnace-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #d4562c, #ffc75c);
  transition: width 120ms linear;
}

.hidden {
  display: none !important;
}

.settings-card {
  width: min(28rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.2rem;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(12, 18, 27, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.settings-card h2 {
  margin: 0 0 1rem;
}

.settings-card label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.presentation-settings {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.settings-card .setting-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem;
}

.setting-toggle input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
}

.audio-settings {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 244, 213, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.audio-settings label {
  margin: 0;
}

.audio-settings select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 0.55rem;
  color: var(--text);
  background: #17212d;
  font: inherit;
}

.audio-settings input[type="range"] {
  width: 100%;
}

@media (max-width: 560px) {
  .audio-settings {
    grid-template-columns: 1fr;
  }
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.settings-actions button,
#touchControls button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}

#touchControls {
  position: fixed;
  inset: auto 0 max(0.8rem, env(safe-area-inset-bottom)) 0;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 0.8rem;
  pointer-events: none;
}

.touch-pad,
.touch-actions {
  pointer-events: auto;
}

.touch-pad {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 48px);
  gap: 0.35rem;
}

.touch-pad button[data-action="forward"] { grid-column: 2; grid-row: 1; }
.touch-pad button[data-action="left"] { grid-column: 1; grid-row: 2; }
.touch-pad button[data-action="backward"] { grid-column: 2; grid-row: 2; }
.touch-pad button[data-action="right"] { grid-column: 3; grid-row: 2; }

.control-settings {
  border: 1px solid rgba(255, 244, 213, 0.18);
  border-radius: 14px;
  margin: 2px 0;
  padding: 12px;
}

.control-settings legend {
  color: var(--accent);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 800;
  padding: 0 6px;
}

.control-settings p,
.control-settings-footer span {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.control-bindings {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: min(30vh, 270px);
  overflow-y: auto;
}

.control-binding {
  align-items: center;
  background: rgba(4, 13, 11, 0.44);
  border: 1px solid rgba(255, 244, 213, 0.12);
  border-radius: 9px;
  display: flex;
  font-size: 0.76rem;
  justify-content: space-between;
  padding: 6px 8px;
}

.control-binding button {
  min-width: 88px;
  padding: 7px 9px;
}

.control-binding button.is-capturing {
  border-color: var(--accent);
  color: var(--accent);
}

.control-settings-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
}

.control-settings-footer span {
  margin: 0;
  text-align: right;
}

.touch-actions {
  display: grid;
  gap: 0.45rem;
}

@media (pointer: coarse) {
  body {
    --hotbar-bottom: calc(6.4rem + env(safe-area-inset-bottom));
    --toolbar-bottom: calc(11.8rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .presentation-settings {
    grid-template-columns: 1fr;
  }

  .control-bindings {
    grid-template-columns: 1fr;
  }

  .control-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .control-settings-footer span {
    text-align: left;
  }

  #topActions {
    top: 0.5rem;
  }

  .recipe-card {
    grid-template-columns: 1fr;
  }

  .recipe-card button {
    width: 100%;
  }

  .furnace-slots {
    grid-template-columns: 1fr;
  }
}

#pausePanel {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 7, 12, 0.62);
}

#deathPanel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(circle, rgba(122, 20, 20, 0.28), rgba(4, 7, 12, 0.82));
}

.death-card {
  width: min(28rem, 100%);
  text-align: center;
}

.death-card button {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #271400;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pause-card {
  width: min(34rem, 100%);
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  margin: 1rem 0 1.2rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.controls-grid span {
  color: var(--muted);
}

#toolbar {
  position: fixed;
  left: 50%;
  bottom: var(--toolbar-bottom);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.3rem;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  padding: 0.3rem 0.35rem;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px var(--shadow);
  pointer-events: auto;
}

.tool-slot {
  min-width: 62px;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  font: inherit;
}

.tool-slot.active {
  border-color: rgba(255, 218, 123, 0.95);
  background: rgba(245, 184, 74, 0.18);
}

.tool-icon {
  font-size: 1rem;
}

.tool-name {
  font-size: 0.66rem;
}

.tool-durability {
  color: var(--muted);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 800px) {
  .tool-slot {
    min-width: 48px;
    padding: 0.42rem;
  }

  .tool-name {
    display: none;
  }
}
