* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  background: #0f0c0a;
  color: #f5e6c8;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  background: #0f0c0a;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#ui .hub-top {
  pointer-events: none;
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

#ui .brand {
  font-size: 22px;
  font-weight: 800;
  color: #f0d9a0;
  text-shadow: 0 2px 0 #3a2810;
  flex-shrink: 0;
}

#ui .currency {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  color: #f5e6c8;
  text-shadow: 0 2px 0 rgba(58, 40, 16, 0.85);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(12, 8, 4, 0.72);
  border: 1px solid rgba(201, 166, 107, 0.45);
  border-radius: 12px;
}

#ui .currency .res {
  white-space: nowrap;
  letter-spacing: 0.02em;
}

#ui .currency .gold-res {
  color: #fde68a;
}

#ui .currency .gem-res {
  color: #a5f3fc;
}

#ui .currency .mat-res {
  color: #d6d3d1;
}

#ui .currency .lvl-res {
  color: #f0d9a0;
}

#ui .gold {
  font-weight: 700;
  font-size: 17px;
}

#ui .hub-hint {
  pointer-events: none;
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  font-size: 14px;
  opacity: 0.75;
}

#ui .hub-nav {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(20, 14, 8, 0.88);
  border-radius: 14px;
  border: 1px solid rgba(201, 166, 107, 0.4);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 96%;
}

#ui .hub-nav button {
  appearance: none;
  border: 2px solid #c9a66b;
  background: #3d2a18;
  color: #f5e6c8;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px 5px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  min-height: 42px;
  min-width: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
}
#ui .hub-nav .nav-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  opacity: 0.95;
}
#ui .hub-nav button span {
  display: block;
}
#ui .nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
#ui .nav-badge.soft {
  background: #ca8a04;
}

#ui .panel-x {
  appearance: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(240, 217, 160, 0.45);
  border-radius: 8px;
  background: rgba(40, 28, 16, 0.9);
  color: #f5e6c8;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}
#ui .panel-x:hover {
  background: #6b4423;
  border-color: #facc15;
  color: #fff;
}

#ui .map-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  width: min(380px, 92%);
  background: rgba(20, 14, 8, 0.94);
  border: 1px solid #c9a66b;
  border-radius: 12px;
  padding: 36px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

#ui .map-panel.hidden {
  display: none;
}

#ui .map-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 4px;
}
#ui .map-desc.muted {
  opacity: 0.65;
  font-size: 13px;
}
#ui .map-desc.tip {
  opacity: 1;
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(60, 40, 10, 0.75);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
}
#ui .gate-tip {
  color: #fde68a;
  display: inline-block;
  margin-top: 4px;
}
#ui .roster-item.go {
  background: #4a6b23;
  border-color: #a3e635;
  font-weight: 800;
}

#ui .roster-item .muted {
  opacity: 0.55;
  font-size: 12px;
}
#ui .btn-cta.fight,
#ui .btn-cta.collect {
  pointer-events: auto;
  position: absolute;
  right: 18px;
  bottom: 78px;
  appearance: none;
  border: 2px solid #facc15;
  background: linear-gradient(180deg, #6b4423, #4a2e16);
  color: #f5e6c8;
  font-size: 17px;
  font-weight: 800;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25);
  min-height: 52px;
}
#ui .btn-cta.collect {
  bottom: 142px;
  border-color: #fbbf24;
  background: linear-gradient(180deg, #4a6b23, #365314);
  box-shadow: 0 0 0 1px rgba(163, 230, 53, 0.28);
}
#ui .btn-cta.collect:disabled {
  opacity: 0.45;
  cursor: default;
  filter: grayscale(0.35);
}

#ui .tutorial-bar {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(20, 14, 8, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #f5e6c8;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  z-index: 3;
}

