/* BUDDY WANTS TO BE YOUR FRIEND
   A dark room. A 1995 television. A children's show that slowly turns on you.
   Mood is driven by body.mood-high / mood-mid / mood-low / mood-dead and the custom
   properties set by buddy.js (--rot, --sat, --dark, --shake). */

:root {
  --sky1: #7fd8ff;
  --sky2: #c9f3ff;
  --grass: #7ce05a;
  --paper: #fffbe6;
  --ink: #3b2a7a;
  --yes: #ffdd2e;
  --no: #ff7ad9;
  --accent: #ff4fb0;
  --red: #e3000f;
  --blood: #8f0511;
  --rot: 0deg;       /* hue rotation applied to the set */
  --sat: 1;          /* saturation multiplier */
  --dark: 0;         /* 0..1 darkness overlay */
  --shake: 0px;      /* text jitter amplitude */
  --screen-h: clamp(440px, 72vh, 860px);
  --bezel: 22px;
  --font-kid: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Marker Felt", "Segoe Print", "Bradley Hand", cursive;
  --font-sys: "Trebuchet MS", "Verdana", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-kid);
  color: var(--ink);
  background: #07050a;
  overflow-x: hidden;
  transition: background-color 2s;
}
body::before {
  /* the key art, blurred, behind everything */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(assets/hero-bg.jpg) center 30% / cover no-repeat;
  opacity: .16; filter: saturate(1.2);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 18%, rgba(27, 19, 36, .7) 0%, rgba(11, 8, 16, .85) 45%, #07050a 80%);
}
body.mood-low { background-color: #0a0305; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- the room and the set ---------- */
.room { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: clamp(10px, 2vh, 24px) 12px 28px; }
.tv {
  position: relative; width: min(100%, 1040px);
  background:
    radial-gradient(circle at 14px 14px, #0a0a0b 0 2.5px, #3a3638 3px 4px, transparent 4.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 14px) 14px, #0a0a0b 0 2.5px, #3a3638 3px 4px, transparent 4.5px) 0 0 / 100% 100% no-repeat,
    linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .035) 50%, transparent 62%),
    linear-gradient(180deg, #3b3739, #262224 45%, #1a1718 80%, #121011);
  border-radius: 22px 22px 14px 14px; padding: var(--bezel) var(--bezel) 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .8), inset 2px 0 0 rgba(255, 255, 255, .05), inset -2px 0 0 rgba(0, 0, 0, .4), 0 50px 100px rgba(0, 0, 0, .9), 0 0 0 1px #000, 0 0 0 3px #2a2628;
}
.tv::before {
  /* brushed plastic grain */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 5px);
}
.tv::after {
  /* the set lights the room */
  content: ""; position: absolute; inset: -70px -90px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(127, 216, 255, .2), transparent 62%);
  filter: blur(14px); transition: background 2s;
}
.mood-mid .tv::after { background: radial-gradient(ellipse at 50% 40%, rgba(190, 120, 160, .18), transparent 62%); }
.mood-low .tv::after { background: radial-gradient(ellipse at 50% 40%, rgba(227, 0, 15, .26), transparent 62%); }
.tv.shake { animation: tvshake .5s steps(2) 1; }

.screen {
  position: relative; height: var(--screen-h); border-radius: clamp(24px, 3.4vw, 44px) / clamp(28px, 4vw, 52px); overflow: hidden; background: #000;
  box-shadow: inset 0 0 0 7px #050506, inset 0 0 0 9px #1c191b, inset 0 0 0 10px #050506, inset 0 0 70px 18px rgba(0, 0, 0, .85), inset 0 10px 30px rgba(0, 0, 0, .6);
  isolation: isolate;
  outline: 1px solid rgba(255, 255, 255, .06); outline-offset: 3px;
}
.glass {
  position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(255, 60, 60, .05) 0 1px, rgba(60, 255, 60, .04) 1px 2px, rgba(60, 60, 255, .05) 2px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .17) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, .35) 82%, rgba(0, 0, 0, .75) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 50px rgba(0, 0, 0, .45);
}
.glass::after {
  /* the room reflected in the bulge of the tube */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 38% at 22% 8%, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05) 45%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 96%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(106deg, transparent 0 16%, rgba(255, 255, 255, .07) 16.5% 27%, transparent 27.5% 31%, rgba(255, 255, 255, .035) 31.5% 36%, transparent 36.5%),
    linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 6%);
}

