/* ==========================================================================
   Perez Nova — front page.
   ========================================================================== */

body.nova-home {
	margin: 0; background-color: var(--nv-bg); color: var(--nv-text); font-family: var(--nv-sans);
	background-image: radial-gradient(var(--nv-dot) 1px, transparent 1.5px); background-size: 26px 26px;
	overflow-x: hidden; text-wrap: pretty; transition: background-color .45s ease, color .45s ease;
	-webkit-font-smoothing: antialiased;
}
.nv-home h1, .nv-home h2, .nv-home h3 { text-wrap: balance; font-family: var(--nv-sans); margin: 0; }
.nv-home p { margin: 0; }
.nv-home code { font-family: var(--nv-mono); color: var(--nv-ink); background: none; padding: 0; }

.nv-section { padding-top: 130px; }
.nv-h2 { margin-top: 12px !important; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.05em; color: var(--nv-ink); font-weight: 700; }
.nv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.nv-head__aside { max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--nv-muted); }

/* Scroll reveal (only when JS is running) */
.nova-js [data-nova-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .3, 1); }
.nova-js [data-nova-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Stage (hero + race share one GPU canvas)
   -------------------------------------------------------------------------- */
.nv-stage { position: relative; overflow-x: clip; background-color: var(--nv-bg); cursor: crosshair; touch-action: pan-y; transition: background-color .45s ease; }
.nv-stage__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.nv-stage__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(180deg, transparent, var(--nv-bg)); pointer-events: none; }

.nv-hero { position: relative; padding-top: 150px; pointer-events: none; }
.nv-hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--nv-mono); font-size: 12px; letter-spacing: .06em; color: var(--nv-muted); }
.nv-hero__name { position: relative; margin-top: 26px; height: clamp(62px, 17.6vw, 250px); }
.nv-hero__name canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.nv-hero__name h1 { font-size: clamp(62px, 17.6vw, 250px); line-height: 1; letter-spacing: -.06em; font-weight: 700; white-space: nowrap; transition: opacity .4s ease; }
.nv-hero__name.is-particles h1 { opacity: 0; }
.nv-hero__row { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.nv-hero__line { flex: 1 1 520px; min-width: 0; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -.025em; color: var(--nv-ink); font-weight: 500; }
.nv-caret { display: inline-block; width: 3px; height: .95em; margin-left: 3px; vertical-align: -.12em; border-radius: 2px; background: var(--nv-g2); animation: nv-blink 1s step-end infinite; }
.nv-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; }
.nv-hero__tip { margin-top: 22px !important; font-family: var(--nv-mono); font-size: 12px; color: var(--nv-faint); }

/* --------------------------------------------------------------------------
   Race cockpit
   -------------------------------------------------------------------------- */
.nv-race { position: relative; padding-top: 72px; padding-bottom: 120px; cursor: auto; }
.nv-race__frame { border-radius: 30px; padding: 1px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-border) 30%, var(--nv-border) 70%, var(--nv-g2)); box-shadow: var(--nv-shadow); }
.nv-race__panel { border-radius: 29px; background: var(--nv-surface); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); overflow: hidden; }
.nv-race__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--nv-border); }
.nv-race__title { display: flex; align-items: center; min-width: 0; font-family: var(--nv-mono); font-size: 13px; color: var(--nv-muted); }
.nv-race__title b { color: var(--nv-ink); font-weight: 500; }
.nv-race__controls, .nv-race__passages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.nv-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; border: 1px solid var(--nv-border); }
.nv-seg button { height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: transparent; color: var(--nv-muted); font-family: var(--nv-mono); font-size: 12px; font-weight: 500; cursor: pointer; }
.nv-seg button[aria-pressed="true"] { background: var(--nv-grad); color: var(--nv-gtext); }

.nv-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px;
	border: 1px solid var(--nv-border); background: transparent; color: var(--nv-muted); font-size: 13px; font-weight: 500; cursor: pointer;
	transition: transform .15s ease, border-color .2s ease, background-color .2s ease;
}
.nv-chip:hover { transform: translateY(-1px); }
.nv-chip[aria-pressed="true"] { background: var(--nv-ink); border-color: var(--nv-ink); color: var(--nv-bg); }
.nv-chip .nv-tick { color: var(--nv-g2); margin-left: 2px; }
.nv-chip[aria-pressed="true"] .nv-tick { color: var(--nv-g2); }
.nv-chip--accent { border-color: var(--nv-g1); color: var(--nv-ink); }
.nv-chip--mono { font-family: var(--nv-mono); font-size: 12px; }
.nv-chip--mono[aria-pressed="true"] { background: transparent; color: var(--nv-ink); border-color: var(--nv-g1); }
.nv-chip--icon { width: 36px; padding: 0; justify-content: center; color: var(--nv-ink); }
.nv-chip .nv-wave-on { display: none; }
.nv-chip[aria-pressed="true"] .nv-wave-on { display: inline; }
.nv-chip[aria-pressed="true"] .nv-wave-off { display: none; }

