/* ============================================================
   STUDENT LOGIN — "Campus Journey"
   One-screen login: a floating isometric campus walks the student
   journey (left) beside the sign-in card (right).
   Day palette by default, night palette when the device prefers dark.
   Every class is prefixed cj- so the portal's global styles never collide.
   ============================================================ */

@property --h { syntax: '<length>'; inherits: true; initial-value: 0px; }

.cj-app {
  --cj-ink: #162038; --cj-muted: #59647c; --cj-line: rgba(22, 32, 56, .12);
  --cj-panel: rgba(255, 255, 255, .94); --cj-panel-solid: #ffffff; --cj-field: #f4f6fb;
  --cj-accent: #4f46e5; --cj-accent-hover: #4338ca; --cj-accent-ink: #ffffff; --cj-accent-soft: rgba(79, 70, 229, .13);
  --cj-danger: #c0362c; --cj-danger-soft: rgba(192, 54, 44, .1);
  --cj-sky-top: #4aa8ff; --cj-sky-mid: #a3d8ff; --cj-sky-low: #ffe6c2; --cj-sky-blush: rgba(255, 170, 196, .45);
  --cj-orb: #ffd84a; --cj-orb-glow: rgba(255, 216, 74, .5); --cj-stars: 0; --cj-cloud: rgba(255, 255, 255, .95);
  --cj-grass: #8fd46f; --cj-grass-2: #83ca64; --cj-rim: #5fb04a;
  --cj-soil: #d08e4d; --cj-soil-2: #b5733c; --cj-soil-3: #985d2e; --cj-rock: #8a5a33; --cj-rock-2: #6f4527;
  --cj-road: #fff5da; --cj-road-edge: #efd9a6; --cj-dash: #ffbd1a;
  --cj-plaza: #f7f2e7; --cj-plaza-line: #ebe1cc;
  --cj-win: #bfe6ff; --cj-night: #0b1433; --cj-nightmix: 0%; --cj-lamp: 0;
  --cj-chip-bg: #ffffff; --cj-chip-ink: #162038; --cj-shadow: rgba(22, 32, 56, .24);
  --cj-water: #3fb2f2; --cj-water-2: #9be0ff;
  --cj-tip-bg: #fff4c7; --cj-tip-ink: #5c4300;
  --cj-font-display: 'Baloo Da 2', 'Inter', system-ui, sans-serif;
  --cj-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Bengali', sans-serif;
}

@media (prefers-color-scheme: dark) {
  .cj-app {
    --cj-ink: #eef1fb; --cj-muted: #a7afc6; --cj-line: rgba(255, 255, 255, .12);
    --cj-panel: rgba(17, 22, 48, .93); --cj-panel-solid: #121833; --cj-field: #1a2142;
    --cj-accent: #8b93ff; --cj-accent-hover: #a2a8ff; --cj-accent-ink: #0d1030; --cj-accent-soft: rgba(139, 147, 255, .16);
    --cj-danger: #ff8a80; --cj-danger-soft: rgba(255, 138, 128, .12);
    --cj-sky-top: #050b21; --cj-sky-mid: #111b44; --cj-sky-low: #2a356b; --cj-sky-blush: rgba(124, 92, 214, .28);
    --cj-orb: #f4f1dc; --cj-orb-glow: rgba(244, 241, 220, .2); --cj-stars: 1; --cj-cloud: rgba(255, 255, 255, .08);
    --cj-grass: #2f6f43; --cj-grass-2: #2a663d; --cj-rim: #3d8452;
    --cj-soil: #6a4529; --cj-soil-2: #573820; --cj-soil-3: #472d1a; --cj-rock: #3d2a1c; --cj-rock-2: #2c1e14;
    --cj-road: #3a4260; --cj-road-edge: #4a5379; --cj-dash: #e0b53a;
    --cj-plaza: #2a3252; --cj-plaza-line: #343d61;
    --cj-win: #ffd66b; --cj-nightmix: 42%; --cj-lamp: 1;
    --cj-chip-bg: #1b2348; --cj-chip-ink: #eef1fb; --cj-shadow: rgba(0, 0, 0, .5);
    --cj-water: #2a6cae; --cj-water-2: #4f9be0;
    --cj-tip-bg: rgba(255, 214, 107, .14); --cj-tip-ink: #ffe5a3;
    color-scheme: dark;
  }
}

