/* Florida-Brand: shared look for the studio hub and every app site.
   Each app can override --accent / --accent-2 on <body> to get its own colours. */
:root {
  color-scheme: dark;
  --bg: #070a1c;
  --bg-2: #0c1130;
  --surface: rgba(22, 28, 66, 0.62);
  --surface-solid: #141a40;
  --line: rgba(160, 150, 255, 0.16);
  --text: #eef0ff;
  --text-dim: #a4a9d6;
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --glow: rgba(168, 85, 247, 0.45);
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 15% -10%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 10, 28, 0.66);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -0.01em; font-family: var(--font-round); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--glow); font-size: 15px; color: #fff; font-weight: 800;
}
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text-dim); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 11px; font-size: 15px; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--font-round); letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 820; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 780; }
h3 { font-size: 20px; font-weight: 720; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-dim); max-width: 660px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.gradient-text { background: linear-gradient(92deg, #fff 10%, #d8b4fe 45%, var(--accent-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- sections ---- */
section { padding: 84px 0; }
.section-head { margin-bottom: 40px; }
.hero { padding: 88px 0 56px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), rgba(168, 85, 247, 0.4), var(--line), transparent); border: 0; margin: 0; }

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 680; font-size: 16px; border: 1px solid var(--line); color: var(--text);
  background: rgba(255, 255, 255, 0.05); transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7c3aed 55%, var(--accent-2)); border-color: transparent; box-shadow: 0 8px 30px var(--glow); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 40px var(--glow); background: linear-gradient(135deg, var(--accent), #7c3aed 55%, var(--accent-2)); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---- cards ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.2)); border: 1px solid var(--line);
  font-size: 22px;
}
.card.hover { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card.hover:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 10px 40px rgba(124, 58, 237, 0.25); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); background: rgba(255, 255, 255, 0.04); }
.pill.live { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }
.pill.soon { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); }

/* ---- screenshots ---- */
.shot { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.shot img { width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--text-dim); margin-top: 10px; }

