/* vibeCDA — SNES/GBA pixel-art event site */
:root {
  --bg: #0b0f2a;
  --bg-deep: #060918;
  --panel: #12183a;
  --panel-2: #1a2250;
  --border: #2a3570;
  --cyan: #3de0ff;
  --cyan-dim: #1aa8c4;
  --gold: #f0a830;
  --orange: #ff8c2a;
  --pink: #ff6bcb;
  --green: #5dff9a;
  --purple: #9b7bff;
  --text: #e8ecff;
  --muted: #a8b0d8;
  --white: #ffffff;
  --danger: #ff5a7a;
  --max: 860px;
  --radius: 12px;
  --pixel: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, #1a1450 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, #0e2a4a 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #0d1235 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* subtle starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 41% 8%, rgba(61,224,255,0.55), transparent),
    radial-gradient(1px 1px at 58% 55%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 73% 18%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(240,168,48,0.5), transparent),
    radial-gradient(1px 1px at 15% 72%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 67% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 93% 88%, rgba(61,224,255,0.4), transparent),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.3), transparent);
  opacity: 0.85;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.1rem 4rem;
}

/* Typography */
h1, h2, h3, .pixel {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 0.02em;
  line-height: 1.55;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.35rem, 5.5vw, 2.15rem);
  margin: 0 0 0.6rem;
  color: var(--white);
  text-shadow: 0 0 18px rgba(61, 224, 255, 0.35);
}

h1 .cda {
  color: var(--cyan);
}

h2 {
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  margin: 2.4rem 0 1rem;
  color: var(--cyan);
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--border);
  text-shadow: 0 0 12px rgba(61, 224, 255, 0.25);
}

h3 {
  font-size: 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--gold);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

.muted {
  color: var(--muted);
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(61, 224, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(61, 224, 255, 0.08);
  image-rendering: auto;
  margin-bottom: 1.5rem;
  background: var(--panel);
}

.hero-title-block {
  margin-bottom: 0.85rem;
}

.hero-sub {
  display: none; /* title is in the banner art */
}

/* Callout facts */
.callout {
  background: linear-gradient(145deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 3px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  text-align: left;
  box-shadow: 0 0 24px rgba(61, 224, 255, 0.12);
}

.callout ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.callout li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(42, 53, 112, 0.6);
  font-size: 0.98rem;
}

.callout li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.callout li:first-child {
  padding-top: 0;
}

.callout .ico {
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Register CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 1.5rem;
}

.btn {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.55rem, 2.2vw, 0.72rem);
  line-height: 1.5;
  padding: 1rem 1.35rem;
  border-radius: 8px;
  border: 3px solid var(--cyan);
  background: linear-gradient(180deg, #1ee8ff 0%, #0ab8d4 100%);
  color: #041018;
  text-decoration: none;
  text-align: center;
  box-shadow:
    0 4px 0 #067a8c,
    0 0 28px rgba(61, 224, 255, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  color: #041018;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #067a8c,
    0 0 36px rgba(61, 224, 255, 0.5);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #067a8c,
    0 0 20px rgba(61, 224, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--border);
  box-shadow: 0 4px 0 #0a0e28;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--cyan);
  filter: none;
  background: rgba(61, 224, 255, 0.08);
}

.phone-line {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.phone-line a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.phone-line a:hover {
  text-decoration: underline;
}

/* Secondary cover */
.secondary-art {
  margin: 1.5rem 0;
  text-align: center;
}

.secondary-art img {
  max-width: 280px;
  width: 55%;
  height: auto;
  border-radius: 10px;
  border: 3px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* Tracks */
.tracks {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.track-card {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s ease;
}

.track-card:hover {
  border-color: var(--cyan-dim);
}

.track-card .label {
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.track-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.track-card.freeplay .label { color: var(--green); }
.track-card.wizards .label { color: var(--purple); }
.track-card.gta .label { color: var(--orange); }

/* Steps / lists */
.steps {
  margin: 0;
  padding-left: 1.35rem;
}

.steps li {
  margin-bottom: 0.65rem;
}

.glance {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glance li {
  background: var(--panel);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}

.glance strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.15rem;
}

/* Native details toggles */
details {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 10px;
  margin: 0.7rem 0;
  overflow: hidden;
}

details[open] {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 18px rgba(61, 224, 255, 0.1);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
  background: linear-gradient(90deg, rgba(61, 224, 255, 0.06), transparent);
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  color: var(--cyan);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

summary:hover {
  background: rgba(61, 224, 255, 0.1);
}

.details-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.details-body > *:first-child {
  margin-top: 0.9rem;
}

.details-body p,
.details-body li {
  color: var(--muted);
}

.details-body strong,
.details-body b {
  color: var(--text);
}

.schedule-day {
  margin: 1.1rem 0 0.5rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  color: var(--gold);
  line-height: 1.6;
}

.schedule-day + .muted-place {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
}

.schedule-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}

.schedule-list li {
  margin-bottom: 0.35rem;
}

/* Rubric tables */
.rubric-intro {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

table.rubric {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 520px;
}

table.rubric th,
table.rubric td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

table.rubric th {
  background: #0e1540;
  color: var(--cyan);
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  line-height: 1.5;
  white-space: nowrap;
}

table.rubric td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

table.rubric td.weight {
  color: var(--gold);
  font-weight: 700;
  text-align: center;
}

table.rubric tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
}

.tie {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* What-it-is blurb in hero */
.what-blurb {
  text-align: left;
  max-width: 40rem;
  margin: 0 auto 1.35rem;
  background: linear-gradient(145deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 0.85rem;
}

.what-blurb > p {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 1.02rem;
}

.what-blurb details {
  margin: 0.35rem 0 0;
}

.tracks-intro {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

/* Sponsors logo grid */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 0;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 140px;
  padding: 1.1rem 1rem;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.sponsor-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(61, 224, 255, 0.12);
  transform: translateY(-2px);
  color: var(--white);
}

.sponsor-card img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-card img.sponsor-wide {
  max-height: 72px;
  width: 100%;
}

.sponsor-name {
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.35;
}

.sponsor-card:hover .sponsor-name {
  color: var(--cyan);
}

@media (max-width: 560px) {
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

footer .pixel-tiny {
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.hr {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 2rem 0;
}

/* Mobile */
@media (max-width: 560px) {
  .wrap {
    padding: 0.85rem 0.75rem 3rem;
  }

  .callout {
    padding: 1rem;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }

  .secondary-art img {
    width: 70%;
  }

  summary {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  summary::before { transition: none; }
}
