/* ============================================================
   TBGC — Tampa Bay Games Community
   Retro-arcade sunset poster. Light, warm, hand-made feel.
   ============================================================ */

:root {
  --paper:   #fff4e6;   /* warm cream */
  --sky-top: #ffe39c;   /* sunrise yellow */
  --sky-bot: #ffd0b0;   /* peach */
  --ink:     #221a2e;   /* deep plum-navy */
  --coral:   #ff5a3c;
  --teal:    #119da4;
  --yellow:  #ffb22e;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-pixel:   "Press Start 2P", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 38%, var(--paper) 70%);
  background-attachment: fixed;
  /* subtle halftone dot texture */
  background-image:
    radial-gradient(rgba(34, 26, 46, 0.06) 1px, transparent 1.4px),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 38%, var(--paper) 70%);
  background-size: 14px 14px, 100% 100%;
  -webkit-font-smoothing: antialiased;
  padding: 22px;
}

/* ---------- Poster frame ---------- */
.frame {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: clamp(24px, 5vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.logo { display: block; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.brand-full {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.65;
  margin-top: 3px;
}

.topbar-meta {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  text-align: right;
}

/* ---------- Hero ---------- */
.hero { text-align: center; }

.kicker {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 22px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 11vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hl-sun {
  color: var(--coral);
  /* retro double-shadow lift */
  text-shadow: 4px 4px 0 var(--yellow);
}

.lede {
  max-width: 30ch;
  margin: 0 auto 36px;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.45;
}
.lede strong { color: var(--teal); font-weight: 700; }

/* ---------- Signup ---------- */
.signup {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.signup-prompt {
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px;
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

#email {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 4px;
}
#email::placeholder { color: #9a8f86; }
#email:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.go {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0 22px;
  color: #fff;
  background: var(--coral);
  border: 3px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
  white-space: nowrap;
}
.go:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.go:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.go:disabled { cursor: progress; opacity: 0.7; }

.go-spinner {
  display: none;
  width: 14px; height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}
.go.loading .go-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Role toggle ---------- */
.roles { border: 0; padding: 0; margin: 0 0 6px; }
.roles legend {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
  padding: 0;
}

.role-row { display: flex; flex-wrap: wrap; gap: 8px; }

.role { position: relative; flex: 1 1 90px; cursor: pointer; }
.role input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.role span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 6px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 4px;
  transition: transform 0.08s, box-shadow 0.08s, background 0.08s, color 0.08s;
}
.role:hover span { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

.role input:checked + span {
  background: var(--teal);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.role input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- Status + fineprint ---------- */
.status {
  text-align: center;
  font-weight: 600;
  margin: 14px 0 0;
  min-height: 1.2em;
}
.status.error   { color: var(--coral); }
.status.success { color: var(--teal); }

.fineprint {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
  margin: 8px 0 0;
}

/* ---------- Discord CTA ---------- */
.discord-cta {
  max-width: 460px;
  margin: 26px auto 0;
  text-align: center;
}

.or-line {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 22px;
  color: #fff;
  background: #5865f2;       /* Discord blurple */
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
.discord-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.discord-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Retro ticker ---------- */
.ticker {
  margin: clamp(30px, 6vw, 52px) calc(-1 * clamp(20px, 4vw, 40px)) 0;
  background: var(--ink);
  color: var(--yellow);
  border-top: 3px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.ticker-track span {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 12px 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  opacity: 0.7;
  padding-top: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 460px) {
  .row { flex-direction: column; }
  .go { padding: 13px; }
  .topbar-meta { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
