:root {
  --bg-1: #f2ece0;
  --bg-2: #e4dece;
  --ink: #0e1112;
  --panel: rgba(242, 236, 224, 0.85);
  --panel-border: rgba(0, 0, 0, 0.18);
  --accent: #db4f2d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(219, 79, 45, 0.2), transparent 34%),
    radial-gradient(circle at 84% 80%, rgba(18, 102, 125, 0.18), transparent 42%),
    linear-gradient(130deg, var(--bg-1), var(--bg-2));
  font-family: "Jost", sans-serif;
  font-weight: 300;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#stage:active {
  cursor: grabbing;
}

.hud {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px 20px;
  border: 1px solid rgba(70, 66, 58, 0.22);
  border-bottom: 0;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(0deg, rgba(235, 226, 211, 0.96), rgba(244, 238, 228, 0.98));
  box-shadow:
    0 -6px 22px rgba(20, 18, 14, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 15px;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
}

.tb-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
}

.hud-label {
  color: rgba(0, 0, 0, 0.46);
  white-space: nowrap;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

input[type="text"] {
  width: 240px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 12px 16px 11px;
  color: rgba(0, 0, 0, 0.82);
  background: rgba(255, 255, 255, 0.34);
  text-transform: lowercase;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.46);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

button {
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  border-radius: 999px;
  padding: 9px 14px 8px;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

button:hover {
  border-color: rgba(0, 0, 0, 0.65);
  color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.btn-icon {
  width: 50px;
  padding: 8px 0 7px;
  border-radius: 14px;
  font-size: 1.4rem;
  letter-spacing: 0;
  line-height: 1;
  color: rgba(0, 0, 0, 0.48);
}

.btn-export {
  min-width: 182px;
  padding: 13px 22px 12px;
  border-color: rgba(20, 20, 20, 0.85);
  background: rgba(20, 20, 20, 0.86);
  color: rgba(242, 236, 224, 0.98);
  letter-spacing: 0.26em;
}

.btn-export:hover {
  border-color: rgba(20, 20, 20, 1);
  background: rgba(10, 10, 10, 0.92);
  color: rgba(255, 251, 243, 0.98);
}

@media (max-width: 720px) {
  .hud {
    gap: 16px;
    padding: 16px 14px 14px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-size: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .hud-left,
  .hud-right {
    width: 100%;
  }

  .tb-group {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  input[type="text"] {
    flex: 1;
    width: auto;
    min-width: 160px;
  }

  .btn-export {
    width: 100%;
  }
}
