:root {
  --ink: #120b14;
  --ink-deep: #0b060d;
  --surface: rgba(29, 19, 34, 0.82);
  --surface-strong: rgba(36, 23, 42, 0.92);
  --rim: rgba(255, 255, 255, 0.13);
  --rim-hover: rgba(255, 143, 179, 0.55);
  --text: #faf4f8;
  --muted: #c7b5c3;
  --quiet: #9a8697;
  --accent: #ff8fb3;
  --accent-deep: #ff5d96;
  --gold: #ffd36b;
  --lilac: #c79eff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--ink-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

/* ==================== BACKGROUND ==================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.15) blur(1px);
  transform: scale(1.03);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 143, 179, 0.24), transparent 45%),
    radial-gradient(circle at 84% 20%, rgba(199, 158, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(18, 11, 20, 0.35) 0%, rgba(18, 11, 20, 0.88) 45%, #0b060d 100%);
}

#petals-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(18, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  height: 54px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 143, 179, 0.45));
}

.brand-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(12px, 1.35vw, 15px);
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--text);
}

.brand-sub {
  font-size: 12px;
  color: var(--quiet);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 107, 0.12);
  border: 1px solid rgba(255, 211, 107, 0.3);
}

/* ==================== SHELL ==================== */
.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 72px;
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==================== BUTTONS ==================== */
button, a.btn-ghost, a.btn-primary {
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #ff79a8 0%, #ffb38a 100%);
  color: #1f0e1a;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(255, 121, 168, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 121, 168, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--rim-hover);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ==================== HERO ==================== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px) 0 44px;
}

.dev-message-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(42, 26, 36, 0.88);
  border: 1px solid rgba(255, 143, 179, 0.32);
  font-size: 13px;
  font-weight: 600;
  color: #ffdce8;
  margin-bottom: 20px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7be0a4;
  box-shadow: 0 0 10px #7be0a4;
}

.hero-title {
  margin: 0 0 18px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.accent-grad {
  background: linear-gradient(120deg, #ff99be 0%, #ffd36b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.meta-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero phone card + mascot */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.phone-card {
  width: 100%;
  max-width: 400px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(40, 24, 46, 0.92), rgba(22, 13, 28, 0.94));
  border: 1px solid rgba(255, 143, 179, 0.25);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 143, 179, 0.14);
}

.phone-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #3c2138, #633054);
  border: 1px solid rgba(255, 143, 179, 0.45);
  color: var(--gold);
}

.phone-sender { font-weight: 700; font-size: 15px; }
.phone-status { font-size: 12px; color: #7be0a4; }

.phone-bubble {
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: rgba(42, 26, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14px;
  color: #f3e4ef;
  margin-bottom: 14px;
}

.phone-survey-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 143, 179, 0.16), rgba(199, 158, 255, 0.12));
  border: 1px solid rgba(255, 143, 179, 0.35);
}

.psc-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}

.psc-text {
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 14px;
}

.psc-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #1f0e1a;
  font-weight: 800;
  font-size: 14px;
}

.psc-btn:hover { background: #ffa8c5; }

.hero-chibi {
  position: absolute;
  right: -48px;
  bottom: -36px;
  width: 136px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  animation: floatY 4.5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

/* ==================== CAST STRIP ==================== */
.cast-strip {
  padding: 20px 0 56px;
  scroll-margin-top: 86px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
}

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

.cast-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rim);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cast-card:hover {
  transform: translateY(-5px);
  border-color: var(--girl-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 28px color-mix(in srgb, var(--girl-accent) 28%, transparent);
}

.cast-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1020;
}

.cast-img-wrap > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cast-card:hover .cast-img-wrap > img:first-child {
  transform: scale(1.05);
}

.cast-medal {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

.cast-info {
  padding: 15px 16px 18px;
}

.cast-info h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--girl-accent);
}

.cast-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ==================== SURVEY CARD ==================== */
.survey-section {
  padding-top: 10px;
  scroll-margin-top: 86px;
}

