/* ============================================================ Cosmos design
   Chosen in the profile (html.cosmos). Works with both themes:
   light = a dawn sky (lavender, peach, cyan), dark = deep space (indigo, violet, teal).
   Glass cards over a star sky (js/space.js) and blocks that fly in. The classic design is untouched. */

html.cosmos, html.cosmos[data-theme] {
  --cz-violet: #7C5CFF;
  --cz-cyan: #22D3EE;
  --cz-pink: #F472B6;
  --cz-gold: #F4B731;
  --grad-orange: linear-gradient(135deg, var(--cz-violet), var(--cz-cyan));
  --orange: #7C5CFF;
  --orange-d: #5B3FE0;
  --orange-strong: #6A4BF5;
  --accent-rgb: 124, 92, 255;
  --cz-glass-blur: 16px;
}
html.cosmos[data-theme="light"] {
  --bg: #F4F5FF;
  --card: rgba(255, 255, 255, .7);
  --line: rgba(91, 80, 190, .14);
  --text: #12163A;
  --muted: #5C6388;
  --none-bg: rgba(124, 92, 255, .08);
  --navy: #12163A;
  --navy-rgb: 18, 22, 58;
  --shadow: 0 1px 2px rgba(18, 22, 58, .05), 0 16px 40px -18px rgba(76, 60, 180, .28);
  --shadow-hover: 0 2px 4px rgba(18, 22, 58, .06), 0 24px 50px -18px rgba(76, 60, 180, .38);
}
html.cosmos[data-theme="dark"] {
  --bg: #050816;
  --card: rgba(20, 24, 58, .52);
  --line: rgba(160, 170, 255, .14);
  --text: #E9ECFF;
  --muted: #9CA5CF;
  --none-bg: rgba(255, 255, 255, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 44px -16px rgba(0, 0, 0, .7);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .45), 0 26px 56px -16px rgba(0, 0, 0, .8);
}

/* ---- the sky */
html.cosmos body { background: var(--bg); color: var(--text); }
html.cosmos[data-theme="light"] body {
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(244, 114, 182, .16), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(124, 92, 255, .18), transparent 60%),
    linear-gradient(180deg, #F7F6FF, #EEF1FF);
  background-attachment: fixed;
}
html.cosmos[data-theme="dark"] body {
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(800px 600px at 95% 30%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(244, 114, 182, .14), transparent 60%),
    #050816;
  background-attachment: fixed;
}
.space-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
html:not(.cosmos) .space-sky { display: none; }
html.cosmos .bg-float { display: none; }

