@font-face {
  font-family: "Chanj Space";
  src: url("assets/fonts/space-grotesk-bold.ttf?v=9f8bd6584a5e") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
html.chanj-loading-lock { overflow: hidden; }
.chanj-loader:focus { outline: none; }
.chanj-loader, .chanj-loader-dock {
  --cl-bg: #751b3b;
  --cl-ink: #f7efe5;
  --cl-muted: #dfb7bf;
  --cl-line: #f7efe52b;
  --cl-accent: #ffb3c2;
  box-sizing: border-box;
  color: var(--cl-ink);
  font-family: Avenir, "Avenir Next", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.chanj-loader *, .chanj-loader-dock * { box-sizing: border-box; }
.chanj-loader[hidden], .chanj-loader-dock[hidden], .chanj-loader [hidden] { display: none !important; }
.chanj-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-width: 280px;
  padding: clamp(18px, 3.4vw, 48px);
  overflow: auto;
  isolation: isolate;
  background: transparent;
  opacity: 1;

}

.chanj-loader::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--cl-bg); opacity: 1; pointer-events: none; will-change: opacity; }
.cl-top, .cl-bottom { position: relative; z-index: 8; flex: none; opacity: 1; transition: opacity 160ms; }
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.cl-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 "Chanj Space", Arial, sans-serif; letter-spacing: -.035em; }
.cl-brand-mark { display: block; width: 32px; height: 32px; }
.cl-brand-note { margin-left: 18px; color: var(--cl-muted); font: 500 9px/1.5 Avenir, Arial, sans-serif; letter-spacing: .17em; }
.chanj-loader button, .chanj-loader-dock {
  appearance: none;
  border: 1px solid var(--cl-line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--cl-ink);
  background: transparent;
  font: 500 12px/1.2 Avenir, Arial, sans-serif;
  transition: background 160ms, border-color 160ms;
}
.chanj-loader button { min-height: 44px; padding: 10px 17px; }
.chanj-loader button span { margin-left: 12px; font-size: 16px; }
.chanj-loader button:hover, .chanj-loader-dock:hover { background: #ffffff10; border-color: var(--cl-muted); }
.chanj-loader button:focus-visible, .chanj-loader-dock:focus-visible { outline: 2px solid var(--cl-ink); outline-offset: 4px; }
.cl-stage { position: relative; flex: 1 0 330px; min-height: 330px; overflow: hidden; }
.cl-stage-label { position: absolute; top: 25px; left: 0; width: 100%; margin: 0; text-align: center; font-size: 9px; line-height: 1.5; font-weight: 500; letter-spacing: .23em; color: var(--cl-muted); }
.cl-orbit-line {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--cl-orbit-width, 580px);
  height: var(--cl-orbit-height, 280px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--cl-line);
  border-radius: 50%;
  opacity: .65;
  transition: opacity 400ms;
}
.cl-orbit-line::after { content: ""; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--cl-accent); }
.cl-readout {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  transition: opacity 300ms, filter 400ms, transform 600ms cubic-bezier(.2,.65,.15,1);
}
.cl-progress { display: inline-flex; justify-content: center; align-items: baseline; gap: 8px; font-family: "Chanj Space", Arial, sans-serif; font-weight: 700; }
.cl-number { font-size: clamp(112px, 15.3vw, 220px); font-variant-numeric: tabular-nums; line-height: .92; letter-spacing: -.075em; }
.cl-percent-unit { margin-left: 7px; font-size: clamp(22px, 3vw, 38px); line-height: 1; letter-spacing: -.06em; }
.cl-progress-label { margin: 19px 0 0; color: var(--cl-muted); font-size: 9px; line-height: 1.5; letter-spacing: .22em; font-weight: 500; }
.cl-fly { position: absolute; left: 50%; top: 50%; z-index: 3; width: 82px; height: 69px; pointer-events: none; will-change: transform; filter: drop-shadow(0 4px 5px #0007); }
.cl-fly > svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform 80ms, opacity 100ms; }
.cl-fly-wing { transform-box: fill-box; transform-origin: 90% 90%; animation: cl-wing-a 70ms linear infinite alternate; }
.cl-fly-wing-b { transform-origin: 10% 90%; animation-name: cl-wing-b; }
@keyframes cl-wing-a { to { transform: rotate(12deg) scaleY(.55); } }
@keyframes cl-wing-b { to { transform: rotate(-12deg) scaleY(.55); } }
.cl-strike-origin {
  position: absolute;
  left: 50%; top: calc(50% + var(--cl-strike-y, -45px));
  z-index: 5;
  width: clamp(440px, 70vw, 980px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
}
.cl-paper-motion {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform-origin: 13% 15%;
  transform: translate(42%, 40%) rotate(18deg);
  --cl-read-pose: translate(-13%, -15%) rotate(0deg);
  will-change: transform, opacity;
}
.cl-hand, .cl-paper-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cl-hand { opacity: 0; filter: drop-shadow(0 18px 22px #0003); }
.chanj-loader[data-art="ready"] .cl-hand { opacity: 1; }
.chanj-loader[data-art="ready"] .cl-paper-fallback { visibility: hidden; }
.chanj-loader[data-cinema="aim"] .cl-paper-motion { opacity: 1; transform: translate(20%, 22%) rotate(12deg); transition: transform 260ms cubic-bezier(.22,.68,.15,1), opacity 180ms; }
.chanj-loader[data-cinema="strike"] .cl-paper-motion { opacity: 1; animation: cl-swat 380ms cubic-bezier(.65,0,.9,.38) both; }
@keyframes cl-swat { from { transform: translate(20%, 22%) rotate(12deg); } to { transform: translate(-13%, -15%) rotate(0deg); } }
.chanj-loader[data-cinema="impact"] .cl-paper-motion { opacity: 1; transform: translate(-13%, -15%) rotate(0deg); }
.cl-splash { position: absolute; top: calc(50% + var(--cl-strike-y, -45px)); left: 50%; z-index: 4; width: clamp(170px, 22vw, 290px); transform: translate(-50%, -50%) scale(.05); opacity: 0; color: var(--cl-accent); pointer-events: none; }
.cl-splash > svg { display: block; width: 100%; fill: currentColor; }
.chanj-loader[data-cinema="impact"] .cl-splash { animation: cl-ink 220ms cubic-bezier(.2,.75,.18,1) both; }
@keyframes cl-ink { 0% { transform: translate(-50%, -50%) scale(.1); opacity: .8; } 24% { transform: translate(-50%, -50%) scale(1.12); opacity: .95; } 100% { transform: translate(-50%, -50%) scale(1); opacity: .18; } }
.chanj-loader[data-cinema="impact"] .cl-fly > svg { opacity: 0; transform: scale(1.35, .15); }
.chanj-loader[data-cinema="impact"] .cl-fly-wing, .chanj-loader[data-state="error"] .cl-fly-wing { animation: none; }
.chanj-loader[data-cinema="aim"] .cl-orbit-line, .chanj-loader[data-cinema="strike"] .cl-orbit-line, .chanj-loader[data-cinema="impact"] .cl-orbit-line { opacity: 0; }
.chanj-loader[data-counter="done"] .cl-readout { opacity: 0; visibility: hidden; transform: translate(-50%, -53%) scale(.96); transition: opacity 180ms, transform 240ms, visibility 0s 180ms; }
.chanj-loader[data-cinema="waiting"] .cl-paper-motion { opacity: 1; transform: var(--cl-read-pose); }
.chanj-loader[data-cinema="welcome"] .cl-paper-motion { animation: cl-paper-exit 360ms cubic-bezier(.22,.55,.3,1) both; }
@keyframes cl-paper-exit { from { opacity: 1; transform: var(--cl-read-pose); } to { opacity: 0; transform: translate(20%, 34%) rotate(20deg); } }
/* The reveal is typography alone; all loader chrome disappears for this final beat. */
.cl-welcome {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 70px);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: scale(.88);
  will-change: transform, opacity;
}
.cl-welcome p { width: 100%; margin: 0; font: 700 clamp(60px, 8.5vw, 152px)/.98 "Chanj Space", Arial, sans-serif; letter-spacing: -.065em; }
.cl-welcome-lead, .cl-welcome strong { display: block; font-weight: 700; }
.chanj-loader[data-cinema="welcome"] { overflow: hidden; }
.chanj-loader[data-cinema="welcome"]::before { animation: cl-world-reveal 1040ms cubic-bezier(.22,.55,.2,1) both; }
.chanj-loader[data-cinema="welcome"] .cl-welcome { animation: cl-welcome-forward 1040ms cubic-bezier(.18,.55,.25,1) both; }
.chanj-loader[data-cinema="welcome"] .cl-top,
.chanj-loader[data-cinema="welcome"] .cl-bottom { opacity: 0; visibility: hidden; transition: opacity 160ms, visibility 0s 160ms; }
.chanj-loader[data-cinema="welcome"] .cl-stage > :not(.cl-welcome):not(.cl-strike-origin) { visibility: hidden; }
@keyframes cl-world-reveal { 0%, 24% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cl-welcome-forward {
  0%, 8% { opacity: 0; transform: scale(.9); }
  33% { opacity: 1; transform: scale(.97); }
  70% { opacity: 1; transform: scale(1.025); }
  100% { opacity: 0; transform: scale(1.2); }
}
.cl-preparing { display: none; position: absolute; top: 24px; left: 50%; z-index: 6; width: 100%; margin: 0; transform: translateX(-50%); text-align: center; color: var(--cl-muted); font: 500 11px/1.6 Avenir, Arial, sans-serif; }
.cl-busy-dot { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--cl-accent); animation: cl-busy 1300ms ease-in-out infinite alternate; }
@keyframes cl-busy { to { opacity: .25; } }
.chanj-loader[data-cinema="waiting"] .cl-preparing { display: block; }
.chanj-loader[data-cinema="waiting"] .cl-stage-label { visibility: hidden; }
.chanj-loader[data-cinema="waiting"] .cl-fly,
.chanj-loader[data-cinema="welcome"] .cl-fly,
.chanj-loader[data-cinema="waiting"] .cl-orbit-line,
.chanj-loader[data-cinema="welcome"] .cl-orbit-line { display: none; }
.chanj-loader[data-cinema="waiting"] .cl-splash,
.chanj-loader[data-cinema="welcome"] .cl-splash { opacity: .06; transform: translate(-50%, -50%) scale(1); }
.chanj-loader[data-cinema="welcome"] .cl-stage-label { opacity: 0; transition: opacity 240ms; }
.cl-illustration { position: absolute; bottom: 18px; left: 0; width: 100%; margin: 0; color: var(--cl-muted); text-align: center; font-size: 9px; line-height: 1.5; opacity: .7; }
.cl-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 26px; align-items: end; border-top: 1px solid var(--cl-line); padding-top: 23px; }
.cl-copy h2 { margin: 0 0 14px; font: 700 clamp(18px, 2.3vw, 27px)/1.15 "Chanj Space", Arial, sans-serif; letter-spacing: -.035em; }
.cl-status { display: flex; align-items: flex-start; gap: 9px; }
.cl-status-mark { flex: none; width: 5px; height: 5px; border-radius: 50%; margin-top: 5px; background: var(--cl-accent); }
.cl-phase { color: var(--cl-muted); margin: 0 0 4px; font-size: 8px; line-height: 1.5; letter-spacing: .18em; }
.cl-detail { max-width: 580px; margin: 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.cl-time { display: grid; justify-items: end; gap: 7px; padding-bottom: 1px; }
.cl-time > span { color: var(--cl-muted); font-size: 8px; line-height: 1; letter-spacing: .18em; }
.cl-time output { font: 700 20px/1 "Chanj Space", Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.chanj-loader[data-mode="simple"] .cl-fly, .chanj-loader[data-mode="simple"] .cl-strike-origin, .chanj-loader[data-mode="simple"] .cl-splash, .chanj-loader[data-mode="simple"] .cl-orbit-line, .chanj-loader[data-mode="simple"] .cl-illustration { display: none; }
.chanj-loader[data-mode="simple"][data-counter="done"] .cl-readout { opacity: 0; visibility: hidden; transition: none; }
.chanj-loader[data-state="error"] .cl-percent-unit { visibility: hidden; }
.chanj-loader[data-state="error"] .cl-fly { opacity: .3; }
.chanj-loader[data-state="error"] .cl-readout { opacity: .4; }
.chanj-loader-dock { position: fixed; bottom: 18px; left: 18px; z-index: 2147483001; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 36px); min-height: 44px; padding: 12px 16px; background: var(--cl-bg); box-shadow: 0 6px 30px #0005; font-size: 11px; }
.cl-dock-dot { flex: none; width: 6px; height: 6px; background: var(--cl-accent); border-radius: 50%; }
.cl-dock-time { margin-left: 4px; font-variant-numeric: tabular-nums; color: var(--cl-muted); }
.chanj-loader[data-motion="reduced"] .cl-fly-wing { animation: none; }
.chanj-loader[data-motion="reduced"] .cl-fly { transform: translate(-50%, -50%) translate(0, var(--cl-strike-y, -45px)) !important; }
.chanj-loader[data-motion="reduced"] .cl-strike-origin { display: none; }
.chanj-loader[data-motion="reduced"] .cl-orbit-line { opacity: .35; }
.chanj-loader[data-motion="reduced"][data-cinema="impact"] .cl-splash { animation: none; opacity: .18; transform: translate(-50%, -50%); }
.chanj-loader[data-motion="reduced"][data-cinema="welcome"]::before { animation: none; }
.chanj-loader[data-motion="reduced"][data-cinema="welcome"] .cl-welcome { animation: none; opacity: 1; transform: none; filter: none; }
.chanj-loader[data-motion="reduced"] .cl-busy-dot { animation: none; }
.chanj-loader[data-motion="reduced"] .cl-readout, .chanj-loader[data-motion="reduced"] .cl-fly > svg { transition: none; }
@media (max-width: 600px) {
  .chanj-loader { padding: 18px; }
  .cl-brand-note { display: none; }
  .cl-brand { font-size: 16px; gap: 7px; }
  .cl-brand-mark { width: 28px; height: 28px; }
  .chanj-loader button { padding: 10px 13px; font-size: 11px; }
  .cl-stage { min-height: 280px; flex-basis: 280px; }
  .cl-stage-label { top: 22px; font-size: 8px; letter-spacing: .15em; }
  .cl-number { font-size: clamp(110px, 29vw, 172px); }
  .cl-percent-unit { font-size: 24px; margin-left: 2px; }
  .cl-progress { gap: 5px; }
  .cl-progress-label { font-size: 8px; letter-spacing: .17em; margin-top: 16px; }
  .cl-fly { width: 66px; height: 55px; }
  .cl-illustration { bottom: 14px; font-size: 8px; }
  .cl-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; padding-top: 18px; }
  .cl-copy { grid-column: 1; grid-row: 1; }
  .cl-copy h2 { max-width: 200px; margin-bottom: 11px; font-size: 20px; }
  .cl-detail { font-size: 10px; }
  .cl-time { grid-column: 2; grid-row: 1; }
  .cl-time output { font-size: 18px; }
  .cl-actions { grid-column: 1 / -1; }
  .cl-actions:has(.cl-retry[hidden]) { display: none; }
  .cl-paper-motion { --cl-read-pose: translate(-28%, -19%) rotate(14deg); }
  .chanj-loader[data-cinema="impact"] .cl-paper-motion { animation: cl-paper-reading 240ms cubic-bezier(.18,.65,.2,1) both; }
  @keyframes cl-paper-reading {
    from { transform: translate(-13%, -15%) rotate(0deg); }
    to { transform: var(--cl-read-pose); }
  }
  .cl-welcome { padding: 16px; }
  .cl-welcome p { font-size: clamp(43px, 12vw, 70px); line-height: 1; }
  .cl-welcome-lead { font-size: .7em; margin-bottom: .18em; }
  .cl-welcome strong span { display: block; }
  .cl-preparing { max-width: 205px; font-size: 10px; }
}
@media (max-height: 520px) and (min-width: 601px) {
  .chanj-loader { padding: 14px 24px; }
  .cl-stage { min-height: 200px; flex-basis: 200px; }
  .cl-stage-label { top: 8px; }
  .cl-number { font-size: 120px; }
  .cl-progress-label { margin-top: 7px; }
  .cl-fly { width: 64px; height: 54px; }
  .cl-illustration { bottom: 5px; }
  .cl-bottom { padding-top: 12px; }
  .cl-copy h2 { margin-bottom: 5px; font-size: 18px; }
  .cl-welcome { padding: 18px; }
  .cl-welcome p { font-size: min(8.5vw, 21vh); }
  .cl-status { align-items: center; }
  .cl-phase { display: inline; margin-right: 7px; }
  .cl-detail { display: inline; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .chanj-loader, .chanj-loader::before, .chanj-loader *, .chanj-loader *::after { animation: none !important; transition: none !important; }
  .cl-strike-origin { display: none; }
}
