/* Buttons */
.btn {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  box-shadow: 0 4px 0 var(--line);
}

.btn-secondary.is-danger {
  background: var(--accent);
  color: #fff;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.button-row-tight {
  margin-top: 12px;
}

/* Yellow pill label */
.tag {
  display: inline-block;
  background: var(--accent-2);
  color: #2b2b2b;
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 800;
  font-size: 14px;
}

.card {
  background: var(--card);
  border-radius: 26px;
  padding: 22px;
  max-width: 620px;
  margin-top: 12px;
}

.card-title {
  margin-top: 10px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Progress */
.progress-bar {
  height: 12px;
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* Fake loading bar; navigation.js animates the width to 100%. */
.loader {
  width: min(440px, 80%);
  height: 14px;
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
  margin-top: 22px;
}

.loader i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition-property: width;
  transition-timing-function: linear;
}

/* Avatar on its backdrop */
.avatar-stage {
  border-radius: 32px;
  padding: 6px;
  margin: 10px 0;
}

.avatar-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Pill tabs (avatar categories) */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.chips button {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
}

.chips button.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* Floating house button that opens the lobby */
.lobby-button {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #2b2b2b;
  font-size: 32px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 12px 26px rgba(0, 0, 0, 0.22);
  z-index: 5;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lobby-button {
    animation: none;
  }
}

.btn-small {
  font-size: 14px;
  padding: 6px 14px;
}
