/* Games and Glory: one stylesheet for index.html and 404.html */

:root {
  --blue: #1B3BD1;
  --blue-deep: #142C9E;
  --yellow: #FFC629;
  --yellow-hi: #FFD658;
  --red: #D62F2F;
  --green: #0B7A5E;
  --purple: #5B2BC4;
  --sky: #4FB3F6;
  --ink: #14183A;
  --ink-soft: #4A4F70;
  --ink-on-yellow: #4A3A00;
  --on-blue: #E4E9FF;
  --tint: #EEF2FF;
  --line: #D6DCF2;
  --white: #FFFFFF;

  --font-display: "Bungee", "Arial Black", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 24, 58, .06), 0 10px 28px rgba(20, 24, 58, .09);
  --dots: radial-gradient(rgba(255, 255, 255, .1) 1.5px, transparent 1.6px);
  --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: .18em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .site-footer :focus-visible, .panel--pass :focus-visible, .closer :focus-visible, .notfound :focus-visible { outline-color: var(--yellow); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  border: 2px solid transparent;
  font: 800 1.0625rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px rgba(20, 24, 58, .2); }
.btn--yellow:hover { background: var(--yellow-hi); box-shadow: 0 10px 22px rgba(20, 24, 58, .24); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 0 6px 16px rgba(27, 59, 209, .25); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 24, 58, .06);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__badge { width: 40px; height: 40px; color: var(--blue); }
.brand__star { fill: var(--yellow); }
.brand__word { font-family: var(--font-display); font-size: 15px; line-height: 1; letter-spacing: .01em; }
.brand--light { color: var(--white); }

