@font-face { font-family: "KovenUI"; src: url("/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0a0f;
  --bg2: #120f18;
  --panel: #17131f;
  --panel2: #1e1928;
  --line: #2e2639;
  --text: #f1ebdf;
  --muted: #a397ae;
  --accent: #8b4dff;
  --accent-ink: #ffffff;
  --gold: #d9b45a;
  --accent2: #c2263f;
  --chip-bg: #1d1726;
  --glow: #2a1430;
  --ok: #5fc48a;
  --warn: #e3a64a;
  --err: #ff6b7d;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, var(--glow) 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  padding-bottom: calc(24px + var(--safe-b));
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(11, 10, 15, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sigil { color: var(--gold); font-size: 18px; letter-spacing: -2px; }
.brand h1 { font-family: "KovenUI", sans-serif; font-size: 14px; letter-spacing: 0.14em; margin: 0; white-space: nowrap; }
.batch-name { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; font-size: 18px; flex: none; }
.icon-btn.small { width: 30px; height: 30px; font-size: 13px; }

main { max-width: 1180px; margin: 0 auto; padding: 14px 14px 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }

.install-hint { margin: 10px 14px 0; padding: 10px 14px; border-radius: 12px; background: #231a2c; border: 1px solid #3c2d49; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; }

.upload-panel { padding: 14px; }
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border: 1.5px dashed #4a3b57; border-radius: 12px; cursor: pointer; text-align: center; background: linear-gradient(180deg, #1d1726, #17131f); }
.upload-drop.drag { border-color: var(--gold); }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-title { font-family: "KovenUI", sans-serif; font-size: 18px; }
.upload-title::before { content: "+ "; color: var(--accent); }
.upload-sub { color: var(--muted); font-size: 13px; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg2); }
.chip.on { color: var(--ok); border-color: #2c5a40; }
.chip.off { color: var(--warn); border-color: #5a4426; }

/* style panel */
.style-panel summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.style-panel summary::-webkit-details-marker { display: none; }
.style-panel summary::after { content: "▾"; color: var(--muted); margin-left: 8px; }
.style-panel[open] summary::after { content: "▴"; }
.summary-meta { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: auto; }
.style-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 16px 16px; }
.style-preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.controls { display: flex; flex-direction: column; gap: 12px; }
label { display: block; font-size: 13px; color: var(--muted); }
label output { color: var(--text); float: right; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 30px; }
select, input[type="text"], input[type="number"], textarea {
  width: 100%; margin-top: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--text);
}
textarea { resize: vertical; line-height: 1.4; }
input[type="number"] { width: 76px; display: inline-block; padding: 6px 8px; margin: 0 4px; }
select:focus, input:focus, textarea:focus { outline: 2px solid #6b3a7a; outline-offset: 0; border-color: #6b3a7a; }
.seg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.seg legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.seg label { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; min-height: 30px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0; }

/* 9:16 frame */
.frame { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; }
.frame.big { width: 220px; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.frame img.bg { object-fit: cover; filter: blur(14px) brightness(0.82) saturate(1.1); transform: scale(1.15); }
.frame[data-fit="black"] img.bg { display: none; }
.frame[data-fit="crop"] img.fg, .frame[data-native="1"] img.fg { object-fit: cover; }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frame .safe { position: absolute; inset: 0; pointer-events: none; display: none; }
.frame.show-safe .safe { display: block; }
.frame .safe::before, .frame .safe::after { content: ""; position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(255, 70, 90, 0.22) 0 6px, rgba(255, 70, 90, 0.08) 6px 12px); }
.frame .safe::before { top: 0; height: calc(220 / 1920 * 100%); }
.frame .safe::after { bottom: 0; height: calc(520 / 1920 * 100%); }
.frame .play { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 14px; }
.frame .upl { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, #1d1527, #0f0c14); text-align: center; padding: 10px; }
.frame.uploading .upl { display: flex; }
.frame.uploading .play { display: none; }
.upl p { margin: 0; font-size: 12px; color: var(--muted); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #2c2436 0); display: grid; place-items: center; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: #15111b; display: grid; place-items: center; font-size: 13px; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.card-head .num { font-family: "KovenUI", sans-serif; color: var(--gold); min-width: 26px; }
.card-head .meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-head .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-body { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; }
.preview-col { position: sticky; top: 76px; align-self: start; }
.edit-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.opt { color: #7b7088; font-weight: 400; }
.analysis { font-size: 12.5px; color: var(--muted); }
.analysis .badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); margin-right: 6px; }
.analysis .badge.ai { color: var(--ok); border-color: #2c5a40; }
.analysis .badge.generic { color: var(--warn); border-color: #5a4426; }
.analysis .err { color: var(--err); }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #4a3b57; border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hooks { display: flex; flex-direction: column; gap: 6px; }
.hook-opt { text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; font-size: 14px; line-height: 1.35; display: flex; gap: 8px; }
.hook-opt::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid #5a4b68; }
.hook-opt[aria-checked="true"] { border-color: var(--accent); background: #24121b; }
.hook-opt[aria-checked="true"]::before { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.hook-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--gold); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { opacity: 0.4; }
.wc { float: right; font-size: 12px; }
.wc.bad { color: var(--warn); }
.cap-toggles { display: flex; flex-wrap: wrap; gap: 0 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; flex: 1 1 auto; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: var(--bg2); }
.btn.danger { color: var(--err); }
.btn.wide { width: 100%; margin-top: 8px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.render-status .bar { height: 6px; border-radius: 3px; background: #2a2334; overflow: hidden; display: none; }
.render-status .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.4s; }
.render-status.busy .bar { display: block; }
.rs-text { margin: 6px 0; font-size: 13px; color: var(--muted); }
.rs-text.ok { color: var(--ok); }
.rs-text.err { color: var(--err); }
.rs-text.stale { color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: rgba(14, 11, 19, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; }
.actionbar #zipBtn { flex: 0.7; }

/* sheets */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.sheet { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 40px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.sheet-head h2 { margin: 0; font-family: "KovenUI", sans-serif; font-size: 16px; letter-spacing: 0.06em; }
.sheet-body { padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.sheet-body h3 { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ai-status { font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.list li { display: flex; gap: 8px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.list li .grow { flex: 1; min-width: 0; cursor: pointer; }
.list li .grow small { display: block; color: var(--muted); }
.list li.current { border-color: var(--accent); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { margin: 0; }
.inline-form .btn { flex: none; }

.player { border: 0; padding: 0; background: #000; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.player-inner { display: flex; flex-direction: column; height: 100%; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.player-frame { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.player-frame video { max-width: 100%; max-height: 100%; width: auto; height: 100%; aspect-ratio: 9 / 16; background: #000; object-fit: contain; }
.player-frame canvas { position: absolute; pointer-events: none; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--muted); font-size: 13px; }
.player-bar .btn { flex: none; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #2a2034; border: 1px solid #47385a; color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 100; max-width: calc(100vw - 30px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; text-align: center; }
.login-card h1 { font-family: "KovenUI", sans-serif; letter-spacing: 0.14em; font-size: 18px; margin: 8px 0 4px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.login-card .err { color: var(--err); min-height: 1.2em; font-size: 13px; margin: 0; }

@media (min-width: 640px) {
  .card-body { grid-template-columns: 180px 1fr; }
  .style-grid { grid-template-columns: 240px 1fr; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-body { grid-template-columns: 160px 1fr; }
  .actionbar { justify-content: center; }
  .actionbar .btn { flex: 0 0 200px; }
}

/* ============================================================
   v2: editions, shared components, pages
   ============================================================ */
body.has-actionbar { padding-bottom: calc(84px + var(--safe-b)); }

/* VIRAL OS: clean, bright, fast */
:root[data-edition="viral"] {
  --bg: #f5f6fa; --bg2: #ffffff; --panel: #ffffff; --panel2: #f0f1f6; --line: #e2e4ec;
  --text: #121218; --muted: #5f6474; --accent: #ff2d55; --accent-ink: #fff; --gold: #0a6cff; --accent2: #00b3ff;
  --ok: #0f9d58; --warn: #b26a00; --err: #d93025; --chip-bg: #eef0f6; --glow: #ffe3ea;
  color-scheme: light;
}
:root[data-edition="viral"] .upload-drop { background: linear-gradient(180deg, #fff, #f7f8fc); border-color: #c9cdda; }
:root[data-edition="viral"] .frame .upl { background: linear-gradient(160deg, #f1f2f8, #e6e8f0); }
:root[data-edition="viral"] .ring span { background: #fff; }
:root[data-edition="viral"] .ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), #dfe2ea 0); }
:root[data-edition="viral"] .hook-opt[aria-checked="true"] { background: #fff0f3; }
:root[data-edition="viral"] .topbar, :root[data-edition="viral"] .actionbar { background: rgba(255, 255, 255, 0.9); }
:root[data-edition="viral"] .toast { background: #121218; color: #fff; border-color: #121218; }
:root[data-edition="viral"] .install-hint { background: #fff; border-color: var(--line); }
:root[data-edition="viral"] .render-status .bar { background: #e6e8ef; }
:root[data-edition="viral"] .chip.on { border-color: #b7e2c8; }
:root[data-edition="viral"] .chip.off { border-color: #f0d3a6; }
:root[data-edition="viral"] .spinner { border-color: #d6d9e3; border-top-color: var(--accent); }
/* KOVEN STUDIO: dark mystical purple/black */
:root[data-edition="koven"] { --bg: #0c0912; --bg2: #120d1b; --panel: #171121; --panel2: #1f1730; --line: #2f2442; --accent: #8b4dff; --glow: #32124a; }

a.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-name { font-family: "KovenUI", sans-serif; letter-spacing: 0.08em; font-size: 15px; white-space: nowrap; }
.navlinks { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.navlinks a.on { color: var(--text); background: var(--panel2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.pill { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; white-space: nowrap; }
.ed-switch { width: auto; margin: 0; padding: 5px 8px; font-size: 12px; border-radius: 999px; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 6px 10px; }
  .navlinks { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .nav-right .link { display: none; }
}
.subbar { display: flex; justify-content: space-between; align-items: center; max-width: 1180px; margin: 10px auto 0; padding: 0 14px; }
.subbar .batch-name { max-width: 75vw; font-size: 14px; }

.page { max-width: 1100px; margin: 0 auto; padding: 18px 14px 30px; }
.page h1 { font-family: "KovenUI", sans-serif; font-size: 24px; margin: 6px 0 4px; letter-spacing: 0.01em; }
.page h2 { font-size: 18px; margin: 22px 0 10px; }
.lead { color: var(--muted); margin: 0 0 14px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 150px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.badge2 { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.badge2.ok { color: var(--ok); }
.badge2.warn { color: var(--warn); }
.badge2.err { color: var(--err); }
.badge2.accent { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--panel); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.notice.warn { border-left-color: var(--warn); }
.notice.err { border-left-color: var(--err); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .lock { font-size: 11px; margin-left: 4px; }

.result { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.result .r-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.result .r-text { white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.result .r-tags { color: var(--gold); font-size: 13px; }
.result .btn-row .btn { min-height: 34px; padding: 0 10px; font-size: 13px; flex: 0 0 auto; }

.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .amt { font-size: 32px; font-weight: 800; font-family: "KovenUI", sans-serif; }
.price-card .amt small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.price-card .btn { margin-top: auto; }
.ribbon { position: absolute; top: -11px; left: 18px; }

.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .v { font-size: 24px; font-weight: 800; }
.stat .k { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--panel2); }
table.t tr:last-child td { border-bottom: 0; }
table.t input { width: 90px; margin: 0; padding: 6px 8px; font-size: 14px; }

.hero { padding: 48px 16px 28px; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { font-family: "KovenUI", sans-serif; font-size: clamp(30px, 7vw, 56px); line-height: 1.05; margin: 10px 0 14px; letter-spacing: -0.01em; }
.hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.hero .btn-row { justify-content: center; }
.hero .btn { flex: 0 0 auto; min-height: 50px; padding: 0 26px; font-size: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.feature .ic { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.ed-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ed-card { border-radius: 18px; padding: 22px; border: 1px solid var(--line); }
.ed-card.viral { background: linear-gradient(135deg, #fff 0%, #ffe8ee 100%); color: #121218; }
.ed-card.koven { background: linear-gradient(135deg, #160f22 0%, #2b1446 100%); color: #f1ebdf; }
.ed-card h3 { font-family: "KovenUI", sans-serif; margin: 0 0 6px; letter-spacing: 0.08em; }
.ed-card p { margin: 0 0 12px; opacity: 0.8; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 26px 16px 40px; font-size: 13px; }
.site-foot a { color: var(--muted); }
.legal { max-width: 760px; }
.legal h2 { margin-top: 26px; }
.review { background: #fff3cd; color: #5c4300; border: 1px solid #f0d58a; border-radius: 8px; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.cal-day { font-weight: 700; margin: 16px 0 6px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.meme-canvas { width: 100%; max-width: 420px; border-radius: 12px; background: #000; display: block; }
input[type="datetime-local"], input[type="email"], input[type="password"], input[type="search"] {
  width: 100%; margin-top: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; color: var(--text);
}
.hp { position: absolute; left: -5000px; }
