/* ===== Real design rebuilt from Figma Make source (Info Submission Form) ===== */
:root {
  --cream: #fff7df;
  --yellow: #ffe500;
  --magenta: #ff00ff;
  --cyan: #00ffff;
  --red: #ff003c;
  --red-dark: #8a0020;
  --hn: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Desktop ticker config (from source App.tsx DESKTOP) */
  --bar-height: 340px;
  --ticker-font: 250px;
  --segment: 7592px;
  --start-x: 410px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--hn);
  background: var(--cream);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Fixed background ===== */
.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}
.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ===== Ticker ===== */
.ticker-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--bar-height);
  background: #000;
  z-index: 10;
}
.marquee {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--bar-height);
  overflow: clip;
  z-index: 20;
}
.ticker {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--bar-height);
  width: calc(var(--segment) * 2);
  color: var(--yellow);
  font-weight: 700;
  font-style: italic;
  font-size: var(--ticker-font);
  line-height: var(--bar-height);
  white-space: pre;
  transform: translateX(var(--start-x));
  animation: ticker-scroll 21.691s linear infinite;
}
.ticker__line { position: absolute; top: 0; }
.ticker__line--1 { left: 0; }
.ticker__line--2 { left: var(--segment); }

@keyframes ticker-scroll {
  from { transform: translateX(var(--start-x)); }
  to { transform: translateX(calc(var(--start-x) - var(--segment))); }
}

/* ===== Form container ===== */
.container {
  position: relative;
  z-index: 30;
  padding: calc(var(--bar-height) + 60px) 24px 40px;
}
.panel {
  margin: 0 auto;
  max-width: 1869px;
  background: rgba(70, 57, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 77px;
  padding: 64px;
}
.form {
  width: 100%;
  max-width: 36rem; /* max-w-xl */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== Fields ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}
.field input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  font-family: var(--hn);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

/* ===== Yellow box (neo-brutalist) ===== */
.yellow-box {
  background: var(--yellow);
  border: 4px solid #000;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 6px 6px 0px #000;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.white-box {
  background: #fff;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000;
}
.dream-box { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.dream-title {
  color: #000;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 22px;
  line-height: 1.1;
}
.dream-sub {
  color: rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}
.dream-input {
  background: transparent;
  border: 2px dashed #000;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-family: var(--hn);
  font-size: 15px;
  min-height: 100px;
  resize: none;
  padding: 12px;
}
.dream-input::placeholder { color: rgba(0, 0, 0, 0.4); }
.dream-input:focus { outline: none; border-color: #000; }

/* ===== Lever row ===== */
.lever-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}
.lever {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-content: center;
  user-select: none;
}
.lever__housing {
  position: relative;
  width: 48px;
  height: 110px;
  background: var(--magenta);
  border: 3px solid #000;
  border-radius: 24px;
  padding: 8px 0;
  box-shadow: 4px 4px 0px #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.lever__rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  bottom: 16px;
  width: 6px;
  background: repeating-linear-gradient(45deg, #000, #000 4px, #fff 4px, #fff 8px);
  border: 2px solid #000;
  border-radius: 3px;
}
.lever__knob {
  position: relative;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #000;
  box-shadow: 0px 4px 0px var(--red-dark), inset -3px -3px 0px rgba(0,0,0,0.2);
  cursor: grab;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px;
  touch-action: none;
}
.lever__knob:active { cursor: grabbing; }
.lever__knob.spring { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.lever__shine {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}
.lever__base {
  position: relative;
  z-index: 10;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0px rgba(255,255,255,0.4);
}
.lever__btn {
  background: #000;
  color: var(--yellow);
  padding: 4px 12px;
  font-family: var(--hn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  border-radius: 9999px;
  border: 2px solid var(--yellow);
  box-shadow: 2px 2px 0px var(--yellow);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  max-width: 150px;
  cursor: pointer;
  transition: transform 0.1s;
}
.lever__btn:hover { transform: scale(1.05); }
.lever__btn:active { transform: scale(0.95); }

/* ===== Idea box ===== */
.idea-box {
  min-height: 140px;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.idea-placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 24px;
}
.idea-card {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  border: 4px solid #000;
  box-shadow: 6px 6px 0px #000;
  animation: card-in 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.8) rotate(var(--rot-from)); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot)); }
}
.idea-card__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 56px;
  height: 24px;
  background: #f0f0f0;
  opacity: 0.9;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.idea-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.idea-card__name {
  color: #000;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
}
.idea-card__city {
  background: #000;
  color: #fff;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.idea-card__idx {
  margin-left: auto;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.idea-card__dream {
  color: #000;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}
.idea-card--dream {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.idea-card--dream .idea-card__dream {
  text-align: center;
  font-size: 20px;
  line-height: 1.25;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.footer__tagline {
  font-style: italic;
  color: #dbdbdb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cta {
  background: var(--yellow);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--hn);
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 24px 48px;
  font-size: 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: scale(1.04); box-shadow: 0 0 32px 6px rgba(255, 229, 0, 0.53); }
.cta:active { transform: scale(0.96); }
.cta:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.footer__status {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-style: italic;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 14px;
  border-radius: 8px;
}
.footer__status--err { color: #ff6b6b; }

/* ===== Mobile (max-width 767, from source MOBILE config) ===== */
@media (max-width: 767px) {
  :root {
    --bar-height: 110px;
    --ticker-font: 80px;
    --segment: 2429.44px; /* 7592 * 80/250 */
    --start-x: 131.2px;   /* 410 * 80/250 */
  }
  .container { padding: calc(var(--bar-height) + 20px) 16px 40px; }
  .panel { border-radius: 32px; padding: 24px; }
  .form { gap: 16px; }
  .grid { grid-template-columns: 1fr; }
  .dream-title { font-size: 18px; }
  .lever-row { flex-direction: column; align-items: center; }
  /* Small when empty, grows to fit a pulled card (no fixed aspect-ratio = no clipping) */
  .idea-box { aspect-ratio: auto; min-height: 84px; padding: 14px; }
  .idea-card--dream { min-height: 80px; padding: 18px 16px; }
  .idea-card--dream .idea-card__dream { font-size: 17px; }
  .cta { width: 100%; padding: 16px 24px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .idea-card { animation: none; }
}