.survey-card {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.survey-progress-wrap {
  margin-bottom: 28px;
}

.survey-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-pct {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff79a8, #ffd36b);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.step-dot {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

.step-dot.done { background: rgba(255, 143, 179, 0.55); }
.step-dot.current { background: var(--gold); }

/* Step content */
.step {
  display: none;
  animation: stepIn 0.28s ease;
}

.step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.step-badge {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.step-header h2 {
  margin: 0 0 4px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
}

.step-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.field-block {
  margin-bottom: 24px;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.req { color: var(--accent); }
.opt { color: var(--quiet); font-weight: 500; font-size: 13px; }

/* Heart Rating */
.heart-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.heart-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 16px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.heart-btn span {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease;
}

.heart-btn small { font-size: 12px; font-weight: 600; }

.heart-btn:hover {
  border-color: var(--rim-hover);
  background: rgba(255, 143, 179, 0.1);
}

.heart-btn.active {
  border-color: var(--accent);
  background: rgba(255, 143, 179, 0.2);
  color: var(--text);
  box-shadow: 0 0 20px rgba(255, 143, 179, 0.22);
}

.heart-btn.active span {
  color: #ff6ea4;
  transform: scale(1.16);
}

/* Chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.chip:hover {
  border-color: var(--rim-hover);
  color: var(--text);
}

.chip.selected {
  background: rgba(255, 143, 179, 0.22);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 143, 179, 0.2);
}

/* Girl Picker */
.girl-pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.girl-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.girl-pick img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.girl-pick-body strong { display: block; font-size: 16px; }
.girl-pick-body span { font-size: 13px; color: var(--muted); }

.pick-check {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--rim);
  color: transparent;
  font-weight: 800;
  font-size: 14px;
}

.girl-pick:hover {
  border-color: var(--girl-accent);
  background: rgba(255, 255, 255, 0.08);
}

.girl-pick.selected {
  border-color: var(--girl-accent);
  background: color-mix(in srgb, var(--girl-accent) 18%, rgba(28, 17, 34, 0.9));
  box-shadow: 0 0 24px color-mix(in srgb, var(--girl-accent) 26%, transparent);
}

.girl-pick.selected img { border-color: var(--girl-accent); }
.girl-pick.selected .pick-check {
  background: var(--girl-accent);
  border-color: var(--girl-accent);
  color: #190d16;
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
}

.activity-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.activity-card strong { display: block; font-size: 14.5px; }
.activity-card span { font-size: 12.5px; color: var(--quiet); }

.activity-card:hover {
  border-color: var(--rim-hover);
  background: rgba(255, 255, 255, 0.08);
}

.activity-card.selected {
  border-color: var(--accent);
  background: rgba(255, 143, 179, 0.18);
  box-shadow: 0 0 20px rgba(255, 143, 179, 0.18);
}

/* Matrix Ratings */
.matrix-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-name { font-weight: 600; font-size: 14.5px; }

.scale-5 {
  display: flex;
  gap: 8px;
}

.scale-5 button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.scale-5 button:hover {
  border-color: var(--rim-hover);
  color: var(--text);
}

.scale-5 button.selected {
  background: linear-gradient(135deg, #ff79a8, #ffd36b);
  border-color: transparent;
  color: #1f0e1a;
}

/* Inputs & Textareas */
input[type="text"], textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rim);
  background: rgba(14, 8, 18, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 179, 0.18);
}

input::placeholder, textarea::placeholder { color: var(--quiet); }

/* Summary Preview */
.summary-preview {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 211, 107, 0.35);
  font-size: 13.5px;
  color: var(--muted);
}

.summary-preview strong { color: var(--gold); }

/* Form error & Nav */
.form-error {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 92, 128, 0.16);
  border: 1px solid rgba(255, 92, 128, 0.45);
  color: #ffc2d0;
  font-size: 14px;
  font-weight: 600;
}

.survey-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-spacer { flex: 1; }

/* ==================== THANKS SCREEN ==================== */
.thanks-screen {
  text-align: center;
  padding: 16px 8px 8px;
  animation: stepIn 0.35s ease;
}

