/* The way in (D106, D108): the sign-up, the letter and the Wards' House as a visual novel — a painted backdrop filling
   the page, the host standing in it, a dialogue box at the bottom, choices as cards. Without join.js every line and beat
   shows at once; with it (.jn.vn) one at a time. Placeholder paintings: tools/art/paint-join.py. No inline styles (CSP). */
.nx-shell:has(.jn) { height: 100vh; height: 100dvh; min-height: 600px; }
.nx-shell:has(.jn) .nx-footer, .nx-shell:has(.jn) .nx-due { display: none; }
.nx-main:has(> .jn) { max-width: none; padding: 0; min-height: 0; display: flex; flex-direction: column; }
.jn { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; isolation: isolate; color: #f6f2ff; font: 16px/1.5 var(--nx-font-body); }
.jn-bg { position: absolute; inset: -3%; z-index: -2; background: #120b2a center / cover no-repeat; animation: jnDrift 46s ease-in-out infinite alternate; }
.jn-bg-gate { background-image: url(/static/img/join/gate.webp); }
.jn-bg-wards { background-image: url(/static/img/join/wards.webp); }
.jn-bg-dawn { background-image: url(/static/img/join/dawn.webp); }
@keyframes jnDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.2%, -1%); } }
.jn::before { content: ''; position: absolute; inset: auto 0 0 0; height: 48%; z-index: -1; background: linear-gradient(transparent, rgba(6, 4, 22, .78)); pointer-events: none; }

