/* ==========================================================================
   ChessZCam journey + why pages: interactive walkthrough, motion hero,
   overlay preview and archive cards. Loaded after site.css on
   chesszcam-journey.html and why-chesszcam.html (EN + ms/).
   Without JavaScript every step shows as a static card.
   ========================================================================== */

/* ------------------------------------------------------------ motion hero */
.jr-hero { position: relative; }
.jr-hero__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-glow); background: #03080f; }
.jr-hero__visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .9; }
.jr-hero__scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0, rgba(34, 211, 238, .0) 40%, rgba(34, 211, 238, .22) 50%, rgba(34, 211, 238, 0) 60%, transparent 100%); background-size: 100% 220%; animation: jr-scan 4.8s linear infinite; mix-blend-mode: screen; }
@keyframes jr-scan { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
.jr-hero__floats { position: absolute; inset: 0; pointer-events: none; }
.jr-float { position: absolute; display: flex; gap: .45rem; align-items: center; padding: .42rem .7rem; border-radius: 10px; font: 600 .78rem/1.2 var(--font-body); color: var(--text); background: rgba(4, 11, 22, .82); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -14px #000; opacity: 0; animation: jr-pop 12s ease-in-out infinite; white-space: nowrap; }
.jr-float b { font-family: var(--font-display); font-size: .74rem; letter-spacing: .02em; }
.jr-float small { color: var(--text-dim); font-weight: 500; }
.jr-float--ok b { color: var(--green); }
.jr-float--warn { border-color: rgba(245, 196, 81, .55); }
.jr-float--warn b { color: var(--gold); }
.jr-float--fix { border-color: rgba(167, 139, 250, .55); }
.jr-float--fix b { color: var(--violet); }
.jr-float--out { border-color: rgba(34, 211, 238, .55); }
.jr-float--out b { color: var(--cyan); }
.jr-float:nth-of-type(1) { left: 5%; top: 9%; animation-delay: 0s; }
.jr-float:nth-of-type(2) { right: 5%; top: 30%; animation-delay: 2.4s; }
.jr-float:nth-of-type(3) { left: 8%; bottom: 24%; animation-delay: 4.8s; }
.jr-float:nth-of-type(4) { right: 6%; bottom: 8%; animation-delay: 7.2s; }
@keyframes jr-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.96); }
  5%, 34% { opacity: 1; transform: none; }
  42%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* --------------------------------------------------------- answer first box */
.jr-answer { border: 1px solid var(--line-strong); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 1.15rem 1.3rem; background: rgba(7, 17, 31, .7); }
.jr-answer h2 { font-size: 1.05rem; font-family: var(--font-body); letter-spacing: 0; margin-bottom: .45rem; color: var(--cyan); }
.jr-answer p { color: var(--text-soft); margin: 0; }
.jr-answer p + p { margin-top: .6rem; }

