/* === Pixel Art UI -- Twitter Video Downloader === */

/* --- Variables --- */
:root {
  --red:     #E63946;
  --blue:    #1DA1F2;
  --black:   #1A1A1A;
  --white:   #F5F5F5;
  --yellow:  #F5C518;
  --gray:    #C8C8C8;
  --bg:      #F5F5F5;

  --font-pixel: 'Press Start 2P', monospace;
  --font-vt:    'VT323', monospace;

  --border: 2px solid #1A1A1A;
  --shadow: 2px 2px 0 #1A1A1A;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-pixel);
  background: var(--bg);
  color: var(--black);
  overflow-x: hidden;
  image-rendering: pixelated;
}

/* --- Pixel scanline overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.015) 2px,
    rgba(0,0,0,0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- Grid background --- */
.pixel-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,26,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* --- Pixel HR divider --- */
.pixel-hr {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red)   0px,  var(--red)   4px,
    var(--blue)  4px,  var(--blue)  8px,
    var(--black) 8px,  var(--black) 12px,
    var(--white) 12px, var(--white) 16px
  );
  border: none;
  margin: 0;
}

/* --- Status bar --- */
.status-bar {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 7px;
  text-align: center;
  padding: 5px 24px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 2px solid var(--red);
}

.status-bar-sep {
  opacity: 0.4;
}

/* --- Blink animation --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1s step-end infinite;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
  transition: border-bottom-color 0s;
}

.nav.scrolled {
  border-bottom-color: var(--red);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 16px;
  height: 16px;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--black);
}

.logo-twitter { color: var(--blue); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 8px;
  text-decoration: none;
  padding: 8px 14px;
  border: var(--border);
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--black);
  color: var(--white);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.nav-cta:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* --- Shared section layout --- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '//';
  color: var(--black);
  opacity: 0.3;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 16px;
}

.section-title .accent { color: var(--blue); }

.section-sub {
  font-family: var(--font-vt);
  font-size: 20px;
  color: #555;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 9px;
  text-decoration: none;
  padding: 12px 20px;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--black);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

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

.btn-primary.large {
  font-size: 10px;
  padding: 14px 24px;
}

/* --- HERO --- */
.hero {
  position: relative;
  z-index: 1;
  padding: 130px 0 80px;
  border-bottom: var(--border);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  background: var(--black);
  color: var(--white);
  padding: 6px 12px;
  margin-bottom: 24px;
  border: 2px solid var(--black);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.hero-sub {
  font-family: var(--font-vt);
  font-size: 22px;
  color: #555;
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-sub strong { color: var(--black); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* --- Rating meta --- */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-px {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.meta-text {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: #666;
}

/* --- Hero chips --- */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--black);
  padding: 6px 10px;
  cursor: default;
  transition: none;
}

.chip:hover {
  background: var(--blue);
  color: var(--white);
}

.chip-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

/* --- Hero window mockup --- */
.hero-window {
  border: var(--border);
  box-shadow: 4px 4px 0 var(--black);
  background: var(--white);
}

.win-titlebar {
  background: var(--blue);
  border-bottom: 2px solid var(--black);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.win-title {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.win-controls {
  display: flex;
  gap: 4px;
}

.win-btn {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-btn.close { background: rgba(255,255,255,0.3); }

.win-body { padding: 20px; }

/* --- Fake tweet card --- */
.tweet-card {
  border: 2px solid var(--black);
  padding: 14px;
  background: var(--white);
  margin-bottom: 14px;
}

.tweet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tweet-avatar {
  width: 24px;
  height: 24px;
  background: var(--blue);
  border: 2px solid var(--black);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 3px;
  gap: 1px;
  flex-shrink: 0;
}

.tweet-avatar span { background: rgba(255,255,255,0.4); }
.tweet-avatar span:nth-child(2),
.tweet-avatar span:nth-child(4),
.tweet-avatar span:nth-child(6) { background: rgba(255,255,255,0.9); }

.tweet-user {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--black);
}

.tweet-user span {
  color: #888;
  display: block;
  margin-top: 2px;
}

.tweet-body {
  font-family: var(--font-vt);
  font-size: 16px;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}

.tweet-video {
  background: var(--black);
  border: 2px solid var(--black);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tweet-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 8px
  );
}

.play-btn {
  width: 32px;
  height: 32px;
  background: var(--red);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 12px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 2px;
}

/* --- Save indicator inside mockup --- */
.save-indicator {
  border: 2px solid var(--black);
  padding: 12px;
  background: #EBEBEB;
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-icon {
  width: 28px;
  height: 28px;
  background: var(--red);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.save-text {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--black);
  line-height: 2;
}

.save-text span {
  display: block;
  color: #22c55e;
  margin-top: 2px;
}

.save-btn {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-pixel);
  font-size: 6px;
  border: var(--border);
  box-shadow: 2px 2px 0 var(--black);
  padding: 7px 10px;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
}

.save-btn:hover {
  background: var(--black);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

/* --- FEATURES --- */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-bottom: var(--border);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border);
}

.feature-card {
  padding: 28px 24px;
  border-right: 2px solid var(--black);
  background: var(--white);
  transition: none;
}

.feature-card:last-child { border-right: none; }
.feature-card.border-top { border-top: 2px solid var(--black); }

.feature-card:hover {
  background: var(--black);
  color: var(--white);
}

.feature-card:hover .feature-title { color: var(--white); }
.feature-card:hover .feature-desc  { color: var(--gray); }
.feature-card:hover .feature-icon  {
  background: var(--red);
  border-color: var(--white);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.6;
}

.feature-desc {
  font-family: var(--font-vt);
  font-size: 18px;
  color: #555;
  line-height: 1.5;
}

/* --- HOW IT WORKS --- */
.how {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-bottom: var(--border);
}

.how-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.how-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 2px solid var(--black);
}

.how-step:last-child { border-bottom: none; }

.how-num {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  padding-top: 3px;
}

.how-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.6;
}