/* ── frame ─────────────────────────────────────────────── */
body:has(.cj-app) { background: #a3d8ff; padding-bottom: 0; }
@media (prefers-color-scheme: dark) { body:has(.cj-app) { background: #111b44; } }

.cj-app {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100dvh; min-height: 620px;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 420px); gap: 0 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background:
    radial-gradient(120% 45% at 30% 100%, var(--cj-sky-blush), transparent 70%),
    linear-gradient(180deg, var(--cj-sky-top) 0%, var(--cj-sky-mid) 52%, var(--cj-sky-low) 100%);
  color: var(--cj-ink); font-family: var(--cj-font-body); font-size: 15px; line-height: 1.5;
}
/* :where() keeps these resets at element weight: they beat the portal's global h1/button rules
   (loaded earlier) but never the cj- component classes below */
.cj-app *, .cj-app *::before, .cj-app *::after { box-sizing: border-box; }
:where(.cj-app) h1, :where(.cj-app) h2, :where(.cj-app) p { margin: 0; color: inherit; letter-spacing: normal; }
:where(.cj-app) h1, :where(.cj-app) h2 { font-family: var(--cj-font-display); line-height: 1.1; text-wrap: balance; }
:where(.cj-app) button { font: inherit; color: inherit; min-width: 0; min-height: 0; }
:where(.cj-app) a { text-decoration: none; }
.cj-app :focus-visible { outline: 3px solid var(--cj-accent); outline-offset: 2px; }
.custom-alert { z-index: 60; }

/* ── sky ───────────────────────────────────────────────── */
.cj-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cj-sky::before {
  content: ""; position: absolute; inset: 0; opacity: var(--cj-stars);
  background-image:
    radial-gradient(1.6px 1.6px at 14px 22px, #fff 50%, transparent 55%),
    radial-gradient(1.1px 1.1px at 80px 96px, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 150px 40px, #dfe8ff 50%, transparent 55%),
    radial-gradient(1px 1px at 200px 150px, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 110px 170px, #ffe9b8 50%, transparent 55%);
  background-size: 230px 190px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 75%); mask-image: linear-gradient(#000 35%, transparent 75%);
}
.cj-orb { position: absolute; top: 12%; left: 47%; width: 78px; height: 78px; border-radius: 50%; background: var(--cj-orb); box-shadow: 0 0 0 14px var(--cj-orb-glow), 0 0 80px 28px var(--cj-orb-glow); }
.cj-cloud { position: absolute; left: 0; width: var(--w, 120px); height: calc(var(--w, 120px) * .28); border-radius: 999px; background: var(--cj-cloud); animation: cj-drift var(--t, 90s) linear infinite; animation-delay: var(--d, 0s); }
.cj-cloud::before, .cj-cloud::after { content: ""; position: absolute; background: var(--cj-cloud); border-radius: 50%; }
.cj-cloud::before { width: 44%; height: 150%; left: 16%; bottom: 25%; }
.cj-cloud::after { width: 32%; height: 115%; left: 50%; bottom: 30%; }
.cj-airship { position: absolute; top: 17%; left: 6%; width: 64px; animation: cj-sail 38s ease-in-out infinite alternate; }
.cj-airship svg { display: block; width: 100%; height: auto; animation: cj-bob 5s ease-in-out infinite; }

/* ── columns ───────────────────────────────────────────── */
.cj-left { position: relative; min-width: 0; height: 100%; z-index: 1; }
.cj-right { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-block: 18px; min-height: 0; overflow-y: auto; scrollbar-width: none; }

/* ── top bar: brand + journey stepper ──────────────────── */
.cj-topbar { position: absolute; top: 14px; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; pointer-events: none; }
.cj-topbar > * { pointer-events: auto; }
.cj-brand { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 6px 16px 6px 6px; border-radius: 18px; background: var(--cj-panel); box-shadow: 0 8px 24px -14px var(--cj-shadow); }
.cj-logo { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; overflow: hidden; background: conic-gradient(from 200deg, #ff6b57, #ff9a1f, #ffc928, #22c55e, #2f8cff, #8b5cf6, #ff6b57); color: #fff; }
.cj-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cj-logo svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.cj-brand-name { font: 700 17px/1.1 var(--cj-font-display); overflow-wrap: anywhere; }
.cj-brand-sub { font-size: 12px; color: var(--cj-muted); }

.cj-stepper { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; background: var(--cj-panel); box-shadow: 0 8px 24px -14px var(--cj-shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.cj-grp { display: flex; gap: 5px; }
.cj-sep { flex: none; width: 1px; height: 22px; background: var(--cj-line); margin: 0 4px; }
.cj-dot { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid var(--c); background: var(--t); color: var(--d); font: 800 15px/1 var(--cj-font-display); display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.cj-dot img { width: 18px; height: 18px; display: block; }
.cj-dot:hover { transform: translateY(-2px); }
.cj-dot[aria-pressed="true"] { background: var(--d); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 3px var(--cj-panel-solid), 0 0 0 5px var(--c); }

/* ── scene ─────────────────────────────────────────────── */
.cj-scene { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cj-scene.is-dragging { cursor: grabbing; }
.cj-stage { position: absolute; left: 0; top: 0; width: 860px; height: 600px; transform-origin: 0 0; perspective: 2400px; perspective-origin: 50% 42%; --rx: 58deg; --rz: -45deg; }
.cj-glow { position: absolute; left: 170px; top: 560px; width: 520px; height: 56px; border-radius: 50%; background: radial-gradient(closest-side, var(--cj-shadow), transparent); animation: cj-glow 7s ease-in-out infinite; }
.cj-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: cj-float 7s ease-in-out infinite; }
/* pushed back in depth (and scaled up to cancel the perspective) so the island always draws in front of it */
.cj-rock { position: absolute; left: 0; top: 0; width: 860px; height: 600px; overflow: visible; transform-origin: 430px 252px; transform: translateZ(-200px) scale(1.0833); }
.cj-rock .r1 { fill: var(--cj-rock); }
.cj-rock .r2 { fill: var(--cj-rock-2); }
.cj-rock .r3 { fill: var(--cj-soil-3); }
.cj-pebble { animation: cj-bob 4.5s ease-in-out infinite; transform-box: fill-box; }
.cj-pebble.p2 { animation-delay: -2s; }

.cj-world {
  position: absolute; left: 142px; top: 24px; width: 576px; height: 576px; border-radius: 8px;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz));
  background-color: var(--cj-grass);
  background-image: conic-gradient(var(--cj-grass-2) 25%, transparent 0 50%, var(--cj-grass-2) 0 75%, transparent 0);
  background-size: 64px 64px;
  box-shadow: inset 0 0 0 4px var(--cj-rim);
}
.cj-isl-s, .cj-isl-w { position: absolute; }
.cj-isl-s { left: 0; top: 100%; width: 100%; height: 44px; transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(180deg, var(--cj-rim) 0 9px, var(--cj-soil) 9px 22px, var(--cj-soil-2) 22px 34px, var(--cj-soil-3) 34px); }
.cj-isl-w { top: 0; right: 100%; width: 44px; height: 100%; transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(270deg, var(--cj-rim) 0 9px, var(--cj-soil-2) 9px 22px, var(--cj-soil-3) 22px 34px, var(--cj-rock) 34px); }

/* flat things painted on the ground */
.cj-flat { position: absolute; transform: translateZ(1px); }
.cj-plaza { left: 166.4px; top: 166.4px; width: 256px; height: 256px; border-radius: 10px; background-color: var(--cj-plaza); background-image: linear-gradient(var(--cj-plaza-line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--cj-plaza-line) 1.5px, transparent 1.5px); background-size: 32px 32px; box-shadow: inset 0 0 0 3px var(--cj-plaza-line); }
.cj-mosaic { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; transform: translateZ(1.2px); opacity: .8; background: radial-gradient(circle, var(--cj-plaza) 0 16px, transparent 17px), conic-gradient(#ff6b57 0 60deg, #ff9a1f 0 120deg, #ffc928 0 180deg, #22c55e 0 240deg, #2f8cff 0 300deg, #8b5cf6 0); }
.cj-road { border-radius: 8px; background-color: var(--cj-road); box-shadow: inset 0 0 0 2px var(--cj-road-edge); background-repeat: no-repeat; background-position: center; }
.cj-road.is-h { background-image: repeating-linear-gradient(90deg, var(--cj-dash) 0 10px, transparent 10px 22px); background-size: calc(100% - 40px) 3px; }
.cj-road.is-v { background-image: repeating-linear-gradient(180deg, var(--cj-dash) 0 10px, transparent 10px 22px); background-size: 3px calc(100% - 40px); }
.cj-disc { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--c); border: 3px solid #fff; transform: translateZ(1.4px); }
.cj-pond { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid var(--cj-water-2); background: radial-gradient(circle at 30% 35%, #4caf50 0 4px, transparent 4.5px), radial-gradient(circle at 62% 62%, #4caf50 0 5px, transparent 5.5px), radial-gradient(circle at 45% 45%, var(--cj-water-2), var(--cj-water)); }
.cj-pool { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 4px solid #fff; background: radial-gradient(circle, var(--cj-water-2), var(--cj-water)); }
.cj-lamp-pool { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 107, .55), transparent); opacity: var(--cj-lamp); transform: translateZ(1.1px); }
.cj-flowers { width: 40px; height: 28px; margin: -14px 0 0 -20px; background:
  radial-gradient(circle at 18% 30%, #ff5d8f 0 3.2px, transparent 3.8px),
  radial-gradient(circle at 46% 18%, #ffd23f 0 3.2px, transparent 3.8px),
  radial-gradient(circle at 78% 34%, #ffffff 0 3.2px, transparent 3.8px),
  radial-gradient(circle at 32% 76%, #a78bfa 0 3.2px, transparent 3.8px),
  radial-gradient(circle at 66% 72%, #ff8a3d 0 3.2px, transparent 3.8px); }

/* boxes: top, south (+y) and west (-x) faces, the only sides the camera range shows */
.cj-bx, .cj-deco { position: absolute; transform-style: preserve-3d; }
.cj-bx { transform: translateZ(var(--z, 0px)); }
.cj-bx[data-stop] { cursor: pointer; }
.cj-bx > .f-t, .cj-bx > .f-s, .cj-bx > .f-w { position: absolute; }
.cj-bx > .f-t { inset: 0; transform: translateZ(var(--h)); display: grid; place-items: center; }
.cj-bx > .f-s { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); }
.cj-bx > .f-w { top: 0; right: 100%; width: var(--h); height: 100%; transform-origin: right; transform: rotateY(90deg); }
.cj-bx[data-stop]::before { content: ""; position: absolute; inset: -6px; border-radius: 10px; background: var(--cj-shadow); filter: blur(5px); opacity: .6; transform: translateZ(.6px); }
.cj-bx, .cj-deco { animation: cj-grow .9s cubic-bezier(.2, .9, .25, 1.3) backwards; animation-delay: var(--delay, 0s); }

.cj-kiosk > .f-t { background: var(--t); border-radius: 5px; box-shadow: inset 0 0 0 3px var(--c); transition: box-shadow .3s; }
.cj-kiosk > .f-s { background: repeating-linear-gradient(90deg, #fff 0 7px, var(--c) 7px 14px) left bottom / 100% 9px no-repeat, linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) center 30% / 54% 34% no-repeat, var(--c); }
.cj-kiosk > .f-w { background: repeating-linear-gradient(0deg, #fff 0 7px, var(--d) 7px 14px) left top / 9px 100% no-repeat, var(--d); }
.cj-num { font: 800 28px/1 var(--cj-font-display); color: var(--d); transform: rotate(calc(-1 * var(--rz))); }
.cj-kiosk.is-active > .f-t { box-shadow: inset 0 0 0 6px var(--c), 0 0 0 3px #fff; }

.cj-bld { --wall: color-mix(in srgb, var(--t), var(--cj-night) var(--cj-nightmix)); --wall-2: color-mix(in srgb, color-mix(in srgb, var(--t) 70%, var(--c)), var(--cj-night) var(--cj-nightmix)); }
.cj-bld > .f-t { background: var(--c); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .28); }
.cj-bld > .f-s { background-color: var(--wall); background-image: linear-gradient(var(--d), var(--d)), repeating-linear-gradient(0deg, var(--wall) 0 7px, transparent 7px 14px), repeating-linear-gradient(90deg, var(--wall) 0 6px, var(--cj-win) 6px 13px); background-size: 22% 16px, auto, auto; background-position: 50% 0, 0 0, 0 0; background-repeat: no-repeat, repeat, repeat; }
.cj-bld > .f-w { background-color: var(--wall-2); background-image: repeating-linear-gradient(90deg, var(--wall-2) 0 7px, transparent 7px 14px), repeating-linear-gradient(0deg, var(--wall-2) 0 6px, var(--cj-win) 6px 13px); }
.cj-bld.is-active > .f-t { box-shadow: inset 0 0 0 5px #fff; }

.cj-gate > .f-t, .cj-gate > .f-s { background: var(--c); }
.cj-gate > .f-w { background: var(--d); }
.cj-gate.is-beam > .f-t, .cj-gate.is-beam > .f-w { background: linear-gradient(180deg, #ff6b57, #ff9a1f, #ffc928, #22c55e, #2f8cff, #8b5cf6); }
.cj-gate.is-beam > .f-s { background: #ff6b57; }

/* billboards always face the camera */
.cj-bb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translateZ(calc(var(--h) + 4px)) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))); pointer-events: none; }
.cj-bb-in { position: absolute; left: 0; bottom: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 5px; animation: cj-bob 3.4s ease-in-out infinite; }
.cj-bx:nth-child(odd) .cj-bb-in { animation-delay: -1.7s; }
.cj-ico { display: block; transition: transform .35s ease; transform-origin: 50% 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .18)); }
.cj-ico img, .cj-ico svg { display: block; width: 100%; height: 100%; }
.cj-kiosk .cj-ico { width: 48px; height: 48px; }
.cj-bld .cj-ico { width: 60px; height: 60px; }
.cj-chip { font: 700 13px/1 var(--cj-font-display); white-space: nowrap; padding: 5px 10px 4px 5px; border-radius: 999px; background: var(--cj-chip-bg); color: var(--cj-chip-ink); box-shadow: 0 3px 10px var(--cj-shadow); display: inline-flex; gap: 6px; align-items: center; border: 2px solid var(--c); transition: background .3s, color .3s; }
.cj-chip i { font-style: normal; width: 19px; height: 19px; border-radius: 50%; background: var(--d); color: #fff; display: grid; place-items: center; font-size: 12px; padding-top: 1px; }
.cj-chip.is-plain { padding-left: 10px; }
.cj-chip.is-sign { border-color: transparent; background: linear-gradient(90deg, #ff6b57, #ff9a1f, #ffc928, #22c55e, #2f8cff, #8b5cf6); color: #fff; padding-left: 10px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cj-bx.is-active .cj-chip { background: var(--d); color: #fff; border-color: #fff; }
.cj-bx.is-active .cj-chip i { background: #fff; color: var(--d); }
.cj-bx.is-active .cj-ico { transform: scale(1.22); }
.cj-scene.is-compact .cj-bx:not(.is-active) .cj-chip { visibility: hidden; }

.cj-tree { position: absolute; width: 0; height: 0; transform-style: preserve-3d; --h: 0px; }
.cj-tree .cj-bb-in { animation: cj-pop .6s cubic-bezier(.2, .9, .3, 1.4) backwards; animation-delay: var(--delay, 0s); transform-origin: 50% 100%; }
.cj-tree-shadow { position: absolute; width: 24px; height: 24px; left: -12px; top: -12px; border-radius: 50%; background: var(--cj-shadow); opacity: .55; transform: translateZ(1px); }
.cj-deco .cj-bb-in { animation: cj-bob 4s ease-in-out infinite; }
.cj-deco.is-static .cj-bb-in { animation: none; }
.cj-spout .cj-bb-in { animation: cj-spout 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.cj-lamp-light { fill: #ffd66b; opacity: calc(.25 + .75 * var(--cj-lamp)); }
.cj-lamp-halo { fill: #ffd66b; opacity: calc(.55 * var(--cj-lamp)); }

.cj-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .7, .2, 1); --rs: 96px; --rc: #ff6b57; }
.cj-ring::before, .cj-ring::after { content: ""; position: absolute; width: var(--rs); height: var(--rs); left: calc(var(--rs) / -2); top: calc(var(--rs) / -2); border-radius: 50%; }
.cj-ring::before { background: color-mix(in srgb, var(--rc) 22%, transparent); border: 3px dashed var(--rc); transform: translateZ(1.6px); }
.cj-ring::after { border: 3px solid var(--rc); transform: translateZ(1.7px); animation: cj-pulse 2.2s ease-out infinite; }

.cj-token { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.cj-tk-shadow { position: absolute; width: 24px; height: 24px; left: -12px; top: -12px; border-radius: 50%; background: var(--cj-shadow); transform: translateZ(2px); }
.cj-tk-bb { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translateZ(calc(var(--hop, 0px) + 2px)) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))); }
.cj-tk-fig { position: absolute; left: 0; bottom: 0; translate: -50% 0; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .2)); }
.cj-tk-fig svg { display: block; width: 34px; height: 50px; }
.cj-token.is-walking .cj-tk-fig { animation: cj-stride .3s ease-in-out infinite alternate; }

.cj-hint { position: absolute; right: 12px; top: 72px; font-size: 12px; color: var(--cj-muted); background: var(--cj-panel); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.cj-scene.is-compact .cj-hint { display: none; }

/* ── caption ───────────────────────────────────────────── */
.cj-caption { position: absolute; left: 0; right: 0; bottom: 16px; max-width: 820px; z-index: 2; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 18px 14px; border-radius: 22px; background: var(--cj-panel); border: 1px solid var(--cj-line); box-shadow: 0 18px 44px -22px var(--cj-shadow); overflow: hidden; }
.cj-cap-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: color-mix(in srgb, var(--c) 20%, transparent); }
.cj-cap-bar span { display: block; height: 100%; width: 0; background: var(--c); }
.cj-cap-ico { width: 60px; height: 60px; border-radius: 18px; background: var(--t); display: grid; place-items: center; align-self: start; box-shadow: inset 0 0 0 2px var(--c); }
.cj-cap-ico img, .cj-cap-ico svg { width: 42px; height: 42px; display: block; }
.cj-cap-body { min-width: 0; }
.cj-cap-body.is-swapping { animation: cj-swap .4s ease-out; }
.cj-cap-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d); background: var(--t); padding: 3px 10px; border-radius: 999px; }
.cj-cap-title { font-size: 23px; font-weight: 700; margin-top: 5px; }
.cj-cap-text { color: var(--cj-muted); font-size: 14.5px; margin-top: 3px; max-width: 64ch; }
.cj-tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cj-tags li { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--t); color: var(--d); }
.cj-cap-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; align-self: stretch; }
.cj-ctl { display: flex; gap: 6px; }
.cj-ctl button { width: 36px; height: 36px; padding: 0; border-radius: 11px; border: 1px solid var(--cj-line); background: var(--cj-field); cursor: pointer; display: grid; place-items: center; }
.cj-ctl button:hover { border-color: var(--cj-accent); }
.cj-ctl svg { width: 16px; height: 16px; display: block; }
.cj-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--cj-accent); color: var(--cj-accent-ink); font-weight: 600; white-space: nowrap; }
.cj-cta:hover { background: var(--cj-accent-hover); color: var(--cj-accent-ink); }

/* ── sign-in card ──────────────────────────────────────── */
.cj-card { position: relative; flex: none; background: var(--cj-panel-solid); border-radius: 26px; border: 1px solid var(--cj-line); box-shadow: 0 30px 60px -30px var(--cj-shadow); overflow: hidden; transition: box-shadow .3s; }
.cj-card.is-nudged { box-shadow: 0 0 0 5px var(--cj-accent-soft), 0 30px 60px -30px var(--cj-shadow); }
.cj-card-head {
  position: relative; padding: 26px 24px 20px;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(255, 107, 87, .22), transparent 70%),
    radial-gradient(55% 90% at 55% 0%, rgba(255, 201, 40, .22), transparent 70%),
    radial-gradient(60% 90% at 100% 10%, rgba(47, 140, 255, .22), transparent 70%),
    radial-gradient(50% 80% at 90% 100%, rgba(139, 92, 246, .18), transparent 70%);
}
.cj-stripe { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; }
.cj-stripe span:nth-child(1) { background: #ff6b57; }
.cj-stripe span:nth-child(2) { background: #ff9a1f; }
.cj-stripe span:nth-child(3) { background: #ffc928; }
.cj-stripe span:nth-child(4) { background: #22c55e; }
.cj-stripe span:nth-child(5) { background: #2f8cff; }
.cj-stripe span:nth-child(6) { background: #8b5cf6; }
.cj-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cj-accent); }
.cj-card h1 { font-size: 34px; font-weight: 800; margin-top: 2px; }
.cj-card-sub { color: var(--cj-muted); font-size: 14px; margin-top: 2px; }
.cj-card-body { padding: 4px 24px 22px; }
.cj-form { display: flex; flex-direction: column; gap: 13px; }
.cj-field { display: flex; flex-direction: column; gap: 6px; }
.cj-field label { font-size: 13.5px; font-weight: 600; color: var(--cj-ink); }
.cj-input-wrap { position: relative; }
.cj-input-wrap > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--cj-muted); pointer-events: none; }
.cj-input { display: block; height: 48px; width: 100%; border-radius: 14px; border: 1.5px solid var(--cj-line); background: var(--cj-field); color: var(--cj-ink); padding: 0 14px 0 42px; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.cj-input::placeholder { color: var(--cj-muted); opacity: .8; }
.cj-input:focus { outline: none; border-color: var(--cj-accent); box-shadow: 0 0 0 4px var(--cj-accent-soft); }
.cj-input[aria-invalid="true"] { border-color: var(--cj-danger); }
.cj-input.has-toggle { padding-right: 70px; }
.cj-toggle { position: absolute; right: 6px; top: 7px; height: 34px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--cj-accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.cj-err { font-size: 12.5px; color: var(--cj-danger); }
.cj-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin-top: 4px; border-radius: 15px; border: 0; background: var(--cj-accent); color: var(--cj-accent-ink); font: 700 16px/1 var(--cj-font-body); cursor: pointer; box-shadow: 0 12px 22px -12px var(--cj-accent); transition: background .2s, transform .2s; }
.cj-btn:hover { background: var(--cj-accent-hover); }
.cj-btn:active { transform: translateY(1px); }
.cj-btn svg { width: 18px; height: 18px; transition: transform .2s; }
.cj-btn:hover svg { transform: translateX(3px); }
.cj-link { align-self: center; color: var(--cj-accent); font-weight: 600; font-size: 14px; padding: 2px 4px; }
.cj-link:hover { color: var(--cj-accent-hover); text-decoration: underline; }
.cj-tip { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--cj-tip-bg); color: var(--cj-tip-ink); font-size: 13.5px; }
.cj-tip svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.cj-tip strong { display: block; }
/* the notice is admin-written HTML that assumes a light page, so it stays a light "paper" in both themes
   and scrolls inside itself instead of squeezing the sign-in card */
.cj-notice { flex: 0 1 auto; min-height: 72px; overflow-y: auto; border-radius: 16px; padding: 11px 14px; font-size: 13px; line-height: 1.5; background: #ffffff; color: #162038; border: 1.5px dashed #b9b4f5; color-scheme: light; }
.cj-foot { flex: none; font-size: 12px; color: var(--cj-muted); text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
.cj-foot a { color: var(--cj-accent); font-weight: 600; }

/* ── motion ────────────────────────────────────────────── */
@keyframes cj-drift { from { transform: translateX(-25vw); } to { transform: translateX(125vw); } }
@keyframes cj-sail { from { translate: 0 0; } to { translate: 26vw 3vh; } }
@keyframes cj-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cj-glow { 50% { transform: scale(.93); opacity: .75; } }
@keyframes cj-grow { from { --h: 0px; } }
@keyframes cj-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cj-pop { from { transform: scale(0); } }
@keyframes cj-spout { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.18); } }
@keyframes cj-stride { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-5px) rotate(4deg); } }
@keyframes cj-pulse { from { transform: translateZ(1.7px) scale(.9); opacity: .95; } to { transform: translateZ(1.7px) scale(1.4); opacity: 0; } }
@keyframes cj-swap { from { opacity: 0; transform: translateY(6px); } }

/* ── narrow screens: one column, sign-in first ─────────── */
/* display: contents flattens the two columns into one flex list, so the
   sign-in card can sit right under the school name and the tour follows */
@media (max-width: 860px) {
  .cj-app { display: flex; flex-direction: column; gap: 12px; height: auto; min-height: 100vh; padding-block: 12px 28px; }
  .cj-left, .cj-right, .cj-topbar { display: contents; }
  .cj-brand, .cj-stepper, .cj-scene, .cj-caption, .cj-card, .cj-notice, .cj-foot { position: relative; z-index: 1; }
  .cj-brand { order: 1; align-self: flex-start; }
  .cj-card { order: 2; }
  .cj-notice { order: 3; max-height: none; overflow: visible; }
  .cj-stepper { order: 4; width: 100%; margin-top: 10px; }
  .cj-scene { order: 5; inset: auto; height: calc(600px * var(--cj-fit, .45) + 12px); border-radius: 20px; }
  .cj-caption { order: 6; bottom: auto; }
  .cj-foot { order: 7; }
  .cj-hint { top: 10px; }
}
@media (max-width: 560px) {
  .cj-caption { grid-template-columns: 46px minmax(0, 1fr); padding: 14px; }
  .cj-cap-ico { width: 46px; height: 46px; border-radius: 14px; }
  .cj-cap-ico img, .cj-cap-ico svg { width: 30px; height: 30px; }
  .cj-cap-title { font-size: 20px; }
  .cj-cap-side { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-top: 8px; }
  .cj-card h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .cj-app *, .cj-app *::before, .cj-app *::after { animation: none !important; transition: none !important; }
}
