/* orbital trail · pixel look: deep indigo, cream, lavender; double pixel borders with corner rivets */
@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/pixelify-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #0f0a26;
  --bg2: #171037;
  --panel: #120c2e;
  --ink: #f3e6c4;          /* cream */
  --ink-dim: #b9aedb;
  --lav: #b794f6;          /* lavender accent */
  --lav-hi: #e2cfff;
  --lav-lo: #5b43a6;
  --edge: #0a0720;
  --font: "Pixelify Sans", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); }
body {
  display: flex;
  align-items: center;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-font-smoothing: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(91, 67, 166, 0.18), transparent 60%),
    var(--bg);
}
[hidden] { display: none !important; }
img { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- pixel box: lavender line, dark gap, thin inner line, 4 rivets ---------- */
.px-box {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--lav);
  box-shadow: 0 0 0 3px var(--edge), inset 0 0 0 3px var(--edge), inset 0 0 0 5px var(--lav-lo);
  border-radius: 2px;
}
.px-box::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background:
    linear-gradient(var(--lav-hi), var(--lav-hi)) left top / 4px 4px no-repeat,
    linear-gradient(var(--lav-hi), var(--lav-hi)) right top / 4px 4px no-repeat,
    linear-gradient(var(--lav-hi), var(--lav-hi)) left bottom / 4px 4px no-repeat,
    linear-gradient(var(--lav-hi), var(--lav-hi)) right bottom / 4px 4px no-repeat;
}

/* ---------- frame ---------- */
.ot {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
}

