/* Rothrock Games: the comic ink look of Hook Pull's menus (hook-pull/game/Palette.cs, ui/LibKit.cs, ui/LibButton.cs). */
@font-face {
  font-family: "Bangers";
  src: url("/fonts/Bangers-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #0d0b10;
  --bg: #15121c;
  --night: #1b1724;
  --slate: #2a2236;
  --text: #fff8e6;
  --dim: rgba(255, 248, 230, 0.72);
  --gold: #ffd23f;
  --paper: #fff3c4;
  --hot: #ff4f9a;
  --mine: #35c6f0;
  --theirs: #ff5a36;
  --gem: #b48cff;
  --good: #62e06d;
  --bad: #ff5a5a;
  --display: "Bangers", "Impact", "Arial Black", sans-serif;
  --body:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --border: 4px solid var(--ink);
  --shadow: 7px 8px 0 var(--ink);
  --gutter: 16px;
  color-scheme: dark;
}

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

/* No smooth scrolling: it left buttons still moving after a jump to #early-access (a click test caught it). */
html {
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(
    rgba(180, 140, 255, 0.09) 1.6px,
    transparent 1.8px
  );
  background-size: 18px 18px;
  color: var(--text);
  font: 17px/1.55 var(--body);
}

a {
  color: var(--gold);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
code {
  font-size: 0.9em;
  word-break: break-all;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
}

/* Lettering: the game's outlined display face. */
.shout,
.shout-sm,
.title,
.logo,
.btn,
.step,
.caption-box,
.badge {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.shout,
.title,
.shout-sm {
  margin: 0 0 12px;
  color: var(--gold);
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--ink);
  line-height: 1.05;
}
.shout {
  font-size: clamp(34px, 6vw, 52px);
}
.shout-sm {
  font-size: 30px;
  -webkit-text-stroke-width: 5px;
}
.title {
  font-size: clamp(56px, 12vw, 104px);
  -webkit-text-stroke-width: 10px;
  transform: rotate(-2deg);
}

/* Inked panels with a hard shadow down and to the right. */
.panel {
  background: var(--slate);
  border: var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel-gold {
  background: var(--gold);
  color: var(--ink);
}
.panel-hot {
  background: #3a1830;
}
.panel-gold .shout {
  color: var(--text);
}

.caption-box {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(13, 11, 16, 0.6);
  padding: 4px 12px;
  font-size: 20px;
  transform: rotate(-1.5deg);
}

/* Buttons: a slanted slab that lifts on hover and sinks when pressed. */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  border: var(--border);
  border-radius: 3px;
  box-shadow: 6px 7px 0 var(--ink);
  padding: 8px 26px 10px;
  font-size: 26px;
  text-decoration: none;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px var(--ink);
  transform: skewX(-6deg);
  cursor: pointer;
  transition:
    transform 80ms,
    box-shadow 80ms,
    background 80ms;
}
/* Hover lifts by shadow only: moving the button itself made it slide out from under a pointer near its edge. */
.btn:hover {
  background: #ffe07a;
  box-shadow: 9px 10px 0 var(--ink);
}
.btn:active {
  box-shadow: 2px 2px 0 var(--ink);
  transform: skewX(-6deg) translate(4px, 5px);
}
.btn:disabled {
  background: #5d5868;
  cursor: wait;
}
.btn-big {
  font-size: clamp(24px, 6.2vw, 42px);
  background: var(--hot);
}
.btn-big:hover {
  background: #ff7ab4;
}

/* Top bar. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px var(--gutter);
  background: var(--night);
  border-bottom: var(--border);
}
.logo {
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
  paint-order: stroke fill;
  -webkit-text-stroke: 5px var(--ink);
}
.logo span {
  color: var(--gold);
}
.topbar nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar nav a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.topbar nav a:hover {
  color: var(--gold);
}

main,
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  margin: 56px 0;
}

/* Hero: the portrait on a sunburst, then who he is. */
.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
}
.portrait {
  margin: 0;
  position: relative;
  text-align: center;
}
.portrait-frame {
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: repeating-conic-gradient(
    from 0deg,
    var(--gold) 0deg 12deg,
    var(--slate) 12deg 24deg
  );
  display: grid;
  place-items: center;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-text p {
  margin: 0 0 12px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 14px;
}
.link-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  background: var(--night);
  color: var(--text);
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  transition:
    transform 80ms,
    box-shadow 80ms;
}
.link-card:hover {
  box-shadow: 9px 10px 0 var(--ink);
}
.link-label {
  font: 26px/1.1 var(--display);
  color: var(--mine);
}
.links li:nth-child(2) .link-label {
  color: var(--hot);
}
.link-blurb {
  font-size: 15px;
}
.link-host {
  font-size: 13px;
  color: var(--dim);
}

/* Phones: a smaller portrait above the introduction, and room under the two-row top bar for jumps. */
@media (max-width: 759px) {
  html {
    scroll-padding-top: 110px;
  }
  .portrait-frame {
    max-width: 62vw;
  }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 380px 1fr;
  }
  .links {
    grid-template-columns: 1fr 1fr;
  }
  .game-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shots {
    grid-template-columns: 1fr 1fr;
  }
  .shot-lead {
    grid-column: 1 / -1;
  }
  .shot-lead figcaption {
    font-size: 22px;
  }
}

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

