/* One shared visual system. Original palette and illustration files preserved. */
:root {
  color-scheme: dark;
  --night: #030b1d; --night2: #071632; --deep: #081b3a;
  --fur: #C3E2FE; --mark: #6FACE2; --ice: #76FFF8;
  --pink: #FDD1D2; --soft: #DFFDFD; --white: #FDFDFD;
  --muted: #aac4e3; --glass-edge: #6396c4;
  --copy: #c0d2e9;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; position: relative; color: var(--white); font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(ellipse 100% 650px at 65% 8%, #132e54 0%, transparent 76%), linear-gradient(180deg, var(--night), var(--night2) 45%, var(--night)); }
button, a { -webkit-tap-highlight-color: transparent; }
.button { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; border-radius: 4px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
section[id], main[id] { scroll-margin-top: 24px; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; position: relative; z-index: 1; }
.skip-link { position: absolute; z-index: 20; left: 18px; top: 10px; padding: 12px 20px; color: var(--night); background: var(--ice); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; color: var(--muted); font-size: .75rem; }
.preview-bar > span { display: flex; gap: 8px; align-items: center; }
.status-dot { width: 5px; height: 5px; background: var(--pink); border-radius: 50%; }
.motion-toggle { color: var(--copy); border: 1px solid #6face24d; background: #081b3acc; padding: 8px 12px; min-height: 44px; border-radius: 5px; font-size: .75rem; cursor: pointer; }
.motion-toggle:hover:not(:disabled) { border-color: var(--ice); color: var(--white); }
.site-header { display: flex; align-items: center; gap: 24px; padding-block: 15px 23px; border-bottom: 1px solid #6face233; }
.brand { white-space: nowrap; font-size: 1.4rem; font-weight: 720; letter-spacing: -.055em; text-decoration: none; color: var(--fur); }
.brand > span:last-child { color: var(--white); font-weight: 480; }
.brand-star { color: var(--ice); font-size: 1.8rem; font-weight: 400; vertical-align: -.06em; margin-right: 10px; }
.navlinks { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; color: var(--copy); font-size: .85rem; border-radius: 4px; }
.navlinks a:hover { color: var(--white); background: #6face219; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 21px; border: 1px solid #9fcbef94; border-radius: 5px; color: var(--fur); background: linear-gradient(165deg, #245889, #0f2b53 75%); box-shadow: inset 0 1px #dffdfd38, 0 4px 14px #02091638; font-size: .9rem; font-weight: 650; line-height: 1.4; text-decoration: none; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { border-color: var(--ice); background: linear-gradient(165deg, #306da1, #14335f 75%); transform: translateY(-2px); }
.button-primary { color: #08203b; background: linear-gradient(150deg, var(--fur), #92cbee 55%, var(--mark)); border-color: var(--fur); box-shadow: inset 0 1px #fdfdfda8, 0 5px 24px #6face219; }
.button-primary:hover { background: linear-gradient(150deg, var(--soft), var(--fur) 65%, #92cbee); }
.header-cta { font-size: .8rem; min-height: 44px; padding: 9px 15px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ice); font-size: .9rem; font-weight: 620; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.eyebrow { font-size: .7rem; font-weight: 650; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; color: var(--ice); margin-bottom: 12px; }

/* Decorative tint fades; readable content is never masked or blurred. */
.oot-frame { position: relative; isolation: isolate; border-radius: 7px; background: linear-gradient(95deg, #204674b8, #15325875 55%, #081b3a00 100%); }
.oot-frame::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, #b8e5ff80, #6face233 55%, transparent) top / 100% 1px no-repeat, linear-gradient(90deg, #6face277, #6face218 65%, transparent) bottom / 100% 1px no-repeat, linear-gradient(#c3e2fe80, #6face233) left / 1px 100% no-repeat; }
.glass-ripples { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; mask-image: linear-gradient(90deg, #000, #0009 55%, transparent 94%); -webkit-mask-image: linear-gradient(90deg, #000, #0009 55%, transparent 94%); }
.glass-ripples i { position: absolute; left: -24%; width: 116%; height: 35%; border-radius: 50%; border-top: 1px solid #dffdfd52; background: linear-gradient(180deg, #c3e2fe22, #6face209 44%, #07163226 60%, #c3e2fe13 80%, transparent); }
.glass-ripples i:nth-child(1) { top: -12%; transform: rotate(5deg); }
.glass-ripples i:nth-child(2) { top: 30%; height: 42%; transform: rotate(-8deg); opacity: .7; }
.glass-ripples i:nth-child(3) { top: 76%; transform: rotate(6deg); opacity: .65; }
.hero { display: grid; grid-template-columns: 55% 45%; grid-template-rows: auto auto; align-content: center; margin-top: 38px; min-height: 550px; padding: 48px; background: linear-gradient(94deg, #224b77b8, #163c6066 53%, transparent 97%); }
.hero-heading { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
.hero .eyebrow { color: var(--fur); }
h1 { font-size: clamp(4.3rem, 7.8vw, 6.25rem); font-weight: 530; letter-spacing: .008em; line-height: 1.12; color: var(--fur); margin-top: 22px; }
h1 em { color: var(--ice); font-style: normal; }
.title-star { font-size: .34em; display: inline-block; vertical-align: .45em; margin-left: .5em; color: var(--fur); }
.hero-copy { grid-column: 1; grid-row: 2; z-index: 2; position: relative; }
.tagline { margin-top: 27px; font-size: 1.13rem; font-weight: 550; color: var(--white); }
.intro { max-width: 450px; color: var(--copy); font-size: .97rem; line-height: 1.8; margin-top: 12px; }
.intro strong { color: var(--fur); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 8px; margin-top: 25px; }
.hero-actions .text-link { font-size: .8rem; color: var(--fur); }
.identity { margin-top: 28px; font-size: .75rem; color: var(--muted); }
.identity span { font-size: .65rem; color: var(--pink); margin-inline: 9px; }
.hero-visual { grid-column: 2; grid-row: 1 / 3; align-self: center; position: relative; min-width: 0; margin: -24px -24px -24px 0; }
.hero-visual img { width: min(100%, 390px); position: relative; margin-left: auto; filter: drop-shadow(0 12px 20px #02091666); }
.moon { position: absolute; width: 96%; aspect-ratio: 1; top: 15%; left: 4%; border-radius: 50%; border: 1px solid #6face229; background: radial-gradient(circle at 33% 25%, #6face218, #6face205 58%, transparent 74%); box-shadow: 0 0 0 18px #6face203; }
.art-star { position: absolute; color: var(--fur); font-size: 2rem; top: 12%; right: -1%; }
.section { margin-top: 66px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-number { font-size: .66rem; letter-spacing: .17em; color: var(--muted); padding-bottom: 5px; white-space: nowrap; }
.section-intro { color: var(--copy); margin-top: -12px; margin-bottom: 26px; font-size: .93rem; }
.feature { display: grid; grid-template-columns: 44% 56%; padding: 14px; }
.feature .glass-ripples { opacity: .55; }
.feature-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-width: 0; width: 100%; min-height: 265px; aspect-ratio: 16/9; border-radius: 4px; background: radial-gradient(ellipse at center, #1f4166, #091a31 83%); border: 1px solid #6face233; }
.placeholder-orbit { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid #6face259; border-radius: 50%; color: var(--fur); font-size: 2rem; box-shadow: 0 0 0 13px #6face209; }
.feature-label { text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .04em; padding-inline: 12px; }
.feature-copy { padding: 29px 35px; align-self: center; }
.feature-copy h3 { font-size: 1.7rem; letter-spacing: -.03em; }
.feature-copy > p:not(.eyebrow) { max-width: 410px; font-size: .92rem; color: var(--copy); margin-top: 13px; }
.feature-copy .text-link { margin-top: 13px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.video-slot { min-width: 0; border-bottom: 1px solid #6face233; padding-bottom: 20px; }
.thumbnail-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-width: 0; width: 100%; aspect-ratio: 16/9; border-radius: 5px; border: 1px dashed #6face25c; background: #081b3a99; color: var(--muted); }
.thumbnail-placeholder span:first-child { font-size: 1.6rem; color: var(--fur); font-weight: 300; }
.thumbnail-placeholder span:last-child { font-size: .6rem; letter-spacing: .15em; }
.video-copy { min-width: 0; overflow-wrap: anywhere; padding-top: 17px; }
.video-copy h3 { font-size: 1.05rem; }
.video-copy p { color: var(--copy); font-size: .85rem; margin-top: 7px; line-height: 1.6; }
.shorts-strip { margin-top: 30px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 26px; background: linear-gradient(90deg, #1c416a99, #112b4933); }
.shorts-strip .eyebrow { margin-bottom: 7px; }
.shorts-strip h2 { font-size: 1.3rem; }
.shorts-strip p:not(.eyebrow) { color: var(--copy); font-size: .85rem; margin-top: 7px; }
.shorts-strip .button { flex-shrink: 0; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { display: flex; align-items: center; gap: 23px; padding: 28px; text-decoration: none; transition: background .18s; }
.path:hover { background-color: #6face21a; }
.path h3 { font-size: 1.1rem; }
.path p { font-size: .85rem; color: var(--copy); margin-top: 7px; }
.path-symbol { color: var(--fur); font-size: 2rem; width: 38px; text-align: center; flex-shrink: 0; }
.path-arrow { color: var(--ice); margin-left: auto; }
.about { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 46px); padding: clamp(28px, 4vw, 48px); margin-top: 66px; position: relative; }
.about-art { padding-top: 10px; }
.about-art img { display: block; width: min(100%, 168px); height: auto; }
.about-copy { min-width: 0; }
.about-copy h2 { font-size: clamp(1.65rem, 2.5vw, 2.25rem); }
.about-story { max-width: 66ch; margin-top: 20px; }
.about-story p { margin-top: 16px; font-size: .95rem; line-height: 1.8; color: var(--copy); }
.about-story p:first-child { margin-top: 0; }
.about-story .about-turn { margin: 23px 0; padding: 11px 17px; border-left: 2px solid var(--ice); background: #76fff80c; color: var(--fur); font-size: 1.02rem; font-style: italic; line-height: 1.65; }
.about-story .about-signoff { color: var(--ice); font-weight: 600; }
.about-star { position: absolute; top: 23px; right: 28px; color: var(--fur); font-size: 2rem; font-weight: 300; }
.social { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 62px; }
.social .eyebrow { margin-bottom: 9px; }
.social h2 { font-size: 1.6rem; }
.social p:not(.eyebrow) { font-size: .85rem; color: var(--copy); margin-top: 10px; }
footer { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-block: 30px 36px; border-top: 1px solid #6face233; }
.footer-brand { font-size: .95rem; text-decoration: none; color: var(--fur); font-weight: 600; }
.footer-brand span { color: var(--ice); margin-left: 8px; }
footer p { color: var(--muted); font-size: .7rem; line-height: 1.8; }
footer > p { text-align: right; }
footer div p { margin-top: 8px; }

/* Ambient layers: bounded element count, no animated blur or displacement. */
.night-clouds, .starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.night-clouds { opacity: .6; }
.cloud { position: absolute; width: 1200px; max-width: 150vw; height: 460px; background: radial-gradient(ellipse 22% 23% at 22% 56%, #6face21c, transparent 100%), radial-gradient(ellipse 29% 30% at 44% 46%, #6face223, transparent 100%), radial-gradient(ellipse 30% 21% at 67% 60%, #6face21a, transparent 100%), radial-gradient(ellipse 43% 20% at 49% 69%, #6face21c, transparent 100%); animation: cloud-drift 95s ease-in-out infinite alternate; }
.cloud-one { top: 100px; right: -200px; }
.cloud-two { top: 900px; left: -240px; opacity: .65; animation-delay: -40s; }
.starfield { background-image: radial-gradient(circle at 8% 12%, #c3e2fe99 0 1px, transparent 1.5px), radial-gradient(circle at 92% 30%, #c3e2fe99 0 1px, transparent 1.5px), radial-gradient(circle at 15% 65%, #c3e2fe99 0 1px, transparent 1.5px); }
.star { position: absolute; width: 2px; height: 2px; background: var(--fur); border-radius: 50%; animation: twinkle 7s ease-in-out infinite alternate; }
.star.big { width: 3px; height: 3px; box-shadow: 0 0 7px #6face277; }
.cursor-sparkles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.cursor-sparkle { position: absolute; color: var(--fur); font-size: 12px; line-height: 1; pointer-events: none; animation: sparkle-drift .75s ease-out forwards; }
/* Small, subtle touch/click ring inspired by the reference tap indicator. */
.tap-pulses { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.tap-pulse {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(195, 226, 254, .76);
  background: radial-gradient(circle, rgba(118, 255, 248, .13), transparent 70%);
  box-shadow: 0 0 9px rgba(118, 255, 248, .18);
  animation: tap-pulse-expand .52s ease-out forwards;
}
@keyframes tap-pulse-expand {
  0% { opacity: .85; transform: translate(-50%, -50%) scale(.6); }
  65% { opacity: .45; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.05); }
}
/* A stationary flash gives accessible tap feedback with Reduce Motion enabled. */
.tap-pulse-static {
  animation: none !important;
  opacity: .8;
  transform: translate(-50%, -50%) scale(1.15);
}
@media (prefers-reduced-motion: reduce) {
  .tap-pulse { animation: none !important; }
}

@keyframes twinkle { from { opacity: .18; } to { opacity: var(--star-opacity, .68); } }
@keyframes cloud-drift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes sparkle-drift { from { opacity: .55; transform: translate(-50%, -50%) scale(.8); } to { opacity: 0; transform: translate(-50%, 14px) scale(.25); } }
html[data-motion="paused"] { scroll-behavior: auto; }
body[data-motion="paused"] *, body[data-motion="paused"] *::before, body[data-motion="paused"] *::after { animation-play-state: paused !important; transition: none !important; }
body[data-motion="paused"] .button:hover { transform: none; }
body[data-motion="paused"] .cursor-sparkles { display: none; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .site-header { gap: 14px; }
  .brand { font-size: 1.2rem; }
  .navlinks { gap: 0; }
  .navlinks a { padding-inline: 10px; }
  .hero { padding: 35px; min-height: 510px; }
  .hero-visual { margin-right: -10px; }
  .hero-actions { column-gap: 16px; }
  .feature-copy { padding: 24px; }
  .feature-placeholder { min-height: 240px; }
  .about { grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 30px; }
  .about-art img { width: 110px; }
  .about-star { display: none; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .preview-bar { font-size: .65rem; min-height: 50px; }
  .motion-toggle { font-size: .65rem; padding-inline: 10px; }
  .site-header { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 9px 8px; }
  .brand { flex: 1 1 12rem; min-width: 0; font-size: 1.14rem; white-space: normal; overflow-wrap: anywhere; }
  .brand-star { margin-right: 7px; font-size: 1.5rem; }
  .header-cta { margin-left: auto; font-size: .72rem; padding-inline: 12px; }
  .navlinks { order: 3; flex-basis: 100%; margin: 0; justify-content: space-between; flex-wrap: wrap; }
  .navlinks a { padding-inline: 12px; font-size: .82rem; }
  .hero { grid-template-columns: 51% 49%; grid-template-rows: auto auto; padding: 25px 22px 28px; min-height: 0; margin-top: 24px; }
  .hero-heading { align-self: center; }
  .hero .eyebrow { font-size: .59rem; letter-spacing: .13em; max-width: 150px; }
  h1 { font-size: clamp(2.8rem, 11.5vw, 4.8rem); margin-top: 17px; }
  .title-star { font-size: .25em; margin-left: .3em; }
  .hero-visual { grid-row: 1; align-self: start; margin: 0 -12px 0 0; }
  .hero-visual img { width: 100%; }
  .art-star { font-size: 1.1rem; right: 0; top: 2%; }
  .hero-copy { grid-row: 2; grid-column: 1 / -1; }
  .tagline { margin-top: 23px; font-size: 1rem; }
  .intro { font-size: .88rem; line-height: 1.75; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { margin-inline: auto; }
  .identity { margin-top: 13px; font-size: .65rem; }
  .identity span { margin-inline: 5px; }
  .section { margin-top: 44px; }
  .section-heading { gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
  .eyebrow { font-size: .65rem; }
  .section-number { display: none; }
  .section-link { min-height: 36px; }
  .feature { grid-template-columns: 1fr; padding: 10px; }
  .feature-placeholder { min-height: 190px; aspect-ratio: auto; }
  .feature-copy { padding: 25px 15px 17px; }
  .feature-copy h3 { font-size: 1.5rem; }
  .section-intro { font-size: .88rem; }
  .video-grid { grid-template-columns: 1fr; gap: 22px; }
  .video-slot { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 17px; align-items: start; }
  .thumbnail-placeholder { min-height: 95px; aspect-ratio: auto; }
  .thumbnail-placeholder span:last-child { font-size: .5rem; letter-spacing: .08em; padding-inline: 8px; text-align: center; }
  .video-copy { padding-top: 0; }
  .video-copy h3 { font-size: .95rem; }
  .video-copy p { font-size: .78rem; }
  .shorts-strip { padding: 25px; flex-direction: column; align-items: start; gap: 20px; }
  .path-grid { grid-template-columns: 1fr; gap: 16px; }
  .path { padding: 24px; gap: 18px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 26px 22px; margin-top: 44px; }
  .about-art { padding: 0; }
  .about-art img { width: 84px; }
  .about-copy h2 { font-size: 1.65rem; }
  .about-story { margin-top: 18px; }
  .about-story p { font-size: .93rem; line-height: 1.75; margin-top: 15px; }
  .about-story .about-turn { font-size: .98rem; margin: 20px 0; }
  .social { flex-direction: column; align-items: start; gap: 24px; padding-block: 44px; }
  footer { align-items: start; flex-direction: column; gap: 18px; padding-block: 25px 30px; }
  footer > p { text-align: left; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .brand { font-size: 1rem; }
  .hero { padding-inline: 18px; }
  .hero .eyebrow { font-size: .55rem; }
  .about { grid-template-columns: 1fr; }
  .about-art img { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
  .cursor-sparkles { display: none; }
}

/* Public beta: accessible links instead of unverified thumbnail slots. */
.video-slot{display:block;text-decoration:none;color:inherit;cursor:pointer}
.video-slot .thumbnail-placeholder{border-style:solid;transition:background-color .2s,border-color .2s}
.video-slot:hover .thumbnail-placeholder,.video-slot:focus-visible .thumbnail-placeholder{background:#12365da8;border-color:var(--ice)}
.video-slot:focus-visible{outline:3px solid var(--ice);outline-offset:4px}
@media (prefers-reduced-motion: reduce){.video-slot .thumbnail-placeholder{transition:none}}

/* Official accounts stay visible near the top of every screen. */
.account-links {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 11px;
  padding:12px 0 4px; border-bottom:1px solid #6face222;
}
.account-links a {
  display:inline-flex; align-items:center; gap:9px;
  min-height:42px; padding:8px 12px; font-size:.79rem; font-weight:620;
  color:var(--fur); text-decoration:none; background:#112e5066;
  border:1px solid #82b8d946; border-radius:6px;
  transition:border-color .2s, background .2s;
}
.account-links a:hover,.account-links a:focus-visible {
  border-color:var(--ice); background:#21496a88;
}
.account-links .social-icon { display:block; width:22px; height:22px; flex:none; object-fit:contain; }
.account-links .twitch-header-status {
  font-size:.65rem; font-weight:700; color:var(--muted); letter-spacing:.02em;
  border-left:1px solid #82b8d955; padding-left:9px;
}
.account-links .twitch-header-status.is-live { color:#ffb5c7; }

/* Official Twitch player; Twitch requires at least a 400x300 player. */
.twitch-panel {
  display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);
  gap:26px; padding:25px; align-items:center;
  background:linear-gradient(98deg,#1c426ca8,#11274b84 65%,#0a1d3833);
}
.twitch-intro { min-width:0; padding:15px 8px; }
.twitch-intro>.eyebrow { margin-bottom:17px; }
.twitch-live-label {
  display:inline-flex; align-items:center; gap:9px; max-width:100%;
  font-size:1.15rem; font-weight:680; color:var(--fur);
}
.twitch-live-label.is-live { color:#ffbdca; }
.twitch-live-label.is-live::before {
  content:""; width:9px; height:9px; flex:none;
  background:#ff6d96; border-radius:50%; box-shadow:0 0 13px #ff749dbb;
}
.twitch-intro p:not(.eyebrow) {
  margin:12px 0 18px; font-size:.87rem; color:var(--copy);
}
.twitch-player-scroller {
  width:100%; max-width:100%; min-height:300px; overflow-x:auto;
  overflow-y:hidden; background:#050c1f; border-radius:6px;
  border:1px solid #6face249;
}
.twitch-player { min-width:400px; width:100%; height:300px; }
.twitch-player iframe { border:0; display:block; }
.twitch-disclaimer { padding:10px 2px 0; font-size:.72rem; color:var(--muted); }

/* Video cards keep genuine YouTube thumbnails until hover / mobile dwell. */
.feed-timestamp { display:inline-block; font-size:.76rem; color:var(--ice); margin-left:5px; }
.video-slot.video-card { display:block; text-decoration:none; }
.video-thumb-link {
  display:block; position:relative; isolation:isolate; overflow:hidden;
  aspect-ratio:16/9; border-radius:6px;
  background:linear-gradient(125deg,#193a64,#08182f);
  border:1px solid #6face258; cursor:pointer;
}
.video-thumb-link:hover,.video-thumb-link:focus-visible { border-color:var(--ice); }
.video-thumb-image { display:block; width:100%; height:100%; object-fit:cover; }
.video-thumb-shine { position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(0deg,#03122788,transparent 38%); }
.video-preview { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.video-preview iframe { display:block; width:100%; height:100%; border:0; pointer-events:none; }
.video-preview-hint {
  position:absolute; z-index:3; left:12px; bottom:10px; padding:4px 8px;
  background:#071b34c9; border:1px solid #b9e6fb55;
  color:var(--soft); font-size:.7rem; pointer-events:none; border-radius:3px;
}
.video-card .video-copy { padding:14px 2px 4px; }
.video-card .video-copy h3 { font-size:1rem; line-height:1.36; }
.video-card .video-copy h3 a { text-decoration:none; color:var(--white); }
.video-card .video-copy h3 a:hover { color:var(--ice); text-decoration:underline; }
.video-card .video-copy p { margin-top:7px; color:var(--muted); font-size:.75rem; }
.video-card .video-copy .video-info { margin-top:5px; color:var(--copy); }
.featured-media { position:relative; overflow:hidden; text-decoration:none; }
.featured-media .video-thumb-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.featured-media .video-preview { z-index:3; }
.featured-media .feature-label { z-index:2; position:absolute; left:12px; bottom:12px; padding:5px 9px; background:#071b34ca; border-radius:4px; color:var(--fur); }
.featured-media .placeholder-orbit { z-index:1; }
.featured-media:hover,.featured-media:focus-visible { border-color:var(--ice); }

@media(max-width:950px) {
  .twitch-panel { grid-template-columns:1fr; }
  .twitch-intro { padding:2px; }
  .twitch-player-scroller { max-width:100%; }
}
@media(max-width:680px) {
  .account-links { gap:7px; padding:12px 0 8px; }
  .account-links a { min-height:43px; padding:7px 10px; font-size:.74rem; }
  .account-links .twitch-header-status { font-size:.61rem; }
  .twitch-panel { padding:13px; gap:14px; }
  .twitch-intro { padding:7px 6px; }
  .twitch-player { width:400px; }
  .video-slot.video-card { display:grid; grid-template-columns:minmax(0,42%) minmax(0,1fr); gap:13px; padding-bottom:16px; }
  .video-thumb-link { width:100%; align-self:start; }
  .video-card .video-copy { padding:0; }
  .video-card .video-copy h3 { font-size:.84rem; }
  .video-card .video-copy p { font-size:.69rem; }
  .video-preview-hint { font-size:.62rem; left:6px; bottom:6px; }
  .feed-timestamp { display:block; margin:6px 0 0; }
}
@media(prefers-reduced-motion:reduce) {
  .account-links a { transition:none; }
}

/* Format-specific uploads: full episodes as a vertical list, Shorts as tiles. */
.longform-list {
  grid-template-columns: 1fr;
  gap: 14px;
}
.longform-list .video-slot.video-card {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  padding: 14px;
  border: 1px solid #6396c45a;
  border-radius: 7px;
  background: linear-gradient(100deg, #17365a82, #091d3566 80%);
}
.longform-list .video-thumb-link {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.longform-list .video-card .video-copy { padding: 4px 0; }
.longform-list .video-card .video-copy h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
}
.longform-list .video-card .video-copy p {
  margin-top: 10px;
  font-size: .82rem;
}

/* A browseable strip of genuinely vertical Shorts thumbnails. */
.shorts-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.shorts-grid .video-slot.video-card {
  display: block;
  min-width: 0;
  padding: 0 0 12px;
}
.shorts-grid .video-thumb-link {
  aspect-ratio: 9 / 16;
  border-color: #76fff846;
}
.shorts-grid .video-thumb-image {
  object-fit: cover;
}
.shorts-grid .video-card .video-copy { padding: 10px 2px 0; }
.shorts-grid .video-card .video-copy h3 { font-size: .87rem; line-height: 1.36; }
.shorts-grid .video-card .video-copy p { font-size: .7rem; margin-top: 6px; }
.shorts-grid .video-preview-hint { left: 6px; bottom: 6px; padding: 3px 5px; font-size: .6rem; }

@media (max-width: 1020px) {
  .shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .shorts-grid .video-card .video-copy h3 { font-size: .95rem; }
}
@media (max-width: 680px) {
  .longform-list { gap: 12px; }
  .longform-list .video-slot.video-card {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 10px;
  }
  .longform-list .video-card .video-copy { padding: 1px 0; }
  .longform-list .video-card .video-copy h3 { font-size: .83rem; line-height: 1.33; }
  .longform-list .video-card .video-copy p { margin-top: 6px; font-size: .7rem; }
  .shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .shorts-grid .video-slot.video-card { display: block; padding-bottom: 10px; }
  .shorts-grid .video-card .video-copy { padding-top: 8px; }
  .shorts-grid .video-card .video-copy h3 { font-size: .81rem; }
  .shorts-grid .video-preview-hint { font-size: .57rem; }
}


/* The approved transparent PNG replaces the former CSS-rendered cartridge.
   Only the thumbnail label and YouTube branding are layered on top. */
.adventure-section { margin-top: 66px; }
.adventure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.adventure-choice {
  min-width: 0; padding: 22px 15px;
  background: linear-gradient(165deg, #18395a9e, #0a1d39b8 88%);
  border: 1px solid #6face240; border-radius: 10px;
  transition: border-color .2s;
}
.adventure-choice:hover, .adventure-choice:focus-within { border-color: #76fff88c; }
.cartridge-link {
  display: block; width: min(100%, 310px); aspect-ratio: 1231 / 794;
  position: relative; margin: 0 auto; color: inherit; text-decoration: none;
  border-radius: 8px;
}
.cartridge-link:focus-visible { outline: 3px solid var(--ice); outline-offset: 4px; }
.cartridge-image-wrap { position: absolute; inset: 0; display: block; }
.cartridge-shell {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: contain; filter: drop-shadow(0 8px 9px #02091675);
  transition: transform .2s, filter .2s;
}
.cartridge-link:hover .cartridge-shell,
.cartridge-link:focus-visible .cartridge-shell {
  transform: translateY(-3px);
  filter: drop-shadow(0 12px 13px #02091690);
}
.cartridge-label-area {
  /* Treat the thumbnail as the entire N64 sticker, not a picture sitting
     above a YouTube banner. Crop edge-to-edge into the shell's label recess. */
  position: absolute; left: 25.4%; right: 25.4%; top: 17.4%; bottom: 16.4%;
  display: block; overflow: hidden;
  border-radius: 5px 5px 4px 4px;
  border: 0;
  background: #071632; box-shadow: inset 0 0 0 1px #e7edf7b3;
  transition: transform .2s;
}
.cartridge-link:hover .cartridge-label-area,
.cartridge-link:focus-visible .cartridge-label-area { transform: translateY(-3px); }
.cartridge-picture {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%; overflow: hidden;
}
.cartridge-picture img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
.cartridge-description { padding: 12px 5px 0; text-align: center; }
.cartridge-description .eyebrow { font-size: .61rem; margin-bottom: 6px; }
.cartridge-description h3 { font-size: 1.05rem; line-height: 1.32; color: var(--fur); }
.cartridge-description > p:not(.eyebrow) { margin-top: 7px; color: var(--copy); font-size: .81rem; line-height: 1.58; }
@media (max-width: 850px) {
  .adventure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adventure-choice:last-child { grid-column: 1 / -1; width: min(100%, 360px); justify-self: center; }
}
@media (max-width: 520px) {
  .adventure-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .adventure-choice:last-child { grid-column: auto; width: 100%; }
  .adventure-choice { padding: 20px 15px; }
  .cartridge-link { width: min(100%, 285px); }
}
@media (prefers-reduced-motion: reduce) {
  .cartridge-shell, .cartridge-label-area, .adventure-choice { transition: none; }
  .cartridge-link:hover .cartridge-shell,
  .cartridge-link:focus-visible .cartridge-shell,
  .cartridge-link:hover .cartridge-label-area,
  .cartridge-link:focus-visible .cartridge-label-area { transform: none; }
}


/* Phase 3: public playlist library; same dark-glass and N64 cartridge system. */
.library-hero {
  position:relative; isolation:isolate; overflow:hidden;
  margin-top:28px; padding:clamp(28px,5vw,58px);
  background:linear-gradient(115deg,#173c64d6,#0a1c39 82%);
}
.library-hero::after {
  content:"✧"; position:absolute; right:7%; top:2%;
  color:#76fff840; font-size:clamp(6rem,20vw,13rem); pointer-events:none;
}
.library-hero .eyebrow { letter-spacing:.17em; color:var(--ice); }
.library-hero h1 {
  font-size:clamp(2.7rem,6vw,5.3rem); line-height:1.15;
  letter-spacing:0; margin:18px 0 12px;
  max-width:750px; position:relative; z-index:1;
}
.library-hero p:not(.eyebrow) {
  max-width:700px; color:var(--copy); font-size:1rem;
  position:relative; z-index:1; line-height:1.8;
}
.library-hero .text-link {display:inline-block;margin-top:22px;position:relative;z-index:1;}
.library-controls { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin-bottom:20px; }
.library-controls label {display:flex;flex:1 1 270px; flex-direction:column;gap:7px;color:var(--fur);font-size:.78rem;font-weight:650;}
.library-controls label:last-child {flex:0 1 225px;}
.library-controls input,.library-controls select {
  display:block; width:100%; background:#071b34;color:var(--white);
  border:1px solid #6face27a;border-radius:7px;padding:12px 13px;
  min-height:45px;font:inherit;font-size:.91rem;
}
.library-controls input:focus-visible,.library-controls select:focus-visible {
  outline:2px solid var(--ice);outline-offset:3px;
}
.library-status {color:var(--copy);font-size:.88rem;min-height:1.5em;margin-bottom:7px;}
.library-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
.library-card {
  position:relative; min-width:0;overflow:hidden;
  padding:13px 10px 17px; border:1px solid #6face249;
  border-radius:9px;background:linear-gradient(150deg,#18395a90,#091c3580);
  transition:border-color .2s;
}
.library-card:hover,.library-card:focus-within {border-color:var(--ice);}
.library-card .cartridge-link {width:min(100%,260px);}
.library-card .cartridge-label-area {border:0;}
.library-card-copy {padding:10px 7px 0;}
.library-card-copy h3 {
  font-size:.93rem;line-height:1.4;overflow-wrap:anywhere;color:var(--white);
}
.library-card-copy p {margin-top:5px;font-size:.73rem;color:var(--copy);}
.library-more {display:block; margin:30px auto 0; min-height:44px;}
.library-more[hidden] {display:none;}
.library-footnote {margin:25px auto 0;max-width:870px;font-size:.76rem;line-height:1.7;color:var(--muted);}

/* N64 console layers measured against the approved 700x525 image.
   Slot center x=350; actual light-gray dust door spans about x=200..500,
   y=136..158. The original raster is reused without modifying its artwork. */
.adventure-grid,.library-card {position:relative;}
.adventure-grid.is-booting > .adventure-choice {opacity:.10;transition:opacity .24s;}
.library-card.is-booting > .cartridge-link,
.library-card.is-booting > .library-card-copy {opacity:.08;transition:opacity .24s;}
.cartridge-boot-overlay {
  position:absolute;inset:0;z-index:10;display:flex;
  align-items:center;justify-content:center;overflow:hidden;
  padding:8px;background:radial-gradient(ellipse at 50% 35%,#1e4d78ed,#050e25f4 82%);
  border:1px solid #76fff88a;border-radius:9px;
  animation:boot-arrive .18s ease-out both;
}
.cartridge-boot-overlay.boot-finished {opacity:0;transition:opacity .4s ease-in;}
.boot-scene {
  position:relative;width:min(100%,350px);height:min(270px,100%);
  min-height:145px;isolation:isolate;
}
.boot-console-visual {
  position:absolute;left:50%;bottom:17px;
  width:min(100%,340px);aspect-ratio:700/525;
  transform:translateX(-50%);isolation:isolate;
  filter:drop-shadow(0 9px 11px #0008);
}
.boot-console-back,.boot-console-front {
  position:absolute;inset:0;display:block;width:100%;height:100%;
  object-fit:contain;pointer-events:none;
}
.boot-console-back {z-index:1;}
/* First cover the static white flap printed in the original N64 image,
   creating the dark inside of the cartridge slot beneath the hinged door. */
.boot-slot-cavity {
  position:absolute;z-index:2;left:28.55%;top:25.7%;
  width:42.95%;height:4.9%;
  border-radius:4px 4px 7px 7px;
  background:linear-gradient(#080808,#242426 58%,#09090b);
  box-shadow:inset 0 1px 3px #000,inset 0 -1px 1px #7776;
}
.boot-cartridge {
  /* Nearly the physical dust-slot width (42.95%). Larger than before,
     while still fitting completely inside the opening. */
  position:absolute;z-index:3;left:50%;top:-32%;
  width:42%;aspect-ratio:1231/794;pointer-events:none;
  transform:translateX(-50%);clip-path:inset(0 0 0 0);
}
.boot-scene.boot-inserting .boot-cartridge {
  animation:boot-seat 1.1s cubic-bezier(.27,.05,.15,1) .08s forwards;
}
.boot-cartridge .cartridge-image-wrap,.boot-cartridge .library-cartridge-art {
  position:absolute;inset:0;display:block;width:100%;height:100%;
}
.boot-cartridge .cartridge-shell,.boot-cartridge > img {
  width:100%;height:100%;object-fit:contain;
}
.boot-cartridge .cartridge-label-area {border:0;}
/* Seated cartridge sinks behind the slot lip: only its upper ~quarter stays visible.\n   The eject animation reverses the same vertical travel.\n   Front console image covers anything that passes below the rim.
   This establishes a real occlusion plane rather than a floating sticker. */
.boot-console-front {z-index:4;clip-path:inset(29.7% 0 0 0);}
/* Original light-gray dust flap, cropped from the same image with CSS.
   No separately generated flap art; it folds downward into the slot. */
.boot-slot-flap {
  position:absolute;z-index:5;left:28.55%;top:25.7%;
  width:42.95%;height:4.55%;border-radius:2px 2px 6px 6px;
  background:url("assets/n64-console-front.webp") no-repeat;
  background-size:232.83% auto;background-position:50% 26.65%;
  transform-origin:50% 100%;backface-visibility:hidden;
  transform:perspective(160px) rotateX(0deg);
  filter:brightness(1);
  transition:transform .22s ease-in,filter .22s ease-in;
  pointer-events:none;
}
.boot-scene.boot-slot-open .boot-slot-flap {
  transform:perspective(160px) rotateX(-78deg) translateY(3px);
  filter:brightness(.45);
}
/* Pixel-registered console power state: show the approved ON render
   ONLY over the rocker and red LED. The unchanged OFF render supplies
   every other pixel, preventing console-shell jump/crossfade ghosting. */
.boot-console-on {
  position:absolute;inset:0;z-index:6;
  width:100%;height:100%;object-fit:contain;pointer-events:none;
  opacity:0;
  -webkit-mask-image:
    radial-gradient(ellipse 6.5% 11.5% at 23.6% 50.5%,#000 57%,transparent 99%),
    radial-gradient(ellipse 11% 7.5% at 48.5% 76%,#000 32%,transparent 97%);
  mask-image:
    radial-gradient(ellipse 6.5% 11.5% at 23.6% 50.5%,#000 57%,transparent 99%),
    radial-gradient(ellipse 11% 7.5% at 48.5% 76%,#000 32%,transparent 97%);
  transition:opacity .12s linear;
}
.boot-scene.boot-powered .boot-console-on {opacity:1;}
.boot-scene.boot-powered-off .boot-console-on {opacity:0;}
.boot-scene.boot-eject .boot-cartridge {
  animation:boot-eject .68s cubic-bezier(.16,.84,.21,1) both;
}
.boot-caption {
  position:absolute;z-index:7;bottom:0;left:0;right:0;
  text-align:center;color:var(--ice);
  font-size:.7rem;letter-spacing:.17em;font-weight:800;
  text-shadow:0 2px 8px #06162d;
}
.boot-caption a {
  display:inline-flex;align-items:center;justify-content:center;
  box-sizing:border-box;width:auto;max-width:100%;
  min-height:44px;padding:11px 18px;
  border:1px solid var(--ice);border-radius:6px;
  background:#10395a;color:var(--ice);text-decoration:none;
  text-align:center;vertical-align:middle;white-space:normal;
  font-size:.85rem;line-height:1.3;letter-spacing:0;pointer-events:auto;
}
.boot-caption a:focus-visible {outline:2px solid #fff;outline-offset:4px;}
@keyframes boot-arrive {from{opacity:0}to{opacity:1}}
@keyframes boot-seat {
  0%   {top:-32%;transform:translateX(-50%);clip-path:inset(0 0 0 0);}
  50%  {top:-5%;transform:translateX(-50%);clip-path:inset(0 0 0 0);}
  72%  {top:0%;transform:translateX(-50%);clip-path:inset(0 0 18% 0);}
  100% {top:7%;transform:translateX(-50%);clip-path:inset(0 0 25% 0);}
}
@keyframes boot-eject {
  0%   {top:7%;transform:translateX(-50%);clip-path:inset(0 0 25% 0);}
  34%  {top:0%;transform:translateX(-50%);clip-path:inset(0 0 18% 0);}
  65%  {top:-5%;transform:translateX(-50%);clip-path:inset(0 0 0 0);}
  100% {top:-32%;transform:translateX(-50%);clip-path:inset(0 0 0 0);}
}
@media(max-width:1050px){.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:680px){
  .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .library-card{padding:10px 7px 13px;}
  .library-card-copy{padding:7px 5px 0;}
  .library-card-copy h3{font-size:.82rem;}
  .library-card-copy p{font-size:.68rem;}
  .library-controls label:last-child{flex:1 1 180px;}
  .library-hero{padding:28px 22px;}
  .library-hero h1{font-size:clamp(2.4rem,9vw,3.6rem);}
  .boot-scene{height:180px;min-height:150px;}
  .boot-caption{letter-spacing:.08em;font-size:.58rem;}
  .boot-console-visual{bottom:14px;}
  .boot-caption a{font-size:.77rem;padding:8px 10px;}
}
@media(prefers-reduced-motion:reduce){
  .cartridge-boot-overlay,.boot-cartridge{animation:none;}
  .library-card,.adventure-choice{transition:none;}
}


.adventure-library-cta {
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-top:18px;padding:16px 22px;
  color:var(--fur);background:#122f5088;border:1px solid #6face240;
  border-radius:8px;font-size:.89rem;
}
.adventure-library-cta .button{font-size:.8rem;}
@media(max-width:680px){.adventure-library-cta{justify-content:center;text-align:center;}}
