/* ============================================================================
   SCREENS v2 — start (attract), result, reward, share — light editorial arcade
   ============================================================================ */

/* ---------- START / ATTRACT ---------- */
.screen-start {
  width: 100%; max-width: 760px; min-height: 82dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3.5vh, 38px); text-align: center; position: relative;
}
.attract-card {
  background: var(--card); border: 3px solid var(--ink-strong); border-radius: var(--radius-lg);
  box-shadow: var(--cab-shadow); padding: clamp(26px, 5vw, 48px) clamp(22px, 5vw, 52px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vh, 30px);
  width: 100%;
}
.screen-start .brand-logo--hero {
  width: min(560px, 90%); height: auto; display: block;
  image-rendering: pixelated;
  animation: logo-float 3s steps(2) infinite;
}
@keyframes logo-float { 50% { transform: translateY(-4px); } }

.screen-start .tagline {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 2.2vw, 22px);
  color: var(--ink); max-width: 32ch;
}
.screen-start .tagline span { color: var(--arc-red); }

.attract-rewards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.attract-rewards .pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-arcade); font-size: 9px; letter-spacing: 0;
  padding: 9px 12px; border-radius: 5px;
  background: var(--paper); border: 2px solid var(--ink-strong); color: var(--ink);
}
.attract-rewards .pill b { color: var(--arc-gold); }

