:root {
  --ink: #1f1726;
  --muted: #665b71;
  --white: #ffffff;
  --rose: #ff5d86;
  --coral: #ff9462;
  --cyan: #57c9ff;
  --violet: #8ba1ff;
  --mint: #63d1b0;
  --bg: radial-gradient(circle at top left, rgba(255, 147, 99, 0.28), transparent 32%), radial-gradient(circle at top right, rgba(87, 201, 255, 0.26), transparent 28%), linear-gradient(180deg, #fff7f5 0%, #fffafe 45%, #f5fbff 100%);
  --shadow: 0 18px 60px rgba(69, 29, 58, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
}
/* Background question marks – injected by JS */
.bg-marks {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; overflow: hidden;
}
.bg-marks span {
  position: absolute; font-weight: 900; color: #b8a4c4;
  line-height: 1;
}
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.7;
}

body::before { width: 280px; height: 280px; top: 88px; left: -40px; background: rgba(255, 93, 134, 0.24); }

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(64, 39, 74, 0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  max-height: 120px;
  overflow: hidden;
}

.header-inner.header-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header-logo span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
}

.header-nav { display: flex; gap: 18px; font-size: 0.95rem; color: var(--muted); }
.header-nav a br { display: none; }

.header-logo-svg {
  width: 38px;
  height: 38px;
}

.header-search-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 18px;
}

.header-search-shell.in-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(64, 39, 74, 0.08);
  box-shadow: 0 4px 16px rgba(69, 29, 58, 0.06);
}

/* Desktop: inline search */
.header-search-desktop {
  flex: 0 1 320px;
  margin: 0 24px;
}

/* Mobile: search below header, sticky on scroll */
.header-search-mobile {
  display: none;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: 1px solid rgba(64, 39, 74, 0.06);
  border-bottom: 1px solid rgba(64, 39, 74, 0.08);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 99;
}

@media (max-width: 768px) {
  .header-search-desktop { display: none; }
  .header-search-mobile { display: flex; }
}

.header-search-icon {
  font-size: 1rem;
  color: #9b6e89;
  line-height: 1;
}

.header-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.header-search-input::placeholder {
  color: #8c7f95;
}

.header-search-input:focus {
  outline: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 40;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 680px) {
  .hamburger { display: flex; z-index: 110; }
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 28px 28px 28px;
    gap: 24px;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    transition: right 0.3s ease;
    box-shadow: -8px 0 40px rgba(69, 29, 58, 0.12);
    z-index: 110;
  }
  .header-nav a { font-size: 2.8rem; line-height: 1.15; }
  .header-nav a br { display: inline; }
  .header-nav.open { right: 0; }

  /* Close button */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(64,39,74,0.06);
    color: var(--ink);
    font-size: 1.4rem;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
  }
  .nav-close:hover { background: rgba(64,39,74,0.12); }

  /* Backdrop */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 109;
    transition: opacity 0.3s;
  }
  .nav-backdrop.open { display: block; }

  .header-search-shell { padding: 0 16px 16px; }
  .header-search { padding: 11px 14px; border-radius: 16px; }
  .header-search-input { font-size: 0.95rem; }
}
/* Desktop: hide close + backdrop */
@media (min-width: 681px) {
  .nav-close { display: none; }
  .nav-backdrop { display: none; }
}
.header-nav a:hover { color: var(--ink); }

/* ── Language Switcher ───────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(64, 39, 74, 0.06);
  border-radius: 10px;
  padding: 2px;
  margin-left: 12px;
}
.lang-switcher-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}
.lang-switcher-btn:hover { color: var(--ink); }
.lang-switcher-btn.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(69, 29, 58, 0.10);
}
@media (max-width: 680px) {
  .lang-switcher { margin: 0; }
  .header-nav .lang-switcher { margin-top: 8px; }
}

/* ═══════════════════════════════════════════
   ADMIN DESIGN SYSTEM — Soft UI + Bento Grid
   Palette: Deep navy sidebar, white cards,
   warm gray bg, purple accent, soft shadows
   ═══════════════════════════════════════════ */

:root {
  --admin-bg: #f4f2f7;
  --admin-sidebar: #1a1530;
  --admin-card: #ffffff;
  --admin-accent: #6c5ce7;
  --admin-accent-soft: rgba(108, 92, 231, 0.08);
  --admin-text: #1e1b2e;
  --admin-muted: #6b6480;
  --admin-border: rgba(0,0,0,0.06);
  --admin-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --admin-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --admin-radius: 14px;
}

.admin-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--admin-sidebar);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 60px;
}
.admin-header .header-inner { padding: 0 24px; height: 60px; }
.admin-header .header-logo { color: #fff; font-size: 1rem; gap: 10px; }
.admin-header .header-logo span {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--admin-accent); display: inline-grid; place-items: center;
}
.admin-header .header-nav { display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.admin-header .header-nav a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.admin-header .header-nav a:hover { color: #fff; }
.admin-header .btn-outline { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); padding: 6px 14px; border-radius: 8px; }
.admin-header .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }

