:root {
  --bg: #0d0d0f;
  --surface: #161619;
  --surface-2: #202024;
  --text: #f7f5ef;
  --muted: #a8a7af;
  --accent: #ff3d73;
  --accent-2: #ff6f99;
  --line: rgba(255,255,255,.11);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, sans-serif; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--accent); color: #14080c; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ticker__track { width: max-content; display: flex; gap: 48px; padding: 10px 0; animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

.header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; gap: 30px; position: relative; z-index: 5; }
.logo { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.08em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
.favorites-button { border: 1px solid var(--line); color: var(--text); background: transparent; border-radius: 999px; padding: 10px 16px; cursor: pointer; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding: 70px 0 110px; }
.hero h1, .section-heading h2, .match-banner h2, .become h2 { font-family: Unbounded, sans-serif; letter-spacing: -.06em; margin: 0; }
.hero h1 { font-size: clamp(62px, 8vw, 118px); line-height: .9; max-width: 800px; }
.hero h1 span { color: var(--accent); }
.hero__copy > p { color: var(--muted); max-width: 660px; font-size: 19px; line-height: 1.65; margin: 28px 0 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.eyebrow, .eyebrow-text { text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; margin-bottom: 26px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #51e17a; box-shadow: 0 0 18px #51e17a; }
.hero__visual { min-height: 480px; display: grid; place-items: center; position: relative; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb--one { width: 330px; height: 330px; background: linear-gradient(135deg, var(--accent), #7b34ff); transform: translate(-30px,-25px); }
.orb--two { width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.25); transform: translate(120px,150px); backdrop-filter: blur(12px); }
.hero-card { width: 320px; padding: 28px; border: 1px solid rgba(255,255,255,.18); background: rgba(13,13,15,.68); backdrop-filter: blur(20px); border-radius: 32px; position: relative; z-index: 2; transform: rotate(-5deg); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.hero-card strong { display: block; font-family: Unbounded; font-size: 66px; letter-spacing: -.08em; margin-top: 36px; }
.hero-card p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.hero-card__badge { color: #51e17a; font-size: 12px; font-weight: 700; }

.button { border: 1px solid var(--line); border-radius: 999px; padding: 15px 22px; cursor: pointer; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; transition: .2s ease; display: inline-flex; align-items: center; justify-content: center; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #16070d; border-color: var(--accent); }
.button--ghost { background: transparent; color: var(--text); }
.button--light { background: #fff; color: #111; border-color: #fff; }
.button--small { padding: 10px 14px; font-size: 11px; }
.button.is-active { background: var(--text); color: var(--bg); }

section { margin-bottom: 130px; }
.section-heading { margin-bottom: 34px; }
.section-heading p { text-transform: uppercase; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin: 0 0 12px; }
.section-heading h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.section-heading--inline { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.tiny-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { text-align: left; min-height: 310px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; transition: .25s ease; position: relative; overflow: hidden; }
.category-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: rgba(255,255,255,.26); }
.category-card--accent { background: var(--accent); color: #16070d; }
.category-card > span { font-family: Unbounded; font-size: 12px; opacity: .6; }
.category-card h3 { font-family: Unbounded; font-size: 34px; letter-spacing: -.06em; margin: 72px 0 14px; }
.category-card p { line-height: 1.55; opacity: .75; min-height: 76px; }
.category-card b { font-size: 12px; text-transform: uppercase; }

.day-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 36px; overflow: hidden; min-height: 430px; }
.day-card__visual { background: radial-gradient(circle at 30% 30%, rgba(255,61,115,.7), transparent 42%), linear-gradient(145deg, #34343a, #18181b); padding: 32px; display: flex; align-items: end; }
.day-avatar { opacity: .95; }
.day-card__content { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.day-card__content h3 { font-family: Unbounded; font-size: 42px; margin: 10px 0; letter-spacing: -.05em; }
.tag { display: inline-flex; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.rating { color: #ffd86b; font-weight: 800; margin: 8px 0 24px; }
.metric { margin-bottom: 14px; }
.metric__row { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.metric__bar { height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.metric__bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.day-card__quote { margin: 18px 0 24px; font-size: 20px; font-weight: 700; }

.catalog-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 26px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.filter-pill.is-active { background: var(--text); color: var(--bg); }
.toolbar-actions { display: flex; gap: 14px; align-items: center; }
.availability-toggle { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; cursor: pointer; }
.availability-toggle input { display: none; }
.availability-toggle span { width: 34px; height: 20px; background: var(--surface-2); border-radius: 999px; position: relative; transition: .2s; }
.availability-toggle span::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: .2s; }
.availability-toggle input:checked + span { background: var(--accent); }
.availability-toggle input:checked + span::after { transform: translateX(14px); }
.catalog-counter { color: var(--muted); font-size: 13px; }
.catalog-counter span { color: var(--text); font-weight: 800; }

.bub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bub-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: .25s ease; }
.bub-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); }
.bub-card__visual { height: 240px; padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(145deg, #28282d, #151517); position: relative; overflow: hidden; }
.bub-card__visual::after { content: none; }
.bub-emoji { position: absolute; right: 24px; bottom: 12px; width: 120px; height: 145px; display: flex; justify-content: center; align-items: flex-start; }
.bub-emoji span { position: relative; z-index: 2; font-size: 72px; line-height: 1; filter: saturate(.85); }
.bub-emoji i { position: absolute; left: 50%; bottom: 0; width: 112px; height: 72px; transform: translateX(-50%); border-radius: 52% 52% 24px 24px; background: #ff3d73; }
.bub-emoji i::before, .bub-emoji i::after { content: ''; position: absolute; top: -22px; width: 60px; height: 62px; border-radius: 50%; background: #ff3d73; }
.bub-emoji i::before { left: 2px; transform: rotate(8deg); }
.bub-emoji i::after { right: 2px; transform: rotate(-8deg); }
.bub-emoji--large { position: relative; right: auto; bottom: auto; width: 210px; height: 240px; margin: auto; }
.bub-emoji--large span { font-size: 118px; }
.bub-emoji--large i { width: 190px; height: 112px; }
.bub-emoji--large i::before, .bub-emoji--large i::after { width: 102px; height: 100px; top: -38px; }
.bub-emoji--profile { position: relative; right: auto; bottom: auto; width: 190px; height: 220px; margin: 0 auto; }
.bub-emoji--profile span { font-size: 108px; }
.bub-emoji--profile i { width: 175px; height: 105px; }
.bub-emoji--profile i::before, .bub-emoji--profile i::after { width: 94px; height: 94px; top: -34px; }
.bub-card:nth-child(3n+2) .bub-card__visual { background: radial-gradient(circle at 80% 20%, rgba(255,61,115,.6), transparent 40%), #202024; }
.bub-card:nth-child(3n+3) .bub-card__visual { background: radial-gradient(circle at 30% 20%, rgba(123,52,255,.55), transparent 38%), #202024; }
.favorite { position: relative; z-index: 2; border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 18px; }
.favorite.is-active { background: var(--accent); color: #16070d; }
.status { position: relative; z-index: 2; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.35); }
.status--off { color: #bbb; }
.bub-card__body { padding: 22px; }
.bub-card__head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.bub-card h3 { margin: 0 0 6px; font-family: Unbounded; font-size: 24px; letter-spacing: -.05em; }
.bub-card__id { color: var(--muted); font-size: 11px; }
.bub-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.mini-tag { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 8px; font-size: 10px; }
.bub-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bub-card__footer button { border: 0; background: transparent; color: var(--text); font-weight: 800; cursor: pointer; padding: 0; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 80px 20px; color: var(--muted); }
.empty-state h3 { color: var(--text); font-family: Unbounded; }

.match-banner { background: var(--accent); color: #19080e; border-radius: 38px; padding: 48px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.match-banner h2, .become h2 { font-size: clamp(42px, 6vw, 74px); max-width: 760px; }
.match-banner p:not(.eyebrow-text), .become p:not(.eyebrow-text) { max-width: 680px; line-height: 1.6; opacity: .75; }
.match-banner .eyebrow-text { color: #19080e; opacity: .7; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid div { padding: 32px 18px; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { display: block; font-family: Unbounded; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.07em; }
.stats-grid span { color: var(--muted); font-size: 12px; }
.stats > .tiny-note { margin-top: 14px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 28px; min-height: 250px; display: flex; flex-direction: column; }
.review-card div { color: #ffd86b; letter-spacing: .08em; }
.review-card p { font-size: 18px; line-height: 1.6; flex: 1; }
.review-card span { color: var(--muted); font-size: 12px; }

.become { border: 1px solid var(--line); border-radius: 38px; padding: 48px; display: flex; justify-content: space-between; align-items: end; gap: 30px; background: linear-gradient(135deg, rgba(255,61,115,.12), transparent 40%); }
.footer { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding: 40px 0 70px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer .logo { color: var(--text); }
.footer__legal { text-align: right; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(12px); }
.modal__panel { width: min(620px, 100%); max-height: 90vh; overflow: auto; position: relative; z-index: 2; border: 1px solid var(--line); border-radius: 30px; background: #17171a; padding: 32px; box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.modal__panel--bub { width: min(760px, 100%); }
.modal__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(0,0,0,.2); color: #fff; border-radius: 50%; cursor: pointer; font-size: 24px; z-index: 5; }
.modal h2 { font-family: Unbounded; font-size: 42px; letter-spacing: -.06em; margin: 14px 0; }
.modal p { color: var(--muted); line-height: 1.6; }
.profile-hero { min-height: 250px; border-radius: 22px; background: radial-gradient(circle at 70% 20%, rgba(255,61,115,.75), transparent 35%), #242429; display: flex; align-items: end; padding: 24px; margin-bottom: 24px; }
.profile-hero strong { font-family: Unbounded; font-size: 96px; opacity: .8; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.profile-stat { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.profile-stat span { color: var(--muted); font-size: 11px; }
.profile-stat strong { display: block; margin-top: 6px; }
.question { margin-top: 24px; }
.question h3 { font-size: 18px; }
.answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.answer { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.answer:hover, .answer.is-selected { background: var(--accent); color: #18080d; border-color: var(--accent); }
.match-progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 18px 0 28px; }
.match-progress span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.result-score { font-family: Unbounded; color: var(--accent); font-size: 76px; letter-spacing: -.08em; }

.toast { position: fixed; right: 24px; bottom: 24px; background: #fff; color: #111; padding: 14px 18px; border-radius: 16px; font-weight: 700; font-size: 12px; z-index: 100; transform: translateY(120px); opacity: 0; transition: .25s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
body.buba-mode .bub-card { animation: wobble .5s ease-in-out infinite alternate; }
body.buba-mode { --accent: #a8ff60; }
@keyframes wobble { from { transform: rotate(-.5deg); } to { transform: rotate(.5deg) translateY(-3px); } }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero__visual { min-height: 390px; }
  .category-grid, .bub-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .day-card { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(2) { border-right: 0; }
  .match-banner, .become { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  .header { padding: 18px 0; }
  .logo { font-size: 20px; }
  .hero { padding-bottom: 70px; gap: 20px; }
  .hero h1 { font-size: 58px; }
  .hero__copy > p { font-size: 16px; }
  .hero__visual { min-height: 330px; }
  .orb--one { width: 260px; height: 260px; }
  .hero-card { width: 280px; }
  section { margin-bottom: 90px; }
  .section-heading--inline { align-items: flex-start; flex-direction: column; }
  .category-grid, .bub-grid, .reviews-grid, .profile-grid, .answer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 250px; }
  .category-card h3 { margin-top: 48px; }
  .day-card__content { padding: 26px; }
  .day-card__content h3 { font-size: 32px; }
  .toolbar-actions { align-items: flex-start; flex-direction: column; }
  .match-banner, .become { padding: 30px; border-radius: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-grid div:last-child { border-bottom: 0; }
  .footer { flex-direction: column; }
  .footer__legal { text-align: left; }
  .modal__panel { padding: 24px; }
}

/* BUBANET generated category portraits */
.bub-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%; display: block;
  transition: transform .45s ease;
}
.bub-card:hover .bub-photo { transform: scale(1.045); }
.bub-card__visual .status, .bub-card__visual .favorite { position: relative; z-index: 3; }
.bub-card__visual::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,12,.12), transparent 45%, rgba(10,10,12,.48));
  pointer-events: none;
}
.day-card__visual { position: relative; overflow: hidden; padding: 0; min-height: 480px; }
.bub-photo--day { object-position: center 24%; }
.profile-hero { position: relative; overflow: hidden; min-height: 420px; border-radius: 22px; margin-bottom: 24px; }
.bub-photo--profile { object-position: center 22%; }