/* ---- prose (legal pages) ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text-dim); font-weight: 650; }
.prose .note { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent-2); font-weight: 700; }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--text-dim); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--text-dim); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 26px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--text-dim); }
.site-footer nav a:hover { color: var(--text); }
.fine { font-size: 13px; color: var(--text-dim); opacity: 0.85; max-width: 560px; }

/* ---- Discord links and the support form (shared/ticket.js) ---- */
.discord-ico { width: 20px; height: 20px; flex: none; }
.help-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.help-card h3 .discord-ico { width: 26px; height: 26px; color: var(--accent-2); }
.help-card .actions { margin-top: 18px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.fb-form { display: grid; gap: 14px; text-align: left; }
.fb-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text); }
.fb-form label .dim { font-weight: 400; font-size: 13px; }
.fb-form input, .fb-form select, .fb-form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 10px; width: 100%; min-width: 0;
}
.fb-form textarea { resize: vertical; min-height: 130px; }
.fb-form select option { color: #111; }
.fb-form input:focus-visible, .fb-form select:focus-visible, .fb-form textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fb-count { justify-self: end; font-size: 12px; color: var(--text-dim); margin-top: -8px; }
.fb-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.fb-form .btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.fb-form .fine { margin: 0; max-width: none; }
.fb-status { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 15px; }
.fb-status.ok { border-color: rgba(134, 239, 172, 0.5); background: rgba(134, 239, 172, 0.1); }
.fb-status.error { border-color: rgba(255, 99, 132, 0.6); background: rgba(255, 99, 132, 0.1); }
.fb-status:focus { outline: none; }
.fb-form[hidden], .fb-form [hidden] { display: none !important; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card.hover { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 56px 0 36px; }
  .wrap { padding: 0 16px; }
  .grid-3, .grid-2, .help-grid, .fb-row { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; background: rgba(7, 10, 28, 0.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .card { padding: 22px; }
}

/* "Download on the App Store": Apple's badge stays exactly as Apple supplies it (no colour or effects on it).
   The neon liquid-glass tile around it is ours, in GuiOut Luau's blue/purple, with the badge's required clear space. */
.store-glass {
  position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  line-height: 0; padding: 14px 18px; border-radius: 22px; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 45%, rgba(139,92,246,.10)), rgba(8,12,30,.55);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.35),
              0 0 22px rgba(59,130,255,.38), 0 0 46px rgba(139,92,246,.22), 0 10px 30px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .25s ease;
}
/* The neon edge: a blue → purple → blue ring drawn with a mask, so the glass inside stays clear. */
.store-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, #5b97ff, #8b5cf6 45%, #c084fc 60%, #3b82ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* A soft highlight across the top of the glass. */
.store-glass::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 40%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent); filter: blur(2px); z-index: -1;
}
.store-glass:hover, .store-glass:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.35),
              0 0 30px rgba(59,130,255,.6), 0 0 64px rgba(139,92,246,.38), 0 14px 36px rgba(0,0,0,.5);
}
.store-glass:focus-visible { outline: 2px solid #7fb2ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .store-glass, .store-glass:hover { transition: none; transform: none; } }

/* ---- Liquid glass theme (opt-in: <body class="glass">; GuiOut Luau and the hub) ----
   Frosted, see-through panels with a bright top edge and a thin neon ring in the site's own --accent / --accent-2,
   like the panels in the GuiOut Luau app. The ring is an ::after masked to the edge (see the end of this section);
   (pages keep their own ::before / ::after). */
body.glass {
  /* Same recipe as the App Store tile (.store-glass): dark glass, a top sheen, an unbroken neon ring and a two-colour glow. */
  /* The "wet" gloss: a curved highlight across the top like a water droplet, a faint second reflection, and
     colour pooling along the bottom (richer, like liquid glass poured over the panel). */
  /* Liquid glass, after clear-glass renders: no blur (you see straight through), hard-edged specular highlights
     (a bright streak along the top, a curved reflection band, a glint in the corner), a thick double edge with a
     cyan-white rim and prism fringes, and the brand colours caught in the glass. Highlights stay at the edges so text
     stays readable. */
  --glass-fill:
    radial-gradient(26% 3px at 42% 7px, rgba(255,255,255,.75) 0 55%, rgba(255,255,255,0) 100%),
    radial-gradient(7% 2.5px at 76% 7px, rgba(255,255,255,.45) 0 50%, rgba(255,255,255,0) 100%),
    radial-gradient(3px 22% at 7px 46%, rgba(255,255,255,.28) 0 45%, rgba(255,255,255,0) 100%),
    radial-gradient(14px 14px at calc(100% - 26px) 24px, rgba(255,255,255,.55), rgba(220,240,255,.15) 35%, rgba(255,255,255,0) 70%),
    radial-gradient(26% 3px at 58% calc(100% - 7px), rgba(0,0,0,.85) 0 55%, rgba(0,0,0,0) 100%),
    radial-gradient(7% 2.5px at 24% calc(100% - 7px), rgba(0,0,0,.6) 0 50%, rgba(0,0,0,0) 100%),
    radial-gradient(3px 22% at calc(100% - 7px) 54%, rgba(0,0,0,.55) 0 45%, rgba(0,0,0,0) 100%),
    radial-gradient(14px 14px at 26px calc(100% - 24px), rgba(0,0,0,.7), rgba(0,0,0,.25) 35%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.09) 0, rgba(255,255,255,0) 18%),
    linear-gradient(0deg, rgba(0,0,0,.34) 0, rgba(0,0,0,.12) 9%, rgba(0,0,0,0) 22%),
    radial-gradient(85% 75% at 108% 110%, rgba(0,0,0,.45), rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 72%);
  --glass-tint: rgba(3, 5, 14, .62);
  --glass-ring: conic-gradient(from 210deg at 50% 50%,
    #ffffff 0deg, #c9f3ff 18deg, color-mix(in srgb, var(--accent) 80%, white) 40deg, var(--accent) 80deg,
    #f0abfc 120deg, #fde68a 132deg, #a5f3fc 142deg, var(--accent-2) 170deg, #ffffff 200deg, #c9f3ff 215deg,
    var(--accent) 260deg, var(--accent-2) 300deg, #a5f3fc 330deg, #ffffff 360deg);
  --glass-blur: saturate(140%);
  --glass-shine:
    inset 0 0 0 1px rgba(0,0,0,.55),
    inset 3px 3px 5px -1px rgba(0,0,0,.65),
    inset 8px 8px 14px -4px rgba(0,0,0,.35),
    inset -3px -4px 3px -1px rgba(235,246,255,.55),
    inset -8px -11px 14px -5px rgba(200,232,255,.30),
    inset -18px -24px 30px -10px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 0 22px 6px rgba(190,220,255,.05),
    inset 0 0 30px color-mix(in srgb, var(--accent) 18%, transparent);
  --glass-glow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 50px color-mix(in srgb, var(--accent-2) 28%, transparent);
  --glass-glow-hover: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 64px color-mix(in srgb, var(--accent-2) 38%, transparent);
}
body.glass .card,
body.glass details,
body.glass .prose .note {
  border: 0;
  background: var(--glass-fill), linear-gradient(var(--glass-tint), var(--glass-tint));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shine), 0 3px 4px rgba(0,0,0,.55), 0 16px 30px rgba(0,0,0,.55), var(--glass-glow);
}
body.glass .prose .note { border-left: 1px solid transparent; border-radius: 14px; }
body.glass .card.hover:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glass-shine), var(--glass-glow-hover), 0 14px 36px rgba(0,0,0,.5);
}
/* Header: a frosted bar with a neon hairline under it. */
body.glass .site-header {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), rgba(6, 9, 26, .5);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--accent-2) 70%, transparent), transparent) 1;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
body.glass .nav a:hover, body.glass .nav a[aria-current="page"] {
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.06);
}
/* Buttons: glass pills; the primary one keeps its gradient with a glassy sheen and a neon glow. */
body.glass .btn {
  border: 0;
  background: var(--glass-fill), linear-gradient(var(--glass-tint), var(--glass-tint));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shine), 0 3px 4px rgba(0,0,0,.55), 0 16px 30px rgba(0,0,0,.55), var(--glass-glow);
}
body.glass .btn:hover { box-shadow: var(--glass-shine), var(--glass-glow-hover), 0 14px 36px rgba(0,0,0,.5); }
body.glass .btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%),
              linear-gradient(135deg, var(--accent), #7c3aed 55%, var(--accent-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 30px var(--glow), 0 0 40px color-mix(in srgb, var(--accent-2) 25%, transparent);
}
body.glass .pill {
  background: rgba(255,255,255,.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
body.glass .pill.live { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 14px rgba(134,239,172,.25); }
body.glass .pill.soon { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 14px rgba(252,211,77,.2); }
body.glass .card .ico { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent); }
/* Screenshots sit in a neon glass frame. */
body.glass .shot {
  border: 0;
  background: #000;
  box-shadow: var(--glass-glow), 0 24px 70px rgba(0,0,0,.5);
}
body.glass .site-footer {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--accent-2) 60%, transparent), transparent) 1;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
body.glass .fb-form input, body.glass .fb-form select, body.glass .fb-form textarea {
  background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
@supports not (backdrop-filter: blur(1px)) {
  body.glass { --glass-tint: rgba(14, 18, 44, .9); }
}
body.glass .split .check {
  padding: 26px 26px 16px; border-radius: var(--radius); border: 0;
  background: var(--glass-fill), linear-gradient(var(--glass-tint), var(--glass-tint));
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shine), 0 3px 4px rgba(0,0,0,.55), 0 16px 30px rgba(0,0,0,.55), var(--glass-glow);
}
body.glass .split .check li { padding-left: 32px; }

