[hidden] { display: none !important; }

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

html {
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: #E8F0E6;
  color: #1C3330;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1, h2, h3,
.brand span,
.band-caption,
.facts strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 0.55rem;
  color: #1F6F8B;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h2 { margin: 0 0 0.4rem; color: #1F6F8B; font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { margin: 0 0 0.35rem; color: #1F6F8B; font-size: 1.2rem; }
p { margin: 0 0 0.75rem; }

a { color: #1F6F8B; }
a:hover { color: #E07A3D; }

:focus-visible {
  outline: 2px solid #E07A3D;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: #1F6F8B;
  color: #E8F0E6;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  z-index: 80;
}
.skip:focus { top: 0.6rem; }

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #E8F0E6;
  border-bottom: 3px solid #1F6F8B;
}

.header-inner {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #1F6F8B;
  font-weight: 650;
}

.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  display: block;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.nav-main a {
  color: #1C3330;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding: 0.15rem 0;
}

.nav-main a[aria-current="page"] {
  color: #1F6F8B;
  border-bottom-color: #E07A3D;
}

.header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.btn,
.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-sunset,
.play-link {
  background: #E07A3D;
  border-color: #E07A3D;
  color: #1C3330;
}

.btn-sunset:hover,
.play-link:hover {
  background: #c9652c;
  border-color: #c9652c;
  color: #1C3330;
}

.btn-lake {
  background: transparent;
  color: #1F6F8B;
  border-color: #1F6F8B;
}

.btn-lake:hover {
  background: #1F6F8B;
  color: #E8F0E6;
}

.btn:active,
.play-link:active { transform: translateY(1px); }

#player-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #1F6F8B;
  color: #E8F0E6;
  border-radius: 999px;
  padding: 0.2rem 0.25rem 0.2rem 0.85rem;
}

#player-name { font-weight: 600; }

#btn-logout {
  background: #E07A3D;
  color: #1C3330;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hero { display: grid; }

.hero img {
  grid-area: 1 / 1;
  width: 100%;
  height: min(70vh, 40rem);
  object-fit: cover;
  display: block;
}

.hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  margin: 1.1rem;
  max-width: min(36rem, calc(100% - 2.2rem));
  background: #1F6F8B;
  color: #E8F0E6;
  padding: 1.15rem 1.3rem 1.25rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.hero-copy h1 { color: #E8F0E6; }
.hero-copy p { margin-bottom: 0.85rem; }
.hero-copy .btn-sunset { color: #1C3330; }

.route-kicker {
  margin: 0 0 0.35rem;
  color: #E07A3D;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .route-kicker { color: #E07A3D; }

.facts { margin-top: 1.4rem; }

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #F7FBF4;
  border: 1px solid #C5D5C2;
  border-radius: 1rem;
  overflow: hidden;
}

.facts li { padding: 1rem 1.1rem 1.15rem; }
.facts li + li { border-left: 1px solid #C5D5C2; }

.facts li::before {
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: #E07A3D;
}

.facts strong {
  display: block;
  color: #1F6F8B;
  font-size: 1.7rem;
}

.facts span { color: #1C3330; }

.section-head { margin: 2rem 0 1rem; }
.section-head p { max-width: 40rem; }

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.route::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: #1F6F8B;
}

.stop {
  position: relative;
  padding: 0 0 1.15rem 2.3rem;
}

.stop:last-child { padding-bottom: 0; }

.stop::before {
  content: "";
  position: absolute;
  left: 0.14rem;
  top: 1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #E07A3D;
  box-shadow: 0 0 0 4px #E8F0E6;
}

.stop-label {
  margin: 0 0 0.2rem;
  color: #E07A3D;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  background: #F7FBF4;
  border: 1px solid #C5D5C2;
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 10px 24px rgba(31, 111, 139, 0.08);
}

.game-card img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #1F6F8B;
}

.game-card p:last-of-type { margin-bottom: 0.8rem; }

.how-it-works { margin-top: 2.2rem; }

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.story-frame { margin: 0; }

.story-frame img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 1rem;
  border: 2px solid #1F6F8B;
  display: block;
}

.features {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.features li {
  background: #F7FBF4;
  border-radius: 0.9rem;
  padding: 1rem 0.95rem 0.85rem;
  border-top: 4px solid #E07A3D;
  min-width: 0;
}

.features p { margin: 0; }

.band {
  display: grid;
  margin-top: 2rem;
}

.band img {
  grid-area: 1 / 1;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}

.band-caption {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  margin: 1rem;
  max-width: min(24rem, calc(100% - 2rem));
  background: #E07A3D;
  color: #1C3330;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem 0.85rem 0.85rem 0.2rem;
  font-size: 1.25rem;
}

.page-intro { padding-top: 1.4rem; }
.page-intro .lead { max-width: 40rem; font-size: 1.12rem; }

.note-card,
.contact-card {
  background: #F7FBF4;
  border: 1px solid #C5D5C2;
  border-radius: 1rem;
  padding: 1rem 1rem 0.9rem;
}

form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

form input,
form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #1F6F8B;
  border-radius: 0.65rem;
  background: #fff;
  color: #1C3330;
  font: inherit;
}

form textarea { min-height: 8rem; resize: vertical; }

.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: auto;
  margin-top: 0.35rem;
}

.fine { margin: 0 0 0.7rem; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-error {
  color: #8C3A22;
  font-weight: 600;
  margin: 0.1rem 0 0.7rem;
}

#contact-ok {
  margin-top: 0.9rem;
  background: #E8F0E6;
  border-left: 4px solid #1F6F8B;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
}

.mail-line { font-weight: 600; }

.site-footer {
  background: #1F6F8B;
  color: #E8F0E6;
  margin-top: 2.4rem;
}

.site-footer a { color: #E8F0E6; }
.site-footer a:hover { color: #E07A3D; }

.footer-grid {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.1rem;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.05fr 1.15fr;
  gap: 1.4rem 1.2rem;
}

.footer-brand strong {
  display: block;
  margin: 0.45rem 0 0.3rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}

.site-footer h2 {
  margin: 0 0 0.55rem;
  color: #E07A3D;
  font-size: 1.05rem;
}

.site-footer nav,
.footer-grid > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
}

.site-footer nav a,
.footer-grid > div:last-child a {
  overflow-wrap: anywhere;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.7rem;
  padding: 0 0.4rem;
  border-radius: 50%;
  background: #E07A3D;
  color: #1C3330;
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
}

.footer-base {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 1.3rem;
  border-top: 1px solid rgba(232, 240, 230, 0.28);
  font-size: 0.92rem;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #E8F0E6;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: auto;
}

.age-card {
  width: min(100%, 32rem);
  background: #F7FBF4;
  border: 2px solid #1F6F8B;
  border-radius: 1.1rem;
  padding: 1.35rem 1.3rem 1.15rem;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

#age-denied {
  margin: 0.9rem 0 0;
  color: #8C3A22;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(28, 51, 48, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: auto;
}

.modal-card {
  width: min(100%, 28rem);
  max-height: min(90vh, 42rem);
  overflow: auto;
  background: #F7FBF4;
  border: 2px solid #1F6F8B;
  border-radius: 1.05rem;
  padding: 1.2rem 1.15rem 1rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.25rem;
  background: #F7FBF4;
  border-top: 3px solid #E07A3D;
  color: #1C3330;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 16rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .header-actions { margin-left: 0; }
}

@media (max-width: 640px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid #C5D5C2; }
  .game-card { grid-template-columns: 1fr; }
  .game-card img { height: 11rem; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero img { height: 26rem; }
  .band img { height: 16rem; }
}