.nv-race__top, .nv-race__mid, .nv-race__stats { display: flex; flex-wrap: wrap; }
.nv-race__mid, .nv-race__stats { border-top: 1px solid var(--nv-border); }
.nv-race__typing { flex: 3 1 560px; min-width: 0; position: relative; padding: 46px clamp(20px, 4vw, 52px) 40px; border-right: 1px solid var(--nv-border); }
.nv-race__text { position: relative; font-family: var(--nv-mono); font-size: clamp(20px, 2.15vw, 29px); line-height: 2.05; white-space: pre-wrap; text-wrap: wrap; color: var(--nv-faint); }
.nv-race__text span { border-radius: 4px; transition: color .1s ease; }
.nv-race__text span.is-ok { color: var(--nv-ink); }
.nv-race__text span.is-err { color: var(--nv-g2); background: var(--nv-err); }
.nv-race__caret { position: absolute; left: -1px; top: 0; width: 2.5px; height: 1.2em; border-radius: 2px; background: var(--nv-g1); box-shadow: 0 0 14px var(--nv-g1); pointer-events: none; opacity: 0; transition: transform .085s cubic-bezier(.2, .7, .3, 1), opacity .2s ease; }
.nv-race__caret.is-idle { animation: nv-blink 1s step-end infinite; }
.nv-race__caret.is-replay { background: var(--nv-g2); box-shadow: 0 0 14px var(--nv-g2); }
.nv-race__ghost { position: absolute; left: 0; top: 0; width: .62em; height: 1.2em; pointer-events: none; opacity: 0; transition: transform .1s linear, opacity .2s ease; }
.nv-race__ghost::before { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--nv-grad); box-shadow: 0 0 16px var(--nv-g2); }
.nv-race__ghost b { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-family: var(--nv-mono); font-size: 10px; line-height: 1; letter-spacing: .1em; padding: 3px 5px; border-radius: 5px; background: var(--nv-g2); color: var(--nv-gtext); white-space: nowrap; font-weight: 500; }
.nv-race__hint { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.nv-race__pill { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--nv-surface2); border: 1px solid var(--nv-border2); color: var(--nv-ink); font-size: 15px; font-weight: 500; box-shadow: var(--nv-shadow); text-align: center; }
.nv-race__hint[hidden] { display: none; }
.nv-race__input { position: absolute; inset: 0; z-index: 3; width: 100% !important; height: 100% !important; opacity: 0; cursor: text; border: 0 !important; padding: 0 !important; margin: 0; font-size: 16px; background: transparent !important; box-shadow: none !important; }
.nv-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.nv-burst i { position: absolute; left: -5px; top: -5px; border-radius: 999px; transition: transform 1.1s cubic-bezier(.12, .8, .3, 1), opacity 1.1s ease-in; }

