/* Fivestar: shared tokens, type, nav, buttons, avatars, footer. Used by the landing page and the app. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/vendor/inter-tight-latin.woff2) format('woff2'); }
:root {
  /* golden-hour coast: hot pink accent, gold / orange support, deep dusk for dark surfaces */
  --tan: #ff3d8b; --tan-d: #ec2a78; --tan-dd: #c2185e; --tan-2: #ff7ab0; --tan-l: #ffd3e4; --tan-ll: #fff1f6;
  --gold: #ffb547; --orange: #ff7a3d; --dusk: #1b1f5e; --dusk-2: #2a1b4f; --dusk-3: #15112e;
  --field: radial-gradient(60% 55% at 78% 70%, rgba(255, 226, 170, .75), rgba(255, 170, 120, 0) 70%), linear-gradient(180deg, #1a2a6e 0%, #4b3a96 34%, #b4478e 62%, #ff7a5c 84%, #ffb466 100%);
  --dusk-field: radial-gradient(70% 55% at 50% 108%, rgba(255, 122, 84, .34), rgba(255, 122, 84, 0) 70%), radial-gradient(60% 50% at 0% 0%, rgba(110, 120, 255, .16), rgba(110, 120, 255, 0) 70%), linear-gradient(180deg, #1c1d58 0%, #2a1b4f 55%, #3a1d55 100%);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .9 0 0 0 0 .85 0 0 0 0 .8 0 0 0 .07 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  --plum: #2a1b4f; --plum-2: #3a2a66; --plum-l: #e8e1ff;
  --ink: #17132e; --ink-2: #3d3352; --ink-3: #66597a; --ink-4: #b3a5bd;
  --panel: #f8eff4; --line: #eedfe8; --white: #fff; --card: #fffbf9;
  --green: #0a8f52; --green-l: #dcf4e7; --sun: #ff3b3b; --sun-l: #ffe1e1;
  --r-xl: 32px; --r-lg: 24px; --r-md: 20px; --r-sm: 14px;
  --f: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(23, 19, 46, .04), 0 18px 40px -22px rgba(42, 20, 70, .32);
  --shadow-sm: 0 1px 0 rgba(23, 19, 46, .04), 0 8px 22px -14px rgba(23, 19, 46, .25);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--tan); color: var(--ink); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 10px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- the mark */
.mark { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(150, 20, 20, .3)); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; letter-spacing: -.04em; }

