/*
 * meow: the home page. One screen, no scrolling: what it is on the left, and on the right a small meow that plays by
 * itself with a Mac cursor. Dark, quiet, with springy motion. The other pages (vote, guide and so on) have their own
 * stylesheet, site.css.
 */

/* The colours of the little window can change smoothly, so they are registered as colours. */
@property --w-bg { syntax: '<color>'; inherits: true; initial-value: #000000; }
@property --w-sf { syntax: '<color>'; inherits: true; initial-value: #0b0b0b; }
@property --w-s2 { syntax: '<color>'; inherits: true; initial-value: #141414; }
@property --w-s3 { syntax: '<color>'; inherits: true; initial-value: #1d1d1d; }
@property --w-ink { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --w-i2 { syntax: '<color>'; inherits: true; initial-value: #b8b8b8; }
@property --w-i3 { syntax: '<color>'; inherits: true; initial-value: #808080; }
@property --w-ln { syntax: '<color>'; inherits: true; initial-value: #1a1a1a; }
@property --w-ac { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --w-ai { syntax: '<color>'; inherits: true; initial-value: #000000; }
@property --w-at { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

:root {
  --bg: #070708;
  --ink: #f4f4f6;
  --ink-2: rgba(244, 244, 246, 0.66);
  --ink-3: rgba(244, 244, 246, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* A light spring: it overshoots a hair and settles. */
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
  --top: 64px;
  --foot: 44px;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.2 3.5%, 0.52 8.5%, 0.8 14%, 0.97 20%, 1.04 27%, 1.045 33%, 1.02 42%, 1.004 52%, 0.998 66%, 1); }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { position: relative; min-height: 100%; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; fill: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; border-radius: 8px; }
.defs { position: absolute; }

/* ------------------------------------------------------------------------- */
/* The sky: a quiet light at the top, three slow colours that follow the little window's theme                */
/* ------------------------------------------------------------------------- */

.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sky::before { content: ""; position: absolute; left: 50%; top: -34%; width: 120vmax; height: 80vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent 70%); }
.sky i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: 0; transition: background-color 1.2s ease, opacity 1.2s ease; }
.sky .b1 { left: 38%; top: 8%; }
.sky .b2 { left: 70%; top: 40%; }
.sky .b3 { left: 14%; top: 62%; }
body[data-amb="pumpkin"] .sky i { opacity: 0.2; }
body[data-amb="bloodmoon"] .sky i { opacity: 0.2; }
body[data-amb="hexed"] .sky i { opacity: 0.2; }
body[data-amb="pumpkin"] .b1 { background: #ff7a14; } body[data-amb="pumpkin"] .b2 { background: #b34700; } body[data-amb="pumpkin"] .b3 { background: #ffb347; }
body[data-amb="bloodmoon"] .b1 { background: #ff2d4d; } body[data-amb="bloodmoon"] .b2 { background: #8f0f2a; } body[data-amb="bloodmoon"] .b3 { background: #ff6b81; }
body[data-amb="hexed"] .b1 { background: #8a4dff; } body[data-amb="hexed"] .b2 { background: #4b1fa8; } body[data-amb="hexed"] .b3 { background: #9dff2e; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ------------------------------------------------------------------------- */
/* The bar                                                                   */
/* ------------------------------------------------------------------------- */

.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: var(--top); padding: 0 clamp(18px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand .cat { width: 26px; height: 26px; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.link { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; transition: color 0.2s, background-color 0.2s; }
.link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
.icon:hover, .icon[aria-expanded="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.icon svg { width: 20px; height: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 560; transition: transform 0.35s var(--spring), background-color 0.2s, box-shadow 0.2s; }
.pill svg { width: 16px; height: 16px; }
.pill:active { transform: scale(0.96); }
.pill--solid { margin-left: 8px; background: #f4f4f6; color: #0a0a0b; }
.pill--solid:hover { background: #fff; transform: translateY(-1px); }
.pill--vote { margin-right: 6px; padding: 0 14px 0 12px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); }
.pill--vote:hover { background: rgba(255, 255, 255, 0.13); }
.pill--vote em, .btn em { font-style: normal; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.pill--vote em:empty, .btn em:empty { display: none; }
.pill--vote.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }

.more { position: relative; }
.more-menu { position: absolute; right: 0; top: 42px; min-width: 168px; padding: 6px; border-radius: 14px; background: rgba(28, 28, 31, 0.92); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -12px rgba(0, 0, 0, 0.7); transform-origin: 90% 0; animation: pop 0.34s var(--spring); }
.more-menu a, .more-menu button { display: block; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left; color: var(--ink-2); font-size: 14px; }
.more-menu a:hover, .more-menu button:hover { background: rgba(255, 255, 255, 0.09); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------------- */
/* The page                                                                  */
/* ------------------------------------------------------------------------- */

.stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(340px, 470px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; height: 100dvh; padding: var(--top) clamp(22px, 4vw, 64px) var(--foot); }
.intro { min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 13px 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 520; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: #f4f4f6; }
h1 { margin: 0 0 16px; font-weight: 300; font-size: clamp(34px, 3.7vw, 56px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
h1 span { display: block; }
h1 .dim { color: var(--ink-3); }
.sub { max-width: 400px; margin: 0 0 26px; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 19px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; font-weight: 580; transition: transform 0.35s var(--spring), background-color 0.2s, box-shadow 0.2s; }
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }
.btn--solid { background: #f4f4f6; color: #0a0a0b; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.45); }
.btn--solid:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.meta { margin: 16px 0 0; color: var(--ink-3); font: 500 12px/1.4 var(--mono); letter-spacing: 0.01em; }

/* the chapters of the little film, as a list that is also the way to jump around */
.chapters { display: grid; gap: 2px; margin: clamp(18px, 3.4vh, 36px) 0 0; padding: 0; list-style: none; max-width: 440px; }
.chapters button { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; padding: 10px 14px 10px 12px; border-radius: 14px; text-align: left; color: var(--ink-3); overflow: hidden; transition: color 0.3s, background-color 0.3s; }
.chapters button svg { flex: none; width: 19px; height: 19px; }
.chapters span { display: grid; min-width: 0; }
.chapters b { font-weight: 560; font-size: 14.5px; letter-spacing: -0.01em; }
.chapters small { max-height: 0; opacity: 0; overflow: hidden; font-size: 13px; color: var(--ink-2); transition: max-height 0.5s var(--spring), opacity 0.35s; }
.chapters button:hover { color: var(--ink-2); background: rgba(255, 255, 255, 0.04); }
.chapters button.on { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.chapters button.on small { max-height: 22px; opacity: 1; }
.chapters button::after { content: ""; position: absolute; left: 12px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; }
.chapters button.on::after { opacity: 1; }

/* ------------------------------------------------------------------------- */
/* The little window                                                         */
/* ------------------------------------------------------------------------- */

.demo { position: relative; display: grid; place-items: center; min-width: 0; height: 100%; padding: 12px 0; }
.demo-fit { --scale: 0.8; position: relative; width: calc(960px * var(--scale)); height: calc(600px * var(--scale)); perspective: 1600px; }
.win {
  --w-bg: #000000; --w-sf: #0b0b0b; --w-s2: #141414; --w-s3: #1d1d1d; --w-ink: #ffffff; --w-i2: #b8b8b8; --w-i3: #808080; --w-ln: #1a1a1a; --w-ac: #ffffff; --w-ai: #000000; --w-at: #ffffff;
  position: absolute; left: 0; top: 0; width: 960px; height: 600px;
  transform: scale(var(--scale)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-origin: 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--w-bg);
  color: var(--w-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 60px 120px -30px rgba(0, 0, 0, 0.8), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transition: --w-bg 0.9s ease, --w-sf 0.9s ease, --w-s2 0.9s ease, --w-s3 0.9s ease, --w-ink 0.9s ease, --w-i2 0.9s ease, --w-i3 0.9s ease, --w-ln 0.9s ease, --w-ac 0.9s ease, --w-ai 0.9s ease, --w-at 0.9s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  font-size: 13px;
  line-height: 1.4;
}
.win.t-pumpkin { --w-bg: #1f0d03; --w-sf: #331504; --w-s2: #431b06; --w-s3: #532209; --w-ink: #fff1e2; --w-i2: #e6cdb2; --w-i3: #b89a7c; --w-ln: #5a2c0e; --w-ac: #ff8a1f; --w-ai: #1f0b02; --w-at: #ff9d42; }
.win.t-bloodmoon { --w-bg: #12050a; --w-sf: #1e0a12; --w-s2: #2a101b; --w-s3: #371524; --w-ink: #ffeef1; --w-i2: #e5c4cb; --w-i3: #b38f97; --w-ln: #4f1a2c; --w-ac: #ff4d6a; --w-ai: #1a050b; --w-at: #ff6e86; }
.win.t-hexed { --w-bg: #0e0618; --w-sf: #180a2a; --w-s2: #220e3b; --w-s3: #2d1450; --w-ink: #f6edff; --w-i2: #d6c5ee; --w-i3: #a592c4; --w-ln: #3d2266; --w-ac: #b77dff; --w-ai: #12041f; --w-at: #cba3ff; }
.win button { cursor: default; }
.win svg { width: 100%; height: 100%; }

/* the side */
.w-side { position: absolute; left: 0; top: 0; bottom: 0; width: 64px; }
.w-close { position: absolute; left: 20px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.w-brand { position: absolute; left: 10px; top: 46px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--w-ink); transition: background-color 0.3s; }
.w-brand svg { width: 28px; height: 28px; }
.w-brand.on { background: rgba(255, 255, 255, 0.1); }
.w-dock { position: absolute; left: 10px; top: 106px; display: grid; gap: 4px; width: 44px; }
.w-dock button, .w-foot button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--w-i3); transition: color 0.3s; }
.w-dock button svg, .w-foot button svg { width: 21px; height: 21px; }
.w-dock button.on, .w-foot button.on { color: var(--w-at); }
.w-dock button:hover { color: var(--w-ink); }
.w-dock u { display: block; height: 1px; margin: 6px 10px; background: var(--w-ln); }
.w-thumb { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(0); transition: transform 0.65s var(--spring), opacity 0.3s; }
.w-badge { position: absolute; right: 4px; top: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff5a52; color: #fff; font: 700 10px/16px var(--font); text-align: center; transition: transform 0.4s var(--spring), opacity 0.3s; }
.w-badge.off { transform: scale(0); opacity: 0; }
.w-foot { position: absolute; left: 10px; bottom: 12px; display: grid; gap: 8px; justify-items: center; }
.w-me { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--w-s3); font-weight: 700; font-size: 13px; }
.w-title { position: absolute; left: 78px; top: 17px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; transition: opacity 0.25s; }
.w-stage { position: absolute; left: 64px; top: 52px; right: 8px; bottom: 8px; border-radius: 13px; background: var(--w-sf); box-shadow: 0 0 0 1px var(--w-ln); overflow: hidden; }

/* the scenes */
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(0.985); filter: blur(10px); transition: opacity 0.5s ease, transform 0.8s var(--spring), filter 0.5s ease, visibility 0s linear 0.5s; }
.scr.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0.04s, 0.04s, 0.04s, 0s; }

/* home */
.h-wrap { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 30px 34px 26px; }
.h-head { display: flex; align-items: flex-end; justify-content: space-between; }
.h-date { margin: 0 0 6px; color: var(--w-i3); font-weight: 600; font-size: 11.5px; }
.h-hello { margin: 0; font: 760 34px/1.04 var(--font); letter-spacing: -0.045em; }
.h-hello span { color: var(--w-at); }
.h-conn { display: inline-flex; align-items: center; gap: 7px; color: var(--w-i3); font-size: 11px; font-weight: 560; }
.h-conn i { width: 6px; height: 6px; border-radius: 50%; background: #34d27b; }
.h-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; min-height: 0; }
.h-col { display: grid; gap: 16px; align-content: start; min-height: 0; }
.h-hero { padding: 22px; border-radius: 20px; background: radial-gradient(130% 150% at 0% 0%, color-mix(in srgb, var(--w-ac) 14%, transparent), transparent 62%), var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); }
.h-hero-top { display: flex; align-items: center; gap: 14px; }
.h-glyph { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 19px; background: rgba(255, 255, 255, 0.1); color: var(--w-at); }
.h-glyph svg { width: 30px; height: 30px; }
.h-hero-copy { flex: 1; min-width: 0; }
.h-hero-copy small { display: block; margin-bottom: 3px; color: var(--w-i3); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.h-hero-copy b { display: block; font: 750 26px/1.05 var(--font); letter-spacing: -0.04em; }
.h-open { display: inline-flex; align-items: center; flex: none; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--w-ac); color: var(--w-ai); font-weight: 650; font-size: 13px; }
.h-apps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.h-app { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 78px; border-radius: 15px; background: rgba(255, 255, 255, 0.07); color: var(--w-i2); font-size: 10px; font-weight: 620; text-align: center; transition: transform 0.45s var(--spring), background-color 0.3s; }
.h-app svg { width: 22px; height: 22px; color: var(--w-at); }
.h-app:hover, .h-app.hot { transform: translateY(-3px); background: rgba(255, 255, 255, 0.13); }
.h-card { padding: 18px 20px; border-radius: 22px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); }
.h-card h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font: 700 14px/1 var(--font); letter-spacing: -0.02em; }
.h-card h4 svg { width: 17px; height: 17px; color: var(--w-at); }
.h-card h4 em { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, #ff5a52 22%, transparent); color: #ff7b74; font: 650 10px/1 var(--font); font-style: normal; }
.h-people { display: flex; gap: 18px; }
.h-p { display: grid; justify-items: center; gap: 6px; color: var(--w-i2); font-size: 10px; font-weight: 580; }
.h-p .av { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--w-s3); font-weight: 700; font-size: 15px; color: var(--w-ink); }
.h-p .pd { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 2px var(--w-s2); color: #fff; transition: background-color 0.35s, transform 0.5s var(--spring); }
.h-p .pd svg { width: 66%; height: 66%; opacity: 0; transition: opacity 0.3s; }
.h-p.dnd .pd { background: #6a58d8; }
.h-p.dnd .pd svg { opacity: 1; }
.h-m { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.h-m .av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--w-s3); font-weight: 700; font-size: 14px; }
.h-m b { display: block; font-size: 13.5px; }
.h-m small { display: block; max-width: 150px; overflow: hidden; color: var(--w-i3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.h-m time { margin-left: auto; color: var(--w-i3); font-size: 10px; }
.h-chips { display: flex; gap: 8px; }
.h-chips span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); color: var(--w-i2); font-size: 12px; font-weight: 620; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--spring); }
.h-chips svg { width: 15px; height: 15px; }
.h-chips .h-dnd.on { background: color-mix(in srgb, var(--w-ac) 18%, transparent); color: var(--w-at); }
.h-chips .h-dnd.hot { transform: translateY(-2px); }

/* TikTok */
.t-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.t-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 120, 0.4), transparent); filter: blur(30px); transition: background 0.8s; }
.t-wrap.b .t-glow { background: radial-gradient(closest-side, rgba(70, 170, 255, 0.4), transparent); }
.t-phone { position: relative; width: 270px; height: 480px; border-radius: 26px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.t-vid { position: absolute; inset: 0; transition: transform 0.85s var(--spring); }
.t-vid.v1 { background: linear-gradient(165deg, #ff5f6d, #7c2b86 55%, #2b1055); }
.t-vid.v2 { background: linear-gradient(165deg, #36d1dc, #5b86e5 55%, #1c2b6e); transform: translateY(100%); }
.t-vid::before { content: ""; position: absolute; left: 50%; top: 34%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.t-vid::after { content: ""; position: absolute; left: 50%; top: 52%; width: 210px; height: 210px; margin-left: -105px; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, 0.1); }
.t-stack.next .v1 { transform: translateY(-100%); }
.t-stack.next .v2 { transform: none; }
.t-tabs { position: absolute; left: 0; right: 0; top: 14px; z-index: 3; display: flex; justify-content: center; gap: 16px; color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 13px; }
.t-tabs b { color: #fff; }
.t-cap { position: absolute; left: 14px; bottom: 18px; z-index: 3; display: grid; gap: 7px; }
.t-cap i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); }
.t-cap i:first-child { width: 110px; }
.t-cap i:last-child { width: 170px; background: rgba(255, 255, 255, 0.5); }
.t-rail { position: absolute; right: 12px; bottom: 56px; z-index: 3; display: grid; gap: 14px; justify-items: center; }
.t-rail span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.28); }
.t-rail span svg { width: 20px; height: 20px; color: #fff; }
.t-rail .like.on svg { color: #ff3b5c; animation: beat 0.5s var(--spring); }
@keyframes beat { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.t-heart { position: absolute; left: 50%; top: 45%; z-index: 4; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #ff3b5c; opacity: 0; transform: scale(0.4); pointer-events: none; }
.t-heart.pop { animation: heart 0.9s var(--spring) both; }
@keyframes heart { 0% { opacity: 0; transform: scale(0.3); } 25% { opacity: 1; transform: scale(1.15); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1) translateY(-20px); } }

/* Instagram */
.i-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.i-col { width: 380px; }
.i-stories { display: flex; gap: 14px; margin-bottom: 18px; }
.i-stories i { flex: none; width: 54px; height: 54px; border-radius: 50%; padding: 3px; background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34); }
.i-stories i::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--w-s3); border: 3px solid var(--w-sf); }
.i-post { border-radius: 16px; overflow: hidden; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); }
.i-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.i-head i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f9ce34, #ee2a7b); }
.i-head b { display: block; width: 90px; height: 8px; border-radius: 4px; background: var(--w-ink); opacity: 0.85; }
.i-head u { display: block; width: 56px; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--w-i3); }
.i-img { position: relative; height: 270px; background: linear-gradient(160deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%); }
.i-img::before { content: ""; position: absolute; left: 22%; bottom: 0; width: 56%; height: 62%; border-radius: 50% 50% 0 0; background: rgba(0, 0, 0, 0.22); }
.i-img::after { content: ""; position: absolute; right: 18%; top: 16%; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.i-acts { display: flex; align-items: center; gap: 14px; padding: 12px 14px 4px; }
.i-acts svg { width: 24px; height: 24px; color: var(--w-ink); }
.i-acts .like svg { color: transparent; stroke: var(--w-ink); stroke-width: 1.6; }
.i-acts .like.on svg { color: #ff3b5c; stroke: #ff3b5c; animation: beat 0.5s var(--spring); }
.i-line { display: block; height: 7px; margin: 8px 14px 0; border-radius: 4px; background: var(--w-i3); opacity: 0.6; }
.i-line + .i-line { width: 60%; margin-bottom: 14px; opacity: 0.4; }

/* Snapchat */
.s-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.s-card { display: grid; grid-template-rows: auto 1fr auto; width: 420px; height: 440px; border-radius: 20px; overflow: hidden; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); }
.s-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--w-ln); }
.s-head svg { width: 20px; height: 20px; color: #fffc00; }
.s-head b { font-size: 14px; }
.s-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.s-b { max-width: 70%; padding: 9px 14px; border-radius: 18px; font-size: 13.5px; opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.4s, transform 0.6s var(--spring); }
.s-b.in { opacity: 1; transform: none; }
.s-b.l { align-self: flex-start; background: var(--w-s3); border-bottom-left-radius: 6px; }
.s-b.r { align-self: flex-end; background: var(--w-ac); color: var(--w-ai); border-bottom-right-radius: 6px; }
.s-dots { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--w-s3); opacity: 0; transition: opacity 0.3s; }
.s-dots.in { opacity: 1; }
.s-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--w-i3); animation: dot 1.1s infinite; }
.s-dots i:nth-child(2) { animation-delay: 0.15s; } .s-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { transform: translateY(-4px); opacity: 1; } 60%, 100% { transform: none; opacity: 0.5; } }
.s-foot { margin: 0 14px 14px; height: 40px; border-radius: 999px; background: var(--w-s3); }

/* Movies & TV */
.p-wrap { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: 22px 26px; overflow: hidden; }
.p-top { display: flex; align-items: center; justify-content: space-between; }
.p-logo { display: inline-flex; align-items: center; gap: 9px; }
.p-logo svg { width: 20px; height: 20px; color: var(--w-at); }
.p-logo b { font: 760 15px/1 var(--font); letter-spacing: -0.03em; }
.p-search { width: 230px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.p-hero { position: relative; height: 218px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--w-ln); }
.p-art { position: absolute; inset: 0; background: radial-gradient(90% 120% at 85% 20%, rgba(255, 170, 70, 0.5), transparent 60%), linear-gradient(120deg, #2b1055, #7c2b86 45%, #ff5f6d); transition: transform 6s linear; }
.p-art::after { content: ""; position: absolute; right: 70px; bottom: -34px; width: 230px; height: 270px; border-radius: 50% 50% 0 0; background: rgba(0, 0, 0, 0.28); }
.p-wrap.playing .p-art { transform: scale(1.08); }
.p-copy { position: absolute; left: 28px; bottom: 24px; display: grid; gap: 9px; max-width: 430px; }
.p-copy small { color: rgba(255, 255, 255, 0.72); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.p-copy b { color: #fff; font: 760 27px/1.08 var(--font); letter-spacing: -0.04em; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45); text-wrap: balance; }
.p-play { display: inline-flex; align-items: center; gap: 7px; width: max-content; height: 32px; padding: 0 17px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; font-size: 12px; }
.p-play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.p-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; align-content: start; }
.p-post { position: relative; aspect-ratio: 2 / 3; border-radius: 13px; overflow: hidden; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); transition: transform 0.55s var(--spring), box-shadow 0.3s; }
.p-post i { position: absolute; left: 28%; top: 24%; width: 44%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.p-post span { position: absolute; left: 11px; bottom: 13px; width: 64%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.78); }
.p-post span + span { bottom: 26px; width: 40%; background: rgba(255, 255, 255, 0.45); }
.p-post.hot { z-index: 2; transform: translateY(-7px) scale(1.05); box-shadow: 0 0 0 2px #fff, 0 22px 44px -10px rgba(0, 0, 0, 0.65); }
.p-now { position: absolute; left: 50%; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: rgba(20, 20, 20, 0.86); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 40px -10px rgba(0, 0, 0, 0.7); opacity: 0; transform: translate(-50%, 18px) scale(0.96); transition: opacity 0.35s, transform 0.7s var(--spring); }
.p-now b { font-size: 12px; }
.p-bar { width: 150px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.p-bar i { display: block; width: 0; height: 100%; background: #fff; }
.p-wrap.playing .p-now { opacity: 1; transform: translate(-50%, 0); }
.p-wrap.playing .p-bar i { width: 100%; transition: width 6s linear; }

/* Cloud gaming */
.x-wrap { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.x-wrap svg { width: 64px; height: 64px; color: var(--w-at); }
.x-wrap b { font: 760 26px/1.1 var(--font); letter-spacing: -0.04em; }
.x-wrap small { color: var(--w-i3); }
.x-play { display: inline-flex; align-items: center; height: 38px; padding: 0 22px; border-radius: 999px; background: var(--w-ac); color: var(--w-ai); font-weight: 650; }

/* Messages */
.m-wrap { position: absolute; inset: 10px; display: grid; grid-template-columns: 276px 1fr; gap: 10px; }
.m-list, .m-chat { position: relative; border-radius: 20px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); overflow: hidden; }
.m-list h4 { margin: 18px 18px 10px; font: 760 22px/1 var(--font); letter-spacing: -0.04em; }
.m-search { margin: 0 14px 10px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.m-row { display: flex; align-items: center; gap: 11px; margin: 0 8px; padding: 9px 10px; border-radius: 14px; }
.m-row.on { background: rgba(255, 255, 255, 0.08); }
.m-av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--w-s3); font-weight: 700; font-size: 14px; }
.m-row b { display: block; font-size: 13px; }
.m-row small { display: block; max-width: 140px; overflow: hidden; color: var(--w-i3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.m-row em { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--w-ac); color: var(--w-ai); font: 700 10.5px/18px var(--font); font-style: normal; text-align: center; }
.m-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--w-ln); }
.m-top b { font-size: 14px; } .m-top small { display: block; color: #34d27b; font-size: 11.5px; }
.m-thread { position: absolute; left: 0; right: 0; top: 62px; bottom: 76px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 18px; }
.m-r { position: relative; display: flex; }
.m-r.me { justify-content: flex-end; }
.m-r .b { max-width: 62%; padding: 8px 14px; border-radius: 18px; background: var(--w-s3); font-size: 13.5px; transition: transform 0.7s var(--spring); }
.m-r.me .b { background: var(--w-ac); color: var(--w-ai); }
.m-r .rep { position: absolute; left: 6px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); opacity: 0; transform: scale(0.5); transition: opacity 0.25s, transform 0.5s var(--spring), background-color 0.2s; }
.m-r .rep svg { width: 15px; height: 15px; }
.m-r .rep.arm { background: var(--w-ac); color: var(--w-ai); }
.m-r.new { animation: land 0.7s var(--spring) both; }
@keyframes land { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
.m-q { display: block; margin-bottom: 4px; padding: 5px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); font-size: 11.5px; opacity: 0.85; }
.m-q b { display: block; font-size: 11px; }
.m-comp { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.m-replying { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 11.5px; color: var(--w-i2); max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-bottom: 0; transition: max-height 0.5s var(--spring), opacity 0.3s, padding 0.5s var(--spring), margin 0.5s var(--spring); }
.m-replying.on { max-height: 44px; opacity: 1; padding-top: 7px; padding-bottom: 7px; margin-bottom: 8px; }
.m-replying svg { flex: none; width: 15px; height: 15px; }
.m-replying b { color: var(--w-ink); }
.m-in { display: flex; align-items: center; gap: 8px; }
.m-in .field { flex: 1; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); line-height: 40px; color: var(--w-i3); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.m-in .field.typing { color: var(--w-ink); }
.m-in .send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--w-ac); color: var(--w-ai); transition: transform 0.3s var(--spring); }
.m-in .send svg { width: 18px; height: 18px; transform: rotate(-45deg); }

/* Calls */
.c-wrap { position: absolute; inset: 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.c-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; }
.c-top b { font: 700 16px/1 var(--font); letter-spacing: -0.02em; }
.c-top span { display: inline-flex; align-items: center; gap: 7px; color: #34d27b; font-weight: 600; font-size: 12px; }
.c-top span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d27b; animation: live 1.6s infinite; }
.c-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
.c-t { position: relative; border-radius: 18px; overflow: hidden; background: var(--hue, #2a2a2a); opacity: 0; transform: scale(0.9); transition: opacity 0.4s, transform 0.8s var(--spring), box-shadow 0.4s; }
.c-t.in { opacity: 1; transform: none; }
.c-t::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, 0.22), transparent 70%); }
.c-t .av { position: absolute; left: 50%; top: 46%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); font: 700 30px/1 var(--font); }
.c-t .nm { position: absolute; left: 12px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 12px; font-weight: 600; }
.c-t.speak { box-shadow: inset 0 0 0 3px #34d27b; }
.c-bar { display: flex; justify-content: center; gap: 12px; padding: 2px 0 0; }
.c-bar span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); transition: background-color 0.3s, transform 0.4s var(--spring); }
.c-bar span svg { width: 21px; height: 21px; }
.c-bar span.off { background: #fff; color: #111; }
.c-bar span.end { width: 62px; border-radius: 23px; background: #ff453a; }

/* The vote */
.v-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.v-card { width: 520px; padding: 24px; border-radius: 22px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); }
.v-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.v-head svg { width: 22px; height: 22px; color: var(--w-at); }
.v-head b { font: 700 15px/1.3 var(--font); letter-spacing: -0.015em; }
.v-left { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 18px; }
.v-left b { font: 760 34px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.v-left span { color: var(--w-i3); }
.v-opt { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; margin-bottom: 8px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); overflow: hidden; transition: background-color 0.3s, box-shadow 0.3s; }
.v-opt i { flex: none; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--w-i3); transition: box-shadow 0.3s, background-color 0.3s; z-index: 1; }
.v-opt span { z-index: 1; font-weight: 600; }
.v-opt em { z-index: 1; margin-left: auto; color: var(--w-i2); font: 650 13px/1 var(--font); font-style: normal; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.4s; }
.v-opt u { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, var(--w-ac) 15%, transparent); transition: width 1s var(--spring); }
.v-opt.pick { box-shadow: inset 0 0 0 1.5px var(--w-ac); background: color-mix(in srgb, var(--w-ac) 14%, transparent); }
.v-opt.pick i { background: var(--w-ac); box-shadow: inset 0 0 0 4px var(--w-s2); }
.v-card.done .v-opt em { opacity: 1; }
.v-go { display: grid; place-items: center; height: 44px; margin-top: 14px; border-radius: 14px; background: var(--w-ac); color: var(--w-ai); font-weight: 700; transition: opacity 0.3s, transform 0.4s var(--spring); }
.v-go.off { opacity: 0.35; }
.v-card.done .v-go { display: none; }
.v-note { display: none; margin: 14px 0 0; color: var(--w-i3); font-size: 12.5px; text-align: center; }
.v-card.done .v-note { display: block; animation: land 0.6s var(--spring) both; }
.plus { position: absolute; z-index: 3; color: var(--w-at); font: 760 18px/1 var(--font); pointer-events: none; animation: plus 1.2s var(--spring) forwards; }
@keyframes plus { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* Settings, as a sheet that rises over the window */
.w-sheet { position: absolute; left: 50%; top: 50%; z-index: 6; width: 640px; height: 384px; margin: -192px 0 0 -320px; border-radius: 20px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln), 0 40px 90px -10px rgba(0, 0, 0, 0.75); display: grid; grid-template-columns: 170px 1fr; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(40px) scale(0.94); transition: opacity 0.4s, transform 0.8s var(--spring), visibility 0s linear 0.4s; }
.w-sheet.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.w-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.28); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s linear 0.4s; }
.w-scrim.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.sh-nav { padding: 18px 12px; background: rgba(0, 0, 0, 0.18); }
.sh-nav h5 { margin: 0 8px 14px; font: 700 16px/1 var(--font); letter-spacing: -0.02em; }
.sh-nav span { display: block; padding: 8px 10px; border-radius: 9px; color: var(--w-i3); font-weight: 560; }
.sh-nav span.on { background: rgba(255, 255, 255, 0.09); color: var(--w-ink); }
.sh-main { position: relative; padding: 18px 20px; }
.sh-x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 14px; line-height: 1; }
.sh-label { margin: 6px 0 9px; color: var(--w-i3); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sh-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh-card { padding: 7px 7px 9px; border-radius: 13px; box-shadow: 0 0 0 1px var(--w-ln); transition: box-shadow 0.3s, transform 0.5s var(--spring); }
.sh-card.on { box-shadow: 0 0 0 2px var(--w-ac); }
.sh-card.hot { transform: translateY(-2px); }
.sh-mini { position: relative; display: grid; grid-template-columns: 12px 1fr; height: 62px; padding: 4px 4px 4px 0; border-radius: 8px; background: var(--m-bg); overflow: hidden; }
.sh-mini::before { content: ""; justify-self: center; width: 4px; height: 4px; margin-top: 8px; border-radius: 1px; background: var(--m-ac); }
.sh-mini::after { content: ""; border-radius: 5px; background: var(--m-sf); box-shadow: 0 0 0 1px var(--m-ln); }
.sh-mini i { position: absolute; z-index: 1; left: 20px; top: 12px; width: 26px; height: 5px; border-radius: 2px; background: var(--m-ink); }
.sh-mini u { position: absolute; z-index: 1; left: 20px; bottom: 9px; width: 56%; height: 22px; border-radius: 4px; background: var(--m-s2); box-shadow: 0 0 0 1px var(--m-ln); }
.sh-card b { display: block; margin: 7px 3px 0; font-size: 11.5px; }
.sh-look { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.sh-look div { display: grid; place-items: center; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px var(--w-ln); font-weight: 600; font-size: 12px; color: var(--w-i2); transition: box-shadow 0.3s, transform 0.5s var(--spring); }
.sh-look div.on { box-shadow: 0 0 0 2px var(--w-ac); color: var(--w-ink); }
.sh-look div.hot { transform: translateY(-2px); }

/* The cursor */
.w-cursor { position: absolute; left: 0; top: 0; z-index: 30; width: 22px; height: 26px; margin: -3px 0 0 -4px; pointer-events: none; opacity: 0; transition: opacity 0.35s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.w-cursor.show { opacity: 1; }
.w-cursor svg { overflow: visible; transform-origin: 20% 10%; transition: transform 0.22s var(--spring); }
.w-cursor path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.w-cursor.press svg { transform: scale(0.86); }
.ripple { position: absolute; z-index: 29; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); pointer-events: none; animation: ripple 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes ripple { from { opacity: 0.9; transform: scale(0.4); } to { opacity: 0; transform: scale(3.2); } }

/* ------------------------------------------------------------------------- */
/* The foot, the notice, and the install sheet                                */
/* ------------------------------------------------------------------------- */

.foot { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 22px; height: var(--foot); color: var(--ink-3); font: 500 12px/1 var(--mono); }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 62px; z-index: 60; margin: 0; padding: 11px 18px; border-radius: 999px; background: rgba(36, 36, 40, 0.94); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -10px rgba(0, 0, 0, 0.6); font-size: 13.5px; transform: translateX(-50%); animation: pop 0.4s var(--spring); }

.sheet-scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: relative; width: min(500px, 100%); padding: 28px; border-radius: 24px; background: rgba(30, 30, 34, 0.96); box-shadow: 0 0 0 1px var(--line), 0 50px 100px -20px rgba(0, 0, 0, 0.8); animation: sheet 0.6s var(--spring) both; }
.sheet.small { width: min(400px, 100%); text-align: center; }
@keyframes sheet { from { opacity: 0; transform: translateY(26px) scale(0.95); } to { opacity: 1; transform: none; } }
.sheet h2 { margin: 0 0 6px; font: 660 22px/1.15 var(--font); letter-spacing: -0.03em; }
.sheet p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; text-wrap: pretty; }
.sheet .x { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); font-size: 17px; line-height: 1; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--line); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 12.5px/1.5 var(--mono); color: var(--ink); scrollbar-width: none; }
.cmd button { flex: none; height: 30px; padding: 0 13px; border-radius: 999px; background: #f4f4f6; color: #0a0a0b; font-size: 12.5px; font-weight: 650; }
.sheet .alt { display: block; margin: 16px auto 0; color: var(--ink-3); font-size: 13px; }
.sheet .alt:hover { color: var(--ink); }
.sheet .row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.sheet .row button { height: 40px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 600; }
.sheet .row button.go { background: #f4f4f6; color: #0a0a0b; }

/* ------------------------------------------------------------------------- */
/* Smaller windows: it stacks, and the page may scroll                       */
/* ------------------------------------------------------------------------- */

@media (max-width: 1000px), (max-height: 560px) {
  body { overflow: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100dvh; align-items: start; gap: 30px; padding-top: calc(var(--top) + 18px); padding-bottom: calc(var(--foot) + 24px); }
  .intro { width: 100%; text-align: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .chapters { max-width: 100%; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; overflow-x: auto; scrollbar-width: none; }
  .chapters small { display: none; }
  .demo { height: auto; }
  .foot { position: static; }
  .link { display: none; }
}
/* Not very tall: the left side tightens up so it all still fits without scrolling. */
@media (max-height: 800px) and (min-width: 1001px) {
  .chip { display: none; }
  h1 { margin-bottom: 10px; font-size: clamp(32px, 3.3vw, 48px); }
  .sub { margin-bottom: 18px; font-size: 15.5px; }
  .meta { margin-top: 12px; }
  .chapters { margin-top: 14px; }
  .chapters button { padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 560px) {
  .pill--vote em { display: none; }
  .top-nav .pill--solid { margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky i, .pill--vote.is-live::before, .c-top span::before { animation: none; }
}

/* where to vote, pointed out at the end of the last part */
.ping { animation: ping 1.3s var(--spring) 2; }
@keyframes ping { 0%, 100% { transform: none; } 40% { transform: scale(1.08); background-color: rgba(255, 255, 255, 0.24); } }

/* ---- School, below the first screen of Home ------------------------------------------------------------------ */
.h-wrap { transition: transform 0.9s var(--spring); }
.h-wrap.scrolled { transform: translateY(-538px); }
.h-pencil { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 9px; border-radius: 11px; background: var(--w-s2); box-shadow: 0 0 0 1px var(--w-ln); color: var(--w-i2); font-size: 12px; font-weight: 680; transition: background-color 0.25s, color 0.25s; }
.h-pencil svg { width: 17px; height: 17px; }
.h-pencil.is-done { padding: 0 14px 0 11px; background: var(--w-ac); color: var(--w-ai); }
.h-pencil.is-done svg { width: 15px; height: 15px; }
.h-below { position: absolute; left: 34px; right: 34px; top: calc(100% + 20px); display: grid; gap: 14px; }
.h-sub { margin-left: auto; color: var(--w-i3); font: 520 10.5px/1 var(--font); letter-spacing: 0; }
.h-now-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.h-now-row small { display: block; margin-bottom: 4px; color: var(--w-i3); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.h-now-row b { font: 750 22px/1.1 var(--font); letter-spacing: -0.035em; }
.h-now-row strong { font: 750 32px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.h-bar { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.h-bar i { display: block; width: 46%; height: 100%; border-radius: inherit; background: var(--w-ink); }
.h-school { align-items: start; }
.h-asg-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--w-ln); }
.h-asg-row:first-of-type { border-top: 0; padding-top: 0; }
.h-asg-row > div { flex: 1; min-width: 0; }
.h-asg-row b { display: block; overflow: hidden; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.h-asg-row small { display: block; color: var(--w-i3); font-size: 10.5px; }
.h-asg-row time { flex: none; color: var(--w-i2); font-size: 10.5px; font-weight: 620; font-variant-numeric: tabular-nums; }
.h-submit { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 24px; padding: 0 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: var(--w-ink); font-size: 10.5px; font-weight: 650; }
.h-submit svg { width: 11px; height: 11px; }
.h-grade { padding: 6px 0; }
.h-grade div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 11.5px; font-weight: 600; }
.h-grade span { color: var(--w-i2); font-weight: 650; font-variant-numeric: tabular-nums; }
.h-gbar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.h-gbar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--w-ink); transition: width 1.1s var(--spring); }
.h-school.on .h-gbar i { width: var(--w); }
.h-gpa-n { display: flex; align-items: baseline; gap: 9px; }
.h-gpa-n b { font: 750 34px/1 var(--font); letter-spacing: -0.045em; }
.h-gpa-n em { color: #34d27b; font-size: 12px; font-style: normal; font-weight: 700; }
/* while Home is being arranged: the cards wobble, and the one that is carried floats */
.h-wrap.arranging .h-card, .h-wrap.arranging .h-hero { animation: h-wobble 0.28s ease-in-out infinite alternate; }
.h-wrap.arranging .h-col > .h-card:nth-child(2n) { animation-direction: alternate-reverse; animation-duration: 0.32s; }
@keyframes h-wobble { from { rotate: -0.35deg; } to { rotate: 0.35deg; } }
.h-card.lift { position: relative; z-index: 5; animation: none !important; box-shadow: 0 0 0 1px var(--w-ln), 0 24px 50px -16px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: reduce) { .h-wrap.arranging .h-card, .h-wrap.arranging .h-hero { animation: none; } }
