:root {
    --bg: #07051a;
    --ink: #241404;
    --text: #f6f2ff;
    --muted: #b9b0cc;
    --yellow: #ffd84a;
    --yellow-2: #ffc400;
    --pink: #ff4f9a;
    --line: rgba(255, 255, 255, 0.1);
    --card: rgba(22, 14, 42, 0.82);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: Manrope, "Segoe UI", sans-serif;
    background-color: #07051a;
    background-image:
        radial-gradient(900px 480px at 82% 46%, rgba(140, 50, 220, 0.28), transparent 62%),
        radial-gradient(700px 420px at 0% 62%, rgba(255, 70, 150, 0.1), transparent 58%),
        radial-gradient(600px 400px at 72% 92%, rgba(70, 40, 180, 0.18), transparent 62%);
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 22% 28%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 8%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 63% 18%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 32%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 90% 10%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 15% 70%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 48% 86%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 84% 74%, #fff 50%, transparent 51%);
    opacity: 0.55;
    z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.wrap {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}
.page { position: relative; z-index: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(7, 5, 26, 0.72);
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 78px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Unbounded, Manrope, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(#ffe566, #f5b400);
    color: #3a2200;
    box-shadow: 0 6px 16px rgba(255, 196, 0, 0.35);
}
.logo-badge svg { width: 22px; height: 22px; }
.logo em { font-style: normal; color: var(--yellow); }

.nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: #ddd6ee;
    font-weight: 600;
    font-size: 15px;
}
.nav a:hover { color: var(--yellow); }
.header-actions { display: flex; gap: 10px; margin-left: 12px; align-items: center; }
.header-actions form { margin: 0; }
.header-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
    margin-right: 4px;
    font-weight: 800;
}
.header-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    transition: border-color .15s ease, color .15s ease;
}
.header-avatar .user-icon { width: 20px; height: 20px; }
a.header-user:hover .header-avatar,
a.header-user.is-current .header-avatar { border-color: var(--yellow-2); color: var(--yellow); }
a.header-user:hover, a.header-user.is-current { color: var(--yellow); }

.account { padding-top: 28px; }
.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}
.account-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(24, 20, 52, 0.72);
}
.account-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-nav { display: grid; gap: 4px; }
.account-nav a,
.account-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.account-nav svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.account-nav a:hover,
.account-nav button:hover { background: rgba(255, 255, 255, 0.07); color: var(--yellow); }
.account-nav a:focus-visible,
.account-nav button:focus-visible { outline: 2px solid var(--yellow-2); outline-offset: -2px; }
.account-nav a.is-active { background: var(--yellow-2); color: #14100a; }
.account-nav-count {
    margin-left: auto;
    color: inherit;
    font-size: 13px;
    font-style: normal;
    opacity: 0.7;
}
.account-nav-exit { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.account-nav-exit button { color: var(--muted); }
.account-main { min-width: 0; }
.account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 18px;
}
.account-head .all-quizzes-title { margin: 0; }
.account-head-btn { padding: 12px 22px; border-radius: 12px; background: var(--yellow-2); box-shadow: none; }
.account-main .quiz-empty { margin-top: 0; }
.account-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--yellow-2);
    border-radius: 50%;
    background: rgba(255, 196, 0, 0.1);
    color: var(--yellow);
}
.account-avatar .user-icon { width: 26px; height: 26px; }
.account-avatar img, .header-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.account-avatar:has(img) { overflow: hidden; background: none; }
.header-avatar:has(img), .account-btn:has(img) { overflow: hidden; border-color: var(--yellow-2); }
.account-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }

