/* The game's look on the web: the start screen's dark teal lounge, deep navy glass
   panels with a fine cyan edge light, the silver crown logo and Montserrat. Corners are
   crisp: a small radius on panels and a chamfer on buttons, never a pill. Nothing
   animates, flashes or chases (FR-11.3), and everything loads from this site. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff") format("woff");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #060b10;
  --navy: #0a1620;
  --navy-2: #0e2030;
  --glass: rgba(10, 24, 36, 0.86);
  --glass-hi: rgba(22, 46, 62, 0.86);
  --teal: #0d6f6c;
  --teal-deep: #08413f;
  --cyan: #3fd8dc;
  --cyan-edge: rgba(63, 216, 220, 0.42);
  --cyan-soft: rgba(63, 216, 220, 0.1);
  --silver: #eef2f4;
  --text: #e6eff1;
  --muted: #a7bcc1;
  --pass: #8fe3b0;
  --fail: #ff9a8a;
  --chamfer: 10px;
  --radius: 6px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 60rem at 50% 0, #0d2a33 0, var(--night) 70%)
    no-repeat, var(--night);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--silver);
}

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

h1,
h2,
h3 {
  color: var(--silver);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

strong {
  color: var(--silver);
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--text);
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

/* Pages other than home: the logo at the top is the way back home. */

.home-link {
  display: block;
  width: max-content;
  margin: 1rem auto 0;
}

.home-link img {
  display: block;
  width: 72px;
  height: auto;
}

main.landing .home-link {
  margin: 0 auto;
}

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

footer.site ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site {
  margin-top: 3rem;
  background: linear-gradient(180deg, rgba(10, 22, 32, 0.9), var(--night));
  border-top: 1px solid var(--cyan-edge);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: grid;
  gap: 1.25rem;
}

footer.site .brand img {
  display: block;
  width: 72px;
  height: auto;
}

footer.site ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

footer.site ul a:hover {
  color: var(--cyan);
}

footer.site p {
  margin: 0;
}

@media (min-width: 48rem) {
  footer.site .wrap {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 2rem;
  }

  footer.site ul {
    justify-content: flex-end;
  }

  footer.site p {
    grid-column: 1 / -1;
  }
}

/* Buttons: a chamfered metal plate with a cyan edge. The plate is drawn by the two
   pseudo-elements, so the focus outline around the button itself is never clipped. */

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  color: var(--silver);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
}

