/* Shared look for every DOM screen (title, select, battle HUD, revive). */
:root {
  --font: "Noto Serif KR", "Nanum Myeongjo", "Apple SD Gothic Neo", serif; /* main.js overrides with SozoFonts/I18n stack */
  --gold: #f3d488;
  --gold-deep: #b8862f;
  --ink: #1a0f0a;
  --night: #0d0b22;
  --text: #fff6e2;
  --red: #e2553f;
  --blue: #4f7fe0;
  --green: #3fae6e;
}
#ui, #ui * { box-sizing: border-box; font-family: var(--font); }

/* 9-slice panel from the generated lacquer frame */
.panel {
  border-style: solid;
  border-width: 22px;
  border-image: url("../assets/ui-panel.webp") 64 fill / 22px stretch;
  color: var(--text);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
/* 9-slice button */
.btn {
  border-style: solid;
  border-width: 12px 16px;
  border-image: url("../assets/ui-button.webp") 40 fill / 12px 16px stretch;
  background: none;
  color: var(--text);
  font-weight: 900;
  min-height: 48px;
  min-width: 48px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink), 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(.3,1.6,.5,1), filter 0.12s;
}
.btn:hover, .btn.focus { transform: scale(1.06); filter: brightness(1.18) drop-shadow(0 0 8px rgba(255, 210, 120, 0.7)); }
.btn:active, .btn.pressed { transform: scale(0.94); }
.btn.disabled { filter: grayscale(0.8) brightness(0.6); }
/* small square icon plate (same set as the pause button) */
.plate {
  width: 48px; height: 48px;
  background: url("../assets/ui-plate.webp") center / 100% 100% no-repeat;
  border: none; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.12s cubic-bezier(.3,1.6,.5,1), filter 0.12s;
}
.plate:hover, .plate.focus { transform: scale(1.08); filter: brightness(1.2); }
.plate:active { transform: scale(0.92); }
/* outlined display text */
.outlined {
  color: var(--text); font-weight: 900;
  text-shadow: 0 3px 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 0 10px rgba(0,0,0,0.6);
}
@keyframes pop-in { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
