/* elixrtv.com: night-sky dark, the apps' own gradient, the flasks bobbing over a slow aurora. */
@font-face { font-family: Outfit; font-weight: 700; src: url(outfit_bold.ttf) format("truetype"); font-display: swap; }

:root {
  --bg: #05070d;
  --ink: #f4f6fb;
  --muted: rgba(226, 232, 246, .72);
  --dim: rgba(226, 232, 246, .5);
  --card: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --accent: #ff4d6d;
  --grad: linear-gradient(105deg, #ff8a5c 0%, #f02d5b 52%, #a06bff 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, .kicker { font-family: Outfit, system-ui, sans-serif; }
a { color: inherit; }
code { font: 600 .92em ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: rgba(255, 255, 255, .08); padding: .1em .45em; border-radius: .4em; white-space: nowrap; }

/* The aurora: three soft lights drifting behind everything */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .42; will-change: transform; }
.sky i:nth-child(1) { left: -18vmax; top: -24vmax; background: radial-gradient(circle, #f02d5b, transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.sky i:nth-child(2) { right: -22vmax; top: -10vmax; background: radial-gradient(circle, #6b3bff, transparent 65%); animation: drift 32s ease-in-out infinite alternate-reverse; }
.sky i:nth-child(3) { left: 20vw; bottom: -38vmax; background: radial-gradient(circle, #19c6b4, transparent 65%); opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }

/* The hero: the two flasks, side by side */
.hero { max-width: 980px; margin: 0 auto; padding: clamp(56px, 10vh, 110px) 24px 28px; text-align: center; }
.pair { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2vw, 22px); margin-bottom: 22px; }
.potion { position: relative; width: clamp(104px, 15vw, 164px); aspect-ratio: 1; animation: bob 4.6s ease-in-out infinite; }
.potion.two { animation-delay: -2.3s; }
.potion .flask { display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
@keyframes bob { 50% { transform: translateY(-9px) rotate(-1.5deg); } }
/* bubbles rising inside each flask's body */
.bubbles { position: absolute; left: 30%; right: 30%; top: 50%; bottom: 14%; overflow: hidden; border-radius: 50%; }
.bubbles b { position: absolute; bottom: -8px; width: 7%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: rise 3.4s ease-in infinite; }
.bubbles b:nth-child(1) { left: 22%; animation-delay: -.4s; }
.bubbles b:nth-child(2) { left: 52%; width: 5%; animation-delay: -1.6s; animation-duration: 2.8s; }
.bubbles b:nth-child(3) { left: 72%; width: 6%; animation-delay: -2.6s; animation-duration: 4s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-260%); opacity: 0; } }

.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .32em; color: var(--dim); }
.kicker span { color: var(--accent); }
h1 { margin: 0; font-size: clamp(38px, 6.4vw, 74px); line-height: 1.04; letter-spacing: -.01em; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 16px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.greet { display: inline-block; margin: 20px 0 0; padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line); font-weight: 600; animation: pop .6s var(--ease) both .4s; }
.greet[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* The two apps */
main { max-width: 980px; margin: 0 auto; padding: 18px 24px 40px; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.app { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--card);
  border: 1px solid var(--line); backdrop-filter: blur(6px); transition: transform .3s var(--ease), border-color .3s; }
.app:hover, .app:focus-within { transform: translateY(-3px); border-color: rgba(255, 255, 255, .18); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 54px; height: 54px; }
.brand .word { height: 26px; width: auto; }
.what { margin: 0; color: var(--muted); }
.what b { color: var(--ink); font-weight: 650; }
.meta { margin: 0; font-size: 14px; color: var(--dim); }
.get { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 99px; background: var(--grad); color: #0a0610; font-weight: 700;
  text-decoration: none; box-shadow: 0 10px 26px rgba(240, 45, 91, .28); transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 14px 34px rgba(240, 45, 91, .38); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.btn[aria-disabled="true"] { background: rgba(255, 255, 255, .1); color: var(--dim); box-shadow: none; pointer-events: none; }
.tv { font-size: 14px; color: var(--dim); }

/* Installing on a TV */
.how { margin-top: 42px; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.how h2 { margin: 0 0 16px; font-size: 24px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.how li b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: var(--ink); font: 700 14px Outfit, system-ui, sans-serif; transform: translateY(-2px); }
.how strong { color: var(--ink); }

footer { max-width: 980px; margin: 0 auto; padding: 8px 24px 48px; text-align: center; color: var(--dim); font-size: 14px; }
footer p { margin: 4px 0; }
footer .small { font-size: 12.5px; opacity: .8; }

/* On a holiday: its garland along the top, a hat on each flask, a little weather */
.garland { position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 5; pointer-events: none; animation: pop .9s var(--ease) both; }
.garland svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hat { position: absolute; width: 56%; pointer-events: none; transform-origin: var(--ox) var(--oy); animation: hat 1s var(--ease) both .5s; }
.hat svg { display: block; width: 100%; overflow: visible; }
@keyframes hat { from { opacity: 0; transform: translateY(-40px) rotate(14deg); } 60% { opacity: 1; transform: translateY(2px) rotate(-9deg); } to { transform: rotate(-6deg); } }
.fx { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; top: -10vh; display: block; animation: fall linear both; }
.fx i svg { display: block; width: 100%; height: 100%; overflow: visible; animation: sway ease-in-out infinite alternate; }
@keyframes fall { to { transform: translate3d(var(--wind, 0), 120vh, 0); } }
@keyframes sway { from { transform: translateX(-14px) rotate(-25deg); } to { transform: translateX(14px) rotate(25deg); } }
.fx i.up { top: auto; bottom: -10vh; animation-name: up; }
@keyframes up { to { transform: translate3d(var(--wind, 0), -120vh, 0); } }

@media (max-width: 560px) {
  .app { padding: 22px; }
  .garland { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx { display: none; }
}