/* ---- side bar, top bar, bottom bar: a dark glass panel in both themes */
html.cosmos .sidebar {
  background: linear-gradient(180deg, rgba(14, 12, 44, .86), rgba(24, 18, 70, .82));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-right: 1px solid rgba(160, 170, 255, .14);
  box-shadow: 8px 0 40px -14px rgba(76, 60, 180, .45);
}
html.cosmos .sidebar nav a:hover { background: rgba(160, 170, 255, .12); }
html.cosmos .sidebar nav a.on { background: var(--grad-orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .9); }
html.cosmos .topbar { background: linear-gradient(90deg, rgba(14, 12, 44, .9), rgba(30, 22, 84, .88)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html.cosmos[data-theme="light"] .tabbar { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
html.cosmos[data-theme="dark"] .tabbar { background: rgba(10, 12, 34, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
html.cosmos .tabbar a.on { color: var(--cz-violet); }
html.cosmos[data-theme="dark"] .tabbar a.on { color: #A99BFF; }

/* ---- glass blocks */
html.cosmos .card,
html.cosmos .tile,
html.cosmos .modal,
html.cosmos .list-row,
html.cosmos .poll,
html.cosmos .hero-path {
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(var(--cz-glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--cz-glass-blur)) saturate(140%);
  box-shadow: var(--shadow);
}
html.cosmos[data-theme="dark"] .card,
html.cosmos[data-theme="dark"] .tile,
html.cosmos[data-theme="dark"] .modal { box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
html.cosmos .card, html.cosmos .tile { border-radius: 22px; }
html.cosmos a.card:hover, html.cosmos a.tile:hover { box-shadow: var(--shadow-hover), 0 0 0 1px rgba(124, 92, 255, .25); }

/* ---- headers of sections, talks and the home greeting: a little nebula */
html.cosmos .section-head,
html.cosmos .talk-head {
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--sec, var(--cz-violet)) 30%, transparent), transparent 70%),
    var(--card);
  border: 1px solid color-mix(in srgb, var(--sec, var(--cz-violet)) 26%, transparent);
  -webkit-backdrop-filter: blur(var(--cz-glass-blur)); backdrop-filter: blur(var(--cz-glass-blur));
}
html.cosmos .t-hello,
html.cosmos .pf-hero {
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(244, 114, 182, .35), transparent 70%),
    radial-gradient(380px 240px at 0% 100%, rgba(34, 211, 238, .3), transparent 70%),
    linear-gradient(135deg, #1B1450, #2A1C78 55%, #13306B);
  border: 1px solid rgba(160, 170, 255, .2);
}
html.cosmos .ring::before { background: #1E165C; }
html.cosmos .t-map { background: linear-gradient(180deg, #0B0A2E, #1B1450 60%, #241A6E); }

/* ---- buttons, inputs, chips */
html.cosmos .btn-primary { background: var(--grad-orange); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .85); }
html.cosmos .btn-primary:hover { background: var(--grad-orange); filter: brightness(1.06); }
html.cosmos[data-theme="light"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-glass):not(.btn-gold) { background: rgba(255, 255, 255, .7); border-color: var(--line); }
html.cosmos[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-glass):not(.btn-gold) { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
html.cosmos input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), html.cosmos select, html.cosmos textarea {
  background: color-mix(in srgb, var(--card) 80%, transparent); border-color: var(--line); color: var(--text);
}
html.cosmos input:focus, html.cosmos select:focus, html.cosmos textarea:focus { border-color: var(--cz-violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
html.cosmos .tab.on, html.cosmos .seg-btn.on { background: var(--grad-orange); color: #fff; }
html.cosmos[data-theme="dark"] .tab:not(.on), html.cosmos[data-theme="dark"] .seg-btn:not(.on), html.cosmos[data-theme="dark"] .check-pill { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line); }
html.cosmos .eyebrow { color: var(--cz-violet); }
html.cosmos[data-theme="dark"] .eyebrow { color: #B3A6FF; }
html.cosmos .t-hello .eyebrow, html.cosmos .pf-hero .eyebrow { color: #F7D768; }
html.cosmos[data-theme="dark"] .msg { background: rgba(255, 255, 255, .07); }
html.cosmos[data-theme="dark"] .msg.mine { background: rgba(124, 92, 255, .22); }
html.cosmos[data-theme="light"] .msg.mine { background: rgba(124, 92, 255, .12); }
html.cosmos .page-title { background: linear-gradient(90deg, var(--text), color-mix(in srgb, var(--cz-violet) 70%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.cosmos .page-title svg { color: var(--cz-violet); }

/* ---- everything flies in */
@keyframes cz-fly {
  from { opacity: 0; transform: translateY(46px) scale(.94); filter: blur(8px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes cz-drop { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes cz-side { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
html.cosmos .view > * { animation: cz-fly .75s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .view > *:nth-child(2) { animation-delay: .07s; }
html.cosmos .view > *:nth-child(3) { animation-delay: .14s; }
html.cosmos .view > *:nth-child(4) { animation-delay: .21s; }
html.cosmos .view > *:nth-child(5) { animation-delay: .28s; }
html.cosmos .view > *:nth-child(n+6) { animation-delay: .34s; }
html.cosmos .bento > * { animation: cz-fly .8s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .bento > *:nth-child(2) { animation-delay: .08s; }
html.cosmos .bento > *:nth-child(3) { animation-delay: .16s; }
html.cosmos .bento > *:nth-child(4) { animation-delay: .24s; }
html.cosmos .bento > *:nth-child(n+5) { animation-delay: .32s; }
html.cosmos .qb-grid > *, html.cosmos .list > * { animation: cz-fly .6s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .qb-grid > *:nth-child(2), html.cosmos .list > *:nth-child(2) { animation-delay: .06s; }
html.cosmos .qb-grid > *:nth-child(3), html.cosmos .list > *:nth-child(3) { animation-delay: .12s; }
html.cosmos .qb-grid > *:nth-child(n+4), html.cosmos .list > *:nth-child(n+4) { animation-delay: .18s; }
html.cosmos .sidebar nav a { animation: cz-side .55s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .sidebar nav a:nth-child(2n) { animation-delay: .05s; }
html.cosmos .sidebar nav a:nth-child(3n) { animation-delay: .1s; }
html.cosmos .stories { animation: cz-drop .6s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .modal { animation: cz-fly .45s cubic-bezier(.2, .8, .2, 1) both; }
html.cosmos .fly-wait { opacity: 0; transform: translateY(46px) scale(.96); }
html.cosmos .fly-in { animation: cz-fly .7s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  html.cosmos .view > *, html.cosmos .bento > *, html.cosmos .qb-grid > *, html.cosmos .list > *,
  html.cosmos .sidebar nav a, html.cosmos .stories, html.cosmos .modal, html.cosmos .fly-in { animation: none; }
  html.cosmos .fly-wait { opacity: 1; transform: none; }
}

/* ---- phones: lighter glass (blur is costly on weak phones) */
@media (max-width: 860px) {
  html.cosmos { --cz-glass-blur: 10px; }
}

/* ---- profile: the design picker */
.design-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.design-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.design-opt.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.design-opt small { color: var(--muted); font-size: 12px; }
.design-prev { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.design-prev i { position: absolute; border-radius: 6px; }
.dp-classic { background: #F7F6F2; }
.dp-classic i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 18%; background: #063A52; border-radius: 0; }
.dp-classic i:nth-child(2) { left: 24%; top: 14%; right: 8%; height: 32%; background: linear-gradient(135deg, #063A52, #0A5878); }
.dp-classic i:nth-child(3) { left: 24%; top: 54%; right: 40%; bottom: 12%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.dp-cosmos { background: radial-gradient(circle at 20% 20%, #3B2A9A, transparent 60%), radial-gradient(circle at 90% 80%, #0E5A6B, transparent 55%), #070A22; }
.dp-cosmos::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 30% 20%, #fff, transparent), radial-gradient(1px 1px at 70% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 15%, #fff, transparent), radial-gradient(1px 1px at 50% 75%, #fff, transparent), radial-gradient(1px 1px at 15% 60%, #fff, transparent); }
.dp-cosmos i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 18%; background: rgba(30, 22, 90, .9); border-radius: 0; }
.dp-cosmos i:nth-child(2) { left: 24%; top: 14%; right: 8%; height: 32%; background: linear-gradient(135deg, #2A1C78, #13306B); border: 1px solid rgba(160, 170, 255, .3); }
.dp-cosmos i:nth-child(3) { left: 24%; top: 54%; right: 40%; bottom: 12%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(160, 170, 255, .3); }

/* ---- page headers: a nebula band */
html.cosmos .ph {
  background:
    radial-gradient(460px 220px at 100% 0%, rgba(244, 114, 182, .38), transparent 70%),
    radial-gradient(420px 240px at 0% 100%, rgba(34, 211, 238, .28), transparent 70%),
    linear-gradient(120deg, #1B1450, #2A1C78 55%, #13306B);
  border: 1px solid rgba(160, 170, 255, .22);
  box-shadow: 0 18px 44px -20px rgba(76, 60, 180, .7);
}
html.cosmos .ph::before, html.cosmos .ph::after { opacity: .5; }
html.cosmos .ph-extra .link { color: #B3A6FF; }

/* ---- hero path road: the night sky turns cosmic */
html.cosmos #hr-sky stop:first-child { stop-color: #0B0A2E; }
html.cosmos #hr-sky stop:last-child { stop-color: #2A1C78; }
html.cosmos .hroad path[fill="#0C3E56"] { fill: #1B1450; }
html.cosmos .hroad path[fill="#0F5470"] { fill: #241A6E; }
html.cosmos .hr-tree path { fill: #15104A; }
html.cosmos .hr-tree rect { fill: #0E0A33; }
html.cosmos .hr-edge { stroke: #4B3BB0; }
html.cosmos .hr-asphalt { stroke: #120E3C; }
html.cosmos .hr-dot { fill: #1E165C; stroke: #5A4BD0; }


/* ============================================================ Cosmos layout: a floating top dock */
.cz-dock { display: none; }
html.cosmos .sidebar { display: none; }
html.cosmos .view { margin: 0 auto; max-width: 1200px; padding: 104px 24px 80px; }
html.cosmos .cz-dock {
  display: flex; align-items: center; gap: 6px;
  position: fixed; z-index: 30; top: 14px; left: 0; right: 0; margin: 0 auto;
  width: max-content; max-width: calc(100% - 24px); padding: 7px;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
  animation: cz-drop .7s cubic-bezier(.2, .8, .2, 1) both;
}
html.cosmos .cz-logo img { width: 40px; height: 40px; border-radius: 50%; display: block; filter: drop-shadow(0 4px 12px rgba(124, 92, 255, .5)); }
html.cosmos .cz-nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
html.cosmos .cz-nav > a, html.cosmos .cz-more > button {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px;
  font: 700 14px var(--body); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
}
html.cosmos .cz-nav > a:hover, html.cosmos .cz-more > button:hover { color: var(--text); background: var(--none-bg); }
html.cosmos .cz-nav > a.on, html.cosmos .cz-more > button.on { color: #fff; background: var(--grad-orange); box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9); }
html.cosmos .cz-nav .nbadge { position: absolute; top: 4px; right: 6px; }
html.cosmos .cz-more { position: relative; }
html.cosmos .cz-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 250px;
  display: grid; gap: 2px; padding: 8px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow-hover);
  animation: cz-fly .35s cubic-bezier(.2, .8, .2, 1) both;
}
html.cosmos .cz-menu[hidden] { display: none; }
html.cosmos[data-theme="light"] .cz-menu { background: rgba(255, 255, 255, .94); }
html.cosmos[data-theme="dark"] .cz-menu { background: rgba(16, 18, 48, .94); }
html.cosmos .cz-menu > a { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; }
html.cosmos .cz-menu > a:hover { background: var(--none-bg); }
html.cosmos .cz-menu > a.on { background: rgba(124, 92, 255, .16); color: var(--cz-violet); }
html.cosmos[data-theme="dark"] .cz-menu > a.on { color: #B8ADFF; }
html.cosmos .cz-menu .side-contact { margin-top: 6px; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
html.cosmos .cz-menu .side-contact a { color: var(--muted); }
html.cosmos .cz-tools { display: flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
html.cosmos .cz-tools .lang-switch { background: var(--none-bg); }
html.cosmos .cz-tools .lang-switch button { color: var(--muted); }
html.cosmos .cz-tools .lang-switch button.on { background: var(--grad-orange); color: #fff; }
html.cosmos .cz-tools .theme-btn { width: 40px; height: 40px; border-radius: 50%; color: var(--text); background: var(--none-bg); border: 1px solid var(--line); }
html.cosmos .cz-me { width: 40px; height: 40px; border-radius: 50%; padding: 3px; background: var(--grad-orange); display: block; text-decoration: none; }
html.cosmos .cz-me span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--head); color: #fff; background: linear-gradient(135deg, #2A1C78, #13306B); }

@media (max-width: 1080px) {
  html.cosmos .cz-nav > a span, html.cosmos .cz-more > button span:not(.nbadge) { display: none; }
  html.cosmos .cz-tools .lang-switch { display: none; }
}
@media (max-width: 860px) {
  html.cosmos .cz-dock { display: none; }
  html.cosmos .view { padding: 18px 16px 110px; }
  html.cosmos .topbar { background: transparent; color: var(--text); position: static; }
  html.cosmos .topbar .brand span { color: var(--text); }
  html.cosmos .tabbar {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 26px;
    border: 1px solid var(--line); box-shadow: var(--shadow-hover);
  }
  html.cosmos .tabbar a.on .tb-ic, html.cosmos .tabbar .tb-more.on .tb-ic { background: var(--grad-orange); color: #fff; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .9); }
  html.cosmos .tabbar .tb-ic { padding: 6px 14px; display: inline-flex; position: relative; }
  html.cosmos .tabbar a.on, html.cosmos .tabbar .tb-more.on { color: var(--text); }
  html.cosmos .sheet { background: var(--card); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--line); }
  html.cosmos[data-theme="light"] .sheet { background: rgba(255, 255, 255, .95); }
  html.cosmos[data-theme="dark"] .sheet { background: rgba(16, 18, 48, .96); }
}


/* ============================================================ Cosmos home */
.cz-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.cz-hello {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 300px; padding: 30px; border-radius: 32px; color: #fff;
  background: radial-gradient(520px 260px at 100% 0%, rgba(244, 114, 182, .45), transparent 70%), radial-gradient(460px 280px at 0% 100%, rgba(34, 211, 238, .35), transparent 70%), linear-gradient(130deg, #1B1450, #2D1E80 55%, #12306B);
  border: 1px solid rgba(165, 175, 255, .2); box-shadow: 0 30px 70px -30px rgba(76, 60, 180, .9);
  animation: slideL .9s cubic-bezier(.16, .9, .2, 1) both;
}
.cz-hello .eyebrow { color: #FFD66B !important; }
.cz-hello h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; margin: 6px 0 0; color: #fff; }
.cz-hello p { margin: 10px 0 0; opacity: .88; max-width: 440px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cz-hello p b { color: #FFD66B; }
.cz-ring { position: absolute; right: 28px; top: 26px; width: 128px; height: 128px; animation: cz-float 6s ease-in-out infinite; color: #fff; text-decoration: none; }
.cz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cz-ring .bg { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 10; }
.cz-ring .fg { fill: none; stroke: #FFD66B; stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 214, 107, .8)); }
.cz-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cz-ring b { font: 900 28px var(--head); }
.cz-ring small { font-size: 10.5px; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.cz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cz-stats a { padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: background .15s; }
.cz-stats a:hover { background: rgba(255, 255, 255, .16); }
.cz-stats b { font: 800 24px var(--head); display: block; }
.cz-stats span { font-size: 12px; opacity: .78; }
.cz-mission { display: flex; flex-direction: column; gap: 12px; padding: 24px !important; animation: slideR .9s cubic-bezier(.16, .9, .2, 1) .1s both !important; }
.cz-mission-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cz-mission h2 { font-size: 21px; margin: 4px 0 0; }
.cz-timer { display: flex; gap: 6px; }
.cz-timer div { text-align: center; min-width: 48px; padding: 6px 8px; border-radius: 14px; background: var(--none-bg); border: 1px solid var(--line); }
.cz-timer b { font: 800 20px var(--head); display: block; line-height: 1.1; }
.cz-timer small { font-size: 10px; color: var(--muted); }
.cz-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--none-bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s; }
.cz-check:hover { transform: translateX(4px); }
.cz-check small { display: block; color: var(--muted); font-size: 12px; }
.cz-t { font-weight: 600; display: block; line-height: 1.3; }
.cz-box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid color-mix(in srgb, var(--sec, var(--cz-violet)) 60%, transparent); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.cz-check.done .cz-box { background: var(--grad-orange); border: 0; }
.cz-check.done .cz-t { text-decoration: line-through; opacity: .6; }
.cz-pts { font: 800 13px var(--head); color: var(--cz-gold); white-space: nowrap; }
.cz-go { align-self: flex-start; }
.cz-strip { margin-top: 18px; }
.cz-row-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 38px 0 16px; }
.cz-row-title h2 { font-size: 26px; margin: 2px 0 0; }
.cz-posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cz-poster {
  --sec: var(--cz-violet); position: relative; overflow: hidden; min-height: 260px; padding: 20px; border-radius: 28px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(240px 200px at 85% 10%, color-mix(in srgb, var(--sec) 70%, transparent), transparent 70%), linear-gradient(170deg, color-mix(in srgb, var(--sec) 55%, #0B0A2E), #0B0A2E 78%);
  border: 1px solid color-mix(in srgb, var(--sec) 35%, transparent);
  box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--sec) 90%, transparent);
  transition: transform .25s;
  animation: cz-fly .9s cubic-bezier(.16, .9, .2, 1) both;
}
.cz-poster:nth-child(2) { animation-delay: .08s; } .cz-poster:nth-child(3) { animation-delay: .16s; } .cz-poster:nth-child(4) { animation-delay: .24s; }
.cz-poster:hover { transform: translateY(-8px) rotate(-.6deg); }
.cz-poster-ic { position: absolute; top: 18px; right: 18px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cz-poster-tag { position: absolute; top: 20px; left: 18px; background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .22); }
.cz-poster-name { font: 800 21px var(--head); line-height: 1.15; }
.cz-poster-title { font-size: 13.5px; opacity: .85; line-height: 1.35; margin-bottom: 6px; }
.cz-bar { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cz-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFD66B, #fff); }
.cz-poster-meta { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; }
.cz-journey { display: block; margin-top: 20px; padding: 26px 26px 14px !important; color: var(--text); text-decoration: none; }
.cz-journey h2 { font-size: 22px; margin: 4px 0 0; }
.cz-flight { position: relative; height: 170px; margin-top: 6px; }
.cz-flight svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cz-flight path { fill: none; stroke: url(#hub-arc-g); stroke: var(--cz-violet); stroke-width: .6; stroke-dasharray: 1 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3; animation: cz-dash 1.4s linear infinite; }
.cz-stop { position: absolute; transform: translate(-50%, -50%); text-align: center; display: grid; justify-items: center; gap: 2px; }
.cz-orb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 30%, white), var(--c) 50%, color-mix(in srgb, var(--c) 45%, #070418)); box-shadow: 0 0 26px -4px var(--c); }
.cz-stop.lock .cz-orb { filter: grayscale(.85) brightness(.75); box-shadow: none; }
.cz-stop.now .cz-orb { box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 0 30px var(--c); }
.cz-stop b { font: 800 13px var(--head); }
.cz-stop small { color: var(--muted); font-size: 11.5px; }
.cz-rocket { position: absolute; font-size: 30px; transform: translate(-50%, -115%) rotate(35deg); animation: cz-float 3s ease-in-out infinite; pointer-events: none; }
.cz-duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; }
.cz-panel { padding: 24px !important; }
.cz-panel h2 { font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.cz-tl { position: relative; padding-left: 26px; display: grid; gap: 4px; }
.cz-tl::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cz-violet), var(--cz-cyan)); border-radius: 2px; }
.cz-ev { position: relative; display: block; padding: 6px 0 12px; color: var(--text); text-decoration: none; }
.cz-ev::before { content: ""; position: absolute; left: -24px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cz-violet); }
.cz-ev.now::before { background: var(--cz-violet); animation: cz-pulse 1.8s infinite; }
.cz-ev b { display: block; }
.cz-ev small { color: var(--muted); }
.cz-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cz-lead { display: grid; gap: 8px; }
.cz-lead a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--none-bg); color: var(--text); text-decoration: none; }
.cz-lead .n { font: 900 16px var(--head); width: 26px; text-align: center; color: var(--muted); }
.cz-lead a:nth-child(1) .n { color: var(--cz-gold); } .cz-lead a:nth-child(2) .n { color: #C8D1E6; } .cz-lead a:nth-child(3) .n { color: #E2955B; }
.cz-lead .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-orange); }
.cz-lead .p { margin-left: auto; font: 800 14px var(--head); }
.cz-lead .me { border: 1px solid var(--cz-violet); background: rgba(124, 92, 255, .12); }
@keyframes cz-float { 50% { transform: translateY(-10px); } }
@keyframes cz-dash { to { stroke-dashoffset: -40; } }
@keyframes cz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .5); } 50% { box-shadow: 0 0 0 10px rgba(124, 92, 255, 0); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .cz-hero, .cz-duo { grid-template-columns: 1fr; }
  .cz-stats { grid-template-columns: 1fr 1fr; }
  .cz-ring { width: 92px; height: 92px; right: 18px; top: 18px; }
  .cz-ring b { font-size: 21px; }
}
@media (max-width: 560px) {
  .cz-posters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cz-poster { min-height: 210px; padding: 14px; border-radius: 22px; }
  .cz-poster-ic { width: 44px; height: 44px; top: 12px; right: 12px; }
  .cz-poster-tag { top: 14px; left: 12px; font-size: 11px; }
  .cz-poster-name { font-size: 17px; }
  .cz-flight { height: 150px; }
  .cz-stop b { font-size: 11px; } .cz-orb { width: 42px; height: 42px; }
  .cz-hello { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cz-hello, .cz-mission, .cz-poster, .cz-ring, .cz-rocket, .cz-flight path, .cz-ev.now::before { animation: none !important; } }


/* ============================================================ Cosmos: direction page */
html.cosmos .section-head {
  position: relative; overflow: hidden; min-height: 230px; padding: 36px; border-radius: 34px; align-items: flex-end; color: #fff;
  background: radial-gradient(520px 340px at 92% 20%, color-mix(in srgb, var(--sec) 65%, transparent), transparent 65%), linear-gradient(130deg, color-mix(in srgb, var(--sec) 35%, #0B0A2E), #0B0A2E 70%);
  border: 1px solid color-mix(in srgb, var(--sec) 40%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--sec) 90%, transparent);
}
html.cosmos .section-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sec) 40%, white), var(--sec) 45%, transparent 72%); opacity: .55; filter: blur(2px); animation: cz-float 9s ease-in-out infinite; }
html.cosmos .section-head h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; color: #fff; position: relative; z-index: 1; }
html.cosmos .section-head p { color: rgba(255, 255, 255, .85); max-width: 560px; position: relative; z-index: 1; }
html.cosmos .section-head .section-icon { position: relative; z-index: 1; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.cz-ribbon { display: flex; gap: 12px; overflow-x: auto; padding: 18px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cz-ribbon::-webkit-scrollbar { display: none; }
.cz-wk { position: relative; flex: 0 0 160px; scroll-snap-align: start; padding: 14px; border-radius: 22px; color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .2s; animation: cz-fly .6s cubic-bezier(.16, .9, .2, 1) both; }
a.cz-wk:hover { transform: translateY(-4px); }
.cz-wk small { display: block; color: var(--muted); font-size: 11.5px; }
.cz-wk b { display: block; margin-top: 4px; font: 700 14px var(--head); line-height: 1.25; }
.cz-wk.now { background: var(--grad-orange); color: #fff; border-color: transparent; box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .9); }
.cz-wk.now small { color: rgba(255, 255, 255, .85); }
.cz-wk.lock { opacity: .5; }
.cz-wk.lock svg { position: absolute; top: 12px; right: 12px; color: var(--muted); }

/* ============================================================ Cosmos: tasks board */
.cz-h1 { font-size: clamp(28px, 3.6vw, 38px); margin: 2px 0 0; }
.cz-board-tools { display: flex; align-items: center; gap: 10px; }
.cz-mini-ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cz-violet) calc(var(--p) * 1%), var(--none-bg) 0); position: relative; }
.cz-mini-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.cz-mini-ring b { position: relative; font: 800 13px var(--head); }
.cz-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 8px; }
.cz-col { padding: 16px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); animation: cz-fly .8s cubic-bezier(.16, .9, .2, 1) both; }
.cz-col:nth-child(2) { animation-delay: .1s; } .cz-col:nth-child(3) { animation-delay: .2s; }
.cz-col h3 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 2px; font-size: 16px; }
.cz-col > p.small { margin: 0 4px 12px; }
.cz-cnt { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--none-bg); }
.cz-col-todo h3 svg { color: var(--cz-violet); } .cz-col-review h3 svg { color: var(--cz-gold); } .cz-col-done h3 svg { color: #4ADE80; }
.cz-col-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 10px; color: var(--muted); text-align: center; margin: 0; }
.cz-tcard { --sec: var(--cz-violet); position: relative; display: grid; gap: 6px; padding: 14px 14px 12px 20px; margin-bottom: 10px; border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; background: var(--none-bg); border: 1px solid var(--line); transition: transform .15s; }
.cz-tcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sec); box-shadow: 0 0 14px var(--sec); }
.cz-tcard:hover { transform: translateY(-3px); }
.cz-tc-top, .cz-tc-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.cz-tc-top > span:first-child { display: inline-flex; gap: 4px; align-items: center; }
.cz-tc-top .hot { color: #FF7A7A; font-weight: 700; }
.cz-tcard b { font: 700 14.5px var(--head); line-height: 1.3; }
.cz-types { display: inline-flex; gap: 6px; }
.cz-xp { font: 900 14px var(--head); color: var(--cz-gold); }
@media (max-width: 860px) {
  .cz-board { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .cz-board::-webkit-scrollbar { display: none; }
  .cz-col { flex: 0 0 86%; scroll-snap-align: center; }
}

/* ============================================================ Cosmos: profile ranks */
.cz-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.cz-rank { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 14px; border-radius: 22px; background: var(--none-bg); border: 1px solid var(--line); animation: cz-fly .7s cubic-bezier(.16, .9, .2, 1) calc(var(--i) * .08s) both; }
.cz-rank-star { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; color: var(--muted); border: 1px dashed var(--line); }
.cz-rank.got .cz-rank-star { color: #fff; border: 0; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 30%, white), var(--c) 55%, color-mix(in srgb, var(--c) 50%, #070418)); box-shadow: 0 0 30px -4px var(--c); }
.cz-rank b { font: 800 16px var(--head); }
.cz-rank small { color: var(--cz-gold); font-weight: 700; font-size: 12px; }
.cz-rank > span:last-child { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.cz-rank:not(.got) { opacity: .75; }

/* ============================================================ Cosmos: the start page (always a night sky) */
html.cosmos body:has(.l2) {
  background: radial-gradient(1000px 700px at 10% -10%, rgba(124, 92, 255, .3), transparent 60%), radial-gradient(900px 700px at 110% 20%, rgba(34, 211, 238, .14), transparent 60%), radial-gradient(900px 800px at 50% 120%, rgba(244, 114, 182, .18), transparent 60%), #04061A;
  background-attachment: fixed;
}
html.cosmos .l2 { background: transparent; color: #E9ECFF; position: relative; z-index: 1; }
html.cosmos .l2 .l2-sky { display: none; }
html.cosmos .l2 .land-foot { background: rgba(4, 6, 26, .6); }
html.cosmos .l2-top { background: rgba(10, 10, 40, .6); border-bottom-color: rgba(165, 175, 255, .12); }
html.cosmos .l2-hero { background: radial-gradient(700px 400px at 85% 20%, rgba(244, 183, 49, .16), transparent 70%), radial-gradient(800px 500px at 0% 100%, rgba(124, 92, 255, .3), transparent 70%); }
html.cosmos .l2-status { color: #B8ADFF; }
html.cosmos .l2-phone { background: #120D3A; box-shadow: 0 0 0 2px #3B2F90, 0 40px 90px -20px rgba(0, 0, 0, .7), 0 0 120px -20px rgba(124, 92, 255, .6); }
html.cosmos .l2-notch { background: #120D3A; }
html.cosmos .l2-screen { background: #F4F3FF; }
html.cosmos .l2-ph-hello { background: linear-gradient(135deg, #2A1C78, #13306B); }
html.cosmos .l2-ph-ring::before { background: #241A6E; }
html.cosmos .l2-ph-map { background: #1B1450; }
html.cosmos .l2-ph-quiz, html.cosmos .l2-tile.st-quiz { background: linear-gradient(135deg, #7C5CFF, #22D3EE); }
html.cosmos .l2-ph-rank { color: #5B3FE0; border-color: #DDD6FF; }
html.cosmos .l2-float .ic { color: #7C5CFF; }
html.cosmos .l2-nums { background: rgba(255, 255, 255, .03); border-color: rgba(165, 175, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.cosmos .l2-num { background: rgba(255, 255, 255, .05); border-color: rgba(165, 175, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.cosmos .l2-journey { background: radial-gradient(900px 500px at 100% 30%, rgba(124, 92, 255, .18), transparent 70%), radial-gradient(700px 400px at 0% 80%, rgba(34, 211, 238, .1), transparent 70%); }
html.cosmos .l2-road-base { stroke: #1E165C; }
html.cosmos .l2-node::before { background: #1E165C; border-color: #5A4BD0; }
html.cosmos .l2-dir { background: linear-gradient(160deg, color-mix(in srgb, var(--sec) 35%, #0B0A2E) 0%, rgba(11, 10, 46, .85) 75%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.cosmos .l2-tile { background: rgba(255, 255, 255, .05); border-color: rgba(165, 175, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.cosmos .l2-tile-ic { background: rgba(124, 92, 255, .22); color: #C7BDFF; }
html.cosmos .l2-show-stories .l2-sdot { box-shadow: 0 0 0 3px #04061A, 0 0 0 5px #F2C230; }
html.cosmos .l2-finish .l2-st-body { background: radial-gradient(500px 240px at 100% 0%, rgba(244, 114, 182, .3), transparent 70%), linear-gradient(135deg, #2A1C78, #13306B); }
html.cosmos .l2-why > div { background: rgba(255, 255, 255, .05); border-color: rgba(165, 175, 255, .12); color: #C9CEEE; }
html.cosmos .l2 .eyebrow { color: #B8ADFF; }


/* ============================================================ Cosmos start page (a new layout) */
.czl { position: relative; z-index: 1; color: var(--text); overflow-x: clip; }
.czl-top {
  position: fixed; z-index: 40; top: 14px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--shadow);
  animation: cz-drop .8s cubic-bezier(.2, .8, .2, 1) both;
}
.czl-brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 800 15px var(--head); }
.czl-brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px rgba(124, 92, 255, .5)); }
.czl-links { display: flex; gap: 2px; }
.czl-links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.czl-links a:hover { color: var(--text); background: var(--none-bg); }
.czl-tools { display: flex; align-items: center; gap: 8px; }
.czl-tools .lang-switch { background: var(--none-bg); }
.czl-tools .lang-switch button { color: var(--muted); }
.czl-tools .lang-switch button.on { background: var(--grad-orange); color: #fff; }
.czl-login { padding: 10px 18px; }

.czl-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 60px; }
.czl-orbit { position: relative; width: 300px; height: 300px; margin-bottom: 18px; animation: cz-zoom 1.1s cubic-bezier(.16, .9, .2, 1) both; }
.czl-emblem { position: absolute; inset: 70px; width: 160px; height: 160px; filter: drop-shadow(0 0 40px rgba(124, 92, 255, .6)) drop-shadow(0 0 20px rgba(244, 183, 49, .4)); animation: cz-float 7s ease-in-out infinite; }
.czl-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(124, 92, 255, .35); }
.czl-ring.r1 { inset: 40px; animation: czl-spin 40s linear infinite; }
.czl-ring.r2 { inset: 10px; border-color: rgba(34, 211, 238, .3); animation: czl-spin 60s linear infinite reverse; }
.czl-ring.r3 { inset: -24px; border-style: solid; border-color: rgba(244, 183, 49, .16); }
.czl-moon { position: absolute; inset: 0; animation: czl-spin 18s linear infinite; }
.czl-moon i { position: absolute; left: 50%; top: -6px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 30%, white), var(--c) 55%, color-mix(in srgb, var(--c) 50%, #070418)); box-shadow: 0 0 22px var(--c);
  animation: czl-spin 18s linear infinite reverse; }
.czl-moon.m1 { animation-delay: -4.5s; } .czl-moon.m1 i { animation-delay: -4.5s; }
.czl-moon.m2 { animation-delay: -9s; } .czl-moon.m2 i { animation-delay: -9s; }
.czl-moon.m3 { animation-delay: -13.5s; } .czl-moon.m3 i { animation-delay: -13.5s; }
.czl-title { font-size: clamp(42px, 8vw, 96px); line-height: .98; margin: 10px 0 0; max-width: 980px; background: linear-gradient(100deg, var(--text) 10%, #7C5CFF 45%, #22D3EE 70%, #F472B6); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.035em; }
.czl-lead { max-width: 620px; margin: 18px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); }
.czl-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.czl-ghost { background: var(--none-bg) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.czl-ghost.light { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
.czl-status { margin-top: 14px; color: var(--cz-violet); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
html.cosmos[data-theme="dark"] .czl-status { color: #B8ADFF; }
.czl-nums { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.czl-num { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.czl-num svg { color: var(--cz-violet); }
.czl-num b { font: 800 18px var(--head); }
.czl-num small { color: var(--muted); font-size: 13px; }
.czl-scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid var(--line); }
.czl-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cz-violet); animation: czl-wheel 1.8s ease-in-out infinite; }
.czl-in { animation: czl-rise 1s cubic-bezier(.16, .9, .2, 1) var(--d, 0s) both; }

.czl-ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.czl-ticker > div { display: flex; align-items: center; gap: 28px; width: max-content; animation: czl-marquee 38s linear infinite; }
.czl-ticker span { font: 900 clamp(22px, 3vw, 34px) var(--head); letter-spacing: -.01em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--text) 55%, transparent); }
.czl-ticker span:nth-of-type(3n+1) { color: var(--text); -webkit-text-stroke: 0; }
.czl-ticker i { color: var(--cz-gold); font-style: normal; font-size: 20px; }

.czl-sec { max-width: 1180px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) 22px 0; }
.czl-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.czl-head.left { text-align: left; margin: 0 0 26px; }
.czl-head h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; margin: 8px 0 10px; letter-spacing: -.03em; }
.czl-head p { color: var(--muted); margin: 0; font-size: 16px; }

.czl-dirs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.czl-dir { --sec: var(--cz-violet); position: relative; overflow: hidden; min-height: 230px; padding: 28px; border-radius: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background: radial-gradient(360px 220px at 100% 0%, color-mix(in srgb, var(--sec) 32%, transparent), transparent 70%), var(--card);
  border: 1px solid color-mix(in srgb, var(--sec) 30%, var(--line)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); transition: transform .3s; }
.czl-dir:hover { transform: translateY(-6px); }
.czl-dir-ic { position: absolute; top: 24px; left: 26px; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--sec) 80%, white), var(--sec) 55%, color-mix(in srgb, var(--sec) 60%, #0B0A2E)); box-shadow: 0 14px 30px -12px var(--sec); }
.czl-dir h3 { font-size: 26px; margin: 0; }
.czl-dir p { margin: 0; color: var(--muted); max-width: 420px; }
.czl-dir-n { position: absolute; top: 18px; right: 24px; font: 900 64px var(--head); color: color-mix(in srgb, var(--sec) 22%, transparent); }
.czl-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
  background: var(--card); border: 2px solid rgba(244, 183, 49, .5); box-shadow: 0 0 0 10px color-mix(in srgb, var(--bg) 70%, transparent), 0 0 50px rgba(244, 183, 49, .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.czl-core img { width: 64px; height: 64px; }
.czl-core b { font: 800 14px var(--head); line-height: 1.1; max-width: 110px; }
.czl-core[data-rv] { transform: translate(-50%, -50%) scale(.6); }
.czl-core[data-rv].in { transform: translate(-50%, -50%); }

.czl-feats { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.czl-phone-stick { position: sticky; top: 110px; display: grid; place-items: center; padding: 20px 0; }
.czl-phone-stick .l2-phone { transform: rotate(-4deg); animation: cz-float 8s ease-in-out infinite; }
.czl-feat-col { display: grid; gap: 14px; }
.czl-feat { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.czl-feat-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad-orange); box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .9); }
.czl-feat h3 { margin: 2px 0 4px; font-size: 18px; }
.czl-feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

.czl-mission { text-align: center; }
.czl-mission blockquote { margin: 14px auto 36px; max-width: 900px; font: 800 clamp(24px, 3.6vw, 40px)/1.2 var(--head); letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--text), color-mix(in srgb, var(--cz-violet) 75%, var(--text)) 60%, var(--cz-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.czl-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.czl-why > div { display: flex; gap: 10px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.czl-why svg { color: var(--cz-violet); flex-shrink: 0; margin-top: 2px; }
.czl-why b { color: var(--text); }

.czl-ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.czl-ranks::before { content: ""; position: absolute; left: 10%; right: 10%; top: 52px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #94A3B8, #3FA34D, #9B5DE5, #F28C28); opacity: .6; }
.czl-rank { position: relative; text-align: center; padding: 22px 16px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.czl-rank-orb { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 30%, white), var(--c) 55%, color-mix(in srgb, var(--c) 50%, #070418)); box-shadow: 0 0 30px -4px var(--c); }
.czl-rank b { font: 800 19px var(--head); display: block; }
.czl-rank small { color: var(--cz-gold); font-weight: 800; }
.czl-rank p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }

.czl-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.czl-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 3px; background: linear-gradient(90deg, #7C5CFF, #22D3EE); border-radius: 3px; box-shadow: 0 0 12px rgba(124, 92, 255, .6); }
.czl-steps li { position: relative; padding: 0 8px; text-align: center; }
.czl-steps li > span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font: 900 20px var(--head); color: #fff; background: var(--grad-orange); box-shadow: 0 0 0 8px var(--bg), 0 12px 28px -8px rgba(124, 92, 255, .9); }
.czl-steps b { display: block; margin: 14px 0 6px; font: 800 18px var(--head); }
.czl-steps p { margin: 0; color: var(--muted); font-size: 14px; }

.czl-final { position: relative; overflow: hidden; max-width: 1136px; margin: clamp(70px, 9vw, 120px) auto 0; padding: clamp(46px, 7vw, 80px) 24px; border-radius: 40px; text-align: center; color: #fff;
  background: radial-gradient(520px 300px at 85% 0%, rgba(244, 114, 182, .5), transparent 70%), radial-gradient(520px 300px at 10% 100%, rgba(34, 211, 238, .4), transparent 70%), linear-gradient(130deg, #1B1450, #2D1E80 55%, #12306B);
  border: 1px solid rgba(165, 175, 255, .25); box-shadow: 0 40px 80px -40px rgba(76, 60, 180, .9); }
.czl-final h2 { font-size: clamp(32px, 5vw, 58px); margin: 0 0 10px; color: #fff; }
.czl-final p { margin: 0 auto; max-width: 520px; opacity: .85; }
.czl-rocket { display: block; font-size: 56px; animation: czl-launch 3.4s ease-in-out infinite; }
.czl-foot { max-width: 1180px; margin: 0 auto; padding: 60px 22px 40px; text-align: center; color: var(--muted); }
.czl-foot .czl-brand { justify-content: center; margin-bottom: 10px; }
.czl-foot p { margin: 6px 0; }

/* reveal on scroll */
[data-rv] { opacity: 0; transform: translateY(50px) scale(.96); filter: blur(8px); transition: opacity .9s cubic-bezier(.16, .9, .2, 1) var(--d, 0s), transform .9s cubic-bezier(.16, .9, .2, 1) var(--d, 0s), filter .9s ease var(--d, 0s); }
[data-rv].in { opacity: 1; transform: none; filter: none; }

@keyframes czl-spin { to { transform: rotate(360deg); } }
@keyframes czl-rise { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes czl-marquee { to { transform: translateX(-50%); } }
@keyframes czl-wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes czl-launch { 0%, 100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-16px) rotate(-6deg); } }

@media (max-width: 980px) {
  .czl-links { display: none; }
  .czl-feats { grid-template-columns: 1fr; }
  .czl-phone-col { display: none; }
  .czl-why { grid-template-columns: 1fr 1fr; }
  .czl-ranks, .czl-steps { grid-template-columns: 1fr 1fr; }
  .czl-ranks::before, .czl-steps::before { display: none; }
}
@media (max-width: 640px) {
  .czl-top { gap: 6px; }
  .czl-brand span { display: none; }
  .czl-orbit { width: 230px; height: 230px; }
  .czl-emblem { inset: 55px; width: 120px; height: 120px; }
  .czl-dirs { grid-template-columns: 1fr; }
  .czl-core { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; order: -1; }
  .czl-core[data-rv] { transform: scale(.6); } .czl-core[data-rv].in { transform: none; }
  .czl-dir { min-height: 190px; padding: 22px; }
  .czl-dir h3 { font-size: 22px; }
  .czl-why, .czl-ranks, .czl-steps { grid-template-columns: 1fr; }
  .czl-hero { padding-top: 100px; }
  .czl-num small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .czl *, .czl-top { animation: none !important; }
  [data-rv] { opacity: 1; transform: none; filter: none; }
}


/* ============================================================ Cosmos on the phone: own top bar, orbit bar, full-screen menu */
.cz-mtop, .cz-mbar, .cz-warp { display: none; }
@media (max-width: 860px) {
  html.cosmos .topbar, html.cosmos .tabbar, html.cosmos .sheet-wrap { display: none !important; }
  html.cosmos .view { padding: 8px 14px 130px; }
  html.cosmos .cz-mtop {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 30; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(var(--bg) 40%, transparent); animation: cz-drop .6s cubic-bezier(.2, .8, .2, 1) both;
  }
  html.cosmos .cz-mbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
  html.cosmos .cz-mbrand img { width: 42px; height: 42px; filter: drop-shadow(0 4px 14px rgba(124, 92, 255, .55)); animation: czl-spin 30s linear infinite; }
  html.cosmos .cz-mbrand span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
  html.cosmos .cz-mbrand small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  html.cosmos .cz-mbrand b { font: 800 18px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.cosmos .cz-mtools { display: flex; gap: 8px; align-items: center; }
  html.cosmos .cz-mtools .theme-btn { width: 40px; height: 40px; border-radius: 50%; color: var(--text); background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

  html.cosmos .cz-mbar {
    display: flex; align-items: flex-end; justify-content: space-around;
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    height: 64px; padding: 0 6px; align-items: center; border-radius: 26px;
    background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(40, 20, 120, .6);
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    animation: czl-rise .7s cubic-bezier(.16, .9, .2, 1) both;
  }
  html.cosmos[data-theme="light"] .cz-mbar { background: rgba(255, 255, 255, .86); }
  html.cosmos[data-theme="dark"] .cz-mbar { background: rgba(14, 14, 44, .86); }
  html.cosmos .cz-mbar > a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); transition: transform .35s cubic-bezier(.2, .9, .2, 1.3); }
  html.cosmos .cz-mi { position: relative; width: 44px; height: 40px; border-radius: 15px; display: grid; place-items: center; transition: all .35s cubic-bezier(.2, .9, .2, 1.3); }
  html.cosmos .cz-mi .nbadge { position: absolute; top: 0; right: 2px; }
  html.cosmos .cz-mbar small { font-size: 11px; font-weight: 800; white-space: nowrap; display: none; }
  html.cosmos .cz-mbar > a { padding-bottom: 4px; }
  html.cosmos .cz-mbar > a.on { color: var(--text); transform: translateY(-14px); }
  html.cosmos .cz-mbar > a.on .cz-mi { width: 50px; height: 50px; border-radius: 50%; color: #fff; background: var(--grad-orange); box-shadow: 0 0 0 5px var(--bg), 0 10px 24px -6px rgba(124, 92, 255, .95); }
  html.cosmos .cz-mbar > a.on small { display: block; animation: czl-pop .35s both; }
  html.cosmos .cz-orb { position: relative; flex: 0 0 auto; width: 66px; height: 66px; margin: 0 4px 6px; transform: translateY(-14px); border: 0; padding: 0; border-radius: 50%; cursor: pointer;
    background: radial-gradient(circle at 35% 30%, #3A2A9A, #140F44 70%); box-shadow: 0 0 0 5px var(--bg), 0 0 30px rgba(124, 92, 255, .7); display: grid; place-items: center; }
  html.cosmos .cz-orb img { width: 46px; height: 46px; animation: cz-float 5s ease-in-out infinite; }
  html.cosmos .cz-orb-ring { position: absolute; inset: -5px; border-radius: 50%; padding: 2px; background: conic-gradient(#7C5CFF, #22D3EE, #F472B6, #F4B731, #7C5CFF);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: czl-spin 6s linear infinite; }
  html.cosmos .cz-orb .nbadge { position: absolute; top: 2px; right: 2px; }

  html.cosmos .cz-warp:not([hidden]) {
    display: flex; flex-direction: column; gap: 18px; position: fixed; inset: 0; z-index: 60; overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));
    background: radial-gradient(500px 400px at 100% 0%, rgba(124, 92, 255, .35), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(34, 211, 238, .25), transparent 70%), color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    opacity: 0; transform: scale(1.06); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  html.cosmos .cz-warp.open { opacity: 1; transform: none; }
  html.cosmos .cz-warp-head { display: flex; justify-content: space-between; align-items: center; }
  html.cosmos .cz-warp-head b { font: 800 30px var(--head); }
  html.cosmos .cz-warp-x { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); display: grid; place-items: center; }
  html.cosmos .cz-warp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  html.cosmos .cz-warp-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 22px; text-align: center; text-decoration: none; color: var(--text); font-size: 12.5px; font-weight: 700;
    background: var(--card); border: 1px solid var(--line); opacity: 0; transform: translateY(24px) scale(.9); }
  html.cosmos .cz-warp.open .cz-warp-grid a { animation: czl-pop .5s cubic-bezier(.2, .9, .2, 1.2) calc(var(--i) * 35ms + 60ms) both; }
  html.cosmos .cz-warp-grid a.on { border-color: rgba(124, 92, 255, .6); box-shadow: 0 0 24px -6px rgba(124, 92, 255, .7); }
  html.cosmos .cz-warp-ic { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-orange); box-shadow: 0 10px 22px -8px rgba(124, 92, 255, .9); }
  html.cosmos .cz-warp-ic .nbadge { position: absolute; top: -2px; right: -2px; }
  html.cosmos .cz-warp-tools { display: flex; gap: 10px; align-items: center; justify-content: center; }
  html.cosmos .cz-warp-tools .lang-switch { background: var(--none-bg); }
  html.cosmos .cz-warp-tools .lang-switch button { color: var(--muted); }
  html.cosmos .cz-warp-tools .lang-switch button.on { background: var(--grad-orange); color: #fff; }
  html.cosmos .cz-warp-tools .theme-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); }
  html.cosmos .cz-warp .side-contact { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  html.cosmos .cz-warp .side-contact a { display: flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; }
  body.cz-noscroll { overflow: hidden; }
}
@keyframes czl-pop { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

/* ============================================================ Cosmos portal: sign in, apply, check an application */
.czp { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; color: var(--text); }
.czp-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 18px 12px; }
.czp-top .lang-switch { background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.czp-top .lang-switch button { color: var(--muted); }
.czp-top .lang-switch button.on { background: var(--grad-orange); color: #fff; }
.czp-stage { display: flex; flex-direction: column; align-items: center; padding: 0 16px 50px; }
.czp-orbit { width: 150px; height: 150px; margin: 4px 0 14px; }
.czp-orbit .czl-orbit { transform: scale(.5); transform-origin: 0 0; margin: 0; animation: none; }
.czp-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); max-width: 100%; animation: czl-rise .7s cubic-bezier(.16, .9, .2, 1) .1s both; }
.czp-tabs a { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: all .2s; }
.czp-tabs a.on { color: #fff; background: var(--grad-orange); box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9); }
.czp-card { width: 100%; max-width: 460px; margin-top: 18px; padding: 30px 28px; border-radius: 32px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 40px 90px -40px rgba(60, 40, 170, .8); animation: czl-rise .9s cubic-bezier(.16, .9, .2, 1) .2s both; }
.czp-card.wide { max-width: 760px; }
.czp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #7C5CFF, #22D3EE, #F472B6, #F4B731); }
.czp-card h1, .czp-card h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.czp-card h1 svg { color: var(--cz-violet); }
.czp-card .a2-sub, .czp-card > .apply-card > p.muted { color: var(--muted); margin: 0 0 20px; }
.czp .a2-form { display: grid; gap: 14px; }
.czp .a2-field { display: grid; gap: 6px; }
.czp .a2-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.czp .a2-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 18px; background: var(--none-bg); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.czp .a2-input:focus-within { border-color: var(--cz-violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); color: var(--cz-violet); }
.czp .a2-input input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 15px 0; font-size: 16px; color: var(--text); outline: none; }
.czp .a2-eye { border: 0; background: none; color: var(--muted); padding: 4px; cursor: pointer; }
.czp .a2-eye.on { color: var(--cz-violet); }
.czp .a2-submit, .czp .apply-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; padding: 16px; border-radius: 18px; font-size: 16px; color: #fff !important; background: var(--grad-orange) !important; border: 0; box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .95); }
.czp .row-end { display: block; }
.czp .form input, .czp .form select, .czp .form textarea { border-radius: 16px; background: var(--none-bg); border: 1.5px solid var(--line); color: var(--text); padding: 13px 14px; font-size: 16px; }
.czp .form input:focus, .czp .form select:focus, .czp .form textarea:focus { outline: none; border-color: var(--cz-violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.czp .form label { color: var(--text); }
.czp .check-pill { border-color: var(--line); background: var(--none-bg); padding: 10px 14px; }
.czp .check-pill:has(input:checked) { border-color: var(--cz-violet); background: rgba(124, 92, 255, .16); }
.czp .status-box { background: var(--none-bg); border: 1px solid var(--line); border-radius: 20px; }
.czp .code-box { background: linear-gradient(130deg, #1B1450, #2D1E80 55%, #12306B); }
.czp .code-box b { color: #FFD66B; }
.czp .apply-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.czp .apply-done .btn-primary { width: auto; }
.czp-back { margin-top: 18px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.czp-back:hover { color: var(--text); }
.czp-card.shake { animation: a2-shake .45s; }
@media (max-width: 560px) {
  .czp-top .czl-brand span { display: none; }
  .czp-tabs a { padding: 9px 11px; font-size: 13px; }
  .czp-tabs a:not(.on) span { display: none; }
  .czp-tabs a:not(.on) { padding: 9px 13px; }
  .czp-card { padding: 26px 18px; border-radius: 28px; }
  .czp-orbit { width: 120px; height: 120px; }
  .czp-orbit .czl-orbit { transform: scale(.4); }
  .czp .form.grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .cz-row-title { flex-wrap: wrap; row-gap: 4px; } }


/* ============================================================ Cosmos "wow" layer */
@property --cz-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* northern lights behind the stars */
.cz-aurora { display: none; }
html.cosmos .cz-aurora { display: block; position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
html.cosmos[data-theme="light"] .cz-aurora { opacity: .35; }
html.cosmos .cz-aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; mix-blend-mode: screen; }
html.cosmos[data-theme="light"] .cz-aurora i { mix-blend-mode: multiply; }
html.cosmos .cz-aurora i:nth-child(1) { left: 0; top: 0; background: radial-gradient(circle, #7C5CFF, transparent 65%); animation: cz-aur1 26s ease-in-out infinite alternate; }
html.cosmos .cz-aurora i:nth-child(2) { right: 0; top: 20%; background: radial-gradient(circle, #22D3EE, transparent 65%); animation: cz-aur2 32s ease-in-out infinite alternate; }
html.cosmos .cz-aurora i:nth-child(3) { left: 25%; bottom: 0; background: radial-gradient(circle, #F472B6, transparent 65%); animation: cz-aur3 38s ease-in-out infinite alternate; }
@keyframes cz-aur1 { to { transform: translate(30vw, 25vh) scale(1.2); } }
@keyframes cz-aur2 { to { transform: translate(-35vw, 20vh) scale(.85); } }
@keyframes cz-aur3 { to { transform: translate(20vw, -30vh) scale(1.15); } }

/* a living rainbow edge running around the key cards */
html.cosmos :is(.cz-hello, .cz-dir, .cz-poster, .czl-dir, .czp-card, .czl-final) { isolation: isolate; }
html.cosmos :is(.cz-hello, .cz-dir, .cz-poster, .czl-dir, .czp-card, .czl-final)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--cz-a), transparent 0 55%, var(--sec, #7C5CFF) 70%, #22D3EE 80%, #F472B6 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cz-edge 6s linear infinite;
}
@keyframes cz-edge { to { --cz-a: 360deg; } }

/* light under the finger */
html.cosmos :is(.czl-feat, .czp-card) { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 255, 255, .09), transparent 70%); }
html.cosmos[data-theme="light"] :is(.czl-feat, .czp-card) { background-image: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(124, 92, 255, .10), transparent 70%); }
html.cosmos .cz-dir { background: radial-gradient(260px circle at var(--mx, -400px) var(--my, -400px), rgba(255, 255, 255, .09), transparent 70%), radial-gradient(260px 160px at 0% 0%, color-mix(in srgb, var(--sec) 22%, transparent), transparent 70%), var(--card); }

/* pressing feels physical on the phone */
html.cosmos :is(.cz-dir, .cz-poster, .card, .cz-warp-grid a, .cz-mbar > a, .btn):active { transform: scale(.97); transition: transform .12s; }

/* each page arrives out of hyperspace */
html.cosmos .view.cz-enter > * { animation: cz-warpin .8s cubic-bezier(.16, .9, .2, 1) calc(var(--n, 0) * 70ms) both; }
@keyframes cz-warpin { from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

/* bigger, glowing titles */
html.cosmos .cz-h1, html.cosmos .page-title { background: linear-gradient(100deg, var(--text) 30%, #8B7BFF 65%, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }

@media (max-width: 860px) {
  /* the phone header is frosted glass, nothing shows through it */
  html.cosmos .cz-mtop { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid var(--line); margin: 0 -0px 10px; }
}

/* ---------------------------------------------------------------- directions: swipeable planets on the phone */
.cz-dots { display: none; }
@media (max-width: 640px) {
  html.cosmos .cz-goal img { width: 72px; height: 72px; }
  html.cosmos .cz-goal h1 { font-size: 36px; }
  html.cosmos .cz-goal p { font-size: 14.5px; }
  html.cosmos .cz-dir-grid {
    display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -14px; padding: 26px 0 18px; scroll-padding: 0 9vw;
  }
  html.cosmos .cz-dir-grid::-webkit-scrollbar { display: none; }
  html.cosmos .cz-dir-grid::before { display: none; }
  html.cosmos .cz-dir-grid::after { content: ""; flex: 0 0 9vw; }
  html.cosmos .cz-dir-grid > .cz-dir:first-child { margin-left: 9vw; }
  html.cosmos .cz-dir {
    flex: 0 0 82vw; scroll-snap-align: center; margin: 0 -1vw;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
    min-height: 470px; padding: 38px 22px 24px; border-radius: 36px; animation: none;
    transform: scale(calc(.86 + .14 * var(--k, 1))); opacity: calc(.45 + .55 * var(--k, 1)); transition: none;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sec) 46%, transparent), transparent 72%), var(--card);
  }
  html.cosmos .cz-dir:hover { transform: scale(calc(.86 + .14 * var(--k, 1))); }
  html.cosmos .cz-dir-ic {
    position: relative; width: 150px; height: 150px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--sec) 30%, white), var(--sec) 48%, color-mix(in srgb, var(--sec) 40%, #070418) 100%);
    box-shadow: 0 0 70px -6px var(--sec), inset -20px -24px 44px rgba(0, 0, 0, .38);
    animation: cz-float 6s ease-in-out infinite;
  }
  html.cosmos .cz-dir-ic svg { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
  html.cosmos .cz-dir-ic::before { content: ""; position: absolute; left: -26%; right: -26%; top: 41%; height: 20%; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--sec) 55%, white); opacity: .55; transform: rotate(-16deg); }
  html.cosmos .cz-dir-body { justify-items: center; gap: 8px; }
  html.cosmos .cz-dir-body b { font-size: 28px; }
  html.cosmos .cz-dir-body > span { font-size: 14.5px; }
  html.cosmos .cz-dir-nums { justify-content: center; }
  html.cosmos .cz-dir-go { display: grid; margin-top: auto; width: 56px; height: 56px; background: var(--sec); color: #fff; box-shadow: 0 10px 26px -8px var(--sec); }
  html.cosmos .cz-dots { display: flex; justify-content: center; gap: 8px; }
  html.cosmos .cz-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .3s, background .3s; }
  html.cosmos .cz-dots button.on { width: 28px; background: var(--sec, var(--cz-violet)); box-shadow: 0 0 12px var(--sec); }
}
@media (prefers-reduced-motion: reduce) {
  html.cosmos .cz-aurora i, html.cosmos :is(.cz-hello, .cz-dir, .cz-poster, .czl-dir, .czp-card, .czl-final)::after, html.cosmos .view.cz-enter > * { animation: none !important; }
}
/* a planet rising behind the greeting */
html.cosmos .cz-hello::before {
  content: ""; position: absolute; z-index: 0; right: -70px; top: -80px; width: 230px; height: 230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 30%, #FFE59A, #F472B6 42%, #7C5CFF 72%, #2A1C78);
  box-shadow: 0 0 90px rgba(244, 114, 182, .55), inset -30px -30px 60px rgba(10, 5, 40, .55); opacity: .8;
  animation: cz-float 9s ease-in-out infinite;
}
html.cosmos .cz-hello > * { position: relative; z-index: 1; }

/* the emblem in the portal stays exactly centred on every screen */
.czp-orbit { position: relative; }
.czp-orbit .czl-orbit { position: absolute; left: 0; top: 0; width: 300px !important; height: 300px !important; margin: 0 !important; }
.czp-orbit .czl-emblem { inset: 70px !important; width: 160px !important; height: 160px !important; }
@media (max-width: 640px) {
  /* landing: the icon sits above the title instead of on top of it */
  .czl-dir { min-height: 0; justify-content: flex-start; padding-top: 24px; }
  .czl-dir-ic { position: static; width: 54px; height: 54px; margin-bottom: 8px; }
}


/* ============================================================ speed: lighter effects that keep the look */
/* northern lights: soft static glows, no blur filter, no blending, no animation */
html.cosmos .cz-aurora { filter: none; opacity: 1; inset: 0; }
html.cosmos .cz-aurora i { animation: none !important; mix-blend-mode: normal !important; width: 70vmax; height: 70vmax; }
html.cosmos .cz-aurora i:nth-child(1) { left: -25vmax; top: -25vmax; background: radial-gradient(circle, rgba(124, 92, 255, .28), transparent 62%); }
html.cosmos .cz-aurora i:nth-child(2) { right: -30vmax; top: 10vh; background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 62%); }
html.cosmos .cz-aurora i:nth-child(3) { left: 10vw; bottom: -40vmax; background: radial-gradient(circle, rgba(244, 114, 182, .18), transparent 62%); }
html.cosmos[data-theme="light"] .cz-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(124, 92, 255, .16), transparent 62%); }
html.cosmos[data-theme="light"] .cz-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(34, 211, 238, .12), transparent 62%); }
html.cosmos[data-theme="light"] .cz-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(244, 114, 182, .12), transparent 62%); }
/* the rainbow edge stands still and only runs when the mouse is over the card */
html.cosmos :is(.cz-hello, .cz-dir, .cz-poster, .czl-dir, .czp-card, .czl-final)::after { animation: none; --cz-a: 200deg; }
@media (hover: hover) {
  html.cosmos :is(.cz-hello, .cz-dir, .cz-poster, .czl-dir, .czp-card, .czl-final):hover::after { animation: cz-edge 2.4s linear infinite; }
}
/* glass without live blur on the scrolling content: blurring a moving sky every frame is what made scrolling stutter */
html.cosmos { --card: rgba(255, 255, 255, .86); }
html.cosmos[data-theme="dark"] { --card: rgba(22, 24, 62, .82); }
html.cosmos .view *, html.cosmos .czl section *, html.cosmos .czl-ticker, html.cosmos .czp-card, html.cosmos .czp-tabs, html.cosmos .czl-num {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.cosmos .space-sky { will-change: transform; }

/* ============================================================ hero road in space */
.czr { margin-top: 10px; }
.czr-scroll { border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(165, 175, 255, .25), 0 30px 60px -30px rgba(60, 40, 170, .9); }
.czr-scroll > svg { display: block; width: 100%; height: auto; }
.czr-star { fill: #fff; animation: hr-twinkle 3.2s ease-in-out infinite; }
.czr-comet { stroke: url(#czr-gold); stroke-width: 2.5; stroke-linecap: round; opacity: 0; animation: czr-comet 7s ease-in 1.5s infinite; }
@keyframes czr-comet { 0% { opacity: 0; transform: translate(0, 0); } 5% { opacity: 1; } 18% { opacity: 0; transform: translate(260px, 110px); } 100% { opacity: 0; transform: translate(260px, 110px); } }
.czr-planet { animation: czr-bob 9s ease-in-out infinite; }
@keyframes czr-bob { 50% { transform: translateY(-10px); } }
.czr-edge { fill: none; stroke: url(#czr-neon); stroke-width: 40; stroke-linecap: round; opacity: .9; }
.czr-asphalt { fill: none; stroke: #0B0828; stroke-width: 32; stroke-linecap: round; }
.czr-dash { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2.5; stroke-dasharray: 14 14; animation: czr-move 1.2s linear infinite; }
@keyframes czr-move { to { stroke-dashoffset: -28; } }
.czr-path { fill: none; stroke: url(#czr-gold); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 1; filter: drop-shadow(0 0 8px rgba(244, 183, 49, .9)); }
.czr-glow { fill: var(--c); opacity: .3; }
.czr-ball { fill: var(--c); stroke: #fff; stroke-width: 3; }
.czr-shine { fill: #fff; opacity: .45; }
.czr-locked .czr-ball { fill: #2A2470; stroke: #5A4BD0; }
.czr-locked .czr-glow, .czr-locked .czr-shine { opacity: .12; }
.czr-done .czr-ball { stroke: #FFE59A; }
.czr-ic { color: #fff; }
.czr-locked .czr-ic { color: #9C93E8; }
.czr-pulse { fill: none; stroke: var(--c); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: hr-pulse 1.8s ease-out infinite; }
.czr-label { fill: #fff; font: 800 18px var(--head); text-anchor: middle; paint-order: stroke; stroke: #0B0828; stroke-width: 6px; stroke-linejoin: round; }
.czr-locked .czr-label { fill: #B9B2F0; }
.czr-xp { fill: #FFD66B; font: 800 13px var(--body); text-anchor: middle; paint-order: stroke; stroke: #0B0828; stroke-width: 5px; }
.czr-locked .czr-xp { fill: #8E86D8; }
.czr-av { fill: url(#czr-gold); stroke: #fff; stroke-width: 3.5; filter: drop-shadow(0 0 10px rgba(244, 183, 49, .9)); }
.czr-av-t { fill: #2A1C78; font: 900 19px var(--head); text-anchor: middle; }
.czr-pin { fill: #fff; }
.czr-flag rect { fill: #fff; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.czr-flag text { fill: #2A1C78; font: 800 14px var(--body); text-anchor: middle; }
.czr-float { animation: czr-hover 2.6s ease-in-out infinite; }
@keyframes czr-hover { 50% { transform: translateY(-5px); } }
.czr-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.czr-now svg { width: 16px; height: 16px; flex: none; }
.czr-now { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font: 800 14px var(--head); color: #fff; background: var(--c); box-shadow: 0 8px 20px -8px var(--c); }
.czr-bar { flex: 1 1 160px; height: 10px; border-radius: 99px; background: var(--none-bg); overflow: hidden; }
.czr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFE59A, #F4B731, #F472B6); box-shadow: 0 0 14px rgba(244, 183, 49, .8); min-width: 8px; }
.czr-next { color: var(--muted); font-weight: 700; font-size: 13.5px; }
@media (max-width: 760px) {
  .czr-scroll { overflow-x: auto; scrollbar-width: none; }
  .czr-scroll::-webkit-scrollbar { display: none; }
  .czr-scroll > svg { width: 760px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .czr-star, .czr-comet, .czr-planet, .czr-dash, .czr-pulse, .czr-float { animation: none !important; } }


/* ============================================================ landing directions: focus, goal, voice */
.czl-dir { cursor: pointer; transition: transform .45s cubic-bezier(.2, .9, .2, 1.15), opacity .35s, filter .35s, box-shadow .35s; }
.czl-dir:focus-visible { outline: 3px solid var(--sec); outline-offset: 3px; }
.czl-dirs.focus .czl-dir:not(.on) { opacity: .45; filter: saturate(.6); transform: scale(.97); }
.czl-dirs .czl-dir.on { transform: scale(1.03); z-index: 3; box-shadow: 0 0 0 2px var(--sec), 0 30px 70px -20px color-mix(in srgb, var(--sec) 80%, transparent); }
.czl-dir.on .czl-dir-ic { animation: czl-ping .6s cubic-bezier(.2, .9, .2, 1.3); }
@keyframes czl-ping { 40% { transform: scale(1.18) rotate(-6deg); } }
.czl-dir-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .9, .2, 1); }
.czl-dir-more > div { overflow: hidden; display: grid; gap: 6px; justify-items: start; }
.czl-dir.on .czl-dir-more { grid-template-rows: 1fr; }
.czl-dir.on .czl-dir-more > div { padding-top: 10px; }
.czl-goal-l { display: inline-flex; align-items: center; gap: 5px; font: 800 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--sec); }
.czl-dir-more b { font-size: 15px; line-height: 1.4; }
.czl-say, .czs-say { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sec, #7C5CFF) 50%, transparent); background: color-mix(in srgb, var(--sec, #7C5CFF) 16%, transparent); color: var(--text); font: 700 13px var(--body); cursor: pointer; }
.czl-say:hover, .czs-say:hover { background: var(--sec, #7C5CFF); color: #fff; }
@media (max-width: 640px) { .czl-dirs .czl-dir.on { transform: none; } .czl-dirs.focus .czl-dir:not(.on) { transform: none; } }

/* ============================================================ section entrance */
.czs-hero {
  --sec: #7C5CFF; position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); gap: 28px; align-items: center;
  padding: 34px; border-radius: 34px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(500px 300px at 12% 30%, color-mix(in srgb, var(--sec) 60%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(34, 211, 238, .25), transparent 70%), linear-gradient(130deg, #0E0A33, #1B1450 60%, #0F1E4A);
  border: 1px solid color-mix(in srgb, var(--sec) 45%, transparent); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--sec) 90%, transparent);
  animation: czs-open .9s cubic-bezier(.16, .9, .2, 1) both;
}
@keyframes czs-open { from { opacity: 0; transform: scale(.94); clip-path: inset(20% 10% round 34px); } to { opacity: 1; transform: none; clip-path: inset(0 round 34px); } }
.czs-planet { position: relative; width: 150px; height: 150px; animation: czs-zoom 1.1s cubic-bezier(.16, .9, .2, 1) .1s both; }
@keyframes czs-zoom { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
.czs-ball { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--sec) 30%, white), var(--sec) 48%, color-mix(in srgb, var(--sec) 40%, #070418) 100%);
  box-shadow: 0 0 80px -6px var(--sec), inset -20px -24px 44px rgba(0, 0, 0, .38); animation: cz-float 6s ease-in-out 1.2s infinite; }
.czs-ring { position: absolute; left: -30%; right: -30%; top: 40%; height: 22%; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--sec) 55%, white); transform: rotate(-16deg); opacity: .65; z-index: 1; }
.czs-text { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.czs-text .eyebrow { color: #FFD66B !important; }
.czs-title { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; color: #fff; }
.czs-title span { display: inline-block; animation: czs-letter .7s cubic-bezier(.2, .9, .2, 1.2) var(--d) both; }
@keyframes czs-letter { from { opacity: 0; transform: translateY(40px) rotate(8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.czs-text p { margin: 0; opacity: .85; max-width: 520px; }
.czs-goal { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); max-width: 520px; }
.czs-goal svg { color: #FFD66B; flex: none; margin-top: 2px; }
.czs-goal small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FFD66B; }
.czs-goal b { font-size: 15px; }
.czs-say { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.czs-in { animation: czl-rise .8s cubic-bezier(.16, .9, .2, 1) var(--d, 0s) both; }
.czs-task { display: grid; gap: 10px; padding: 20px; border-radius: 24px; color: var(--text); background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.czs-task-l { display: inline-flex; align-items: center; gap: 6px; font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--sec); }
.czs-task > b { font: 800 19px/1.25 var(--head); }
.czs-task-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.czs-task-meta span { display: inline-flex; gap: 4px; align-items: center; }
.czs-xp { color: #F4B731 !important; font-weight: 800; }
.czs-task .btn { justify-content: center; }
@media (max-width: 980px) {
  .czs-hero { grid-template-columns: auto 1fr; }
  .czs-task { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .czs-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 18px 18px; gap: 18px; }
  .czs-text { justify-items: center; }
  .czs-planet { width: 120px; height: 120px; }
  .czs-goal { text-align: left; }
  .czs-task { width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .czs-hero, .czs-planet, .czs-ball, .czs-title span, .czs-in { animation: none !important; } }
/* room for the icon above the text, so the opened goal never runs under it */
@media (min-width: 641px) { .czl-dir { justify-content: flex-start; padding-top: 104px; min-height: 0; } }

/* ============================================================ week cover art (drawn when no photo is uploaded) */
.week-cover > .week-art { display: block; width: 100%; height: 100%; }
.cz-poster-art { position: absolute; inset: 0; z-index: 0; }
.cz-poster-art > svg, .cz-poster-art > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cz-poster-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 7, 38, .15) 20%, rgba(9, 7, 38, .88) 72%); }
.cz-poster > :not(.cz-poster-art) { position: relative; z-index: 1; }
.cz-poster > .cz-poster-ic, .cz-poster > .cz-poster-tag { position: absolute; z-index: 1; }
