:root {
  --ink: #120c2a;
  --ink-soft: #3b3260;
  --lavender: #efe7ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  background: url('assets/img/bg-main-page.png') center/cover fixed;
  min-height: 100vh;
  color: var(--ink);
}

.page-shell {
  min-height: 100vh;
  position: relative;
  padding: 24px 32px;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.top-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.brand {
  font-weight: 700;
  font-size: 24px;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.pill-button {
  border: none;
  border-radius: 20px;
  width: 250px;
  height: 46px;
  background: center/contain no-repeat;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}
.pill-parent {
  width: 250px;
  height: 46px;
  background-image: url('assets/img/parent_portal.png');
}
.top-right {
  position: static;
  transform: none;
}
.pill-parent {
  background-image: url('assets/img/parent_portal.png');
}
.pill-specialist {
  background-image: url('assets/img/button.png');
}

.hero-shell {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.name-input {
  display: block;
  width: 250px;
  max-width: 90vw;
  height: 120px;
  background: url('assets/img/input.png') center/contain no-repeat;
  border-radius: 24px;
  box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.15);
}

.name-input input {
  width: 100%;
  height: 120%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 26px;
  font-weight: 800;
  color: #1d1d1d;
  text-align: center;
  letter-spacing: 0.3px;
  padding: 0;
}

.cta-secondary {
  margin-left: 0;
  border: none;
  border-radius: 30px;
  width: 250px;
  height: 70px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  color: #fffefa;
  background: url('assets/img/button.png') center/cover no-repeat;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

#start-game {
  cursor: pointer !important;
}

#start-game:hover {
  cursor: pointer !important;
}

button {
  cursor: pointer;
}

.hero-shell .emoji {
  font-size: 18px;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .hero-shell {
    align-items: stretch;
  }
}

#stage-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 4px;
}

#stage-gallery article {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

#stage-gallery .h-36 {
  height: 170px;
  background: #f1f5fb;
}

#stage-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#stage-gallery .p-4 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#stage-gallery .flex.items-center {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

#stage-gallery audio {
  width: 100%;
  border-radius: 14px;
  background: #fefefe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  outline: none;
  margin-top: auto;
}