/* The neon ring, drawn exactly like the App Store tile's: a 1.5px gradient ring masked to the edge, so the glass
   inside stays dark and clear instead of showing the gradient through. */
body.glass .card, body.glass details, body.glass .prose .note, body.glass .split .check, body.glass .btn, body.glass .shot {
  position: relative; isolation: isolate;
}
body.glass .card::after, body.glass details::after, body.glass .prose .note::after, body.glass .split .check::after,
body.glass .btn::after, body.glass .shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  /* The ring traces the rounded shape, so this highlight curves round the top-left corner like light on a droplet:
     white at the corner, a thin rainbow fringe, then the neon. */
  background:
    radial-gradient(150px 110px at 14px 12px, rgba(255,255,255,.98) 0 22%, #e0fbff 34%, #a5f3fc 44%, #f0abfc 55%, #fde68a 63%, rgba(165,243,252,.55) 72%, rgba(255,255,255,0) 84%),
    var(--glass-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
body.glass .btn-primary::after { background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,.12) 50%, rgba(255,255,255,.4)); }
/* Buttons are small: a shorter top-left highlight, so most of the rim stays neon. */
body.glass .btn:not(.btn-primary)::after {
  background:
    radial-gradient(56px 30px at 12px 8px, rgba(255,255,255,.95) 0 20%, #e0fbff 34%, #a5f3fc 46%, #f0abfc 58%, #fde68a 66%, rgba(255,255,255,0) 82%),
    var(--glass-ring);
}

/* Gallery screenshots under a glossy layer of liquid glass: a full rainbow prism edge, the same tapered streaks as
   the top round every side, a hard-edged diagonal reflection, deeper and richer colour, lifted off the page.
   The images have an 11px white border baked in (1600×949), so they're scaled just past it. */
.shot img { transform: scale(1.025); }
body.glass .shot {
  border-radius: 18px;
  box-shadow: -3px -3px 8px rgba(200,228,255,.08), 4px 6px 6px rgba(0,0,0,.5), 10px 18px 34px rgba(0,0,0,.55), var(--glass-glow);
}
body.glass .shot img { filter: saturate(1.5) contrast(1.15) brightness(.76); }
body.glass .shot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background:
    radial-gradient(26% 3px at 42% 7px, rgba(255,255,255,.9) 0 55%, rgba(255,255,255,0) 100%),
    radial-gradient(7% 2.5px at 76% 7px, rgba(255,255,255,.6) 0 50%, rgba(255,255,255,0) 100%),
    radial-gradient(3px 34% at 7px 50%, rgba(255,255,255,.7) 0 55%, rgba(255,255,255,0) 100%),
    radial-gradient(3px 34% at calc(100% - 7px) 50%, rgba(225,242,255,.7) 0 55%, rgba(255,255,255,0) 100%),
    radial-gradient(26% 3px at 58% calc(100% - 7px), rgba(225,242,255,.8) 0 55%, rgba(255,255,255,0) 100%),
    radial-gradient(7% 2.5px at 24% calc(100% - 7px), rgba(225,242,255,.5) 0 50%, rgba(255,255,255,0) 100%),
    radial-gradient(18px 18px at calc(100% - 26px) 24px, rgba(255,255,255,.9), rgba(220,240,255,.25) 35%, rgba(255,255,255,0) 70%),
    linear-gradient(118deg, rgba(255,255,255,0) 0 22%, rgba(255,255,255,.13) 22.5% 34%, rgba(255,255,255,0) 34.5% 38%, rgba(255,255,255,.07) 38.5% 42%, rgba(255,255,255,0) 42.5%),
    linear-gradient(180deg, rgba(255,255,255,.20) 0, rgba(255,255,255,.06) 14%, rgba(255,255,255,0) 26%),
    radial-gradient(75% 65% at 0% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
    radial-gradient(75% 65% at 100% 100%, color-mix(in srgb, var(--accent-2) 48%, transparent), transparent 70%),
    linear-gradient(rgba(6, 6, 34, .32), rgba(6, 6, 34, .32));
}
body.glass .shot::after {
  padding: 3px;
  background: conic-gradient(from 200deg, #ffffff, #a5f3fc 8%, #60a5fa 18%, #a78bfa 30%, #f0abfc 40%, #fde68a 48%,
    #ffffff 52%, #a5f3fc 60%, #60a5fa 70%, #a78bfa 80%, #f0abfc 88%, #fde68a 94%, #ffffff);
}
