/* THE UNSEEN (777 on Elysium) - Streetwear Comic & Graphic Novel Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Space+Grotesk:wght@500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg-deep: #202b3a;
  --bg-surface: #263444;
  --bg-card: rgba(28, 38, 50, 0.88);
  --bg-card-hover: rgba(36, 48, 64, 0.96);

  --ink: #06080e;
  --text-main: #f5f7fc;
  --text-muted: #9ba8c9;
  --text-dim: #637094;

  /* Palette extracted directly from the official artwork */
  --crimson: #d63c46;
  --crimson-glow: rgba(214, 60, 70, 0.35);
  --mustard: #f0a73a;
  --olive: #457255;
  --teal: #2b8292;
  --white-mask: #ffffff;
  --line-card: rgba(255, 255, 255, 0.12);
  --line-accent: rgba(214, 60, 70, 0.45);

  --font-brush: 'Permanent Marker', cursive, sans-serif;
  --font-street: 'Space Grotesk', -apple-system, sans-serif;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --border-comic: 2px solid var(--ink);
  --shadow-comic: 5px 5px 0px var(--ink);
  --shadow-comic-sm: 3px 3px 0px var(--ink);
  --shadow-comic-hover: 7px 7px 0px var(--ink);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  /* Slate gray to terracotta orange gradient matching the banner */
  background: linear-gradient(128deg, #202b3a 0%, #263444 38%, #4a3536 64%, #843d2e 86%, #944433 100%);
  background-attachment: fixed;
}

/* Background Doodles Pattern (Grids, stars, dashes, smileys from banner) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('../img/doodles-bg.svg');
  background-size: 1350px 1060px;
  background-repeat: repeat;
  opacity: 0.38;
}

/* Background canvas */
#starCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.ambient-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(140px);
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: #3a4d66;
  top: -120px;
  left: -120px;
  opacity: 0.35;
}
.glow-2 {
  width: 650px;
  height: 650px;
  background: #c24e37;
  bottom: -150px;
  right: -120px;
  opacity: 0.38;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Sleek Compact Topbar (Inspired by Elytypes) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brush);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 2px 2px 0px var(--ink);
  background: var(--bg-surface);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand span.sub {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #fff;
  background: var(--crimson);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  border: 1px solid var(--ink);
}

/* Compact Floating Nav Pill */
.floatnav {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  background: rgba(18, 23, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  border-radius: var(--radius-full);
}

.floatnav a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.floatnav a:hover, .floatnav a.active {
  color: #fff;
  background: rgba(214, 60, 70, 0.25);
}

.floatnav a.x-link {
  color: var(--mustard);
}

.floatnav a.x-link:hover {
  background: rgba(240, 167, 58, 0.15);
  color: #fff;
}



/* Hero Section - Clean, Focused, No Massive Clutter */
.hero {
  padding: 50px 0 45px;
  text-align: center;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(18, 23, 38, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 2px 2px 0px var(--ink);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulseAnim 1.6s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-brush);
  font-size: clamp(48px, 9vw, 92px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 4px 4px 0px var(--ink), 0 0 40px var(--crimson-glow);
}

.hero-title .quote-mark {
  color: var(--mustard);
}

.hero-title .tag-777 {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.4em;
  padding: 2px 14px;
  border-radius: 12px;
  vertical-align: middle;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0px var(--ink);
  margin-left: 10px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 34px;
  font-weight: 500;
}

.hero-sub b {
  color: #fff;
  font-weight: 700;
}

/* Countdown Clock */
.clock-container {
  max-width: 540px;
  margin: 0 auto 36px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-comic);
}

.clock-header {
  font-family: var(--font-brush);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--mustard);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.count-card {
  background: #0d111b;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-val {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.count-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 4px;
}

.clock-footer {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  font-family: var(--font-mono);
}

/* Buttons */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--crimson);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-comic);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-comic-hover);
  background: #e4434d;
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--ink);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-comic-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--mustard);
  color: #fff;
  transform: translateY(-2px);
}

/* Section Titles */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-brush);
  font-size: 13px;
  color: var(--mustard);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-brush);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 3px 3px 0px var(--ink);
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 8px auto 0;
}