/* ---------------------------------------------------------- pipeline strip */
.jr-pipe { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: jr; }
.jr-pipe li { position: relative; }
.jr-pipe button, .jr-pipe a { counter-increment: jr; width: 100%; display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; text-align: left; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(7, 17, 31, .6); color: var(--text-soft); font: 600 .84rem/1.25 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.jr-pipe button::before, .jr-pipe a::before { content: counter(jr, decimal-leading-zero); font: 700 .7rem var(--font-display); color: var(--text-dim); }
.jr-pipe small { font-weight: 500; font-size: .74rem; color: var(--text-dim); }
.jr-pipe button[aria-selected="true"] { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .1); color: var(--text); }
.jr-pipe button[aria-selected="true"]::before { color: var(--cyan); }
.jr-pipe button.is-done::before { content: "✓"; color: var(--green); }
.jr-pipe button.is-done { color: var(--text); }
@media (max-width: 760px) {
  .jr-pipe { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
  .jr-pipe li { scroll-snap-align: start; }
}

/* ------------------------------------------------------------ app window */
.jr-app { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(170deg, rgba(18, 38, 63, .75), rgba(4, 11, 22, .95)); box-shadow: var(--shadow); overflow: hidden; }
.jr-app__bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: rgba(4, 11, 22, .6); font-size: .8rem; color: var(--text-dim); }
.jr-app__dots { display: flex; gap: .3rem; }
.jr-app__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }
.jr-app__dots i:first-child { background: rgba(251, 113, 133, .7); }
.jr-app__dots i:nth-child(2) { background: rgba(245, 196, 81, .7); }
.jr-app__dots i:nth-child(3) { background: rgba(52, 211, 153, .7); }
.jr-app__title { font-weight: 600; color: var(--text-soft); }
.jr-app__note { margin-left: auto; }
.jr-step { padding: clamp(1rem, 2.5vw, 1.6rem); }
.jr-step + .jr-step { border-top: 1px solid var(--line); }
.js-journey .jr-step + .jr-step { border-top: 0; }
.jr-step[hidden] { display: none; }
.jr-step__grid { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
@media (max-width: 860px) { .jr-step__grid { grid-template-columns: 1fr; } }
.jr-step h3 { margin-bottom: .35rem; }
.jr-step__lead { color: var(--text-soft); font-size: .95rem; }
.jr-step__kicker { font: 700 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .35rem; }
.jr-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .4rem; }
.jr-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(18, 38, 63, .8); color: var(--text); font: 600 .86rem var(--font-body); cursor: pointer; transition: background .2s, border-color .2s, transform .1s; }
.jr-btn:hover { border-color: rgba(34, 211, 238, .6); }
.jr-btn:active { transform: translateY(1px); }
.jr-btn:disabled { opacity: .45; cursor: not-allowed; }
.jr-btn--go { background: linear-gradient(135deg, var(--cyan-deep), var(--blue-deep)); border-color: transparent; }
.jr-btn--ok { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .55); }
.jr-btn--warn { background: rgba(245, 196, 81, .12); border-color: rgba(245, 196, 81, .5); }
.jr-btn--next { margin-left: auto; }
.jr-msg { min-height: 1.6em; margin: .55rem 0 0; font-size: .9rem; color: var(--text-soft); }
.jr-msg[data-tone="ok"] { color: var(--green); }
.jr-msg[data-tone="warn"] { color: var(--gold); }
.jr-msg[data-tone="bad"] { color: var(--rose); }
.jr-tip { margin-top: .9rem; padding: .7rem .85rem; border-radius: 10px; background: rgba(148, 197, 255, .06); border: 1px dashed var(--line-strong); font-size: .85rem; color: var(--text-soft); }
.jr-tip b { color: var(--text); }

/* ------------------------------------------------------------- dropzone */
.jr-drop { display: grid; place-items: center; gap: .4rem; text-align: center; padding: 1.6rem 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-soft); background: rgba(4, 11, 22, .5); transition: border-color .3s, background .3s; }
.jr-drop b { color: var(--text); }
.jr-drop.is-filled { border-style: solid; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .06); }
.jr-file { display: none; align-items: center; gap: .7rem; text-align: left; }
.jr-drop.is-filled .jr-file { display: flex; }
.jr-drop.is-filled .jr-drop__empty { display: none; }
.jr-file__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 211, 238, .12); color: var(--cyan); font-size: 1.2rem; }
.jr-file small { display: block; color: var(--text-dim); }