/* ---------------------------------------------------------------- nav: a floating white bar */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1200px, 100% - 24px);
  display: flex; align-items: center; gap: 8px; padding: 9px 9px 9px 14px; background: rgba(255, 255, 255, .95); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(23, 19, 46, .05), 0 12px 32px -16px rgba(23, 19, 46, .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .links { display: flex; gap: 2px; margin-left: 22px; }
.nav .links a { padding: 9px 13px; border-radius: 12px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav .links a:hover { background: var(--panel); color: var(--ink); }
.nav .links a.on { background: var(--ink); color: #fff; }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- pill buttons with a round arrow chip */
.pill { --bg: var(--ink); --fg: #fff; --chip: #fff; --chipfg: var(--ink);
  display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 7px 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s, opacity .2s; }
.pill .chip { width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--chipfg); display: grid; place-items: center; flex: none; overflow: hidden; }
.pill .chip svg { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pill:hover { transform: translateY(-1px); }
.pill:hover .chip svg { transform: translateX(3px); }
.pill:active { transform: translateY(0) scale(.985); }
.pill.white { --bg: #fff; --fg: var(--ink); --chip: var(--ink); --chipfg: #fff; }
.pill.tan { --bg: var(--tan); --fg: var(--ink); --chip: var(--ink); --chipfg: var(--tan); }
.pill.ghost { --bg: var(--panel); --fg: var(--ink); --chip: var(--ink); --chipfg: #fff; }
.pill.sm { height: 44px; padding: 0 5px 0 18px; font-size: 15px; gap: 10px; }
.pill.sm .chip { width: 34px; height: 34px; }
.pill.sm .chip svg { width: 14px; height: 14px; }
.pill.plain { padding: 0 22px; }
.pill:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- headings */
.h1, .h2, .h3 { margin: 0; font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.h2 { font-size: clamp(40px, 6vw, 86px); }
.h3 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.02; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tan); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }

/* ---------------------------------------------------------------- avatars */
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; overflow: hidden; display: grid; place-items: center;
  background: var(--tan-l); color: var(--tan-dd); font-weight: 700; font-size: 16px; text-transform: uppercase; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.c1 { background: var(--plum-l); color: #a3171f; }
.av.c2 { background: #dcebfb; color: #1f5a96; }
.av.c3 { background: var(--sun-l); color: #a3171f; }
.av.open { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-4); color: var(--ink-4); }
.av.open::before { content: ''; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }

/* ---------------------------------------------------------------- tiny tally icon used in lists */
.tk { display: inline-flex; gap: 3px; align-items: center; height: 14px; position: relative; }
.tk i { width: 3px; height: 14px; border-radius: 2px; background: currentColor; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--panel); padding: 72px 0 40px; margin-top: 0; }
.foot .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--ink-3); margin: 14px 0 0; max-width: 30em; font-size: 15px; }
.foot h4 { margin: 4px 0 14px; font: 600 13px/1 var(--mono); text-transform: uppercase; color: var(--ink-3); letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { font-weight: 500; color: var(--ink-2); }
.foot ul a:hover { color: var(--tan-dd); }
.foot .bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }

/* ---------------------------------------------------------------- segmented control */
.seg { display: inline-flex; background: var(--panel); border-radius: 999px; padding: 4px; }
.seg button { padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, 100% - 32px); padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; box-shadow: var(--shadow);
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .nav .links { display: none; }
  .foot .top { grid-template-columns: 1fr 1fr; }
  .foot .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav { top: 10px; padding: 7px 7px 7px 12px; border-radius: 18px; width: calc(100% - 20px); }
  .nav .pill.sm { height: 40px; padding-left: 14px; font-size: 14px; }
  .nav .pill.sm .chip { width: 30px; height: 30px; }
  .pill { height: 52px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------------------------------------------------------------- the X post card (landing + app) */
.xpost { background: var(--card); border-radius: 18px; padding: 14px 16px 16px; box-shadow: 0 0 0 1px rgba(23, 19, 46, .07); text-align: left; min-width: 0; }
.xp-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xp-h .av { width: 40px; height: 40px; font-size: 16px; }
.xp-h > div { min-width: 0; }
.xp-h b { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-h small { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-x { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--ink); }
.xp-t { margin: 10px 0 0; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.xp-ph { margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; }
.xp-ph img { width: 100%; height: 100%; object-fit: cover; }
.xp-f { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.xp-f a { color: var(--tan-dd); font-weight: 600; }
.xpost.sm { padding: 11px 13px 12px; border-radius: 15px; }
.xpost.sm .xp-h .av { width: 32px; height: 32px; font-size: 13px; }
.xpost.sm .xp-h b { font-size: 14px; }
.xpost.sm .xp-h small { font-size: 12px; }
.xpost.sm .xp-t { font-size: 15px; margin-top: 7px; }
.xpost.big { padding: 20px 22px 22px; border-radius: 24px; }
.xpost.big .xp-h .av { width: 48px; height: 48px; font-size: 19px; }
.xpost.big .xp-h b { font-size: 17px; }
.xpost.big .xp-t { font-size: clamp(20px, 2vw, 26px); line-height: 1.32; letter-spacing: -.02em; margin-top: 14px; }

/* ---------------------------------------------------------------- Fivestar: the clip card (an X video post or a Twitch clip) */
:root { --twitch: #9146ff; }
.xp-vid { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #1a1640; isolation: isolate; }
.xp-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* the invented stand-in thumbnail: a dusk sky over a skyline and a bridge, drawn in CSS (no game art) */
.xp-vid.art { background:
  radial-gradient(8% 14% at 70% 66%, #fff4d8 0 92%, rgba(255, 244, 216, 0) 100%),
  radial-gradient(42% 52% at 70% 66%, rgba(255, 200, 140, .75), rgba(255, 170, 120, 0) 70%),
  linear-gradient(180deg, #1a2461 0%, #3c3a8e 26%, #8a4598 44%, #e14a87 58%, #ff7a54 68%, #ffb466 74%); }
.xp-vid.art::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180' preserveAspectRatio='xMidYMax slice'><g fill='%23241033'><path d='M0 128h14v-22h10v-14h8v36h10v-30h6v-18h7v48h12v-20h9v20h8v52H0z'/><rect x='0' y='140' width='320' height='40'/><rect x='150' y='72' width='5' height='60'/><rect x='252' y='72' width='5' height='60'/><rect x='96' y='124' width='224' height='4'/></g><g fill='none' stroke='%23241033' stroke-width='1.6'><path d='M96 124Q124 118 152 74Q204 120 254 74Q286 116 320 120'/><path d='M168 124v-38M186 124v-30M204 124v-24M222 124v-30M240 124v-38M118 124v-12M134 124v-26M270 124v-26M290 124v-12' stroke-width='.9'/></g><path d='M0 152h320' stroke='%23ff8a3d' stroke-opacity='.35' stroke-width='1'/></svg>") center bottom / cover no-repeat; }
.xp-vid .pm { position: absolute; z-index: 3; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 26px -8px rgba(23, 19, 46, .55); }
.xp-vid .pm::after { content: ''; position: absolute; left: 20px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.xp-vid .src, .xp-vid .vw { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(23, 19, 46, .8); color: #fff; font: 600 12px/1 var(--mono); }
.xp-vid .src { left: 10px; top: 10px; }
.xp-vid .src svg { width: 12px; height: 12px; }
.xp-vid .vw { right: 10px; bottom: 10px; }
.xp-vid .src.tw svg { color: #c9a6ff; }
.xpost.sm .xp-vid { margin-top: 9px; border-radius: 11px; }
.xpost.sm .xp-vid .pm { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.xpost.sm .xp-vid .pm::after { left: 15px; top: 12px; border-width: 8px 0 8px 13px; }
.xpost.sm .xp-vid .src, .xpost.sm .xp-vid .vw { height: 22px; font-size: 11px; padding: 0 8px; }
.xpost.big .xp-vid { margin-top: 16px; border-radius: 18px; }
.xpost.big .xp-vid .pm { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.xpost.big .xp-vid .pm::after { left: 26px; top: 21px; border-width: 13px 0 13px 21px; }
.xp-tw { color: var(--twitch); }
.soon-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 12.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.soon-chip svg { width: 13px !important; height: 13px !important; flex: none; color: var(--twitch); }

/* ---------------------------------------------------------------- Fivestar sunset skin: dusk-glass nav, warm avatars, dusk footer */
::selection { background: var(--tan); color: #fff; }
.mark { filter: drop-shadow(0 2px 4px rgba(120, 40, 20, .35)); }
.nav { background: rgba(28, 20, 64, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px -16px rgba(10, 6, 30, .6); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); color: #fff; }
.nav .links a { color: rgba(255, 255, 255, .78); }
.nav .links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav .links a.on { background: rgba(255, 255, 255, .16); color: #fff; }
.nav .pill { --bg: #fff; --fg: var(--ink); --chip: var(--ink); --chipfg: #fff; }
.nav :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
.av { background: var(--tan-l); color: var(--tan-dd); }
.av.c1 { background: var(--plum-l); color: #3b2a8c; }
.av.c2 { background: #ffe5d3; color: #9a3d12; }
.xp-f a { color: var(--tan-dd); }
.eyebrow::before { background: var(--tan); box-shadow: 0 0 0 3px rgba(255, 61, 139, .18); }
.seg { background: var(--panel); }
.toast { background: var(--dusk-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow); }
.foot { position: relative; background: var(--grain), radial-gradient(60% 120% at 85% 0%, rgba(255, 122, 84, .16), rgba(255, 122, 84, 0) 70%), linear-gradient(180deg, #221a4c 0%, var(--dusk-3) 100%); color: #fff; }
.foot p { color: rgba(255, 255, 255, .66); }
.foot h4 { color: rgba(255, 255, 255, .55); }
.foot ul a { color: rgba(255, 255, 255, .84); }
.foot ul a:hover { color: var(--gold); }
.foot .bottom { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .56); }