.how-desc {
  font-family: var(--font-vt);
  font-size: 18px;
  color: #555;
  line-height: 1.5;
}

.how-desc strong { color: var(--black); }

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* --- Terminal block --- */
.terminal {
  border: var(--border);
  box-shadow: 4px 4px 0 var(--black);
  background: var(--black);
}

.term-bar {
  background: var(--gray);
  border-bottom: 2px solid var(--black);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--black);
  background: var(--yellow);
}

.term-dot.red   { background: var(--red); }
.term-dot.green { background: #22c55e; }

.term-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  margin-left: auto;
  color: var(--black);
  opacity: 0.6;
}

.term-body {
  padding: 20px 16px;
  font-family: var(--font-pixel);
  font-size: 7px;
  line-height: 2;
  color: #ccc;
}

.term-line { display: block; }
.term-line .prompt  { color: var(--red); }
.term-line .cmd     { color: var(--white); }
.term-line .out     { color: #22c55e; }
.term-line .comment { color: #666; }

.cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--white);
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

/* --- FAQ --- */
.faq {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-bottom: var(--border);
  background: var(--white);
}

.faq-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-mascot {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-mascot-row {
  display: flex;
  gap: 2px;
}

.px-cell {
  width: 8px;
  height: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border);
}

.faq-item {
  border-bottom: 2px solid var(--black);
  background: var(--white);
}

.faq-item:last-child { border-bottom: none; }
.faq-item[open]      { background: #EBEBEB; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--black);
  cursor: pointer;
  list-style: none;
  user-select: none;
  line-height: 1.6;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker                  { display: none; }
.faq-q:hover { background: var(--blue); color: var(--white); }

.faq-arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: none;
  margin-top: -4px;
}

details[open] .faq-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-a {
  padding: 12px 18px 16px;
  font-family: var(--font-vt);
  font-size: 19px;
  color: #555;
  line-height: 1.6;
  border-top: 1px dashed var(--black);
}

.faq-a strong { color: var(--black); }

/* --- Bottom CTA --- */
.bottom-cta {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  border-bottom: var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 640px !important;
}

.pixel-deco {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.px       { width: 8px; height: 8px; background: var(--red); }
.px.blue  { background: var(--blue); }
.px.black { background: var(--black); }
.px.sm    { width: 4px; height: 4px; }

.cta-window {
  border: var(--border);
  box-shadow: 6px 6px 0 var(--black);
  display: inline-block;
  width: 100%;
  max-width: 480px;
  background: var(--white);
}

.cta-titlebar {
  background: var(--red);
  border-bottom: var(--border);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-wintitle {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--white);
}

.cta-body { padding: 32px 28px; }

.cta-title {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 12px;
}

.cta-sub {
  font-family: var(--font-vt);
  font-size: 20px;
  color: #666;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.cta-store-note {
  margin-top: 14px;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: #888;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--black);
  padding: 20px 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--white);
}

.footer-sep {
  color: var(--red);
  font-family: var(--font-pixel);
  font-size: 10px;
}

.footer-link {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--gray);
  text-decoration: none;
  transition: none;
}