/* ------------------------------------------------------- camera / board */
.jr-cam { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #2c2318 0, #16120d 55%, #0b0907 100%); border: 1px solid var(--line); }
.jr-cam__table { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; }
.jr-cam__board.jr-board { width: auto; }
.jr-cam__board { position: relative; height: 96%; aspect-ratio: 1; transform: rotateX(38deg) rotateZ(-2deg) translateY(-2%); transform-style: preserve-3d; box-shadow: 0 30px 40px -20px #000; transition: transform .8s ease; }
.jr-cam__hand { position: absolute; width: 26%; aspect-ratio: 1.2; border-radius: 45% 45% 40% 40%; background: radial-gradient(circle at 40% 35%, #c9997a, #8a5f45 70%); filter: blur(1.5px); opacity: 0; top: 18%; left: 48%; transition: opacity .3s, transform .6s; }
.jr-cam.is-hand .jr-cam__hand { opacity: .92; transform: translate(-10%, 10%); }
.jr-cam__hud { position: absolute; left: .6rem; top: .6rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.jr-cam__hud span { padding: .2rem .5rem; border-radius: 6px; background: rgba(4, 11, 22, .8); font: 600 .72rem var(--font-body); color: var(--text-soft); border: 1px solid var(--line); }
.jr-cam__hud .is-rec { color: var(--rose); }
.jr-cam__hud .is-ok { color: var(--green); }
.jr-corner { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--gold); background: rgba(245, 196, 81, .25); box-shadow: 0 0 0 4px rgba(245, 196, 81, .18); transition: left .9s cubic-bezier(.2,.9,.3,1.2), top .9s cubic-bezier(.2,.9,.3,1.2), border-color .3s; }
.jr-corner[data-c="0"] { left: 18%; top: 30%; }
.jr-corner[data-c="1"] { left: 70%; top: 12%; }
.jr-corner[data-c="2"] { left: 92%; top: 80%; }
.jr-corner[data-c="3"] { left: 6%; top: 90%; }
.jr-cam.is-found .jr-corner[data-c="0"] { left: 0; top: 0; }
.jr-cam.is-found .jr-corner[data-c="1"] { left: 100%; top: 0; }
.jr-cam.is-found .jr-corner[data-c="2"] { left: 100%; top: 100%; }
.jr-cam.is-found .jr-corner[data-c="3"] { left: 0; top: 100%; }
.jr-cam.is-locked .jr-corner { border-color: var(--green); background: rgba(52, 211, 153, .3); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.jr-board { container-type: inline-size; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.jr-board--wood { --sq-l: #e8cfa4; --sq-d: #a8744a; }
.jr-board--app { --sq-l: #dfe7f0; --sq-d: #5b7a99; }
.jr-sq { position: relative; display: grid; place-items: center; background: var(--sq-l); font-size: 10cqw; line-height: 1; overflow: hidden; }
.jr-sq.is-dark { background: var(--sq-d); }
.jr-sq.is-from::after, .jr-sq.is-to::after { content: ""; position: absolute; inset: 0; background: rgba(245, 196, 81, .42); }
.jr-sq.is-flag::after { content: ""; position: absolute; inset: 0; background: rgba(245, 196, 81, .55); animation: breathe 1.6s ease-in-out infinite; }
.jr-sq.is-pick::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--cyan); background: rgba(34, 211, 238, .3); }
.jr-sq.is-bad::after { content: ""; position: absolute; inset: 0; background: rgba(251, 113, 133, .45); }
.jr-sq.is-good::after { content: ""; position: absolute; inset: 0; background: rgba(52, 211, 153, .5); }
.jr-pc { position: relative; z-index: 1; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", "Apple Symbols", serif; }
.jr-pc--w { color: #fbfdff; text-shadow: 0 0 1px #0b1a2d, 0 0 1px #0b1a2d, 0 0 1px #0b1a2d, 0 2px 2px rgba(0, 0, 0, .45); }
.jr-pc--b { color: #0d1218; text-shadow: 0 1px 1px rgba(255, 255, 255, .28); }
.jr-board--click .jr-sq { cursor: pointer; }
.jr-board--click .jr-sq:hover { filter: brightness(1.08); }
.jr-coords { display: flex; justify-content: space-between; padding: .2rem .15rem 0; font: 600 .66rem var(--font-body); color: var(--text-dim); }

/* ------------------------------------------------------------- move list */
.jr-moves { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 11, 22, .55); overflow: hidden; }
.jr-moves__head { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; background: rgba(7, 17, 31, .97); border-bottom: 1px solid var(--line); font: 600 .78rem var(--font-body); color: var(--text-soft); }
.jr-moves ol { list-style: none; margin: 0; padding: .3rem 0; max-height: 260px; overflow: auto; }
.jr-moves li { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .4rem; align-items: center; padding: .28rem .8rem; font-size: .86rem; color: var(--text); animation: jr-in .35s ease backwards; }
.jr-moves li span:first-child { color: var(--text-dim); font-size: .78rem; }
.jr-moves li em { font-style: normal; font-size: .74rem; color: var(--text-dim); }
.jr-moves li.is-flag { background: rgba(245, 196, 81, .1); }
.jr-moves li.is-flag em { color: var(--gold); }
.jr-moves li.is-gap { background: rgba(167, 139, 250, .1); }
.jr-moves li.is-gap em { color: var(--violet); }
.jr-moves li.is-fixed em { color: var(--green); }
@keyframes jr-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.jr-progress { height: 6px; border-radius: 6px; background: rgba(148, 197, 255, .12); overflow: hidden; margin-top: .7rem; }
.jr-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width .3s linear; }
.jr-stats { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }

/* --------------------------------------------------------- review frame */
.jr-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #050b14; }
.jr-frame__bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-soft); }
.jr-frame__bar output { margin-inline: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.jr-frame__bar button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(18, 38, 63, .8); color: var(--text); cursor: pointer; }
.jr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.jr-pair figcaption { font-size: .78rem; color: var(--text-dim); margin-top: .35rem; text-align: center; }
.jr-choice { display: flex; flex-wrap: wrap; gap: .45rem; }
.jr-choice .jr-btn[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, .16); }
.jr-banner { display: none; margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; font-weight: 700; color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .45); }
.jr-banner.is-on { display: block; animation: jr-in .4s ease both; }

/* ---------------------------------------------------------- overlay preview */
.jr-export { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
@media (max-width: 900px) { .jr-export { grid-template-columns: 1fr; } }
.jr-form { display: grid; gap: .6rem; grid-template-columns: 1fr 5.5rem; }
.jr-form label { display: grid; gap: .2rem; font-size: .76rem; font-weight: 600; color: var(--text-dim); }
.jr-form label.is-wide { grid-column: 1 / -1; }
.jr-form input { width: 100%; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(4, 11, 22, .8); color: var(--text); font: 500 .9rem var(--font-body); }
.jr-form input:focus { outline: 2px solid rgba(34, 211, 238, .6); outline-offset: 1px; }
.jr-form fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.jr-form legend { font-size: .76rem; font-weight: 600; color: var(--text-dim); margin-bottom: .3rem; padding: 0; }
.jr-seg { padding: .38rem .7rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft); font: 600 .8rem var(--font-body); cursor: pointer; }
.jr-seg[aria-pressed="true"] { color: var(--ink-900); background: var(--cyan); border-color: var(--cyan); }
.jr-seg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; vertical-align: 0; }

.jr-ov { --acc: #22d3ee; --acc2: #0891b2; --plate: rgba(6, 22, 30, .82); --edge: rgba(34, 211, 238, .5); position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0b0907; container-type: inline-size; transition: aspect-ratio .4s; margin-inline: auto; }
.jr-ov[data-theme="gold"] { --acc: #f5c451; --acc2: #b98518; --plate: rgba(28, 20, 6, .84); --edge: rgba(245, 196, 81, .55); }
.jr-ov[data-theme="violet"] { --acc: #c4b5fd; --acc2: #7c3aed; --plate: rgba(24, 12, 40, .84); --edge: rgba(167, 139, 250, .55); }
.jr-ov[data-theme="slate"] { --acc: #e2e8f0; --acc2: #64748b; --plate: rgba(15, 23, 33, .86); --edge: rgba(226, 232, 240, .35); }
.jr-ov[data-orient="v"] { aspect-ratio: 9 / 16; max-width: 340px; }
.jr-ov__cam { position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; background: radial-gradient(120% 90% at 50% 20%, #33281b 0, #17120c 60%, #0a0806 100%); }
.jr-ov__cam .jr-board { width: 36cqw; transform: translateX(-12cqw) rotateX(40deg); filter: saturate(.9) brightness(.85); box-shadow: 0 20px 30px -16px #000; }
.jr-ov[data-orient="v"] .jr-ov__cam { place-items: start center; padding-top: 30cqw; }
.jr-ov[data-orient="v"] .jr-ov__cam .jr-board { width: 78cqw; transform: rotateX(40deg); }
.jr-ov__panel { position: absolute; border-radius: 1.2cqw; background: var(--plate); border: 1px solid var(--edge); color: #f4f8fc; backdrop-filter: blur(4px); box-shadow: 0 1cqw 3cqw -1cqw #000; }
.jr-ov__mini { right: 2.5cqw; top: 9cqw; width: 27cqw; padding: .8cqw; }
.jr-ov__mini .jr-board { border-radius: .6cqw; }
.jr-ov__eval { position: absolute; right: 30.5cqw; top: 9cqw; width: 1.4cqw; height: 28.6cqw; border-radius: 1cqw; overflow: hidden; background: #111; border: 1px solid var(--edge); }
.jr-ov__eval i { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; background: #f8fafc; transition: height .6s ease; }
.jr-ov__bar { left: 2.5cqw; width: 44cqw; padding: 1cqw 1.4cqw; display: flex; align-items: center; gap: 1.2cqw; font-size: 2cqw; }
.jr-ov__bar--top { top: 2.5cqw; }
.jr-ov__bar--bot { bottom: 2.5cqw; }
.jr-ov__bar b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30cqw; }
.jr-ov__bar span { margin-left: auto; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.jr-ov__swatch { width: 2.2cqw; height: 2.2cqw; border-radius: .5cqw; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .5); }
.jr-ov__swatch--w { background: #f8fafc; }
.jr-ov__swatch--b { background: #0b0f15; }
.jr-ov__plate { right: 2.5cqw; top: 2.5cqw; width: 27cqw; padding: .7cqw 1.2cqw; font-size: 1.45cqw; line-height: 1.35; display: flex; gap: 1cqw; align-items: center; }
.jr-ov__plate img { width: 4cqw; height: auto; }
.jr-ov__plate b { display: block; font-size: 1.6cqw; color: var(--acc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 20cqw; }
.jr-ov__verdict { right: 2.5cqw; top: 39.5cqw; width: 27cqw; padding: .9cqw 1.2cqw; font-size: 1.7cqw; display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.jr-ov__verdict b { color: var(--acc); }
.jr-ov__verdict em { font-style: normal; padding: .2cqw .9cqw; border-radius: 99px; background: var(--acc2); color: #fff; font-size: 1.45cqw; font-weight: 700; }
.jr-ov[data-orient="v"] .jr-ov__mini, .jr-ov[data-orient="v"] .jr-ov__eval { display: none; }
.jr-ov[data-orient="v"] .jr-ov__bar { left: 4cqw; width: 92cqw; font-size: 4cqw; padding: 2cqw 3cqw; gap: 2.4cqw; border-radius: 2.4cqw; }
.jr-ov[data-orient="v"] .jr-ov__bar b { max-width: 60cqw; }
.jr-ov[data-orient="v"] .jr-ov__swatch { width: 4.4cqw; height: 4.4cqw; }
.jr-ov[data-orient="v"] .jr-ov__bar--top { top: 4cqw; }
.jr-ov[data-orient="v"] .jr-ov__bar--bot { bottom: 22cqw; }
.jr-ov[data-orient="v"] .jr-ov__plate { left: 4cqw; right: auto; top: auto; bottom: 4cqw; width: 92cqw; font-size: 3cqw; padding: 1.6cqw 2.6cqw; border-radius: 2.4cqw; gap: 2cqw; }
.jr-ov[data-orient="v"] .jr-ov__plate img { width: 8cqw; }
.jr-ov[data-orient="v"] .jr-ov__plate b { font-size: 3.4cqw; max-width: 70cqw; }
.jr-ov[data-orient="v"] .jr-ov__verdict { right: 4cqw; top: 15cqw; width: auto; font-size: 3.4cqw; padding: 1.4cqw 2.4cqw; border-radius: 2.4cqw; }
.jr-ov[data-orient="v"] .jr-ov__verdict em { font-size: 3cqw; padding: .4cqw 1.8cqw; }
.jr-ov__note { margin-top: .5rem; font-size: .78rem; color: var(--text-dim); text-align: center; }
.jr-render { margin-top: .9rem; }
.jr-render__done { display: none; margin-top: .6rem; }
.jr-render.is-done .jr-render__done { display: block; }

/* ------------------------------------------------------------ definitions */
.jr-terms { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; }
.jr-terms div { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: rgba(7, 17, 31, .55); }
.jr-terms dt { font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.jr-terms dd { margin: 0; font-size: .9rem; color: var(--text-soft); }

/* --------------------------------------------------------- why: timeline */
.jr-era { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; position: relative; }
.jr-era::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: linear-gradient(90deg, rgba(148, 197, 255, .15), var(--cyan), var(--gold)); background-size: 200% 100%; animation: jr-flow 6s linear infinite; }
@keyframes jr-flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.jr-era li { position: relative; padding-top: 3.2rem; }
.jr-era li::before { content: attr(data-glyph); position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 1.35rem; background: var(--ink-800); border: 1px solid var(--line-strong); color: var(--text); }
.jr-era li:last-child::before { border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, .12); animation: breathe 2.6s ease-in-out infinite; }
.jr-era b { display: block; font-family: var(--font-display); font-size: .82rem; color: var(--gold); letter-spacing: .04em; margin-bottom: .2rem; }
.jr-era h3 { font-size: 1rem; margin-bottom: .25rem; }
.jr-era p { font-size: .88rem; color: var(--text-soft); margin: 0; }
@media (max-width: 860px) {
  .jr-era { grid-template-columns: 1fr; gap: 1rem; }
  .jr-era::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .jr-era li { padding: 0 0 0 4rem; min-height: 46px; }
}

/* --------------------------------------------------------- why: archive */
.jr-shelf { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); perspective: 1000px; }
.jr-card { position: relative; border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(18, 38, 63, .9), rgba(4, 11, 22, .95)); transition: transform .35s ease, box-shadow .35s ease; transform-style: preserve-3d; }
.jr-card:hover { transform: rotateX(4deg) rotateY(-6deg) translateY(-4px); box-shadow: var(--shadow-glow); }
.jr-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--text-dim); margin-bottom: .6rem; }
.jr-card__top b { font-family: var(--font-display); color: var(--gold); font-size: .8rem; }
.jr-card__players { display: grid; gap: .25rem; margin-bottom: .7rem; }
.jr-card__players span { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .92rem; }
.jr-card__players small { color: var(--text-dim); font-weight: 500; }
.jr-card__pgn { font: 500 .74rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-soft); background: rgba(4, 11, 22, .7); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; margin: 0 0 .7rem; white-space: pre-wrap; }
.jr-card__chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.jr-card__chips .chip { font-size: .7rem; }

/* ------------------------------------------------------------ why: layers */
.jr-layers { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .jr-layers { grid-template-columns: 1fr; } }
.jr-stack { position: relative; aspect-ratio: 4 / 3; margin: 0; }
.jr-stack__layer { position: absolute; left: 10%; right: 4%; top: 54%; height: 38%; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line-strong); display: flex; align-items: flex-end; font: 700 clamp(.8rem, 1.6vw, 1rem) var(--font-display); letter-spacing: .04em; color: var(--text); box-shadow: 0 24px 40px -24px #000; transform: translate(calc(var(--i) * -2.5%), calc(var(--i) * -40%)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); animation: jr-lift 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.jr-stack:hover .jr-stack__layer { transform: translate(calc(var(--i) * -4%), calc(var(--i) * -50%)); }
@keyframes jr-lift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.jr-stack__layer span { line-height: 1.3; }
.jr-stack__layer small { display: block; font: 500 .78rem var(--font-body); color: var(--text-soft); letter-spacing: 0; margin-top: .2rem; }
.jr-stack__layer[style*="--i:0"] { background: linear-gradient(0deg, rgba(4, 11, 22, .92), rgba(4, 11, 22, .35)), url("../assets/chesszcam/creator-2026-10/detect-scanning.webp") center / cover; }
.jr-stack__layer[style*="--i:1"] { background: linear-gradient(135deg, rgba(8, 40, 52, .96), rgba(4, 14, 24, .96)); border-color: rgba(34, 211, 238, .5); }
.jr-stack__layer[style*="--i:2"] { background: linear-gradient(135deg, rgba(48, 34, 8, .96), rgba(16, 12, 4, .96)); border-color: rgba(245, 196, 81, .5); }
.jr-stack__layer[style*="--i:3"] { background: linear-gradient(135deg, rgba(40, 20, 66, .96), rgba(14, 8, 26, .96)); border-color: rgba(167, 139, 250, .55); }
.jr-stack__layer::before { position: absolute; top: .9rem; right: 1.1rem; font: 600 .74rem/1.5 ui-monospace, Consolas, monospace; color: var(--text-dim); text-align: right; white-space: pre; }
.jr-stack__layer[style*="--i:1"]::before { content: "1. e4 e5 2. Nf3 Nc6\A 3. Bc4 Bc5  ✓ 1:20"; color: var(--cyan); }
.jr-stack__layer[style*="--i:2"]::before { content: "Best · +0.4\A Accuracy 79.1%"; color: var(--gold); }
.jr-stack__layer[style*="--i:3"]::before { content: "Aiman Hakimi 1865\A Round 5 · Board 1"; color: var(--violet); }
@media (max-width: 600px) {
  .jr-stack { aspect-ratio: 1 / 1.05; }
  .jr-stack__layer { left: 4%; right: 2%; top: 68%; height: 29%; padding: .8rem 1rem; transform: translate(calc(var(--i) * -1%), calc(var(--i) * -76%)); }
  .jr-stack:hover .jr-stack__layer { transform: translate(calc(var(--i) * -1%), calc(var(--i) * -76%)); }
  .jr-stack__layer::before { display: none; }
}
.jr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.jr-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; color: var(--text-soft); font-size: .94rem; }
.jr-list li::before { content: "✓"; color: var(--green); font-weight: 800; }
.jr-list li b { color: var(--text); }
.jr-list--x li::before { content: "•"; color: var(--gold); }

/* ------------------------------------------------------------ why: standard */
.jr-rule3 { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.jr-rule3 div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: rgba(7, 17, 31, .6); }
.jr-rule3 b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan); line-height: 1; margin-bottom: .5rem; }
.jr-rule3 h3 { font-size: 1rem; margin-bottom: .3rem; }
.jr-rule3 p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* ------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  .jr-hero__scan, .jr-era::before, .jr-stack__layer { animation: none; }
  .jr-float { animation: none; opacity: 1; position: static; display: inline-flex; margin: .25rem; }
  .jr-hero__floats { position: static; padding: .6rem; display: flex; flex-wrap: wrap; }
  .jr-corner, .jr-cam__board, .jr-moves li { transition: none; animation: none; }
}