/* ── Layout ─────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 60px); background: var(--admin-bg); }

/* ── Sidebar ────────────────────────── */
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--admin-sidebar);
  padding: 24px 0;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; }
.sidebar-section-title {
  padding: 16px 14px 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-weight: 500; font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s ease; outline: none;
}
.sidebar-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); }
.sidebar-item:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: -2px; border-radius: 10px; }
.sidebar-item.active {
  background: rgba(108, 92, 231, 0.2);
  color: #fff; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.3);
}
.sidebar-icon-svg { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.65; }
.sidebar-item.active .sidebar-icon-svg { opacity: 1; }

/* ── Main content ───────────────────── */
.admin-main {
  flex: 1; padding: 40px 44px; overflow-y: auto; min-width: 0;
}
.admin-page {
  max-width: 1040px;
  animation: adminFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes adminFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Page header ────────────────────── */
.admin-page .section-head { margin-bottom: 28px; }
.admin-page .section-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--admin-muted); }
.admin-page .section-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--admin-text); margin-top: 4px; }

/* ── Card (replaces glass-card in admin) ── */
.admin-card {
  background: var(--admin-card); border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow); border: 1px solid var(--admin-border);
  padding: 24px; margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}
.admin-card:hover { box-shadow: var(--admin-shadow), 0 8px 24px rgba(0,0,0,0.06); }
.admin-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 16px; color: var(--admin-text); }

/* ── Table ──────────────────────────── */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table thead th {
  padding: 14px 16px; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--admin-muted);
  border-bottom: 2px solid rgba(0,0,0,0.05);
}
.admin-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.9rem; color: var(--admin-text);
}
.admin-table tbody tr:hover { background: var(--admin-accent-soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .badge {
  display: inline-flex; padding: 4px 10px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
}
.badge-green { background: rgba(0, 200, 117, 0.1); color: #0d7c5f; }
.badge-gray { background: rgba(0,0,0,0.05); color: var(--admin-muted); }

/* ── Back link ──────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 24px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid var(--admin-border);
  background: var(--admin-card); font: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; color: var(--admin-muted); text-decoration: none;
  transition: all 0.2s ease;
}
.back-link:hover { color: var(--admin-text); background: #f8f6fc; border-color: rgba(108,92,231,0.15); }
.back-link:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: 2px; }

/* ── Forms in admin ─────────────────── */
.admin-main .form-group { margin-bottom: 14px; }
.admin-main .form-group label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--admin-muted); margin-bottom: 6px; }
.admin-main .form-group input,
.admin-main .form-group select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1); background: #fff;
  font: inherit; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-main .form-group input:focus,
.admin-main .form-group select:focus {
  outline: none; border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

/* ── Settings grid ──────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-main .settings-grid .admin-card { margin-bottom: 0; }

/* ── Question editor ────────────────── */
.admin-main .qe-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; padding: 20px; }
.admin-main .qe-toolbar p { flex: 1; margin: 0; font-size: 0.9rem; color: var(--admin-muted); }
.admin-main .qe-card { margin-bottom: 14px; padding: 20px 24px; }
.admin-main .qe-card.qe-custom { border-left: 3px solid var(--admin-accent); }
.admin-main .qe-card.qe-dirty { border-left: 3px solid #ffb341; }
.admin-main .qe-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-main .qe-card .form-group { margin-bottom: 10px; }
.admin-main .qe-card .form-group label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--admin-muted); margin-bottom: 4px; }
.admin-main .qe-card .form-group input { padding: 10px 12px; font-size: 0.88rem; border-radius: 8px; }
.admin-main .qe-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.admin-main .qe-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid rgba(0,0,0,0.04); padding-top: 12px; margin-top: 2px; }

/* ── Sessions toolbar ──────────────── */
.sessions-toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.session-search {
  flex: 1; padding: 10px 16px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1); background: #fff;
  font: inherit; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.session-search:focus { outline: none; border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(108,92,231,0.12); }
.session-sort {
  width: 160px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1); background: #fff;
  font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--admin-text);
}

