/* ═══════════════════════════════════════════════════════════
   DadMade LLC — styles.css
   Bebas Neue headings · Inter body · Black/White throughout
═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --black:      #000000;
  --off-black:  #080808;
  --dark:       #0e0e0e;
  --border:     #1c1c1c;
  --muted:      #555555;
  --mid:        #888888;
  --light:      #cccccc;
  --white:      #ffffff;
  --green:      #4ade80;
  --nav-h:      68px;
  --radius:     5px;
  --ease:       0.25s ease;
  --max:        880px;
  --font-head:  'Bebas Neue', Impact, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(1);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  color: var(--mid);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--border);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   SECTIONS — base
══════════════════════════════════════ */
.section {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  display: flex;
  align-items: center;
}

.section-alt { background: var(--off-black); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.section-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--light);
  max-width: 600px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover { background: #e0e0e0; border-color: #e0e0e0; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: #333;
}
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-lg { font-size: 1.3rem; padding: 0.95rem 2.4rem; }

/* ══════════════════════════════════════
   HOME / HERO
══════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #111 0%, #000 100%);
  position: relative;
  padding-top: var(--nav-h);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  animation: fadeUp 0.9s ease both;
}

.hero-logo {
  width: clamp(160px, 35vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.08));
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll-hint span {
  display: block;
  width: 20px; height: 20px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-story {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--light);
  line-height: 1.85;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border);
  max-width: 680px;
}
.about-story-2 { margin-top: 1.25rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--off-black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* TikTok followers card — entire card is a link */
.stat-card--tiktok { padding: 0; }
.stat-tiktok-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.25rem;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background var(--ease);
}
.stat-tiktok-link:hover { background: #111; }
.stat-tiktok-link .stat-lbl { color: #6e6e6e; transition: color var(--ease); }
.stat-tiktok-link:hover .stat-lbl { color: #aaa; }

.social-row {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--mid);
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}
.social-btn:hover {
  color: var(--white);
  border-color: #444;
  background: var(--dark);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════
   DIYULATOR — screenshot display
══════════════════════════════════════ */
.diy-screenshots {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 2.75rem;
  max-width: 640px;
}

.diy-shot {
  border-radius: 12px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.75);
  border: 1px solid #1e1e1e;
  display: block;
}

.diy-shot--home    { width: 52%; }
.diy-shot--results { width: 44%; }

@media (max-width: 540px) {
  .diy-screenshots { flex-direction: column; align-items: center; }
  .diy-shot--home,
  .diy-shot--results { width: 88%; }
}

/* ══════════════════════════════════════
   MERCH
══════════════════════════════════════ */
.merch-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.merch-logo {
  width: clamp(120px, 28vw, 190px);
  opacity: 0.55;
  margin: 0 auto;
}

.coming-soon-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.22em;
  padding: 0.45rem 1.5rem;
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   CAD / BLUEPRINTS
══════════════════════════════════════ */
.blueprints-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.blueprints-center .section-sub { text-align: center; margin-left: auto; margin-right: auto; }

.vote-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 1.75rem;
}

.vote-btn {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: none;
  border: 2px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease), background var(--ease), transform 0.15s ease;
}
.vote-btn:hover { border-color: #555; background: #0e0e0e; transform: scale(1.06); }
.vote-btn.voted { border-color: var(--green); background: #0a1c0a; }
.vote-btn.voted:hover { transform: scale(1); cursor: default; }

.vote-emoji { font-size: 3rem; line-height: 1; user-select: none; }

.vote-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.vote-number {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  min-width: 180px;
  text-align: center;
  display: block;
  transition: transform 0.2s ease;
}
.vote-number.pop { animation: votePop 0.35s cubic-bezier(.175,.885,.32,1.275); }

.vote-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.blueprints-byline {
  font-size: 0.85rem;
  color: #383838;
  max-width: 420px;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   FOR THE KIDS
══════════════════════════════════════ */
.kids-section {
  background: linear-gradient(145deg, #15092a 0%, #0a1628 50%, #0e2212 100%);
  align-items: flex-start;
}

.kids-title {
  color: #FFD700;
  text-shadow: 0 0 24px rgba(255,215,0,0.25);
}

.kids-sub {
  color: #a89bcc;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

/* Game wrapper */
.game-wrap {
  position: relative;
  width: 100%;
}

.level-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.level-badge {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: #FFD700;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  padding: 0.15rem 0.75rem;
  border-radius: 4px;
}

.level-desc {
  font-size: 0.95rem;
  color: #a89bcc;
  flex: 1;
}

.level-dots {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.lvl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2a2a2a;
  transition: background var(--ease);
}
.lvl-dot.active { background: #FFD700; }

/* Game stage */
.game-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Build area */
.game-area {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 360;
  background:
    linear-gradient(180deg,
      #a8d8ea 0%,
      #87CEEB 60%,
      #87CEEB 72%,
      #5a8c3a 72%,
      #4a7c2a 100%
    );
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  user-select: none;
}

/* Sky decorations */
.game-area::before {
  content: '☀️';
  position: absolute;
  top: 10px; right: 16px;
  font-size: 2rem;
  pointer-events: none;
  z-index: 1;
}
.game-area::after {
  content: '☁️';
  position: absolute;
  top: 14px; left: 18px;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 1;
}

/* Slots */
.game-slot {
  position: absolute;
  z-index: 2;
  border-radius: 3px;
  transition: background 0.2s;
  pointer-events: none;
}

.game-slot.rect-slot {
  border: 2px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.game-slot.rect-slot.near { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.game-slot.filled { border: none !important; background: none !important; }

/* Triangle slot uses inline SVG — no border */
.game-slot.tri-slot { overflow: visible; }
.game-slot.tri-slot svg { width: 100%; height: 100%; display: block; }

/* Placed pieces */
.placed-piece {
  position: absolute;
  z-index: 3;
  border-radius: 3px;
  pointer-events: none;
}

/* Parts tray */
.parts-tray {
  width: 100%;
  max-width: 520px;
  min-height: 90px;
  background: rgba(0,0,0,0.35);
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Piece wrappers in tray */
.piece-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: opacity 0.2s;
}
.piece-wrap.placed { display: none; }
.piece-wrap.faded  { opacity: 0.35; pointer-events: none; }
.piece-wrap:active { cursor: grabbing; }

.piece-shape {
  border-radius: 3px;
  pointer-events: none;
}

.piece-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  white-space: nowrap;
  pointer-events: none;
}

/* Piece type styles */
.ptype-triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border-radius: 0; }

.ptype-window {
  border: 2px solid rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.ptype-window::before, .ptype-window::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}
.ptype-window::before { width: 2px; height: 100%; left: calc(50% - 1px); top: 0; }
.ptype-window::after  { height: 2px; width: 100%; top: calc(50% - 1px); left: 0; }

.ptype-gdoor {
  border: 2px solid rgba(0,0,0,0.3);
  background: repeating-linear-gradient(
    180deg,
    #d0d0d0 0px, #d0d0d0 6px,
    #b0b0b0 6px, #b0b0b0 8px
  ) !important;
}

.ptype-fence {
  border-top: 3px solid #c49a6c;
  background: repeating-linear-gradient(
    90deg,
    #c49a6c 0px, #c49a6c 45%,
    #8b6040 45%, #8b6040 55%,
    #c49a6c 55%, #c49a6c 100%
  ) !important;
}

/* Ghost element during drag */
#drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.7);
  opacity: 0.88;
  transform-origin: center;
}
#drag-ghost.tri-ghost { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

/* Hint text */
.game-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #7a6d9a;
  margin-top: 0.5rem;
}

/* Confetti */
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  border-radius: 12px;
}

.confetti-piece {
  position: absolute;
  border-radius: 2px;
  animation: confFall linear forwards;
}

/* Win overlay */
.win-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(5px);
  border-radius: 12px;
}
.win-overlay.hidden { display: none; }

.win-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: fadeUp 0.4s ease;
}

.win-emoji { font-size: 3.5rem; animation: bounce 0.8s ease infinite; }

.win-text {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.08em;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.btn-next {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.9rem;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  transition: background var(--ease), transform var(--ease);
}
.btn-next:hover { background: #ffe033; transform: scale(1.04); }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-wrap { max-width: 600px; }

.contact-email-line { margin-bottom: 2.2rem; }

.contact-email-link {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.contact-email-link:hover { color: var(--white); border-color: #666; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-general {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-general-label {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.form-row { width: 100%; }

.form-field {
  width: 100%;
  background: #080808;
  border: 1px solid #1e1e1e;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color var(--ease);
  resize: none;
}
.form-field::placeholder { color: #333; }
.form-field:focus { border-color: #444; }

.form-ta { min-height: 130px; }

.form-msg {
  font-size: 0.88rem;
  min-height: 1.4rem;
  margin-top: 0.25rem;
}
.form-msg.ok  { color: var(--green); }
.form-msg.err { color: #f87171; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  background: var(--off-black);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo { width: 40px; opacity: 0.4; margin: 0 auto; }

.footer-copy { font-size: 0.8rem; color: #333; }

.footer-tag {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #222;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes votePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes confFall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

@keyframes snapIn {
  0%   { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1);    opacity: 1; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    gap: 0;
  }
  .nav-links.open { display: flex; }

  .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid #0a0a0a;
  }

  /* Sections */
  .section { padding: calc(var(--nav-h) + 3rem) 0 3.5rem; }

  /* About stats stacked */
  .stats-grid { grid-template-columns: 1fr; }

  /* Hero buttons stacked */
  .hero-buttons { flex-direction: column; width: 100%; max-width: 260px; }
  .btn { width: 100%; }

  /* Game */
  .game-area { border-radius: 10px; }
  .parts-tray { padding: 10px; gap: 8px; }
}

@media (max-width: 480px) {
  .section { padding: calc(var(--nav-h) + 2rem) 0 2.5rem; }
  .section-heading { line-height: 0.95; }
  .level-bar { gap: 0.6rem; }
  .vote-btn { width: 100px; height: 100px; }
  .vote-emoji { font-size: 2.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.1ms !important; }
  html { scroll-behavior: auto; }
}
