/* ==========================================================================
   Shells — shells-game.com
   Converted from the original Squarespace site. Palette, type scale and copy
   were lifted from the live site's compiled stylesheet; the geometry below
   was measured off the live site with a headless browser at 1440px and 390px
   viewports, so this lands close to like-for-like rather than approximating.
   ========================================================================== */

:root {
  /* Palette — the site's --accent / --darkAccent / --black */
  --cream: hsl(36, 100%, 89.22%);      /* #ffe9c8 — the card */
  --blue: hsl(204.59, 64.89%, 36.86%); /* #21699b — subpage footer */
  --ink: hsl(0, 0%, 18.82%);           /* #303030 — body text */
  --white: #fff;

  /* Home page background field. The game's teal (#2bb3ac) sampled raw from
     the icon reads as neon at full-page scale, so this is the same hue
     desaturated and dropped: hsl(176,61%,44%) → hsl(176,28%,54%). */
  --field: #6aa9a4;

  /* Type — matches --body-font / --heading-font */
  --font: "Helvetica Neue", Arial, sans-serif;
  --body-size: 1.1rem;    /* 17.6px, as measured */
  --body-weight: 700;     /* the site really does set body copy bold */
  --body-line-height: 1.8;
  --heading-weight: 500;
  --heading-line-height: 1.4;

  --gutter: 4vw;
}

@media (max-width: 767px) {
  :root {
    --body-size: 1.05rem;
    --gutter: 6vw;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Column layout pins the footer to the bottom of short pages — without it the
   privacy policy and support pages leave white space below the blue bar. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--ink);
  background: var(--white);
}

body > main,
body > .pk-container {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  margin: 0 0 0.4em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.8rem; }

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Home — "toy card"

   The whole page is one card floating on a colour field. Picked from
   mockups/home.html variant 5; the field colour is --field below, which is
   --shells-teal desaturated and dropped so it doesn't read as neon behind
   the cream card.

   Note the home page has no blue site footer as a result — its links live
   inside the card. The subpages still use .site-footer.
   -------------------------------------------------------------------------- */

.home {
  background: var(--field);
}

/* Named .card-field, not .field — the contact form uses .field for its rows,
   and an unscoped .field rule here silently padded every one of them. */
.card-field {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 46px var(--gutter);
}

.card {
  max-width: 720px;
  /* auto margins centre the card and, unlike justify/align-content, still
     let it scroll fully into view when it's taller than the viewport. */
  margin: auto;
  width: 100%;
  padding: 40px;
  background: var(--cream);
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.card__icon {
  width: 84px;
  margin: 0 auto;
}

.card__logo {
  width: 190px;
  margin: -10px auto 0;
}

.card__tagline {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.72;
}

/* Gallery */

.slideshow {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.slideshow__slides {
  position: absolute;
  inset: 0;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.slideshow__slide[data-active] {
  opacity: 1;
  pointer-events: auto;
}

.slideshow__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.slideshow__nav:hover { opacity: 1; }
.slideshow__nav--prev { left: 4px; }
.slideshow__nav--next { right: 4px; }

/* Store badges */

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.badges img {
  height: 44px;
  width: auto;
}

/* Footnote links — the home page's navigation, in place of a site footer */

.card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
}

.card__links a { text-decoration: none; }
.card__links a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .card-field { padding: 20px var(--gutter); }

  .card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .badges {
    flex-direction: column;
    gap: 12px;
  }

  .badges img {
    height: auto;
    width: 172px;
  }

}

.form-status {
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-status[data-error] {
  color: #a12c2c;
}

.contact-form + .form-status {
  text-align: left;
}

/* !important throughout: this is applied to honeypot inputs, which are also
   matched by broader rules like `.contact-form input { width: 100% }`. Without
   it the hidden input stretched to full width and, being absolutely
   positioned, dragged a horizontal scrollbar across the page. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   Subpages
   -------------------------------------------------------------------------- */

.page {
  padding: 100px var(--gutter);
}

@media (max-width: 767px) {
  .page {
    padding: 60px var(--gutter);
  }
}

.page__logo {
  display: block;
  width: 240px;
  max-width: 60%;
  margin: 0 auto;
}

/* Contact & support */

.support {
  width: 520px;
  max-width: 100%;
  margin: 0 auto;
}

.support__title {
  margin: 40px 0 16px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.support__intro {
  margin-bottom: 2.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  opacity: 0.75;
}

.contact-form .field {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-form .required {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.65;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(48, 48, 48, 0.3);
  border-radius: 0;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .cf-turnstile {
  margin-bottom: 0.75rem;
}

.contact-form button {
  margin-top: 0.5rem;
  min-width: 116px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: #000;
  border: 0;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.85;
}

/* Presskit */

.presskit {
  max-width: 1000px;
  margin: 0 auto;
}

.presskit__masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 80px;
}

.presskit__masthead img {
  width: 248px;
}

.presskit__eyebrow {
  margin: 0;
}

.presskit__cols {
  display: grid;
  grid-template-columns: 30fr 70fr;
  gap: 40px;
}

@media (max-width: 767px) {
  .presskit__masthead {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
  }

  .presskit__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.presskit h2 {
  margin-top: 1.2em;
}

.presskit__cols > * > *:first-child {
  margin-top: 0;
}

.factsheet {
  margin: 0;
}

.factsheet dt {
  margin-top: 1.4em;
}

.factsheet dt:first-of-type {
  margin-top: 0;
}

.factsheet dd {
  margin: 0;
}

.factsheet a,
.prose a {
  color: inherit;
}

.features {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.features li {
  margin-bottom: 0.2em;
}

.presskit blockquote {
  margin: 0 0 1em;
  padding-left: 1.25em;
  border-left: 3px solid rgba(48, 48, 48, 0.15);
}

.presskit cite {
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.7;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 2em;
}

.press-logos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 420px;
}

@media (max-width: 767px) {
  .screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Privacy policy */

/* Regular weight for the policy body — the inherited 700 made a long legal
   document read as shouting. Headings below keep their bold. */
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

.prose > h2:first-child {
  margin-bottom: 0.2em;
  font-size: 1.9rem;
  font-weight: 700;
}

/* The original renders these as bold body text, not styled headings —
   kept visually identical but semantically still headings. */
.prose .subhead {
  margin: 3em 0 1em;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: var(--body-line-height);
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.75em;
}

.prose li {
  margin-bottom: 0.2em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 32px var(--gutter);
  font-size: 0.89rem;
  font-weight: 400;
}

.site-footer__inner {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer__copyright {
  position: absolute;
  right: 0;
  margin: 0;
}

@media (max-width: 899px) {
  .site-footer {
    padding: 40px var(--gutter);
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .site-footer__copyright {
    position: static;
  }
}