/* Character Shelf / Square Black Frame Cards */
.shelf {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 30px 14px 50px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stk {
  margin: 0 -12px;
  width: clamp(145px, 16vw, 195px);
  aspect-ratio: 1 / 1;
  background: #000000;
  border: 3px solid #000000;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stk img {
  border-radius: 18px;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.s1 { transform: rotate(-8deg) translateY(10px); z-index: 1; }
.s2 { transform: rotate(-4deg); z-index: 2; }
.s3 { transform: rotate(-1deg) translateY(-8px); z-index: 3; }
.s4 { transform: rotate(2deg) translateY(-8px); z-index: 3; }
.s5 { transform: rotate(5deg); z-index: 2; }
.s6 { transform: rotate(9deg) translateY(10px); z-index: 1; }

.stk:hover {
  transform: rotate(0) translateY(-16px) scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
  z-index: 10;
}

.stk:hover img {
  transform: scale(1.05);
}

@media (max-width: 700px) {
  .shelf {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px 40px;
  }
  .stk {
    margin: 0;
    width: auto;
  }
  .s1, .s3, .s5 { transform: rotate(-3deg); }
  .s2, .s4, .s6 { transform: rotate(3deg); }
}

/* Bento Grid */
.bento-section {
  padding: 40px 0 60px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-comic);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.bento-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-comic-hover);
}

.bento-large {
  grid-column: span 2;
}

.bento-tag {
  font-family: var(--font-brush);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mustard);
  margin-bottom: 6px;
}

.bento-val {
  font-family: var(--font-brush);
  font-size: clamp(28px, 4vw, 40px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0px var(--ink);
}

.bento-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Steps / Path */
.steps-section {
  padding: 30px 0 70px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-item {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-comic);
  padding: 28px;
  transition: all 0.25s ease;
}

.path-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-comic-hover);
  border-color: var(--crimson);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brush);
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-brush);
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Forms (Apply / Status) */
.form-shell {
  max-width: 680px;
  margin: 30px auto 70px;
  background: var(--bg-card);
  border: 3px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-comic);
  padding: clamp(24px, 5vw, 42px);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #0a0d17;
  border: 2px solid var(--ink);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mustard), var(--crimson));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #0f1422;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--ink);
  border-color: var(--crimson);
}

.task-card.completed {
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--ink);
  font-size: 17px;
}

.task-info {
  display: flex;
  flex-direction: column;
}

.task-step {
  font-size: 11px;
  font-family: var(--font-brush);
  color: var(--mustard);
  text-transform: uppercase;
}

.task-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.task-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.task-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
  background: #0a0d17;
  transition: all 0.2s;
}

.task-card.completed .task-check {
  background: #34d399;
  border-color: var(--ink);
  color: var(--ink);
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-label small {
  color: var(--text-dim);
  font-weight: 400;
}

.input-field {
  width: 100%;
  padding: 13px 18px;
  background: #0c101a;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--crimson);
  outline: none;
}

.input-field.valid {
  border-color: #34d399;
}

.input-field.invalid {
  border-color: var(--crimson);
}

.input-msg {
  font-size: 12px;
  margin-top: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.input-msg.ok { color: #34d399; }
.input-msg.err { color: var(--crimson); }

.ref-callout {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(240, 167, 58, 0.12);
  border: 2px solid var(--mustard);
  font-size: 13px;
  color: var(--mustard);
  font-weight: 700;
  margin-bottom: 20px;
  display: none;
}

.ref-callout.show { display: block; }

/* Result Card */
.result-card {
  text-align: center;
  padding: 24px 10px;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-brush);
  font-size: 13px;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid #34d399;
  color: #34d399;
  margin-bottom: 14px;
}

.result-title {
  font-family: var(--font-brush);
  font-size: 28px;
  margin-bottom: 8px;
}

.ref-box {
  margin: 24px 0;
  padding: 20px;
  background: #0d111b;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0px var(--ink);
  border-radius: var(--radius-lg);
  text-align: left;
}

.ref-code-display {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: var(--mustard);
  letter-spacing: 0.1em;
  margin: 6px 0 16px;
}

.copy-input-row {
  display: flex;
  gap: 10px;
}

.copy-input {
  flex-grow: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.btn-copy {
  padding: 10px 18px;
  background: var(--mustard);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  transition: all 0.15s;
}

.btn-copy:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

/* Leaderboard */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.leaderboard-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--ink);
}

.leaderboard-table td {
  padding: 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  font-family: var(--font-mono);
  border: 1.5px solid var(--ink);
}

.rank-1 { background: var(--mustard); color: var(--ink); }
.rank-2 { background: #94a3b8; color: var(--ink); }
.rank-3 { background: #b45309; color: #fff; }

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111624;
  border: 2px solid var(--crimson);
  box-shadow: 5px 5px 0px var(--ink);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 14px;
  top: -20px;
  pointer-events: none;
  z-index: 9999;
  border-radius: 2px;
  border: 1px solid var(--ink);
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 2px solid var(--ink);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer a {
  color: var(--mustard);
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }
  .countdown-grid { gap: 8px; }
  .count-val { font-size: 26px; }
}
