[hidden]{display:none !important}

:root {
  --cream: #FFF6EE;
  --berry: #E23E57;
  --peach: #FFB085;
  --ink: #2B2118;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Nunito, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  padding-bottom: 108px;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 18px;
}

.site-header::after {
  content: "";
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--berry);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.pill-nav,
.header-actions,
.hero-actions,
.facts,
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.pill-nav a,
#btn-login,
#btn-signup,
.btn,
.play-link,
#age-yes,
#age-no,
#cookie-accept,
#btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  max-width: 100%;
}

.pill-nav a {
  background: var(--peach);
  color: var(--ink);
}

.pill-nav a[aria-current="page"] {
  background: var(--berry);
  color: var(--cream);
}

#btn-login,
#age-no {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

#btn-signup,
.btn-berry,
.play-link,
#age-yes,
#cookie-accept {
  background: var(--berry);
  color: var(--cream);
  border: 2px solid var(--berry);
}

.btn-peach {
  background: var(--peach);
  color: var(--ink);
  border: 2px solid var(--peach);
}

#btn-login:hover,
#age-no:hover,
.btn-peach:hover,
.pill-nav a:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

#btn-signup:hover,
.btn-berry:hover,
.play-link:hover,
#age-yes:hover,
#cookie-accept:hover,
#btn-logout:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

#player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peach);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  font-weight: 800;
  max-width: 100%;
}

#player-name {
  overflow-wrap: anywhere;
}

#btn-logout {
  background: var(--berry);
  color: var(--cream);
  border: 0;
  padding: 8px 12px;
}

.hero {
  position: relative;
  width: min(740px, calc(100% - 32px));
  margin: 8px auto 56px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  width: 180px;
  height: 180px;
  background: var(--peach);
  top: 36px;
  left: 0;
}

.hero::after {
  width: 92px;
  height: 92px;
  background: var(--berry);
  top: 18px;
  right: 8px;
}

.hero-frame {
  position: relative;
  z-index: 1;
  background: var(--peach);
  border-radius: 36px;
  padding: 10px;
}

.hero-frame img,
.band img,
.how-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.12;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin: 22px 0 12px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}

h3 {
  font-size: 1.45rem;
  margin: 12px 0 6px;
}

.lead {
  max-width: 38rem;
  margin: 0 auto 18px;
  font-size: 1.15rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.facts li {
  border: 2px solid var(--berry);
  background: var(--peach);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
}

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 48px;
  text-align: center;
}

.card-grid,
.steps,
.features {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.game-card,
.steps li,
.features li {
  background: var(--cream);
  border: 2px solid var(--peach);
  border-radius: 28px;
  padding: 12px 12px 18px;
}

.game-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--berry);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.game-card p,
.features p,
.steps p {
  margin: 0 0 12px;
}

.steps,
.features {
  list-style: none;
  text-align: left;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  grid-template-columns: repeat(4, 1fr);
}

.steps li,
.features li {
  padding: 18px;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--berry);
  color: var(--cream);
  font-weight: 800;
}

.how-photo {
  width: min(420px, 100%);
  margin: 0 auto 18px;
  border: 6px solid var(--peach);
}

.band img {
  border: 6px solid var(--peach);
  border-radius: 32px;
  margin-bottom: 16px;
}

.prose {
  width: min(720px, calc(100% - 32px));
  margin: 8px auto 56px;
}

.prose h1,
.section h2 {
  text-align: center;
}

.prose p {
  margin: 0 0 16px;
}

.stack-form {
  display: grid;
  gap: 8px;
  text-align: left;
  background: var(--cream);
  border: 2px solid var(--peach);
  border-radius: 28px;
  padding: 18px;
  margin-top: 8px;
}

label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--peach);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex: none;
}

.form-error {
  color: var(--berry);
  font-weight: 800;
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 20px 28px;
}

.footer-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-brand,
.site-footer nav,
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-brand strong,
.site-footer h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  margin: 0;
}

.footer-brand p,
.site-footer p,
.footer-base {
  margin: 0;
}

.site-footer a {
  color: var(--peach);
}

.footer-brand img {
  background: var(--cream);
  border-radius: 50%;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--berry);
  color: var(--cream);
  font-weight: 800;
}

.footer-base {
  width: min(1080px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.gate,
.modal {
  position: fixed;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
}

.gate {
  z-index: 80;
  background: rgba(43, 33, 24, 0.5);
}

.modal {
  z-index: 70;
  background: rgba(43, 33, 24, 0.48);
}

.gate-card,
.modal-card {
  width: min(440px, 100%);
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--peach);
  border-radius: 28px;
  padding: 26px 20px 22px;
  text-align: center;
  position: relative;
}

.modal-card {
  text-align: left;
}

.modal-card h2 {
  padding-right: 76px;
  margin-top: 0;
}

.modal-card form,
.gate-card p {
  margin-top: 0;
}

.modal-card form {
  display: grid;
  gap: 8px;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: var(--peach);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 20px));
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.cookie p {
  margin: 0;
  flex: 1 1 220px;
}

.cookie a {
  color: var(--peach);
}

#contact-ok {
  font-weight: 800;
  background: var(--peach);
  border-radius: 18px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  .features,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame,
  .band img,
  .how-photo {
    border-radius: 22px;
  }
}
