/* Skyhold's front gate: the page people see before they hold a play pass.
   It borrows the game's own title screen (colors, panel, type) so it reads as
   Skyhold, not as the Amplified Architect site. This folder is served at
   /play/assets/, which the game's address hands out without a pass. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/play/assets/fonts/fredoka-latin-wght-normal.woff2') format('woff2');
}

:root {
  --panel: rgba(42, 27, 22, 0.78);
  --panel-edge: rgba(255, 214, 160, 0.22);
  --ink: #fff3e2;
  --muted: #d9bfa0;
  --gold: #ffc548;
  --red: #e5533f;
  --green: #8fd35a;
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.18), 0 10px 28px rgba(30, 10, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #efae80;
  color: var(--ink);
  font-family: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The island, as the game draws it behind its own title. */
.sky {
  position: fixed;
  inset: 0;
  background: #efae80 url('/play/assets/island.webp') center / cover no-repeat;
}

.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(60, 25, 10, 0.15), rgba(60, 25, 10, 0.55));
}

.overlay {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.panel {
  width: min(640px, 100%);
  text-align: center;
  padding: 34px 48px 30px;
  border-radius: 30px;
  background: var(--panel);
  border: 1.5px solid var(--panel-edge);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 4px 0;
  font-size: clamp(64px, 12vw, 112px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffd27a;
  text-shadow: 0 5px 0 #a8590f, 0 9px 0 rgba(60, 20, 0, 0.35);
}

.tag {
  font-size: 19px;
  margin: 14px 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.field {
  flex: 1 1 250px;
  min-width: 0;
  height: 62px;
  padding: 0 20px;
  border-radius: 18px;
  border: 2px solid rgba(255, 214, 160, 0.35);
  background: #fff3e2;
  color: #4a2606;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  box-shadow: inset 0 3px 0 rgba(74, 38, 6, 0.12);
}

.field::placeholder {
  color: #a07a55;
  opacity: 1;
}

.field:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.field[aria-invalid='true'] {
  border-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.08s, filter 0.1s;
}

.btn:active {
  transform: translateY(2px);
}

.btn.gold {
  background: linear-gradient(#ffd664, #f0a42a);
  color: #4a2606;
}

.btn.huge {
  flex: none;
  height: 62px;
  padding: 0 54px;
  border-radius: 18px;
  font-size: 26px;
  box-shadow: 0 6px #a8620f, 0 14px 30px rgba(80, 30, 0, 0.4);
}

.btn.ghost {
  padding: 11px 26px;
  border-radius: 14px;
  background: rgba(255, 214, 160, 0.08);
  border: 1.5px solid var(--panel-edge);
  color: var(--ink);
  font-size: 18px;
  box-shadow: 0 4px rgba(0, 0, 0, 0.25);
}

@media (hover: hover) {
  .btn.gold:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
  }

  .btn.ghost:hover {
    border-color: rgba(255, 214, 160, 0.55);
    background: rgba(255, 214, 160, 0.14);
  }
}

.problem {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffb3a6;
}

.note {
  margin: 20px auto 0;
  max-width: 470px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.note a,
.credit a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* "Check your email", and the page behind the emailed link. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.status + .tag {
  margin-top: 10px;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(143, 211, 90, 0.25);
}

.status.closed {
  color: #ffb3a6;
}

.status.closed i {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 83, 63, 0.25);
}

.credit {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1.5px solid var(--panel-edge);
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .panel {
    padding: 26px 22px 24px;
    border-radius: 24px;
  }

  .tag {
    font-size: 17px;
    margin: 10px 0 20px;
  }

  .btn.huge {
    flex: 1 1 100%;
  }

  .sky {
    background-image: url('/play/assets/island-small.webp');
  }
}

/* A phone held sideways: the game's own short-screen sizes. */
@media (max-height: 480px) {
  .panel {
    padding: 16px 28px 16px;
    border-radius: 22px;
  }

  .kicker {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(40px, 14vh, 64px);
  }

  .tag {
    font-size: 16px;
    margin: 6px 0 12px;
  }

  .field,
  .btn.huge {
    height: 52px;
  }

  .btn.huge {
    font-size: 22px;
    padding: 0 40px;
  }

  .note {
    margin-top: 12px;
    font-size: 13px;
  }

  .credit {
    margin-top: 12px;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
