/* Piano Tiles specific styles. Reuses hub's shared CSS vars + .pac-* classes. */

.pt-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.pt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.pt-score-wrap {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.pt-lives {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pt-heart {
  font-size: 1.5rem;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.pt-heart--lost {
  opacity: 0.2;
}

.pt-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem 0.25rem;
  min-height: 0;
}

.pt-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  border-radius: 14px;
  object-fit: contain;
  cursor: pointer;
}

/* Reuse .pac-win, .pac-win__card, .pac-win__btn from styles.css */

.pt-final-score {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* Settings gear button in the header. */
.pt-settings-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--bg-2);
  color: var(--fg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.pt-settings-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* Settings modal. */
.pt-settings {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 38, 0.8);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 1rem;
}

.pt-settings[hidden] {
  display: none;
}

.pt-settings__card {
  background: var(--bg-2);
  padding: 1.5rem 1.75rem 1.25rem;
  border-radius: 1.25rem;
  min-width: 280px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.06) inset;
}

.pt-settings__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pt-settings__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.pt-settings__btns button {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.9rem 0.5rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.pt-settings__btns button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.pt-settings__btns button[data-selected="true"] {
  background: var(--accent);
  color: #222;
  border-color: #fff6b0;
}

.pt-settings__close {
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.65rem 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #222;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.pt-settings__close:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