.press-start {
  font-family: var(--font-arcade); font-size: clamp(13px, 2vw, 18px); letter-spacing: 0;
  padding: 18px 36px; border-radius: var(--radius-md);
  color: var(--ink-strong); background: var(--arc-yellow); border: 3px solid var(--ink-strong);
  box-shadow: var(--cab-shadow);
  animation: press-blink 0.9s steps(2) infinite;
}
.press-start:hover { background: #ffd84a; }
.press-start:active { transform: translate(4px,4px); box-shadow: 0 0 0; }
@keyframes press-blink { 50% { background: #ffdd57; } }
.start-hint { font-family: var(--font-arcade); font-size: 9px; letter-spacing: 0; color: var(--ink-dim); }

/* ---------- RESULT / REWARD / SHARE ---------- */
.screen-result, .screen-reward, .screen-share {
  width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 16px; align-self: center;
}
.result-card, .reward-card, .share-card {
  background: var(--card); border: 3px solid var(--ink-strong); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); text-align: center; box-shadow: var(--cab-shadow);
  position: relative; overflow: hidden;
}
.result-card .caption, .reward-card .caption, .share-card .caption { font-family: var(--font-arcade); font-size: 10px; color: var(--arc-red); letter-spacing: 0; }
.result-card .score-big {
  font-family: var(--font-arcade); font-size: clamp(38px, 9vw, 64px); line-height: 1; margin: 14px 0;
  color: var(--arc-yellow); transform: skewX(-7deg); display: inline-block;
  text-shadow: -3px -3px 0 var(--ink-strong), 3px -3px 0 var(--ink-strong), -3px 3px 0 var(--ink-strong), 3px 3px 0 var(--ink-strong), 0 7px 0 #b56a00;
  font-variant-numeric: tabular-nums;
}
.result-card .editorial { display: block; margin-top: 10px; }
.result-card ul.unlocks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.result-card ul.unlocks li {
  padding: 13px 14px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--ink-strong); color: var(--ink); font-weight: 700; font-size: 15px;
}
.result-card ul.unlocks li::before { content: "★"; color: var(--arc-gold); }

.email-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.email-form .row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.email-form button { width: 100%; }

.most-matched { margin-top: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.most-matched-img {
  width: 150px; height: 150px; border-radius: var(--radius-sm);
  border: 3px solid var(--ink-strong); background: var(--card); padding: 6px; overflow: hidden; box-shadow: var(--cab-shadow-sm);
}
.most-matched-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; image-rendering: pixelated; }

.reward-code {
  display: inline-block; font-family: var(--font-arcade); font-size: clamp(18px, 4vw, 26px); letter-spacing: 0.08em;
  color: var(--arc-yellow); background: var(--ink-strong); border: 3px solid var(--ink-strong);
  border-radius: var(--radius-sm); padding: 14px 22px; margin: 12px 0;
}
.reward-card .expiry { color: var(--ink-dim); font-size: 14px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.shop-grid button { padding: 14px 12px; font-size: 12px; }
.shop-grid button.primary { grid-column: 1 / -1; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.share-grid button.full { grid-column: 1 / -1; }
.back-link {
  background: transparent; border: 0; box-shadow: none; color: var(--ink-dim);
  text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 14px; padding: 6px; cursor: pointer;
}
.back-link:hover { color: var(--ink); transform: none; box-shadow: none; background: transparent; }

.brand-logo { display: block; height: auto; max-width: 100%; }

/* ---------- START: how-to + reward guide ---------- */
.how-to {
  width: 100%; text-align: left;
  background: var(--paper); border: 2px solid var(--ink-strong); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.how-to .caption { display: block; margin-bottom: 8px; color: var(--arc-red); }
.how-to ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink); }
.how-to ol b { color: var(--arc-gold); }
.reward-guide { width: 100%; }
.reward-guide .caption { display: block; margin-bottom: 8px; text-align: center; color: var(--ink-dim); }
.attract-rewards .pill.gift { background: var(--ink-strong); color: #fff; }
.attract-rewards .pill.gift b { color: var(--arc-yellow); }

/* ---------- RESULT: reward + leaderboard ---------- */
.result-reward { margin-top: 4px; }
.result-reward .caption { color: var(--arc-red); }
.result-reward .reward-pct {
  display: inline-block; margin: 10px 0 4px;
  font-family: var(--font-arcade); font-size: clamp(20px, 4vw, 30px); color: var(--arc-gold);
  transform: skewX(-6deg);
}
.lb-loading { font-family: var(--font-arcade); font-size: 10px; color: var(--ink-dim); padding: 12px 0; }

.leaderboard { text-align: left; margin-top: 4px; }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lb-rank { font-family: var(--font-arcade); font-size: 10px; color: var(--arc-gold); }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-list li {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border: 2px solid var(--ink-strong); border-radius: var(--radius-sm);
  background: var(--paper); font-weight: 700; font-size: 14px;
}
.lb-list li .rank { font-family: var(--font-arcade); font-size: 10px; color: var(--ink-dim); }
.lb-list li .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list li .pts { font-variant-numeric: tabular-nums; color: var(--ink); }
.lb-list li.first { background: var(--arc-yellow); }
.lb-list li.first .rank { color: var(--arc-red); }
.lb-list li.me { outline: 3px solid var(--arc-blue); outline-offset: 1px; }
.lb-list li.empty { grid-template-columns: 1fr; justify-items: center; color: var(--ink-dim); }
.secret-gift {
  margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink-strong);
  background: var(--arc-yellow); border: 2px solid var(--ink-strong); border-radius: var(--radius-sm); padding: 10px 12px;
}
.secret-gift b { font-family: var(--font-arcade); font-size: 12px; }

.lb-form { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-top: 4px; }
.lb-form .caption { color: var(--arc-red); }
.lb-form button { width: 100%; }

.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.result-actions button { width: 100%; }

/* ---------- SHARE: card preview ---------- */
.share-preview {
  margin: 16px auto; width: min(320px, 82%); aspect-ratio: 1080 / 1350;
  border: 3px solid var(--ink-strong); border-radius: var(--radius-sm);
  background: var(--paper-2); box-shadow: var(--cab-shadow); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.share-preview img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: pixelated; }
.share-loading { font-family: var(--font-arcade); font-size: 10px; color: var(--ink-dim); padding: 20px; text-align: center; line-height: 1.8; }
.share-grid button:disabled { opacity: 0.5; cursor: default; }