.nv-race__gauge { flex: 1 1 280px; min-width: 0; padding: 24px 24px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nv-race__gauge svg { width: 100%; max-width: 300px; display: block; }
.nv-gauge__track { fill: none; stroke: var(--nv-chip); stroke-width: 10; stroke-linecap: round; }
.nv-gauge__arc { fill: none; stroke: url(#nv-gauge-grad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 1000; transition: stroke-dasharray .25s ease-out; }
.nv-gauge__ticks { stroke: var(--nv-faint); stroke-width: 1.6; stroke-linecap: round; fill: none; }
.nv-gauge__labels text { font-family: var(--nv-mono); font-size: 10px; fill: var(--nv-muted); }
.nv-gauge__needle { transform-origin: 120px 120px; transform: rotate(150deg); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.nv-gauge__needle path, .nv-gauge__hub { fill: var(--nv-ink); }
.nv-gauge__value { font-family: var(--nv-sans); font-size: 34px; font-weight: 700; fill: var(--nv-ink); }
.nv-gauge__unit { font-family: var(--nv-mono); font-size: 10px; letter-spacing: 2px; fill: var(--nv-muted); }
[data-nova-mark-avg] { fill: var(--nv-faint); transition: r .2s ease, fill .2s ease; }
[data-nova-mark-rec] { fill: var(--nv-g2); transition: r .2s ease, fill .2s ease; }
.nv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-muted); }
.nv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nv-line { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.nv-line--ink { background: var(--nv-ink); }
.nv-line--pink { background: var(--nv-g2); }

.nv-race__kb { flex: 3 1 560px; min-width: 0; padding: 14px clamp(10px, 2vw, 24px) 18px; border-right: 1px solid var(--nv-border); }
.nv-kb3d { display: block; width: 100%; height: clamp(200px, 21vw, 290px); }
.nv-kb3d[hidden] { display: none; }
.nv-kb { perspective: 1100px; padding-top: 14px; }
.nv-kb__board { transform: rotateX(18deg); transform-origin: 50% 100%; display: flex; flex-direction: column; gap: 7px; max-width: 760px; margin: 0 auto; }
.nv-kb__row { display: flex; gap: 7px; }
.nv-key {
	flex: 1 1 0; min-width: 0; height: clamp(34px, 3.6vw, 46px); border-radius: 10px; border: 1px solid var(--nv-border); background: var(--nv-key);
	color: var(--nv-muted); box-shadow: 0 3px 0 var(--nv-keyedge); display: flex; align-items: center; justify-content: center;
	font-family: var(--nv-mono); font-size: clamp(11px, 1.05vw, 14px); font-weight: 500; text-transform: uppercase;
	transition: transform .07s ease, background .14s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}
.nv-key.is-next { border-color: var(--nv-g1); color: var(--nv-ink); box-shadow: 0 3px 0 var(--nv-keyedge), 0 0 0 3px var(--nv-spot); }
.nv-key.is-down { background: var(--nv-grad); color: var(--nv-gtext); border-color: transparent; transform: translateY(3px); box-shadow: 0 0 0 var(--nv-keyedge), 0 0 26px var(--nv-g1); }
.nv-key.is-down.is-err { background: var(--nv-g2); }
.nv-race__note { margin-top: 8px !important; text-align: center; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-faint); }

.nv-race__rhythm { flex: 2 1 340px; min-width: 0; padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.nv-race__rhythm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nv-rhythm { display: block; width: 100%; height: 150px; }
.nv-rhythm__grid { stroke: var(--nv-border); stroke-width: 1; fill: none; }
.nv-rhythm__ghost { stroke: var(--nv-g2); stroke-width: 2; stroke-dasharray: 6 6; fill: none; }
.nv-rhythm__area { fill: url(#nv-area); }
.nv-rhythm__line { fill: none; stroke: var(--nv-ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.nv-race__axis { display: flex; justify-content: space-between; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-faint); }

.nv-stat { flex: 1 1 130px; padding: 18px 22px; border-right: 1px solid var(--nv-border); }
.nv-stat b { display: block; margin-top: 4px; font-size: 28px; font-weight: 700; color: var(--nv-ink); font-variant-numeric: tabular-nums; }
.nv-stat--bars { flex: 3 1 360px; border-right: 0; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.nv-track { display: flex; align-items: center; gap: 12px; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-muted); }
.nv-track > span { width: 52px; }
.nv-track > div { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--nv-chip); overflow: hidden; }
.nv-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--nv-ink); transition: width .12s linear; }
.nv-track--ghost i { background: var(--nv-grad); box-shadow: 0 0 14px var(--nv-g2); transition: width .1s linear; }
.nv-track em { width: 38px; text-align: right; font-style: normal; }

.nv-result { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 28px; border-top: 1px solid var(--nv-border); background: linear-gradient(90deg, var(--nv-spot), transparent 70%); animation: nv-rise .45s ease both; }
.nv-result[hidden] { display: none; }
.nv-result__rank { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; animation: nv-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.nv-result__rank .nv-grad-text { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.nv-result__copy { flex: 1 1 320px; min-width: 0; }
.nv-result__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--nv-ink); }
.nv-result__sub { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--nv-muted); }
.nv-result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nv-race__foot { margin-top: 16px !important; text-align: center; font-family: var(--nv-mono); font-size: 12px; color: var(--nv-faint); }
.nv-race__foot a { color: var(--nv-muted) !important; }

/* --------------------------------------------------------------------------
   Typing Quest
   -------------------------------------------------------------------------- */
.nv-quest { border-radius: 34px; padding: 1px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); box-shadow: var(--nv-shadow); }
.nv-quest__inner { position: relative; border-radius: 33px; background: var(--nv-surface2); overflow: hidden; }
.nv-quest__glow { position: absolute; width: 620px; height: 620px; border-radius: 999px; pointer-events: none; }
.nv-quest__glow--a { right: -160px; top: -200px; background: radial-gradient(closest-side, rgba(249, 127, 240, .2), transparent); }
.nv-quest__glow--b { left: -200px; bottom: -260px; background: radial-gradient(closest-side, rgba(157, 141, 247, .22), transparent); }
.nv-quest__hero { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.nv-quest__copy { flex: 3 1 520px; min-width: 0; }
.nv-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--nv-border2); font-family: var(--nv-mono); font-size: 12px; color: var(--nv-muted); }
.nv-quest__title { margin-top: 22px !important; font-size: clamp(52px, 7.4vw, 108px); line-height: .95; letter-spacing: -.06em; font-weight: 700; }
.nv-quest__tag { margin-top: 20px !important; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -.02em; color: var(--nv-ink); font-weight: 500; }
.nv-quest__body { margin-top: 16px !important; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--nv-text); }
.nv-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px !important; }
.nv-modes li { padding: 8px 12px; border-radius: 10px; background: var(--nv-chip); border: 1px solid var(--nv-border); font-family: var(--nv-mono); font-size: 13px; color: var(--nv-ink); }
.nv-quest__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.nv-quest__bridge { margin-top: 18px !important; max-width: 560px; font-size: 14px; color: var(--nv-muted); }