.footer-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-right {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: #555;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-window { display: none; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2)              { border-right: none; }
  .feature-card:nth-child(3)              { border-top: 2px solid var(--black); border-right: 2px solid var(--black); }
  .feature-card:nth-child(4)              { border-top: 2px solid var(--black); border-right: none; }
  .feature-card:nth-child(n+3).border-top { border-top: 2px solid var(--black); }

  .how-layout  { grid-template-columns: 1fr; }
  .faq-inner   { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .hero      { padding: 110px 0 60px; }
  .status-bar { font-size: 6px; gap: 8px; }

  .features-grid { grid-template-columns: 1fr; }

  .feature-card                { border-right: none; border-bottom: 2px solid var(--black); }
  .feature-card:last-child     { border-bottom: none; }
  .feature-card.border-top     { border-top: 2px solid var(--black); }

  .btn-primary.large { font-size: 8px; padding: 12px 18px; }
}

/* --- Address bar in hero window --- */
.win-addressbar {
  background: #EBEBEB;
  border-bottom: 2px solid var(--black);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--black);
}

.win-addr-icon {
  color: var(--black);
  opacity: 0.4;
  font-size: 6px;
}

.win-addr-url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--black);
  padding: 3px 6px;
  font-size: 6px;
}

.win-addr-x {
  color: var(--blue);
  font-weight: bold;
}

.win-addr-lock {
  color: #22c55e;
  font-size: 7px;
}

/* --- X logo avatar --- */
.tweet-avatar-x {
  width: 24px;
  height: 24px;
  border: 2px solid var(--black);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Rocket scene inside tweet video --- */
.rocket-scene {
  position: absolute;
  inset: 0;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.star-dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--white);
}

.rocket {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  animation: rocketFloat 2s step-end infinite;
}

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

.rocket-nose {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--white);
}

.rocket-body {
  width: 12px;
  height: 22px;
  background: var(--white);
  border-left: 2px solid var(--black);
  border-right: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  gap: 3px;
}

.rocket-window {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border: 1px solid var(--black);
  border-radius: 0;
}

.rocket-stripe {
  width: 100%;
  height: 2px;
  background: var(--red);
}

.rocket-bottom {
  display: flex;
  align-items: flex-end;
}

.rocket-fin-l,
.rocket-fin-r {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 0;
}

.rocket-fin-l {
  border-right: 6px solid var(--gray);
}

.rocket-fin-r {
  border-left: 6px solid var(--gray);
}

.rocket-engine {
  width: 12px;
  height: 6px;
  background: var(--gray);
  border: 2px solid var(--black);
  border-top: none;
}

.rocket-flame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: flicker 0.3s step-end infinite;
}

@keyframes flicker {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.flame-inner {
  width: 6px;
  height: 10px;
  background: var(--yellow);
  border-bottom: 4px solid var(--red);
}

.smoke {
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 10px;
  background: #888;
  border: 1px solid #666;
  opacity: 0.6;
}

.smoke-l { left: calc(50% - 20px); }
.smoke-r { right: calc(50% - 20px); }

/* --- Pixel TV --- */
.pixel-tv {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tv-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
}

.tv-top-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 0;
}

.tv-antenna {
  width: 4px;
  height: 40px;
  background: var(--black);
  position: relative;
}

.tv-antenna-l { transform: rotate(-15deg); transform-origin: bottom center; }
.tv-antenna-r { transform: rotate(15deg);  transform-origin: bottom center; }

.tv-frame {
  width: 100%;
  background: var(--black);
  border: 4px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  display: flex;
  gap: 0;
}

.tv-screen {
  flex: 1;
  background: var(--black);
  border: 3px solid #333;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.tv-screen-inner {
  position: absolute;
  inset: 0;
  background: #0a0a1a;
}

.tv-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--white);
}

.tv-rocket {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rocketFloat 1.8s step-end infinite;
}

.tv-rkt-nose {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--white);
}

.tv-rkt-body {
  width: 10px;
  height: 16px;
  background: var(--white);
}

.tv-rkt-flame {
  width: 6px;
  height: 8px;
  background: var(--yellow);
  border-bottom: 3px solid var(--red);
  animation: flicker 0.25s step-end infinite;
}

.tv-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.2) 3px,
    rgba(0,0,0,0.2) 4px
  );
  pointer-events: none;
}

.tv-controls {
  width: 52px;
  background: #2a2a2a;
  border-left: 2px solid #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
}

.tv-knob {
  width: 14px;
  height: 14px;
  background: #555;
  border: 2px solid #888;
  border-radius: 0;
}

.tv-knob:hover {
  background: var(--blue);
  cursor: pointer;
}

