/* Film-title styles for the home wordmark (js/wordmarks.js). "original" keeps the
   look in tv.css; the others restyle the same two words. */
.wordmark { position: relative; isolation: isolate; }
.wordmark:not(.wm-original) .ye, .wordmark:not(.wm-original) .oltv { font-family: var(--wm-font), Georgia, serif; font-style: normal; transform: none; }
.wordmark:not(.wm-original) .ye { font-size: clamp(26px, 7vmin, 56px); }
.wordmark i { position: absolute; pointer-events: none; font-style: normal; }

/* Western: wanted poster, bullet holes */
.wm-wanted, .wm-frontier { color: #e8d2a2; text-shadow: 2px 3px 0 #3b2412, 0 0 24px rgba(0,0,0,.6); }
.wm-wanted .oltv { letter-spacing: .04em; }
.wm-frontier { color: #d9a25b; }
.wm-frontier .oltv { font-size: clamp(66px, 19vmin, 150px); letter-spacing: .06em; }
.wm-hole { width: calc(.32em * var(--s)); height: calc(.32em * var(--s)); border-radius: 50%; transform: translate(-50%, -50%) rotate(20deg); z-index: 2; font-size: clamp(52px, 14vmin, 120px);
  background: radial-gradient(circle, #050403 0 38%, #2a1a0d 42%, #6a4a2a 55%, transparent 62%);
  box-shadow: 0 0 0 1px rgba(255,230,190,.12); }
.wm-hole::after { content: ""; position: absolute; inset: -40%; background:
  conic-gradient(from 10deg, transparent 0 8%, rgba(232,210,162,.18) 9% 10%, transparent 11% 46%, rgba(232,210,162,.15) 47% 48%, transparent 49% 80%, rgba(232,210,162,.15) 81% 82%, transparent 83%);
  border-radius: 50%; mask: radial-gradient(circle, transparent 30%, #000 32% 70%, transparent 72%); }

/* Horror: dripping red */
.wm-drip { color: #c3121b; text-shadow: 0 0 14px rgba(195,18,27,.45), 0 3px 0 #3a0306; }
.wm-drip .ye { color: #e6dcd0; }
.wm-drip .oltv { font-size: clamp(60px, 17vmin, 140px); }
.wm-drip i.wm-drip { width: .09em; height: var(--h); top: 82%; border-radius: 0 0 .06em .06em; background: linear-gradient(#c3121b, #8a0a10); font-size: clamp(60px, 17vmin, 140px);
  transform-origin: top; animation: wm-drip 3.2s var(--d) ease-in infinite; }
.wm-drip i.wm-drip::after { content: ""; position: absolute; left: -35%; bottom: -.05em; width: 170%; aspect-ratio: 1; border-radius: 50%; background: #8a0a10; }
@keyframes wm-drip { 0% { transform: scaleY(.1); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1.15); opacity: .0; } }

/* Silent horror: blackletter, flickering */
.wm-gothic { color: #efe9dc; text-shadow: 0 0 2px #fff, 0 0 26px rgba(255,255,255,.25); animation: wm-flicker 3s steps(1) infinite; }
.wm-gothic .oltv { font-size: clamp(60px, 16vmin, 132px); }
@keyframes wm-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 73% { opacity: .9; } }
/* Expressionist: crooked, sharp */
.wm-caligari { color: #ece2c6; text-shadow: 3px 3px 0 #000, -1px -1px 0 #6d5a38; }
.wm-caligari .ye { transform: rotate(-8deg) !important; }
.wm-caligari .oltv { font-size: clamp(64px, 18vmin, 150px); transform: skewX(-12deg) rotate(-3deg) !important; display: inline-block; }

/* Noir: tall condensed, venetian-blind shadow */
.wm-noir, .wm-detour { color: #f1ede4; text-shadow: 6px 6px 0 rgba(0,0,0,.55); }
.wm-noir .oltv { font-size: clamp(80px, 22vmin, 180px); letter-spacing: .08em; }
.wm-noir .ye { color: #c9a24a; }
.wm-detour { flex-direction: column; align-items: flex-start; gap: 0; }
.wm-detour .ye { font-size: clamp(22px, 5vmin, 40px); letter-spacing: .5em; color: #b9b2a5; }
.wm-detour .oltv { font-size: clamp(72px, 20vmin, 168px); text-transform: uppercase; transform: skewX(-8deg) !important; display: inline-block; }
.wm-blinds { inset: -12% -8%; z-index: 2; background: repeating-linear-gradient(-14deg, transparent 0 .32em, rgba(0,0,0,.22) .32em .5em); font-size: clamp(40px, 10vmin, 90px); }

/* 60s thriller: cut-paper letters at odd angles */
.wm-cutout { color: #111; text-shadow: none; }
.wm-cutout .ye, .wm-cutout .oltv { background: #f2efe6; padding: .02em .16em; box-shadow: .06em .06em 0 #c4302b; }
.wm-cutout .ye { transform: rotate(-6deg) !important; background: #c4302b; color: #f2efe6; box-shadow: .06em .06em 0 #111; }
.wm-cutout .oltv { font-size: clamp(58px, 16vmin, 132px); transform: rotate(2deg) !important; letter-spacing: .02em; }
/* Slasher: a red title cut through */
.wm-slashed { color: #d11f1f; text-shadow: 0 2px 0 #3b0505; }
.wm-slashed .ye { color: #eee; }
.wm-slashed .oltv { font-size: clamp(66px, 19vmin, 160px); letter-spacing: .03em; clip-path: polygon(0 0, 100% 0, 100% 46%, 0 58%, 0 100%, 100% 100%, 100% 52%, 0 64%); }
.wm-slash { left: 22%; right: -4%; top: 55%; height: .07em; z-index: 2; background: #f2efe6; transform: rotate(-4deg); font-size: clamp(66px, 19vmin, 160px); box-shadow: 0 0 10px rgba(255,255,255,.4); }

/* 50s sci-fi: chrome */
.wm-saucer .ye, .wm-saucer .oltv { background: linear-gradient(#f8fbff 0%, #9fb4c8 45%, #2f4659 50%, #c7d6e4 62%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-saucer { text-shadow: none; filter: drop-shadow(0 3px 0 #13202b) drop-shadow(0 0 18px rgba(120,200,255,.35)); }
.wm-saucer .oltv { font-size: clamp(56px, 16vmin, 136px); font-style: italic !important; }

/* Musical: neon */
.wm-neon { color: #ffe4f6; text-shadow: 0 0 4px #fff, 0 0 12px #ff3cbc, 0 0 28px #ff3cbc, 0 0 46px #b0129a; animation: wm-neon 4s infinite; }
.wm-neon .ye { color: #d8fbff; text-shadow: 0 0 4px #fff, 0 0 12px #2fe0ff, 0 0 30px #2fe0ff; }
.wm-neon .oltv { font-size: clamp(54px, 15vmin, 128px); }
@keyframes wm-neon { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .55; } }
/* Screwball: art deco gold */
.wm-deco { color: #e7c46a; text-shadow: 0 1px 0 #fff4c9, 0 3px 0 #7a5a17, 0 0 24px rgba(231,196,106,.35); }
.wm-deco .oltv { font-size: clamp(58px, 16vmin, 136px); letter-spacing: .06em; }
.wm-deco::before, .wm-deco::after { content: ""; position: absolute; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, transparent, #e7c46a, transparent); }
.wm-deco::before { top: -14%; } .wm-deco::after { bottom: -14%; }
/* Silent comedy: intertitle card */
.wm-intertitle { color: #f4efe2; text-shadow: none; padding: .35em .7em; }
.wm-intertitle .ye { font-size: clamp(22px, 6vmin, 48px); }
.wm-intertitle .oltv { font-size: clamp(52px, 14vmin, 118px); }
.wm-frame { inset: 0; border: 3px double #f4efe2; outline: 1px solid rgba(244,239,226,.5); outline-offset: 6px; border-radius: 4px; }

/* Haunted house: green ooze */
.wm-haunted { color: #9cff5a; text-shadow: 0 0 10px rgba(120,255,60,.6), 0 4px 0 #173d05; }
.wm-haunted .ye { color: #eaeaea; }
.wm-haunted .oltv { font-size: clamp(48px, 13vmin, 112px); }
/* Carnival: striped */
.wm-carnival { color: #ffd23f; text-shadow: 3px 3px 0 #b3131b, 6px 6px 0 #1b1b1b; }
.wm-carnival .oltv { font-size: clamp(58px, 16vmin, 136px); }
/* Crime: typewriter, stamped */
.wm-typewriter { color: #e9e3d3; text-shadow: 1px 1px 0 rgba(0,0,0,.6); flex-direction: column; gap: .1em; }
.wm-typewriter .oltv { font-size: clamp(52px, 14vmin, 120px); letter-spacing: .08em; }
.wm-typewriter .ye { color: #c42a24; border: 2px solid #c42a24; padding: 0 .3em; transform: rotate(-5deg) !important; font-size: clamp(18px, 4.5vmin, 34px); letter-spacing: .3em; }
/* Romance: gold script */
.wm-romance { color: #f6d58c; text-shadow: 0 2px 0 #6d4a10, 0 0 22px rgba(246,213,140,.4); }
.wm-romance .oltv { font-size: clamp(64px, 18vmin, 150px); }
/* Epic: carved roman */
.wm-epic { color: #eadfc4; text-shadow: 0 1px 0 #fff, 0 -1px 0 #5c4c2c, 0 4px 10px rgba(0,0,0,.7); flex-direction: column; gap: .05em; align-items: center; }
.wm-epic .oltv { font-size: clamp(46px, 12.5vmin, 108px); letter-spacing: .06em; }
.wm-epic .ye { letter-spacing: .4em; }
/* Adventure: stencil inline */
.wm-jungle { color: #f2b33d; text-shadow: 0 4px 0 #3c2a0a; }
.wm-jungle .oltv { font-size: clamp(56px, 15vmin, 128px); }
/* B-movie: shouty poster type */
.wm-bmovie { color: #ffe100; text-shadow: 4px 4px 0 #e2231a, 8px 8px 0 #111; transform: rotate(-3deg); }
.wm-bmovie .ye { color: #fff; font-size: clamp(20px, 5vmin, 40px); }
.wm-bmovie .oltv { font-size: clamp(34px, 9.5vmin, 84px); }
/* Post-apocalypse: tall, faded */
.wm-lastman { color: #d7d2c8; text-shadow: 0 0 30px rgba(0,0,0,.9); letter-spacing: .14em; }
.wm-lastman .oltv { font-size: clamp(90px, 26vmin, 210px); letter-spacing: .12em; }
.wm-lastman .ye { color: #8f8a80; }

/* The film behind the name: muted, through a tube-TV filter */
#power-film { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
#power-film.ready { opacity: 1; }
#power-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) sepia(.25) contrast(1.15) brightness(.55) blur(.6px) saturate(.9); transform: scale(1.04); }
#power-film::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px); animation: pf-roll 8s linear infinite; }
#power-film::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.55) 75%, #000 100%); animation: pf-flicker .14s steps(2) infinite; }
@keyframes pf-roll { to { background-position: 0 300px; } }
@keyframes pf-flicker { 50% { opacity: .92; } }
#power > :not(#power-film) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #power-film { display: none; } .wordmark, .wordmark * { animation: none !important; } }

/* ---------- Generic looks (the `look` object in js/wordmarks.js) ---------- */
.wm-gen { --g: #000; --g2: #111; color: var(--c, #f2ead8); transform: rotate(var(--rot, 0deg)); }
.wm-gen .ye { color: var(--c2, var(--c, #f2ead8)); }
.wm-gen .oltv { font-size: calc(clamp(52px, 14vmin, 120px) * var(--sz, 1)); letter-spacing: var(--ls, .02em); }
.wm-gen.wm-up .oltv { text-transform: uppercase; }
.wm-gen.wm-it .ye, .wm-gen.wm-it .oltv { font-style: italic !important; }
.wm-gen.wm-col { flex-direction: column; align-items: center; gap: .05em; }
.wm-gen.wm-col .ye { letter-spacing: .45em; font-size: clamp(18px, 4.6vmin, 36px); }
.wm-gen.wm-tilt { transform: perspective(300px) rotateX(24deg); }
/* Shadows */
.wm-fx-drop { text-shadow: .06em .06em 0 var(--g), 0 0 24px rgba(0,0,0,.55); }
.wm-fx-extrude { text-shadow: 1px 1px 0 var(--g), 2px 2px 0 var(--g), 3px 3px 0 var(--g), 4px 4px 0 var(--g), 5px 5px 0 var(--g), 6px 6px 0 var(--g), 8px 10px 16px rgba(0,0,0,.7); }
.wm-fx-retro { text-shadow: .045em .045em 0 var(--g), .09em .09em 0 var(--g2); }
.wm-fx-glow { text-shadow: 0 0 3px #fff, 0 0 12px var(--g), 0 0 30px var(--g), 0 0 54px var(--g); }
.wm-fx-soft { text-shadow: 0 2px 2px rgba(0,0,0,.6), 0 0 30px rgba(0,0,0,.9); }
.wm-fx-emboss { text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 -1px 0 rgba(0,0,0,.7), 0 .06em 0 var(--g), 0 6px 14px rgba(0,0,0,.7); }
.wm-fx-outline .ye, .wm-fx-outline .oltv { color: transparent; -webkit-text-stroke: .03em var(--c); }
.wm-fx-outline { filter: drop-shadow(0 0 10px rgba(0,0,0,.8)); }
.wm-fx-ink .ye, .wm-fx-ink .oltv { -webkit-text-stroke: .045em var(--g); paint-order: stroke fill; }
.wm-fx-ink { text-shadow: .07em .07em 0 var(--g); }
.wm-fx-paper { padding: .15em .45em; background: #efe6d0; box-shadow: 0 8px 24px rgba(0,0,0,.6), inset 0 0 40px rgba(120,90,40,.35); transform: rotate(-2deg); }
.wm-fx-paper .ye { color: #8a1c14; }
/* Gradient fills (text-shadow would show through, so shadows come from filter) */
.wm-gen[class*="wm-fill-"] .ye, .wm-gen[class*="wm-fill-"] .oltv { padding: 0 .1em; -webkit-background-clip: text; background-clip: text; color: transparent; background-image: var(--fill); }
.wm-gen[class*="wm-fill-"] { text-shadow: none; filter: drop-shadow(0 .05em 0 var(--g)) drop-shadow(0 0 18px rgba(0,0,0,.6)); }
.wm-fill-gold { --fill: linear-gradient(#fff6c9 0%, #f3c94e 38%, #a8741a 52%, #f7d774 70%, #fff1b8 100%); }
.wm-fill-chrome { --fill: linear-gradient(#ffffff 0%, #c9d3dd 42%, #3d4a57 50%, #aab8c6 64%, #ffffff 100%); }
.wm-fill-steel { --fill: linear-gradient(#e4e8ec 0%, #8c96a0 48%, #2b3036 52%, #9aa4ad 80%, #d7dde2 100%); }
.wm-fill-fire { --fill: linear-gradient(#fff3a0 0%, #ffb11b 35%, #ff4b12 65%, #9a0d05 100%); }
.wm-fill-ice { --fill: linear-gradient(#f2fdff 0%, #9fe8ff 45%, #2b7ac9 52%, #bdf3ff 70%, #ffffff 100%); }
.wm-fill-sunset { --fill: linear-gradient(#ffe29a 0%, #ff9a3c 40%, #e8461f 70%, #7a1a3a 100%); }
.wm-fill-blood { --fill: linear-gradient(#ff5a5f 0%, #c3121b 45%, #5e0308 100%); }
.wm-fill-rainbow { --fill: linear-gradient(90deg, #ff4d4d, #ffb84d, #fff04d, #4dff88, #4dc3ff, #b84dff); }
.wm-fill-blood .ye { -webkit-background-clip: border-box; background: none; color: var(--c2); }
/* Motion */
.wm-anim-pulse { animation: wm-pulse 3s ease-in-out infinite; }
@keyframes wm-pulse { 50% { filter: drop-shadow(0 .05em 0 var(--g)) drop-shadow(0 0 30px rgba(120,220,255,.55)); } }
.wm-anim-flicker { animation: wm-flicker 3s steps(1) infinite; }
.wm-anim-float .oltv, .wm-anim-float .ye { animation: wm-float 4s ease-in-out infinite; }
.wm-anim-float .ye { animation-delay: -1.3s; }
@keyframes wm-float { 50% { transform: translateY(-.08em); } }
.wm-anim-shake .oltv { animation: wm-shake 2.6s infinite; display: inline-block; }
@keyframes wm-shake { 0%, 86%, 100% { transform: translate(0, 0); } 88% { transform: translate(-.02em, .01em) rotate(-1deg); } 90% { transform: translate(.02em, -.01em) rotate(1deg); } 92% { transform: translate(-.015em, 0); } 94% { transform: translate(.015em, .01em); } }
.wm-anim-sway .oltv { animation: wm-sway 3.5s ease-in-out infinite; display: inline-block; transform-origin: 50% 100%; }
@keyframes wm-sway { 50% { transform: rotate(2.5deg); } }
.wm-anim-wobble .oltv { animation: wm-wobble 2.2s ease-in-out infinite; display: inline-block; }
@keyframes wm-wobble { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.04, .96); } 50% { transform: scale(.97, 1.03); } 75% { transform: scale(1.02, .98); } }
.wm-anim-glitch .oltv { animation: wm-glitch 3s steps(1) infinite; }
@keyframes wm-glitch { 0%, 100% { text-shadow: none; transform: none; } 82% { text-shadow: -.04em 0 #ff2a6d, .04em 0 #05d9e8; transform: translateX(.02em); } 84% { text-shadow: .05em 0 #ff2a6d, -.05em 0 #05d9e8; transform: translateX(-.03em) skewX(-6deg); } 86% { text-shadow: none; transform: none; } }
.wm-anim-scan .oltv { animation: wm-scan 2.4s steps(1) infinite; }
@keyframes wm-scan { 0%, 100% { opacity: 1; } 50% { opacity: .86; } 52% { opacity: 1; } }

/* ---------- Extra decorations ---------- */
.wm-star { width: .1em; height: .1em; font-size: clamp(52px, 14vmin, 120px); z-index: -1; background: #fff; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 8px #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: wm-twinkle 2.4s var(--d) ease-in-out infinite; }
@keyframes wm-twinkle { 50% { opacity: .25; transform: translate(-50%, -50%) rotate(45deg) scale(.6); } }
.wm-rays { inset: -60% -30%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(255,210,80,.22) 0 6deg, transparent 6deg 16deg); mask: radial-gradient(closest-side at 50% 55%, #000 30%, transparent 100%); animation: wm-spin 40s linear infinite; }
@keyframes wm-spin { to { transform: rotate(360deg); } }
.wm-split { left: -6%; right: -6%; top: 0; bottom: 0; z-index: 2; background: repeating-linear-gradient(180deg, transparent 0 .22em, #0d0b0a .22em .28em); font-size: clamp(52px, 14vmin, 120px); }
.wm-barrel { left: 50%; top: 50%; width: 2.6em; aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%); border-radius: 50%; font-size: clamp(52px, 14vmin, 120px); background: radial-gradient(circle, transparent 0 38%, rgba(255,255,255,.08) 39% 40%, transparent 41% 58%, rgba(255,255,255,.1) 59% 61%, transparent 62%); box-shadow: 0 0 0 200vmax rgba(0,0,0,.25); }
.wm-bulbs { inset: -18% -9%; z-index: -1; border-radius: 14px; border: .12em dotted #ffd97a; font-size: clamp(30px, 8vmin, 64px); box-shadow: 0 0 18px rgba(255,200,80,.4), inset 0 0 18px rgba(255,200,80,.25); animation: wm-chase 1s steps(2) infinite; }
@keyframes wm-chase { 50% { border-color: #fff4c9; } }
.wm-beams { left: 50%; bottom: -40%; width: 0; height: 0; z-index: -1; }
.wm-beams::before, .wm-beams::after { content: ""; position: absolute; bottom: 0; width: 34vmin; height: 90vmin; background: linear-gradient(to top, rgba(255,240,200,.28), transparent); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); transform-origin: 50% 100%; animation: wm-beam 6s ease-in-out infinite alternate; }
.wm-beams::before { left: -50vmin; transform: rotate(-18deg); }
.wm-beams::after { left: 16vmin; transform: rotate(18deg); animation-delay: -3s; }
@keyframes wm-beam { to { rotate: 14deg; } }
.wm-underline { left: 18%; right: 4%; bottom: -6%; height: .06em; font-size: clamp(52px, 14vmin, 120px); background: currentColor; border-radius: 99px; transform: rotate(-3deg); box-shadow: .04em .04em 0 var(--g); }
.wm-gen .wm-halftone { inset: -30% -15%; z-index: -1; background: radial-gradient(circle, rgba(255,255,255,.18) 30%, transparent 32%) 0 0 / 10px 10px; mask: radial-gradient(closest-side, #000 40%, transparent); }
.wm-gen .wm-speed { left: -48%; width: 40%; top: 20%; bottom: 20%; z-index: -1; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 2px, transparent 2px 9px); mask: linear-gradient(90deg, transparent, #000); }
.wm-badgestar { left: 50%; top: -88%; width: .5em; aspect-ratio: 1; transform: translateX(-50%); font-size: clamp(52px, 14vmin, 120px); background: var(--c2, var(--c)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 2px 0 var(--g)); }

/* On open the original name turns into the style of the day (js/wordmarks.js morphWordmark). */
.wordmark.wm-out { animation: wm-out .28s ease-in forwards; }
.wordmark.wm-in { animation: wm-in .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes wm-out { to { opacity: 0; filter: blur(8px) brightness(2.2); transform: scale(1.12, .2); } }
@keyframes wm-in { 0% { opacity: 0; filter: blur(10px) brightness(2.5); transform: scale(1.15, .15); } 55% { opacity: 1; filter: blur(0) brightness(1.4); transform: scale(.97, 1.04); } }
/* The poster frame shows while the clip loads */
#power-film { background: #000 center / cover no-repeat; }
#power > .wordmark { width: max-content; max-width: none; }
