@font-face {
  font-family: "Tetris Bombliss";
  src: url("fonts/tetris-2-bombliss.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #000;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: "Tetris Bombliss", monospace;
  color: #fff;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  margin: auto 0;
}

h1 {
  font-family: "Tetris Bombliss", monospace;
  font-size: clamp(1.5rem, 8vw, 4rem);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  white-space: nowrap;
}

.tagline {
  max-width: 28ch;
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #fff;
  animation: protect-hq-flash 2.8s ease-in-out infinite;
}

@keyframes protect-hq-flash {
  0%, 100% {
    opacity: 0.58;
    text-shadow: none;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tagline {
    animation: none;
  }
}

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

.follow a {
  color: #fff;
  text-decoration: underline;
}

.page-title {
  font-family: "Tetris Bombliss", monospace;
  font-size: clamp(1.1rem, 8vw, 2.5rem);
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem;
  white-space: normal;
}

p {
  margin: 0 0 2rem;
}

.dream {
  max-width: 640px;
}

.dream p {
  font-family: "Tetris Bombliss", monospace;
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: left;
}

.dream .signature {
  font-family: "Tetris Bombliss", monospace;
  font-size: 0.85rem;
  color: #999;
  text-align: right;
  margin: 0 0 2.5rem;
}

.start-button {
  display: inline-block;
  font-family: "Tetris Bombliss", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  max-width: 100%;
  line-height: 1.6;
  color: #fff;
  background: #111111;
  border: 2px solid rgb(230, 0, 18);
  padding: 1rem clamp(1rem, 6vw, 2.5rem);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.beta-button {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  font-size: 0.8rem;
  color: #c9c9c9;
  border-color: #777777;
  padding: 0.75rem 1.75rem;
}

.start-button:hover {
  transform: scale(1.05);
  background: rgb(230, 0, 18);
}

.beta-button:hover {
  background: #333333;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
  font-family: "Tetris Bombliss", monospace;
}

footer a:hover {
  color: rgb(230, 0, 18);
}

/* Marineford campaign landing; other pages keep their existing typography. */
body.landing {
  background: #03041b;
}
.landing main {
  width: min(100%, 560px);
  padding: 16px;
}
.landing .game-brand {
  margin: 0 auto 1rem;
  line-height: 0;
  white-space: normal;
}
.game-brand img {
  display: block;
  width: min(100%, 384px);
  height: auto;
  margin: auto;
  image-rendering: pixelated;
}
.landing footer {
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  font-size: 0.6rem;
}
.landing .follow {
  font-size: 0.8rem;
}

.party-pin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto;
}
.party-pin input { font: 1rem monospace; padding: 0.5rem; }
.party-pin .start-button { margin: 0; }

.landing #stars { pointer-events: none; }
.chef-button {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 0;
  background: #0969da;
  border-color: #58a6ff;
}
.chef-button:hover, .chef-button:focus-visible {
  background: #0756b3;
  border-color: #8bc2ff;
}

.wordsearch-button {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 0;
  background: #267348;
  border-color: #70c994;
}
.wordsearch-button:hover, .wordsearch-button:focus-visible {
  background: #1c5937;
  border-color: #a2e3ba;
}