/* the steps */
.jn-steps { position: absolute; z-index: 4; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; list-style: none; margin: 0; padding: 5px; background: rgba(10, 6, 30, .62); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font: 600 11px var(--nx-font-console); letter-spacing: .12em; text-transform: uppercase; color: #bdb4e0; backdrop-filter: blur(6px); white-space: nowrap; }
.jn-steps li { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; }
.jn-steps i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-style: normal; font-size: 10px; }
.jn-steps li.on { background: linear-gradient(90deg, #ffd27a, #ff9a6a); color: #2a1030; }
.jn-steps li.on i { background: rgba(42, 16, 48, .2); }
.jn-steps li.done i { background: #39ff8a; color: #05300f; }

/* the host */
.jn-host { position: absolute; z-index: 1; left: max(1.5%, 10px); bottom: 0; height: min(78%, 720px); margin: 0; pointer-events: none; transform-origin: 50% 100%; animation: jnEnter .9s cubic-bezier(.2, .9, .3, 1) both, jnBreathe 5.5s ease-in-out .9s infinite; }
.jn-host img { display: block; height: 100%; width: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .5)); }
@keyframes jnEnter { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes jnBreathe { 50% { transform: translateY(-5px) scale(1.008); } }
.jn[data-scene="home"] .jn-host { height: min(66%, 600px); opacity: .95; }

/* the dialogue box */
.jn-box { position: absolute; z-index: 5; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(1120px, calc(100% - 28px)); min-height: 150px; padding: 22px 54px 18px 160px; background: linear-gradient(180deg, rgba(20, 12, 50, .9), rgba(9, 6, 28, .95)); border: 1px solid rgba(255, 214, 140, .5); border-radius: 24px; box-shadow: 0 0 0 1px rgba(242, 9, 243, .18), 0 22px 54px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(8px); cursor: pointer; }
.jn-face { position: absolute; left: 20px; bottom: 16px; width: 120px; height: 120px; object-fit: cover; object-position: 50% 12%; border-radius: 20px; border: 2px solid rgba(255, 214, 140, .65); background: radial-gradient(circle at 50% 35%, #5a3a7a, #1a1030); }
.jn-face.pop { animation: jnPop .25s ease-out; }
@keyframes jnPop { from { transform: scale(.92); filter: brightness(1.4); } to { transform: none; filter: none; } }
.jn-name { position: absolute; left: 156px; top: -17px; padding: 3px 18px; border-radius: 999px; background: linear-gradient(90deg, #ffd27a, #ff9a6a); color: #2a1030; font: 19px var(--nx-font-display); letter-spacing: .05em; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.jn-lines { font: 20px/1.5 var(--nx-font-body); color: #fbf8ff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.jn-line { margin: 0 0 6px; }
.jn.vn .jn-lines { min-height: 3em; }
.jn.vn .jn-line { margin: 0; }
.jn-more { position: absolute; right: 18px; bottom: 12px; border: 0; background: none; color: #ffd27a; font-size: 18px; cursor: pointer; animation: jnBob 1s ease-in-out infinite; }
.jn:not(.vn) .jn-more { display: none; }
@keyframes jnBob { 50% { transform: translateY(4px); } }

/* the panel: whatever the scene asks */
.jn-panel { position: absolute; z-index: 2; top: 62px; bottom: 186px; right: clamp(14px, 3.5vw, 64px); width: min(62%, 900px); overflow: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.jn-panel > * { margin-top: auto; margin-bottom: auto; }
.jn-ink { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: rgba(160, 20, 40, .12); color: #9a1a2a; font: italic 15px Georgia, serif; }
.jn-panel > .jn-ink, .jn-form > .jn-ink { background: rgba(255, 77, 109, .16); color: #ffd0d8; border: 1px solid rgba(255, 77, 109, .5); }

/* buttons */
.jn-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border: 2px solid #ffe2a8; border-radius: 999px; background: linear-gradient(180deg, #ffd780, #f0943a); color: #2a1030 !important; font: 18px var(--nx-font-display); letter-spacing: .05em; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #a8551c, 0 10px 24px rgba(0, 0, 0, .4); transition: transform .12s, box-shadow .12s, filter .12s; }
.jn-go:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 8px 0 #a8551c, 0 14px 28px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 190, 110, .55); }
.jn-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #a8551c, 0 6px 14px rgba(0, 0, 0, .4); }
.jn-go.alt { background: linear-gradient(180deg, #9ad0ff, #4a7ad8); border-color: #cfe6ff; color: #071030 !important; box-shadow: 0 6px 0 #2a4a98, 0 10px 24px rgba(0, 0, 0, .4); }
.jn-go.big { padding: 14px 34px; font-size: 22px; }
.jn-link { border: 0; background: none; padding: 6px 4px; color: #e8deff; font: 600 15px var(--nx-font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.jn-link:hover { color: #fff; }
.jn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 6px; }

/* ---- the gate: the book, open on two pages ---- */
.jn-book { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 840px; margin-left: auto; background: linear-gradient(90deg, #efdfbd 0%, #faf2db 44%, #d4bd92 49.6%, #b89a6a 50%, #d4bd92 50.4%, #faf2db 56%, #efdfbd 100%); color: #2a1a10; border-radius: 8px 8px 14px 14px; box-shadow: 0 0 0 5px #5a3420, 0 0 0 7px #2a160c, 0 30px 70px rgba(0, 0, 0, .6); transform: perspective(1600px) rotateX(3deg); animation: jnBook .7s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes jnBook { from { opacity: 0; transform: perspective(1600px) rotateX(24deg) translateY(30px); } to { opacity: 1; transform: perspective(1600px) rotateX(3deg); } }
.jn-page { display: flex; flex-direction: column; gap: 12px; padding: 22px 30px 22px; font: 15px/1.45 Georgia, 'Times New Roman', serif; min-width: 0; }
.jn-page h2 { margin: 0 0 2px; font: 26px var(--nx-font-display); letter-spacing: .03em; color: #5a2a14; }
.jn-field { display: flex; flex-direction: column; gap: 2px; }
.jn-field > span { font: italic 14px Georgia, serif; color: #6a4a30; }
.jn-field input { width: 100%; min-width: 0; padding: 4px 2px 3px; background: transparent; border: 0; border-bottom: 2px solid #9a7a52; border-radius: 0; color: #1a1008; font: 21px 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive; outline: none; }
.jn-field input:focus { border-bottom-color: #b8541c; background: rgba(255, 255, 255, .35); }
.jn-field input::placeholder { color: #a8916e; font: italic 15px Georgia, serif; }
.jn-addr { color: #7a5a3a; font: 13px Georgia, serif; } .jn-addr b { color: #3a2010; font-family: 'Courier New', monospace; }
.jn-page .nx-check { color: #3a2414; font-size: 13px; } .jn-page .nx-check a { color: #8a3a14; }
.jn-page .nx-check input, .jn-page .nx-age input { accent-color: #b8541c; width: 18px; height: 18px; }
.jn-page .nx-age { border-color: rgba(90, 52, 32, .35); } .jn-page .nx-age legend, .jn-page .dim { color: #6a4a30; }
.jn-page .nx-heads { margin: 0; padding: 6px 10px; border-left: 3px solid #b8541c; background: rgba(184, 84, 28, .08); color: #3a2414; font: 13px Georgia, serif; }
.jn-page .jn-go { align-self: flex-start; margin-top: 4px; }
.jn-small { margin: 0; font-size: 13px; } .jn-small a { color: #8a3a14; }
.jn-login { border-left: 1px dashed rgba(90, 52, 32, .25); }

/* ---- the key ---- */
.jn-keywrap { margin-left: auto; max-width: 560px; text-align: center; }
.jn-key.nx-banner { all: unset; display: block; }
.jn-keytag { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 38px 22px 58px; background: linear-gradient(180deg, #faf2db, #e8d4aa); color: #2a1a10; border-radius: 14px 40px 40px 14px; box-shadow: 0 0 0 4px #6a4020, 0 24px 54px rgba(0, 0, 0, .55); transform: rotate(-3deg); animation: jnKey .8s cubic-bezier(.2, .9, .3, 1.3) both; }
.jn-keytag::before { content: ''; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #2a1408; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6); }
.jn-keytag b { font: 22px var(--nx-font-display); letter-spacing: .06em; color: #6a2a10; }
.jn-keytag code, .jn-keytag .nx-code { display: inline-block; padding: 4px 10px; background: rgba(255, 255, 255, .5); border: 1px dashed #9a7a52; border-radius: 8px; font: 700 22px 'Courier New', monospace; letter-spacing: .06em; color: #1a0e06; box-shadow: none; text-shadow: none; user-select: all; white-space: nowrap; }
.jn-keytag small { font: italic 13px Georgia, serif; color: #6a4a30; }
@keyframes jnKey { from { opacity: 0; transform: rotate(-16deg) translateY(40px) scale(.8); } to { opacity: 1; transform: rotate(-3deg); } }
.jn-keywrap .jn-acts { justify-content: center; margin-top: 30px; }

/* ---- the letter: a sheet of good paper, folded in three, the ink still a little proud of it ---- */
.jn-letterwrap { margin-left: auto; width: 100%; max-width: 640px; }
.jn-letter { position: relative; margin: 0; padding: 30px 38px 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .0) 32.6%, rgba(120, 90, 50, .16) 33.3%, rgba(255, 255, 255, .0) 34%, rgba(255, 255, 255, .0) 65.9%, rgba(120, 90, 50, .14) 66.6%, rgba(255, 255, 255, .0) 67.3%), radial-gradient(ellipse at 30% 20%, #fbf3dc, #efe0b8 70%, #e2cc98); color: #2a1a0e; border-radius: 4px; box-shadow: 0 0 0 1px rgba(90, 60, 30, .35), 0 26px 60px rgba(0, 0, 0, .55); font: 17px/1.55 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive; transform: rotate(-1.4deg); transform-origin: 50% 0; animation: jnUnfold .9s cubic-bezier(.2, .9, .3, 1.1) both; }
.jn-letter::after { content: ''; position: absolute; left: 30px; bottom: -18px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d8505a, #8a1422 70%); box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(255, 255, 255, .08); }
.jn-letter p { margin: 0 0 12px; }
.jn-l-to { font-style: italic; color: #5a3418; }
.jn-l-sign { margin: 18px 0 0 !important; text-align: right; } .jn-l-sign i { font-size: 21px; }
@keyframes jnUnfold { 0% { opacity: 0; transform: rotate(-1.4deg) perspective(900px) rotateX(-78deg) translateY(-30px); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-1.4deg); } }
@keyframes jnUnfoldFlat { 0% { opacity: 0; transform: perspective(900px) rotateX(-78deg) translateY(-30px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.jn-letterwrap .jn-acts { justify-content: flex-end; margin-top: 30px; }

/* ---- the Wards' House: beats of cards ---- */
.jn-form { width: 100%; }
.jn-beat { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.jn-beat legend { margin: 0 0 8px; padding: 0; font: 22px var(--nx-font-display); letter-spacing: .03em; color: #ffe2a8; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.jn-say { margin: 0 0 10px; font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.jn.vn .jn-beat { display: none; margin: 0; }
.jn.vn .jn-beat.on { display: block; animation: jnIn .35s ease both; }
.jn.vn .jn-beat legend, .jn.vn .jn-say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes jnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.jn-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* the peoples: four to a row, and when the other parent can only be from a few, those few sit to the right like the rest of the panel */
.jn-races { display: flex; flex-wrap: wrap; justify-content: flex-end; } .jn-races .jn-card { flex: 0 1 calc(25% - 9px); }
.jn-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 10px 8px 12px; background: rgba(14, 10, 40, .8); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; text-align: center; cursor: pointer; backdrop-filter: blur(5px); transition: transform .15s, border-color .15s, box-shadow .15s, background .15s; }
.jn-card:hover { transform: translateY(-4px); border-color: rgba(255, 214, 140, .75); box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 190, 110, .3); }
.jn-card:has(input:checked) { border-color: #ffd27a; background: rgba(54, 30, 70, .92); box-shadow: 0 0 0 2px #ffd27a, 0 0 30px rgba(255, 200, 120, .5); }
.jn-card:has(input:focus-visible), .jn-choice:has(input:focus-visible), .jn-chip:has(input:focus-visible) { outline: 2px solid var(--nx-cyan); outline-offset: 3px; }
.jn-card input, .jn-choice input, .jn-chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.jn-card[hidden] { display: none; } /* D108: a people the other parent can't be from isn't there at all */
.jn-pic { display: flex; align-items: flex-end; justify-content: center; height: 128px; width: 100%; }
.jn-img { max-height: 100%; max-width: 100%; width: auto; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.jn-fig { display: flex; height: 100%; align-items: flex-end; } .jn-fig svg { height: 92%; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.jn-card b { font: 19px/1.1 var(--nx-font-display); letter-spacing: .03em; color: #fff; }
.jn-card small { color: #c9c0ea; font-size: 12px; line-height: 1.3; }
.jn-two { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: end; }
.jn-two .jn-pic { height: 250px; }
.jn-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jn-card.small { padding: 12px 6px; } .jn-ico { font-size: 32px; line-height: 1.3; }
.jn-card.small b { font-size: 16px; text-transform: capitalize; }
.jn-choices { display: grid; gap: 10px; max-width: 660px; margin-left: auto; }
.jn-choice { position: relative; display: block; padding: 15px 22px; background: rgba(14, 10, 40, .85); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; font-size: 19px; cursor: pointer; backdrop-filter: blur(5px); transition: transform .12s, border-color .12s, background .12s; }
.jn-choice::before { content: '◆'; margin-right: 12px; color: #ffd27a; font-size: 13px; vertical-align: 2px; }
.jn-choice:hover { transform: translateX(-6px); border-color: rgba(255, 214, 140, .75); }
.jn-choice:has(input:checked) { border-color: #ffd27a; background: rgba(54, 30, 70, .95); box-shadow: 0 0 0 2px #ffd27a; }
.jn-looks-race { margin: 6px 0 2px; font: 16px var(--nx-font-display); color: #ffe2a8; letter-spacing: .03em; }
.jn.vn .jn-looks-race { display: none; }
.jn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 12px 14px; background: rgba(14, 10, 40, .8); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; backdrop-filter: blur(5px); }
.jn-k { flex: 0 0 64px; font: 700 12px var(--nx-font-console); letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }
.jn-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 15px; cursor: pointer; }
.jn-chip:hover { border-color: rgba(255, 214, 140, .8); }
.jn-chip:has(input:checked) { border-color: #ffd27a; background: rgba(255, 210, 122, .2); box-shadow: 0 0 0 1px #ffd27a; }
.jn-dot { width: 14px; height: 14px; flex: none; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.jn-nav { display: none; }
.jn.vn .jn-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin: 16px 0 0; }
.jn.vn .jn-steer { position: sticky; bottom: 0; padding-top: 10px; }
.jn.vn .jn-steer[hidden] { display: none; }
.jn-back { margin-right: auto; }
.jn-beat.on[data-beat="roll"] ~ .jn-steer { justify-content: flex-start; position: static; }
.jn-back, .jn-next, .jn-village { padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(14, 10, 40, .85); color: #f6f2ff; font: 600 15px var(--nx-font-body); cursor: pointer; }
.jn-next.ready { border-color: #ffe2a8; background: linear-gradient(180deg, #ffd780, #f0943a); color: #2a1030; box-shadow: 0 0 18px rgba(255, 190, 110, .55); animation: jnReady 1.4s ease-in-out infinite; }
@keyframes jnReady { 50% { box-shadow: 0 0 30px rgba(255, 190, 110, .85); } }
.jn-village { border-style: dashed; color: #ffe2a8; margin-right: auto; }
.jn-pair { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 10px; }
.jn-parent { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 280px; padding: 12px 16px; background: rgba(14, 10, 40, .82); border: 1px solid rgba(255, 214, 140, .5); border-radius: 18px; text-align: center; }
.jn-parent .jn-pic { height: 210px; } .jn-parent b { font: 18px var(--nx-font-display); color: #fff; } .jn-parent small { color: #c9c0ea; }
.jn-plus { font: 44px var(--nx-font-display); color: #ffd27a; text-shadow: 0 0 18px rgba(255, 190, 110, .8); }
.jn-beat[data-beat="roll"] .jn-acts { justify-content: center; }
.jn.leafing .jn-panel { animation: jnLeaf 1.3s ease-in both; }
.jn.leafing .jn-bg { animation: jnDawn 1.3s ease-in both; }
@keyframes jnLeaf { 30% { transform: translateX(-12px); } 100% { opacity: 0; transform: translateX(60px) rotate(2deg); } }
@keyframes jnDawn { 100% { filter: brightness(1.5) sepia(.35); } }

/* ---- the yard at dawn: which one is theirs? ---- */
.jn-kids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.jn-kid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 12px 10px 14px; background: rgba(255, 252, 245, .9); color: #2a1a2a; border: 1px solid rgba(255, 255, 255, .6); border-radius: 20px; text-align: center; cursor: pointer; box-shadow: 0 14px 34px rgba(40, 20, 40, .3); transition: transform .18s, opacity .18s, box-shadow .18s, filter .18s; animation: jnKid .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.jn-kid:nth-child(2) { animation-delay: .08s; } .jn-kid:nth-child(3) { animation-delay: .16s; } .jn-kid:nth-child(4) { animation-delay: .24s; } .jn-kid:nth-child(5) { animation-delay: .32s; }
@keyframes jnKid { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }
.jn-kid:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(40, 20, 40, .4), 0 0 0 2px #ffd27a; }
.jn-kid.on { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 0 3px #ffb84a, 0 22px 50px rgba(40, 20, 40, .45), 0 0 40px rgba(255, 200, 120, .7); z-index: 1; }
.jn-kid.dim { opacity: .62; filter: saturate(.7); }
.jn-kid .jn-pic { height: 132px; }
.jn-kname { font: 22px/1.1 var(--nx-font-display); letter-spacing: .03em; color: #3a1a3a; }
.jn-kwho { color: #6a5470; font-size: 12px; }
.jn-kpromise { margin-top: 4px; color: #3a2a3a; font: 13px/1.35 Georgia, serif; }
.jn-ktemper { color: #8a4a2a; font: italic 13px Georgia, serif; }
.jn-pickrow { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 8px; }
.jn-pickrow input { width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid #c8b0d8; border-radius: 10px; background: #fff; color: #2a1a2a; font: 15px var(--nx-font-body); text-align: center; }
.jn-pickrow .jn-go { padding: 8px 14px; font-size: 16px; }
.jn.vn .jn-pickrow { display: none; }
.jn.vn .jn-kid.on .jn-pickrow { display: flex; animation: jnIn .3s ease both; }
.jn-again { margin: 14px 0 0; text-align: right; }
.jn-again .jn-link { color: #3a1a3a; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 6px 14px; text-decoration: none; }

/* ---- home ---- */
.jn-home { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: auto; text-align: center; }
.jn-home::before { content: ''; position: absolute; top: -40px; left: 50%; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 200, .95), rgba(255, 200, 120, .35) 45%, transparent 70%); z-index: -1; animation: jnHalo 3s ease-in-out infinite; }
@keyframes jnHalo { 50% { transform: scale(1.08); opacity: .85; } }
.jn-home .jn-pic.big { height: min(320px, calc(100vh - 470px)); min-height: 150px; animation: jnArrive 1.1s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes jnArrive { 0% { opacity: 0; transform: scale(.4) translateY(60px); filter: brightness(3); } 60% { opacity: 1; filter: brightness(1.6); } 100% { transform: none; filter: none; } }
.jn-hname { font: clamp(38px, 6vh, 54px)/1 var(--nx-font-display); letter-spacing: .03em; color: #3a1a3a; text-shadow: 0 2px 0 #fff, 0 0 24px rgba(255, 255, 255, .9); }
.jn-home small { color: #4a2a4a; font: 600 15px var(--nx-font-body); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 2px 12px; }
.jn-home .jn-link { color: #3a1a3a; }


/* ---- phones ---- */
@media (max-width: 760px) {
  .jn-host { display: none; }
  .jn-steps { top: 8px; font-size: 9px; } .jn-steps li { padding: 4px 8px 4px 4px; gap: 4px; } .jn-steps li:not(.on) span, .jn-steps li:not(.on) { font-size: 0; } .jn-steps li:not(.on) i { font-size: 10px; }
  .jn-panel { left: 10px; right: 10px; width: auto; top: 48px; bottom: 146px; }
  .jn-box { bottom: 8px; min-height: 124px; padding: 16px 40px 12px 86px; border-radius: 18px; width: calc(100% - 16px); }
  .jn-face { left: 10px; bottom: 12px; width: 66px; height: 66px; border-radius: 14px; }
  .jn-name { left: 84px; font-size: 15px; top: -14px; }
  .jn-lines { font-size: 16px; }
  .jn-book { grid-template-columns: 1fr; transform: none; animation: none; }
  .jn-login { border-left: 0; border-top: 1px dashed rgba(90, 52, 32, .3); }
  .jn-page { padding: 18px 18px; }
  .jn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jn-races .jn-card { flex-basis: calc(50% - 6px); }
  .jn-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jn-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jn-two .jn-pic { height: 160px; }
  .jn-pic { height: 100px; }
  .jn-choice { font-size: 16px; padding: 12px 16px; }
  .jn-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-pair { flex-direction: column; gap: 6px; } .jn-parent .jn-pic { height: 120px; }
  .jn.vn .jn-steer { margin: 0 -10px; padding: 22px 10px 4px; background: linear-gradient(rgba(6, 4, 22, 0), rgba(6, 4, 22, .86) 50%); }
  .jn-beat.on[data-beat="roll"] ~ .jn-steer { background: none; }
  .jn-home .jn-pic.big { height: 220px; } .jn-hname { font-size: 40px; } .jn-home::before { width: 340px; height: 340px; margin-left: -170px; }
  .jn-letter { padding: 22px 20px 20px; font-size: 15px; transform: none; animation-name: jnUnfoldFlat; }
  .jn-keytag { max-width: 100%; padding: 20px 18px 18px 44px; transform: none; animation: none; } .jn-keytag code, .jn-keytag .nx-code { font-size: 15px; white-space: normal; word-break: break-all; }
}
