:root {
  --bg: #0c0a09;
  --bg-2: #151110;
  --card: #1a1513;
  --card-2: #221b18;
  --line: #2f2724;
  --text: #f4eee8;
  --muted: #a89d94;
  --accent: #ec6a12;
  --accent-2: #ff8a3d;
  --studio: #8b5cf6;
  --studio-2: #c4b5fd;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #ef4444;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(236, 106, 18, 0.10), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(139, 92, 246, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent-2); }
code { font-size: 0.9em; background: var(--card-2); padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { justify-content: center; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 10, 9, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Logo: Impact like the video titles. Anton (SIL OFL, public/fonts) stands in where Impact isn't installed. */
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-display: swap; }
.brand { color: var(--text); font-family: Impact, "Anton", "Arial Narrow Bold", sans-serif; font-weight: 400; letter-spacing: 0.04em; text-decoration: none; font-size: 1.45rem; line-height: 1; text-transform: uppercase; }
.brand span { color: var(--accent); }
.brand-big { font-size: 2.6rem; margin-bottom: 24px; }
.links { display: flex; gap: 16px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.links a:hover { color: var(--text); }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account form { margin: 0; }
.who { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 16px 56px; flex: 1; }
main.bare { display: grid; place-items: center; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; border-top: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-2); }
.btn-big { padding: 12px 24px; font-size: 1.02rem; }
.btn-small { padding: 6px 12px; font-size: 0.88rem; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--muted); }
.btn-studio { background: var(--studio); }
.btn-studio:hover { background: #a07cf8; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.12); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.badge-members { background: rgba(236, 106, 18, 0.16); color: var(--accent-2); }
.badge-studio, .badge-creator { background: rgba(139, 92, 246, 0.2); color: var(--studio-2); }
.badge-warn { background: rgba(251, 191, 36, 0.14); color: var(--warn); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Panels and notes */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 24px; }
.panel h2 { margin-top: 0; }
.narrow { max-width: 640px; margin: 48px auto; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.note ul { margin: 6px 0 0; padding-left: 20px; }
.note-ok { border-left-color: var(--ok); }
.note-warn { border-left-color: var(--warn); }
.note-studio { border-left-color: var(--studio); }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(236, 106, 18, 0.14), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px;
}
.banner div { flex: 1 1 320px; }

/* Thumbnails */
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #2b1f19, #120e0c 70%); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.thumb.is-locked img { filter: blur(18px) brightness(0.55) saturate(1.2); transform: scale(1.15); }
.chip { position: absolute; z-index: 1; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; background: rgba(0, 0, 0, 0.65); color: #fff; }
.chip-kind { top: 10px; left: 10px; }
.chip-new { top: 10px; right: 10px; background: var(--accent); }
.chip-time { bottom: 10px; right: 10px; font-variant-numeric: tabular-nums; }
.lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(236, 106, 18, 0.9); opacity: 0; transition: opacity 0.2s; }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }

/* Featured release */
.featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; margin-bottom: 32px; }
.featured-media { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.featured-media:hover .play { opacity: 1; }
.eyebrow { margin: 0 0 6px; color: var(--accent-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.featured-desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.featured .row { margin-top: 16px; }

/* Filters and grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.filter { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card:hover .play { opacity: 1; }
.card:hover .thumb img { transform: scale(1.04); }
.card:hover .thumb.is-locked img { transform: scale(1.15); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px 14px; }
.card-title { font-size: 1.02rem; }
.empty { padding: 32px 0; }

/* Video page */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.locked { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.locked .lock { display: none; }
.locked-msg { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: rgba(0, 0, 0, 0.35); }
.locked-msg p { margin: 0; max-width: 520px; font-size: 1.05rem; }
.video-info { margin-top: 20px; }
.video-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 0.9rem; }
.chip-inline { padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--text); font-weight: 700; font-size: 0.8rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.description { white-space: pre-line; color: #ddd3ca; max-width: 780px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.nav-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.nav-card:last-child { text-align: right; }
.nav-card:hover { border-color: var(--accent); }

/* 18+ gate */
.gate { max-width: 560px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; }
.gate p { color: var(--muted); margin-bottom: 24px; }

/* Admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.admin-row a { color: var(--text); text-decoration: none; }
.admin-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2b1f19, #120e0c 70%); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.admin-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 20px; }
.span-2 { grid-column: span 2; }
.form-grid label, .form-grid fieldset { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form-grid fieldset { border: 0; padding: 0; margin: 0; }
.form-grid legend { padding: 0; margin-bottom: 6px; }
label.inline { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
input, textarea, select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%;
}
input[type="radio"], input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="file"] { padding: 7px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.thumb-field { display: flex; flex-direction: column; gap: 10px; }
.current-thumb { display: flex; align-items: center; gap: 12px; }
.current-thumb img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.danger { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

.picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.picker summary { cursor: pointer; font-weight: 700; }
.picker-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 420px; overflow: auto; }
.picker-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.picker-row.selected { border-color: var(--ok); }

/* Debug */
.kv { border-collapse: collapse; margin-bottom: 12px; }
.kv th, .kv td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { color: var(--muted); font-weight: 500; }
.tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tests h3 { margin: 0; }
.tests p { margin: 4px 0 8px; }
textarea[readonly] { font: 13px monospace; }

/* Phones */
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-row { grid-template-columns: 96px 1fr; }
  .admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .account { margin-left: 0; width: 100%; }
  .who-name { display: none; }
  .prev-next { grid-template-columns: 1fr; }
  .admin-form, .panel { padding: 16px; }
}

/* Footer links and legal pages */
.foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { max-width: 760px; }
.legal h2 { margin-top: 28px; }
.legal li { margin: 4px 0; }

/* Admin tabs and logs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 8px 16px; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.logs { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.log { display: grid; grid-template-columns: 130px 52px 1fr; gap: 12px; padding: 6px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.log:last-child { border-bottom: 0; }
.log time { color: var(--muted); white-space: nowrap; }
.log-level { text-transform: uppercase; font-weight: 700; font-size: 11px; padding-top: 2px; color: var(--muted); }
.log-warn .log-level { color: var(--warn); }
.log-error { background: rgba(239, 68, 68, 0.08); }
.log-error .log-level { color: var(--danger); }
.log-msg { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 760px) {
  .log { grid-template-columns: 1fr; gap: 2px; }
}

/* Contact form and messages */
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0 8px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
select { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
.message { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.message.is-new { border-color: var(--ok); }
.message-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.message-head > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.message-body { white-space: pre-wrap; word-break: break-word; margin: 10px 0 12px; }
.message form { margin: 0; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }
.message-subject { font-weight: 700; margin: 10px 0 0; }

/* Preview mode */
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: rgba(251, 191, 36, 0.12); border-bottom: 1px solid rgba(251, 191, 36, 0.4); color: var(--warn); font-size: 0.92rem; }
.preview-bar strong { color: var(--text); }
.preview-bar form { margin: 0; }
.preview-options { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.preview-option { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
.preview-option.active { border-color: var(--accent); }
.preview-option p { margin: 2px 0 0; }

/* ---------- Membership page ---------- */
/* Quiet by default: hairlines, flat surfaces, the card art as the hero. Colour only arrives on hover. */
.membership { max-width: 1080px; margin: 0 auto; }
.membership-head { margin: 12px 0 36px; max-width: 560px; }
.membership-head h1 { font-family: Impact, "Anton", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin-bottom: 12px; }

.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

.tier {
  --tier: #ec6a12;
  display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 90px;
  background: #121010; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.tier-studio { --tier: #9b7bf7; }
.tier:hover { border-color: var(--tier); transform: translateY(-3px); box-shadow: 0 24px 60px -32px var(--tier); }
.tier:target { border-color: var(--tier); }

.tier-art { aspect-ratio: 1400 / 609; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0a09; }
.tier-art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.9); transition: transform 0.6s ease, filter 0.4s; }
.tier:hover .tier-art img { transform: scale(1.03); filter: none; }

.tier-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.tier-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier-code, .tier-flag { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.tier-flag { color: var(--tier); }
.tier-name { font-family: Impact, "Anton", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; font-size: 2.1rem; line-height: 1; margin: 10px 0 14px; }
.tier-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; color: var(--muted); font-size: 0.85rem; }
.tier-price strong { font-size: 2rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.tier-tagline { margin: 0 0 18px; color: #d9cfc6; }
.tier-perks { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.tier-perks li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.tier-funds { margin: 0 0 22px; color: var(--muted); font-size: 0.85rem; }

.tier-cta {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border: 1px solid #4a403b; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tier-cta span { transition: transform 0.2s; }
.tier:hover .tier-cta:not(.is-current) { border-color: var(--tier); }
.tier-cta:not(.is-current):hover { background: var(--tier); border-color: var(--tier); color: #fff; }
.tier-cta:hover span { transform: translateX(4px); }
.tier-cta.is-current { justify-content: center; border-style: dashed; color: var(--muted); font-weight: 600; }

.how { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.how h2 { margin: 0 0 24px; font-family: Impact, "Anton", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.8rem; line-height: 1; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.how-steps li { padding: 4px 28px 4px 0; }
.how-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.how-num { display: block; font-family: Impact, "Anton", sans-serif; font-size: 2.6rem; line-height: 1; color: #3a322e; transition: color 0.25s; }
.how-steps li:hover .how-num { color: var(--accent); }
.how-steps h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.how-steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.how-note { margin: 28px 0 0; color: var(--muted); font-size: 0.85rem; }
.membership-foot { margin-top: 14px; font-size: 0.9rem; }

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
  .tier-studio { order: -1; }
  .tier-body { padding: 18px 20px 22px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li, .how-steps li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .how-steps li:first-child { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tier, .tier-art img { transition: none; }
  .tier:hover { transform: none; }
}

/* ---------- Membership: "choose a side" background ---------- */
/* Hovering a card lights the page from that card's side. Members: a rolling warm bronze gradient from the left.
   Studio: a violet void with drifting stars from the right. Animations only run while hovering. */
.membership { position: relative; }
.membership > :not(.choose-bg) { position: relative; z-index: 1; }
.choose-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.side { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.side-members { background: radial-gradient(55% 85% at 0% 55%, rgba(236, 106, 18, 0.30), rgba(201, 120, 60, 0.10) 45%, transparent 72%); }
.side-studio { background: radial-gradient(60% 90% at 100% 50%, rgba(139, 92, 246, 0.34), rgba(60, 22, 130, 0.16) 45%, transparent 74%); }

.swirl, .stars { position: absolute; }
.swirl {
  width: 95vmax; height: 95vmax; right: -48vmax; top: 50%; margin-top: -47.5vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.32), transparent 35%, rgba(196, 181, 253, 0.18) 55%, transparent 75%, rgba(109, 63, 224, 0.28) 90%, transparent);
  filter: blur(48px);
}
.swirl-warm {
  right: auto; left: -48vmax;
  background: conic-gradient(from 0deg, transparent, rgba(236, 106, 18, 0.30), transparent 30%, rgba(201, 120, 60, 0.22) 50%, transparent 68%, rgba(255, 140, 50, 0.24) 86%, transparent);
}
.stars {
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 68% 78%, #d8ccff, transparent),
    radial-gradient(1.5px 1.5px at 38% 58%, #fff, transparent), radial-gradient(1px 1px at 86% 16%, #fff, transparent),
    radial-gradient(1px 1px at 9% 88%, #cbb8ff, transparent), radial-gradient(1.5px 1.5px at 56% 34%, #efe9ff, transparent);
  background-size: 190px 190px;
  -webkit-mask-image: radial-gradient(55% 85% at 100% 50%, #000, transparent 72%);
  mask-image: radial-gradient(55% 85% at 100% 50%, #000, transparent 72%);
}

.membership:has(.tier-members:hover) .side-members,
.membership:has(.tier-studio:hover) .side-studio { opacity: 1; }
.membership:has(.tier-members:hover) .swirl-warm { animation: side-swirl 22s linear infinite reverse; }
.membership:has(.tier-studio:hover) .side-studio .swirl { animation: side-swirl 20s linear infinite; }
.membership:has(.tier-studio:hover) .stars { animation: side-twinkle 2.8s ease-in-out infinite alternate, side-drift 40s linear infinite; }
@keyframes side-swirl { to { transform: rotate(360deg); } }
@keyframes side-twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
@keyframes side-drift { to { background-position: -190px 95px; } }

/* Choosing a side: the other card steps back a little. */
.tier { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.4s, filter 0.4s; }
.tiers:has(.tier:hover) .tier:not(:hover) { opacity: 0.55; filter: saturate(0.6); }

/* The whole card is clickable: the join button's link covers the card. */
.tier { position: relative; }
.tier:has(a.tier-cta) { cursor: pointer; }
a.tier-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; }
.tier:hover a.tier-cta { border-color: var(--tier); }
.tier:hover a.tier-cta span { transform: translateX(4px); }
.tier:active a.tier-cta { background: var(--tier); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .swirl, .stars { animation: none !important; }
}
