/* ============================================================
   Wake Up Your Campus — National Challenge PWA
   Brand: Cormorant Garamond + Raleway / #FF3395 / #EBFA35 / black / white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --pink: #FF3395;
  --yellow: #EBFA35;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --ink-60: rgba(10,10,10,0.6);
  --ink-20: rgba(10,10,10,0.12);
  --radius: 2px;
  --max-w: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--black);
  font-family: 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

#app {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}

p { line-height: 1.5; margin: 0 0 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 28px 32px;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--pink);
  filter: blur(2px);
  opacity: 0.9;
}

.hero-inner { position: relative; z-index: 1; }

.hero .eyebrow { color: var(--yellow); margin-bottom: 14px; }

.hero h1 {
  font-size: 44px;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--yellow);
}

.hero p.lede {
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  max-width: 34ch;
}

.prize-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.prize-chip {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12px;
}

.prize-chip b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--yellow);
  line-height: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: 28px;
}

.section + .section {
  border-top: 1px solid var(--ink-20);
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  padding: 12px 13px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--black);
}

input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 1px;
}

textarea { resize: none; min-height: 78px; }

.checkbox-field { margin-bottom: 16px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--black);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pink);
}
.checkbox-label a { color: var(--black); }

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--ink-60);
  margin-top: 4px;
}

button.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease;
}

button.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--pink); color: var(--white); }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.help-text { font-size: 12px; color: var(--ink-60); margin-top: 10px; }
.error-text { font-size: 12px; color: var(--pink); margin-top: 8px; font-weight: 600; }

/* ---------- Entry totals (dashboard top section) ---------- */
.entries-total {
  text-align: center;
  margin-bottom: 20px;
}
.entries-total-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  line-height: 1;
  color: var(--pink);
}
.entries-total-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-top: 4px;
}

.tally-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.tally {
  flex: 1;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.tally-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  line-height: 1;
}
.tally-lbl {
  font-size: 11px;
  color: var(--ink-60);
  margin-top: 6px;
  line-height: 1.3;
}

#invite-friends-btn { margin-bottom: 10px; }

/* ---------- Reflection streak ---------- */
.streak-row {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
}
.streak-dot {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--ink-20);
}
.streak-dot.done { background: var(--pink); }

/* ---------- Referral ---------- */
.refer-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.refer-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.refer-box {
  border: 1.5px dashed var(--black);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.refer-link {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  border: none;
  background: var(--yellow);
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share-row button {
  flex: 1;
  padding: 11px;
  font-size: 12px;
}

/* ---------- Zoom / footer notice ---------- */
.notice {
  background: rgba(235,250,53,0.35);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
}

.footer-note {
  padding: 20px 28px 32px;
  font-size: 11px;
  color: var(--ink-60);
  text-align: center;
}
.footer-note a { color: var(--black); }

/* ---------- States ---------- */
.hidden { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.toast.show { opacity: 1; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  button.btn:active { transform: none; }
}

/* ---------- Legal document (rules.html) ---------- */
.rules-content h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.rules-content h2:first-child { margin-top: 0; }
.rules-content h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}
.rules-content p { font-size: 14px; }
.rules-content ul,
.rules-content ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.rules-content li { margin-bottom: 6px; }
.rules-content blockquote {
  margin: 12px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--ink-20);
  font-size: 14px;
  font-style: italic;
}
.rules-content address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}
.rules-content a { color: var(--pink); }