.nv-crate { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0; }
.nv-crate__stage { position: relative; width: 280px; height: 300px; display: flex; align-items: center; justify-content: center; }
.nv-crate__rays {
	position: absolute; width: 420px; height: 420px; border-radius: 999px; opacity: 0; transition: opacity .4s ease;
	background: repeating-conic-gradient(from 0deg, rgba(249, 127, 240, .35) 0deg 12deg, transparent 12deg 45deg, rgba(157, 141, 247, .35) 45deg 57deg, transparent 57deg 90deg);
	-webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent);
	animation: nv-spin 12s linear infinite;
}
.nv-crate__box { position: relative; width: 200px; height: 170px; animation: nv-bob 3.2s ease-in-out infinite; }
.nv-crate__lid { position: absolute; left: 0; right: 0; top: 0; height: 54px; border-radius: 18px 18px 8px 8px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.nv-crate__body { position: absolute; left: 8px; right: 8px; top: 50px; bottom: 0; border-radius: 8px 8px 20px 20px; background: linear-gradient(160deg, #2a2148, #1a1430); border: 1px solid rgba(255, 255, 255, .12); }
.nv-crate__strap { position: absolute; top: 0; bottom: 0; width: 16px; background: rgba(255, 255, 255, .18); }
.nv-crate__strap--l { left: 42px; }
.nv-crate__strap--r { right: 42px; }
.nv-crate__lock { position: absolute; left: 50%; top: 36px; width: 40px; height: 40px; margin-left: -20px; border-radius: 12px; background: #fff; color: #1d1930; box-shadow: 0 0 30px rgba(249, 127, 240, .8); display: flex; align-items: center; justify-content: center; }
.nv-crate__card { position: absolute; width: 200px; height: 270px; border-radius: 22px; padding: 2px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); box-shadow: 0 30px 70px -20px var(--nv-g2); display: none; }
.nv-crate__card > div { height: 100%; border-radius: 20px; background: var(--nv-surface2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--nv-ink); }
.nv-crate__big { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.nv-crate__after { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nv-crate[data-state="shaking"] .nv-crate__box { animation: nv-shake .45s ease-in-out 2; }
.nv-crate[data-state="open"] .nv-crate__box, .nv-crate[data-state="open"] .nv-crate__open { display: none; }
.nv-crate[data-state="open"] .nv-crate__card { display: block; animation: nv-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.nv-crate[data-state="open"] .nv-crate__rays { opacity: 1; }
.nv-crate[data-state="open"] .nv-crate__after { display: flex; }
@keyframes nv-spin { to { transform: rotate(360deg); } }
@keyframes nv-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes nv-shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-4deg); } 40% { transform: translateX(7px) rotate(4deg); } 60% { transform: translateX(-5px) rotate(-3deg); } 80% { transform: translateX(5px) rotate(3deg); } }

.nv-tiles { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--nv-border); }
.nv-tile {
	padding: 28px; border-right: 1px solid var(--nv-border); border-bottom: 1px solid var(--nv-border); margin: 0 -1px -1px 0;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	background: radial-gradient(360px circle at var(--mx, -600px) var(--my, -600px), var(--nv-spot), transparent 60%);
	transition: transform .25s cubic-bezier(.2, .8, .3, 1);
}
.nv-tile h3 { margin-top: 14px !important; font-size: 19px; font-weight: 700; color: var(--nv-ink); }
.nv-tile p { margin-top: 6px !important; font-size: 15px; line-height: 1.55; color: var(--nv-muted); }
.nv-tile__art { height: 64px; display: flex; align-items: center; gap: 8px; }
.nv-art--hp { flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; }
.nv-art__hp { display: flex; justify-content: space-between; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-muted); }
.nv-art__hpbar { height: 12px; border-radius: 999px; background: var(--nv-chip); overflow: hidden; }
.nv-art__hpbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f97ff0, #9d8df7); animation: nv-hp 4s ease-in-out infinite; }
@keyframes nv-hp { 0% { width: 100%; } 45% { width: 22%; } 70% { width: 22%; } 100% { width: 100%; } }
.nv-art--coins { gap: 12px; perspective: 300px; }
.nv-art__coin { width: 46px; height: 46px; border-radius: 999px; background: linear-gradient(135deg, #ffe08a, #f7b733); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; animation: nv-coin 2.4s ease-in-out infinite; }
.nv-art__coin b { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(107, 74, 0, .35); }
@keyframes nv-coin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.nv-art__card { width: 52px; height: 60px; border-radius: 10px; }
.nv-art__card--a { background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); transform: rotate(-8deg); box-shadow: 0 10px 20px -8px var(--nv-g2); }
.nv-art__card--b { margin-left: -30px; background: var(--nv-surface2); border: 1px solid var(--nv-border2); transform: rotate(6deg); }
.nv-art--grow { align-items: flex-end; }
.nv-art__sprout { animation: nv-grow 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nv-grow { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.06); } }
.nv-art__ground { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--nv-chip); }
.nv-art--learn { gap: 5px; }
.nv-art__key { width: 30px; height: 34px; border-radius: 7px; border: 1px solid var(--nv-border2); display: flex; align-items: center; justify-content: center; font-family: var(--nv-mono); font-size: 12px; font-style: normal; color: var(--nv-ink); }
.nv-art__key.is-on { background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); border-color: transparent; color: var(--nv-gtext); }
.nv-art__stars { margin-left: 8px; font-size: 18px; letter-spacing: 2px; color: #f7b733; }
.nv-art--weak { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; align-content: center; }
.nv-art--weak i { height: 18px; border-radius: 4px; background: var(--nv-chip); }
.nv-art--weak i[style*="--heat:0."] { background: rgba(249, 127, 240, var(--heat)); }
.nv-art--boards { align-items: flex-end; gap: 6px; }
.nv-art--boards i { flex: 1 1 0; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--nv-chip); transform-origin: bottom; animation: nv-bar 2.6s ease-in-out infinite; }
.nv-art--boards i:nth-child(2) { animation-delay: .3s; } .nv-art--boards i:nth-child(3) { animation-delay: .6s; } .nv-art--boards i:nth-child(4) { animation-delay: .9s; }
.nv-art--boards i.is-top { background: linear-gradient(180deg, var(--nv-g2), var(--nv-g1)); }
@keyframes nv-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.nv-art__phone { width: 40px; height: 64px; border-radius: 10px; border: 2px solid var(--nv-border2); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; }
.nv-art__phone b { width: 12px; height: 3px; border-radius: 2px; background: var(--nv-border2); }

