/* noclipepe home: XMB-style menu over a pearl wave. Swap the font by replacing the one file below. */
@font-face {
  font-family: 'noclipepe Sans';
  src: url('../assets/fonts/NoclipepeSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .8);
  --ink-mute: rgba(255, 255, 255, .58);
  --dark: #2b2540;
  --accent: #d6468c;
  --accent-soft: rgba(214, 70, 140, .16);
  --glass: rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .85);
  --pearl: #2b2f6b;
  --halo: 0 0 8px rgba(255, 255, 255, .7), 0 0 20px rgba(255, 255, 255, .35);
  --font: 'noclipepe Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --top: calc(env(safe-area-inset-top, 0px) + 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: pan-y; }
body {
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  user-select: none;
  -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 10px; }

#wave { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* top bar */
.topbar {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(64px + var(--top)); padding: var(--top) 48px 0;
}
.logo { font-size: 22px; letter-spacing: .02em; color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, .45); }
.snd { width: 30px; height: 30px; display: grid; place-items: center; opacity: .8; }
.snd:hover { opacity: 1; }
.snd svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd .spk { fill: #fff; }
.snd .x { display: none; }
.snd.off { opacity: .5; }
.snd.off .w { display: none; }
.snd.off .x { display: inline; }
.status { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.battery { width: 28px; height: 14px; fill: none; stroke: var(--ink-soft); stroke-width: 1.3; }
.battery .cap, .battery .lvl { fill: var(--ink-soft); stroke: none; }

.xmb { position: fixed; inset: 0; z-index: 2; }

/* category row */
.cats { position: absolute; left: 0; right: 0; top: calc(118px + var(--top)); height: 130px; }
.cat {
  position: absolute; left: 0; top: 0; width: 120px; margin-left: -60px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .55s var(--ease), opacity .4s;
  opacity: .5;
}
.cat svg {
  width: 52px; height: 52px; overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(10, 8, 40, .45)) brightness(.82);
  transition: transform .55s var(--ease), filter .3s;
}
.cat span { color: #fff; text-shadow: var(--halo); font-size: 15px; letter-spacing: .06em; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); white-space: nowrap; }
.cat:hover { opacity: .85; }
.cat.on { opacity: 1; }
.cat.on svg { transform: scale(1.38); filter: drop-shadow(0 2px 3px rgba(10, 8, 40, .45)) drop-shadow(0 0 6px rgba(255, 255, 255, .8)) drop-shadow(0 0 18px rgba(255, 255, 255, .95)); }
.cat.on span { opacity: 1; transform: translateY(12px); }

/* item list */
.list-wrap {
  position: absolute; top: calc(232px + var(--top)); bottom: 40px; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 24px, #000 48px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 24px, #000 48px, #000 calc(100% - 40px), transparent 100%);
  left: var(--ax, 28vw); width: min(430px, calc(50vw - var(--ax, 28vw) + 20px)); margin-left: -60px;
  overflow: visible;

}
.list { list-style: none; margin: 0; padding: 0; transition: transform .45s var(--ease); }
.list li { transition: opacity .4s; }
.list li.above { opacity: .55; }
.list li.above:hover { opacity: .7; }
.cats { z-index: 3; pointer-events: none; }
.cat { pointer-events: auto; }
.list.swap li { animation: drop .42s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 90ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } }
.list.leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; animation: leave .2s ease-in both; }
@keyframes leave { to { opacity: 0; transform: translateY(18px); } }
@keyframes listIn { from { opacity: 0; transform: translateX(28px); } }
.item {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 9px 14px 9px 10px; margin: 2px 0; border-radius: 16px;
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.thumb {
  flex: none; width: 60px; height: 40px; border-radius: 9px; overflow: hidden; position: relative;
  background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 8px rgba(10, 8, 40, .3);
  display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb svg { width: 26px; height: 26px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(60, 52, 95, .5)) drop-shadow(0 2px 4px rgba(60, 52, 95, .25)); }
.thumb.ico { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); }
.item:not(.on) .thumb { opacity: .7; }
.txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t { font-size: 17px; line-height: 1.2; color: rgba(255, 255, 255, .64); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s { font-size: 13px; color: rgba(255, 255, 255, .42); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new { color: var(--dark); background: rgba(255, 255, 255, .85); border-radius: 99px; padding: 0 6px; font-size: 11px; margin-right: 6px; }
.item:hover { background: rgba(255, 255, 255, .06); }
.item.on { background: radial-gradient(60% 90% at 30% 50%, rgba(255, 255, 255, .16), transparent 75%); transform: translateX(8px) scale(1.05); transform-origin: left center; }
.item.on .t { color: #fff; text-shadow: var(--halo); }
.item.on .s { color: rgba(255, 255, 255, .85); }
.item.on .thumb { box-shadow: 0 0 0 2px #fff, 0 0 12px #fff, 0 0 22px rgba(255, 255, 255, .5), 0 3px 8px rgba(10, 8, 40, .4); transform: scale(1.06); }
.thumb { transition: transform .4s var(--ease), box-shadow .3s; }

/* preview pane */
.preview { position: absolute; top: calc(150px + var(--top)); bottom: 70px; left: 50vw; right: 5vw; pointer-events: none; }
.pv {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s, transform .6s var(--ease);
}
.pv.in { opacity: 1; transform: none; pointer-events: auto; }
.pv.out { opacity: 0; transform: translateY(-10px); transition-duration: .3s; }

.frame {
  position: relative; width: 100%; max-width: 640px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 24px 60px -18px rgba(5, 3, 30, .7), 0 0 50px -10px var(--glow, rgba(255, 255, 255, .3));
  background: #ddd;
}
.frame img, .frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame.card { aspect-ratio: 16 / 10; }
.frame.clip { aspect-ratio: 16 / 9; max-width: none; background: #1c1826; }
.frame.card, .frame.clip { flex: none; transition: width .35s var(--ease), height .35s var(--ease); }
.frame.clip video, .frame.clip .fg { position: absolute; inset: 0; object-fit: cover; }
.frame .shine { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 38%); pointer-events: none; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .86); color: var(--dark); font-size: 13px; letter-spacing: .08em; box-shadow: 0 0 14px rgba(255, 255, 255, .6); }

.meta { margin-top: 22px; max-width: 640px; width: 100%; }
.meta h2 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: inherit; letter-spacing: .01em; }
.meta p { margin: 8px 0 0; font-size: 17px; color: var(--ink-soft); line-height: 1.4; }
.row { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.views { font-size: 15px; color: var(--ink-soft); letter-spacing: .03em; }
.views b { font-weight: inherit; color: var(--ink); font-size: 20px; margin-right: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 30px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(226, 224, 240, .9));
  color: var(--dark); font-size: 18px; letter-spacing: .12em;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 26px -8px rgba(5, 3, 30, .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); outline: none; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #fff, 0 0 18px rgba(255, 255, 255, .85), 0 0 40px rgba(255, 255, 255, .35), 0 12px 28px -8px rgba(5, 3, 30, .6); }
.btn.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(225, 223, 240, .88)); color: var(--dark); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 22px -8px rgba(60, 50, 90, .45); }
.btn.ghost:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #fff, 0 0 18px rgba(255, 255, 255, .9), 0 10px 26px -8px rgba(60, 50, 90, .5); }
.cnav { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; font-size: 30px; line-height: 38px; color: var(--dark);
  background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 1px #fff, 0 4px 14px rgba(30, 20, 60, .35); z-index: 2; }
.cnav.prev { left: 10px; } .cnav.next { right: 10px; }
.dots { display: flex; gap: 8px; margin-top: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background .2s, box-shadow .2s, width .3s var(--ease); }
.dot.on { width: 22px; border-radius: 6px; background: #fff; box-shadow: 0 0 10px #fff; }
.meta .kick { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; color: var(--ink-mute); }
.meta p.views { margin-top: 8px; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.stats { margin-top: 12px; }
.meta p.live { margin-top: 4px; color: #fff; font-size: 16px; letter-spacing: .03em; text-shadow: 0 0 10px rgba(255, 255, 255, .45); }
.meta p.handle { margin-top: 4px; color: #fff; font-size: 18px; letter-spacing: .02em; word-break: break-all; }
.credit { margin: 10px 0 0 !important; font-size: 14px !important; color: var(--ink-mute) !important; font-style: italic; }
.list li.sub .item { padding-left: 34px; }
.list li.sub .thumb { width: 50px; height: 32px; }
.list li.sub .t { font-size: 15px; }
.list li.folder .t::after { content: ' ›'; opacity: .7; }
.list li.folder.open .t::after { content: ' ⌄'; }
.thumb.ico svg { filter: drop-shadow(0 1px 2px rgba(10, 8, 40, .5)); }
.headline { margin: 0 !important; color: #fff !important; font-size: 18px !important; text-shadow: 0 0 12px rgba(255, 255, 255, .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 5px 12px; border-radius: 99px; font-size: 13px; letter-spacing: .03em; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px rgba(255, 255, 255, .28); }
button.kick.from { display: inline-block; margin: 0 0 6px; padding: 0; font-size: 13px; letter-spacing: .12em; color: var(--ink-mute); }
button.kick.from:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.tilt { width: 100%; max-width: 680px; transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }
.frame.art { aspect-ratio: 5 / 2; max-width: none; }
.frame.art .shine { background: radial-gradient(70% 120% at var(--sx, 30%) 0%, rgba(255, 255, 255, .3), transparent 60%); }
.frame .sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 1.3s .25s var(--ease) both; }
@keyframes sweep { to { transform: translateX(120%); } }
.art-t { font-size: 28px !important; line-height: 1.2 !important; }

/* category intro */
.intro h2 { margin: 0; font-size: clamp(44px, 6vw, 86px); line-height: 1; font-weight: inherit; color: #fff; letter-spacing: .01em; }
.intro p { margin: 18px 0 0; font-size: 19px; color: var(--ink-soft); max-width: 460px; line-height: 1.45; }
.intro .k { margin-top: 26px; font-size: 14px; letter-spacing: .1em; color: var(--ink-mute); }

/* glass lettering for article live covers and intros */
.glass {
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, #ecdcff 54%, #dcc7f7 80%, #f5ecff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(200, 160, 240, .6);
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 2px 0 rgba(120, 110, 200, .5)) drop-shadow(0 6px 8px rgba(10, 8, 40, .35)) drop-shadow(0 0 22px rgba(255, 255, 255, .3));
}
.cover { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .04em; }
.cover .m { display: block; line-height: .98; white-space: nowrap; letter-spacing: .005em; }
.cover .vs { font-size: 15px; letter-spacing: .3em; color: #e8e6f4; margin: 2px 0 2px 4px; text-shadow: 0 0 12px rgba(255, 255, 255, .4); }
.art-meta { margin-top: 26px; max-width: 560px; }
.art-meta .d { font-size: 14px; letter-spacing: .1em; color: var(--ink-mute); }
.art-meta h2 { margin: 6px 0 0; font-size: 21px; line-height: 1.3; font-weight: inherit; }

.big-ico { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 18px 40px -14px rgba(60, 30, 90, .35), 0 0 40px -6px var(--glow); }
.big-ico svg { width: 60px; height: 60px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(60, 52, 95, .5)) drop-shadow(0 3px 8px rgba(60, 52, 95, .3)) drop-shadow(0 0 12px #fff); }

.hint { position: fixed; z-index: 3; left: 48px; bottom: 22px; margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--ink-mute); }
.hint span { color: var(--ink-soft); margin: 0 6px 0 14px; }
.hint span:first-child { margin-left: 0; }
.noscript { position: fixed; z-index: 9; inset: auto 16px 16px; }

/* ---------- phones and narrow windows ---------- */
@media (max-width: 899px), (max-height: 500px) and (orientation: landscape) {
  .topbar { height: calc(48px + var(--top)); padding: var(--top) 16px 0; }
  .logo { font-size: 19px; }
  .status { font-size: 14px; gap: 9px; }
  .battery { width: 24px; height: 12px; }
  .hint { display: none; }

  .cats { top: calc(52px + var(--top)); height: 78px; display: flex; justify-content: space-around; padding: 0 6px; }
  .cat { position: relative; width: auto; flex: 1; margin: 0; gap: 4px; transform: none !important; padding-top: 6px; opacity: .5; }
  .cat svg { width: 30px; height: 30px; }
  .cat.on svg { transform: scale(1.25); }
  .cat span { color: var(--ink-mute); text-shadow: none; opacity: 1; transform: none; font-size: 12px; margin-top: 4px; }
  .cat.on span { transform: none; color: #fff; text-shadow: var(--halo); }

  .preview { top: calc(136px + var(--top)); left: 16px; right: 16px; bottom: auto; height: var(--ph, 330px); }
  .pv { justify-content: flex-start; }
  .frame { border-radius: 16px; }
  .frame.card { aspect-ratio: 16 / 9; }
  .frame.clip { max-width: none; }
  .pv { align-items: center; }
  .preview { touch-action: none; } /* vertical swipes on the preview move through the list */
  .pv .meta, .pv .dots { align-self: stretch; }
  .row { flex-wrap: nowrap; gap: 8px; }
  .row .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 8px; font-size: 13px; letter-spacing: .06em; justify-content: center; white-space: nowrap; }
  .row .btn svg { width: 12px; height: 12px; }
  .btn .lg { display: none; }
  .list-wrap { transition: top .35s var(--ease); }
  .meta { margin-top: 12px; }
  .dots { margin-top: 8px; }
  .meta .kick, button.kick.from { font-size: 11px; margin-bottom: 2px; }
  .stats { margin-top: 6px; }
  .list li.sub .item { padding-left: 24px; }
  .has-stats .frame.card { aspect-ratio: 21 / 9; }
  .has-stats .meta p { margin-top: 0; }
  .headline { font-size: 14px !important; }
  .chips { gap: 5px; margin-top: 6px; }
  .chip { font-size: 11px; padding: 3px 9px; }
  .meta p.views { margin-top: 2px; }
  .cnav { width: 34px; height: 34px; margin-top: -17px; font-size: 24px; line-height: 31px; }
  .meta h2 { font-size: 21px; }
  .meta p { font-size: 14px; margin-top: 4px; }
  .row { margin-top: 10px; gap: 12px; }
  .btn { height: 42px; padding: 0 22px; font-size: 15px; }
  .intro { justify-content: center; }
  .intro h2 { font-size: 52px; }
  .intro p { font-size: 15px; margin-top: 10px; }
  .intro .k { margin-top: 14px; font-size: 12px; }
  .art-meta { margin-top: 14px; }
  .art-meta h2 { font-size: 16px; }
  .art-t { font-size: 17px !important; }
  .list li.above { opacity: 1; }
  .cover .vs { font-size: 11px; }
  .big-ico { width: 84px; height: 84px; border-radius: 24px; }
  .big-ico svg { width: 40px; height: 40px; }

  .list-wrap {
    -webkit-mask-image: none; mask-image: none;
    left: 0; right: 0; width: auto; margin: 0; bottom: 0;
    top: calc(136px + var(--top) + var(--ph, 330px) + 8px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 12px;
  }
  .list { transform: none !important; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .item { padding: 7px 10px 7px 8px; gap: 12px; }
  .item.on { transform: none; }
  .t { font-size: 15px; }
  .s { font-size: 12px; }
  .thumb { width: 52px; height: 36px; }
}
/* ---------- phones in landscape ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { height: calc(34px + var(--top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .logo { font-size: 16px; }
  .status { font-size: 12px; }
  .cats { top: calc(32px + var(--top)); height: 52px; left: max(8px, env(safe-area-inset-left)); right: 50%; justify-content: space-between; }
  .cat { padding-top: 2px; gap: 2px; }
  .cat svg { width: 24px; height: 24px; }
  .cat span { font-size: 10px; margin-top: 2px; }
  .list-wrap { top: calc(88px + var(--top)); left: max(4px, env(safe-area-inset-left)); right: auto; width: 48%; bottom: 0; padding: 0 8px; }
  .item { padding: 5px 8px 5px 6px; gap: 10px; }
  .t { font-size: 13px; }
  .s { font-size: 11px; }
  .thumb { width: 44px; height: 30px; }
  .preview { top: calc(40px + var(--top)); bottom: 8px; height: auto; left: 52%; right: max(16px, env(safe-area-inset-right)); }
  .pv { justify-content: center; }

  .tilt { max-width: calc((100vh - 170px) * 2.5); }
  .meta { margin-top: 8px; }
  .meta h2, .art-t { font-size: 15px !important; line-height: 1.2 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .meta p { font-size: 12px; margin-top: 2px; }
  .meta .kick { font-size: 10px; margin: 0; }
  .views b { font-size: 14px; }
  .row { margin-top: 6px; gap: 8px; }
  .btn { height: 34px; padding: 0 16px; font-size: 13px; }
  .dots { margin-top: 6px; }
  .intro h2 { font-size: 40px; }
  .big-ico { width: 64px; height: 64px; border-radius: 18px; }
  .big-ico svg { width: 30px; height: 30px; }
}
/* ---------- boot intro ---------- */
.boot { position: fixed; inset: 0; z-index: 40; pointer-events: none; display: grid; place-items: center; }
.boot-dark { position: absolute; inset: 0; background: #0b0a26; transition: opacity .55s ease; }
.boot.on .boot-dark { opacity: 0; }
.boot-mark { position: relative; font-size: clamp(40px, 7vw, 84px); letter-spacing: .04em; color: #fff; opacity: 0; transform: translateY(6px);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .45)) drop-shadow(0 0 32px rgba(180, 170, 255, .4)); transition: opacity .45s ease, transform .6s cubic-bezier(.22, .8, .24, 1); padding: 0 .2em;
  background: linear-gradient(100deg, #fff 0 42%, #c9c2ff 47%, #fff 50%, #ffffff 53%, #fff 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.boot.mark .boot-mark { opacity: 1; transform: none; }
.boot.mark .boot-mark { animation: bootSweep .9s .1s ease-out both; }
@keyframes bootSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.boot.out .boot-mark { opacity: 0; transform: translateY(-26px); transition-duration: .4s, .5s; }
.boot.gone { opacity: 0; transition: opacity .25s ease; }

/* ---------- prompt panel ---------- */
.pp { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(12, 10, 40, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.pp.in { opacity: 1; }
.pp[hidden] { display: none; }
.pp-card { width: min(860px, 100%); max-height: min(82vh, 820px); display: flex; flex-direction: column; border-radius: 22px; color: #fff;
  background: linear-gradient(180deg, rgba(64, 56, 130, .92), rgba(28, 26, 72, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 80px -20px rgba(0, 0, 20, .8);
  transform: translateY(12px) scale(.985); transition: transform .3s var(--ease); }
.pp.in .pp-card { transform: none; }
.pp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 10px; }
.pp-kick { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--ink-mute); }
.pp-head h2 { margin: 4px 0 0; font-size: 24px; font-weight: inherit; line-height: 1.2; }
.pp-x { flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 38px; color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pp-x:hover { background: rgba(255, 255, 255, .22); }
.pp-tabs { display: flex; gap: 8px; padding: 0 24px; }
.pp-tabs:empty { display: none; }
.pp-tab { padding: 5px 14px; border-radius: 99px; font-size: 13px; letter-spacing: .06em; color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pp-tab.on { color: var(--dark); background: #fff; }
.pp-text { flex: 1; min-height: 0; overflow: auto; margin: 12px 24px 0; padding: 16px 18px; border-radius: 14px; background: rgba(0, 0, 20, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); white-space: pre-wrap; word-break: break-word;
  user-select: text; -webkit-user-select: text; overscroll-behavior: contain; touch-action: pan-y; }
.pp-foot { display: flex; align-items: center; gap: 14px; padding: 16px 24px 22px; }
.pp-copy { min-width: 128px; justify-content: center; }
body.pp-open .xmb, body.pp-open .hint { filter: blur(2px); }
@media (max-width: 899px), (max-height: 500px) and (orientation: landscape) {
  .pp { padding: 0; }
  .pp-card { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pp-head { padding: 14px 16px 8px; }
  .pp-head h2 { font-size: 19px; }
  .pp-tabs { padding: 0 16px; }
  .pp-text { margin: 8px 12px 0; padding: 12px 14px; font-size: 13.5px; }
  .pp-foot { padding: 12px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