.site-nav { display: none; margin-left: auto; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 700; text-decoration: none;
  transition: background-color .15s;
}
.site-nav a:hover { background: var(--tint); }
.site-header .btn { margin-left: auto; }
@media (min-width: 820px) {
  .site-nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--blue);
  background-image: var(--dots);
  background-size: 22px 22px;
  color: var(--white);
  padding-block: 48px 72px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; z-index: 1;
  background: radial-gradient(circle at 18px 0, var(--blue) 17.5px, transparent 18px) 0 0 / 36px 18px repeat-x;
}
.hero__inner { display: grid; gap: 24px; align-items: center; }
.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 9.5vw, 5.25rem); line-height: .95;
}
.hero__title span { display: block; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__lede { margin: 0; max-width: 34em; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--on-blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jump { display: flex; gap: 20px; margin-top: 20px; font-weight: 700; }
.jump a { color: var(--white); }

.trophy { width: 100%; max-width: 240px; justify-self: center; overflow: visible; }

@media (min-width: 820px) {
  .jump { display: none; }
}
@media (min-width: 880px) {
  .hero { padding-block: 72px 104px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .trophy { max-width: 420px; }
}

@media (prefers-reduced-motion: no-preference) {
  .trophy__rays { transform-origin: 150px 140px; animation: spin 80s linear infinite; }
  .trophy__cup { transform-box: fill-box; transform-origin: center; animation: float 5s ease-in-out infinite; }
  .trophy__sparkles use { animation: twinkle 2.6s ease-in-out infinite; }
  .trophy__sparkles use:nth-child(2) { animation-delay: -.9s; }
  .trophy__sparkles use:nth-child(3) { animation-delay: -1.7s; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes twinkle { 50% { opacity: .25; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 104px); scroll-margin-top: var(--header-h); }
.section--tint { background: var(--tint); }
.section--yellow { background: var(--yellow); }
.section__head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 48px); }
.section__head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem); line-height: 1.05;
}
.section__head p { margin: 0; font-size: 1.125rem; color: var(--ink-soft); }
.section--yellow .section__head p, .section--yellow .fine { color: var(--ink-on-yellow); }
.section--yellow .fine a { color: var(--ink); font-weight: 700; }

ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.fine { margin: 24px 0 0; font-size: .9375rem; color: var(--ink-soft); }

/* Attractions */
.attractions { display: grid; gap: 20px; }
@media (min-width: 600px) { .attractions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .attractions { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.attraction {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.attraction__img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-bottom: 5px solid var(--c);
  background: var(--tint);
}
.attraction__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.attraction h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.attraction__body > p:not(.tags) { margin: 0 0 18px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.tags span {
  padding: 4px 12px; border-radius: 999px;
  background: var(--tint); color: var(--ink);
  font-size: .875rem; font-weight: 700;
}

/* Hours & prices */
.pricing { display: grid; gap: 20px; }
@media (min-width: 720px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .panel--pass { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.panel { padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.panel__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; }
.panel__title .ic { width: 26px; height: 26px; color: var(--blue); stroke-width: 2.2; }
.panel__note { margin: 16px 0 0; font-size: .9375rem; color: var(--ink-soft); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px dashed var(--line); vertical-align: baseline; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; padding-right: 12px; }
.hours td { text-align: right; font-weight: 800; white-space: nowrap; }

.tiers li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tiers li:last-child { border-bottom: 0; }
.tiers__price { min-width: 3.1em; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--blue); }
.tiers__what { font-weight: 700; }
.tiers__what em { margin-left: 4px; font-style: normal; font-size: .875rem; font-weight: 800; color: var(--green); white-space: nowrap; }

.panel--pass {
  background-color: var(--blue); background-image: var(--dots); background-size: 22px 22px;
  color: var(--white);
}
.panel--pass .panel__title .ic { color: var(--yellow); }
.pass__price {
  margin: 0 0 14px;
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.05; color: var(--yellow);
}
.pass__price span { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--on-blue); }

.checks li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.checks .ic { width: 22px; height: 22px; margin-top: 2px; stroke-width: 3; color: var(--green); }
.panel--pass .checks .ic { color: var(--yellow); }

/* Parties */
.packages { display: grid; gap: 20px; }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.package {
  display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 4px rgba(74, 58, 0, .08), 0 14px 32px rgba(74, 58, 0, .16);
}
.package--bronze { --band: #A8622E; --band-ink: var(--white); }
.package--silver { --band: #5F6B7A; --band-ink: var(--white); }
.package--gold { --band: var(--ink); --band-ink: var(--yellow); }
.package__band { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: var(--band); color: var(--band-ink); }
.package__band .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.package__band h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; }
.package__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.package__price { margin: 0; font-family: var(--font-display); font-size: 2.25rem; line-height: 1.1; }
.package__price span { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.package__min { margin: 4px 0 16px; font-size: .9375rem; font-weight: 700; color: var(--ink-soft); }
.package .checks { margin-bottom: 24px; }
.package .btn { margin-top: auto; width: 100%; }

/* Visit */
.contact { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.contact li { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-radius: var(--radius); background: var(--tint); }
.contact__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c); color: var(--white);
}
.contact__icon .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.contact li > div { min-width: 0; }
.contact h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 800; color: var(--ink-soft); }
.contact p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.contact .contact__main { margin: 0 0 6px; font-size: 1.125rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }

.closer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-top: clamp(40px, 6vw, 64px); padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
  background-color: var(--blue); background-image: var(--dots); background-size: 22px 22px;
  color: var(--white);
}
.closer__icon { width: 48px; height: 48px; color: var(--yellow); }
.closer__text { flex: 1 1 240px; margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.1; }

/* Footer */
.site-footer { padding-block: 48px 40px; background: var(--ink); color: #A9AFD6; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.credits { flex-basis: 100%; font-size: .875rem; }
.credits summary { width: fit-content; color: var(--white); font-weight: 700; cursor: pointer; }
.credits ul { display: grid; gap: 4px; margin-top: 10px; }
.credits a { color: #C9CEEA; }
.site-footer__legal { flex-basis: 100%; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; }
.site-footer__legal:only-child { padding-top: 0; border-top: 0; }

/* 404 */
.notfound {
  background-color: var(--blue); background-image: var(--dots); background-size: 22px 22px;
  color: var(--white); text-align: center;
  padding-block: clamp(72px, 14vw, 140px);
}
.notfound .notfound__code { max-width: none; margin: 0; font-family: var(--font-display); font-size: clamp(4rem, 18vw, 6rem); line-height: 1; color: var(--yellow); }
.notfound h1 { margin: 12px 0 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.1; }
.notfound p { max-width: 30em; margin: 0 auto 28px; color: var(--on-blue); font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