/* Hook Pull. */
.game-head {
  text-align: center;
  margin-bottom: 28px;
}
.badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 16px;
  color: var(--ink);
  background: var(--mine);
  border: 3px solid var(--ink);
  padding: 0 8px;
  -webkit-text-stroke: 0;
  transform: rotate(4deg);
}
.tagline {
  font-size: clamp(20px, 3.4vw, 26px);
  margin: 8px 0 16px;
}
.pitch {
  max-width: 680px;
  margin: 0 auto;
  font-size: 19px;
}

.shots {
  display: grid;
  gap: 26px;
  margin-bottom: 36px;
}
.shot {
  margin: 0;
  position: relative;
}
.shot img {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--night);
}
.shot figcaption {
  position: relative;
  margin: -16px 0 0 12px;
  font-size: 18px;
  max-width: calc(100% - 24px);
}
.shot:nth-child(even) figcaption {
  transform: rotate(1.2deg);
}

.game-grid {
  display: grid;
  gap: 26px;
  margin: 26px 0;
}
.how {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.how li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.how p {
  margin: 4px 0 0;
}
.step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 26px;
  background: var(--theirs);
  color: var(--text);
  border: 3px solid var(--ink);
  border-radius: 50%;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px var(--ink);
}
.art-note {
  color: var(--dim);
  font-size: 14px;
  margin: 14px 0 0;
}
.needs {
  margin: 0;
  padding-left: 20px;
}
.needs li {
  margin-bottom: 6px;
}

.download-panel {
  text-align: center;
  margin: 36px 0;
}
.download {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.release-facts {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 18px;
}
.release-facts .fact {
  white-space: nowrap;
}
.release-file {
  margin: 0;
  font-size: 14px;
}
.checksum {
  max-width: 640px;
  font-size: 14px;
  text-align: left;
}
.checksum summary {
  cursor: pointer;
  font-weight: 700;
  text-align: center;
}
.download .shout-sm {
  margin-top: 10px;
  color: var(--text);
}
.notes {
  text-align: left;
  max-width: 640px;
  margin: 0;
  padding-left: 22px;
}
.notes li {
  margin-bottom: 4px;
}
.uploading {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
}

/* Logo badges: each firm's real mark, unaltered, pinned on a paper badge with an ink border and a hard shadow. */
.logo-badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  padding: 8px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-3deg);
}
.links li:nth-child(2) .logo-badge {
  transform: rotate(2.5deg);
}
.logo-badge img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(1.5px 1.5px 0 var(--ink));
}
.link-text {
  display: grid;
  gap: 2px;
}

/* How it plays, then the player's questions: words in a panel beside a picture, sides alternating. */
.how-panel {
  margin: 0 0 34px;
}
.questions {
  display: grid;
  gap: 34px;
}
.qa {
  display: grid;
  gap: 22px;
  align-items: center;
}
.qa-words p {
  margin: 0 0 10px;
}
.modes {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}
.mode-name {
  font: 21px/1 var(--display);
  color: var(--gold);
  margin-right: 4px;
}

/* Get in: two doors side by side, a code box and the waitlist. */
.get-in {
  scroll-margin-top: 80px;
}
.get-in > .shout {
  text-align: center;
}
.get-in-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 18px;
}
.doors {
  display: grid;
  gap: 26px;
  align-items: start;
}
.door p {
  margin: 0;
}
.door-hint {
  color: var(--dim);
  font-size: 15px;
}
.door-code {
  background: #1d2f3d;
}
.door-code .shout-sm {
  color: var(--mine);
}
.door-ask .shout-sm {
  color: var(--hot);
}
#ic-code {
  font:
    22px/1.2 ui-monospace,
    "Cascadia Mono",
    Consolas,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The download page: account-style cards, so it can become the player's account home later. */
.account {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 32px auto 0;
  padding: 0 var(--gutter);
}
.account section,
.account .game-grid {
  margin: 0;
}
.access-state {
  margin: 0;
}

@media (min-width: 760px) {
  .qa {
    grid-template-columns: 1fr 1fr;
  }
  .qa:nth-child(even) .qa-words {
    order: 2;
  }
  .qa-text {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .doors {
    grid-template-columns: 1fr 1fr;
  }
}

/* The two forms. */
.form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 4px;
}
.field label {
  font-weight: 700;
}
.opt {
  font-weight: 400;
  color: var(--dim);
}
.form input {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
}
.form .btn {
  justify-self: start;
}
.form-status {
  margin: 0;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
}
.form-status[data-tone="good"] {
  background: var(--good);
}
.form-status[data-tone="bad"] {
  background: var(--bad);
}

.privacy ul {
  margin: 0;
  padding-left: 20px;
}
.privacy li {
  margin-bottom: 6px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 40px;
  color: var(--dim);
  font-size: 15px;
}
.footer p {
  margin: 0;
}

/* The page a visitor without JavaScript lands on after the form. */
.result-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--gutter);
}
.result {
  max-width: 560px;
}
.result-bad .shout {
  color: var(--bad);
}