.deck {
  display: flex; align-items: center; gap: 1rem; padding: 14px 12px 16px; position: relative; margin: 10px calc(-1 * var(--bezel)) 0; padding-left: calc(var(--bezel) + 2px); padding-right: calc(var(--bezel) + 2px);
  background: linear-gradient(180deg, #1c191b, #141214); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .9), inset 0 -1px 0 rgba(255, 255, 255, .04);
  border-radius: 0 0 14px 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 400 1.05rem/1 var(--font-head); letter-spacing: .3em; color: #cfc6bc; background: linear-gradient(180deg, #fff 0%, #b9b0a6 45%, #6f675f 50%, #d8d0c6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 #000); }
.brand-sub { font: .55rem var(--font-sys); letter-spacing: .26em; color: #7c746d; margin-top: .4rem; }
.grille { flex: 1; height: 38px; border-radius: 3px; background: radial-gradient(circle, #050405 0 1.3px, transparent 1.6px) 0 0 / 6px 6px, linear-gradient(180deg, #2c2729, #1d1a1c); box-shadow: inset 0 1px 3px #000, inset 0 0 0 1px #0b0a0b; }
.controls { display: flex; align-items: center; gap: .7rem; }
.chan { display: inline-flex; align-items: center; gap: .45rem; font: 700 .72rem/1 "Courier New", monospace; letter-spacing: .12em; color: #ff8c1a; background: #0a0806; border: 1px solid #000; border-radius: 3px; padding: .45rem .55rem; box-shadow: inset 0 0 6px rgba(255, 140, 26, .25), inset 0 2px 4px #000; text-shadow: 0 0 6px rgba(255, 140, 26, .9); }
.led { width: 7px; height: 7px; border-radius: 50%; background: #ff2a1a; box-shadow: 0 0 6px #ff2a1a, 0 0 2px #fff inset; }
.deck:has(#btn-sound[aria-pressed="true"]) .led { background: #5bff5b; box-shadow: 0 0 8px #5bff5b; }
.knob-w { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; }
.knob-l { font: 700 .5rem var(--font-sys); letter-spacing: .2em; color: #7c746d; }
.knob { width: 30px; height: 30px; border-radius: 50%; position: relative; background: repeating-conic-gradient(from 0deg, #15120f 0 6deg, #3d3633 6deg 12deg); box-shadow: 0 3px 3px #000, inset 0 0 0 3px #0e0b0a, inset 0 0 0 5px #2a2523, 0 0 0 1px #000; }
.knob::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5e544f, #1d1816 72%); }
.knob::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: #e9e0d4; transform: translateX(-50%); border-radius: 1px; }
.knob-2::after { transform: translateX(-50%) rotate(40deg); transform-origin: 50% 8px; }
.tool {
  font: 700 .68rem var(--font-sys); letter-spacing: .1em; padding: .55rem .7rem; border-radius: .25rem; cursor: pointer;
  background: linear-gradient(#4a4346, #262224); color: #efe6da; border: 1px solid #000;
  box-shadow: 0 3px 0 #0b0909, inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .6);
}
.tool:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b0909; }
.tool:focus-visible { outline: 3px solid #ffdd2e; outline-offset: 2px; }
.tool[aria-pressed="true"] { color: #7cff4f; text-shadow: 0 0 8px #7cff4f; }
.feet { position: absolute; left: 7%; right: 7%; bottom: -16px; height: 16px; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, #1a1718, #060506) 0 0 / 70px 100% no-repeat, linear-gradient(180deg, #1a1718, #060506) 100% 0 / 70px 100% no-repeat; border-radius: 0 0 6px 6px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .8)); }

/* blood out of the set, when it is over */
.bleed {
  position: absolute; left: var(--bezel); right: var(--bezel); top: calc(var(--bezel) + var(--screen-h) - 14px); height: 170px; z-index: 3;
  pointer-events: none; opacity: 0; transition: opacity 3s ease;
  background:
    radial-gradient(circle, var(--blood) 0 9px, transparent 10px) 8% 90px / 20px 20px no-repeat, linear-gradient(var(--blood), var(--blood)) 8% 0 / 14px 100px no-repeat,
    radial-gradient(circle, var(--blood) 0 12px, transparent 13px) 27% 130px / 26px 26px no-repeat, linear-gradient(var(--blood), var(--blood)) 27% 0 / 20px 142px no-repeat,
    radial-gradient(circle, var(--blood) 0 7px, transparent 8px) 45% 50px / 16px 16px no-repeat, linear-gradient(var(--blood), var(--blood)) 45% 0 / 10px 58px no-repeat,
    radial-gradient(circle, var(--blood) 0 10px, transparent 11px) 61% 110px / 22px 22px no-repeat, linear-gradient(var(--blood), var(--blood)) 61% 0 / 16px 120px no-repeat,
    radial-gradient(circle, var(--blood) 0 8px, transparent 9px) 80% 70px / 18px 18px no-repeat, linear-gradient(var(--blood), var(--blood)) 80% 0 / 12px 78px no-repeat,
    radial-gradient(circle, var(--blood) 0 11px, transparent 12px) 93% 150px / 24px 24px no-repeat, linear-gradient(var(--blood), var(--blood)) 93% 0 / 18px 160px no-repeat,
    linear-gradient(var(--blood), var(--blood)) 0 0 / 100% 10px no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
}
.mood-dead .bleed { opacity: 1; }

/* ---------- inside the glass: the set ---------- */
.sky {
  position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 56%, var(--grass) 56.2%, #44b22c 100%);
  filter: hue-rotate(var(--rot)) saturate(var(--sat));
  transition: filter 1.4s ease;
}
.darkness { position: absolute; inset: 0; z-index: 1; background: #06030b; opacity: var(--dark); pointer-events: none; transition: opacity 2s ease; }
.sun {
  position: absolute; top: 6%; right: 7%; width: 12vmin; height: 12vmin; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff8b0, #ffd23f 60%, #ffb400);
  box-shadow: 0 0 0 1.2vmin rgba(255, 230, 120, .45), 0 0 6vmin 2vmin rgba(255, 220, 90, .5);
  animation: spin 40s linear infinite;
}
.sun::before {
  content: ""; position: absolute; inset: -3vmin;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 150, .55) 0 9deg, transparent 9deg 18deg);
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 46%, #000 48%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%);
}
.rainbow {
  position: absolute; left: 50%; bottom: 43%; width: 150vmin; height: 75vmin; transform: translateX(-50%);
  border-radius: 75vmin 75vmin 0 0;
  background: radial-gradient(circle at 50% 100%, transparent 0 56%, #ff3b3b 56% 60%, #ff9b2e 60% 64%, #ffe73b 64% 68%, #5be36a 68% 72%, #3bbcff 72% 76%, #7a5cff 76% 80%, transparent 80%);
  opacity: .6;
}
.cloud {
  position: absolute; width: 20vmin; height: 7vmin; background: #fff; border-radius: 8vmin;
  box-shadow: 6vmin -3vmin 0 -1vmin #fff, -6vmin -2vmin 0 -1.5vmin #fff, 0 -4vmin 0 -.5vmin #fff;
  opacity: .95; animation: drift 60s linear infinite;
}
.c1 { top: 11%; left: -25vmin; }
.c2 { top: 26%; left: -25vmin; animation-duration: 85s; animation-delay: -30s; transform: scale(.7); }
.c3 { top: 4%; left: -25vmin; animation-duration: 110s; animation-delay: -70s; transform: scale(1.2); }
.stars i {
  position: absolute; width: 1.6vmin; height: 1.6vmin; background: #fff; opacity: 0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 3s ease-in-out infinite;
}
.stars i:nth-child(1) { top: 8%; left: 10%; animation-delay: 0s; }
.stars i:nth-child(2) { top: 18%; left: 30%; animation-delay: .4s; }
.stars i:nth-child(3) { top: 5%; left: 50%; animation-delay: .8s; }
.stars i:nth-child(4) { top: 22%; left: 70%; animation-delay: 1.2s; }
.stars i:nth-child(5) { top: 12%; left: 88%; animation-delay: 1.6s; }
.stars i:nth-child(6) { top: 30%; left: 15%; animation-delay: 2s; }
.stars i:nth-child(7) { top: 35%; left: 45%; animation-delay: 2.4s; }
.stars i:nth-child(8) { top: 28%; left: 60%; animation-delay: .2s; }
.stars i:nth-child(9) { top: 40%; left: 85%; animation-delay: .6s; }
.stars i:nth-child(10) { top: 15%; left: 5%; animation-delay: 1s; }
.stars i:nth-child(11) { top: 45%; left: 25%; animation-delay: 1.4s; }
.stars i:nth-child(12) { top: 38%; left: 95%; animation-delay: 1.8s; }
.meadow { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; }
.flower { position: absolute; bottom: 8%; width: 6.5vmin; height: 6.5vmin; animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.flower::after { content: ""; position: absolute; left: 50%; top: 80%; width: .8vmin; height: 11vmin; background: #2f9e2f; transform: translateX(-50%); z-index: -1; }
.flower .petals {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 36%, var(--pet, #ff6bd6) 37%);
  mask: repeating-conic-gradient(#000 0 30deg, transparent 30deg 45deg);
  -webkit-mask: repeating-conic-gradient(#000 0 30deg, transparent 30deg 45deg);
  animation: spin 12s linear infinite;
}
.flower .face { position: absolute; inset: 25%; border-radius: 50%; background: #ffe24a; box-shadow: inset 0 -.4vmin 0 #e3b800; }
.flower .face::before, .flower .face::after { content: ""; position: absolute; top: 32%; width: 14%; height: 14%; border-radius: 50%; background: #3b2a7a; }
.flower .face::before { left: 26%; } .flower .face::after { right: 26%; }
.flower .face { background-image: radial-gradient(ellipse at 50% 70%, #3b2a7a 0 10%, transparent 11%); }
.f1 { left: 6%; --pet: #ff6bd6; } .f2 { left: 22%; --pet: #7a5cff; animation-delay: -1s; transform: scale(.8); }
.f3 { left: 52%; --pet: #ff9b2e; animation-delay: -2s; } .f4 { left: 74%; --pet: #3bbcff; animation-delay: -.5s; transform: scale(1.1); }
.f5 { left: 90%; --pet: #ff3b3b; animation-delay: -1.5s; transform: scale(.9); }

.mood-low .sky .sun { filter: brightness(.35) saturate(.3); }
.mood-low .cloud { background: #6b6b74; box-shadow: 6vmin -3vmin 0 -1vmin #6b6b74, -6vmin -2vmin 0 -1.5vmin #6b6b74, 0 -4vmin 0 -.5vmin #6b6b74; }
.mood-low .rainbow { opacity: .15; }

/* ---------- the broadcast (scrolls inside the glass) ---------- */
.app {
  position: absolute; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden;
  padding: 0 14px 2rem; text-align: center;
  scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .45) transparent;
}
.top { position: sticky; top: 0; z-index: 3; margin: 0 -14px; }
.marquee {
  margin: 0; padding: .3rem 0; white-space: nowrap; overflow: hidden;
  background: repeating-linear-gradient(90deg, #ff4fb0 0 20px, #ffdd2e 20px 40px, #3bbcff 40px 60px, #7cff4f 60px 80px);
  color: #2a1a5e; font-weight: 700; font-size: .9rem; letter-spacing: .05em; text-shadow: 0 1px 0 #fff;
}
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
.mood-low .marquee { background: repeating-linear-gradient(90deg, #3a0d14 0 20px, #1a0a10 20px 40px); color: #ff4d5a; text-shadow: none; }
.mood-dead .marquee { color: #fff; background: #3a0000; }

.title {
  font-size: clamp(1.7rem, 5vw, 3.2rem); line-height: 1; margin: .7rem 0 .3rem;
  color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink), 0 0 18px rgba(255, 255, 255, .6);
  letter-spacing: .02em; transform: rotate(-2deg);
  animation: wobble 3s ease-in-out infinite;
}
.sub { font-size: clamp(.95rem, 2.2vw, 1.2rem); margin: 0 0 .3rem; font-weight: 700; text-shadow: 0 1px 0 #fff; }

.stage { position: relative; display: grid; place-items: center; min-height: 150px; }
.mascot { width: clamp(150px, 34vmin, 280px); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .18)); animation: bounce 2.2s ease-in-out infinite; transform-origin: 50% 100%; transition: filter 1s; }
.mascot img, .mascot svg { width: 100%; height: auto; display: block; }
.mascot .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .08s; }
.mascot.blink .lid { transform: scaleY(1); }
.mascot .pupil, .mascot .glint, .mascot .red-eye { transition: transform .12s ease-out; }
.mascot .red-eye { opacity: 0; }
.mascot .brow { opacity: 0; transition: opacity .4s; }
.mascot .mouth { display: none; }
.buddy.face-happy .m-happy { display: block; }
.buddy.face-flat .m-flat { display: block; }
.buddy.face-frown .m-frown { display: block; }
.buddy.face-creepy .m-creepy { display: block; }
.buddy.face-frown .brow, .buddy.face-creepy .brow { opacity: 1; }
.buddy.face-creepy .red-eye { opacity: 1; }
.buddy.face-creepy .cheek { opacity: 0; }
.mood-low .mascot { filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .5)) contrast(1.15) saturate(.8); animation-duration: 6s; }
.mascot.jolt { animation: jolt .5s steps(2) 1; }

.bubble {
  min-height: 3rem; margin: .4rem auto 0; max-width: 520px; font-size: clamp(.95rem, 2.2vw, 1.15rem); font-weight: 700;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 1.2rem; padding: .5rem .9rem;
  box-shadow: 5px 5px 0 var(--ink); position: relative; display: none;
}
.bubble.show { display: block; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.bubble::before { content: ""; position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; background: var(--paper); border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: translateX(-50%) rotate(45deg); }

.panel {
  margin: 1rem auto 0; max-width: 620px; background: rgba(255, 251, 230, .96); border: 4px solid var(--ink);
  border-radius: 1.4rem; padding: 1rem 1rem 1.2rem; box-shadow: 8px 8px 0 var(--ink);
  position: relative;
}
.panel::before { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(59, 42, 122, .35); border-radius: 1rem; pointer-events: none; }
.q-text { font-size: clamp(1.15rem, 3vw, 1.6rem); margin: 0 0 1rem; line-height: 1.25; }
.q-text.scary { letter-spacing: .25em; font-family: var(--font-sys); font-weight: 900; }
.choices { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.btn {
  font-family: var(--font-kid); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.25rem);
  padding: .75rem 1rem; border: 3px solid var(--ink); border-radius: 1rem; cursor: pointer; width: 100%;
  background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .3s;
  position: relative;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); outline: none; }
.btn:focus-visible { box-shadow: 7px 7px 0 var(--ink), 0 0 0 4px #fff, 0 0 0 7px var(--accent); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-yes { background: var(--yes); }
.btn-no { background: var(--no); }
.btn-a { background: #ffe24a; } .btn-b { background: #c4f0ff; } .btn-c { background: #ffd0d0; }
.btn.dodge { transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), box-shadow .12s; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }

.mood-low .panel { background: rgba(26, 14, 24, .94); color: #f3e9ea; border-color: #e3000f; box-shadow: 8px 8px 0 #5c0008; }
.mood-low .panel::before { border-color: rgba(227, 0, 15, .35); }
.mood-low .btn { background: #2a1620; color: #ffdede; border-color: #e3000f; box-shadow: 5px 5px 0 #5c0008; }
.mood-low .btn:hover { box-shadow: 7px 7px 0 #5c0008; }
.mood-low .bubble { background: #1a0e18; color: #ffdede; border-color: #e3000f; box-shadow: 5px 5px 0 #5c0008; }
.mood-low .bubble::before { background: #1a0e18; border-color: #e3000f; }
.mood-low .title { color: #ffd9d9; -webkit-text-stroke-color: #5c0008; text-shadow: 4px 4px 0 #3a0000, 0 0 22px #8f0511; animation: none; transform: none; }
.mood-low .sub { color: #ffdede; text-shadow: none; }
.mood-mid .title { animation-duration: 1.4s; }
.mood-dead .panel { border-color: #ff1f2e; box-shadow: 8px 8px 0 #7a0a0a, 0 0 60px rgba(160, 6, 20, .55); }

/* ---------- the live feed: the real Buddy ---------- */
.feed { position: relative; width: 100%; aspect-ratio: 1; border: 6px solid #fff; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 var(--ink); transition: border-color 1s, box-shadow 1s; }
.feed-in { position: absolute; inset: 0; transition: transform .25s ease-out; transform-origin: 50% 50%; }
.feed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, filter 1.2s; }
.feed[data-face="happy"] .f-happy, .feed[data-face="flat"] .f-happy { opacity: 1; }
.feed[data-face="flat"] .f-happy { filter: saturate(.6) contrast(1.1) brightness(.85); }
.feed[data-face="frown"] .f-hall { opacity: 1; filter: contrast(1.15) saturate(.8); }
.feed[data-face="creepy"] .f-scary { opacity: 1; filter: contrast(1.25) saturate(.85); }
.feed .tint { position: absolute; inset: 0; background: var(--blood); mix-blend-mode: multiply; opacity: 0; transition: opacity 2s; z-index: 1; }
.feed .feed-gore { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.feed::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, .55) 100%); }
.feed-cap { position: absolute; left: 8px; top: 8px; z-index: 4; font: 700 .6rem var(--font-sys); letter-spacing: .18em; color: #fff; background: rgba(0, 0, 0, .6); padding: .22rem .5rem; border-radius: .3rem; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }
.feed-cap::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #ff2a2a; margin-right: .45em; vertical-align: 0; animation: livedot 1.6s steps(1) infinite; }
.mood-mid .feed { border-color: #e9dfe6; }
.mood-low .feed { border-color: #3a0000; box-shadow: 0 0 0 4px #e3000f, 8px 8px 0 #5c0008, 0 0 40px rgba(160, 6, 20, .5); }
.mood-low .feed img { filter: contrast(1.3) saturate(.7) sepia(.25) hue-rotate(-15deg); }
.mood-low .feed .tint { opacity: .35; }
.mood-dead .feed .tint { opacity: .55; }
.mood-low .feed-in { animation: feedjitter .28s steps(2) infinite; }
.mood-low .feed-cap { background: #8f0511; }
@keyframes livedot { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .25; } }
@keyframes feedjitter { 0% { transform: translate(-1px, 0); } 100% { transform: translate(1px, 1px); } }
.lunge .lunge-img { width: min(85%, 120vmin); aspect-ratio: 1; object-fit: cover; border-radius: 4px; animation: lunge-in .55s cubic-bezier(.2, .9, .2, 1) forwards;
  filter: contrast(1.45) saturate(.6) sepia(.35) hue-rotate(-20deg) drop-shadow(0 0 40px #8f0511); }
.lunge.out .lunge-img { animation: none; opacity: 0; transition: opacity .9s; }

/* jitter on text when things go wrong */
.jitter { display: inline-block; animation: jitter .18s steps(2) infinite; }

/* ---------- BuddyChat 1.0 ---------- */
.chat { text-align: left; background: #e9e6f5; border: 3px solid var(--ink); border-radius: .6rem; overflow: hidden; box-shadow: 6px 6px 0 var(--ink); font-family: var(--font-sys); }
.chat-bar { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; background: linear-gradient(90deg, #3b2a7a, #7a5cff); color: #fff; font: 700 .85rem var(--font-sys); letter-spacing: .05em; }
.chat-bar .dots { margin-left: auto; display: flex; gap: 4px; }
.chat-bar .dots i { width: 12px; height: 12px; border: 2px solid #fff; background: #c9c3ee; display: block; }
.chat-status { margin: 0; font: .72rem var(--font-sys); letter-spacing: .08em; padding: .3rem .6rem; background: #fff; border-bottom: 2px solid #c9c3ee; color: #3b2a7a; }
.chat-status.off { color: #e3000f; font-weight: 700; }
.log { list-style: none; margin: 0; padding: .6rem; max-height: 34vh; min-height: 110px; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; background: #fff; scrollbar-width: thin; }
.msg { max-width: 86%; padding: .45rem .7rem; border-radius: .9rem; font-size: clamp(.95rem, 2.3vw, 1.08rem); line-height: 1.3; font-family: var(--font-kid); animation: pop .25s ease-out; }
.msg.buddy { align-self: flex-start; background: #ffe9c7; border: 2px solid #ff8c1a; border-bottom-left-radius: .2rem; color: #3b2a7a; }
.msg.me { align-self: flex-end; background: #dff3ff; border: 2px solid #3bbcff; border-bottom-right-radius: .2rem; color: #1b3a7a; }
.msg .who { display: block; font: 700 .62rem var(--font-sys); letter-spacing: .2em; opacity: .7; margin-bottom: .15rem; }
.msg.sys { align-self: center; background: none; border: 0; font: italic .82rem var(--font-sys); color: #5a4a8a; max-width: 100%; text-align: center; }
.msg.shout { font-family: var(--font-sys); font-weight: 900; letter-spacing: .15em; }
.typing { align-self: flex-start; padding: .45rem .8rem; background: #ffe9c7; border: 2px solid #ff8c1a; border-radius: .9rem .9rem .9rem .2rem; display: flex; gap: 5px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #ff8c1a; animation: blinkdot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat-in { padding: .6rem; border-top: 3px solid #c9c3ee; background: #f4f2fb; min-height: 3.6rem; }
.chat-in .choices { gap: .5rem; }
.chat-in .btn { font-size: clamp(.95rem, 2.3vw, 1.12rem); padding: .55rem .9rem; box-shadow: 4px 4px 0 var(--ink); text-align: left; }
.say { display: flex; gap: .5rem; margin: 0; }
.say input { flex: 1; min-width: 0; font: 700 1.05rem var(--font-kid); padding: .55rem .8rem; border: 3px solid var(--ink); border-radius: .8rem; background: #fff; color: var(--ink); }
.say input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.say .btn { width: auto; flex: none; background: var(--yes); padding: .55rem .9rem; box-shadow: 4px 4px 0 var(--ink); }
.say-label { display: block; font: .75rem var(--font-sys); letter-spacing: .08em; margin: 0 0 .35rem; color: #5a4a8a; }

.mood-low .chat { background: #1a0e18; border-color: #e3000f; box-shadow: 6px 6px 0 #5c0008; }
.mood-low .chat-bar { background: linear-gradient(90deg, #3a0000, #8f0511); }
.mood-low .chat-bar .dots i { background: #5c0008; }
.mood-low .chat-status { background: #1a0e18; color: #ff4d5a; border-color: #5c0008; }
.mood-low .log { background: #120a10; }
.mood-low .msg.buddy { background: #2a0a0f; border-color: #e3000f; color: #ffdede; }
.mood-low .msg.me { background: #1f1a2a; border-color: #5a4a8a; color: #e9e2ff; }
.mood-low .msg.sys { color: #ff8c8c; }
.mood-low .typing { background: #2a0a0f; border-color: #e3000f; }
.mood-low .typing i { background: #e3000f; }
.mood-low .chat-in { background: #1a0e18; border-color: #5c0008; }
.mood-low .say input { background: #2a1620; color: #ffdede; border-color: #e3000f; }
.mood-low .say-label { color: #ff8c8c; }
.mood-low .say .btn { background: #5c0008; color: #fff; }

/* ---------- result ---------- */
.result { margin-top: 1rem; }
.verdict { font-size: clamp(1.5rem, 4.5vw, 2.4rem); margin: 0 0 .4rem; line-height: 1.05; }
.verdict small { display: block; font: 700 .75rem var(--font-sys); letter-spacing: .3em; margin-bottom: .4rem; color: var(--accent); }
.mood-low .verdict { color: #ff5a5a; text-shadow: 0 0 14px #8f0511; }
.result-text { font-size: 1.05rem; margin: 0 0 1rem; }
.cert { margin: .6rem auto 1rem; width: 100%; max-width: 480px; border: 3px solid var(--ink); border-radius: .6rem; background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.cert canvas { display: block; width: 100%; height: auto; }
.actions { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.btn-ghost { background: #fff; font-size: .95rem; }
.share-note { font: .85rem var(--font-sys); opacity: .85; margin: .6rem 0 0; }

/* ---------- the film card (in the cinema section) ---------- */
.movie {
  margin: 0; padding: 1.2rem; border-radius: 1.2rem; text-align: center;
  background: #120a16; color: #fff; border: 3px solid #ff8c1a; box-shadow: 8px 8px 0 #ff8c1a;
}
.movie .m-poster { display: block; width: min(240px, 64%); height: auto; margin: 0 auto 1rem; border: 3px solid #fff; box-shadow: 7px 7px 0 #ff8c1a; transform: rotate(-1.5deg); }
.movie .m-kicker { font: 700 .8rem var(--font-sys); letter-spacing: .35em; color: #ff8c1a; margin: 0 0 .4rem; }
.movie .m-title { font: 900 clamp(2.4rem, 9vw, 4rem)/1 var(--font-sys); letter-spacing: .12em; margin: 0; color: #fff; text-shadow: 0 0 24px #ff8c1a; }
.movie .m-tag { font-size: 1.15rem; margin: .5rem 0 .2rem; color: #ffd5b0; }
.movie .m-date { font: 700 1rem var(--font-sys); letter-spacing: .2em; margin: .3rem 0 1rem; color: #fff; }
.movie .actions .btn { background: #ff8c1a; border-color: #fff; color: #120a16; box-shadow: 5px 5px 0 #fff; }
.movie .actions .btn.btn-ghost { background: transparent; color: #fff; }
.movie a.btn { text-decoration: none; display: block; }
.compete { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed rgba(255, 255, 255, .3); font-size: 1rem; color: #ffd5b0; }
.compete a { color: #fff; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; text-align: center; padding: 1.2rem 16px 1.8rem; font-family: var(--font-sys); }
.foot-line { margin: 0; font-weight: 700; font-size: .9rem; color: #d9cfc4; }
.foot-small { margin: .3rem 0 0; font-size: .75rem; color: #8c8178; }
.foot a { color: inherit; }
.mood-low .foot-line { color: #ffb9b9; }

/* ---------- effect layers (inside the glass) ---------- */
.vhs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; opacity: 0; transition: opacity .6s; mix-blend-mode: screen; }
.vhs.on { opacity: 1; }
.dip { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 7; transition: opacity .09s; }
.dip.on { opacity: .82; }
.whisper { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .25s; padding: 16px; text-align: center; }
.whisper.on { opacity: 1; }
.whisper span {
  font: 900 clamp(1.3rem, 5vw, 3.6rem)/1.05 var(--font-sys); letter-spacing: .12em; color: #fff;
  text-shadow: 3px 0 0 #e3000f, -3px 0 0 #3bbcff, 0 0 30px rgba(0, 0, 0, .9);
  background: rgba(0, 0, 0, .55); padding: .3em .5em; border-radius: .2em;
}
.nosignal { position: absolute; inset: 0; z-index: 9; background: #0021c8; display: none; place-items: center; color: #fff; text-align: center; font-family: "Courier New", monospace; }
.nosignal.on { display: grid; }
.ns-bars { position: absolute; left: 0; right: 0; top: 0; height: 18%; display: flex; }
.ns-bars i { flex: 1; } .ns-bars i:nth-child(1) { background: #c0c0c0; } .ns-bars i:nth-child(2) { background: #c0c000; }
.ns-bars i:nth-child(3) { background: #00c0c0; } .ns-bars i:nth-child(4) { background: #00c000; } .ns-bars i:nth-child(5) { background: #c000c0; }
.ns-bars i:nth-child(6) { background: #c00000; } .ns-bars i:nth-child(7) { background: #0000c0; }
.ns-text { font-size: clamp(1.8rem, 7vw, 4.5rem); letter-spacing: .3em; margin: 0; }
.ns-sub { font-size: .95rem; letter-spacing: .2em; margin: .4rem 0 0; opacity: .85; padding: 0 1rem; }

/* ---------- animations ---------- */
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-12px) scale(.98, 1.03); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes jitter { 0% { transform: translate(calc(var(--shake) * -1), 0); } 100% { transform: translate(var(--shake), 1px); } }
@keyframes jolt { 0% { transform: translate(-6px, 0) rotate(-3deg); } 100% { transform: translate(6px, 0) rotate(3deg); } }
@keyframes blinkdot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes tvshake { 0% { transform: translate(-5px, 2px) rotate(-.3deg); } 100% { transform: translate(5px, -2px) rotate(.3deg); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn.dodge { transition: none; }
  .vhs { display: none; }
  .mascot .lid { transition: none; }
  .typing i { opacity: .8; }
}
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; }
body.no-motion .vhs { display: none; }

@media (max-width: 640px) {
  :root { --screen-h: 76vh; --bezel: 12px; }
  .tv { border-radius: 18px; }
  .screen { border-radius: 12px; }
  .deck { padding: 10px 12px 12px; gap: .5rem; }
  .brand-sub, .knob-w, .grille, .chan { display: none; }
  .brand { margin-right: auto; }
  .panel { padding: .8rem .7rem 1rem; box-shadow: 5px 5px 0 var(--ink); }
  .log { max-height: 30vh; }
  .app { padding: 0 10px 2rem; }
  .top { margin: 0 -10px; }
}

/* =====================================================================
   GORE. Buddy's world bleeds as his mood drops.
   mood-mid: first drops. mood-low: the massacre. mood-dead (<=15): the eye.
   ===================================================================== */
.gore { display: none; }
.mood-mid .gore-mid, .mood-low .gore-mid, .mood-low .gore-low, .mood-dead .gore-dead { display: block; }
.mood-dead .eye-r { opacity: 0; }
.gore .wash { mix-blend-mode: multiply; }
.mood-low .cheek { opacity: 0; }
.mood-dead .mane circle { fill: #5a0008; }
.mood-dead .m-creepy, .mood-dead .m-frown { opacity: .35; }
.dangle { transform-box: fill-box; transform-origin: 50% -40px; animation: dangle 2.6s ease-in-out infinite; }
@keyframes dangle { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

.gore-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.drips { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 26%; transform: scaleY(0); transform-origin: 50% 0; transition: transform 7s cubic-bezier(.2, .6, .3, 1); filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.drips .drip { fill: var(--blood); }
.mood-mid .drips { transform: scaleY(.22); }
.mood-low .drips { transform: scaleY(1); }
.rain { position: absolute; inset: -20% 0 0; opacity: 0; transition: opacity 2s;
  background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(160, 6, 20, .55) 18px 20px, transparent 20px 41px);
  background-size: 100% 180px; animation: rain .7s linear infinite; }
.mood-low .rain { opacity: .5; }
@keyframes rain { to { background-position: -30px 180px; } }

.hands, .splats { position: absolute; inset: 0; mix-blend-mode: multiply; }
.hand { position: absolute; width: 130px; height: 155px; opacity: 0; animation: handprint 7s ease-out forwards; filter: blur(.3px); }
.hand path { fill: var(--blood); }
@keyframes handprint { 0% { opacity: 0; transform: translateY(0) scale(.92); } 6% { opacity: .85; transform: translateY(0) scale(1); } 100% { opacity: .6; transform: translateY(70px) scale(1); } }
.splat { position: absolute; width: 300px; height: 300px; animation: splat-in .35s cubic-bezier(.1, 1.3, .3, 1) forwards; transform-origin: 50% 50%; }
.splat path { fill: #a40716; }
.splat.old { transition: opacity 5s; opacity: .45; }
@keyframes splat-in { 0% { transform: scale(.1) rotate(var(--r, 0deg)); opacity: 0; } 60% { opacity: .95; } 100% { transform: scale(1) rotate(var(--r, 0deg)); opacity: .85; } }

/* environment */
.mood-low .sky { --grass: #35401a; --sky2: #5a4a4a; }
.mood-low .meadow::before { content: ""; position: absolute; left: 10%; right: 20%; bottom: 0; height: 40%; background: radial-gradient(ellipse at 30% 100%, rgba(120, 5, 15, .8) 0 30%, transparent 60%), radial-gradient(ellipse at 75% 100%, rgba(120, 5, 15, .7) 0 20%, transparent 50%); }
.mood-low .flower .face { transform: translate(40%, 95%) rotate(150deg); background: #e8d9a0; box-shadow: inset 0 -.4vmin 0 #a89a60; }
.mood-low .flower .face::before, .mood-low .flower .face::after { background: #000; box-shadow: 0 0 0 .2vmin #7a0a0a; }
.mood-low .flower .petals { background: radial-gradient(circle, transparent 36%, #5a0a0a 37%); animation: none; opacity: .8; }
.mood-low .flower::after { background: linear-gradient(var(--blood) 0 25%, #2f5e1f 25%); }
.mood-low .flower::before { content: ""; position: absolute; left: 44%; top: -8%; width: 14%; height: 40%; background: var(--blood); border-radius: 0 0 50% 50%; }
.mood-low .sun { background: radial-gradient(circle at 50% 50%, #000 0 16%, #5a0404 17% 30%, #fff1f1 31% 100%); box-shadow: 0 0 0 1.2vmin rgba(120, 10, 20, .5), 0 0 6vmin 2vmin rgba(120, 10, 20, .45); animation: none; filter: none; }
.mood-low .sun::before { background: repeating-conic-gradient(from 0deg, rgba(160, 20, 30, .9) 0 2deg, transparent 2deg 23deg); mask: radial-gradient(circle, transparent 30%, #000 32%, #000 48%, transparent 50%); -webkit-mask: radial-gradient(circle, transparent 30%, #000 32%, #000 48%, transparent 50%); }
.mood-low .sun::after { content: ""; position: absolute; left: 44%; top: 70%; width: 12%; height: 120%; background: linear-gradient(var(--blood), rgba(143, 5, 17, 0)); border-radius: 0 0 50% 50%; }
.mood-low .cloud::after { content: ""; position: absolute; left: 10%; right: 10%; top: 85%; height: 8vmin; background-repeat: no-repeat;
  background:
    radial-gradient(circle, var(--blood) 0 .9vmin, transparent 1vmin) 14% 3vmin / 2vmin 2vmin no-repeat, linear-gradient(var(--blood), var(--blood)) 14% 0 / .9vmin 4vmin no-repeat,
    radial-gradient(circle, var(--blood) 0 1.2vmin, transparent 1.3vmin) 48% 5.2vmin / 2.6vmin 2.6vmin no-repeat, linear-gradient(var(--blood), var(--blood)) 48% 0 / 1.3vmin 6.4vmin no-repeat,
    radial-gradient(circle, var(--blood) 0 .7vmin, transparent .8vmin) 80% 1.8vmin / 1.6vmin 1.6vmin no-repeat, linear-gradient(var(--blood), var(--blood)) 80% 0 / .8vmin 2.6vmin no-repeat; }
.mood-low .panel::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 90px; pointer-events: none; border-radius: 1rem 1rem 0 0;
  background:
    radial-gradient(circle, var(--blood) 0 7px, transparent 8px) 11% 44px / 16px 16px no-repeat, linear-gradient(var(--blood), var(--blood)) 11% 0 / 12px 52px no-repeat,
    radial-gradient(circle, var(--blood) 0 9px, transparent 10px) 36% 66px / 20px 20px no-repeat, linear-gradient(var(--blood), var(--blood)) 36% 0 / 16px 76px no-repeat,
    radial-gradient(circle, var(--blood) 0 5px, transparent 6px) 62% 24px / 12px 12px no-repeat, linear-gradient(var(--blood), var(--blood)) 62% 0 / 8px 30px no-repeat,
    radial-gradient(circle, var(--blood) 0 8px, transparent 9px) 86% 54px / 18px 18px no-repeat, linear-gradient(var(--blood), var(--blood)) 86% 0 / 14px 62px no-repeat,
    linear-gradient(var(--blood), var(--blood)) 0 0 / 100% 10px no-repeat; }

/* the lunge: Buddy comes to the glass */
.lunge { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; background: radial-gradient(circle, rgba(60, 0, 6, .85), #000 70%); pointer-events: none; }
.lunge.on { display: grid; }
.lunge svg { width: min(85%, 120vmin); height: auto; animation: lunge-in .55s cubic-bezier(.2, .9, .2, 1) forwards; filter: drop-shadow(0 0 40px #8f0511) contrast(1.2); }
.lunge .gore { display: block !important; }
.lunge .eye-r { opacity: 0; }
.lunge .mouth { display: none !important; } .lunge .m-creepy { display: block !important; }
.lunge .brow { opacity: 1; } .lunge .red-eye { opacity: 1; }
@keyframes lunge-in { 0% { transform: scale(.4) translateY(30%); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.5) translateY(-4%); opacity: 1; } }
.lunge.out svg { animation: none; opacity: 0; transition: opacity .9s; }

@media (prefers-reduced-motion: reduce) {
  .drips { transition: none; } .rain { display: none; } .dangle { animation: none; }
  .hand, .splat, .lunge svg, .lunge .lunge-img { animation: none; opacity: .85; transform: none; }
  .feed-in { animation: none !important; }
  .bleed { transition: none; }
}
body.no-motion .rain { display: none; }


/* =====================================================================
   THE PROMO SITE AROUND THE SET
   ===================================================================== */
:root { --font-head: "Anton", "Arial Black", "Arial Bold", Impact, "Helvetica Neue", Arial, sans-serif; font-synthesis: none; }
.site-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; padding: .5rem 16px;
  background: rgba(7, 5, 10, .86); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.logo img { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 1.2rem; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { font: 700 .72rem var(--font-sys); letter-spacing: .2em; text-transform: uppercase; color: #d9cfc4; text-decoration: none; white-space: nowrap; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: #e3000f; outline: none; }
.nav .nav-date { color: #ff8c1a; }
.tool-top { flex: none; }

.hero { position: relative; z-index: 2; min-height: min(94vh, 1000px); display: grid; align-items: center; padding: 0; overflow: hidden; isolation: isolate; background: #07050a; }
.hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: 74%; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; filter: saturate(1.15) contrast(1.05); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 4px); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07050a 0%, rgba(7, 5, 10, .92) 22%, rgba(7, 5, 10, .35) 50%, rgba(7, 5, 10, 0) 72%, rgba(7, 5, 10, .5) 100%), linear-gradient(180deg, rgba(7, 5, 10, .55), transparent 25%, transparent 70%, #07050a 100%); }
.hero-in { width: 100%; max-width: 1160px; margin: 0 auto; padding: 4.5rem 16px 4rem; text-align: left; }
.hero-in > * { max-width: 600px; }
.hero-in .hero-logo { margin: .2rem 0 0; }
.kicker { font: 700 .68rem/1.5 var(--font-sys); letter-spacing: .28em; text-transform: uppercase; color: #ffd5b0; margin: 0 0 1rem; text-shadow: 0 1px 0 #000; }
.hero-logo { display: block; width: min(100%, 600px); height: auto; filter: drop-shadow(0 0 30px rgba(227, 0, 15, .45)) drop-shadow(0 6px 0 rgba(0, 0, 0, .6)); animation: logo-track 7s linear infinite; }
@keyframes logo-track { 0%, 92%, 100% { transform: none; filter: drop-shadow(0 0 30px rgba(227, 0, 15, .45)); } 94% { transform: translateX(4px) skewX(-6deg); } 96% { transform: translateX(-5px); filter: drop-shadow(0 0 30px rgba(227, 0, 15, .45)) hue-rotate(40deg); } 98% { transform: translateX(2px) skewX(4deg); } }
.hero-tag { font: 700 clamp(1.15rem, 2.6vw, 1.7rem) var(--font-kid); color: #fff; margin: 1.2rem 0 1.4rem; text-shadow: 0 2px 0 #000, 0 0 24px rgba(0, 0, 0, .8); }
.hero-date { font: 900 clamp(1rem, 2.4vw, 1.5rem) var(--font-head); letter-spacing: .22em; color: #ff8c1a; margin: 0 0 1.8rem; text-shadow: 0 2px 0 #000; }
.hero-cta { display: flex; gap: .7rem; justify-content: flex-start; flex-wrap: wrap; }
.cta {
  display: inline-block; font: 400 1.25rem/1 "Anton", var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.5rem .95rem; border-radius: .3rem;
  background: #e3000f; color: #fff; border: 2px solid #ff4d5a; box-shadow: 0 0 0 3px #07050a, 0 0 30px rgba(227, 0, 15, .5);
  transition: transform .12s, box-shadow .12s;
}
.cta:hover, .cta:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 3px #07050a, 0 0 44px rgba(227, 0, 15, .8); outline: none; }
.cta-ghost { background: rgba(0, 0, 0, .55); border-color: #d9cfc4; box-shadow: 0 0 0 3px #07050a; }
.cta-ghost:hover, .cta-ghost:focus-visible { box-shadow: 0 0 0 3px #07050a, 0 0 24px rgba(255, 255, 255, .25); }

.sec { position: relative; z-index: 2; padding: 3.2rem 16px; max-width: 1160px; margin: 0 auto; }
.sec-tv { max-width: none; padding-left: 0; padding-right: 0; padding-top: 2.2rem; overflow-x: clip; }
.sec-tv .h-glitch, .sec-tv .sec-sub { padding: 0 16px; }
.h-glitch {
  margin: 0; text-align: center; font: 400 clamp(2.3rem, 7vw, 5.4rem)/.92 var(--font-head); letter-spacing: .01em; text-transform: uppercase;
  background: repeating-linear-gradient(0deg, #ff3b2a 0 2px, #9b0410 2px 4px); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(227, 0, 15, .35)); position: relative;
}
.h-small { margin: 2.4rem 0 1rem; font: 400 1.15rem var(--font-head); letter-spacing: .3em; color: #ff8c1a; text-transform: uppercase; }
.sec-sub { text-align: center; margin: .8rem auto 1.6rem; max-width: 640px; font: 700 clamp(1rem, 2.2vw, 1.2rem) var(--font-kid); color: #d9cfc4; }

/* trailer */
.trailer { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 4px #1b1614, 0 30px 80px rgba(0, 0, 0, .8), 0 0 60px rgba(227, 0, 15, .18); }
.trailer iframe, .trailer video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.trailer .facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; display: grid; place-items: center; }
.trailer .facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: saturate(1.1); }
.trailer .facade::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 4px), radial-gradient(ellipse, transparent 40%, rgba(0, 0, 0, .7)); }
.trailer .play { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; background: #e3000f; box-shadow: 0 0 0 6px rgba(227, 0, 15, .35), 0 0 40px rgba(227, 0, 15, .7); display: grid; place-items: center; transition: transform .15s; }
.trailer .play::after { content: ""; width: 0; height: 0; border-left: 34px solid #fff; border-top: 20px solid transparent; border-bottom: 20px solid transparent; margin-left: 8px; }
.trailer .facade:hover .play, .trailer .facade:focus-visible .play { transform: scale(1.08); }
.trailer .facade:focus-visible { outline: 4px solid #ffdd2e; outline-offset: -4px; }
.trailer .facade-label { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 700 .72rem var(--font-sys); letter-spacing: .22em; color: #fff; background: rgba(0, 0, 0, .6); padding: .3rem .6rem; border-radius: .3rem; }
.trailer-note { text-align: center; font: .78rem var(--font-sys); color: #8c8178; margin: .8rem auto 0; max-width: 960px; }

/* about the film */
.film-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.4rem; align-items: start; margin-top: 1.6rem; }
.synopsis { font-family: var(--font-sys); color: #e9e2dc; }
.synopsis .lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; margin: 0 0 1rem; color: #fff; }
.synopsis p { font-size: 1.02rem; line-height: 1.6; margin: 0 0 1rem; }
.synopsis .note { font-size: .78rem; color: #8c8178; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-family: var(--font-sys); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; padding: 1.1rem 1.2rem; }
.facts dt { font: 700 .68rem var(--font-sys); letter-spacing: .22em; text-transform: uppercase; color: #ff8c1a; padding-top: .2rem; }
.facts dd { margin: 0; font-size: .98rem; color: #f3eee9; }
.stills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.stills li { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #000; box-shadow: 0 0 0 2px #1b1614; }
.stills img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, filter .5s; filter: saturate(1.05); }
.stills li:hover img { transform: scale(1.04); }
.stills li::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px); pointer-events: none; }

/* cinema section */
.sec-bio { max-width: 1000px; }
.bio-grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2.4rem; align-items: center; }
.bio-poster { width: 100%; height: auto; display: block; border: 3px solid #fff; box-shadow: 10px 10px 0 #e3000f, 0 30px 70px rgba(0, 0, 0, .8); transform: rotate(-2deg); }
.bio-card .movie { text-align: left; }
.bio-card .movie .m-poster { display: none; }
.bio-card .m-title { text-align: left; }
.bio-card .actions { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.soon { font: 400 .95rem "Anton", var(--font-head); letter-spacing: .2em; color: #ffd5b0; margin: .4rem 0 0; }

.foot { padding: 2.4rem 16px 2.6rem; }
.foot-cos { margin: 0 0 .3rem; font: 700 .72rem var(--font-sys); letter-spacing: .22em; text-transform: uppercase; color: #d9cfc4; }
.foot-copy { margin: 0 0 1.2rem; font: .72rem var(--font-sys); color: #8c8178; }
.foot-swegore { margin: 1rem 0 0; font: .78rem var(--font-sys); color: #8c8178; }
.foot-swegore a { color: #ffd5b0; }

@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
@media (max-width: 820px) {
  .film-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bio-poster { max-width: 260px; }
  .bio-card .movie, .bio-card .m-title { text-align: center; }
  .stills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-head { gap: .6rem; padding: .45rem 10px; }
  .logo img { height: 22px; }
  .nav { gap: .8rem; }
  .nav a { font-size: .62rem; letter-spacing: .14em; }
  .sec { padding: 2.4rem 12px; }
  .stills { gap: .5rem; }
  .facts { grid-template-columns: 1fr; gap: .2rem; }
  .facts dd { margin-bottom: .6rem; }
}
.sec, .tv { scroll-margin-top: 64px; }


/* ---------- the jump, the reflection, the other voice in the chat ---------- */
.scare { position: fixed; inset: 0; z-index: 60; display: none; background: #000; pointer-events: none; }
.scare.on { display: block; animation: scare-in .38s steps(3) forwards; }
.scare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.6) saturate(.55) sepia(.3) hue-rotate(-25deg) brightness(1.1); transform: scale(1.18); }
.scare::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(90, 0, 8, .75) 100%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px); }
.scare-word { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font: 400 clamp(1.8rem, 8vw, 6rem) var(--font-head); letter-spacing: .14em; color: #fff; text-shadow: 4px 0 0 #e3000f, -4px 0 0 #3bbcff, 0 0 30px #000; white-space: nowrap; }
@keyframes scare-in { 0% { opacity: 0; } 34% { opacity: 1; } 100% { opacity: 1; } }
.screen.off .app, .screen.off .sky, .screen.off .gore-layer, .screen.off .darkness { visibility: hidden; }
.screen.off { background: #000; }
.screen.off::before { content: ""; position: absolute; inset: 0; z-index: 15; background: url(assets/buddy-scary.jpg) center 40% / 60% auto no-repeat; opacity: .13; filter: blur(1.5px) contrast(1.4) grayscale(.6); animation: ghost 2.2s ease-in forwards; }
.screen.off::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 18px 6px rgba(255, 255, 255, .6); animation: dot 2.2s ease-out forwards; z-index: 16; }
@keyframes ghost { 0% { opacity: 0; transform: scale(1.05); } 40% { opacity: .06; } 100% { opacity: .2; transform: scale(1); } }
@keyframes dot { 0% { opacity: 1; } 30% { opacity: .2; } 100% { opacity: 0; } }
.msg.other { align-self: flex-end; background: #ececec; border: 2px solid #9a9a9a; border-bottom-right-radius: .2rem; color: #333; font-style: italic; }
.mood-low .msg.other { background: #1a1a1a; border-color: #555; color: #bbb; }
@media (prefers-reduced-motion: reduce) { .scare { display: none !important; } .screen.off::before, .screen.off::after { animation: none; } }


/* ---------- Lucky Dogs + the sound hint ---------- */
.dist-link { font: 400 .8rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: #ffd5b0; text-decoration: none; border: 1px solid rgba(255, 213, 176, .5); padding: .45rem .7rem; border-radius: .35rem; white-space: nowrap; }
.dist-link:hover, .dist-link:focus-visible { color: #fff; border-color: #fff; outline: none; }
.presents { font: 400 .9rem var(--font-head); letter-spacing: .4em; color: #fff; margin: 0 0 .6rem; text-shadow: 0 1px 0 #000, 0 0 16px rgba(255, 140, 26, .5); }
.foot-dist { margin: 0 0 .3rem; font: 700 .8rem var(--font-sys); letter-spacing: .08em; color: #ffd5b0; }
.foot-dist a { color: #fff; }
.sound-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 21; display: flex; align-items: center; gap: .5rem;
  font: 700 .72rem var(--font-sys); letter-spacing: .1em; color: #fff; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .35); border-radius: 2rem; padding: .5rem .9rem; cursor: pointer; white-space: nowrap; max-width: calc(100% - 24px);
  animation: hintpulse 2.4s ease-in-out infinite;
}
.sound-hint[hidden] { display: none; }
.sound-hint i { width: .7rem; height: .7rem; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 10px #ff2a2a; flex: none; }
.sound-hint span { overflow: hidden; text-overflow: ellipsis; }
.sound-hint:hover, .sound-hint:focus-visible { border-color: #fff; outline: none; animation: none; }
@keyframes hintpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 0, 15, .5); } 50% { box-shadow: 0 0 0 10px rgba(227, 0, 15, 0); } }
@media (max-width: 640px) { .dist-link { display: none; } .sound-hint { font-size: .62rem; padding: .45rem .7rem; } }

/* ---------- poster font for the film-card buttons (David 2026-11-17) ---------- */
@font-face { font-family: "Anton"; src: url(../fonts/anton.woff2) format("woff2"); font-display: swap; }
.bio-card .btn, .result .actions .btn, .win-form .btn { font: 400 clamp(1.05rem, 2.4vw, 1.3rem)/1.1 "Anton", var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1.1rem; }
.bio-card .soon { letter-spacing: .22em; text-transform: uppercase; }

/* ---------- competition ---------- */
.sec-win { max-width: 1000px; }
.win-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.win-face { width: 150px; height: 150px; object-fit: cover; object-position: 50% 20%; border: 3px solid #fff; box-shadow: 6px 6px 0 var(--red), 0 20px 50px rgba(0, 0, 0, .7); filter: saturate(.75) contrast(1.15); transform: rotate(-3deg); margin: 1.6rem 0 0 .4rem; }
.mood-low .win-face { filter: saturate(.3) contrast(1.3) hue-rotate(-20deg); }
.win-form { position: relative; background: #fffbe6; color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 #000; padding: 1.4rem; display: grid; gap: .9rem; }
.win-form.sent > :not(.win-done) { visibility: hidden; }
.win-field { display: grid; gap: .3rem; font: 700 .95rem var(--font-kid); }
.win-field span { letter-spacing: .02em; }
.win-field input, .win-field textarea { font: 1rem var(--font-kid); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: .3rem; padding: .6rem .7rem; width: 100%; }
.win-field textarea { resize: vertical; min-height: 5.5rem; }
.win-field input:focus-visible, .win-field textarea:focus-visible, .win-consent input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.win-consent { display: flex; gap: .6rem; align-items: flex-start; font: .8rem/1.4 var(--font-sys); color: #3a2b2b; }
.win-consent input { margin: .15rem 0 0; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); }
.win-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.win-form .btn { justify-self: start; }
.win-status { margin: 0; font: 700 .9rem var(--font-kid); min-height: 1.2em; }
.win-status.err { color: var(--blood); }
.win-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1.4rem; background: #15090f; color: #ffd5b0; font-family: var(--font-kid); }
.win-done[hidden] { display: none; }
.win-done-h { margin: 0 0 .5rem; font: 400 clamp(1.4rem, 4vw, 2.2rem) "Anton", var(--font-head); letter-spacing: .12em; color: #ff3b2a; text-shadow: 3px 0 0 #000, 0 0 24px rgba(227, 0, 15, .7); }
.win-done p { margin: 0; }
.win-prize { text-align: center; margin: 1.4rem auto 0; max-width: 720px; font: .78rem/1.5 var(--font-sys); color: #8c8178; }

/* ---------- marketing pass 2026-11-17: premiere + competition first ---------- */
.prem { display: grid; gap: .1rem; margin: 0 0 1.2rem; }
.prem-k { font: 700 .72rem var(--font-sys); letter-spacing: .36em; text-transform: uppercase; color: #ff8c1a; }
.prem-d { font: 400 clamp(2.8rem, 7.5vw, 5.6rem)/.95 var(--font-head); text-transform: uppercase; color: #fff; letter-spacing: .02em; text-shadow: 4px 0 0 #e3000f, -3px 0 0 rgba(59, 188, 255, .7), 0 10px 40px rgba(0, 0, 0, .8); }
.prem-only { font: 400 1rem var(--font-head); letter-spacing: .34em; text-transform: uppercase; color: #ffd5b0; margin-top: .3rem; }
.count { display: flex; gap: .5rem; margin: 0 0 1.6rem; }
.count[hidden] { display: none; }
.count-t { min-width: 4.4rem; padding: .5rem .6rem .45rem; text-align: center; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .12); border-top: 3px solid #e3000f; border-radius: .3rem; backdrop-filter: blur(4px); }
.count-t b { display: block; font: 400 clamp(1.7rem, 4vw, 2.6rem)/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.count-t span { display: block; margin-top: .25rem; font: 700 .55rem var(--font-sys); letter-spacing: .28em; text-transform: uppercase; color: #ff8c1a; }
.hero-chat { display: inline-block; margin-top: 1.2rem; font: 700 .9rem var(--font-kid); color: #d9cfc4; text-decoration: underline; text-decoration-color: rgba(227, 0, 15, .8); text-underline-offset: 4px; }
.hero-chat:hover, .hero-chat:focus-visible { color: #fff; }
.ticker { position: relative; z-index: 3; overflow: hidden; background: #e3000f; color: #fff; border-top: 3px solid #000; border-bottom: 3px solid #000; transform: rotate(-1.2deg) scale(1.03); margin: -1.4rem 0 .6rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.ticker-in { white-space: nowrap; padding: .55rem 0; font: 400 1.05rem var(--font-head); letter-spacing: .22em; display: inline-block; animation: ticker 70s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
.sec-win { padding-top: 3.6rem; }
.h-kicker { margin: 0 0 .6rem; font: 700 .72rem var(--font-sys); letter-spacing: .36em; text-transform: uppercase; color: #ff8c1a; }
.h-left { text-align: left; }
.win-lead { font: 700 clamp(1.05rem, 2vw, 1.3rem)/1.45 var(--font-kid); color: #fff; margin: 1rem 0 1.4rem; }
.win-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; counter-reset: step; }
.win-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; align-items: start; counter-increment: step; }
.win-steps li::before { content: counter(step); font: 400 2.6rem/1 var(--font-head); color: #e3000f; text-shadow: 2px 0 0 #000, -2px 0 0 rgba(59, 188, 255, .6); }
.win-steps b { display: block; font: 400 1.15rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.win-steps span { display: block; font: .95rem/1.5 var(--font-sys); color: #d9cfc4; margin-top: .15rem; }
.nav .nav-win { color: #fff; border-bottom-color: #e3000f; }
@media (max-width: 900px) {
  .win-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .win-face { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; }
  .hero-art { position: relative; width: 100%; height: min(72vw, 520px); }
  .hero-art img { object-position: 50% 15%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(7, 5, 10, .25), transparent 30%, transparent 55%, #07050a 100%); }
  .hero-in { text-align: center; padding: 0 16px 2.6rem; margin-top: -3.4rem; position: relative; }
  .hero-in > * { max-width: none; }
  .hero-in .hero-logo { margin: .2rem auto 0; width: min(100%, 420px); }
  .prem { justify-items: center; }
  .count { justify-content: center; }
  .hero-cta { justify-content: center; }
  .ticker-in { font-size: .9rem; }
  .h-left { text-align: center; }
  .win-steps li { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } }
.ticker-wrap { overflow: clip; padding: .6rem 0 .4rem; margin-top: -1.8rem; position: relative; z-index: 3; }
.ticker-wrap .ticker { margin: 0; }

/* 2026-11-18: delningsbilder i sidfoten */
.foot-share { margin-top: 10px; font-size: .78rem; opacity: .85; }
.foot-share a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin: 0 2px; }
.foot-share a:hover { opacity: 1; color: #ff8a4d; }
