/* One continuous scene: the question and input never leave the journey. */
.fresh-wander { color: #b4aa8a; font-size: 10px; padding: 0 0 5px 24px; margin-top: -8px; }
.fresh-wander:hover { color: var(--gold-light); }
body.playing { --play-header: 62px; overflow: hidden; }
.playing #header { height: var(--play-header); background: #07111bef; }
.playing .nav { max-width: 1480px; padding: 0 28px; }
.playing .brand-icon { width: 30px; height: 30px; }
.playing .brand-icon svg { width: 19px; height: 19px; }
.playing .brand-name { font-size: 13px; }
.playing .brand-name small { display: none; }
.playing .nav-actions { gap: 10px; }
.playing .nav-links, .playing .streak, .playing #footer, .playing > .world { display: none; }
.playing #main { height: calc(var(--play-height, 100dvh) - var(--play-header)); }
.rift-playfield {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%; min-height: 340px; display: grid;
  grid-template-rows: auto auto minmax(90px, 1fr) auto;
  padding: 15px 28px 20px; background: #07141d;
}
.play-world { position: absolute; z-index: -3; top: 0; left: 0; width: 100%; height: max(300vw, 2400px); background: url('./assets/timeline-world.jpg') center / 100% 100% no-repeat; will-change: transform; }
.play-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, #030c18f7, #05132018 35%, #05132015 65%, #030b15de), linear-gradient(90deg, #03101bcc, transparent 30%, transparent 70%, #03101bcc); }
.expedition-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1424px; margin: 0 auto 12px; min-height: 34px; gap: 16px; }
.expedition-hud .back-btn { font-size: 10px; color: #c0ced0; justify-self: start; }
.expedition-hud .discovery-strip { margin: 0; gap: 7px; justify-content: center; }
.expedition-hud .discovery-caption { display: none; }
.expedition-hud .answer-slot { width: 29px; height: 29px; max-width: none; font-size: 8px; background: #071521b8; }
.expedition-hud .answer-slot.current { box-shadow: 0 0 15px #d8b47428; }
.expedition-score { display: flex; align-items: baseline; gap: 7px; justify-self: end; color: var(--gold-light); font-family: var(--serif); font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1; }
.expedition-score svg { align-self: center; width: 17px; }
.expedition-score small { color: #a2b7b9; font-family: var(--sans); font-size: 10px; }
.prompt-dock, .answer-dock { width: min(670px, 100%); margin-inline: auto; z-index: 3; }
.prompt-dock { padding: 17px 26px 18px; background: linear-gradient(120deg, #0a1927f2, #0a1927d9); border: 1px solid #c7ab684d; box-shadow: 0 12px 45px #0003; position: relative; }
.prompt-dock::before, .prompt-dock::after { content: ''; position: absolute; width: 7px; height: 7px; border: solid #c3a873; pointer-events: none; }
.prompt-dock::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.prompt-dock::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.prompt-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: #cdb783; margin-bottom: 9px; }
.prompt-meta b { font-weight: 400; color: #799aab; margin: 0 10px; }
.prompt-meta .inline-timer { border: 0; margin: 0; padding: 0; font-size: 15px; min-width: 32px; text-align: right; letter-spacing: 0; line-height: 1; }
.prompt-meta .inline-timer svg { width: 18px; height: 18px; }
.prompt-dock h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; text-wrap: balance; }
.prompt-scope { font-size: 10px; line-height: 1.55; color: #a2b5bf; margin-top: 9px; }
.prompt-details { display: flex; align-items: baseline; gap: 12px; }
.prompt-details .prompt-scope { flex: 1; }
.prompt-details button { color: #9eb1b7; padding: 4px; align-self: end; }
.prompt-details button svg { width: 13px; height: 13px; }
.answer-dock-foot .chronoshift-btn { color: #86d7d2; margin-right: auto; padding-left: 0; }
.answer-dock-foot .chronoshift-btn svg { margin-left: 0; margin-right: 4px; }
.answer-dock-foot > span:empty { display: none; }
.is-rewinding .chrono-orbit { animation-direction: reverse; }
.is-rewinding .orbit-b { animation-direction: normal; }
.era-unlocked { animation: memoryAppear .6s ease-out; }
.era-unlocked .era-year-label { color: #90e6d7; }
.era-unlocked .era-name-label { color: #fff0c7; text-shadow: 0 0 20px #dbbc72; }
.journey-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.traveler-cluster { position: relative; z-index: 2; text-align: center; width: min(460px, 85%); display: flex; align-items: center; flex-direction: column; gap: 23px; padding: 18px 0; }
.chronosphere { position: relative; display: grid; place-items: center; width: 94px; height: 94px; color: var(--discovery-color); border: 1px solid #dbbf825e; border-radius: 50%; background: radial-gradient(circle, #183b47de, #07121ef2); box-shadow: 0 0 35px #67dadb3d, inset 0 0 22px #6bd4cf1c; }
.chronosphere > svg { width: 33px; height: 33px; color: #e6c687; filter: drop-shadow(0 0 10px #cbb77980); }
.chronosphere > img { width: 100%; height: 100%; padding: 5px; object-fit: cover; border-radius: 50%; border: 1px solid var(--discovery-color); }
.chrono-orbit { position: absolute; pointer-events: none; border: 1px solid #d2b47870; border-radius: 50%; inset: -12px; animation: rotate 26s linear infinite; }
.chrono-orbit::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; left: -2px; top: 50%; background: #f0daab; box-shadow: 0 0 12px #f1d59c; }
.orbit-b { inset: -22px; border-style: dashed; opacity: .5; animation-direction: reverse; animation-duration: 45s; }
.orbit-c { inset: -7px; border-radius: 0; transform: rotate(45deg); opacity: .45; animation: none; }
.traveler-light { position: absolute; top: -90%; left: 18%; width: 64%; height: 200%; background: linear-gradient(0deg, transparent, #9af0df40 50%, transparent); filter: blur(10px); z-index: -1; opacity: 0; }
.discovery-caption-live { min-height: 66px; width: 100%; text-shadow: 0 2px 18px #000; display: grid; justify-items: center; gap: 5px; }
.idle-whisper { color: #c5d5d2; font-size: 11px; font-family: Georgia, serif; font-style: italic; margin-top: 5px; }
.discovery-tier { color: var(--discovery-color); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.discovery-caption-live h2 { font-size: clamp(20px, 2.5vw, 29px); line-height: 1.25; color: #fff1d0; overflow-wrap: anywhere; }
.discovery-gain { font: 27px/1.2 var(--serif); color: var(--discovery-color); }
.discovery-gain small { margin-left: 8px; font: 8px var(--sans); text-transform: uppercase; letter-spacing: 1.6px; color: #c2d1cd; }
.era-marker { position: absolute; left: 4px; bottom: 25px; display: flex; flex-direction: column; gap: 5px; text-shadow: 0 2px 12px #000; }
.era-year-label { color: #e6c688; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
.era-name-label { font-family: var(--serif); font-size: 17px; color: #e4e4d8; }
.depth-track { width: 125px; height: 2px; background: #d9c79a30; margin-top: 6px; }
.depth-track i { display: block; height: 100%; background: var(--gold-light); box-shadow: 0 0 8px #f2d28a90; }
.travel-skip { position: absolute; right: 0; bottom: 25px; font-size: 9px; color: #b9cdce; padding: 8px; z-index: 3; }
.travel-skip svg { width: 13px; margin-left: 5px; }
.travel-skip[hidden] { display: none; }
.answer-dock { padding: 15px 20px 10px; background: linear-gradient(120deg, #0b1b29f7, #071522eb); border: 1px solid #a78c5145; box-shadow: 0 -8px 50px #0004; }
.answer-dock-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 8px; letter-spacing: 1.6px; text-transform: uppercase; color: #d7caab; }
.answer-dock-label > span { color: #869fa8; letter-spacing: .6px; }
.answer-dock .answer-field { min-height: 53px; background: #06121ce0; }
.answer-dock .answer-field input { padding: 12px 14px; font-size: 16px; }
.answer-dock .answer-field input[readonly] { color: #e7d8b7; }
.answer-dock .answer-submit { min-width: 120px; justify-content: center; padding: 0 16px; }
.answer-dock-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 25px; margin-top: 4px; }
.answer-dock-foot > span { font-size: 9px; line-height: 1.4; color: #819ba7; }
.answer-dock-foot > span.error { color: #f0aa91; }
.answer-dock-foot button { font-size: 9px; padding: 5px 0 5px 8px; color: #c5b893; white-space: nowrap; }
.answer-dock-foot button svg { width: 12px; height: 12px; margin-left: 4px; }
.time-ripple { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--discovery-color); left: 50%; top: 45%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.travel-streaks { position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0; background: repeating-linear-gradient(91deg, transparent 0 9%, #a9eadd1a 9.1%, transparent 9.2% 18%); mask-image: radial-gradient(ellipse, transparent 25%, #000 85%); }
.is-travelling .time-ripple { animation: timeRipple 1.3s ease-out infinite; }
.is-travelling .ripple-two { animation-delay: .65s; }
.is-travelling .chrono-orbit { animation-duration: 1.4s; border-color: var(--discovery-color); }
.is-travelling .orbit-b { animation-duration: 2s; }
.is-travelling .traveler-light { opacity: .8; }
.is-travelling .travel-streaks { opacity: .6; animation: archiveStreak .35s linear infinite; }
.is-travelling .chronosphere { box-shadow: 0 0 55px color-mix(in srgb, var(--discovery-color) 55%, transparent); }
.is-arrived .chronosphere { animation: arrivalGlow .9s ease-out both; }
.has-answer .discovery-caption-live { animation: memoryAppear .35s ease-out both; }
@keyframes timeRipple { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 20% { opacity: .5; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.5); } }
@keyframes archiveStreak { to { transform: translateY(-32px); } }
@keyframes memoryAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arrivalGlow { 0% { box-shadow: 0 0 80px var(--discovery-color); } 100% { box-shadow: 0 0 35px color-mix(in srgb, var(--discovery-color) 35%, transparent); } }
@media (max-width: 760px) {
  body.playing { --play-header: 54px; }
  .playing .nav { padding: 0 17px; }
  .playing .brand-name { font-size: 11px; letter-spacing: 1px; }
  .playing .brand { gap: 10px; }
  .playing .nav-actions { gap: 7px; }
  .playing .nav-actions .icon-btn { width: 28px; height: 28px; }
  .playing .brand-icon { width: 26px; height: 26px; }
  .rift-playfield { padding: 10px 15px max(13px, env(safe-area-inset-bottom)); }
  .expedition-hud { gap: 8px; margin-bottom: 10px; }
  .expedition-hud .back-btn { font-size: 0; }
  .expedition-hud .back-btn svg { width: 17px; }
  .expedition-hud .discovery-strip { gap: 5px; }
  .expedition-hud .answer-slot { width: 24px; height: 24px; }
  .expedition-score { font-size: 20px; gap: 4px; }
  .expedition-score small { font-size: 8px; }
  .expedition-score svg { display: none; }
  .prompt-dock { padding: 13px 17px; }
  .prompt-meta { font-size: 8px; margin-bottom: 7px; letter-spacing: 1.2px; }
  .prompt-dock h1 { font-size: 22px; line-height: 1.28; }
  .prompt-scope { font-size: 9px; margin-top: 7px; line-height: 1.5; }
  .traveler-cluster { gap: 19px; width: 90%; padding: 17px 0 24px; }
  .chronosphere { width: 72px; height: 72px; }
  .chronosphere > svg { width: 27px; height: 27px; }
  .chrono-orbit { inset: -9px; }
  .orbit-b { inset: -17px; }
  .orbit-c { inset: -5px; }
  .idle-whisper { font-size: 10px; }
  .discovery-caption-live { min-height: 51px; gap: 3px; }
  .discovery-tier { font-size: 8px; letter-spacing: 1.5px; }
  .discovery-caption-live h2 { font-size: 22px; }
  .discovery-gain { font-size: 23px; }
  .discovery-gain small { font-size: 7px; }
  .era-marker { left: 2px; bottom: 13px; gap: 2px; }
  .era-year-label { font-size: 7px; }
  .era-name-label { font-size: 12px; }
  .depth-track { width: 85px; margin-top: 5px; }
  .travel-skip { font-size: 8px; bottom: 10px; }
  .answer-dock { padding: 11px 12px 6px; }
  .answer-dock-label { font-size: 7px; letter-spacing: 1px; margin-bottom: 7px; }
  .answer-dock-label > span { font-size: 7px; letter-spacing: 0; }
  .answer-dock .answer-field { min-height: 48px; }
  .answer-dock .answer-field input { padding: 11px 10px; font-size: 16px; }
  .answer-dock .answer-submit { min-width: 87px; padding: 0 10px; font-size: 10px; }
  .answer-dock-foot > span, .answer-dock-foot button { font-size: 8px; }
}
/* Small windows and the phone keyboard keep all three game regions in view. */
body.playing.compact-play { --play-header: 42px; }
.compact-play .rift-playfield { padding-top: 5px; padding-bottom: 7px; grid-template-rows: auto auto minmax(70px, 1fr) auto; min-height: 290px; }
.compact-play .expedition-hud { margin-bottom: 5px; min-height: 25px; }
.compact-play .expedition-hud .answer-slot { width: 20px; height: 20px; }
.compact-play .prompt-dock { padding: 9px 13px; }
.compact-play .prompt-dock h1 { font-size: 18px; }
.compact-play .prompt-meta { font-size: 7px; margin-bottom: 4px; }
.compact-play .prompt-scope { font-size: 8px; line-height: 1.35; margin-top: 5px; }
.compact-play .traveler-cluster { flex-direction: row; justify-content: center; gap: 18px; padding: 8px 0 18px; }
.compact-play .chronosphere { width: 45px; height: 45px; }
.compact-play .chronosphere > svg { width: 21px; height: 21px; }
.compact-play .orbit-b { inset: -11px; }
.compact-play .chrono-orbit { inset: -6px; }
.compact-play .discovery-caption-live { min-height: 24px; width: auto; max-width: 200px; text-align: left; justify-items: start; }
.compact-play .discovery-caption-live h2 { font-size: 16px; }
.compact-play .discovery-gain { font-size: 18px; }
.compact-play .idle-whisper { font-size: 9px; }
.compact-play .era-marker { bottom: 2px; flex-direction: row; align-items: center; gap: 7px; }
.compact-play .era-marker .depth-track { display: none; }
.compact-play .era-name-label { font-size: 11px; }
.compact-play .answer-dock { padding: 7px 10px 3px; }
.compact-play .answer-dock-label { margin-bottom: 4px; }
.compact-play .answer-dock .answer-field { min-height: 42px; }
.compact-play .answer-dock .answer-field input { padding-block: 7px; }
.compact-play .answer-dock-foot { min-height: 20px; margin-top: 1px; }
@media (max-width: 350px) {
  .playing .brand-name { font-size: 9px; }
  .rift-playfield { padding-inline: 10px; }
  .expedition-hud .discovery-strip { gap: 4px; }
  .expedition-hud .answer-slot { width: 21px; height: 21px; }
}