#ui .village-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  width: min(520px, 96%);
  max-height: 72%;
  overflow-y: auto;
  z-index: 5;
  padding: 36px 14px 14px;
  background:
    linear-gradient(180deg, rgba(58, 38, 22, 0.97), rgba(28, 18, 10, 0.97));
  border: 3px solid #c9a227;
  box-shadow:
    inset 0 0 0 2px #3d2a14,
    0 12px 40px rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#ui .village-panel.hidden {
  display: none;
}

#ui .homm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background:
    linear-gradient(160deg, #6b4a2e 0%, #4a3220 45%, #3a2718 100%);
  border: 2px solid #d4af37;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 170, 0.25);
  border-radius: 8px;
  color: #f5e6c8;
}
#ui .homm-card.locked {
  opacity: 0.92;
  filter: saturate(0.85);
}
#ui .homm-card-head {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #ffe6a8;
  text-shadow: 0 1px 0 #1a1008;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
#ui .homm-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
#ui .homm-portrait {
  border: 2px solid #b8860b;
  border-radius: 4px;
  overflow: hidden;
  background: #1a2214;
  min-height: 150px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.45);
}
#ui .homm-portrait canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}
#ui .homm-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
#ui .homm-stat {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
}
#ui .homm-ico {
  font-size: 14px;
  text-align: center;
}
#ui .homm-label {
  color: #e8d5a8;
  opacity: 0.9;
}
#ui .homm-val {
  font-weight: 700;
  color: #fff8e7;
  min-width: 1.6em;
  text-align: right;
}
#ui .homm-bottom {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}
#ui .homm-abil-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#ui .homm-abil-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(160deg, #5a3d24, #2e1c10);
  border: 2px solid #d4af37;
  border-radius: 4px;
}
#ui .homm-lvl {
  font-size: 11px;
  color: #f0d9a0;
  font-weight: 700;
}
#ui .homm-abil-text {
  font-size: 12px;
  line-height: 1.35;
  color: #f0e2c4;
  max-height: 88px;
  overflow-y: auto;
}
#ui .homm-meta {
  font-size: 11px;
  margin-bottom: 4px;
  color: #d6c49a;
}
#ui .homm-class {
  color: #fde68a;
  font-weight: 700;
}
#ui .homm-abil {
  color: #efe2c6;
}
#ui .homm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#ui .homm-actions .roster-item {
  flex: 1 1 40%;
  min-width: 0;
}

#ui .city-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#ui .city-tabs .roster-item {
  flex: 1;
  min-width: 0;
}

#ui .quests-panel {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  width: min(360px, 92%);
  max-height: 55%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
  padding: 8px;
  background: rgba(12, 8, 4, 0.72);
  border-radius: 12px;
}

#ui .quests-page {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 58px;
  bottom: 78px;
  transform: translateX(-50%);
  width: min(420px, 94%);
  overflow-y: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

#ui .quest-active-title {
  font-size: 13px;
  color: #e7d3a8;
  text-align: center;
  padding: 6px 10px;
  background: rgba(20, 12, 6, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 10px;
}

#ui .quest-section-title {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4a574;
  font-weight: 700;
}

#ui .quest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#ui .quest-row {
  pointer-events: auto;
  text-align: left;
  width: 100%;
  border: 1px solid rgba(180, 140, 80, 0.35);
  background: rgba(18, 12, 7, 0.82);
  color: #f5e6c8;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: default;
  opacity: 0.85;
}

#ui .quest-row:disabled {
  cursor: default;
}

#ui .quest-row.go {
  border-color: #facc15;
  background: rgba(60, 40, 12, 0.92);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35);
  cursor: pointer;
  opacity: 1;
}

#ui .quest-row.claimed {
  opacity: 0.55;
}

#ui .quest-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
}

#ui .quest-status {
  font-size: 12px;
  color: #a8a29e;
  white-space: nowrap;
}

#ui .quest-status.ready {
  color: #facc15;
  font-weight: 700;
}

#ui .quest-status.done {
  color: #86efac;
}

#ui .quest-bar {
  margin-top: 6px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#ui .quest-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a16207, #facc15);
}

#ui .quest-extra {
  margin-top: 4px;
  font-size: 11px;
  color: #a8a29e;
}

