/* Leaderboard chrome: share popover, onboarding, tour, sector tabs and the
   comparison banner. Loaded by every board page. */
/* share panel: X, LinkedIn and copy, anchored under whichever Share button opened it */
.share-pop { position: absolute; z-index: 40; width: 204px; background: #fff; border: 1px solid var(--ink); box-shadow: 4px 4px 0 rgba(9, 8, 8, 0.85); padding: 5px; animation: fsgIn 100ms ease-out; }
.share-pop button { appearance: none; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--ink); padding: 9px 10px; font: inherit; font-size: 12px; font-weight: 600; text-align: left; }
.share-pop button:hover { background: var(--bg); }
.share-pop button.done { color: var(--brick); }
.share-pop svg { width: 14px; height: 14px; flex: none; }
/* other boards: the Models menu in the app bar, built on the share panel */
.app-bar [data-models] .caret { width: 10px; height: 10px; margin-left: -2px; }
.app-bar [data-models][aria-expanded="true"] { background: var(--ink); color: #FEFCFB; border-color: #FEFCFB; }
.models-pop { width: 318px; padding: 5px 5px 6px; }
.models-pop .mp-h { padding: 11px 10px 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.models-pop a { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 11px; padding: 8px 10px; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; }
.models-pop a:hover, .models-pop a:focus-visible { background: var(--bg); outline: 0; }
.models-pop a.on { border-left-color: var(--brick); background: var(--bg); }
.models-pop img, .models-pop svg { width: 20px; height: 20px; object-fit: contain; }
.models-pop svg { fill: none; stroke: var(--brick); stroke-width: 1.4; }
.models-pop b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }
.models-pop small { display: block; margin-top: 1px; font-size: 11px; line-height: 1.3; color: var(--ink-3); }
/* Fullscreen must sit above every piece of site chrome: the nav (50), the
   announcement bar (60) and the cookie toast (100) all used to peek over or
   through it. */
.app.fs { position: fixed; inset: 14px; z-index: 130; height: auto; min-height: 0; }
.fs-back { position: fixed; inset: 0; z-index: 129; background: rgba(9, 8, 8, 0.5); }
.fs-suggest { position: absolute; inset: 0; z-index: 9; background: rgba(9, 8, 8, 0.48); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: fsgIn 90ms ease-out; }
@keyframes fsgIn { from { opacity: 0; } to { opacity: 1; } }
.fs-suggest p { margin: 0; color: #FEFCFB; font-size: 14px; font-weight: 600; text-shadow: 0 1px 8px rgba(9, 8, 8, 0.5); }
.fsg-row { display: flex; gap: 10px; }
.fsg-go { appearance: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--brick); background: var(--brick); color: #FEFCFB; padding: 10px 18px; box-shadow: 3px 3px 0 rgba(9, 8, 8, 0.6); }
.fsg-go:hover { background: #A93409; border-color: #A93409; }
.fsg-keep { appearance: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid #FEFCFB; background: none; color: #FEFCFB; padding: 10px 18px; }
.fsg-keep:hover { background: rgba(254, 252, 251, 0.14); }
.guide-link { appearance: none; cursor: pointer; border: 0; background: none; color: var(--ink-3); padding: 5px 2px; font: inherit; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.guide-link:hover { color: var(--brick); }
.guide-panel { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 22px; box-sizing: border-box; background: rgba(9, 8, 8, 0.48); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.guide-card { position: relative; width: min(880px, 100%); height: min(560px, 100%); min-height: min(460px, 100%); overflow: hidden; border: 1px solid rgba(254, 252, 251, .55); border-radius: 0; background: #12100E; box-shadow: 7px 7px 0 rgba(9, 8, 8, .9), 0 32px 90px rgba(9, 8, 8, .38); animation: guideCardIn 280ms cubic-bezier(.22, 1, .36, 1); }
@keyframes guideCardIn { from { opacity: 0; transform: translateY(8px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
.guide-head { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; gap: 9px; box-sizing: border-box; padding: 0 16px 0 18px; color: #FEFCFB; background: linear-gradient(180deg, rgba(18, 16, 14, .95), rgba(18, 16, 14, .58), transparent); pointer-events: none; }
.guide-head i { width: 7px; height: 7px; flex: none; background: var(--brick); }
.guide-head b { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: rgba(254, 252, 251, .76); }
.guide-count { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: rgba(254, 252, 251, .58); }
/* a plain quiet cross, not a control that invites clicking */
.guide-close { appearance: none; cursor: pointer; width: 29px; height: 29px; border: 0; border-radius: 0; background: none; color: rgba(254, 252, 251, .5); font: inherit; font-size: 16px; line-height: 1; pointer-events: auto; transition: color 140ms ease; }
.guide-close:hover { color: #FEFCFB; }
/* The introduction reads as a carousel: slides sit side by side and the track
   scrolls horizontally. Vertical snapping read as page scroll and felt wrong. */
.guide-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; background: #12100E; outline: none; }
.guide-track::-webkit-scrollbar { display: none; }
.guide-slide { --gx: 0px; --gy: 0px; position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; isolation: isolate; background: #12100E; }
/* Side arrows: the intuitive next/back for a horizontal carousel. */
.guide-arr { position: absolute; z-index: 8; top: 50%; transform: translateY(-50%); appearance: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(254, 252, 251, .34); background: rgba(18, 16, 14, .62); color: #FEFCFB; padding: 0; transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease; }
.guide-arr svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guide-arr:hover { background: var(--brick); border-color: var(--brick); }
.guide-arr.prev { left: 12px; }
.guide-arr.next { right: 12px; }
.guide-arr[hidden] { display: none; }
.guide-cta0 { margin-top: 16px; appearance: none; cursor: pointer; border: 1px solid var(--brick); background: var(--brick); color: #FEFCFB; padding: 10px 18px; font: inherit; font-size: 12.5px; font-weight: 650; transition: background 120ms ease, transform 120ms ease; }
.guide-cta0:hover { background: #A93409; border-color: #A93409; transform: translateY(-1px); }
.guide-arr:focus-visible, .guide-cta0:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
.guide-slide::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url(/assets/patterns/pattern-arch.png) no-repeat center 70% / 118%; opacity: .16; image-rendering: pixelated; }
.guide-slide::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(18, 16, 14, .98) 0, rgba(18, 16, 14, .83) 26%, rgba(18, 16, 14, .16) 68%, transparent 100%), linear-gradient(0deg, rgba(18, 16, 14, .95) 0, rgba(18, 16, 14, .15) 42%, rgba(18, 16, 14, .08) 100%); pointer-events: none; }
.guide-stage { position: absolute; inset: 0; z-index: 0; transform: translate3d(var(--gx), var(--gy), 0) scale(1.015); transition: transform 450ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease; }
.guide-slide:not(.is-active) .guide-stage { filter: saturate(.6) brightness(.72); }
.guide-step-no { position: absolute; z-index: 2; right: 26px; top: 42px; font-family: var(--font-display); font-size: 88px; line-height: 1; color: rgba(254, 252, 251, .075); letter-spacing: -.07em; pointer-events: none; }
.guide-copy-overlay { position: absolute; z-index: 3; left: 28px; bottom: 76px; width: min(390px, calc(100% - 220px)); border-left: 3px solid var(--brick); padding: 2px 0 3px 17px; color: #FEFCFB; text-shadow: 0 1px 18px rgba(9, 8, 8, .55); }
.guide-copy-overlay em { display: block; margin-bottom: 9px; font-family: var(--font-mono); font-size: 9px; font-style: normal; letter-spacing: .09em; text-transform: uppercase; color: #E98459; }
.guide-copy-overlay h2 { margin: 0; max-width: 360px; color: #FEFCFB; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.guide-copy-overlay p { margin: 10px 0 0; max-width: 390px; font-size: 13.5px; line-height: 1.55; color: rgba(254, 252, 251, .74); }
.guide-foot { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 58px; display: flex; align-items: center; gap: 12px; box-sizing: border-box; padding: 0 16px 0 18px; border-top: 1px solid rgba(254, 252, 251, .18); background: rgba(18, 16, 14, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.guide-foot .guide-next { margin-left: auto; }
.guide-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(24px, 46px); gap: 5px; }
.guide-progress button { position: relative; appearance: none; cursor: pointer; height: 18px; border: 0; background: none; padding: 0; }
/* every bar is absolutely centered on the same integer row, so completed and
   upcoming bars can never sit at different heights; completed steps are dim
   brick and the current one full brick, so position stays readable */
.guide-progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(254, 252, 251, .24); transition: background 160ms ease; }
.guide-progress button:hover::before { background: rgba(254, 252, 251, .6); }
.guide-progress button.on::before { background: rgba(200, 65, 13, .5); }
.guide-progress button[aria-current="step"]::before { background: var(--brick); }
.guide-back { margin-left: auto; appearance: none; cursor: pointer; border: 0; background: none; color: rgba(254, 252, 251, .62); padding: 8px 5px; font: inherit; font-size: 11.5px; font-weight: 600; }
.guide-back:hover { color: #FEFCFB; }
.guide-next { appearance: none; cursor: pointer; border: 1px solid var(--brick); border-radius: 0; background: var(--brick); color: #FEFCFB; padding: 9px 16px; font: inherit; font-size: 11.5px; font-weight: 650; transition: background 120ms ease, transform 120ms ease; }
.guide-next:hover { background: #A93409; border-color: #A93409; transform: translateY(-1px); }

/* Homepage-derived visual stage: arch wallpaper, floating product windows, real logos. */
.gscene { position: absolute; inset: 0; color: #2D2A27; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.g-layer { opacity: .38; transform: translateY(13px); transition: opacity 420ms ease, transform 520ms cubic-bezier(.22, 1, .36, 1); transition-delay: var(--delay, 0ms); }
.guide-slide.is-active .g-layer { opacity: 1; transform: none; }
.g-window { position: absolute; overflow: hidden; border-radius: 10px; background: #fff; color: #23201D; box-shadow: 0 30px 64px rgba(0, 0, 0, .56), 0 4px 14px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .25); }
.gw-bar { height: 30px; display: flex; align-items: center; gap: 5px; box-sizing: border-box; padding: 0 11px; border-bottom: 1px solid #EFE9E4; background: linear-gradient(#FDFCFB, #F8F5F2); }
.gw-bar i { width: 7px; height: 7px; border-radius: 50%; }
.gw-bar i:nth-child(1) { background: #FF5F57; }
.gw-bar i:nth-child(2) { background: #FEBC2E; }
.gw-bar i:nth-child(3) { background: #28C840; }
.gw-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 8px; color: #A39A93; }
.gw-app { height: 34px; display: flex; align-items: center; gap: 7px; box-sizing: border-box; padding: 0 12px; border-bottom: 1px solid #EFE9E4; background: #FEFCFB; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; }
.gw-app::before { content: ""; width: 6px; height: 6px; background: var(--brick); }
.gw-app em { margin-left: auto; font-style: normal; color: #A39A93; }
.gw-body { padding: 12px; }
.g-repo-window { right: 34px; top: 54px; width: 560px; }
.g-repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.g-repo-card { border: 1px solid #E8E2DD; padding: 9px 10px; background: #fff; }
.g-repo-card b { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 9px; }
.g-logos { display: flex; gap: 7px; align-items: center; }
.g-logos img { width: 14px; height: 14px; object-fit: contain; }
.g-toast { position: absolute; display: flex; align-items: center; gap: 9px; border-radius: 8px; background: #fff; padding: 10px 13px; font-size: 11px; font-weight: 600; box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.g-toast i { display: grid; place-items: center; width: 19px; height: 19px; background: rgba(200, 65, 13, .12); color: var(--brick); font-style: normal; }
.g-repo-toast { right: 56px; top: 326px; }
.g-agent-chip { position: absolute; right: 326px; top: 338px; display: flex; align-items: center; gap: 9px; border: 1px dashed rgba(254, 252, 251, .5); padding: 10px 13px; color: #FEFCFB; font-family: var(--font-mono); font-size: 9px; }
.g-agent-chip img { width: 20px; height: 20px; }
.g-live { width: 6px; height: 6px; background: var(--brick); animation: gPulse 1.1s ease-in-out infinite; }
.g-context-stack { position: absolute; left: 390px; top: 70px; display: grid; gap: 8px; }
.g-context-card { width: 150px; display: flex; align-items: center; gap: 9px; box-sizing: border-box; border: 1px solid rgba(254, 252, 251, .22); background: rgba(254, 252, 251, .1); color: #FEFCFB; padding: 9px 11px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; }
.g-context-card i { width: 8px; height: 8px; background: var(--brick); }
.g-choice-window { right: 42px; top: 74px; width: 290px; }
.g-choice-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid #EFE9E4; padding: 9px 10px; font-size: 11px; }
.g-choice-row:first-child { border-top: 0; }
.g-choice-row img { width: 20px; height: 20px; object-fit: contain; }
.g-choice-row b { margin-left: auto; font-family: var(--font-mono); font-size: 8px; font-weight: 500; color: #A39A93; text-transform: uppercase; }
.g-choice-row.on { border-left: 3px solid var(--brick); background: rgba(200, 65, 13, .06); }
.g-choice-row.on b { color: var(--brick); }
.g-context-line { position: absolute; left: 542px; top: 173px; width: 62px; height: 1px; background: repeating-linear-gradient(90deg, var(--brick) 0 5px, transparent 5px 10px); animation: gFlow 1.2s linear infinite; }
.g-sbx-flow { position: absolute; right: 52px; top: 58px; width: 510px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-sbx-repo, .g-sbx-verdict { display: flex; align-items: center; gap: 10px; border-radius: 8px; background: #fff; padding: 9px 14px; box-shadow: 0 15px 34px rgba(0, 0, 0, .42); font-size: 11px; }
.g-sbx-repo b { font-family: var(--font-mono); font-size: 10px; }
.g-sbx-arrow { color: rgba(254, 252, 251, .5); line-height: 1; }
.g-sbx-box { position: relative; border: 1.5px dashed rgba(254, 252, 251, .48); padding: 18px 22px; }
.g-sbx-box > em { position: absolute; top: -7px; left: 11px; background: #12100E; padding: 0 6px; color: rgba(254, 252, 251, .65); font-family: var(--font-mono); font-size: 8px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.g-sbx-agent { display: flex; align-items: center; gap: 11px; border-radius: 8px; background: #fff; padding: 10px 15px; box-shadow: 0 15px 34px rgba(0, 0, 0, .42); }
.g-sbx-agent img { width: 24px; height: 24px; }
.g-sbx-agent span { font-family: var(--font-mono); font-size: 10px; line-height: 1.45; }
.g-sbx-agent small { display: block; color: #877F79; }
.g-sbx-verdict i { display: grid; place-items: center; width: 19px; height: 19px; background: rgba(45, 45, 45, .12); font-style: normal; }
.g-sbx-term { margin-top: 10px; border-radius: 6px; background: #171412; color: #C9C2BB; padding: 9px 12px; font-family: var(--font-mono); font-size: 8.5px; line-height: 1.75; text-align: left; }
.g-sbx-term b { color: #FEFCFB; font-weight: 500; }
.g-sbx-term em { color: #E98459; font-style: normal; }
/* slide 0: welcome — the leaderboard front and center, both agents beside it */
.g-lb-window { right: 60px; top: 62px; width: 330px; }
.g-wl-note { max-width: 200px; text-align: left; font-size: 10.5px; font-weight: 600; line-height: 1.5; }
/* slide "every run is open": a miniature of the real session drawer */
.g-sess { position: absolute; right: 30px; top: 40px; width: 560px; border-radius: 9px; overflow: hidden; background: #141110; border: 1px solid #090808; box-shadow: 0 30px 64px rgba(0, 0, 0, .56), 0 4px 14px rgba(0, 0, 0, .3); font-family: var(--font-mono); text-align: left; }
.g-sess-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #221E1B; border-bottom: 1px solid #090808; }
.g-sess-bar i { width: 9px; height: 9px; border-radius: 50%; }
.g-sess-bar i:nth-child(1) { background: #FF5F57; }
.g-sess-bar i:nth-child(2) { background: #FEBC2E; }
.g-sess-bar i:nth-child(3) { background: #28C840; }
.g-sess-bar span { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #9A928A; }
.g-sess-bar img { width: 12px; height: 12px; object-fit: contain; }
.g-sess-body { padding: 11px 14px 13px; font-size: 10px; line-height: 1.8; color: #D9D4CF; }
.g-sess-user { display: flex; gap: 8px; color: #EFECE9; margin-bottom: 5px; }
.g-sess-user i { color: #FF6B2B; font-style: normal; flex: none; }
.g-sess-think { color: #8F8880; font-style: italic; }
.g-sess-tool { display: flex; gap: 8px; }
.g-sess-tool i { font-style: normal; color: #A6A6A6; flex: none; }
.g-sess-tool.hot i { color: #FF6B2B; }
.g-sess-tool b { color: #EFECE9; font-weight: 600; }
.g-sess-tool span { color: #9A928A; }
.g-sess-diff { margin: 6px 0; background: #1B1817; border-left: 2px solid #2C2825; padding: 7px 10px; color: #C9C2BB; font-size: 9.5px; line-height: 1.7; }
.g-sess-diff ins { color: #E98459; text-decoration: none; display: block; }
.g-sess-final { border-top: 1px solid #2C2825; margin-top: 8px; padding-top: 8px; color: #EFECE9; }
.g-sess-final em { display: block; font-style: normal; color: #FF6B2B; font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px; }
/* slide "thousands of runs": the leaderboard being explored on a loop —
   open a sector, open a player, open a run */
.g-navdemo { position: absolute; right: 34px; top: 46px; width: 560px; height: 348px; }
.g-navdemo .g-window { position: absolute; inset: 0; width: auto; }
.g-nd-stage { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; background: #F8F5F1; }
.g-nd-scene { position: absolute; inset: 0; padding: 12px; opacity: 0; animation: gNdScene 12s infinite; }
.g-nd-scene.s2 { animation-delay: 4s; }
.g-nd-scene.s3 { animation-delay: 8s; }
@keyframes gNdScene { 0%, 2% { opacity: 0; } 6%, 31% { opacity: 1; } 35%, 100% { opacity: 0; } }
.g-nd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-nd-card { border: 1px solid #E8E2DD; background: #fff; padding: 10px 11px; font-size: 10.5px; font-weight: 650; }
.g-nd-card small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 8px; font-weight: 400; color: #A39A93; }
.g-nd-card.hit { animation: gNdHit1 12s infinite; }
@keyframes gNdHit1 { 0%, 15% { border-color: #E8E2DD; box-shadow: none; } 18%, 32% { border-color: var(--brick); box-shadow: 2px 2px 0 rgba(200, 65, 13, .5); } 35%, 100% { border-color: #E8E2DD; box-shadow: none; } }
.g-nd-row.hit2 { animation: gNdHit2 12s infinite; }
@keyframes gNdHit2 { 0%, 48% { background: transparent; } 51%, 65% { background: rgba(200, 65, 13, .1); } 68%, 100% { background: transparent; } }
.g-nd-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 9px; font-size: 12px; font-weight: 700; }
.g-nd-head em { font-style: normal; font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--brick); border: 1px solid rgba(200, 65, 13, .45); padding: 1px 5px; }
.g-nd-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid #EFE9E4; padding: 8px 6px; font-size: 11px; font-weight: 600; }
.g-nd-row:first-of-type { border-top: 0; }
.g-nd-row img { width: 18px; height: 18px; object-fit: contain; }
.g-nd-row b { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.g-nd-run { border-radius: 7px; background: #141110; color: #D9D4CF; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.8; padding: 10px 12px; text-align: left; }
.g-nd-run .u { color: #EFECE9; }
.g-nd-run .u i { color: #FF6B2B; font-style: normal; }
.g-nd-run .t b { color: #EFECE9; font-weight: 600; }
.g-nd-run .t span { color: #9A928A; }
.g-nd-run .v { margin-top: 6px; padding-top: 6px; border-top: 1px solid #2C2825; color: #EFECE9; }
.g-nd-run .v em { font-style: normal; color: #FF6B2B; }
.g-nd-cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 18px; height: 18px; animation: gNdCursor 12s infinite; pointer-events: none; }
.g-nd-cursor svg { width: 18px; height: 18px; fill: #FEFCFB; stroke: #090808; stroke-width: 1.2; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .5)); }
.g-nd-cursor::after { content: ""; position: absolute; left: -7px; top: -7px; width: 28px; height: 28px; border: 2px solid var(--brick); border-radius: 50%; opacity: 0; transform: scale(.4); animation: gNdClick 12s infinite; }
@keyframes gNdCursor {
  0% { transform: translate(430px, 320px); }
  13% { transform: translate(118px, 106px); } 32% { transform: translate(118px, 106px); }
  46% { transform: translate(180px, 132px); } 65% { transform: translate(180px, 132px); }
  80% { transform: translate(300px, 240px); } 92% { transform: translate(300px, 240px); }
  100% { transform: translate(430px, 320px); }
}
@keyframes gNdClick {
  14%, 46.5%, 81% { opacity: 0; transform: scale(.4); }
  17%, 49.5%, 84% { opacity: .9; transform: scale(1); }
  20%, 52.5%, 87% { opacity: 0; transform: scale(1.25); }
  0%, 13%, 21%, 45%, 54%, 79%, 88%, 100% { opacity: 0; }
}
.g-run-window { right: 28px; top: 50px; width: 610px; height: 390px; }
.g-run-layout { display: grid; grid-template-columns: 92px 1fr; height: 326px; }
.g-run-nav { border-right: 1px solid #EFE9E4; padding: 10px 8px; background: #FBF9F7; }
.g-run-nav span { display: block; border-left: 2px solid transparent; padding: 7px 7px; font-family: var(--font-mono); font-size: 7.5px; text-transform: uppercase; color: #A39A93; }
.g-run-nav span.on { border-left-color: var(--brick); color: var(--brick); background: #fff; }
.g-run-body { padding: 11px 13px; }
.g-run-prompt { border-left: 3px solid var(--brick); background: #FBF7F4; padding: 8px 10px; font-size: 10px; line-height: 1.45; }
.g-tool-call { display: flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid #EFE9E4; padding: 7px 9px; font-family: var(--font-mono); font-size: 8px; }
.g-tool-call i { width: 6px; height: 6px; background: var(--brick); }
.g-diff { margin-top: 8px; background: #171412; color: #C9C2BB; padding: 8px 10px; font-family: var(--font-mono); font-size: 7.5px; line-height: 1.6; }
.g-diff ins { color: #E98459; text-decoration: none; }
.g-verdict { margin-top: 8px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(200, 65, 13, .3); padding: 7px 9px; font-size: 9px; }
.g-verdict b { margin-left: auto; color: var(--brick); }
.g-scale-window { right: 34px; top: 55px; width: 590px; }
.g-kpis { display: flex; gap: 7px; }
.g-kpi { flex: 1; border: 1px solid #E8E2DD; padding: 8px 10px; }
.g-kpi b { display: block; font-size: 17px; }
.g-kpi span { font-family: var(--font-mono); font-size: 7px; letter-spacing: .06em; text-transform: uppercase; color: #A39A93; }
.g-run-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 10px; }
.g-run-grid i { aspect-ratio: 1; background: #E5DED7; }
.g-run-grid i.hot { background: var(--brick); animation: gPulse 1.8s ease-in-out infinite; animation-delay: var(--delay); }
.g-scale-toast { right: 64px; top: 358px; }
@keyframes gPulse { 0%, 100% { opacity: .38; } 50% { opacity: 1; } }
@keyframes gFlow { to { background-position: 20px 0; } }
.tour-mark { position: absolute; z-index: 10; box-sizing: border-box; border: 2px solid var(--brick); border-radius: 0; box-shadow: 0 0 0 4px rgba(200, 65, 13, 0.1); pointer-events: none; transition: top 220ms cubic-bezier(.22, 1, .36, 1), left 220ms cubic-bezier(.22, 1, .36, 1), width 220ms cubic-bezier(.22, 1, .36, 1), height 220ms cubic-bezier(.22, 1, .36, 1), opacity 120ms ease; }
/* When the step waits for a real click, the frame breathes so the invitation
   is the highlight itself, not the popover text. */
.tour-mark.click::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--brick); animation: tourPulse 1.7s ease-out infinite; pointer-events: none; }
@keyframes tourPulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.035); } }
.tour-pop { position: absolute; z-index: 11; width: min(300px, calc(100% - 24px)); box-sizing: border-box; border: 1px solid var(--ink); border-radius: 0; background: #FEFCFB; padding: 17px 17px 13px; box-shadow: 5px 5px 0 rgba(9, 8, 8, 0.85), 0 18px 55px rgba(9, 8, 8, 0.24); transition: top 220ms cubic-bezier(.22, 1, .36, 1), left 220ms cubic-bezier(.22, 1, .36, 1), opacity 120ms ease; }
.tour-mark.is-settling, .tour-pop.is-settling { opacity: 0; }
.tour-count { display: block; padding-right: 30px; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brick); }
.tour-pop h3 { margin: 7px 28px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.tour-pop p { margin: 8px 0 12px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.tour-action { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 9px 11px; border: 1px dashed rgba(200, 65, 13, 0.55); background: rgba(200, 65, 13, 0.06); color: var(--brick); font-size: 12px; font-weight: 650; }
.tour-action i { font-style: normal; animation: tourNudge 1.1s ease-in-out infinite; }
@keyframes tourNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.tour-next { appearance: none; cursor: pointer; width: 100%; border: 1px solid var(--brick); border-radius: 0; background: var(--brick); color: #FEFCFB; padding: 8px 12px; font: inherit; font-size: 11.5px; font-weight: 650; }
.tour-next:hover { background: #A93409; border-color: #A93409; }
.tour-skip { display: block; margin: 4px auto 0; appearance: none; cursor: pointer; border: 0; background: none; color: var(--ink-4); padding: 6px 4px 2px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.tour-skip:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tour-mark.click::after, .tour-action i { animation: none; } }
.guide-close:focus-visible, .guide-back:focus-visible, .guide-next:focus-visible, .guide-link:focus-visible,
.tour-next:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
@media (max-width: 780px) {
  .guide-panel { padding: 10px; }
  .guide-card { width: 100%; height: min(620px, 100%); min-height: min(500px, 100%); }
  .guide-slide::after { background: linear-gradient(90deg, rgba(18, 16, 14, .94), rgba(18, 16, 14, .36) 78%, transparent), linear-gradient(0deg, rgba(18, 16, 14, .98), rgba(18, 16, 14, .22) 62%, transparent); }
  .guide-copy-overlay { left: 18px; bottom: 76px; width: calc(100% - 36px); box-sizing: border-box; padding-left: 14px; }
  .guide-copy-overlay h2 { max-width: 320px; font-size: 29px; }
  .guide-copy-overlay p { max-width: 340px; font-size: 12.5px; }
  .guide-step-no { right: 18px; font-size: 70px; }
  .guide-progress { width: min(200px, 44vw); grid-auto-columns: minmax(20px, 1fr); }
  .guide-foot { gap: 8px; padding-inline: 12px; }
  .guide-arr { width: 34px; height: 34px; }
  .guide-arr.prev { left: 8px; }
  .guide-arr.next { right: 8px; }
  .gscene { transform: scale(.8); transform-origin: 70% 8%; }
}
@media (max-width: 520px) {
  .guide-next { margin-left: auto; }
  .gscene { transform: scale(.68); transform-origin: 66% 6%; }
}
@media (max-width: 640px) {
  .app-bar { gap: 7px; padding-inline: 9px; }
  .app-ttl em, .app-bar [data-share] { display: none; }
  .app-bar .fsbtn { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card, .g-layer, .guide-stage, .g-live, .g-run-grid i.hot, .g-context-line,
  .g-nd-scene, .g-nd-card.hit, .g-nd-row.hit2 { animation: none !important; transition: none !important; }
  /* the demo loop freezes on its first frame; the cursor means nothing still */
  .g-nd-scene:first-child { opacity: 1 !important; }
  .g-nd-cursor { display: none; }
  .guide-track { scroll-behavior: auto; }
}
.topcats { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--ink); background: #fff; flex: none; overflow-x: auto; scrollbar-width: none; }
.topcats::-webkit-scrollbar { display: none; }
.comparison-notice { display: flex; align-items: center; gap: 16px; flex: none; padding: 12px 24px; background: #F5E9DF; border-bottom: 1px solid #DFC7B5; color: var(--ink); }
.comparison-notice[hidden] { display: none; }
.comparison-notice .cn-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 1.5; }
.comparison-notice .cn-title { font-weight: 650; }
.comparison-notice .cn-transition { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.comparison-notice .cn-divider { color: #65554A; }
.comparison-notice .cn-model { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.comparison-notice .cn-model img { width: 23px; height: 23px; object-fit: contain; }
.comparison-notice .cn-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-left: auto; }
.comparison-notice .cn-link { flex: none; color: var(--brick); font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.comparison-notice .cn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.comparison-notice .cn-close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #65554A; cursor: pointer; }
.comparison-notice .cn-close:hover { background: #EBD8C9; color: var(--ink); }
.comparison-notice .cn-close svg { width: 14px; height: 14px; }
.comparison-notice :focus-visible { outline: 2px solid var(--brick); outline-offset: 4px; }
@media (max-width: 760px) {
  .comparison-notice { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 12px 48px 12px 16px; }
  .comparison-notice .cn-copy { min-width: 0; font-size: 12px; }
  .comparison-notice .cn-transition { gap: 7px; }
  .comparison-notice .cn-model { gap: 5px; font-size: 14px; }
  .comparison-notice .cn-model img { width: 20px; height: 20px; }
  .comparison-notice .cn-links { margin-left: 0; }
  .comparison-notice .cn-close { position: absolute; top: 8px; right: 8px; }
}
.tcard { position: relative; appearance: none; cursor: pointer; font: inherit; flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); background: none; border: 0; padding: 12px 11px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: color 130ms ease; }
.tcard::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; background: transparent; transition: background 130ms ease; }
.tcard .tic { display: contents; }
.tcard .tic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tcard b { font-weight: inherit; }
.tcard em { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-4); margin-left: 2px; }
.tcard:hover { color: var(--ink); }
.tcard.on { color: var(--ink); font-weight: 700; }
.tcard.on::after { background: var(--brick); }
.tcard.soon { color: var(--ink-4); font-weight: 500; }
/* the tabs on the same ink as the bar */
.topcats { background: var(--ink); border-bottom-color: var(--ink); }
.tcard { color: rgba(255,255,255,.62); }
.tcard:hover, .tcard.on { color: #fff; }
.tcard em { color: rgba(255,255,255,.4); }
.tcard.soon { color: rgba(255,255,255,.35); }
