/* LRLR site.
   Layout: the LRLR logo alone on a black screen, the apps under it, then one blue band for BlueMap. */
:root {
  color-scheme: dark;
  /* Screen, from the logo */
  --bg: #050505;
  --panel: #0d0d0d;
  --line: #1f1f1f;
  --fg: #ededed;
  --fg-2: #a3a3a3;
  --fg-3: #7a7a7a;
  /* The four letters of the logo, in order: L R L R */
  --l1: #949494;
  --r1: #c5c505;
  --l2: #07d908;
  --r2: #bb0001;
  --slash: #45a531;
  --cursor: #51f32e;
  /* BlueMap band: the Play listing blue, with a deeper map panel */
  --bm: #0054d1;
  --bm-deep: #062c7a;
  --bm-ink: #ffffff;
  --bm-ink-2: #cfe0ff;
  --bm-dot: #8fb8ff;
  --focus: #e3e34a;
  /* Type */
  --font-mono: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-sans: "IBM Plex Sans KR", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --bar-h: 52px;
  --bar-bg: rgba(5, 5, 5, 0.86);
  --bar-ink: var(--fg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.75 var(--font-sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the strip above the sticky bar on phones with a notch. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--bar-bg);
}

::selection { background: var(--cursor); color: #050505; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

img { max-width: 100%; }

.mono { font-family: var(--font-mono); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */

.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.bar[data-tone="blue"] {
  --bar-bg: rgba(0, 84, 209, 0.9);
  --bar-ink: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bar-h);
}

/* The logo, small. On the home page it stays hidden until the big one has scrolled away. */
.brand {
  display: inline-flex;
  align-items: baseline;
  padding: 8px;
  margin-inline-start: -8px;
  font: 700 19px/1 var(--font-mono);
  letter-spacing: -0.045em;
  text-decoration: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.bar[data-brand="off"] .brand { opacity: 0; visibility: hidden; }
.brand .b-s { color: var(--slash); margin-right: 0.02em; }
.brand .b-l1 { color: var(--l1); }
.brand .b-r1 { color: var(--r1); }
.brand .b-l2 { color: var(--l2); }
.brand .b-r2 { color: var(--r2); }
.brand .b-c {
  display: inline-block;
  width: 0.56em;
  height: 0.98em;
  margin-left: 0.07em;
  background: var(--cursor);
  transform: translateY(0.17em);
}
.bar[data-tone="blue"] .brand > span { color: #ffffff; }
.bar[data-tone="blue"] .brand .b-c { background: #ffffff; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 500 15px/1 var(--font-sans);
}

.nav a, .lang {
  padding: 8px 10px;
  color: var(--bar-ink);
  text-decoration: none;
  opacity: 0.72;
  border-radius: 6px;
  transition: opacity 0.15s, background-color 0.15s;
}
.nav a:hover, .lang:hover { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.bar[data-tone="blue"] .nav a, .bar[data-tone="blue"] .lang { opacity: 0.86; }

/* Language menu: a native select, so every platform gives it a proper picker. */
.lang { position: relative; display: inline-flex; align-items: center; padding: 0; }
.lang select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 11em;
  padding: 8px 10px;
  padding-inline-end: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  cursor: pointer;
}
.lang::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.lang option { background: #111111; color: #ededed; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes blink { 50% { opacity: 0; } }

h1, h2, h3 { text-wrap: balance; }

/* ---------- Hero: the logo, nothing else ---------- */

.hero {
  display: grid;
  place-items: center;
  min-height: clamp(320px, 68vh, 720px);
  min-height: clamp(320px, 68svh, 720px);
  padding: 40px var(--gutter-r) 40px var(--gutter);
}

.wordmark {
  display: flex;
  align-items: baseline;
  /* The mask ends at the border box, so padding makes room for the glow, the slash's tail and the
     cursor's foot; the negative margin takes the room back out of the layout. */
  margin: -0.3em;
  padding: 0.3em;
  font: 700 clamp(76px, 23vw, 212px)/0.92 var(--font-mono);
  letter-spacing: -0.045em;
  user-select: none;
  /* Horizontal scanlines like the logo's. Whole-pixel periods: em-based stripes alias into thick bands. */
  --scan: repeating-linear-gradient(180deg, #000 0 3px, rgba(0, 0, 0, 0.6) 3px 4px);
  -webkit-mask-image: var(--scan);
  mask-image: var(--scan);
}
@media (min-width: 720px) {
  .wordmark { --scan: repeating-linear-gradient(180deg, #000 0 4px, rgba(0, 0, 0, 0.6) 4px 6px); }
}

.wordmark > span {
  display: inline-block;
  color: var(--c);
  text-shadow: 0 0 0.08em var(--g), 0 0 0.3em var(--g2);
}

.wm-slash { --c: var(--slash); --g: rgba(69, 165, 49, 0.55); --g2: rgba(69, 165, 49, 0.2); margin-right: 0.02em; }
.wm-l1 { --c: var(--l1); --g: rgba(148, 148, 148, 0.5); --g2: rgba(148, 148, 148, 0.18); }
.wm-r1 { --c: var(--r1); --g: rgba(197, 197, 5, 0.55); --g2: rgba(197, 197, 5, 0.2); }
.wm-l2 { --c: var(--l2); --g: rgba(7, 217, 8, 0.55); --g2: rgba(7, 217, 8, 0.2); }
.wm-r2 { --c: var(--r2); --g: rgba(230, 0, 2, 0.6); --g2: rgba(230, 0, 2, 0.25); }

.wm-cursor {
  width: 0.56em;
  height: 0.98em;
  margin-left: 0.07em;
  background: var(--cursor);
  box-shadow: 0 0 0.1em rgba(81, 243, 46, 0.65), 0 0 0.35em rgba(81, 243, 46, 0.25);
  transform: translateY(0.17em);
  animation: blink 1.06s steps(1, end) infinite;
}

.wordmark .step { animation: step 0.24s steps(2, end); }
@keyframes step { 0% { transform: translateY(-0.07em); } 100% { transform: none; } }

.wordmark .typing-hide { visibility: hidden; }

/* ---------- Apps: icons and names, like a home screen ---------- */

.apps { padding-bottom: clamp(80px, 11vw, 136px); }

.app-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 24px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.app img {
  /* Never squeeze an icon: keep it square at its set size. */
  flex: none;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
  width: 88px;
  height: 88px;
  border-radius: 24%;
  box-shadow: 0 10px 30px rgba(0, 84, 209, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app:hover img { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 84, 209, 0.45); }
.app:active img { transform: scale(0.97); }
.app { max-width: 190px; text-align: center; }
.app small { margin-top: -8px; color: var(--fg-2); font-size: 13px; font-weight: 400; line-height: 1.35; }

/* One endless strip that drifts sideways on its own. strip.js clones the list once and wraps the
   scroll position, so it never ends; touch, trackpad, Shift+wheel or a mouse drag move it by hand.
   Section labels sit between the tiles. */
.strip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
  outline: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; user-select: none; }
.strip.dragging a { pointer-events: none; }
.strip-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  margin: 0;
  padding: 12px 0 8px;
  list-style: none;
}
.strip-track > li { flex: none; display: flex; }
.strip-track .app { width: 172px; max-width: none; height: 100%; }
.strip-track .app img { -webkit-user-drag: none; }
.strip-label {
  align-items: center;
  padding-inline: 24px 0;
  margin-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
}
.strip-label p { display: flex; flex-direction: column; gap: 6px; margin: 0; width: 6.5em; color: var(--fg); font-size: 16px; font-weight: 600; line-height: 1.3; }


.kicker {
  margin: 0 0 16px;
  font: 500 13px/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- Workspace apps: a light band, like the apps themselves ---------- */

.work {
  --w-bg: #f3f5f9;
  --w-card: #ffffff;
  --w-ink: #121417;
  --w-ink-2: #4a5160;
  --w-line: #dde2ea;
  background: var(--w-bg);
  color: var(--w-ink);
  padding-block: clamp(88px, 11vw, 152px);
}
.work ::selection { background: var(--bm); color: #ffffff; }
.work :focus-visible { outline-color: var(--bm); }
.work .kicker { color: var(--bm); opacity: 1; }
.work-title {
  margin: 0 0 20px;
  max-width: 18em;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.work-desc { margin: 0 0 clamp(40px, 6vw, 64px); max-width: 44em; color: var(--w-ink-2); font-size: 18px; }

.wcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1000px) { .wcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wcards { grid-template-columns: minmax(0, 1fr); } }

.wcard {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--w-line);
  border-radius: 20px;
  background: var(--w-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
  scroll-margin-top: calc(var(--bar-h) + 16px);
}
.wcard-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.wcard-head img { width: 64px; height: 64px; border-radius: 24%; flex: none; box-shadow: 0 6px 18px rgba(0, 84, 209, 0.22); }
.wcard h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.chip {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6eefc;
  color: #0b4bb3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.wcard-tag { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.wcard-feats { margin: 0 0 24px; padding: 0; list-style: none; color: var(--w-ink-2); font-size: 15px; line-height: 1.6; }
.wcard-feats li { position: relative; padding-inline-start: 20px; margin: 8px 0; }
.wcard-feats li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: #f4b400; }
.wcard-price { margin: -8px 0 22px; color: var(--w-ink); font-size: 14px; font-weight: 600; }
.wcard-soon { margin: 0; color: var(--w-ink-2); font-size: 13.5px; line-height: 1.5; }
.wcard-cta { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.btn-mk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s;
}
.btn-mk:hover { background: #0047b3; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 84, 209, 0.3); }
.btn-mk svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { color: var(--bm); font-size: 15px; font-weight: 600; text-decoration: none; padding: 4px 2px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.soon {
  margin: 0;
  padding: 11px 16px;
  border: 1px dashed #b9c3d3;
  border-radius: 999px;
  color: var(--w-ink-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.bar[data-tone="light"] {
  --bar-bg: rgba(243, 245, 249, 0.9);
  --bar-ink: #121417;
  border-color: #dde2ea;
}
.bar[data-tone="light"] .nav a:hover, .bar[data-tone="light"] .lang:hover { background: rgba(0, 0, 0, 0.06); }
.bar[data-tone="light"] .brand .b-l1 { color: #6b6b6b; }
.bar[data-tone="light"] .brand .b-r1 { color: #9a9a00; }
.bar[data-tone="light"] .brand .b-l2 { color: #05a806; }

/* On phones the bar keeps only the language menu and the logo; the app list is right under the hero. */
@media (max-width: 560px) { .nav-link { display: none; } }

@media (max-width: 560px) {
  .strip-track .app { width: 124px; padding: 4px; gap: 10px; font-size: 14px; }
  .strip-track .app img { width: 64px; height: 64px; }
  .strip-track .app small { margin-top: -4px; font-size: 12px; }
  .strip-label { padding-inline: 18px 6px; margin-inline-start: 12px; }
  .strip-label p { width: 6em; font-size: 14px; }
}
.about .about-grid { margin-bottom: 40px; }

/* ---------- BlueMap band ---------- */

.band {
  position: relative;
  background: var(--bm);
  color: var(--bm-ink);
  padding-block: clamp(88px, 11vw, 152px) clamp(96px, 12vw, 168px);
}
.band :focus-visible { outline-color: #ffffff; }
.band ::selection { background: #ffffff; color: var(--bm); }

.bm-head {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  margin-bottom: 28px;
}

.bm-icon {
  width: clamp(72px, 9vw, 104px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: 0 10px 30px rgba(0, 20, 70, 0.35);
  flex: none;
}

.bm-name {
  margin: 0;
  font-size: clamp(46px, 8.4vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.bm-tag {
  max-width: 20em;
  white-space: pre-line;
  margin: 0 0 18px;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.bm-desc {
  max-width: 36em;
  margin: 0 0 36px;
  color: var(--bm-ink-2);
  font-size: clamp(17px, 1.8vw, 19px);
}

.bm-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: clamp(64px, 9vw, 112px);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--bm);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 20, 70, 0.3); }
.btn-play:active { transform: translateY(0); }
.btn-play svg { width: 18px; height: 18px; flex: none; }

.bm-facts { margin: 0; color: var(--bm-ink-2); font-size: 15px; }

/* ---------- Demo ---------- */

.sub-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.demo {
  border-radius: 18px;
  background: var(--bm-deep);
  box-shadow: 0 24px 60px rgba(0, 18, 60, 0.35);
  overflow: hidden;
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modes {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.modes button {
  min-width: 64px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bm-ink-2);
  font: 500 15px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.modes button:hover { color: #ffffff; }
.modes button[aria-selected="true"] { background: #ffffff; color: var(--bm); font-weight: 600; }

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--bm-ink-2);
  font-size: 14px;
}
.demo-status .led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--l2);
  box-shadow: 0 0 8px rgba(7, 217, 8, 0.8);
}
.demo-status[data-on="false"] .led { background: #50618a; box-shadow: none; }

.map {
  position: relative;
  aspect-ratio: 360 / 142;
  max-width: 100%;
  background: var(--bm-deep);
  touch-action: pan-y;
  cursor: crosshair;
  /* Visible so a pin near the top edge pokes out over the toolbar instead of being cut off;
     the card around it still clips the sides. */
  overflow: visible;
  outline-offset: -3px;
  -webkit-user-select: none;
  user-select: none;
}
.map.dragging { cursor: grabbing; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* CRT scanlines over the map only */
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 8, 30, 0.22) 3px 4px);
}

@media (max-width: 640px) {
  .map { aspect-ratio: 1 / 1.05; }
}

.pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 45px;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 6px rgba(0, 10, 40, 0.45));
  z-index: 2;
}
.pin.glitch-out, .mock-in.glitch-out { animation: glitchOut 0.22s steps(4, end) forwards; }
.pin.glitch-in, .mock-in.glitch-in { animation: glitchIn 0.32s steps(5, end); }

/* The running mock, drawn like the app's marker: a black disc with a white arrow that turns to
   the bearing (500 ms), a pulse on every position update (600 ms), scale and fade in or out
   (300 ms). The white ring and light pulse keep the black disc visible on the dark map. */
.mock {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}
.mock-in { position: absolute; inset: 0; }
.mock-in.enter { animation: mockIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.mock-in.leave { animation: mockOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes mockIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes mockOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0); } }

.mock-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bm-dot);
  opacity: 0;
}
.mock-pulse.go { animation: mockPulse 0.6s cubic-bezier(0, 0, 0.58, 1); }
@keyframes mockPulse { from { opacity: 0.4; transform: scale(0.5); } to { opacity: 0; transform: scale(1); } }

.mock-arrow {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(0, 10, 40, 0.45);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glitchOut {
  0% { opacity: 1; clip-path: inset(0 0 0 0); }
  25% { clip-path: inset(10% 0 55% 0); translate: -4px 0; }
  50% { clip-path: inset(50% 0 20% 0); translate: 5px 0; filter: drop-shadow(-3px 0 0 #ff2bd6) drop-shadow(3px 0 0 #2bf3ff); }
  75% { clip-path: inset(30% 0 60% 0); translate: -2px 0; opacity: 0.7; }
  100% { opacity: 0; clip-path: inset(48% 0 48% 0); }
}

@keyframes glitchIn {
  0% { opacity: 0; clip-path: inset(48% 0 48% 0); }
  20% { opacity: 1; clip-path: inset(20% 0 62% 0); translate: 4px 0; filter: drop-shadow(-3px 0 0 #ff2bd6) drop-shadow(3px 0 0 #2bf3ff); }
  40% { clip-path: inset(55% 0 10% 0); translate: -5px 0; }
  60% { clip-path: inset(0 0 40% 0); translate: 2px 0; }
  80% { clip-path: inset(0 0 0 0); translate: 0 0; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

.hud {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 3;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(3, 20, 60, 0.7);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.hud span { color: var(--bm-ink-2); }

.joy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  touch-action: none;
}
.joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 10, 40, 0.4);
  pointer-events: none;
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-hint { flex: 1 1 260px; min-width: 0; margin: 0; color: var(--bm-ink-2); font-size: 15px; line-height: 1.5; }

.demo-actions { display: flex; align-items: center; gap: 10px; }

.radar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.dbtn {
  min-width: 76px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: 600 15px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s;
}
.dbtn:hover { background: rgba(255, 255, 255, 0.2); }
.dbtn.primary { background: #ffffff; color: var(--bm); }
.dbtn.primary:hover { background: #e6efff; }
.dbtn:disabled { opacity: 0.4; cursor: default; }

.log {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 8, 30, 0.35);
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bm-ink-2);
  min-height: calc(14px * 1.7 * 3 + 26px);
}
.log li { white-space: pre-wrap; word-break: break-word; }
.log .ok { color: #8cf27a; }

.demo-note { margin: 16px 0 0; color: var(--bm-ink-2); font-size: 14px; max-width: 46em; }

/* ---------- Screens ---------- */

.screens { margin-top: clamp(64px, 9vw, 112px); }

.screens-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.screens-head .sub-title { margin: 0; }

.shots-nav { display: flex; gap: 8px; }
.shots-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.shots-nav svg { display: block; width: 18px; height: 18px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .shots-nav svg { transform: scaleX(-1); }
/* Arabic-script letters join; any letter-spacing pulls them apart. */
:is(:lang(ar), :lang(fa), :lang(ur)) :is(.bm-name, .bm-tag, .sub-title) { letter-spacing: 0; }
.shots-nav button:hover { background: rgba(255, 255, 255, 0.12); }
@media (hover: none) { .shots-nav { display: none; } }

.shots {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  margin: 24px 0 0;
  padding: 8px 0 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shots::-webkit-scrollbar { display: none; }

.shots li { flex: 0 0 clamp(196px, 23vw, 252px); scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1333;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 18, 60, 0.35);
}
.shots figcaption {
  margin-top: 14px;
  color: var(--bm-ink-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Features ---------- */

.feats { margin-top: clamp(80px, 11vw, 136px); }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 0 0 clamp(56px, 8vw, 88px);
  padding: 0;
  list-style: none;
}
.feat-grid:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }

.feat-grid li { padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.feat-grid b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.feat-grid span { display: block; color: var(--bm-ink-2); font-size: 15px; line-height: 1.65; }
.feat-grid code { color: #ffffff; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--fg-2); text-decoration: none; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

.foot-policy { flex-basis: 100%; }
.foot-policy strong { color: var(--fg); font-weight: 600; }
.legal { margin: 0; }

/* ---------- About ---------- */

/* Sits between the logo and the app list, centered like both of them. */
.about { padding-block: 0 clamp(72px, 9vw, 120px); text-align: center; }
.about .prompt { margin-inline: auto; text-align: start; }
.about .about-title { margin-inline: auto; max-width: 22em; }
.about .about-desc { margin-inline: auto; }
.about .kicker { color: var(--cursor); }
.about-title { margin: 0 0 20px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.about-desc { margin: 0 0 8px; max-width: 44em; color: var(--fg-3); font-size: 15px; }
.about-grid li { border-top-color: var(--line); }
.about-grid span { color: var(--fg-2); }
.about-contact { margin: 0; color: var(--fg-2); font-size: 16px; }
.about-contact a { color: var(--fg); text-underline-offset: 4px; }

.biz { flex-basis: 100%; margin: 8px 0 0; color: var(--fg-3); font-size: 12.5px; line-height: 1.7; word-break: keep-all; }
.biz a { color: var(--fg-2); text-underline-offset: 3px; }
.tm { flex-basis: 100%; margin: 4px 0 0; color: var(--fg-3); font-size: 12.5px; line-height: 1.6; }

/* The meme: someone typing "Build app. Make no mistakes." into an AI prompt box. */
.prompt { max-width: 560px; margin: 8px 0 36px; }
.prompt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #121212;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.prompt-text { flex: 1; margin: 0; min-width: 0; color: var(--fg); font: 500 17px/1.4 var(--font-mono); white-space: nowrap; overflow: hidden; }
.prompt-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--cursor); animation: blink 1s steps(1) infinite; }
.prompt-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  color: #050505;
}
.prompt-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .prompt-text { font-size: 14.5px; white-space: normal; } .prompt-box { padding-left: 16px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .prompt-caret { animation: none; } }

/* ---------- Document pages: privacy policy, 404 ---------- */

.doc {
  padding-block: clamp(48px, 8vw, 96px) clamp(72px, 10vw, 128px);
  font-size: 16px;
  line-height: 1.75;
}
.doc > * { max-width: 760px; }
.doc h1 { margin: 0 0 12px; font: 600 clamp(28px, 4.6vw, 40px)/1.3 var(--font-sans); letter-spacing: -0.01em; }
.doc h2 {
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font: 600 20px/1.4 var(--font-sans);
}
.doc p, .doc li { color: #d2d2d2; }
.doc p { margin: 12px 0; }
.doc ul { margin: 12px 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--fg); text-decoration-color: #5c5c5c; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font-family: var(--font-mono); font-size: 0.9em; color: var(--fg); }
.doc .meta { margin: 0 0 32px; color: var(--fg-3); font: 400 14px/1.6 var(--font-mono); }
.doc .scroll { overflow-x: auto; }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.doc th, .doc td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #d2d2d2; }
.doc th { background: var(--panel); color: var(--fg); font-weight: 600; }
.doc .ids td:first-child { color: var(--fg-3); }

.doc .doc-en { color: var(--fg-3); font-size: 15px; }

/* ---------- Effects layer ---------- */

.fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }

.foot-print {
  position: absolute;
  font: 700 18px/1 var(--font-mono);
  opacity: 0;
  animation: print 2.2s ease-out forwards;
}
@keyframes print { 0% { opacity: 0; } 8% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: min(560px, calc(100vw - 32px));
  translate: -50% 0;
  padding: 14px 18px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0b0b0b;
  color: var(--fg);
  font: 400 14px/1.6 var(--font-mono);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.2s ease-out;
}
.toast b { color: var(--cursor); font-weight: 600; }
@keyframes toastIn { from { opacity: 0; translate: -50% 8px; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wm-cursor { animation: none; }
  .pin.glitch-out, .pin.glitch-in, .wordmark .step { animation: none; }
  .mock-in.enter, .mock-in.leave, .mock-in.glitch-out, .mock-in.glitch-in, .mock-pulse.go { animation: none; }
  .mock-arrow, .brand, .app img { transition: none; }
  .toast { animation: none; }
}

/* /legal/: every policy in one place. */
.doc .policy-list { padding-left: 0; list-style: none; }
.doc .policy-list li { margin: 10px 0; }
.doc .policy-list b { display: inline-block; min-width: 13em; color: var(--fg); font-weight: 600; }
.doc .ko { word-break: keep-all; }

/* 404 page translated by worker/index.js: Traditional Chinese uses the self-hosted Noto Sans TC. */
.doc:lang(zh-Hant) { font-family: "Noto Sans TC", var(--font-sans); }
.doc:lang(zh-Hant) h1 { font-family: "Noto Sans TC", var(--font-sans); }

/* ---------- Hackathons: contest entries, on the page's own dark ground ---------- */

.hack { padding-block: clamp(88px, 11vw, 152px); border-top: 1px solid var(--line); }
.hack .kicker { color: var(--hk); opacity: 1; }
.hack { --hk: #ff9900; }
.hack-title {
  margin: 0 0 20px;
  max-width: 18em;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.hack-desc { margin: 0 0 clamp(40px, 6vw, 64px); max-width: 44em; color: var(--fg-2, #b4b4b4); font-size: 18px; }
.hcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  scroll-margin-top: calc(var(--bar-h) + 16px);
}
@media (max-width: 900px) { .hcard { grid-template-columns: minmax(0, 1fr); } .hcard-shot { order: -1; } }
.hcard h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 700; line-height: 1.2; }
.hcard-event { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--hk); font: 500 13.5px/1.5 var(--font-mono); }
.hcard-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--hk); box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.18); }
.hcard-tag { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.55; }
.hcard-feats { margin: 0 0 26px; padding: 0; list-style: none; color: var(--fg-2, #b4b4b4); font-size: 15px; line-height: 1.6; }
.hcard-feats li { position: relative; padding-inline-start: 20px; margin: 8px 0; }
.hcard-feats li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--hk); }
.hcard-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hcard-cta .btn-ghost { color: var(--fg); opacity: 0.8; }
.hcard-cta .btn-ghost:hover { opacity: 1; }
.btn-hk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--hk);
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s;
}
.btn-hk:hover { background: #ffad33; transform: translateY(-1px); }
.hcard-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #ffffff; }
.hcard-shot img { display: block; width: 100%; height: auto; }

/* Write-up pages under /hackathons/ */
.doc figure { margin: 24px 0; }
.doc figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #ffffff; }
.doc figcaption { margin-top: 8px; color: var(--fg-3); font-size: 14px; }
.doc .facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.doc .facts li { margin: 0; color: var(--fg-3); font: 400 14px/1.6 var(--font-mono); }
.doc .facts b { color: var(--fg); font-weight: 500; }
.doc .links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0 8px; }
.doc .links a { color: #111111; background: #ff9900; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.doc .links a.alt { color: var(--fg); background: transparent; border: 1px solid var(--line); }
.strip-label .group-kicker { color: var(--fg-3); font: 500 11.5px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* Click-to-play video poster (assets/yt.js swaps in the YouTube player on click). */
.yt, .yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.yt {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2b3a52 0%, #172235 55%, #0f1724 100%);
  color: #ffffff;
  text-decoration: none;
}
.yt-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; }
.yt-kicker { color: #ffb347; font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.yt-title { font-size: clamp(22px, 3.4vw, 34px); font-weight: 700; line-height: 1.2; }
.yt-sub { max-width: 30em; color: #b9c4d6; font-size: clamp(12px, 1.4vw, 14px); line-height: 1.5; }
.yt-btn { display: grid; place-items: center; width: 68px; height: 48px; margin-top: 10px; border-radius: 14px; background: #ff0033; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.15s, background-color 0.15s; }
.yt-btn svg { width: 26px; height: 26px; fill: #ffffff; }
.yt:hover .yt-btn, .yt:focus-visible .yt-btn { transform: scale(1.06); background: #e6002e; }
.hcard-shot .yt, .hcard-shot .yt-frame { border-radius: 0; }
.hcard-shot { background: #0f1724; }
.doc .video { margin: 24px 0 8px; }
.doc .video .yt { color: #ffffff; text-decoration: none; }
.doc .yt-note { margin: 0 0 8px; color: var(--fg-3); font-size: 14px; }