/* ── Ad slots ──────────────────────── */
.ad-slot {
  max-width: var(--max); margin: 0 auto 20px; padding: 0 24px;
  text-align: center;
}
.ad-slot-banner img { max-width: 100%; height: auto; border-radius: 14px; }
.ad-slot-label { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.ad-slot-placeholder {
  border: 2px dashed rgba(255, 93, 134, 0.35); border-radius: 14px;
  padding: 32px 24px; color: var(--muted); font-size: 0.85rem;
  background: rgba(255, 93, 134, 0.04); margin: 0 24px 20px;
}
.ad-slot-placeholder span { display: block; font-weight: 700; }
.ad-slot-placeholder code { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 4px; }

/* ── Login screen ──────────────────── */
.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--admin-sidebar);
  padding: 24px;
}
.login-screen-card {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px;
  padding: 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  text-align: center;
}
.login-logo {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--admin-accent); color: #fff; font-size: 1.5rem;
  margin-bottom: 20px;
}
.login-screen-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--admin-text); margin: 0 0 6px; }
.login-sub { font-size: 0.9rem; color: var(--admin-muted); margin: 0 0 28px; }
.login-screen-card .form-group { text-align: left; margin-bottom: 18px; }
.login-screen-card .form-group label { font-weight: 600; font-size: 0.85rem; color: var(--admin-muted); margin-bottom: 6px; display: block; }
.login-screen-card .form-group input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1); font: inherit; font-size: 0.95rem;
}
.login-screen-card .form-group input:focus { outline: none; border-color: var(--admin-accent); box-shadow: 0 0 0 3px rgba(108,92,231,0.12); }
.login-error { color: #d66a84; font-size: 0.85rem; margin-top: 12px; }

/* ── Login box ──────────────────────── */
.login-box {
  max-width: 400px; margin: 80px auto; padding: 36px;
  background: var(--admin-card); border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
}
.login-box .eyebrow { font-size: 0.78rem; color: var(--admin-muted); }
.login-box h2 { font-size: 1.5rem; font-weight: 800; margin: 6px 0 24px; color: var(--admin-text); }

/* ── Answer rows ────────────────────── */
.answer-row { margin-top: 12px; background: #faf8fd; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; padding: 16px; }
.answer-row strong { display: block; margin-bottom: 8px; font-size: 0.9rem; }

/* ── Buttons ────────────────────────── */
.admin-main .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 10px; font: inherit; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none;
  transition: all 0.2s ease; text-decoration: none;
}
.admin-main .btn-primary {
  background: var(--admin-accent); color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.25);
}
.admin-main .btn-primary:hover { background: #5b4bd5; box-shadow: 0 4px 14px rgba(108,92,231,0.35); transform: translateY(-1px); }
.admin-main .btn-primary:active { transform: translateY(0); }
.admin-main .btn-outline {
  background: #fff; color: var(--admin-text); border: 1px solid rgba(0,0,0,0.1);
}
.admin-main .btn-outline:hover { background: #f8f6fc; border-color: rgba(108,92,231,0.2); }
.admin-main .btn-small { padding: 6px 14px; font-size: 0.82rem; border-radius: 8px; }

/* ── Accessibility ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sidebar-item, .back-link, .admin-page, .btn, .admin-card { transition: none; animation: none; }
}

/* ── Responsive ─────────────────────── */
@media (max-width: 760px) {
  .admin-sidebar { width: 56px; padding: 18px 0; }
  .sidebar-section-title, .sidebar-label { display: none; }
  .sidebar-item { justify-content: center; padding: 11px 6px; border-radius: 8px; }
  .sidebar-icon-svg { width: 21px; height: 21px; }
  .admin-main { padding: 24px 16px; }
  .settings-grid, .qe-options, .qe-meta { grid-template-columns: 1fr; }
  .admin-table thead { display: none; }
  .admin-table tbody td { display: block; padding: 10px 16px; }
  .admin-table tbody td:before { content: attr(data-label); font-weight: 700; font-size: 0.72rem; display: block; color: var(--admin-muted); margin-bottom: 2px; }
}

.admin-tabs, .admin-tab { display: none; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-grid .glass-card { padding: 20px 24px; }
.settings-grid .glass-card h3 { margin-top: 0; margin-bottom: 14px; }

@media (max-width: 760px) {
  .settings-grid { grid-template-columns: 1fr; }
  .admin-header .header-nav { gap: 8px; font-size: 0.85rem; }
}

.page-shell, .test-wrap, .admin-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.home-page .page-shell {
  padding-top: 0;
}

.glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 32px;
}

/* ── Homepage 4 Category Cards ─────────────────── */

.home-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 8px; }
.home-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 20px 28px; border-radius: 24px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.home-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px; opacity: 0;
  background: rgba(255,255,255,0.35);
  transition: opacity 0.25s;
}
.home-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(69, 29, 58, 0.12); }
.home-card:hover::before { opacity: 1; }

.home-card-icon { margin-bottom: 14px; position: relative; z-index: 1; }
.home-card-icon svg { display: block; }
.home-card p { font-size: 0.82rem; color: var(--muted); margin: 0 0 14px; line-height: 1.4; max-width: 180px; position: relative; z-index: 1; }
.home-card-count {
  font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 20px;
  position: relative; z-index: 1; letter-spacing: 0.04em;
}