#ui .title-row,
#ui .ach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ui .title-chip,
#ui .ach-chip {
  pointer-events: auto;
  border: 1px solid rgba(180, 140, 80, 0.35);
  background: rgba(18, 12, 7, 0.75);
  color: #e7d3a8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

#ui .title-chip {
  cursor: pointer;
}

#ui .title-chip.on,
#ui .ach-chip.on {
  border-color: #facc15;
  color: #fef3c7;
  background: rgba(70, 45, 12, 0.9);
}

#ui .ach-chip:not(.on) {
  opacity: 0.4;
}

#ui .hub-nav {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 96%;
}

#ui .hub-nav button {
  font-size: 11px;
  padding: 6px 8px 5px;
}
#ui .hp-row {
  display: flex;
  gap: 10px;
}

#ui .hp-wrap.enemy {
  width: 140px;
}

#ui .hp-bar.red {
  border-color: rgba(248, 113, 113, 0.35);
}

#ui .hp-fill.red {
  background: linear-gradient(90deg, #7f1d1d, #ef4444);
}

#ui .btn-mini.on {
  background: #3f6212;
  border-color: #a3e635;
}

#ui .hub-nav button.on {
  background: #6b4423;
  box-shadow: 0 0 0 1px #facc15;
}

#ui .hub-nav button.defense {
  background: #5c1a1a;
  border-color: #f87171;
}

#ui .btn-mini.reset {
  pointer-events: auto;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.55;
  font-size: 11px;
}

#ui .saves-page {
  pointer-events: auto;
  position: absolute;
  left: 14px;
  right: 14px;
  top: 64px;
  bottom: 88px;
  overflow-y: auto;
  padding: 4px 2px 12px;
  z-index: 2;
}

#ui .save-auto {
  font-size: 13px;
  font-weight: 700;
  color: #f0d9a0;
  margin-bottom: 6px;
  text-shadow: 0 1px 0 #3a2810;
}

#ui .saves-page .hub-hint {
  position: static;
  margin-bottom: 12px;
  opacity: 0.85;
}

#ui .save-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ui .save-slot {
  background: rgba(20, 14, 8, 0.92);
  border: 1px solid rgba(201, 166, 107, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
}

#ui .save-slot.empty {
  border-style: dashed;
  opacity: 0.92;
}

#ui .save-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  color: #fde68a;
}

#ui .save-slot-meta {
  font-size: 13px;
  line-height: 1.35;
  color: #f5e6c8;
}

#ui .save-slot-time {
  font-size: 11px;
  margin-top: 4px;
}

#ui .save-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#ui .save-slot-actions .btn-mini {
  pointer-events: auto;
  position: static;
  transform: none;
  opacity: 1;
  font-size: 12px;
  padding: 6px 10px;
}

#ui .save-slot-actions .btn-mini:disabled {
  opacity: 0.35;
  cursor: default;
}

#ui .save-new-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

#ui .save-new-row .btn-cta {
  pointer-events: auto;
  position: static;
  width: auto;
  min-width: 180px;
}

#ui .telemetry-block {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#ui .telemetry-title {
  margin: 0 0 6px;
  font-size: 15px;
  color: #e2e8f0;
}

#ui .telemetry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#ui .telemetry-actions .btn-mini {
  pointer-events: auto;
}

#ui .btn-mini.danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
}

#ui .muted {
  color: rgba(245, 230, 200, 0.55);
}

#ui .roster-panel {
  pointer-events: auto;
  position: absolute;
  right: 18px;
  top: 64px;
  width: min(320px, 42vw);
  max-height: min(420px, 62vh);
  overflow: auto;
  background: rgba(20, 14, 8, 0.94);
  border: 1px solid #c9a66b;
  border-radius: 12px;
  padding: 36px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#ui .roster-panel .slot-desc {
  line-height: 1.4;
  margin: 2px 0 8px;
  font-size: 13px;
}

#ui .roster-panel.hidden {
  display: none;
}

#ui .roster-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

