/* Karambit.Network / home v6 — page sections. Shared chrome lives in /nc_assets/css/kn-site.css. */
/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; font-size: 15px; }
.speed-line { position: relative; width: 44px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--red-deep); }
.speed-line::after { content: ''; position: absolute; inset: 0; background: var(--red-hot); transform: translateX(-100%); animation: dash-run 2.6s var(--ease-out) .9s infinite; }
.hero-title { margin: 22px 0 26px; font-size: clamp(56px, 8.4vw, 120px); line-height: .9; letter-spacing: -.055em; }
.hero-title .ln { display: block; overflow: hidden; padding: .04em .1em .08em 0; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; transform-origin: 0 100%; }
.hero-title .ln-hot > span { color: var(--red-hot); position: relative; }
.hero-title .ln-hot > span::after { content: ''; position: absolute; left: -.04em; right: -.12em; bottom: .07em; height: .07em; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.hero-lead { max-width: 34em; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

/* Server console */
.console { position: relative; border-radius: var(--radius-l); background: linear-gradient(180deg, #151824, #0f1118 60%); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px #000, 0 0 0 1px #ffffff05 inset; overflow: hidden; isolation: isolate; }
.console-art { position: relative; aspect-ratio: 16 / 7.4; overflow: hidden; background: #0c0d13; }
.console-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 6s var(--ease-out); }
.console-art img.is-loaded { opacity: 1; transform: scale(1); }
.console-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #151824 100%), linear-gradient(90deg, #0c0d1355, transparent 40%); }
.console-art-empty { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #ffffff04 0 12px, transparent 12px 24px), radial-gradient(ellipse at 70% 30%, #e0334a30, transparent 60%); }
.status-chip { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 30px; background: #08090dcc; backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; color: var(--ink); }
.console-body { position: relative; padding: 4px 26px 26px; margin-top: -26px; z-index: 1; }
.console-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.console-map { margin: 6px 0 18px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; overflow-wrap: anywhere; min-height: 1.15em; }
.console-map .prefix { color: var(--dim); font-weight: 500; }
.capacity { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.capacity-bar { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 14px; }
.capacity-bar span { border-radius: 2px; background: #ffffff10; transform-origin: 50% 100%; transition: background-color .4s; }
.capacity-bar span.on { background: var(--red-hot); box-shadow: 0 0 10px -2px var(--red-hot); }
.capacity-text { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 7.5em; text-align: right; }
.address { margin-bottom: 12px; }
.address-label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
.address-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #08090d; }
.address-row code { flex: 1; min-width: 0; font: 600 16px/1 var(--mono); color: var(--ink); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); font-size: 14px; font-weight: 700; transition: background-color .18s, border-color .18s, color .18s; }
.copy-btn:hover { border-color: #3a3f52; }
.copy-btn.is-done { color: var(--live); border-color: #4fd88c55; }
.console-help { margin-top: 12px; color: var(--dim); font-size: 13px; line-height: 1.55; }
.console-help kbd { font: 12px var(--mono); padding: 1px 5px; border-radius: 4px; background: #ffffff0b; color: var(--muted); white-space: nowrap; }
.console-refresh { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff06; }
.console-refresh span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, #e0334a88); transform-origin: 0 50%; transform: scaleX(0); }
.leaders { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.leaders-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.leaders-head h3 { font-size: 15px; letter-spacing: 0; }
.leaders-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; }
.leaders-head a:hover { color: var(--ink); }
.leaders-head a .i { width: 14px; height: 14px; }
.leaders-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: lead; }
.leaders-list li { counter-increment: lead; display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.leaders-list li::before { content: counter(lead); color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.leaders-list li:first-child::before { color: var(--amber); }
.leaders-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 500; }
.leaders-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.leaders-list .t { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }
.leaders-list .gap { display: block; font-size: 11px; color: var(--dim); }


/* Courses in rotation: a spotlight with real stats beside a searchable rail of every map. */
.rotation { padding: 24px 0 clamp(64px, 8vw, 110px); }
.rotation-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; height: clamp(440px, 42vw, 560px); }
.spotlight { position: relative; display: block; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--panel); text-decoration: none; isolation: isolate; }
.spot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease; }
.spot-img.is-front { opacity: 1; animation: kenburns 9s ease-out forwards; }
.spotlight::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #08090df2 0%, #08090d99 32%, transparent 62%), linear-gradient(90deg, #08090daa, transparent 55%); }
.spot-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.spot-link:focus-visible { outline-offset: -4px; }
.spot-info { pointer-events: none; position: absolute; z-index: 2; left: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); bottom: clamp(22px, 3vw, 34px); }
.spot-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.spot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: #08090dbb; backdrop-filter: blur(6px); font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.spot-chip.is-live { background: var(--red); color: #fff; font-weight: 700; }
.spot-chip.is-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.spot-name { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.045em; line-height: .95; text-transform: capitalize; text-shadow: 0 4px 30px #0009; }
.spot-name .tech { display: block; margin-top: 10px; font: 500 14px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.spot-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; }
.spot-stats div { display: grid; }
.spot-stats dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.spot-stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spot-stats dd.mono { font: 600 20px var(--mono); padding-top: 3px; }
.spot-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px; border-radius: var(--radius-s); background: #ffffffe6; color: var(--void); font-weight: 700; font-size: 15px; transition: background-color .2s; }
.spotlight:hover .spot-cta { background: #fff; }
.spotlight:hover .spot-cta .i { transform: translateX(3px); }
.spot-cta .i { transition: transform .25s var(--ease-out); }
.spot-anim > * { animation: spot-in .55s var(--ease-out) both; }
.spot-anim > :nth-child(2) { animation-delay: .05s; } .spot-anim > :nth-child(3) { animation-delay: .1s; } .spot-anim > :nth-child(4) { animation-delay: .15s; }
.spot-nav { position: absolute; z-index: 4; top: 16px; right: 16px; display: flex; gap: 6px; }
.spot-nav button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff2a; background: #08090d99; backdrop-filter: blur(6px); color: var(--ink); transition: background-color .18s; }
.spot-nav button:hover { background: #08090ddd; }
.spot-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff10; }
.spot-progress span { display: block; height: 100%; background: var(--red-hot); transform-origin: 0 50%; transform: scaleX(0); }
.spot-progress span.is-running { animation: refresh var(--spot-ms, 6000ms) linear forwards; }
.rotation.is-holding .spot-progress span { animation-play-state: paused; }
.rail { display: flex; flex-direction: column; min-height: 0; border-radius: var(--radius-l); border: 1px solid var(--line-soft); background: #10121acc; overflow: hidden; }
.rail-head { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.rail-head .search { height: 38px; }
.rail-count { display: block; margin-top: 8px; padding-left: 2px; font-size: 13px; color: var(--dim); }
.rail-list { position: relative; flex: 1; overflow-y: auto; margin: 0; padding: 6px; list-style: none; scrollbar-width: thin; scrollbar-color: #2c3142 transparent; overscroll-behavior: contain; }
.rail-item { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: var(--radius-m); background: none; text-align: left; transition: background-color .15s; }
.rail-item:hover { background: #ffffff07; }
.rail-item[aria-current="true"] { background: #e0334a17; }
.rail-item[aria-current="true"]::before { content: ''; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-hot); }
.rail-item img { width: 84px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--panel-2); filter: saturate(.8); }
.rail-item[aria-current="true"] img { filter: none; }
.rail-item b { display: block; font-weight: 700; font-size: 15px; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-item small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.rail-item.is-live small { color: var(--red-hot); font-weight: 700; }
.rail-item.is-live small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rail-empty { padding: 24px 12px; color: var(--dim); text-align: center; }

/* Pulse */
.pulse { padding-bottom: clamp(64px, 8vw, 110px); }
.pulse-sentence { max-width: 22em; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; color: var(--muted); margin-bottom: 40px; }
.pulse-sentence .num { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pulse-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.panel { background: #10121acc; border: 1px solid var(--line-soft); border-radius: var(--radius-l); padding: 22px 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel-head h3 { font-size: 18px; }
.panel-head a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.panel-head a:hover { color: var(--ink); }
.panel-head a .i { width: 14px; height: 14px; }
.feed-list, .runner-list { list-style: none; margin: 0; padding: 0; }
.feed-list li, .runner-list li { border-top: 1px solid var(--line-soft); }
.feed-list li:first-child, .runner-list li:first-child { border-top: 0; }
.feed-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; }
.feed-item .who { min-width: 0; }
.feed-item .who b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .who small { display: block; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item .who small em { font-style: normal; color: var(--muted); }
.feed-item .when { text-align: right; }
.feed-item .when b { display: block; font: 600 14px var(--mono); }
.feed-item .when small { color: var(--dim); font-size: 13px; }
.feed-item:hover .who b { color: var(--red-hot); }
.runner-item { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; text-decoration: none; }
.runner-item .rk { color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.runner-item .nm { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.runner-item .nm span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-item .nm span:last-child { color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; }
.runner-item .info { display: block; min-width: 0; }
.runner-item .bar { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: #ffffff0a; overflow: hidden; }
.runner-item .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--w, 0)); transition: transform 1.1s var(--ease-out); }
.runner-item:hover .nm span:first-child { color: var(--red-hot); }
.empty-note { padding: 18px 0 8px; color: var(--dim); font-size: 15px; }
.skeleton span { display: block; height: 12px; margin: 14px 0; border-radius: 4px; background: linear-gradient(90deg, #ffffff07, #ffffff10, #ffffff07); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span:nth-child(2) { width: 55%; }

/* Forum preview */
.talk { padding-bottom: clamp(64px, 8vw, 110px); }
.talk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.talk-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 210px; padding: 22px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line-soft); text-decoration: none; transition: border-color .2s, background-color .2s; }
.talk-card:hover { border-color: #3a3f52; background: #13151e; }
.talk-card h3 { font-size: 19px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.talk-card p { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.talk-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.talk-foot .author { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talk-foot .replies { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.talk-foot .replies .i { width: 15px; height: 15px; }
.talk-card .pin-badge { align-self: flex-start; }
.talk-empty { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line); border-radius: var(--radius-l); color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Browser course: key art + the actual stage boards from /course/. */
.lab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(16px, 2vw, 22px); padding-right: clamp(24px, 4vw, 52px); margin-bottom: clamp(64px, 8vw, 110px); border-radius: 26px; background: radial-gradient(ellipse at 100% 0%, #e0334a1f, transparent 55%), var(--panel); border: 1px solid var(--line-soft); }
.lab-art { position: relative; margin: 0; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden; background: #0c0508; isolation: isolate; }
.lab-art .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.lab.is-in .lab-art .art { transform: scale(1); }
.lab-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #08090de0 0%, transparent 52%); }
.lab-play { position: absolute; z-index: 3; right: 6%; bottom: 8%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #e0334aee; color: #fff; text-decoration: none; box-shadow: 0 0 0 10px #e0334a33, 0 20px 50px #000a; transition: transform .25s var(--ease-out), box-shadow .25s; }
.lab-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; stroke: none; }
.lab-play:hover { transform: scale(1.07); box-shadow: 0 0 0 16px #e0334a26, 0 20px 50px #000a; }
.lab-art .stage-chip { position: absolute; z-index: 3; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 20px; background: #08090dcc; backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.lab-art .stage-chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--stage, var(--red)); }
.board { position: absolute; z-index: 2; left: 4%; width: 62%; bottom: 5%; aspect-ratio: 594 / 221; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px #000c; }
.board img, .board .board-css { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board.is-swap { animation: board-in .6s var(--ease-out); }
.board-css { display: grid; grid-template-columns: 26% 1fr; align-items: center; background: linear-gradient(110deg, #0b0b10 30%, color-mix(in srgb, var(--stage) 22%, #0b0b10)); border: 2px solid var(--stage); border-radius: 10px; }
.board-css .n { display: grid; place-items: center; height: 100%; font-size: clamp(40px, 5vw, 72px); font-weight: 700; font-style: italic; color: var(--stage); text-shadow: 0 0 24px var(--stage); }
.board-css b { display: block; line-height: 1.1; font-size: clamp(13px, 1.5vw, 20px); text-transform: uppercase; letter-spacing: -.01em; }
.board-css small { display: block; margin-top: 5px; color: #e7e9f0; font-size: clamp(11px, .95vw, 13px); line-height: 1.35; padding-right: 8%; }
.lab-copy h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; }
.lab-copy > p { margin-top: 14px; color: var(--muted); max-width: 32em; }
.stage-picker { margin: 26px 0 0; }
.stage-picker-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.stage-dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.stage-dots button { position: relative; height: 42px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #ffffff04; font-weight: 700; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .15s, border-color .15s, background-color .15s; overflow: hidden; }
.stage-dots button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--stage); opacity: .45; transition: opacity .15s; }
.stage-dots button:hover { color: var(--ink); }
.stage-dots button[aria-pressed="true"] { color: var(--ink); border-color: var(--stage); background: color-mix(in srgb, var(--stage) 14%, transparent); }
.stage-dots button[aria-pressed="true"]::after { opacity: 1; }
.stage-detail { min-height: 4.8em; margin-top: 14px; }
.stage-detail b { display: block; font-size: 17px; }
.stage-detail span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.lab-note { color: var(--dim); font-size: 14px; }

/* Discord strip */
.discord { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0; margin-bottom: 60px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.discord h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; max-width: 26em; }


/* Forum sheet */
.sheet { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; }
.sheet-scrim { position: absolute; inset: 0; background: #04050899; backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.sheet-panel { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); height: 100%; background: var(--panel); border-left: 1px solid var(--line); box-shadow: -40px 0 80px -20px #000; transform: translateX(40px); opacity: 0; transition: transform .38s var(--ease-out), opacity .25s ease; }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); padding-top: calc(16px + env(safe-area-inset-top)); }
.sheet-head h2 { flex: 1; font-size: 20px; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-status { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: #3a1420; color: #ffc3cb; font-size: 14px; border-bottom: 1px solid #e0334a33; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); }
.view { animation: view-in .32s var(--ease-out); }
.list-tools { display: flex; gap: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--void); color: var(--dim); }
.search:focus-within { border-color: #4a4f63; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 15px; }
.list-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--void); border: 1px solid var(--line-soft); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background-color .18s, color .18s; }
.seg button[aria-checked="true"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.hint { color: var(--dim); font-size: 14px; }
.thread-list { display: grid; }
.thread-group { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--dim); }
.thread { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 12px; margin: 0 -12px; border-radius: var(--radius-m); text-decoration: none; transition: background-color .15s; }
.thread:hover { background: #ffffff06; }
.thread + .thread { box-shadow: 0 -1px 0 var(--line-soft); }
.thread:hover + .thread, .thread + .thread:hover { box-shadow: none; }
.thread h3 { font-size: 17px; line-height: 1.3; }
.thread p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread .meta { margin-top: 6px; color: var(--dim); font-size: 13px; }
.thread .count { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.thread .count .i { width: 15px; height: 15px; }
.thread .pin-badge { margin-bottom: 6px; }
.thread.is-new { animation: flash 1.6s ease; }
.pin-badge { display: inline-flex; padding: 3px 9px; border-radius: 20px; background: #f2b4531a; color: var(--amber); font-size: 12px; font-weight: 700; border: 1px solid #f2b45333; }
.list-empty { padding: 48px 12px; text-align: center; color: var(--muted); }
.list-empty .btn { margin-top: 16px; }
.post-full h3 { margin: 10px 0 12px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.03em; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; flex-wrap: wrap; }
.byline a, .byline .author { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-full .rich-body { margin-top: 20px; }
.post-image { display: block; margin-top: 18px; max-height: 520px; width: auto; border-radius: var(--radius-m); border: 1px solid var(--line-soft); }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #ffffff05; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.chip-btn:hover { color: var(--ink); border-color: #3a3f52; }
.chip-btn.danger:hover { color: #ff8796; border-color: #e0334a77; }
.chip-btn .i { width: 15px; height: 15px; }
.rich-body { color: #d7dae3; font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; }
.rich-body p, .rich-body ul, .rich-body blockquote, .rich-body h3 { margin: 0 0 .9em; }
.rich-body h3 { font-size: 19px; color: var(--ink); }
.rich-body ul { padding-left: 1.2em; }
.rich-body blockquote { padding: 4px 0 4px 14px; border-left: 3px solid var(--red); color: var(--muted); }
.rich-body code { font: 14px var(--mono); padding: 2px 6px; border-radius: 4px; background: #ffffff0d; }
.rich-body a { color: var(--red-hot); text-underline-offset: 3px; }
.replies { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.replies h4 { font-size: 16px; margin-bottom: 8px; }
.reply-list { list-style: none; margin: 0; padding: 0; }
.reply { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.reply:first-child { border-top: 0; }
.reply .av { width: 32px; height: 32px; border-radius: 6px; }
.reply .byline { font-size: 13px; }
.reply .rich-body { margin-top: 4px; font-size: 15px; }
.reply .rich-body > :last-child { margin-bottom: 0; }
.reply .reply-actions { margin-top: 6px; }
.reply .reply-actions button { border: 0; background: none; padding: 0; color: var(--dim); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.reply .reply-actions button:hover { color: #ff8796; }
.reply.is-new { animation: flash 1.6s ease; }
.reply-empty { padding: 10px 0; color: var(--dim); }
.reply-form { margin-top: 16px; }
.reply-form textarea, .composer input:not([type="checkbox"]):not([type="file"]), .composer textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--void); color: var(--ink); font-size: 16px; line-height: 1.55; resize: vertical; transition: border-color .15s; }
.reply-form textarea:focus, .composer input:focus, .composer textarea:focus { outline: none; border-color: #4a4f63; box-shadow: 0 0 0 3px #e0334a22; }
.reply-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.signin-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); background: #ffffff06; color: var(--muted); }
.signin-note a { color: var(--red-hot); font-weight: 700; }
.composer h3 { font-size: 24px; letter-spacing: -.03em; }
.composer-as { margin: 6px 0 18px; color: var(--muted); font-size: 15px; }
.field-label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 700; }
.optional { color: var(--dim); font-weight: 300; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-s) var(--radius-s) 0 0; background: var(--panel-2); }
.editor-tools button { border: 0; background: none; padding: 5px 9px; border-radius: 4px; color: var(--muted); font-size: 13px; }
.editor-tools button:hover, .editor-tools button[aria-pressed="true"] { background: #ffffff0d; color: var(--ink); }
.editor-tools + textarea { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.editor-preview { margin-top: 10px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-s); }
.char-count { margin-top: 6px; text-align: right; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--amber); }
.drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-s); color: var(--muted); font-size: 15px; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--red-hot); background: #e0334a0d; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.check input { width: 17px; height: 17px; accent-color: var(--red); }
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }


/* Page-load sequence: one orchestrated moment. Lines strafe in, then the console boots. */
.js .hero-title .ln > span { animation: strafe-in .9s var(--ease-out) both; }
.js .hero-title .ln:nth-child(2) > span { animation-delay: .09s; }
.js .hero-title .ln:nth-child(3) > span { animation-delay: .18s; }
.js .hero-title .ln-hot > span::after { animation: underline-in .7s var(--ease-out) .85s forwards; }
.js .hero-kicker, .js .hero-lead, .js .hero-actions { animation: rise-in .8s var(--ease-out) both; }
.js .hero-lead { animation-delay: .35s; }
.js .hero-actions { animation-delay: .45s; }
.js .console { animation: console-in 1s var(--ease-out) .25s both; }
.js .capacity-bar span { animation: seg-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 18ms + .6s); }

@keyframes strafe-in { from { transform: translateX(-.45em) skewX(-14deg); opacity: 0; filter: blur(8px); } 60% { filter: blur(0); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes underline-in { to { transform: scaleX(1); } }
@keyframes console-in { from { opacity: 0; transform: translateY(24px) scale(.985); clip-path: inset(0 0 100% 0 round 18px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); } }
@keyframes seg-in { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dash-run { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes spot-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes board-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes view-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 40% { background: #e0334a1f; } 100% { background: transparent; } }
@keyframes refresh { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Motion off / reduced motion: static versions of the page's own animations. */
html.kn-motion-off .hero-title .ln-hot > span::after { transform: scaleX(1); }
html.kn-motion-off .spot-img.is-front { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .ln-hot > span::after { transform: scaleX(1); }
  .spot-img.is-front { transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .console { max-width: 640px; }
}
@media (max-width: 900px) {
  .pulse-grid, .lab { grid-template-columns: 1fr; }
  .lab { padding: 16px 16px 28px; }
  .lab-copy { padding: 0 8px; }
  .rotation-stage { grid-template-columns: 1fr; height: auto; }
  .spotlight { aspect-ratio: 4 / 3.4; }
  .rail { border-radius: var(--radius-l); }
  .rail-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px; }
  .rail-list li { flex: 0 0 150px; }
  .rail-item { grid-template-columns: 1fr; gap: 6px; }
  .rail-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .rail-item[aria-current="true"]::before { left: 10px; right: 10px; top: auto; bottom: -2px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .talk-grid { grid-template-columns: 1fr 1fr; }
  .talk-grid > :nth-child(3) { display: none; }
  .discord { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero-actions .btn-primary, .hero-actions .btn-ghost { flex: 1 1 100%; }
  .console-body { padding-inline: 18px; }
  .talk-grid { grid-template-columns: 1fr; }
  .talk-grid > :nth-child(3) { display: flex; }
  .panel { padding: 18px; }
  .lab { border-radius: 20px; }
  .stage-dots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lab-play { width: 56px; height: 56px; }
  .lab-play svg { width: 22px; height: 22px; }
  .board { width: 70%; }
  .spot-stats dd { font-size: 18px; }
  .spotlight { aspect-ratio: 3 / 3.4; }
  .list-tools { flex-direction: column; }
  .sheet-body { padding-inline: 16px; }
  .thread { grid-template-columns: 32px minmax(0, 1fr); }
  .thread .count { grid-column: 2; padding: 0; }
  .composer-actions .btn { flex: 1; }
}