.button::before {
  inset: 0;
  background: linear-gradient(180deg, #8af3f5, #2bb5ba);
}

.button::after {
  inset: 1px;
  background: linear-gradient(180deg, #17384a, #0b1b27);
}

.button.primary {
  color: #04161a;
  filter: drop-shadow(0 0 10px rgba(63, 216, 220, 0.35));
}

.button.primary::after {
  background: linear-gradient(180deg, #6fe9ec 0, #34c9ce 55%, #1fa3a8 100%);
}

.button:hover::after {
  background: linear-gradient(180deg, #1f4a60, #10283a);
}

.button.primary:hover {
  color: #04161a;
}

.button.primary:hover::after {
  background: linear-gradient(180deg, #8ff1f3 0, #4ad6da 55%, #29b2b7 100%);
}

.button:hover {
  color: var(--silver);
}

.button.large {
  min-height: 56px;
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  --chamfer: 12px;
}

.button.block {
  display: flex;
  width: 100%;
}

.button[disabled] {
  cursor: progress;
  opacity: 0.6;
}

/* A link the page could not fill in, because its value is not known yet or scripts are
   off, says so plainly in the button's place. */
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px dashed var(--cyan-edge);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

/* Panels ----------------------------------------------------------------------------- */

.panel {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--cyan-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 32px rgba(63, 216, 220, 0.06), 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 1.25rem;
}

.panel > :last-child {
  margin-bottom: 0;
}

section.band {
  padding: 3rem 0 0;
}

/* Home: hero ------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image: linear-gradient(
    180deg,
    rgba(6, 11, 16, 0.35) 0,
    rgba(6, 11, 16, 0.55) 45%,
    var(--night) 100%
  ), url("/img/lounge-tall.webp");
  background-size: cover;
  background-position: center top;
  padding: 2rem 0 2.5rem;
}

.hero .wrap {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(78%, 22rem);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7));
}

.hero h1 {
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
}

.hero .lede {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.fine {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* A screenshot from the game, in a thin dark phone bezel. */
.phone {
  margin: 0 auto;
  width: min(100%, 17rem);
  padding: 0.45rem;
  background: linear-gradient(180deg, #1d2a33, #0a1218);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(63, 216, 220, 0.12);
}

.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1rem;
}

.phone figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 0.25rem 0.2rem;
}

@media (min-width: 56rem) {
  .hero {
    background-image: linear-gradient(
      90deg,
      rgba(6, 11, 16, 0.92) 0,
      rgba(6, 11, 16, 0.6) 55%,
      rgba(6, 11, 16, 0.35) 100%
    ), linear-gradient(180deg, rgba(6, 11, 16, 0) 70%, var(--night) 100%),
      url("/img/lounge-wide.webp");
    background-position: center 30%;
    padding: 4rem 0 4.5rem;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-logo {
    margin: 0 0 1.5rem;
    width: min(100%, 24rem);
  }

  .hero .lede {
    margin-left: 0;
  }

  .actions {
    justify-content: flex-start;
  }

  .hero .phone {
    width: 19rem;
  }
}

/* Home: sections --------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split.flip > :first-child {
    order: 2;
  }
}

.cta img.score-art {
  display: block;
  width: min(70%, 16rem);
  margin: 0 auto 0.5rem;
}

ol.play {
  list-style: none;
  counter-reset: play;
  padding: 0;
  margin: 0 0 1rem;
}

ol.play li {
  counter-increment: play;
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  border-bottom: 1px solid rgba(63, 216, 220, 0.14);
}

ol.play li:last-child {
  border-bottom: 0;
}

ol.play li::before {
  content: counter(play);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--teal-deep);
  border: 1px solid var(--cyan-edge);
  border-radius: 4px;
  color: var(--silver);
  font-weight: 800;
  font-size: 0.9rem;
}

ol.play .sum {
  color: var(--cyan);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .shots .phone {
    width: 100%;
  }
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards .panel h3 {
  margin-top: 0;
}

.faces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.faces img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--cyan-edge);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

@media (min-width: 48rem) {
  .faces img {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

@media (min-width: 48rem) {
  .tables {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tables figure {
  margin: 0;
  padding: 0.35rem;
  background: linear-gradient(180deg, #1c3342, #0a1822);
  border: 1px solid var(--cyan-edge);
  border-radius: var(--radius);
}

.tables img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.tables figcaption {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.45rem 0 0.15rem;
}

.cta {
  text-align: center;
  padding: 2rem 1.25rem;
}

.cta img {
  display: block;
  width: min(80%, 22rem);
  margin: 0 auto 1rem;
}

/* Documents: privacy, terms and account deletion ---------------------------------- */

main.doc {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

main.doc > h1 {
  margin-bottom: 1rem;
}

main.doc section {
  margin-top: 1.25rem;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--cyan-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0,
    0.4);
  padding: 1.25rem;
}

main.doc section > :last-child {
  margin-bottom: 0;
}

main.doc section h2 {
  font-size: 1.3rem;
}

main.doc li {
  margin-bottom: 0.4rem;
}

main.doc ol.steps li {
  margin-bottom: 0.5rem;
}

main.doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

main.doc th,
main.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(63, 216, 220, 0.18);
  min-width: 8rem;
}

main.doc th {
  color: var(--silver);
  font-weight: 700;
  background: rgba(13, 111, 108, 0.25);
}

/* Forms ------------------------------------------------------------------------------ */

form {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
}

label {
  font-weight: 700;
  color: var(--silver);
  margin-top: 0.4rem;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  background: #071219;
  border: 1px solid var(--cyan-edge);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
}

input:focus-visible {
  outline-offset: 1px;
}

form .button {
  justify-self: start;
  margin-top: 0.6rem;
}

.status {
  min-height: 1.6em;
  margin: 0.25rem 0 0;
}

.status.pass {
  color: var(--pass);
}

.status.fail {
  color: var(--fail);
}

/* Share link landing pages ----------------------------------------------------------- */

main.landing {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  text-align: center;
}

main.landing .landing-logo {
  display: block;
  width: 9rem;
  margin: 0 auto 1.25rem;
}

main.landing .panel {
  padding: 1.75rem 1.25rem;
}

main.landing h1 {
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.code-label {
  color: var(--muted);
  margin: 1.5rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.6rem 1.2rem;
  background: #f4f1e8;
  color: #0b1218;
  border-radius: var(--radius);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 8px 22px rgba(0, 0, 0, 0.5);
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

[hidden] {
  display: none;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.cards.stack {
  grid-template-columns: 1fr;
}

.phone img.cropped {
  aspect-ratio: 540 / 860;
}
