/* Free Robux.
 *
 * Each beat is drawn as the interface it would really arrive in, because the
 * lesson is about recognising these surfaces in the wild. The fake Roblox page
 * is deliberately convincing - a scam drawn badly teaches nothing.
 */

.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 18px max(20px, env(safe-area-inset-bottom));
  max-width: 560px;
  margin: 0 auto;
}

.screen[hidden] { display: none; }
/* Shared .back is 35px tall — under the thumb minimum. Local bump only. */

/* ---------- intro ---------- */

#intro { justify-content: center; }

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.title {
  margin: 0;
  font-size: clamp(52px, 16vw, 84px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--volt);
}

.pitch {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper);
  max-width: 32ch;
}

.warn {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--hot);
  background: rgba(255, 45, 120, 0.08);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dim);
  max-width: 40ch;
}

.big-btn {
  margin-top: 30px;
  padding: 18px 26px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--void);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.14s var(--ease-snap);
}

.big-btn:active { transform: scale(0.97); }

/* ---------- stage ---------- */

#play { justify-content: flex-end; }

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

/* --- discord --- */

.app-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.app-bar .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, #5865f2, #8b3fd4);
  flex: none;
}

.app-bar b { display: block; font-size: 15px; font-weight: 700; }
.app-bar i { display: block; font-size: 12px; font-style: normal; color: var(--dim); }

.thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow-y: auto;
}

.bubble {
  margin: 0;
  padding: 11px 15px;
  max-width: 88%;
  border-radius: 16px 16px 16px 5px;
  background: var(--panel-lift);
  font-size: 15.5px;
  line-height: 1.42;
  animation: rise 0.28s var(--ease-out) both;
}

.bubble-link {
  background: rgba(0, 229, 192, 0.1);
  border: 1px solid rgba(0, 229, 192, 0.3);
  word-break: break-all;
}

.bubble-img {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line);
  color: var(--dim);
  font-size: 13.5px;
  font-style: italic;
}

.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13.5px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}

/* --- inspect --- */

.inspect { justify-content: center; }

.inspect-head { margin: 0 0 18px; font-size: 15px; color: var(--dim); }

.inspect-url {
  margin: 0 0 22px;
  font-size: clamp(15px, 4.2vw, 21px);
  font-weight: 700;
  /* Break between parts, never mid-word: a URL split as "/fr ee" reads as a
   * rendering bug and undercuts the one screen that asks her to read closely. */
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.45;
}

.inspect-url mark {
  background: rgba(255, 45, 120, 0.22);
  color: var(--hot);
  border-radius: 3px;
  padding: 0 3px;
  box-shadow: inset 0 -2px 0 var(--hot);
}

.inspect-rows p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; }
.inspect-rows b { color: var(--dim); font-weight: 600; }
.inspect-rows .muted { color: var(--dim); font-size: 14px; }

/* --- browser --- */

.omnibox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
}

.omni-url { color: var(--dim); word-break: break-all; }
.lock { font-size: 12px; }

.fake-site, .fake-login {
  padding: 24px 20px;
  border-radius: 16px;
  background: #1b1b28;
  border: 1px solid #2f2f45;
  text-align: center;
}

.fs-title {
  margin: 0;
  font-size: clamp(22px, 6.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.fs-sub { margin: 8px 0 0; font-size: 12.5px; color: #9aa0b5; }
.fs-sub .ok { color: #3ddc84; }

.fs-amount {
  margin: 20px 0 6px;
  font-size: clamp(34px, 10vw, 46px);
  font-weight: 700;
  color: #3ddc84;
  letter-spacing: -0.03em;
}

.fs-note { margin: 10px 0 0; font-size: 13.5px; color: #c3c7d4; }

.fs-ticker {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #2f2f45;
  min-height: 56px;
}

.fs-ticker p {
  margin: 0 0 5px;
  font-size: 11.5px;
  color: #7f8698;
  animation: rise 0.3s var(--ease-out) both;
}

/* --- fake login --- */

.fl-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.fl-label {
  display: block;
  text-align: left;
  font-size: 12.5px;
  color: #9aa0b5;
  margin-bottom: 5px;
}

.fl-field {
  height: 42px;
  border-radius: 8px;
  background: #11111a;
  border: 1px solid #33334a;
  margin-bottom: 14px;
}

.fl-btn {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #00a2ff;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

.fl-foot { margin: 14px 0 0; font-size: 12px; color: #00a2ff; }

.pixel-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}

/* ---------- choices ---------- */

#choices {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.pick {
  padding: 16px 18px;
  border-radius: 14px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: var(--panel);
  animation: rise 0.3s var(--ease-out) both;
  transition: transform 0.12s var(--ease-snap);
}

.pick:active { transform: scale(0.98); }
.pick-risky   { border-color: rgba(255, 45, 120, 0.4); }
.pick-careful { border-color: rgba(0, 229, 192, 0.35); }

/* Waited too long: breathe, so it is clear the game wants her to choose. */
.pick.waiting { animation: breathe 1.6s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(240, 238, 248, 0); }
  50%      { transform: scale(1.015); box-shadow: 0 0 0 3px rgba(240, 238, 248, 0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .pick.waiting { animation: none; box-shadow: 0 0 0 3px rgba(240, 238, 248, 0.16); }
}

.beat-note {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gold);
}

/* ---------- ending ---------- */

#end { justify-content: flex-start; overflow-y: auto; }

.timeline { margin-bottom: 26px; }

/* The verdict: the one line she is guaranteed to read. */
.verdict {
  margin: 0 0 18px;
  font-size: clamp(28px, 8.5vw, 40px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  animation: rise 0.34s var(--ease-out) both;
}

.is-owned .verdict { color: var(--hot); }
.is-safe .verdict { color: var(--volt); }

.tl-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.34s var(--ease-out) both;
}

.tl-t { color: var(--dim); font-size: 12px; padding-top: 2px; }
.tl-row p { margin: 0; font-size: 15px; line-height: 1.5; }

.is-owned .tl-t { color: var(--hot); }
.is-safe .tl-t { color: var(--volt); }

.debrief-title {
  margin: 0 0 20px;
  font-size: clamp(27px, 8vw, 38px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

/* The lesson, folded away behind one tap. */
.why-btn {
  min-height: 48px;
  min-width: 132px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.12s var(--ease-snap);
}

.why-btn:active { transform: scale(0.97); }

.points[hidden] { display: none; }
.points { animation: rise 0.28s var(--ease-out) both; margin-top: 4px; }

.point {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.point h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.point p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--paper); }

/* The second fold. A point is a heading plus one line; anything longer than
   that waits behind here rather than turning the debrief back into an essay. */
.point-more { margin-top: 8px; }

.point-more summary {
  display: inline-flex;
  align-items: center;
  /* 44px: the documented minimum tap target. Not the full --thumb height,
     which is sized for primary buttons and would leave a crater in prose. */
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  list-style: none;
}

.point-more summary::-webkit-details-marker { display: none; }
.point-more summary::after { content: " \25BE"; }
.point-more[open] summary::after { content: " \25B4"; }
.point-more summary:hover { color: var(--paper); }

.point-more p {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}

.replay-nudge {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--volt);
  font-weight: 600;
}

.end-actions { margin-top: 26px; display: grid; gap: 12px; }

.text-link {
  text-align: center;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
}

.text-link:hover { color: var(--paper); }