/* --------------------------------------------------------------------------
   Fix finder
   -------------------------------------------------------------------------- */
.nv-finder { border-radius: 28px; border: 1px solid var(--nv-border); background: var(--nv-surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: hidden; box-shadow: var(--nv-shadow); }
.nv-finder__search { display: flex; align-items: center; gap: 14px; padding: 0 22px; min-height: 72px; border-bottom: 1px solid var(--nv-border); color: var(--nv-g1); }
.nv-finder__search input { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; font-family: var(--nv-sans); font-size: 20px; color: var(--nv-ink); padding: 0; }
.nv-finder__count { font-family: var(--nv-mono); font-size: 12px; color: var(--nv-faint); white-space: nowrap; }
.nv-finder__topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--nv-border); }
.nv-finder__topics:empty { display: none; }
.nv-topic { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--nv-border); background: transparent; color: var(--nv-text); font-size: 13px; font-weight: 500; cursor: pointer; }
.nv-topic em { font-style: normal; font-family: var(--nv-mono); font-size: 11px; opacity: .7; }
.nv-topic[aria-pressed="true"] { background: var(--nv-ink); border-color: var(--nv-ink); color: var(--nv-bg); }
.nv-finder__body { display: flex; flex-wrap: wrap; }
.nv-finder__list { flex: 3 1 520px; min-width: 0; max-height: 560px; overflow-y: auto; padding: 8px; border-right: 1px solid var(--nv-border); }
.nv-finder__row {
	width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-radius: 14px; background: transparent;
	text-align: left; cursor: pointer; text-decoration: none !important; color: var(--nv-ink) !important; box-shadow: inset 3px 0 0 transparent; transition: background-color .12s ease;
}
.nv-finder__row:hover { background: var(--nv-chip); }
.nv-finder__row.is-active { background: var(--nv-chip); box-shadow: inset 3px 0 0 var(--nv-g1); }
.nv-finder__row > span { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.4; font-weight: 500; }
.nv-finder__row mark { background: none; color: var(--nv-link); font-weight: 700; padding: 0; }
.nv-finder__row em { flex-shrink: 0; font-style: normal; font-family: var(--nv-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--nv-border); color: var(--nv-muted); }
.nv-finder__empty { padding: 40px 16px; text-align: center; color: var(--nv-muted); }
.nv-finder__preview { flex: 2 1 360px; min-width: 0; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.nv-finder__preview:empty { display: none; }
.nv-pv__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--nv-mono); font-size: 12px; color: var(--nv-muted); }
.nv-pv__meta span:first-child { padding: 4px 10px; border-radius: 999px; background: var(--nv-chip); }
.nv-pv__meta span:last-child { padding: 4px 0; }
.nv-pv__title { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.03em; color: var(--nv-ink); font-weight: 700; }
.nv-pv__text { font-size: 16px; line-height: 1.65; color: var(--nv-text); }
.nv-pv__rel { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--nv-border); }
.nv-pv__rel button { display: block; width: 100%; text-align: left; padding: 10px 0; border: 0; border-bottom: 1px solid var(--nv-border); background: transparent; color: var(--nv-link); font-size: 15px; cursor: pointer; }
.nv-finder__all { margin-top: 16px !important; text-align: right; font-family: var(--nv-mono); font-size: 13px; }
.nv-finder__all a { text-decoration: none; font-weight: 700; }
.nv-finder__preview .nv-btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   About + terminal
   -------------------------------------------------------------------------- */