/* Pair card – warm rose */
.home-card-pair {
  background: linear-gradient(160deg, #fff0f3 0%, #ffe8ee 40%, #fff5f7 100%);
  border: 1px solid #fdd8e2;
}
.home-card-pair .home-card-count { background: #ff5d86; color: #fff; }

/* Solo card – cool blue */
.home-card-solo {
  background: linear-gradient(160deg, #eef9ff 0%, #e0f4ff 40%, #f5faff 100%);
  border: 1px solid #d0eaff;
}
.home-card-solo .home-card-count { background: #57c9ff; color: #fff; }

/* Friends card – fresh green */
.home-card-friends {
  background: linear-gradient(160deg, #edfaf2 0%, #e0f5e8 40%, #f5fdf7 100%);
  border: 1px solid #c8ecd4;
}
.home-card-friends .home-card-count { background: #4CAF50; color: #fff; }

/* Games card – soft violet */
.home-card-games {
  background: linear-gradient(160deg, #f6f0ff 0%, #efe4ff 40%, #faf7ff 100%);
  border: 1px solid #e4d4f8;
}
.home-card-games .home-card-count { background: #9b59b6; color: #fff; }

@media (max-width: 800px) {
  .home-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .home-card { padding: 28px 16px 22px; }
  .home-card-icon { font-size: 2.4rem; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 22px;
}

.hero-home-artwork {
  position: relative;
  width: 100vw;
  min-height: 640px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 34px;
  border-radius: 0;
  overflow: hidden;
  align-items: end;
  background-image:
    linear-gradient(90deg, rgba(23, 14, 25, 0.16) 0%, rgba(23, 14, 25, 0.08) 34%, rgba(255, 255, 255, 0.06) 62%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.16) 100%),
    url('/hero-couple-artwork.png');
  background-size: cover;
  background-position: center center;
  box-shadow: var(--shadow);
}

.hero-home-artwork::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 75, 97, 0.22), transparent 28%), radial-gradient(circle at 72% 40%, rgba(255, 108, 90, 0.18), transparent 22%), linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.04) 55%, rgba(17,10,20,0.2) 100%);
  pointer-events: none;
}

.hero-home-artwork > * {
  position: relative;
  z-index: 1;
}

.hero-panel, .hero-card, .launch-shell, .success-card, .waiting-box, .question-card, .results-card, .results-hero, .catalog-group, .test-header {
  padding: 28px;
}

.hero-panel-home {
  max-width: 700px;
  align-self: end;
}

.full-width { grid-column: 1 / -1; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 800; color: #9b6e89; }
.hero-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(110, 44, 63, 0.96);
  box-shadow: 0 10px 24px rgba(119, 52, 71, 0.12);
}
h1, h2, h3 { margin: 0; font-family: 'Sora', sans-serif; letter-spacing: -0.04em; }
h1 { font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { color: var(--muted); line-height: 1.7; }

.hero-home-artwork h1 {
  max-width: 11ch;
  color: #2a1621;
  text-shadow: 0 10px 24px rgba(255,255,255,0.18);
}

.hero-home-artwork .hero-copy {
  max-width: 60ch;
  color: rgba(58, 33, 45, 0.92);
  text-shadow: 0 8px 20px rgba(255,255,255,0.16);
}

.hero-pills, .metric-grid, .test-strip, .catalog-grid, .results-grid, .results-notes { display: grid; gap: 14px; }
.hero-pills { grid-template-columns: repeat(3, max-content); margin-top: 26px; }

.pill, .mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(64, 39, 74, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a5772;
}

.pill-link {
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pill-link:hover {
  background: rgba(255, 107, 138, 0.12);
  border-color: rgba(255, 107, 138, 0.3);
  color: #d65a7a;
  transform: translateY(-1px);
}

.metric-label { font-size: 0.78rem; font-weight: 700; color: #8a7085; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-card-blur {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  box-shadow: 0 20px 48px rgba(88, 38, 55, 0.14);
}

.hero-card-blur h2,
.hero-card-blur p,
.hero-card-blur .metric-label {
  color: #351e2a;
}

.hero-card-blur .btn-outline {
  background: rgba(255,255,255,0.46);
}

.metric-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.metric-grid div { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.74); border: 1px solid rgba(64,39,74,0.08); }
.metric-grid strong { display: block; font-size: 1.35rem; margin-bottom: 6px; }
.metric-grid span { color: var(--muted); font-size: 0.85rem; }
.hero-actions { display: grid; gap: 12px; margin-top: 22px; }
.hero-actions .btn { width: 100%; }

.section-block, .catalog-group, .launch-shell, .results-card, .results-hero { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.section-head.compact { margin-bottom: 14px; }
.text-link { color: #7c6cf0; font-weight: 700; }

.test-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-stack { display: grid; gap: 22px; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.catalog-search-meta {
  margin: 6px 0 2px;
  color: #7f667b;
  font-size: 0.95rem;
}

.catalog-controls {
  display: grid;
  gap: 18px;
  margin-bottom: 8px;
  padding: 24px 28px;
}

.catalog-control-block {
  display: grid;
  gap: 12px;
}

.catalog-tag-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.catalog-tag-head h3 {
  font-size: 1.05rem;
}

.catalog-tag-head p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 34ch;
  text-align: right;
}

.catalog-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-chip-row.topic-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.catalog-chip {
  border: 1px solid rgba(64, 39, 74, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #72586d;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.catalog-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 93, 134, 0.18);
  color: var(--ink);
}

.catalog-chip.active {
  background: linear-gradient(135deg, rgba(255, 93, 134, 0.14), rgba(255, 148, 98, 0.16));
  border-color: rgba(255, 93, 134, 0.25);
  color: #5e3049;
  box-shadow: 0 10px 24px rgba(119, 52, 71, 0.08);
}

.catalog-topic-chip {
  background: rgba(245, 248, 255, 0.88);
  text-align: center;
  justify-content: center;
}

.catalog-empty {
  padding: 32px 28px;
  text-align: center;
}

.catalog-empty h2 {
  margin-bottom: 12px;
}

.catalog-empty p {
  max-width: 56ch;
  margin: 0 auto;
}

.catalog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(64, 39, 74, 0.08);
  color: #71556d;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(69, 29, 58, 0.06);
}

.catalog-back-link:hover {
  color: var(--ink);
  border-color: rgba(255, 93, 134, 0.18);
}

.share-panel {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(64,39,74,0.08);
}

.share-panel h3 {
  margin-bottom: 8px;
}

.share-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.result-share-box,
.recommendations-box {
  margin-top: 24px;
}

.recommendation-grid {
  margin-top: 18px;
}

.test-card, .catalog-card {
  text-align: left;
  padding: 24px;
  border: 1px solid #f0e4f0;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(69, 29, 58, 0.04);
  display: flex; flex-direction: column; gap: 8px;
}

.test-card:hover, .catalog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(69, 29, 58, 0.10); }

.test-card h3, .catalog-card h3 { font-size: 1.05rem; margin: 0; }
.test-card p, .catalog-card p { margin: 0; font-size: 0.85rem; line-height: 1.5; flex: 1; }

.test-card-cat {
  display: inline-block; align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8a748f; background: #f5f0f7;
  padding: 4px 10px; border-radius: 8px;
}

.test-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid #f5f0f7;
}

.test-card-stats {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: #8a748f;
}

.test-card.is-selected { transform: translateY(-2px); border-color: rgba(255, 93, 134, 0.22); }

.mini-pill { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f5f0f7; color: #8a748f; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.new-pill { background: #e0f4ff; color: #57c9ff; }

.premium-badge, .free-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  line-height: 1; align-self: flex-start;
}
.premium-badge {
  color: #fff; background: linear-gradient(135deg, #ff5d86, #ff4070);
  box-shadow: 0 2px 8px rgba(255,93,134,0.25);
}
.premium-badge::before { content: '✦'; font-size: 0.55rem; }
.free-badge {
  color: #1f1726; background: #f5f3f0;
  border: 1px solid #e0dcd8;
}
.premium-card { border-color: rgba(184, 134, 11, 0.25); background: linear-gradient(135deg, #fffdf5, #fff); }
.new-test-card { border-color: rgba(87, 201, 255, 0.3); background: linear-gradient(135deg, #f5fbff, #fff); }
.new-pill { background: rgba(87, 201, 255, 0.2); color: #0099cc; }
.new-tests-section { margin-bottom: 12px; }
.test-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; font-size: 0.82rem; color: #806d83; justify-content: start; align-items: center; }

.launch-shell { display: grid; gap: 20px; align-items: start; }
.start-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.86fr); gap: 22px; align-items: start; }
.hero-start-intro { grid-template-columns: 1fr; margin-top: 28px; }
.start-panel { min-height: 100%; }
.start-note { display: grid; gap: 14px; }
.launch-copy { margin-bottom: 4px; }
.hero-start-intro .start-panel { padding: 24px 28px; }
.note-list { display: grid; gap: 12px; margin-top: 8px; }
.note-list div { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.76); border: 1px solid rgba(64,39,74,0.08); }
.note-list strong { display: block; margin-bottom: 6px; }
.note-list span { color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.start-pills { grid-template-columns: repeat(3, max-content); }
.start-grid { align-items: stretch; }

.form-section {
  padding: 28px;
}

.form-section h3 {
  margin-bottom: 18px;
}

.form-section .btn {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .start-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .start-pills { grid-template-columns: repeat(3, minmax(0, max-content)); }
}

.form-group { margin-bottom: 14px; }
.compact-group { margin-bottom: 0; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-group input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(64, 39, 74, 0.12);
  background: rgba(255,255,255,0.86);
  font: inherit;
}
.form-group input:focus { outline: 2px solid rgba(87, 201, 255, 0.18); border-color: rgba(87, 201, 255, 0.35); }
.form-group select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(64, 39, 74, 0.12);
  background: rgba(255,255,255,0.86);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23665b71' fill='none' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-group select:focus { outline: 2px solid rgba(87, 201, 255, 0.18); border-color: rgba(87, 201, 255, 0.35); }
.helper { font-size: 0.82rem; color: #806d83; margin-top: 8px; }
.partner-found { color: #0d7c5f; font-weight: 500; }
.dropdown-search {
  position: absolute; z-index: 10;
  background: #fff; border: 1px solid rgba(64,39,74,0.12);
  border-radius: 12px; margin-top: 4px;
  max-height: 200px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.dropdown-search .dropdown-item {
  padding: 10px 14px; cursor: pointer;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid #f8f0f8;
}
.dropdown-search .dropdown-item:hover { background: #fdf5ff; }
.dropdown-search .dropdown-item strong { color: #1f1726; font-size: 0.9rem; }
.dropdown-search .dropdown-item span { color: #8a748f; font-size: 0.82rem; }

.gender-radios { display: flex; gap: 12px; }
.gender-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px;
  border: 1px solid rgba(64,39,74,0.12);
  background: rgba(255,255,255,0.86);
  font-weight: 600; cursor: pointer; transition: border-color 0.2s;
}
.gender-opt:has(input:checked) { border-color: var(--rose); background: rgba(255,93,134,0.06); }
.gender-opt input[type="radio"] { width: auto; accent-color: var(--rose); }

.qcount-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.qcount-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 14px;
  border: 1px solid rgba(64,39,74,0.12);
  background: rgba(255,255,255,0.86);
  font-weight: 600; cursor: pointer; transition: border-color 0.2s;
  min-width: 90px;
}
.qcount-opt:has(input:checked) { border-color: var(--rose); background: rgba(255,93,134,0.06); }
.qcount-opt input[type="radio"] { accent-color: var(--rose); }
.qcount-hint { font-size: 0.72rem; font-weight: 400; color: #806d83; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary { color: white; background: linear-gradient(135deg, var(--rose), var(--coral)); box-shadow: 0 16px 34px rgba(255, 93, 134, 0.24); }
.btn-outline { background: rgba(255,255,255,0.86); border: 1px solid rgba(64, 39, 74, 0.14); color: var(--ink); }
.btn-small { min-height: 42px; width: auto; padding: 0 18px; }
.inline-action { width: auto; padding: 0 20px; }

.link-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 18px 0 0; }
.link-row input { padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(64,39,74,0.12); font: inherit; background: rgba(255,255,255,0.85); }

.test-header { text-align: center; margin-bottom: 18px; }
.pair { margin-top: 14px; font-weight: 700; color: #7d5f75; }
.pair-sep { margin: 0 10px; color: var(--rose); }
.guess-badge { margin-top: 10px; padding: 8px 16px; background: rgba(255,107,138,0.1); border: 1px solid rgba(255,107,138,0.3); border-radius: 8px; color: #d65a7a; font-size: 0.85rem; font-weight: 600; text-align: center; }
.progress-wrap { margin: 0 auto 20px; max-width: 860px; }
.progress-bar { height: 12px; border-radius: 999px; background: rgba(64,39,74,0.08); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(135deg, var(--rose), var(--cyan)); transition: width 0.3s ease; }
.submit-box { text-align: center; margin-top: 20px; }
.progress-info { display: flex; justify-content: space-between; margin-top: 8px; color: #7e7286; font-size: 0.88rem; }

.q-head { display: flex; gap: 10px; flex-wrap: wrap; }
.q-num { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8f7a92; margin: 18px 0 8px; }
.q-debug { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; flex-wrap: wrap; }
.q-id-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 6px; background: #eef1ff; color: #4a5ad1; border: 1px dashed rgba(74,90,209,0.4); }
.q-bug-btn { font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(224,68,68,0.4); background: #fff0f0; color: #c53030; cursor: pointer; transition: all .15s; }
.q-bug-btn:hover { background: #ffe1e1; }
.q-bug-btn:disabled { opacity: 0.75; cursor: default; }
.question-card.q-marked { border: 2px solid rgba(224,68,68,0.55); box-shadow: 0 0 0 4px rgba(224,68,68,0.08); }
.q-text { font-size: 1.32rem; font-weight: 700; line-height: 1.45; margin-bottom: 18px; }

.open-answer {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(64,39,74,0.12);
  background: rgba(255,255,255,0.86);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 12px;
}
.open-answer:focus { outline: 2px solid rgba(87, 201, 255, 0.18); border-color: rgba(87, 201, 255, 0.35); }
.q-open-hint { font-size: 0.82rem; color: #806d83; margin-bottom: 8px; }
.opt-stack { display: grid; gap: 10px; }
.opt-btn {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(64,39,74,0.12);
  background: rgba(255,255,255,0.88);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.opt-btn.selected { border-color: rgba(255, 93, 134, 0.42); box-shadow: 0 12px 24px rgba(255, 93, 134, 0.12); }
.opt-letter { width: 34px; height: 34px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, rgba(255,93,134,0.14), rgba(87,201,255,0.18)); }
.test-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.counter-label, .nav-hint { color: #7f7387; font-size: 0.85rem; text-align: center; }
.nav-hint { margin-top: 8px; }
.spinner { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid rgba(64,39,74,0.08); border-top-color: var(--rose); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-wrap { margin-top: 20px; }
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score-ring {
  --score: 0;
  width: 228px;
  height: 228px;
  margin: 22px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(64,39,74,0.08) 0);
}
.score-ring div {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
}
.score-ring strong { display: block; font-size: 3.2rem; line-height: 1; font-family: 'Sora', sans-serif; }
.score-ring span { max-width: 11ch; font-size: 0.95rem; line-height: 1.25; color: #7f7387; }
.dimension-list { display: grid; gap: 14px; }
.dimension-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.dimension-bar { height: 12px; border-radius: 999px; background: rgba(64,39,74,0.08); overflow: hidden; }
.dimension-bar div { height: 12px; border-radius: 999px; }
.results-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.note-box { padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,0.78); border: 1px solid rgba(64,39,74,0.08); }
.recommendations-head { margin-top: 26px; }
.results-summary-wide { max-width: 72ch; margin: 0 0 4px; }
.note-box strong { display: block; margin-bottom: 10px; }
.note-box p { margin: 0 0 10px; }
.note-box p:last-child { margin-bottom: 0; }
.note-box ul { margin: 0; padding-left: 18px; }
.note-box li { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.note-box li:last-child { margin-bottom: 0; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.76);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-box { max-width: 360px; }
.admin-login-title { margin-bottom: 16px; }
.login-error { color: #ff6f8f; margin-top: 8px; }
.session-detail-title { margin: 24px 0 12px; }
.admin-table th, .admin-table td { padding: 16px; text-align: left; border-bottom: 1px solid rgba(64,39,74,0.08); }
.admin-table th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8a748f; }
.badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge-green { background: rgba(99,209,176,0.18); color: #0d7c5f; }
.badge-gray { background: rgba(64,39,74,0.08); color: #6f6477; }

/* ── Auth modal ────────────────────────────────────── */
.auth-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.auth-modal.hidden { display: none; }
.auth-card { background: #fff; border-radius: 20px; padding: 28px 24px 24px; width: 100%; max-width: 380px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.18); }
.auth-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab { flex: 1; background: none; border: none; padding: 8px 0; font-size: 0.92rem; color: #999; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; font-weight: 600; }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--rose); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }
.auth-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.auth-form .form-group label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.auth-form .form-group input { padding: 10px 12px; border: 1px solid #e0d8e6; border-radius: 10px; font-size: 0.95rem; }
.auth-form .form-group input:focus { border-color: var(--cyan); outline: none; }
.header-user { font-size: 1.2rem; cursor: pointer; padding: 4px 6px; }
.header-nav .btn-small { font-size: 0.82rem; padding: 5px 12px; }
.answer-row { margin-top: 12px; background: rgba(255,255,255,0.72); border: 1px solid rgba(64,39,74,0.08); border-radius: 18px; padding: 16px; }
.answer-row strong { display: block; margin-bottom: 8px; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: rgba(64,39,74,0.04); padding: 4px; border-radius: 16px; max-width: 420px; }
.admin-tab { flex: 1; padding: 12px 20px; border: none; background: transparent; border-radius: 13px; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: background 0.2s, color 0.2s; white-space: nowrap; }
.admin-tab.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 12px rgba(64,39,74,0.08); }

#questionEditorTestSelect { max-width: 520px; margin-bottom: 20px; }
#questionEditorTestSelect label { margin-bottom: 8px; }

.qe-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; padding: 20px 24px; }
.qe-toolbar p { flex: 1; margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.qe-toolbar .btn { flex-shrink: 0; }
.qe-status { font-weight: 600; color: #0d7c5f; font-size: 0.9rem; white-space: nowrap; }
.qe-card { margin-bottom: 14px; overflow: hidden; padding: 24px; }
.qe-card.qe-custom { border-left: 3px solid #ff5d86; }
.qe-card.qe-dirty { border-left: 3px solid #ffb341; }
.qe-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.qe-card .form-group { margin-bottom: 12px; }
.qe-card .form-group label { font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase; color: #8a748f; margin-bottom: 6px; }
.qe-card .form-group input { padding: 12px 14px; font-size: 0.92rem; border-radius: 14px; }
.qe-guess-group { background: #fffbe6; border: 1px dashed #e6c200; border-radius: 10px; padding: 10px 14px; margin: 6px 0 14px; }
.qe-guess-group label { color: #b08800 !important; }
.qe-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.qe-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid rgba(64,39,74,0.06); padding-top: 14px; margin-top: 4px; }

@media (max-width: 640px) {
  .qe-options, .qe-meta { grid-template-columns: 1fr; }
  .qe-toolbar { flex-direction: column; align-items: stretch; padding: 16px; }
  .qe-card { padding: 16px; }
}

.site-footer { padding: 24px; text-align: center; color: #7b6d82; border-top: 1px solid rgba(64,39,74,0.08); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(31, 23, 38, 0.92);
  color: white;
  box-shadow: 0 18px 38px rgba(31,23,38,0.2);
  transition: transform 0.25s ease;
  z-index: 80;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.disclaimer {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 180, 60, 0.10);
  border: 1px solid rgba(255, 160, 40, 0.18);
  font-size: 0.84rem;
  color: #8b6914;
  line-height: 1.5;
  text-align: center;
}

/* ── Poznáš partnera answers ── */
.poznas-tagline {
  font-weight: 600;
  color: var(--accent, #ff6b8a);
  font-size: 1.05rem;
}
.match-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 2px;
}
.match-dot.match-exact { background: #48bf91; }
.match-dot.match-close  { background: #f0a040; }
.match-dot.match-gap    { background: #d66a84; }
.poznas-answers { margin-bottom: 24px; }
.dim-group { margin-top: 16px; }
.dim-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #6c5ce7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.answer-pair {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 4px solid transparent;
  background: rgba(255,255,255,0.04);
}
.answer-pair.match { border-left-color: #48bf91; background: rgba(72,191,145,0.06); }
.answer-pair.close { border-left-color: #f0a040; background: rgba(240,160,64,0.06); }
.answer-pair.gap   { border-left-color: #d66a84; background: rgba(214,106,132,0.06); }
.answer-q {
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}
.answer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.answer-col {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.answer-who {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted, #888);
  margin-bottom: 3px;
}
.answer-truth .answer-val { color: #48bf91; font-weight: 600; }
.answer-guess .answer-val { color: #d66a84; font-weight: 500; }
.answer-pair.match .answer-guess .answer-val { color: #48bf91; }

@media (max-width: 980px) {
  .hero, .launch-shell, .results-grid, .catalog-grid, .test-strip { grid-template-columns: 1fr; }
  .hero-pills { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .dimension-row { grid-template-columns: 1fr; }
  .results-notes { grid-template-columns: 1fr; }
  .catalog-tag-head { grid-template-columns: 1fr; display: grid; align-items: start; }
  .catalog-tag-head p { text-align: left; max-width: none; }
}

@media (max-width: 860px) {
  .start-layout { grid-template-columns: 1fr; }
}

/* ── Games ── */
.game-page { max-width: 900px; }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.game-mode-card {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.game-mode-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.game-mode-emoji { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.game-mode-card h3 { font-size: 1.1rem; margin: 4px 0; }
.game-mode-card p { font-size: 0.85rem; color: var(--muted, #888); line-height: 1.4; }
.game-play { text-align: center; }
.game-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 8px;
}
.game-counter {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted, #888);
}
.game-card { padding: 32px 24px; }
.game-emoji { font-size: 3rem; margin-bottom: 8px; }
.game-card h2 { margin: 0 0 8px; }
.game-flavor {
  font-size: 0.85rem;
  color: var(--muted, #888);
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.game-question-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px 20px;
  margin: 20px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-q-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}
.game-q-reveal { animation: fadeSlideIn 0.4s ease; }
.game-actions { margin-top: 20px; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .start-pills { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell, .test-wrap, .admin-wrap { padding: 24px 16px 64px; }
  .home-page .page-shell { padding-top: 0; }
  .hero-home-artwork { min-height: 0; padding: 22px 16px; }
  .header-inner { padding: 14px 16px; }
  .header-nav { gap: 12px; font-size: 0.88rem; }
  .hero-panel, .hero-card, .launch-shell, .success-card, .waiting-box, .question-card, .results-card, .results-hero, .catalog-group, .test-header { padding: 20px; }
  .catalog-controls { padding: 20px; }
  .form-section { padding: 20px; }
  .link-row { grid-template-columns: 1fr; }
  .test-nav { flex-wrap: wrap; }
  .share-actions-row { flex-direction: column; }
}