#ui .roster-item {
  appearance: none;
  border: 1px solid rgba(201, 166, 107, 0.45);
  background: #2a1c10;
  color: #f5e6c8;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}
#ui .roster-item:disabled {
  opacity: 0.4;
}

#ui .roster-item.skin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}

#ui .roster-item.skin-item.on {
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.25);
}

#ui .skin-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 56px;
  border-radius: 6px;
  background: #1a120c center bottom / contain no-repeat;
  border: 1px solid rgba(201, 166, 107, 0.35);
}

#ui .skin-meta {
  flex: 1;
  line-height: 1.35;
}

#ui .top-bar.battle-hud {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(rgba(12, 8, 4, 0.85), transparent);
  font-size: 13px;
  font-weight: 600;
}

#ui .battle-hud .right-stats {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#ui .battle-controls {
  display: flex;
  gap: 4px;
}

#ui .lvl-name {
  margin-bottom: 4px;
}

#ui .hp-wrap {
  width: 160px;
}

#ui .hp-label {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 3px;
}

#ui .hp-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(245, 230, 200, 0.25);
}

#ui .hp-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #8b2e1f, #d4a017);
  transition: width 0.12s linear;
}

#ui .btn-mini {
  pointer-events: auto;
  appearance: none;
  border: 1px solid #c9a66b;
  background: rgba(60, 40, 20, 0.85);
  color: #f5e6c8;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
}

#ui .battle-tip {
  pointer-events: none;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(20, 14, 8, 0.7);
  opacity: 0.85;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ui .battle-tip.flash {
  color: #bbf7d0;
  opacity: 1;
}

#ui .result {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 30%, rgba(40, 28, 18, 0.92) 0%, rgba(12, 8, 4, 0.95) 70%);
  text-align: center;
}

#ui .result h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #f0d9a0;
}

#ui .result p {
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 360px;
  line-height: 1.4;
  font-size: 15px;
}

#ui .levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(280px, 100%);
}

#ui .btn {
  appearance: none;
  border: 2px solid #c9a66b;
  background: linear-gradient(180deg, #6b4423, #4a2e16);
  color: #f5e6c8;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}

#ui .btn.secondary {
  background: transparent;
}

#ui .btn.go {
  border-color: #facc15;
  background: linear-gradient(180deg, #8a5a1a, #5c3a10);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}

/* Spotlight coach — dims everything except one hole */
#coach {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
#coach.hidden {
  display: none;
}
#coach .coach-pane {
  position: absolute;
  background: rgba(6, 4, 2, 0.78);
  pointer-events: auto;
}
#coach .coach-ring {
  position: absolute;
  pointer-events: none;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.95),
    0 0 18px 2px rgba(250, 204, 21, 0.35);
  animation: coach-pulse 1.4s ease-in-out infinite;
}
#coach .coach-msg {
  position: absolute;
  transform: translateX(-50%);
  max-width: min(420px, 88%);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 14, 8, 0.95);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #f5e6c8;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
  z-index: 1;
  text-shadow: 0 1px 0 #2a1a08;
}
@keyframes coach-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(250, 204, 21, 0.95),
      0 0 14px 2px rgba(250, 204, 21, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(253, 224, 71, 1),
      0 0 22px 4px rgba(250, 204, 21, 0.5);
  }
}

#boot-splash {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0c0a;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}
#boot-splash.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.boot-card {
  width: min(360px, 86vw);
  text-align: center;
}
.boot-title {
  font-size: 26px;
  font-weight: 800;
  color: #f0d9a0;
  text-shadow: 0 2px 0 #3a2810;
  margin-bottom: 10px;
}
.boot-label {
  font-size: 14px;
  color: #d4c4a8;
  margin-bottom: 12px;
}
.boot-track {
  height: 8px;
  border-radius: 6px;
  background: rgba(58, 40, 16, 0.85);
  border: 1px solid rgba(201, 166, 107, 0.45);
  overflow: hidden;
}
.boot-bar {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #c9a66b, #f0d9a0);
}