.tv-led {
  width: 6px;
  height: 6px;
  background: var(--red);
  border: 1px solid var(--black);
  animation: blink 2s step-end infinite;
}

.tv-stand-top {
  width: 60%;
  height: 8px;
  background: var(--black);
  border: 2px solid var(--black);
}

.tv-stand-legs {
  display: flex;
  gap: 48px;
}

.tv-leg {
  width: 10px;
  height: 16px;
  background: var(--black);
}

/* --- Bird trail scenery (How It Works) --- */
.bird-trail {
  position: relative;
  height: 90px;
  max-width: 300px;
  margin-top: 0;
}

.bird-scene {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
}

.bird-walk {
  animation: birdHop 7.2s step-end infinite;
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 3;
}

/* 3 short hops right (~67px each = 200px total), pause, 1 long hop back, pause */
@keyframes birdHop {
  0%      { transform: translateX(0px)   scaleX(1)  translateY(0); }
  /* hop 1 up */
  5%      { transform: translateX(0px)   scaleX(1)  translateY(-16px); }
  /* hop 1 land */
  12%     { transform: translateX(67px)  scaleX(1)  translateY(0); }
  /* hop 2 up */
  17%     { transform: translateX(67px)  scaleX(1)  translateY(-16px); }
  /* hop 2 land */
  24%     { transform: translateX(134px) scaleX(1)  translateY(0); }
  /* hop 3 up */
  29%     { transform: translateX(134px) scaleX(1)  translateY(-16px); }
  /* hop 3 land */
  36%     { transform: translateX(200px) scaleX(1)  translateY(0); }
  /* pause facing right */
  44%     { transform: translateX(200px) scaleX(1)  translateY(0); }
  /* flip */
  44.01%  { transform: translateX(200px) scaleX(-1) translateY(0); }
  /* one long hop up */
  52%     { transform: translateX(200px) scaleX(-1) translateY(-22px); }
  /* land at 0 */
  68%     { transform: translateX(0px)   scaleX(-1) translateY(0); }
  /* pause facing left */
  88%     { transform: translateX(0px)   scaleX(-1) translateY(0); }
  /* flip back */
  88.01%  { transform: translateX(0px)   scaleX(1)  translateY(0); }
  100%    { transform: translateX(0px)   scaleX(1)  translateY(0); }
}

/* grass cluster */
.grass-blade {
  position: absolute;
  bottom: 10px;
  transform-origin: bottom center;
}

.grass-blade svg {
  display: block;
  image-rendering: pixelated;
}

@keyframes grassSway1 {
  0%,100% { transform: rotate(0deg); }
  40%     { transform: rotate(6deg); }
  70%     { transform: rotate(-4deg); }
}
@keyframes grassSway2 {
  0%,100% { transform: rotate(0deg); }
  30%     { transform: rotate(-5deg); }
  65%     { transform: rotate(4deg); }
}
@keyframes grassSway3 {
  0%,100% { transform: rotate(2deg); }
  50%     { transform: rotate(-6deg); }
}

/* grass cluster grouped near left side */
.grass-blade:nth-child(2) { animation: grassSway1 2.4s ease-in-out infinite;        left: 60px; }
.grass-blade:nth-child(3) { animation: grassSway2 3.1s ease-in-out infinite;        left: 72px; }
.grass-blade:nth-child(4) { animation: grassSway3 2.7s ease-in-out infinite 0.3s;   left: 82px; }
.grass-blade:nth-child(5) { animation: grassSway1 2.9s ease-in-out infinite 0.5s;   left: 92px; }
.grass-blade:nth-child(6) { animation: grassSway2 2.2s ease-in-out infinite 0.1s;   left: 102px; }
.grass-blade:nth-child(7) { animation: grassSway3 3.4s ease-in-out infinite 0.7s;   left: 112px; }
.grass-blade:nth-child(8) { animation: grassSway1 2.6s ease-in-out infinite 0.9s;   left: 122px; }

/* pixel rock */
.pixel-rock {
  position: absolute;
  bottom: 10px;
  image-rendering: pixelated;
  z-index: 2;
}

/* --- FAQ bird perch: zigzag layout --- */
.faq-bird-perch {
  display: block;
  position: relative;
  margin-top: 8px;
  width: 164px;
  pointer-events: none;
}

.faq-easter-bird {
  position: absolute;
  animation: birdPop 0.15s step-end both;
  width: 72px;
  height: 72px;
  padding: 4px 0;
}

@keyframes birdPop {
  0%  { opacity: 0; transform: translateY(-8px); }
  100%{ opacity: 1; transform: translateY(0); }
}
