@import url('/css/quests.css');
@import url('/css/close-controls.css');
@import url('/css/onboard.css');
@import url('/css/header-store.css');
/* Shared navigation: route-independent chrome, with content-specific layout adapters. */
:root { --impakt-background: #101012; }
/* The page canvas and navigation share one black, including overscroll areas. */
html:has(> body.nv-ready), body.nv-ready, body.nv-ready > .nv-content {
  background: var(--impakt-background) !important;
}
.nv-ready { --kk-top: var(--bar); --kk-rail: var(--rail); --kk-rail-min: var(--rail-min); }
.nv-ready :is(.kk-top,.kk-side,.nv-preview,.nv-search-dialog,.nv-tooltip) { box-sizing: border-box; font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; line-height: 1.45; }
.nv-ready :is(.kk-top,.kk-side,.nv-preview,.nv-search-dialog) * { box-sizing: border-box; }
.nv-ready :is(.kk-top,.kk-side,.nv-preview,.nv-search-dialog) [hidden] { display: none !important; }
.nv-ready :is(.kk-top,.kk-side,.nv-preview,.nv-search-dialog) a { text-decoration: none; }
.nv-ready .kk-top { position: fixed; inset: 0 0 auto; z-index: 70; display: flex; align-items: center; border-bottom: 1px solid; }
.nv-ready .kk-top .ar-top { position: static; display: flex !important; flex: 1; flex-wrap: nowrap; align-items: center; min-width: 0; width: auto; margin: 0; padding: 0; border: 0; background: none; }
.nv-ready .kk-top .ar-left, .nv-ready .kk-top .ar-right { display: flex; align-items: center; }
.nv-ready .kk-top .ar-right { margin-left: auto; }
.nv-ready .kk-top .ar-mark { display: flex; align-items: center; flex-shrink: 0; width:auto; height: auto !important; }
.nv-ready .kk-top .ar-mark img { display: block; width: auto !important; }
.nv-ready .kk-top :is(.ar-nav,.ar-clock,.gu-search) { display: none !important; }
.nv-ready .kk-top .ar-tag { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; background: transparent; color: #eae4f2; font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; text-shadow: none; }
.nv-ready .kk-top .ar-tag.kk-glass { background: #f7f7f8; color: #121014; border: 1px solid #ffffff18; border-radius: 999px; box-shadow: none; }
.nv-ready .kk-top .ar-bal { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.nv-ready .kk-burger { display: grid; place-items: center; border: 0; background: transparent; border-radius: 9px; cursor: pointer; }
.nv-ready .kk-side { position: fixed; top: var(--bar); left: 0; bottom: 0; z-index: 60; width: var(--rail); display: flex; flex-direction: column; overflow: hidden auto; border-right: 1px solid; scrollbar-width: thin; }
.nv-ready.kk-collapsed .kk-side { width: var(--rail-min); }
.nv-ready .kk-nav { display: flex; align-items: center; white-space: nowrap; text-decoration: none; line-height: 1.4; }
.nv-ready .kk-nav i { display: grid; place-items: center; flex-shrink: 0; font-style: normal; }
.nv-ready .kk-nav svg { display: block; width: 20px; height: 20px; }
.nv-ready .kk-ch-av { display: grid; place-items: center; flex-shrink: 0; overflow: hidden; border: 2px solid; border-radius: 50%; }
.nv-ready .kk-ch-av img { width: 100%; height: 100%; object-fit: cover; }
.nv-ready .kk-ch-body { min-width: 0; display: flex; flex-direction: column; }
.nv-ready .kk-ch-body :is(b,small) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-ready .kk-side-h { text-transform: uppercase; white-space: nowrap; }
.nv-ready .kk-day { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid; border-radius: 10px; }
.nv-ready .kk-day b { font-size: 12px; }.nv-ready .kk-day small,.nv-ready .kk-day a { font-size: 10px; }
.nv-ready .kk-day .kk-bar { height: 4px; background: #ffffff10; border-radius: 4px; overflow: hidden; }
.nv-ready .kk-day .kk-bar i { display: block; height: 100%; background: #b56cff; }
.nv-ready .kk-veil { display: none; }
.nv-ready :is(.nv-content,.page-shell) { box-sizing: border-box; min-width: 0; padding-top: var(--bar) !important; padding-left: var(--rail); transition: padding-left 440ms var(--nv-ease); }
.nv-ready.kk-collapsed :is(.nv-content,.page-shell) { padding-left: var(--rail-min); }
.nv-ready .nv-standalone { width: 100%; min-height: 100svh; }
.nv-ready.info-page { padding: 0; }
.nv-ready.info-page .nv-content { padding-top: calc(var(--bar) + 48px) !important; padding-bottom: 80px; }
.nv-ready.info-page .nv-content > main { padding: 0 24px; }
.nv-ready .auth-wrap { min-height: calc(100svh - var(--bar)); }
.nv-ready .hud-home { display: none; }
.nv-ready .nv-identity { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-ready { --bar: 72px; --rail: 240px; --rail-min: 72px; --nv-ease: cubic-bezier(.22,1,.36,1); }
.nv-ready .kk-top { height: var(--bar); padding: 0 24px 0 18px; gap: 18px; border-color: #ffffff0d; }
/* An opaque shared surface keeps page artwork and scroll position from tinting the header. */
body.nv-ready .kk-top { background: var(--impakt-background); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nv-ready .kk-burger { width: 36px; height: 36px; padding: 8px; flex-shrink: 0; color: #8a8993; }
.nv-ready .kk-burger:hover { background: #ffffff08; color: #ddd9e4; }
.nv-ready .kk-burger svg { width: 20px; height: 20px; transition: transform .4s var(--nv-ease); }
.nv-ready:not(.kk-collapsed) .kk-burger svg { transform: rotate(180deg); }
.nv-ready .kk-top .ar-top { gap: 24px; }
.nv-ready .kk-top .ar-left { flex: 0 0 170px; }
.nv-ready .kk-top .ar-mark img { height: 48px !important; }
.nv-ready .kk-top .ar-right { gap: 16px; }
.nv-ready .kk-top .ar-tag.kk-glass { padding: 11px 21px; font-size: 12px; font-weight: 800; }
.nv-ready .kk-top #who { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-ready .kk-top #tier { display: none; }
.nv-search-trigger { display: flex; align-items: center; gap: 11px; min-width: 40px; width: min(440px, 42vw); height: 42px; margin: 0 auto; padding: 0 13px; border: 1px solid #ffffff0d; border-radius: 12px; background: #ffffff04; color: #929099; font: inherit; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.nv-search-trigger:hover { background: #ffffff08; border-color: #b56cff65; }
.nv-search-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }
.nv-search-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-search-trigger kbd { margin-left: auto; flex-shrink: 0; }
.nv-ready kbd { display: inline-flex; justify-content: center; align-items: center; min-width: 20px; padding: 3px 5px; border: 1px solid #ffffff14; border-radius: 5px; color: #8e8b96; font-family: inherit; font-size: 10px; line-height: 1; }
.nv-ready .kk-side { padding: 24px 12px 12px; gap: 0; background: var(--impakt-background); border-color: #ffffff0c; transition: width 440ms var(--nv-ease); }
.nv-ready.kk-ready .page-shell { transition: padding-left 440ms var(--nv-ease); }
.nv-primary { flex-shrink: 0; position: relative; display: flex; flex-direction: column; gap: 6px; }
.nv-ready .kk-nav { min-height: 44px; padding: 12px; gap: 13px; color: #aaa6b3; font-size: 12px; font-weight: 600; border-radius: 10px; transition: background .18s, color .18s; }
.nv-ready .kk-nav.is-on { background: #b56cff10; color: #e7d6ff; }
.nv-ready .kk-nav:hover { background: #ffffff07; color: #fff; }
.nv-ready .kk-nav i { width: 20px; height: 20px; color: #898391; }
.nv-ready .kk-nav.is-on i { color: #bf88fa; }
.nv-active-marker { position: absolute; left: -12px; top: 0; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: #ba79ff; box-shadow: 0 0 15px #b56cff66; transition: transform 440ms var(--nv-ease); pointer-events: none; }
.nv-creators { padding-top: 25px; margin-top: 24px; border-top: 1px solid #ffffff0a; }
.nv-ready .kk-side-h { padding: 0 12px 12px; color: #6d6876; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.nv-ready .nv-channel { position: relative; width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; transition: background .2s; }
.nv-channel:hover, .nv-channel[aria-expanded="true"] { background: #ffffff06; }
.nv-ready .kk-ch-av { width: 34px; height: 34px; font-size: 11px; background: #25212b; border-color: #ffffff12; }
.nv-ready .kk-ch.is-live .kk-ch-av { border-color: #ff566f; box-shadow: 0 0 0 2px #0c0c0e, 0 0 0 3px #ff566f38; }
.nv-ready .kk-ch.has-move .kk-ch-av { border-color: #bc85ff; box-shadow: 0 0 0 2px #0c0c0e, 0 0 0 3px #b56cff55; }
.nv-ready .kk-ch-body b { font-size: 12px; color: #d4cfdc; }
.nv-ready .kk-ch-body small { margin-top: 3px; font-size: 10px; color: #77727f; }
.nv-channel-status { color: #77717f; font-size: 8px; }
.nv-channel-status i { display: block; width: 5px; height: 5px; background: #ff566f; border-radius: 50%; }
.nv-channel-move { position: absolute; top: 5px; left: 33px; display: grid; place-items: center; width: 16px; height: 16px; background: #bd88fa; color: #21112f; border-radius: 50%; box-shadow: 0 0 0 2px #0c0c0e; }
.nv-channel-move svg { width: 10px; height: 10px; }
.nv-bottom { display: flex; flex-direction: column; flex-shrink: 0; margin-top: auto; padding-top: 24px; }
.nv-bottom .kk-nav { font-size: 11px; }
.nv-bottom .kk-day { margin: 8px 0; background: #ffffff03; border-color: #ffffff08; }
.nv-account { display: flex; gap: 11px; align-items: center; min-height: 66px; margin-top: 12px; border-top: 1px solid #ffffff0b; padding: 16px 8px 4px; color: #aaa5b2; }
.nv-account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid #ffffff12; border-radius: 50%; background: #ffffff05; font-size: 11px; font-style: normal; }
.nv-account-avatar svg { width: 15px; height: 15px; }
.nv-account > span { min-width: 0; flex: 1; }
.nv-account b { display: block; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-account small { display: block; margin-top: 4px; font-size: 8px; color: #6d6776; white-space: nowrap; }
.nv-account > svg { width: 14px; height: 14px; flex-shrink: 0; }
.nv-account:hover { color: #e5d5f7; }
.nv-ready :is(.nv-search-trigger,.kk-burger,.kk-nav,.nv-channel,.nv-account,.nv-result):focus-visible { outline: 2px solid #b56cff; outline-offset: 3px; }

/* Portals keep cards and tooltips out of the rail's clipping/scrolling context. */
.nv-tooltip { position: fixed; z-index: 115; transform: translateY(-50%); padding: 9px 13px; border: 1px solid #ffffff16; border-radius: 9px; background: #222025; color: #ece6f4; font-size: 11px; box-shadow: 0 8px 30px #0006; pointer-events: none; }
.nv-preview { position: fixed; z-index: 110; width: min(310px, calc(100vw - 24px)); border: 1px solid #ffffff1c; border-radius: 18px; background: #161418; box-shadow: 0 20px 70px #0009; overflow: hidden; animation: nv-arrive .22s var(--nv-ease) both; }
.nv-preview-art { position: relative; height: 150px; background: radial-gradient(ellipse at center, #352540, #18151d); }
.nv-preview-art > img { width: 100%; height: 100%; object-fit: cover; }
.nv-preview-art::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#161418); pointer-events: none; }
.nv-preview-state { position: absolute; top: 13px; left: 13px; z-index: 1; padding: 5px 7px; background: #15121ddb; border: 1px solid #ffffff20; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .07em; color: #d7cddd; }
.nv-preview-state.is-live { background: #df3555; color: #fff; }
.nv-preview-art button { display: grid; place-items: center; width: 30px; height: 30px; padding: 7px; border: 1px solid #ffffff15; border-radius: 50%; background: #17121fce; color: #ccc5d5; cursor: pointer; }
.nv-preview-art button { position: absolute; top: 11px; right: 11px; z-index: 1; }
.nv-preview-copy { padding: 2px 20px 20px; }
.nv-preview-copy > b { display: block; color: #f2eafa; font-size: 20px; letter-spacing: -.04em; }
.nv-preview-copy > small { display: block; margin-top: 4px; font-size: 11px; color: #a58ebd; }
.nv-preview-copy p { margin: 13px 0 18px; color: #918898; font-size: 11px; line-height: 1.65; }
.nv-preview-copy > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 11px 13px; border-radius: 9px; background: #b88af0; color: #1b0b29; font-size: 11px; font-weight: 800; }
.nv-preview-copy a svg { width: 16px; height: 16px; }
.nv-preview-vote { padding: 12px; margin: 15px 0; background: #b56cff0d; border: 1px solid #b56cff30; border-radius: 9px; }
.nv-preview-vote span { color: #c997ff; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; font-weight: 800; }
.nv-preview-vote p { color: #e0d3ef; margin: 7px 0 0; }

/* Native dialog supplies focus containment, Escape, and an inert background. */
body.nv-search-open { overflow: hidden; }
.nv-search-dialog { position: fixed; top: min(16vh,140px); bottom: auto; width: min(620px,calc(100vw - 24px)); max-height: calc(100dvh - 180px); margin: 0 auto; padding: 0; border: 1px solid #ffffff23; border-radius: 20px; background: #151317; color: #eee8f5; box-shadow: 0 30px 130px #000b; overflow: hidden; font-family: inherit; }
.nv-search-dialog[open] { display: flex; flex-direction: column; animation: nv-arrive .24s var(--nv-ease); }
.nv-search-dialog::backdrop { background: #08070bc4; backdrop-filter: blur(7px); }
.nv-search-field { display: flex; align-items: center; gap: 15px; padding: 20px 22px; border-bottom: 1px solid #ffffff0c; flex-shrink: 0; }
.nv-search-field > svg { width: 23px; height: 23px; color: #b58bcf; flex-shrink: 0; }
.nv-search-field input { width: 100%; min-width: 0; padding: 5px 0; border: 0; outline: none; background: transparent; color: #f5edfc; font: inherit; font-size: 15px; }
.nv-search-field input::placeholder { color: #82788d; }
.nv-search-field button { display: grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 6px; background: #ffffff06; color: #a99bb9; flex-shrink: 0; cursor: pointer; }
.nv-search-content { padding: 10px; overflow-y: auto; overscroll-behavior: contain; }
.nv-search-heading { margin: 8px 12px 12px; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: #7d718b; }
.nv-result { display: flex; align-items: center; gap: 15px; padding: 10px 12px; border-radius: 11px; }
.nv-result:hover, .nv-result:focus-visible { background: #b56cff10; }
.nv-result-image { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; overflow: hidden; border: 1px solid #ffffff0c; border-radius: 50%; background: #292031; font-size: 12px; color: #c9abdf; }
.nv-result-image.is-game { border-radius: 7px; }
.nv-result-image img { width: 100%; height: 100%; object-fit: cover; }
.nv-result > span:nth-child(2) { flex: 1; min-width: 0; }
.nv-result b { display: block; font-size: 13px; color: #e2d9ed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-result small { display: block; margin-top: 5px; font-size: 10px; color: #8b7d97; }
.nv-result > svg { width: 15px; height: 15px; color: #766584; }
.nv-result em { font-size: 8px; font-style: normal; color: #ff778b; background: #f1556f16; padding: 5px 7px; border-radius: 4px; }
.nv-no-results { padding: 30px 20px; text-align: center; font-size: 14px; }
.nv-no-results small { display: block; margin: 10px 0 18px; color: #92809f; font-size: 12px; }
.nv-no-results a { color: #bb86e9; font-size: 12px; }
.nv-search-dialog footer { display: flex; justify-content: space-between; gap: 15px; padding: 13px 22px; border-top: 1px solid #ffffff0a; color: #706479; font-size: 9px; flex-shrink: 0; }
.nv-search-dialog footer kbd { margin: 0 4px; }
@keyframes nv-arrive { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }

@media (min-width: 901px) {
  .nv-ready.kk-collapsed :is(.kk-side-h,.kk-ch-body,.kk-ch-n,.kk-nav span,.kk-day) { display: none; }
  .nv-ready.kk-collapsed .kk-side { padding-left: 12px; padding-right: 12px; }
  .nv-ready.kk-collapsed .kk-nav { padding: 12px; justify-content: center; }
  .nv-ready.kk-collapsed .nv-creators { padding-top: 18px; margin-top: 20px; }
  .nv-ready.kk-collapsed .nv-channel { grid-template-columns: 34px; gap: 0; justify-content: center; padding: 9px 7px; }
  .nv-ready.kk-collapsed :is(.nv-channel-status, .nv-account > span, .nv-account > svg) { display: none; }
  .nv-ready.kk-collapsed .nv-account { justify-content: center; padding-left: 0; padding-right: 0; }
  .nv-ready.kk-collapsed .nv-channel-move { left: 29px; }
}
@media (max-width: 1100px) {
  .nv-ready .kk-top .ar-left { flex-basis: auto; }
  .nv-ready .kk-top .ar-top { gap: 18px; }
  .nv-ready .kk-top .ar-right { gap: 8px; }
}
@media (max-width: 900px) {
  .nv-ready :is(.nv-content,.page-shell), .nv-ready.kk-collapsed :is(.nv-content,.page-shell) { padding-left: 0; }
  .nv-ready.kk-ready .page-shell, .nv-ready .nv-content { transition: none; }
  .nv-ready .kk-side, .nv-ready.kk-collapsed .kk-side { display: flex; visibility: hidden; transform: translateX(-100%); z-index: 82; }
  .nv-ready.kk-drawer .kk-side { visibility: visible; transform: none; box-shadow: 24px 0 60px #0009; }
  .nv-ready .kk-veil { display: block; position: fixed; inset: var(--bar) 0 0; z-index: 81; opacity: 0; visibility: hidden; pointer-events: none; background: #0009; transition: opacity .3s, visibility 0s .3s; }
  .nv-ready.kk-drawer .kk-veil { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nv-ready.kk-collapsed :is(.kk-side-h,.kk-ch-body,.kk-ch-n,.kk-nav span,.kk-day) { display: revert; }
  .nv-ready.kk-collapsed .kk-nav { justify-content: flex-start; }

  .nv-ready.kk-drawer { overflow: hidden; }
  .nv-ready .kk-side, .nv-ready.kk-collapsed .kk-side { width: 260px; transition: transform 440ms var(--nv-ease), visibility 0s 440ms; }
  .nv-ready.kk-drawer .kk-side { transition-delay: 0s; }
  .nv-ready.kk-collapsed .nv-channel { grid-template-columns: 34px minmax(0,1fr) auto; }
  .nv-ready.kk-drawer .kk-burger svg { transform: rotate(180deg); }
  .nv-ready .kk-top { padding: 0 14px; gap: 12px; }
  .nv-ready .kk-top .ar-top { gap: 14px; }
  .nv-ready .kk-top .ar-mark img { height: 42px !important; }
  .nv-search-trigger { width: auto; flex: 1; }
  .nv-search-trigger kbd { display: none; }
  .nv-search-dialog { top: 86px; max-height: calc(100dvh - 104px); }
}
@media (max-width: 600px) {
  .nv-ready { --bar: calc(64px + env(safe-area-inset-top)); }
  .nv-ready .kk-top { padding: env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left)); gap: 4px; }
  .nv-ready .kk-burger { width:44px; height:44px; }
  .nv-ready .kk-top .ar-top { gap: 4px; }
  .nv-ready .kk-top .ar-left { margin-right: auto; }
  .nv-ready .kk-top .ar-mark { min-height:44px; }
  .nv-ready .kk-top .ar-mark img { height: 32px !important; }
  .nv-ready .kk-top .ar-tag.kk-glass { min-height:44px; padding: 10px 13px; font-size: 10px; }
  .nv-ready .kk-top .ar-right { gap: 0; margin-left: 0; flex-shrink:0; }
  .nv-ready .kk-top .ar-bal { display: none; }
  .nv-ready .kk-top #who { max-width: 98px; font-size: 11px; }
  .nv-search-trigger { flex: 0 0 44px; min-width: 44px; width: 44px; height: 44px; padding: 13px; border: 0; background: transparent; margin: 0; }
  .nv-search-trigger span { display: none; }
  .nv-ready .kk-side { padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .nv-ready .kk-nav { font-size:14px; }
  .nv-ready .nv-bottom .kk-nav { font-size:13px; }
  .nv-ready .kk-ch-body b,.nv-account b { font-size:13px; }
  .nv-ready .kk-ch-body small,.nv-account small { font-size:11px; }
  .nv-search-dialog { top:calc(var(--bar) + 12px); max-height:calc(100dvh - var(--bar) - 24px); }
  .nv-search-field { gap: 12px; padding: 17px 15px; }
  .nv-search-field input { font-size: 16px; }
  .nv-search-field button { width:44px; height:44px; padding:12px; }
  .nv-search-dialog footer { display:none; }
}
@media (max-width: 380px) {
  .nv-ready .kk-top, .nv-ready .kk-top .ar-top { gap: 4px; }
  .nv-ready .kk-top .ar-mark img { height: 26px !important; }
  .nv-ready .kk-top .ar-tag.kk-glass { padding-left: 10px; padding-right: 10px; }
}
@media (max-width:1000px) and (max-height:500px) {
  .nv-ready { --bar:calc(56px + env(safe-area-inset-top)); }
  .nv-ready .kk-top { padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left)); }
  .nv-ready .kk-top .ar-mark img { height:32px!important; }
  .nv-search-dialog { top:calc(var(--bar) + 8px); max-height:calc(100dvh - var(--bar) - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-ready .kk-side, .nv-ready.kk-ready .page-shell, .nv-active-marker, .nv-ready .kk-burger svg { transition: none; }
  .nv-preview, .nv-search-dialog[open] { animation: none; }
}

/* The player keeps its existing interactive HUD, below the shared site header. */
body.nv-ready.hud-watch .hud-experience.nv-content { padding: 0 !important; margin: calc(var(--bar) + 12px) 12px 12px calc(var(--rail) + 12px); width: auto; min-height: calc(100svh - var(--bar) - 24px); transition: margin-left 440ms var(--nv-ease); }
body.nv-ready.kk-collapsed.hud-watch .hud-experience.nv-content { margin-left: calc(var(--rail-min) + 12px); }
body.nv-ready.hud-watch .ix-watch-layout { height: calc(100svh - var(--bar) - 26px); }
body.nv-ready.hud-watch .hud-experience .shell { padding: 0 !important; }
@media (max-width: 900px) {
  body.nv-ready.hud-watch .hud-experience.nv-content, body.nv-ready.kk-collapsed.hud-watch .hud-experience.nv-content { margin-left: 8px; margin-right: 8px; }
}
html:fullscreen body.nv-ready :is(.kk-top,.kk-side,.kk-veil) { display: none !important; }
html:fullscreen body.nv-ready.hud-watch .hud-experience.nv-content { margin: 0; width: 100%; min-height: 100svh; }
html:fullscreen body.nv-ready.hud-watch .ix-watch-layout { height: 100svh; }
html.is-embed .nv-content { padding: 0 !important; }

/* Legal pages keep the same header without depending on scripts or gated APIs. */
.nv-static { --rail: 0px; --rail-min: 0px; }
.nv-static-menu { position: relative; }
.nv-static-menu summary { list-style: none; }
.nv-static-menu summary::-webkit-details-marker { display: none; }
.nv-static-menu nav { position: absolute; top: calc(100% + 16px); left: -8px; width: 220px; padding: 10px; border: 1px solid #ffffff20; border-radius: 14px; background: #18151d; box-shadow: 0 20px 60px #0009; }
.nv-static-menu nav a { display: block; padding: 12px; color: #cfc3dc; border-radius: 8px; font-size: 12px; }
.nv-static-menu nav a:hover { background: #b56cff18; color: #fff; }
.nv-static > main.nv-content { padding-left: 22px; padding-right: 22px; }

/* Page themes cannot restyle shared navigation text or the brand asset. */
.nv-ready :is(.kk-top,.kk-side,.nv-preview,.nv-search-dialog) { letter-spacing: normal; text-transform: none; }
.nv-ready .kk-side .kk-side-h { text-transform: uppercase; }
.nv-ready .kk-top .ar-mark img { filter: none !important; opacity: 1; }
.nv-ready.hud-watch .hud-viewer { display: none !important; }
.nv-ready.hud-watch .hud-wallet { margin-left: auto; }
@media (max-width: 600px) { .nv-ready .kk-top .nv-identity { max-width: 98px; } }
@media (prefers-reduced-motion: reduce) {
  .nv-ready .nv-content, body.nv-ready.hud-watch .hud-experience.nv-content { transition: none; }
}

/* Settle the initial geometry without replaying a sidebar expansion. */
.nv-ready:not(.nv-interactive) :is(.nv-content,.page-shell,.kk-side,.nv-active-marker) { transition: none !important; }

/* Native navigation keeps normal links, history, and fresh page data. The
   header and rail stay visually still while only the content briefly fades. */
@view-transition { navigation: auto; }
.nv-ready .kk-top { view-transition-name: site-header; }
@media (min-width: 901px) {
  .nv-ready .kk-side { view-transition-name: site-rail; }
}
::view-transition { pointer-events: none; }
::view-transition-group(root) { animation-duration: 140ms; }
::view-transition-old(root) { animation: nv-page-out 140ms ease-out both; }
::view-transition-new(root) { animation: nv-page-in 140ms ease-out both; }
::view-transition-group(site-header),
::view-transition-group(site-rail) { animation-duration: 0s; z-index: 1; }
::view-transition-old(site-header),
::view-transition-old(site-rail) { display: none; }
::view-transition-new(site-header),
::view-transition-new(site-rail) { animation: none; mix-blend-mode: normal; }
@keyframes nv-page-out { to { opacity: 0; } }
@keyframes nv-page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* One account entry, with an explicit currency beside the balance. */
.nv-ready .kk-top .ar-tag[href="/profile"] { gap: 9px; min-height: 40px; }
.nv-ready .kk-top .ar-tag[href="/profile"]::before {
  content: ''; display: block; flex: 0 0 20px; width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round"%3E%3Ccircle cx="12" cy="8" r="3.5"/%3E%3Cpath d="M5 21v-2a7 7 0 0 1 14 0v2"/%3E%3C/svg%3E') center / contain no-repeat;
  mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round"%3E%3Ccircle cx="12" cy="8" r="3.5"/%3E%3Cpath d="M5 21v-2a7 7 0 0 1 14 0v2"/%3E%3C/svg%3E') center / contain no-repeat;
}
.nv-ready .kk-top #balance:not([hidden]) { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.nv-ready .kk-top #balance .ar-coin {
  display: inline-block; flex: 0 0 22px; width: 22px; height: 22px;
  border: 0; border-radius: 0; box-shadow: none; transform: none;
  background: url('/assets/currency/impakt-coin-icon.webp') center / contain no-repeat;
}
@media (max-width:600px) {
  .nv-ready .kk-top #balance:not([hidden]) { padding: 6px 7px; gap: 5px; font-size: 11px; }
  .nv-ready .kk-top #balance .ar-coin { flex-basis: 20px; width: 20px; height: 20px; }
  .nv-ready .kk-top :is(#who,.nv-identity)[href="/profile"] {
    display: inline-flex; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px;
    padding: 10px; gap: 0; font-size: 0; line-height: 1;
  }
}