.nv-about { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.nv-term { flex: 3 1 580px; min-width: 0; border-radius: 28px; padding: 1px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-border) 40%, var(--nv-border) 60%, var(--nv-g2)); box-shadow: var(--nv-shadow); }
.nv-term { display: flex; }
.nv-term__inner { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; border-radius: 27px; background: #0c0a18; overflow: hidden; color: #cbc5e2; font-family: var(--nv-mono); }
.nv-term__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #a39dc0; }
.nv-term__bar .nv-dots i { background: rgba(255, 255, 255, .18); }
.nv-term__screen { flex: 1 1 420px; min-height: 0; height: 420px; overflow-y: auto; padding: 18px 22px 6px; font-size: clamp(13px, 1.1vw, 14.5px); line-height: 1.7; }
.nv-term__line { white-space: pre-wrap; word-break: break-word; }
.nv-term__line b { font-weight: 400; color: #f97ff0; }
.nv-term__line .k { color: #9d8df7; }
.nv-term__line .v { color: #f6f4fd; }
.nv-term__line.dim { color: #6d668d; }
.nv-term__line.hi { color: #f6f4fd; }
.nv-term__line.err { color: #f97ff0; }
.nv-term__line.soft { color: #a39dc0; }
.nv-term__prompt { display: flex; align-items: center; gap: 8px; padding: 0 22px 16px; font-size: clamp(13px, 1.1vw, 14.5px); }
.nv-term__prompt[hidden] { display: none; }
.nv-term__prompt label { color: #f97ff0; flex-shrink: 0; }
.nv-term__prompt input { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important; padding: 0; font-family: var(--nv-mono); font-size: inherit; color: #f6f4fd; caret-color: #f97ff0; }
.nv-term__prompt input::placeholder { color: #6d668d; }
.nv-term__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nv-term__quick button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #cbc5e2; font-family: var(--nv-mono); font-size: 12px; cursor: pointer; transition: border-color .2s ease, transform .15s ease; }
.nv-term__quick button:hover { border-color: #9d8df7; transform: translateY(-1px); }
.nv-about__copy { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 8px 4px; }
.nv-about__text { margin-top: 20px !important; font-size: 17px; line-height: 1.65; color: var(--nv-text); }
.nv-about__quote { margin: 0; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, var(--nv-spot), transparent); border: 1px solid var(--nv-border); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -.015em; color: var(--nv-ink); font-style: normal; quotes: none; }
.nv-about__quote::before, .nv-about__quote::after { content: none; }
.nv-about__links { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-about__links .nv-btn { font-size: 14px; font-weight: 500; }

/* --------------------------------------------------------------------------
   IT support card
   -------------------------------------------------------------------------- */
.nv-help {
	display: flex; flex-wrap: wrap; align-items: center; gap: 28px; text-decoration: none !important; border-radius: 30px; border: 1px solid var(--nv-border);
	padding: clamp(26px, 4vw, 48px); background: radial-gradient(520px circle at var(--mx, -600px) var(--my, -600px), var(--nv-spot), transparent 60%), var(--nv-surface);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: border-color .25s ease, transform .25s cubic-bezier(.2, .8, .3, 1);
}
.nv-help:hover { border-color: var(--nv-border2); }
.nv-help__icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 22px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-g2)); color: var(--nv-gtext); display: flex; align-items: center; justify-content: center; }
.nv-help__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nv-help__title { text-wrap: balance; font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: var(--nv-ink); }
.nv-help__text { font-size: 17px; line-height: 1.6; color: var(--nv-text); }

/* --------------------------------------------------------------------------
   Launch intro
   -------------------------------------------------------------------------- */
.nv-intro {
	position: fixed; inset: 0; z-index: 100000; background-color: #06050c; display: flex; align-items: center; justify-content: center; padding: 24px;
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px); background-size: 26px 26px;
	transition: opacity .75s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.nv-intro[hidden] { display: none; }
.nv-intro.is-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.nv-intro__scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.nv-intro__scan::before { content: ""; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(157, 141, 247, .06), transparent); animation: nv-scan 2.4s linear infinite; }
@keyframes nv-scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.nv-intro__box { position: relative; width: min(640px, 100%); font-family: var(--nv-mono); font-size: clamp(13px, 1.3vw, 16px); line-height: 1.9; color: #cbc5e2; }
.nv-intro__head { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 12px; letter-spacing: .14em; color: #6d668d; text-transform: uppercase; }
.nv-intro__head span:first-child { color: #9d8df7; }
.nv-intro__lines div { white-space: pre; overflow: hidden; }
.nv-intro__lines b { color: #f97ff0; font-weight: 400; }
.nv-intro__lines em { color: #9d8df7; font-style: normal; }
.nv-intro .nv-bar { margin-top: 22px; height: 3px; background: rgba(255, 255, 255, .08); }
.nv-intro__skip { position: absolute; right: 20px; bottom: 18px; border: 0; background: transparent; color: #6d668d; font-family: var(--nv-mono); font-size: 12px; cursor: pointer; padding: 10px; }
.nv-intro__skip:hover { color: #cbc5e2; }

/* "Show all" button under the fix finder list (phones only) */
.nv-finder__more { display: block; width: calc(100% - 16px); min-height: 50px; margin: 0 8px 8px; border-radius: 14px; border: 1px dashed var(--nv-border2); background: transparent; color: var(--nv-ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.nv-finder__more[hidden] { display: none; }

/* Phones and other touch-only screens (no keyboard to race with) get a small
   card with the record and two choices; the full race opens on request. */
.nv-race__teaser { display: none; }
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
	.nv-race:not(.is-open) { padding-bottom: 0; }
	.nv-race__teaser { display: block; border-radius: 26px; padding: 1px; background: linear-gradient(135deg, var(--nv-g1), var(--nv-border) 35%, var(--nv-border) 65%, var(--nv-g2)); box-shadow: var(--nv-shadow); }
	.nv-race__teaser-in {
		display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "num title ctas" "num text ctas"; align-items: center; gap: 6px 28px;
		padding: 26px 30px; border-radius: 25px; background: var(--nv-surface); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
	}
	.nv-race__teaser-num { grid-area: num; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
	.nv-race__teaser-num .nv-grad-text { font-size: 64px; font-weight: 700; line-height: .95; letter-spacing: -.05em; }
	.nv-race__teaser-num .nv-label { font-size: 10px; letter-spacing: .08em; }
	.nv-race__teaser-copy { display: contents; }
	.nv-race__teaser-title { grid-area: title; align-self: end; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--nv-ink); }
	.nv-race__teaser-copy p { grid-area: text; align-self: start; max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--nv-muted); }
	.nv-race__teaser-ctas { grid-area: ctas; display: flex; flex-direction: column; gap: 8px; }
	.nv-race__teaser-ctas .nv-btn { min-height: 50px; justify-content: center; }
	.nv-race:not(.is-open) .nv-race__frame, .nv-race:not(.is-open) .nv-race__foot { display: none; }
	.nv-race.is-open .nv-race__teaser { display: none; }
}
@media (max-width: 720px) {
	.nv-race__teaser-in { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num title" "text text" "ctas ctas"; gap: 12px 16px; padding: 20px; }
	.nv-race__teaser-num .nv-grad-text { font-size: 46px; }
	.nv-race__teaser-title { align-self: center; font-size: 26px; }
	.nv-race__teaser-ctas { flex-direction: row; flex-wrap: wrap; }
	.nv-race__teaser-ctas .nv-btn { flex: 1 1 140px; }
}

@media (max-width: 720px) {
	.nv-race__typing, .nv-race__kb, .nv-finder__list { border-right: 0; }
	.nv-race__gauge, .nv-race__rhythm, .nv-finder__preview { border-top: 1px solid var(--nv-border); }
	.nv-stat { border-right: 0; border-bottom: 1px solid var(--nv-border); }
	.nv-section { padding-top: 72px; }
	.nv-term__screen { height: 360px; }

	/* Order on phones: hero, race card, about, fix finder, Typing Quest, IT help */
	.nv-home { display: flex; flex-direction: column; }
	.nv-home > #fixes { order: 1; }
	.nv-home > #quest { order: 2; }
	.nv-home > #work { order: 3; }

	/* Hero */
	.nv-hero { padding-top: 104px; }
	.nv-hero__row { margin-top: 22px; gap: 20px; }
	.nv-hero__ctas { width: 100%; }
	.nv-hero__ctas .nv-btn { flex: 1 1 auto; justify-content: center; }
	.nv-hero__tip { margin-top: 16px !important; }

	/* Race: phones open the full race without the 3D keyboard and rhythm chart */
	.nv-race { padding-top: 28px; }
	.nv-race.is-open { padding-bottom: 8px; }
	.nv-race__mid { display: none; }

	/* About: the words, quote and links (the terminal is for keyboards) */
	.nv-about .nv-term, .nv-about__termhint { display: none; }
	.nv-about__copy { padding: 0; gap: 22px; }
	.nv-about__quote { padding: 22px; }
	.nv-about__links .nv-btn { flex: 1 1 auto; justify-content: center; }

	/* Fix finder: topics in one swipeable row, the first five fixes, no preview */
	.nv-head { margin-bottom: 20px; }
	.nv-head__aside { display: none; }
	.nv-finder__search { padding: 0 18px; min-height: 64px; }
	.nv-finder__search input { font-size: 17px; }
	.nv-finder__topics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px 14px; }
	.nv-finder__topics::-webkit-scrollbar { display: none; }
	.nv-topic { flex: 0 0 auto; }
	.nv-finder__list { max-height: none; overflow: visible; padding: 6px; }
	.nv-finder__row { padding: 13px 12px; }
	.nv-finder__preview { display: none; }
	.nv-finder__all { text-align: center; }

	/* Typing Quest: the pitch, one row of modes, one button, swipeable features */
	.nv-quest__hero { padding: 26px 22px 24px; gap: 0; }
	.nv-quest__title { margin-top: 16px !important; font-size: 52px; }
	.nv-quest__tag { margin-top: 12px !important; font-size: 21px; }
	.nv-quest__body, .nv-quest__bridge, .nv-crate { display: none; }
	.nv-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 20px -22px 0 !important; padding: 0 22px; }
	.nv-modes::-webkit-scrollbar { display: none; }
	.nv-modes li { flex: 0 0 auto; }
	.nv-quest__ctas { margin-top: 20px; }
	.nv-quest__ctas .nv-btn { width: 100%; justify-content: center; }
	.nv-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.nv-tiles::-webkit-scrollbar { display: none; }
	.nv-tile { flex: 0 0 78%; scroll-snap-align: start; padding: 22px; border-bottom: 0; transform: none !important; }
	.nv-tile:last-child { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.nova-js [data-nova-reveal] { opacity: 1; transform: none; }
}