.game-profile {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: rgba(24, 20, 52, 0.72);
}
.game-profile-lead { margin: 0; color: var(--muted); }
.game-profile-saved {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(61, 220, 132, 0.14);
    color: #3ddc84;
    font-weight: 800;
}
.profile-field { display: grid; gap: 8px; max-width: 420px; font-weight: 800; }
.profile-field input {
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #120e2a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}
.profile-field input:focus { border-color: var(--yellow-2); box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.18); }
.profile-field input::placeholder { color: #7f789a; }
.profile-error { color: #ff9cc4; font-size: 14px; font-weight: 700; }
.profile-avatars { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-avatars-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.profile-avatars legend { float: left; padding: 0; font-weight: 800; }
.avatar-random {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid rgba(255, 196, 0, 0.55);
    border-radius: 999px;
    background: rgba(255, 196, 0, 0.1);
    color: var(--yellow);
    font-weight: 800;
    cursor: pointer;
}
.avatar-random svg { width: 18px; height: 18px; }
.game-profile .who-tabs {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: min(100%, 360px);
    margin-bottom: 14px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: #120e2a;
}
.game-profile .who-tabs button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.game-profile .who-tabs button[aria-selected="true"] { background: var(--yellow-2); color: #14100a; }
.game-profile .who-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
}
.profile-avatar { position: relative; display: block; aspect-ratio: 1; cursor: pointer; }
.profile-avatar input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.profile-avatar img,
.profile-avatar-default,
.profile-avatar.is-upload {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.profile-avatar img { opacity: 0.75; }
.profile-avatar:hover img { opacity: 1; }
.profile-avatar-default { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.profile-avatar-default .user-icon { width: 46%; height: 46%; }
.profile-avatar.is-upload {
    align-content: center;
    gap: 2px;
    border: 2px dashed rgba(255, 196, 0, 0.6);
    color: var(--yellow);
    text-align: center;
}
.profile-avatar.is-upload:hover { background: rgba(255, 196, 0, 0.08); }
.profile-avatar-plus { font-size: 24px; font-weight: 800; line-height: 1; }
.profile-avatar-caption { font-size: 10px; font-weight: 800; line-height: 1.1; }
.profile-avatar input:checked + img,
.profile-avatar input:checked + .profile-avatar-default {
    border-color: var(--yellow-2);
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.profile-avatar input:focus-visible + img,
.profile-avatar input:focus-visible + .profile-avatar-default,
.profile-avatar.is-upload:focus-within { box-shadow: 0 0 0 3px #fff; }
.profile-avatar.is-bounce img { animation: profile-bounce .35s ease; }
@keyframes profile-bounce {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.18); }
    100% { transform: scale(1.08); }
}
.profile-hint { margin: 12px 0 0; color: #9d97b5; font-size: 13px; }
.game-profile-save { justify-self: start; padding: 14px 34px; border-radius: 12px; background: var(--yellow-2); box-shadow: none; }
@media (max-width: 700px) {
    .game-profile { padding: 18px; }
    .profile-avatar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
    .profile-avatar-caption { display: none; }
    .game-profile-save { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .profile-avatar.is-bounce img { animation: none; }
}
.account-who { flex: 1 1 200px; min-width: 0; }
.account-who strong { display: block; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.account-who span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.account-games { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.account-game {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(24, 20, 52, 0.72);
}
.account-game img { display: block; width: 120px; aspect-ratio: 12 / 5; border-radius: 10px; object-fit: cover; background: #120a22; }
.account-game-title { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.account-game-title:hover { color: var(--yellow); }
.account-game-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.account-status {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d6d0e6;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.account-status.status-active { background: rgba(61, 220, 132, 0.16); color: #3ddc84; }
.account-status.status-finished { background: rgba(255, 196, 0, 0.14); color: var(--yellow); }
.account-game-go { padding: 10px 18px; border-radius: 12px; background: var(--yellow-2); box-shadow: none; }
@media (max-width: 700px) {
    .account { padding-top: 12px; }
    .account-game { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; }
    .account-game img { width: 88px; }
    .account-status { grid-column: 2; justify-self: start; }
    .account-game-go { grid-column: 1 / -1; }
}
/* On phones the side menu becomes a bar fixed to the bottom, always in reach of the thumb. */
@media (max-width: 860px) {
    .account-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .account-side { position: static; display: block; padding: 0; border: 0; background: none; }
    .account-avatar { width: 44px; height: 44px; }
    .account-avatar .user-icon { width: 22px; height: 22px; }
    .account-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 15;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 2px;
        padding: 6px;
        border-top: 1px solid rgba(255, 196, 0, 0.35);
        background: #120e2a;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    }
    .account-nav a,
    .account-nav button {
        position: relative;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-height: 54px;
        padding: 4px 2px;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }
    .account-nav-count { display: none; }
    .account-nav-exit { margin: 0; padding: 0; border: 0; }
    body:has(.account-nav) .site-footer { padding-bottom: 96px; }
}
[hidden] { display: none !important; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    border-radius: 999px;
    padding: 12px 22px;
    border: 1.5px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow {
    background: linear-gradient(#ffe566, var(--yellow-2));
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(255, 196, 0, 0.28);
}
.btn-yellow:hover { box-shadow: 0 12px 28px rgba(255, 196, 0, 0.4); }
.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: white;
}
.btn-ghost:hover { border-color: white; }
.account-btn {
    display: none;
    place-items: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: border-color .15s ease;
}
.account-btn:hover, .account-btn:focus-visible { border-color: var(--yellow-2); outline: none; }
.account-btn svg { width: 22px; height: 22px; }
.account-btn.is-current { border-color: var(--yellow-2); color: var(--yellow); }
.header-logout { display: none; }
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    position: relative;
    padding: 20px 0 8px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.hero-copy { position: relative; z-index: 2; padding: 24px 0 32px; }
.hero-eyebrow {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}
.hero h1 {
    font-family: Montserrat, Manrope, sans-serif;
    font-size: clamp(30px, 3.9vw, 50px);
    font-weight: 900;
    line-height: 1.06;
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.hero h1 span { color: var(--yellow-2); }
.hero-lead {
    max-width: 46ch;
    margin: 22px 0 30px;
    color: #f2eefb;
    font-size: 17px;
    line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn { padding: 16px 34px; font-size: 16px; border-radius: 14px; }
.hero .btn-yellow { background: var(--yellow-2); box-shadow: none; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.55); }

.hero-art {
    position: relative;
    align-self: end;
    aspect-ratio: 620 / 500;
    container-type: inline-size;
}
.hero-circle {
    position: absolute;
    left: 5%;
    top: 14%;
    width: 68cqi;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #8a3cff 0%, #6a1fe0 48%, #4a12a8 100%);
    box-shadow: 0 0 90px rgba(130, 50, 240, 0.55);
}
.hero-sir {
    position: absolute;
    left: 6%;
    top: 0;
    width: 66cqi;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
}
.hero-bubble {
    position: absolute;
    right: 0;
    top: 6%;
    margin: 0;
    padding: 0.7em 1em;
    border-radius: 0.9em;
    background: var(--yellow-2);
    color: #14100a;
    font-family: Montserrat, Manrope, sans-serif;
    font-size: 4.3cqi;
    font-style: italic;
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-4deg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.hero-bubble::after {
    content: "";
    position: absolute;
    left: -0.55em;
    bottom: 0.5em;
    border-style: solid;
    border-width: 0.55em 0.9em 0.55em 0;
    border-color: transparent var(--yellow-2) transparent transparent;
    transform: rotate(-24deg);
}

@media (max-width: 860px) {
    /* Copy children join the grid so the character can sit right under the heading. */
    .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 8px; text-align: center; }
    .hero-copy { display: contents; }
    .hero-eyebrow { order: 1; }
    .hero h1 { order: 2; font-size: clamp(28px, 6.4vw, 46px); }
    .hero-art { order: 3; width: min(100%, 460px); margin: 14px auto 0; }
    .hero-lead { order: 4; margin: 18px auto 24px; }
    .hero-actions { order: 5; justify-content: center; }
}
@media (max-width: 700px) {
    /* Compact first screen on phones. */
    .logo img { height: 52px; }
    .hero { padding: 4px 0 4px; }
    .hero-grid { padding-top: 0; }
    .hero-eyebrow { display: none; }
    .hero-art { width: min(100%, 340px); margin-top: 6px; }
    .hero-lead { margin: 12px auto 18px; }
}
@media (max-width: 520px) {
    .hero h1 { font-size: clamp(24px, 7.4vw, 30px); }
    .hero-lead { font-size: 14px; line-height: 1.45; }
    .hero-actions { display: grid; gap: 10px; justify-content: stretch; }
    .hero-actions .btn { width: 100%; padding: 13px 20px; font-size: 15px; }
}

.how-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.how-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(24, 20, 52, 0.72);
}
.how-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--yellow-2);
    color: #14100a;
    font-family: Montserrat, Manrope, sans-serif;
    font-size: 22px;
    font-weight: 900;
}
.how-step h2 {
    margin: 0 0 6px;
    font-family: Manrope, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.how-step p { margin: 0; max-width: 70ch; color: #d6d0e6; font-size: 15px; line-height: 1.5; }
.how-icon { width: 40px; height: 40px; }
.how-icon.icon-teal { color: #3dd6d0; }
.how-icon.icon-yellow { color: var(--yellow-2); }
.how-needs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.how-needs .card {
    padding: 22px 20px;
    border-radius: 14px;
    background: rgba(24, 20, 52, 0.72);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}
.how-needs h3 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.how-needs p { font-size: 14px; }
.how-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 32px;
    padding: 26px 28px;
    border-radius: 16px;
    background: linear-gradient(120deg, #5a18c4, #8a3cff);
}
.how-cta p { margin: 0; font-family: Montserrat, Manrope, sans-serif; font-size: clamp(18px, 2vw, 24px); font-weight: 900; }
.how-cta .btn { padding: 16px 34px; border-radius: 14px; background: var(--yellow-2); box-shadow: none; }
@media (max-width: 700px) {
    .how-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 16px; align-items: start; }
    .how-num { width: 44px; height: 44px; font-size: 19px; }
    .how-icon { display: none; }
    .how-needs { grid-template-columns: 1fr; }
    .how-cta { justify-content: center; text-align: center; }
    .how-cta .btn { width: 100%; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd0e6;
    font-weight: 700;
    margin-bottom: 12px;
}
.lead {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 22px 0 26px;
}

.logo img {
    height: 68px;
    width: auto;
    display: block;
}
.cta-logo {
    width: 170px;
    height: auto;
    display: block;
    justify-self: center;
}

.section { padding: 34px 0; }
section[id], h2[id], h3[id] { scroll-margin-top: 92px; }
.muted { color: var(--muted); }
.crumbs { color: var(--muted); font-weight: 700; margin: 0 0 18px; }
.crumbs a { color: var(--yellow); }
.all-quizzes { margin-top: 24px; }
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.quiz-browser-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}
.quiz-filters {
    display: flex;
    flex: 1 1 560px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}
.quiz-search,
.quiz-select {
    position: relative;
    display: flex;
    align-items: center;
}
.quiz-search { flex: 1 1 220px; max-width: 360px; }
.quiz-search svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9d97b5;
    pointer-events: none;
}
.quiz-search input,
.quiz-select select {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(24, 20, 52, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .15s ease;
}
.quiz-search input { padding: 0 14px 0 40px; }
.quiz-search input::placeholder { color: #8f88a8; }
.quiz-search input:focus,
.quiz-select select:focus { border-color: var(--yellow-2); }
.quiz-select::after {
    content: "";
    position: absolute;
    right: 15px;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}
.quiz-select select {
    min-width: 150px;
    padding: 0 38px 0 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.quiz-select select option { background: #17132f; color: #fff; }

/* Custom dropdown (quiz-select.js); the native select stays hidden in the form. */
.quiz-select.is-custom select {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}
.quiz-select-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 150px;
    height: 44px;
    padding: 0 38px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(24, 20, 52, 0.85);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.quiz-select-button:hover { border-color: rgba(255, 255, 255, 0.3); }
.quiz-select-button:focus-visible { outline: none; border-color: var(--yellow-2); }
.quiz-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz-select.has-value .quiz-select-button {
    border-color: rgba(255, 196, 0, 0.6);
    background: rgba(255, 196, 0, 0.1);
    color: var(--yellow);
}
.quiz-select.is-open .quiz-select-button { border-color: var(--yellow-2); }
.quiz-select.is-custom::after { transition: transform .15s ease, margin .15s ease; }
.quiz-select.has-value::after { color: var(--yellow); }
.quiz-select.is-open::after { margin-top: 3px; transform: rotate(-135deg); }
.quiz-select-list {
    position: absolute;
    z-index: 15;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(300px, calc(100vw - 32px));
    max-height: 320px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #1a1638;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    outline: none;
    animation: quiz-select-in .14s ease-out;
}
.quiz-select.opens-left .quiz-select-list { left: auto; right: 0; }
@keyframes quiz-select-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
.quiz-select-option {
    position: relative;
    padding: 10px 36px 10px 12px;
    border-radius: 9px;
    color: #e9e5f5;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.quiz-select-option:first-child { color: #a59fbd; }
.quiz-select-option.is-active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.quiz-select-option[aria-selected="true"] { color: var(--yellow); }
.quiz-select-option[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 5px;
    height: 10px;
    margin-top: -7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
    .quiz-select-list { animation: none; }
}
.quiz-results { transition: opacity .15s ease; }
.quiz-browser.is-loading .quiz-results { opacity: 0.5; }
.quiz-empty {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 48px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #d6d0e6;
    text-align: center;
}
.quiz-empty p { margin: 0; font-size: 16px; }
.quiz-results .pager { justify-content: center; }
@media (max-width: 700px) {
    .quiz-filters { flex-basis: 100%; justify-content: stretch; }
    .quiz-search { flex-basis: 100%; max-width: none; }
    .quiz-filters { gap: 10px; }
    .quiz-select { flex: 1 1 140px; min-width: 0; }
    .quiz-select select,
    .quiz-select-button { min-width: 0; padding-left: 14px; padding-right: 34px; }
}
.all-quizzes-title {
    font-family: Montserrat, Manrope, sans-serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 900;
    letter-spacing: -0.01em;
}
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.quiz-card {
    display: flex;
    flex-direction: column;
    background: rgba(24, 20, 52, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.quiz-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.22); }
.quiz-card img {
    display: block;
    width: 100%;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    background: #120a22;
}
.quiz-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 16px 18px;
}
.quiz-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quiz-card h2, .quiz-card h3 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.quiz-age {
    flex: none;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
}
.quiz-card-text {
    margin: 0;
    color: #d6d0e6;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.quiz-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: auto 0 0;
    padding: 6px 0 0;
    list-style: none;
    color: #e9e5f5;
    font-size: 13px;
    font-weight: 600;
}
.quiz-facts li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.quiz-facts svg { width: 16px; height: 16px; flex: none; color: #9d97b5; }
.quiz-level svg { color: currentColor; }
.level-easy { color: #3ddc84; }
.level-medium { color: var(--yellow-2); }
.level-hard { color: #ff4d4d; }
.quiz-detail {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.quiz-detail video { width: 100%; border-radius: 24px; background: #000; max-height: 70vh; }
.quiz-detail h1 { font-size: clamp(32px, 4vw, 52px); margin: 12px 0; text-transform: uppercase; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 22px; font-weight: 700; }
.nav a.is-current { color: var(--yellow); }
.benefits, .steps, .themes {
    display: grid;
    gap: 16px;
}
.benefits { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; margin: 12px 0 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.45; }
.icon-blob {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 216, 74, 0.14);
    color: var(--yellow);
}
.icon-blob svg { width: 26px; height: 26px; }
.benefits .card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
    align-content: start;
    padding: 22px 20px;
    border-radius: 14px;
    background: rgba(24, 20, 52, 0.72);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}
.benefits .icon-blob {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: none;
}
.benefits .icon-blob svg { width: 40px; height: 40px; }
.benefits .icon-teal { color: #3dd6d0; }
.benefits .icon-yellow { color: var(--yellow-2); }
.benefits .card h3 {
    margin: 0;
    align-self: center;
    font-family: Manrope, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.benefits .card p { font-size: 14px; line-height: 1.4; }

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.section-title span { color: var(--yellow); }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}
.section-head p { margin: 0; max-width: 360px; color: var(--muted); }
.section-head .section-title { margin: 0; }

.themes { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.taste .themes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.theme {
    border-radius: 26px;
    padding: 18px 16px 16px;
    min-height: 250px;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #8d4dff, #5a27c2);
}
.theme svg { width: 54px; height: 54px; }
.theme-cover { width: 100%; height: 108px; object-fit: contain; display: block; }
.theme h3 {
    margin: 14px 0 6px;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.theme p { margin: 0; color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.35; }
.theme-go {
    margin-top: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    align-self: start;
}
.theme-go svg { width: 16px; height: 16px; }
.taste .theme {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 112px 14px 14px;
}
.taste .theme-cover {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 12px;
    width: auto;
    height: 78px;
    max-width: 88%;
    margin: 0;
    transform: translateX(-50%);
    object-fit: contain;
    pointer-events: none;
}
.taste .theme-cover.is-fill {
    left: -10%;
    top: -10%;
    width: 120%;
    height: 120%;
    max-width: none;
    transform: none;
    object-fit: cover;
    object-position: center center;
}
.taste .theme:has(.theme-cover.is-fill) {
    padding-top: 132px;
}
.taste .theme > svg {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 16px;
    width: 72px;
    height: 72px;
    max-width: none;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
}
.taste .theme h3,
.taste .theme p,
.taste .theme .theme-go { position: relative; z-index: 1; }
.taste .theme h3 { margin-top: 0; }
.taste .theme .theme-go { margin-top: 12px; }
.theme-cinema { background: linear-gradient(180deg, #4f8dff, #2d62f2); }
.theme-games { background: linear-gradient(180deg, #ff4fd0, #e218b4); }
.theme-world { background: linear-gradient(180deg, #2ad8ea, #12b4d4); }
.theme-music { background: linear-gradient(180deg, #b44cff, #8a2de6); }
.theme-logic { background: linear-gradient(180deg, #ffe14a, #f5c400); color: #241404; }
.theme-logic p { color: rgba(36, 20, 4, 0.78); }
.theme-logic .theme-go { border-color: rgba(36, 20, 4, 0.45); color: #241404; }

.format {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.living {
    position: relative;
    border-radius: 32px;
    min-height: 430px;
    overflow: hidden;
    background:
        radial-gradient(400px 220px at 20% 80%, rgba(255, 170, 70, 0.35), transparent 60%),
        linear-gradient(180deg, #2a1848, #120a22 70%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.tv {
    width: min(430px, 86%);
    margin: 36px auto 0;
    background: #1b1030;
    border: 10px solid #2a1c48;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.tv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-logo { font-family: Unbounded, sans-serif; color: var(--yellow); font-size: 13px; font-weight: 800; }
.timer {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid #7d5cff;
    font-weight: 800;
}
.tv h3 { font-size: 20px; line-height: 1.25; margin-bottom: 14px; text-transform: none; letter-spacing: -0.03em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answers span {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
}
.answers span:nth-child(1) { background: #1f9d72; }
.answers span:nth-child(2) { background: #f08a24; }
.answers span:nth-child(3) { background: #3d7dff; }
.answers span:nth-child(4) { background: #8d4dff; }
.viewers {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 8px;
}
.viewer { width: 120px; }
.format-copy h2 { margin-bottom: 14px; }
.format-copy .lead { margin-top: 0; }
.format-list { display: grid; gap: 12px; }
.format-list article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
}
.side-note {
    margin-top: 18px;
    display: inline-block;
    transform: rotate(-3deg);
    font-family: "Shantell Sans", cursive;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffe14a;
    font-size: 22px;
    max-width: 280px;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: center;
}
.slogan {
    font-family: "Shantell Sans", cursive;
    font-size: 34px;
    line-height: 1.05;
    text-transform: uppercase;
    margin: 12px 0 8px;
}
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.person { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #241404;
    background: var(--yellow);
}
.person small { display: block; color: var(--muted); }
.stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 8px; }
.review p { margin: 0; line-height: 1.45; }

.cta {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 12px;
    align-items: center;
    padding: 28px;
    border-radius: 36px;
    background:
        radial-gradient(400px 180px at 80% 0%, rgba(255, 216, 74, 0.16), transparent 60%),
        linear-gradient(90deg, rgba(40, 18, 70, 0.2), rgba(18, 10, 36, 0.4));
    border: 1px solid var(--line);
}
.cta-logo { width: 170px; }
.cta h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 10px; }
.cta p { margin: 0 0 16px; color: var(--muted); }
.ready {
    justify-self: end;
    background: #7a45f5;
    color: white;
    border-radius: 24px;
    padding: 14px 16px;
    font-family: "Shantell Sans", cursive;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(4deg);
    max-width: 180px;
}

.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; }
.bullets { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li + li { margin-top: 6px; }

.site-footer { padding: 28px 0 40px; color: #c9c1da; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
}
.socials svg { width: 16px; height: 16px; }
.copy { width: 100%; color: #8f86a3; font-size: 13px; }

@media (max-width: 1020px) {
    .format, .reviews-layout, .cta, .extra-grid, .quiz-detail { grid-template-columns: 1fr; }
    .benefits, .steps, .quiz-grid { grid-template-columns: 1fr 1fr; }
    .themes { grid-template-columns: 1fr 1fr; }
    .cta-logo, .ready { justify-self: start; }
    .header-inner { gap: 8px; }
    .account-btn { display: grid; }
    .menu-toggle { display: flex; margin-left: 0; }
    .nav { display: none; }
    .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 6px 18px 18px;
        background: #0c091c;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
        gap: 0;
        z-index: 30;
    }
    .nav.is-open > a {
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 16px;
    }
    .nav.is-open .header-actions {
        margin: 14px 0 0;
        width: 100%;
        display: grid;
        gap: 10px;
    }
    .nav.is-open .header-actions .btn { width: 100%; }
    .nav.is-open .header-logout { display: block; }
}

@media (max-width: 700px) {
    .wrap { width: min(var(--container), calc(100% - 28px)); }
    .section-benefits { display: none; }
    #quizzes { padding-top: 14px; }
    #quizzes .all-quizzes { margin-top: 0; }
    .quiz-browser-head { gap: 14px; }
    .quiz-grid { margin-top: 18px; }
    .benefits, .steps, .themes, .review-row, .quiz-grid { grid-template-columns: 1fr; }
}

.q-page { padding: 18px 0 48px; }
.q-page .crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; font-size: 14px; }
.q-page .crumbs span { opacity: 0.45; }
.q-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 36px;
    align-items: center;
    position: relative;
}
.q-hero::before {
    content: "";
    position: absolute;
    right: 0;
    top: -80px;
    width: min(560px, 50vw);
    height: 560px;
    background: radial-gradient(circle, rgba(168, 70, 255, 0.42), transparent 68%);
    pointer-events: none;
    z-index: 0;
}
.q-hero-copy, .q-poster { position: relative; z-index: 1; }
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.q-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px;
    font-weight: 800;
}
.q-pill-easy { background: #2f8f63; border-color: transparent; }
.q-pill-medium { background: #ffd84a; color: #241404; border-color: transparent; }
.q-pill-hard { background: #ff4f9a; border-color: transparent; }
.q-hero h1 {
    margin: 0;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.q-kicker { margin: 14px 0 0; color: var(--yellow); font-weight: 800; font-size: 18px; }
.q-lead { margin: 12px 0 0; max-width: 560px; color: #ddd6ee; font-size: 17px; line-height: 1.5; }
.q-stats { display: flex; flex-wrap: wrap; gap: 18px 26px; list-style: none; padding: 22px 0 0; margin: 0; }
.q-stats li { display: flex; gap: 10px; align-items: center; min-width: 120px; }
.q-stats svg { width: 28px; height: 28px; color: var(--yellow); flex: none; }
.q-stats strong { display: block; font-size: 16px; }
.q-stats span span, .q-stats li > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.q-stats strong { color: white; }
.q-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.q-poster {
    justify-self: end;
    width: min(100%, 560px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #120a22;
    box-shadow: 0 30px 80px rgba(90, 20, 160, 0.4);
    animation: q-rise .7s ease-out both .15s;
}
.q-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.q-letter {
    display: inline-block;
    animation:
        q-letter-in .55s cubic-bezier(.2, .9, .3, 1.25) both,
        q-letter-wave 7s ease-in-out infinite;
    animation-delay:
        calc(var(--i) * 28ms),
        calc(1.6s + var(--i) * 70ms);
}
.q-word { display: inline-block; white-space: nowrap; }
@keyframes q-letter-in {
    from { opacity: 0; transform: translateY(0.55em) rotate(6deg); }
    to { opacity: 1; transform: none; }
}
@keyframes q-letter-wave {
    0%, 8%, 100% { color: inherit; text-shadow: none; }
    4% { color: var(--yellow); text-shadow: 0 0 22px rgba(255, 216, 74, 0.65); }
}
@keyframes q-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.q-kicker, .q-lead, .q-stats li, .q-actions { animation: q-rise .55s ease-out both; }
.q-kicker { animation-delay: .35s; }
.q-lead { animation-delay: .45s; }
.q-stats li { animation-delay: calc(.55s + var(--i, 0) * 60ms); }
.q-actions { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) {
    .q-letter, .q-poster, .q-kicker, .q-lead, .q-stats li, .q-actions { animation: none; }
}
.q-tabs {
    display: flex;
    gap: 8px 28px;
    flex-wrap: wrap;
    margin: 34px 0 8px;
    border-bottom: 1px solid var(--line);
}
.q-tabs a {
    padding: 12px 0;
    color: var(--muted);
    font-weight: 800;
}
.q-tabs a[aria-current="true"] { color: white; box-shadow: inset 0 -2px 0 var(--yellow); }
.q-block { padding: 34px 0 8px; scroll-margin-top: 96px; }
.q-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.q-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.q-split p { margin: 0; color: #ddd6ee; font-size: 17px; line-height: 1.55; max-width: 560px; }
.q-expect, .q-play-note, .q-features article {
    background: rgba(16, 10, 32, 0.88);
    border: 1px solid var(--line);
    border-radius: 24px;
}
.q-expect { padding: 22px 22px 8px; position: relative; }
.q-expect-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.q-expect h3, .q-play-note h3, .q-features h3 {
    margin: 0;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 18px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}
.q-sticker {
    font-family: "Shantell Sans", cursive;
    color: #7dffb2;
    font-weight: 800;
    line-height: 1.05;
    transform: rotate(8deg);
    text-align: right;
}
.q-expect ul { list-style: none; padding: 8px 0 12px; margin: 0; }
.q-expect li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 700; }
.q-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    background: rgba(255, 216, 74, 0.14);
    color: var(--yellow);
    font-weight: 800;
}
.q-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.q-features article { padding: 20px 18px 18px; min-height: 150px; }
.q-features .q-ico { width: 44px; height: 44px; margin-bottom: 14px; }
.q-features .q-ico svg { width: 24px; height: 24px; }
.q-ico svg { display: block; width: 20px; height: 20px; }
.q-features p, .q-play-note p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.q-play { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: stretch; }
.q-play video {
    width: 100%;
    min-height: 280px;
    max-height: 70vh;
    border-radius: 28px;
    background: #000;
    border: 1px solid var(--line);
}
.q-play-note { padding: 28px 22px; display: flex; flex-direction: column; justify-content: center; }
.q-ico-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; margin-bottom: 14px; }
.q-play-note .btn { margin-top: 18px; align-self: flex-start; }
.q-similar-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.q-similar-head a { flex: none; margin-bottom: 18px; color: var(--yellow); font-weight: 800; white-space: nowrap; }

@media (max-width: 980px) {
    .q-hero, .q-split, .q-play, .q-features { grid-template-columns: 1fr 1fr; }
    .q-hero { grid-template-columns: 1fr; }
    .q-hero::before { display: none; }
    .q-poster { justify-self: stretch; width: 100%; max-width: 640px; margin: 0 auto; }
    .q-play { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .q-features, .q-split { grid-template-columns: 1fr; }
    .q-stats { gap: 14px 12px; }
    .q-stats li { flex: 1 1 calc(50% - 12px); min-width: 0; }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 4, 12, 0.78);
}
.auth-card {
    position: relative;
    width: min(440px, 100%);
    padding: 28px 24px 24px;
    border-radius: 28px;
    background: #140d28;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
}
.auth-card h2 {
    margin: 0 0 16px;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 32px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 6px; font-weight: 800; }
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0d091c;
    color: white;
    padding: 12px 14px;
}
.auth-card [data-auth-code] {
    display: grid;
    gap: 8px;
}
.auth-card [data-auth-code] .btn-code,
.auth-card [data-auth-password] .btn-yellow { margin-top: 10px; }
.auth-code-step { display: grid; gap: 12px; }
.auth-code-step h2 { margin-bottom: 4px; }
.auth-sent,
.auth-hint { margin: 0; color: #ddd6ee; font-weight: 600; line-height: 1.45; }
.auth-sent strong { color: white; font-weight: 800; }
.auth-back {
    justify-self: start;
    margin: 4px 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #f4e028;
    font-weight: 800;
    cursor: pointer;
}
.auth-code-step input:focus {
    outline: none;
    border-color: #f4e028;
}
.auth-renew {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: transparent;
    color: #f4e028;
}
.auth-renew:disabled {
    color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    cursor: default;
    transform: none;
}
.auth-wait { margin: 0; color: #ddd6ee; font-weight: 700; text-align: center; }
.auth-card label.auth-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    color: #f4f1ff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}
.auth-card label.auth-check input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex: none;
    accent-color: #f4e028;
}
.auth-card label.auth-check a { color: #f4e028; text-decoration: underline; }
.auth-card .btn-yellow,
.auth-card .btn-code { width: 100%; border: 0; }
.auth-card .btn-code { background: #f4e028; color: #1a1208; }
.auth-card .btn-code:disabled {
    background: #6a6124;
    color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    cursor: default;
    transform: none;
}
.auth-resend {
    border: 0;
    background: transparent;
    color: #f4e028;
    font-weight: 800;
    cursor: pointer;
}
.auth-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #8f86a3;
    font-weight: 700;
}
.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}
.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.auth-error { margin: 0 0 12px; color: #ffb3d4; font-weight: 700; }
/* Side by side while both fit, one under the other on the narrowest phones. */
.auth-social { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-social .btn {
    flex: 1 1 172px;
    width: auto;
    min-width: 0;
    border: 0;
    border-radius: 16px;
    padding: 11px 8px;
    font-size: 13px;
    white-space: nowrap;
}
.auth-social .auth-mark { margin-right: 0; }
.auth-yandex { background: #fff; color: #1a1208; }
.auth-vk { background: #0077ff; color: white; }
.auth-mark {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: #fc3f1d;
    color: white;
    font-size: 12px;
    font-weight: 800;
}
.auth-vk .auth-mark { border-radius: 6px; background: white; color: #0077ff; font-size: 10px; }
.auth-legal {
    margin: 14px 0 0;
    color: #8f86a3;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}
.auth-legal a { color: #f4e028; text-decoration: underline; }

.legal { max-width: 820px; padding: 48px 0 72px; }
.legal h1 {
    margin: 0;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.legal-meta { margin: 12px 0 28px; color: var(--muted); font-weight: 700; }
.legal h2 {
    margin: 28px 0 10px;
    font-family: Unbounded, Manrope, sans-serif;
    font-size: 22px;
    letter-spacing: -0.03em;
}
.legal p, .legal li { color: #ddd6ee; line-height: 1.55; }
.legal a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
