/* Cozy bedroom at night: warm wall, brown ink outlines; the art comes from the Blender renders. */
@font-face { font-family: Grandstander; src: url(assets/grandstander.ttf); font-weight: 100 900; font-display: swap; }

:root {
  --wall: #33231b;
  --wall-low: #271a14;
  --ink: #170e0a;
  --lamp: #ffbd59;
  --cream: #f4e3c6;
  --curtain: #c99a2e;
  --line: 3px solid var(--ink);
  --pad: max(1.25rem, calc((100% - 62rem) / 2));
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--wall); color: var(--cream); font: 1.0625rem/1.6 system-ui, sans-serif; }
h1, h2, .subscribe, nav, .soon strong { font-family: Grandstander, system-ui, sans-serif; }
h1 { font-weight: 850; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.15; }
p { max-width: 34rem; }
a { color: var(--lamp); }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: .5rem; top: .5rem; z-index: 5; background: var(--ink); padding: .5rem 1rem; }

/* Header and hero */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .75rem var(--pad); }
.brand { display: flex; align-items: center; gap: .6rem; font: 800 1.2rem Grandstander, system-ui, sans-serif; color: var(--cream); text-decoration: none; }
.brand img { border-radius: 50%; border: 2px solid var(--ink); }
nav { display: flex; font-weight: 700; }
nav a { color: var(--cream); text-decoration: none; padding: .5rem .6rem; }
nav a:first-child { padding-left: 0; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; gap: 1.5rem; padding: 0 var(--pad) 2.5rem; }
.hero > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border: 4px solid var(--ink); border-radius: 18px; }
.hero .lede { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: .75rem; font-size: clamp(1.7rem, 8vw, 3.2rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
@media (min-width: 48rem) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; padding-top: 1.5rem; padding-bottom: 3.5rem; }
  .hero > img { order: 2; aspect-ratio: 4 / 5; max-height: 38rem; }
}

.subscribe { display: inline-block; background: var(--lamp); color: var(--ink); border: var(--line); border-radius: 999px; box-shadow: 0 5px 0 var(--ink); padding: .65rem 1.5rem; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.subscribe:active { translate: 0 4px; box-shadow: 0 1px 0 var(--ink); }
.pending { width: fit-content; border: 2px dashed currentColor; border-radius: 999px; padding: .5rem 1.2rem; }

/* Video frames */
.frame { border: 4px solid var(--ink); border-radius: 12px; background: var(--ink); overflow: hidden; }
.shorts .frame { aspect-ratio: 9 / 16; }
.feature { max-width: 46rem; }
.feature .frame { aspect-ratio: 16 / 9; }
.title { margin-top: .5rem; font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.play, .soon, iframe { display: block; width: 100%; height: 100%; border: 0; }
.play:focus-visible { outline-offset: -4px; }
.play { position: relative; padding: 0; cursor: pointer; background: var(--ink); overflow: hidden; }
.play img { width: 100%; height: 100%; object-fit: cover; }
.play::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4rem; height: 4rem; border-radius: 50%; border: var(--line); background: var(--lamp); }
.play::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; translate: -35% -50%; border-style: solid; border-width: .8rem 0 .8rem 1.25rem; border-color: transparent transparent transparent var(--ink); }
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25rem; padding: 1rem; background: var(--wall-low); color: var(--cream); }
.soon strong { font-size: 1.25rem; }

/* Sections */
.band { padding: 3.5rem var(--pad); border-top: var(--line); }
.band > * + * { margin-top: 1rem; }
#cartoons, .latest { background: var(--wall-low); }
#cartoons { background: var(--wall); }
.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (min-width: 48rem) { .shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.cosmos { background-color: #161a3d; color: #e4e9ff;
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, #0000 51%), radial-gradient(1px 1px at 70% 60%, #bfd0ff 50%, #0000 51%), radial-gradient(1px 1px at 45% 85%, #fff 50%, #0000 51%);
  background-size: 190px 170px, 130px 150px, 240px 210px; }
.cosmos .soon { background: #222756; color: #e4e9ff; }

.games { background: #0e2233; color: #e2f6f5; }
.game { position: relative; display: grid; gap: 1.5rem; align-items: center; }
.game > .phones, .game > ul { opacity: .45; }
.game > .stamp { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; rotate: -12deg; width: max-content; max-width: none; margin: 0; pointer-events: none;
  background: var(--lamp); color: var(--ink); border: 5px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink);
  padding: .2em .5em; font: 850 clamp(2.4rem, 11.5vw, 6.5rem)/1.2 Grandstander, system-ui, sans-serif; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 30rem; }
.phones img { border: 4px solid var(--ink); border-radius: 18px; }
.game ul { list-style: square; padding-left: 1.2rem; }
.game li::marker { color: #5fe0d8; }
@media (min-width: 48rem) { .game { grid-template-columns: 30rem 1fr; gap: 3rem; } }

footer, .noscript { padding: 2rem var(--pad); border-top: var(--line); text-align: center; }
footer p { margin: .4rem auto; }
[data-channel] > p:not(.pending) { margin-top: 1rem; }
footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; }

/* Privacy page */
.doc { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
.doc h1 { margin-top: 1.25rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2rem; }
.doc p { margin-top: .75rem; }

/* Scroll animation (classes added by main.js) */
.pop { opacity: 0; translate: 0 5rem; scale: .8; }
.pop.in { opacity: 1; translate: 0; scale: 1; transition: opacity .5s ease-out var(--delay), translate .8s cubic-bezier(.2, 1.5, .4, 1) var(--delay), scale .8s cubic-bezier(.2, 1.5, .4, 1) var(--delay); }
.game > .stamp.slam { opacity: 0; scale: 2.2; }
.game > .stamp.slam.in { opacity: 1; scale: 1; transition: opacity .15s linear var(--delay), scale .3s cubic-bezier(.5, 0, .7, 1.4) var(--delay); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