.thanks-chibi {
  width: 170px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
  animation: floatY 3.8s ease-in-out infinite;
}

.thanks-screen h2 {
  margin: 8px 0 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
}

.thanks-text {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==================== FOOTER ==================== */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px 36px;
  font-size: 13px;
  color: var(--quiet);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 10px; }
  .hero-chibi { right: 0; width: 128px; }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pill-tag { display: none; }
  .heart-rating { gap: 6px; }
  .heart-btn { padding: 10px 4px; }
  .heart-btn small { font-size: 10.5px; }
  .girl-pick-grid, .activity-grid { grid-template-columns: 1fr; }
  .matrix-row { flex-direction: column; align-items: flex-start; }
  .cast-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step-header { align-items: flex-start; }
  .step-badge { width: 48px; height: 48px; }
}

/* ==================== DOWNLOAD PAGE & PASSCODE GATE ==================== */
.gate-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.gate-card {
  width: 100%;
  max-width: 480px;
  padding: 36px clamp(22px, 4vw, 40px) 38px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 143, 179, 0.25);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 0 48px rgba(255, 143, 179, 0.14);
  text-align: center;
}

.gate-chibi {
  width: 126px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  animation: floatY 4.2s ease-in-out infinite;
}

.gate-title {
  margin: 8px 0 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
}

.gate-sub {
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--muted);
}

.pin-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 300px;
  margin: 0 auto 22px;
}

.pin-box {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 16px;
  border: 1.5px solid var(--rim);
  background: rgba(14, 8, 18, 0.78);
  color: var(--gold);
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.pin-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 143, 179, 0.22);
  transform: translateY(-2px);
}

.gate-error {
  margin: 0 0 18px;
}

.gate-btn {
  width: 100%;
  max-width: 300px;
}

.gate-card.shake {
  animation: shakeX 0.36s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}

/* Unlocked download portal */
.dl-portal {
  animation: stepIn 0.38s ease;
}

.dl-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  padding: 20px 0 36px;
}

.dl-hero-mascot {
  display: flex;
  justify-content: center;
}

.dl-hero-mascot img {
  width: clamp(160px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  animation: floatY 4s ease-in-out infinite;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dl-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--rim);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.dl-card-main {
  border-color: rgba(255, 143, 179, 0.38);
  background: linear-gradient(155deg, rgba(46, 26, 52, 0.92), rgba(24, 14, 30, 0.94));
}

.dl-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.dl-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.dl-card-top h2 {
  margin: 4px 0 0;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(17px, 2vw, 21px);
}

.dl-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.dl-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.dl-specs span {
  font-size: 12.5px;
  font-weight: 700;
  color: #f4dce9;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dl-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gold);
}

.dl-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 28px;
}

.info-card {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--rim);
  backdrop-filter: blur(14px);
}

.info-card-accent {
  border-color: rgba(255, 211, 107, 0.3);
  background: linear-gradient(145deg, rgba(255, 143, 179, 0.12), rgba(29, 19, 34, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.info-card h3 {
  margin: 6px 0 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
}

.info-card p {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.install-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-steps code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--gold);
  font-size: 13px;
}

.dl-cast-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini-girl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rim);
}

.mini-girl img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--girl-accent);
}