/* trail map bar */
.ot-trail { display: flex; align-items: center; padding: 10px 12px 8px; gap: 0; }
.ot-node { display: grid; justify-items: center; gap: 3px; flex: 0 0 auto; width: 26px; }
.ot-node img { width: 18px; height: 18px; }
.ot-node .dot { width: 10px; height: 10px; margin: 4px; box-shadow: 0 0 0 2px var(--edge); background: #3b2d63; }
.ot-node.done .dot { background: var(--lav); }
.ot-node.here .dot { background: var(--lav-hi); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--lav); animation: here 1.6s steps(2) infinite; }
.ot-node.end img { width: 22px; height: 22px; }
.ot-node span { font-size: 10px; letter-spacing: 0.06em; color: var(--ink-dim); text-transform: uppercase; }
.ot-node .glyph { display: block; width: 10px; height: 10px; margin: 1px auto 0; color: var(--ink-dim); }
.ot-node.done .glyph { color: var(--lav); }
.ot-node.here .glyph { color: var(--lav-hi); }
.ot-link { flex: 1 1 auto; height: 2px; margin-bottom: 14px; background: repeating-linear-gradient(90deg, #6f58b8 0 3px, transparent 3px 6px); }
.ot-link.done { background: repeating-linear-gradient(90deg, var(--lav) 0 3px, transparent 3px 6px); }
@keyframes here { 50% { background: var(--lav); } }

/* scene */
.ot-scene {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 2px;
  background: linear-gradient(#0d0824, #160f38);
  box-shadow: inset 0 0 0 2px #241a4f;
}
.ot-stars { position: absolute; inset: 0; background-repeat: repeat; image-rendering: pixelated; background-size: auto 100%; }
.ot-scene.moving .ot-stars { animation: drift 2.4s linear infinite; }
@keyframes drift { to { background-position-x: calc(-1 * var(--starw, 400px)); } }
.ot-twinkles img { position: absolute; width: 18px; height: 18px; opacity: 0.2; animation: tw 3.2s steps(3) infinite; }
@keyframes tw { 50% { opacity: 1; } }
.ot-backdrop { position: absolute; inset: 0; }
.ot-backdrop img { position: absolute; }
.ot-bd-horizon { left: 50%; transform: translateX(-50%); width: 170%; max-width: none; }
.ot-ship {
  position: absolute;
  left: 8%;
  top: 46%;
  width: 32%;
  max-width: 230px;
  transition: left 2.2s cubic-bezier(0.45, 0, 0.3, 1), top 1.2s ease;
  animation: bob 2.4s steps(4) infinite;
}
.ot-ship .ot-hull { width: 100%; position: relative; }
.ot-ship .ot-flame { position: absolute; right: 93%; top: 31%; width: 24%; opacity: 0; transition: opacity 0.3s; animation: flick 0.32s steps(2) infinite; }
.ot-scene.moving .ot-ship .ot-flame { opacity: 1; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes flick { 50% { transform: scaleX(0.82); transform-origin: right center; opacity: 0.7; } }

.ot-spark { position: absolute; z-index: 2; right: 30%; top: 5%; width: 26%; max-width: 150px; aspect-ratio: 1; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.9s; }
.ot-spark.out { transform: translateX(130%); opacity: 0; }
.ot-spark.joined { transform: translate(-160%, 160%) scale(0.25); opacity: 0; }
.ot-spark-bob { width: 100%; height: 100%; animation: bob 1.8s steps(4) infinite; }
.ot-spark-pad { position: absolute; left: -6%; right: -6%; top: 84%; width: 112%; filter: drop-shadow(0 0 8px rgba(10,7,32,.8)); }
.ot-spark-orbit { position: absolute; left: -22%; right: -22%; top: 34%; height: 34%; border: 2px solid rgba(183,148,246,.55); border-radius: 50%; clip-path: inset(50% 0 0 0); }
.ot-spark-orbit.back { clip-path: inset(0 0 50% 0); z-index: -1; }
.ot-spark-bob { position: relative; }
.ot-spark-bob img { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(226, 207, 255, 0.35)); }

.ot-rhythm { position: absolute; inset: 0; display: grid; place-items: center; touch-action: manipulation; cursor: pointer; }
.ot-rhythm img { position: absolute; width: min(44%, 220px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ot-rhythm .ot-ring { will-change: transform; }
.ot-rhythm-marks { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.ot-rhythm-marks i { width: 14px; height: 14px; background: #3b2d63; box-shadow: 0 0 0 2px var(--edge); }
.ot-rhythm-marks i.hit { background: #7cc95a; }
.ot-rhythm-marks i.miss { background: #c8502e; }
.ot-rhythm.flash-hit .ot-ring-target { filter: brightness(1.8) drop-shadow(0 0 8px #e2cfff); }

.ot-crewrow { position: absolute; left: 0; right: 0; top: 12%; z-index: 3; display: flex; justify-content: center; gap: 14px; }
.ot-crewrow figure { display: grid; justify-items: center; gap: 4px; }
.ot-crewrow img { width: 44px; height: 44px; }
.ot-crewrow figcaption { font-size: 12px; color: var(--ink-dim); text-align: center; line-height: 1.2; }

/* hud */
.ot-hud { padding: 10px 14px; display: grid; gap: 8px; }
.ot-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.ot-stat { display: flex; align-items: center; gap: 5px; font-size: 13px; text-transform: uppercase; white-space: nowrap; min-width: 0; }
.ot-stat img { width: 14px; height: 14px; flex: 0 0 auto; }
.ot-stat b { font-weight: 600; color: var(--ink); }
.ot-stat small { font-size: 10px; color: var(--ink-dim); }
.ot-stat.low b { color: #f59a7a; animation: here 1.2s steps(2) infinite; }
.ot-stat.bump b { color: #b6f09a; }
.ot-crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 2px dashed #2f2560; padding-top: 7px; }
.ot-crewm { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; row-gap: 2px; align-items: center; font-size: 12px; min-width: 0; }
.ot-crewm img.p { width: 18px; height: 18px; grid-row: span 2; }
.ot-crewm .hp { display: flex; gap: 1px; }
.ot-crewm .hp img { width: 9px; height: 9px; }
.ot-crewm.gone { opacity: 0.35; }
.ot-crewm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-sparkrow { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.ot-sparkrow img { width: 18px; height: 18px; }

/* message + menu */
.ot-bottom { display: grid; grid-template-columns: 1fr; gap: 10px; }
/* fixed-size boxes: the message has a set number of lines (longer text pages with a blinking arrow),
   the fx line has its own reserved row, and the menu has a set height, so nothing ever shifts. */
.ot-msg { --lines: 3; --lh: 24px; --fxh: 20px; padding: 14px 18px 10px; height: calc(var(--lines) * var(--lh) + var(--fxh) + 24px + 6px); display: grid; grid-template-rows: calc(var(--lines) * var(--lh)) var(--fxh); row-gap: 0; align-content: start; cursor: default; }
.ot-msg #ot-msg { font-size: 17px; line-height: var(--lh); height: calc(var(--lines) * var(--lh)); overflow: hidden; color: var(--ink); text-transform: lowercase; overflow-wrap: break-word; }
.ot-msg .fx { font-size: 13px; line-height: var(--fxh); height: var(--fxh); color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.ot-msg.more { cursor: pointer; }
.ot-msg.more .ot-more { opacity: 1; animation: moreblink 0.9s steps(2) infinite; }
@keyframes moreblink { 50% { opacity: 0; transform: translateY(3px); } }
.ot-more { position: absolute; right: 14px; bottom: 10px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--lav); opacity: 0; }
.ot-msg.typing .ot-more { opacity: 0; }
.ot-menu { padding: 10px 12px; height: 178px; overflow: hidden; display: flex; align-items: center; }
.ot-menu ul { width: 100%; }
.ot-menu ul { list-style: none; display: grid; gap: 2px; }
.ot-menu ul.cols2 { grid-template-columns: 1fr 1fr; gap: 6px; }
.ot-menu button {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 6px 8px 6px 26px;
  position: relative;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: grid;
  align-content: center;
}
.ot-menu button small { font-size: 12px; letter-spacing: 0.02em; text-transform: lowercase; color: #8c80b8; margin-top: 1px; }
.ot-menu button::before {
  content: "";
  position: absolute; left: 8px; top: 50%;
  margin-top: -7px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--lav);
  opacity: 0;
}
.ot-menu button:hover, .ot-menu button:focus-visible, .ot-menu button.sel { color: var(--ink); outline: none; }
.ot-menu button:hover::before, .ot-menu button:focus-visible::before, .ot-menu button.sel::before { opacity: 1; animation: nudge 0.9s steps(2) infinite; }
.ot-menu button.big { text-align: center; padding-left: 8px; font-size: 22px; min-height: 64px; color: var(--ink); }
.ot-menu button.big::before { display: none; }
@keyframes nudge { 50% { transform: translateX(3px); } }

/* ---------- title ---------- */
.ot-title {
  position: fixed; inset: 0; z-index: 20;
  display: grid; align-content: center; justify-items: center; gap: 22px;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(124, 58, 237, 0.18), transparent 70%),
    linear-gradient(#0f0a26, #1a1143);
  transition: opacity 0.8s ease;
}
.ot-title.gone { opacity: 0; pointer-events: none; }
.ot-logo { font-size: clamp(44px, 13vw, 96px); line-height: 0.95; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.ot-logo span { display: inline-block; text-shadow: 0 4px 0 var(--edge), 0 -2px 0 var(--edge), 3px 0 0 var(--edge), -3px 0 0 var(--edge); }
.ot-logo .a { color: var(--ink); }
.ot-logo .b { color: var(--lav); }
.ot-rule { display: flex; align-items: center; gap: 8px; width: min(80%, 520px); }
.ot-rule i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--lav) 0 3px, transparent 3px 7px); }
.ot-rule b { width: 8px; height: 8px; background: var(--lav); transform: rotate(45deg); }
.ot-rule b:first-of-type, .ot-rule b:last-of-type { }
.ot-path { position: relative; width: min(100%, 760px); aspect-ratio: 760 / 260; }
.ot-path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ot-path img { position: absolute; transform: translate(-50%, -50%); animation: bob 2.6s steps(4) infinite; }
.ot-path img:nth-child(odd) { animation-delay: -1.3s; }
.ot-start { font-size: clamp(22px, 6vw, 34px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav-hi); padding: 10px 18px; min-height: 48px; animation: blink 1.4s steps(2) infinite; }
.ot-start .dia { color: var(--lav); font-size: 0.7em; letter-spacing: 0; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0.45; } }
.ot-loadbar { width: min(64%, 300px); height: 16px; padding: 3px; box-shadow: 0 0 0 2px var(--lav-lo); background: var(--edge); }
.ot-loadbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--lav) 0 14px, transparent 14px 17px); animation: load 2.6s steps(12) forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- ending / share card ---------- */
.ot-end {
  position: fixed; inset: 0; z-index: 25;
  display: grid; place-items: center;
  padding: 18px 14px;
  background: rgba(10, 7, 32, 0.78);
  animation: fadein 0.8s ease both;
}
.ot-end[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.ot-card { width: min(100%, 440px); padding: 26px 22px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.ot-card h2 { font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lav); text-shadow: 0 3px 0 var(--edge); line-height: 1; }
.ot-card .end-text { font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 32ch; }
.ot-card .score { font-size: 15px; color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.ot-card .score b { display: block; font-size: 52px; line-height: 1; color: var(--ink); letter-spacing: 0.02em; }
.ot-card .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.ot-card .row img { width: 34px; height: 34px; }
.ot-card .row img.off { opacity: 0.25; filter: grayscale(1); }
.ot-card .meta { font-size: 13px; color: var(--ink-dim); }
.ot-card .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.ot-btn { min-height: 48px; padding: 8px 10px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: #1e1548; box-shadow: 0 0 0 2px var(--lav), 0 0 0 4px var(--edge), inset 0 -3px 0 #120c2e; }
.ot-btn:hover, .ot-btn:focus-visible { background: #2a1d63; outline: none; }
.ot-btn.primary { background: var(--lav-lo); }
.ot-card .url { font-size: 12px; color: #8c80b8; letter-spacing: 0.06em; }

/* corner controls */
.ot-sound, .ot-home {
  position: fixed; z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 2px);
  font: 12px var(--font); letter-spacing: 0.06em; color: var(--ink-dim);
  padding: 8px 10px; min-height: 32px; text-decoration: none; text-transform: uppercase;
  opacity: 0.8;
}
.ot-sound { right: 6px; }
.ot-home { left: 6px; }
.ot-sound:hover, .ot-home:hover { color: var(--ink); opacity: 1; }
body.playing .ot-home, body.playing .ot-sound { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 0px); }

/* ---------- phones ---------- */
@media (max-width: 639px) {
  .ot { gap: 8px; padding-left: 8px; padding-right: 8px; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .ot-trail { padding: 9px 8px 7px; }
  .ot-node { width: 22px; }
  .ot-node span { font-size: 9px; }
  .ot-hud { padding: 9px 10px; }
  .ot-stat { font-size: 12px; gap: 3px; flex-direction: column; }
  .ot-stat small { display: none; }
  .ot-msg { --lh: 23px; --fxh: 19px; padding: 13px 16px 9px; }
  .ot-msg #ot-msg { font-size: 16px; }
  .ot-menu { height: 168px; padding: 8px 10px; }
  .ot-menu button { font-size: 16px; min-height: 44px; }
  .ot-title { gap: 16px; }
  .ot-path { aspect-ratio: 380 / 300; }
}
/* desktop: message + menu side by side like a handheld battle screen */
@media (min-width: 760px) {
  .ot { padding-top: 34px; padding-bottom: 34px; max-height: 860px; }
  .ot-bottom { grid-template-columns: 1fr 340px; }
  .ot-msg { --lines: 4; --lh: 29px; --fxh: 22px; padding: 18px 26px 12px; }
  .ot-msg #ot-msg { font-size: 20px; }
  .ot-menu { display: flex; align-items: center; height: calc(4 * 29px + 22px + 30px); padding: 6px 12px; }
  .ot-menu button { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
  .ot-menu button.big { min-height: 60px; }
  .ot-menu ul { width: 100%; }
  .ot-menu button { font-size: 18px; }
  .ot-node { width: 34px; }
  .ot-node img { width: 24px; height: 24px; }
  .ot-node.end img { width: 30px; height: 30px; }
  .ot-node span { font-size: 11px; }
  .ot-stat { font-size: 15px; }
  .ot-stat img { width: 18px; height: 18px; }
  .ot-crewm { font-size: 14px; grid-template-columns: auto auto 1fr; grid-template-rows: auto; }
  .ot-crewm img.p { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.ot-spark.tapping .ot-spark-pad, .ot-spark.tapping .ot-spark-orbit { display: none; }

/* ================= v2: setup, party, guests, ending pages ================= */
.ot-stats { grid-template-columns: repeat(4, 1fr); }
.ot-day { position: absolute; left: 12px; top: 10px; z-index: 4; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.ot-partybtn {
  position: absolute; right: 10px; top: 8px; z-index: 4;
  display: flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 4px 10px 4px 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  background: rgba(18, 12, 46, 0.82);
  box-shadow: 0 0 0 2px var(--lav-lo), 0 0 0 4px var(--edge);
}
.ot-partybtn img { width: 18px; height: 18px; }
.ot-partybtn:hover, .ot-partybtn:focus-visible { box-shadow: 0 0 0 2px var(--lav), 0 0 0 4px var(--edge); outline: none; }

/* companions traveling with the ship */
.ot-followers img { position: absolute; width: 22%; animation: bob 2s steps(4) infinite; }
.ot-followers .f0 { left: -14%; top: -46%; animation-delay: -0.4s; }
.ot-followers .f1 { left: -30%; top: 70%; animation-delay: -1s; }
.ot-followers .f2 { left: 4%; top: 96%; animation-delay: -1.5s; }

/* guests: aliens skip the rock + orbit ring */
.ot-spark.alien .ot-spark-pad, .ot-spark.alien .ot-spark-orbit { display: none; }
.ot-spark.alien { width: 28%; max-width: 170px; top: 4%; }

/* setup overlay: one airy card at a time */
.ot-setup, .ot-party {
  position: fixed; inset: 0; z-index: 22;
  display: grid; place-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(124, 58, 237, 0.16), transparent 70%),
    linear-gradient(#0f0a26, #1a1143);
  animation: fadein 0.6s ease both;
  overflow-y: auto;
}
.ot-party { background: rgba(10, 7, 32, 0.84); z-index: 26; }
.ot-setup-card {
  width: min(100%, 400px);
  padding: 34px 26px 26px;
  display: grid; gap: 18px; justify-items: center; text-align: center;
}
.ot-setup-card .k, .ot-card .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); min-height: 1em; }
.ot-setup-card h2 { font-size: 28px; line-height: 1.1; font-weight: 600; color: var(--ink); text-transform: lowercase; letter-spacing: 0.02em; }
.ot-setup-card .note { font-size: 14px; line-height: 1.45; color: var(--ink-dim); max-width: 30ch; margin-top: -8px; }
.ot-input {
  width: 100%; max-width: 280px;
  font: 20px var(--font); color: var(--ink); text-align: center; text-transform: lowercase;
  background: #0b0720; border: 0; border-radius: 0;
  padding: 12px 14px; min-height: 52px;
  box-shadow: 0 0 0 2px var(--lav), 0 0 0 4px var(--edge);
  outline: none; caret-color: var(--lav-hi);
}
.ot-input::placeholder { color: #5f5590; }
.ot-input:focus { box-shadow: 0 0 0 2px var(--lav-hi), 0 0 0 4px var(--edge), 0 0 18px rgba(183, 148, 246, 0.35); }
.ot-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 280px; }
.ot-chip {
  min-height: 44px; padding: 6px 8px;
  font-size: 15px; letter-spacing: 0.04em; color: var(--ink);
  background: #1a1240; box-shadow: 0 0 0 2px #3b2d63;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ot-chip:hover, .ot-chip:focus-visible { box-shadow: 0 0 0 2px var(--lav); outline: none; }
.ot-chip.on { background: var(--lav-lo); box-shadow: 0 0 0 2px var(--lav-hi); }
.ot-chiprow { display: flex; gap: 22px; justify-content: center; margin-top: -6px; }
.ot-mini { min-height: 36px; padding: 6px 4px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lav); }
.ot-mini:hover, .ot-mini:focus-visible { color: var(--lav-hi); outline: none; text-decoration: underline; text-underline-offset: 4px; }
.ot-line { min-height: 2.9em; font-size: 13px; line-height: 1.45; color: var(--ink-dim); max-width: 32ch; opacity: 0; transition: opacity 0.4s ease; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ot-line.on { opacity: 1; }
.ot-next { width: 100%; max-width: 280px; }
.ot-skip { font-size: 12px; letter-spacing: 0.06em; color: #8c80b8; padding: 6px; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; margin-top: -6px; }
.ot-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; width: 100%; max-width: 320px; }
.ot-arrow { min-height: 64px; font-size: 30px; color: var(--lav); }
.ot-arrow:hover, .ot-arrow:focus-visible { color: var(--lav-hi); outline: none; }
.ot-step-body { height: 112px; min-width: 0; overflow: hidden; box-sizing: border-box; padding: 16px 8px; display: grid; align-content: center; gap: 8px; background: #1a1240; box-shadow: 0 0 0 2px var(--lav-lo); touch-action: pan-y; user-select: none; }
.ot-step-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(16px, 4.4vw, 19px); font-weight: 600; color: var(--ink); text-transform: lowercase; }
.ot-step-body span { font-size: 13px; line-height: 1.4; color: var(--ink-dim); height: 2.8em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ot-dots { display: flex; gap: 8px; justify-content: center; margin-top: -4px; }
.ot-dots i { width: 8px; height: 8px; background: #3b2d63; }
.ot-dots i.on { background: var(--lav); }

/* party list + ending cards */
.ot-partylist { list-style: none; display: grid; gap: 14px; width: 100%; text-align: left; }
.ot-partylist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.ot-partylist li.empty { display: block; text-align: center; color: var(--ink-dim); font-size: 14px; line-height: 1.45; }
.ot-partylist img { width: 44px; height: 44px; }
.ot-partylist b { display: block; font-size: 17px; color: var(--ink); }
.ot-partylist em { display: block; font-style: normal; font-size: 12px; color: var(--lav); margin-top: 2px; }
.ot-partylist span { display: block; font-size: 12px; line-height: 1.4; color: var(--ink-dim); margin-top: 3px; }
.ot-card h2.sm { font-size: 26px; }
.ot-log { list-style: none; display: grid; gap: 12px; width: 100%; text-align: left; }
.ot-log li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.ot-log li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 6px; height: 6px; background: var(--lav); transform: rotate(45deg); }
.ot-card .btns.one { grid-template-columns: 1fr; }
.ot-card h2.tbc { font-size: clamp(26px, 7.4vw, 38px); color: var(--ink); text-transform: lowercase; letter-spacing: 0.02em; line-height: 1.1; }
.ot-card .until { font-size: 16px; color: var(--lav); margin-top: -8px; }
@media (max-width: 639px) {
  .ot-setup-card { padding: 30px 20px 22px; gap: 16px; }
  .ot-stat { flex-direction: row; gap: 4px; font-size: 12px; }
}
@media (min-width: 760px) {
  .ot-day { font-size: 13px; left: 16px; top: 14px; }
  .ot-setup-card { width: min(100%, 440px); }
}
/* ship color picker */
.ot-preview { width: 110px; height: 150px; display: grid; place-items: center; margin: -4px 0; }
.ot-preview img { height: 100%; width: auto; animation: bob 2.2s steps(4) infinite; filter: drop-shadow(0 0 14px rgba(183, 148, 246, 0.25)); }
.ot-swatches { display: grid; grid-template-columns: repeat(4, 48px); gap: 16px; justify-content: center; }
.ot-swatch { width: 48px; height: 48px; background: linear-gradient(135deg, var(--sw2) 0 35%, var(--sw) 35% 100%); box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px #3b2d63; }
.ot-swatch:hover, .ot-swatch:focus-visible { box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--lav); outline: none; }
.ot-swatch.on { box-shadow: 0 0 0 2px var(--edge), 0 0 0 4px var(--ink), 0 0 16px var(--sw); }
.ot-colorname { min-height: 1.4em; text-transform: lowercase; margin-top: -6px; }
/* edition subtitle + star map (title screen) */
.ot-logo .ot-edition { display: block; margin-top: 0.28em; font-size: 0.34em; letter-spacing: 0.22em; text-shadow: 0 3px 0 var(--edge); }
.ot-map { position: relative; width: min(100%, 780px); aspect-ratio: 780 / 230; }
.ot-map.phone { width: min(100%, 360px); aspect-ratio: 360 / 330; margin-bottom: 14px; }
.ot-map.phone .ot-sun { width: 22px; }
.ot-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ot-sun { position: absolute; width: 34px; transform: translate(-50%, -50%); opacity: 0.85; filter: drop-shadow(0 0 12px rgba(247, 201, 72, 0.6)); }
.ot-map.phone .ot-sun { width: 30px; }
.ot-stop { position: absolute; width: var(--w); transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; min-width: 28px; }
.ot-stop > img:first-child { width: 100%; height: auto; }
.ot-stop.k-saturn > img:first-child, .ot-stop.k-star > img:first-child { width: 100%; }
.ot-stop .moonlet { position: absolute; width: 26%; right: -14%; top: -6%; }
.ot-stop .moonlet.far { width: 46%; right: -42%; top: 10%; }
.ot-stop .badge { position: absolute; width: 14px; height: 14px; left: 50%; bottom: -18px; transform: translateX(-50%); }
.ot-stop.locked { opacity: 0.5; filter: saturate(0.55); cursor: default; }
.ot-stop.open, .ot-stop.done { cursor: pointer; }
.ot-stop.open > img:first-child { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ac) 70%, transparent)); animation: glow 2.4s ease-in-out infinite; }
.ot-stop.sel::after { content: ""; position: absolute; inset: -16%; border: 2px dashed color-mix(in srgb, var(--ac, #b794f6) 80%, transparent); border-radius: 50%; animation: spin 14s linear infinite; }
.ot-stop.k-saturn.sel::after { inset: -4% 6%; }
.ot-stop.origin { pointer-events: none; }
.ot-stop.nope { animation: nope 0.4s steps(4); }
.ot-stop:focus-visible { outline: 2px solid var(--lav-hi); outline-offset: 6px; }
@keyframes glow { 50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--ac) 90%, transparent)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nope { 25% { transform: translate(-50%, -50%) translateX(-3px); } 75% { transform: translate(-50%, -50%) translateX(3px); } }
.ot-maplabel { min-height: 2.6em; display: grid; gap: 3px; justify-items: center; text-align: center; margin-top: -4px; }
.ot-maplabel b { font-size: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: lowercase; }
.ot-maplabel span { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); text-transform: lowercase; }
@media (max-width: 639px) { .ot-title { gap: 12px; } }
@media (max-width: 639px) and (max-height: 720px) {
  .ot-map.phone { width: min(100%, 300px); aspect-ratio: 360 / 270; }
  .ot-logo { font-size: 40px; }
}
