:root {
  color-scheme: dark;
  --ink: #f9f8f2;
  --muted: #a7a89f;
  --panel: #151712;
  --line: rgba(255, 255, 255, .14);
  --acid: #c8ff32;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 300px;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 2%, rgba(200, 255, 50, .18), transparent 28rem),
    #0b0c09;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
[hidden] { display: none !important; }

.share-topbar {
  min-height: 62px;
  padding: 12px clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.share-brand { display: flex; align-items: baseline; gap: 7px; color: inherit; text-decoration: none; }
.share-brand strong { letter-spacing: -.04em; }
.share-brand small, .share-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.share-brand-mark { display: inline-flex; align-items: end; gap: 2px; width: 21px; height: 18px; }
.share-brand-mark i { width: 5px; border-radius: 5px; background: var(--ink); transform: rotate(-8deg); }
.share-brand-mark i:nth-child(1) { height: 10px; }
.share-brand-mark i:nth-child(2) { height: 17px; background: var(--acid); }
.share-brand-mark i:nth-child(3) { height: 13px; }

.share-page { width: min(100%, 1120px); margin: 0 auto; padding: clamp(20px, 5vw, 56px); }
.share-card { display: grid; grid-template-columns: minmax(240px, 400px) minmax(300px, 560px); gap: clamp(22px, 5vw, 64px); align-items: center; }
.share-copy { grid-column: 1; }
.share-eyebrow { margin: 0 0 10px; color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(36px, 6vw, 72px); line-height: .96; letter-spacing: -.065em; }
.share-copy > p:last-child { max-width: 36rem; color: var(--muted); line-height: 1.6; }
.share-stage {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: relative;
  width: min(100%, 520px);
  min-height: min(72dvh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}
.share-stage video { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: contain; background: #000; }
.share-loading, .share-error { position: absolute; inset: 0; display: grid; place-content: center; gap: 9px; padding: 30px; text-align: center; background: var(--panel); }
.share-loading { color: var(--muted); }
.share-error span { color: var(--muted); line-height: 1.5; }
.share-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.share-meta span:not(:empty) { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
.share-actions { display: grid; gap: 9px; }
.share-actions button {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}
.share-actions .share-primary { display: flex; justify-content: space-between; align-items: center; color: #0b0c09; background: var(--acid); border-color: var(--acid); }
.share-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer { padding: 18px 24px 28px; color: var(--muted); text-align: center; font-size: 11px; }
footer a { color: inherit; }

@media (max-width: 760px) {
  .share-topbar { min-height: 56px; }
  .share-page { padding: 18px 14px 28px; }
  .share-card { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .share-copy { padding: 8px 4px 0; }
  h1 { max-width: none; font-size: clamp(34px, 11vw, 52px); }
  .share-copy > p:last-child { margin-bottom: 0; font-size: 14px; }
  .share-stage { width: 100%; min-height: min(61dvh, 650px); border-radius: 20px; }
  .share-meta { order: 3; }
  .share-actions { order: 4; grid-template-columns: 1fr 1fr; }
  .share-actions .share-primary { grid-column: 1 / -1; }
  .share-note { order: 5; }
}