.mini-girl span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 860px) {
  .dl-hero, .dl-grid, .dl-bottom-grid { grid-template-columns: 1fr; }
  .dl-hero-mascot { order: -1; }
  .dl-cast-mini { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== WORKFLOW CAPTCHA & CHEAT VAULT ==================== */
.wf-section {
  margin-top: 34px;
}

.wf-window {
  border-radius: 20px;
  background: #161b22;
  border: 1px solid #30363d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wf-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #0d1117;
  border-bottom: 1px solid #30363d;
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #f0f6fc;
}

.wf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.wf-dot-r { background: #da3633; }
.wf-dot-y { background: #d29922; }
.wf-dot-g { background: #238636; margin-right: 6px; }
.wf-muted { color: #8b949e; font-weight: 500; }
.wf-status { font-size: 13px; color: #8b949e; font-weight: 600; }

.wf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 20px 0;
}

.wf-seg {
  height: 6px;
  border-radius: 999px;
  background: #272c35;
  transition: background 0.25s ease;
}
.wf-seg.active { background: #1f6feb; }
.wf-seg.done { background: #238636; }

.wf-stage {
  padding: 24px 20px 26px;
}

.wf-intro {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.wf-intro-text {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: #c9d1d9;
}

.wf-robot-box {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #21262d;
  border: 1.5px solid #30363d;
  color: #f0f6fc;
}

.wf-robot-box:hover {
  border-color: #1f6feb;
  background: #272e37;
}

.wf-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #8b949e;
  background: #0d1117;
  flex-shrink: 0;
}

.wf-checkbox.spinning {
  border-color: #1f6feb;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wfSpin 0.6s linear infinite;
}

@keyframes wfSpin { to { transform: rotate(360deg); } }

.wf-robot-label { font-size: 16px; font-weight: 700; }
.wf-robot-badge {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  color: #58a6ff;
  line-height: 1.15;
}
.wf-robot-badge small { color: #8b949e; font-weight: 600; }

.wf-task {
  max-width: 460px;
  margin: 0 auto;
}

.wf-task-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #1f6feb;
  color: #fff;
  font-size: 15px;
}

.wf-task-head small { opacity: 0.85; font-size: 12.5px; white-space: nowrap; }

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

.wf-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #21262d;
  border: 2px solid #30363d;
  padding: 10px;
  display: grid;
  place-items: center;
}

.wf-tile img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  pointer-events: none;
}

.wf-tile:hover { border-color: #58a6ff; background: #272e37; }

.wf-tile.selected {
  border-color: #1f6feb;
  background: rgba(31, 111, 235, 0.22);
}

.wf-tile.wrong {
  border-color: #da3633;
  background: rgba(218, 54, 51, 0.2);
}

.wf-tile-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1f6feb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.wf-tile.selected .wf-tile-check { opacity: 1; transform: scale(1); }

.wf-rotate-stage {
  height: 190px;
  border-radius: 14px;
  background: #21262d;
  border: 1px solid #30363d;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.wf-rot-img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.wf-rot-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wf-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(218, 54, 51, 0.16);
  border: 1px solid rgba(218, 54, 51, 0.45);
  color: #ffb8b8;
  font-size: 13.5px;
  font-weight: 600;
}

.wf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.wf-btn-primary {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: #238636;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.wf-btn-primary:hover { background: #2ea043; }

.wf-btn-ghost {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  font-weight: 600;
  font-size: 13.5px;
}
.wf-btn-ghost:hover { border-color: #58a6ff; color: #fff; }

/* Cheat Vault */
.wf-vault {
  padding: 24px 22px 26px;
  animation: stepIn 0.35s ease;
}

.wf-vault-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wf-ok-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #7ee787;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(35, 134, 54, 0.22);
  border: 1px solid rgba(63, 185, 80, 0.45);
  margin-bottom: 8px;
}

.wf-vault-head h3 {
  margin: 0 0 6px;
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  color: #f0f6fc;
}

.wf-vault-head p {
  margin: 0;
  font-size: 14px;
  color: #8b949e;
}

.cheat-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #30363d;
  background: #0d1117;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cheat-table th {
  text-align: left;
  padding: 12px 16px;
  background: #21262d;
  color: var(--gold);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #30363d;
}

.cheat-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #21262d;
  color: #e6edf3;
  vertical-align: middle;
}

.cheat-table tr:last-child td { border-bottom: none; }
.cheat-table tbody tr:hover td { background: rgba(31, 111, 235, 0.08); }

.cheat-code-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 143, 179, 0.35);
  background: rgba(255, 143, 179, 0.12);
  color: #ffdce8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cheat-code-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 143, 179, 0.24);
}

.cheat-code-btn.copied {
  border-color: #3fb950;
  background: rgba(35, 134, 54, 0.3);
  color: #7ee787;
}
