html {
    /* Kompenserar för fixed header vid ankarlänkar */
    scroll-padding-top: calc(var(--qb-header-height, 3.5rem) + 1rem);
}

.qb-body {
    background: var(--qb-bg);
    color: var(--qb-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--qb-header-height, 3.5rem);
}

.qb-main {
    flex: 1;
}

.qb-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.qb-logo__img {
    display: block;
    height: 2.5rem;
    width: auto;
    max-width: 10rem;
}

.qb-hero {
    background: linear-gradient(180deg, var(--qb-surface) 0%, var(--qb-bg) 100%);
}

.qb-hero--image {
    position: relative;
    min-height: clamp(22rem, 52vh, 32rem);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: none;
}

.qb-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.qb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.qb-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.qb-hero--image h1 {
    color: #fff;
}

.qb-hero__title {
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.qb-hero__brand {
    display: block;
    font-size: 1.22em;
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.qb-hero__tagline {
    display: block;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.3;
}

.qb-hero__grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.qb-hero__mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
}

.qb-hero__mascot-img {
    display: block;
    width: auto;
    max-width: min(100%, calc(14rem + 100px));
    height: auto;
    max-height: clamp(calc(9rem + 100px), 32vh, calc(18rem + 100px));
    object-fit: contain;
}

@media (min-width: 992px) {
    .qb-hero__grid--three-col {
        grid-template-columns: 2fr 1fr 2fr;
        gap: 1.75rem 2rem;
    }

    .qb-hero__grid--three-col .qb-hero__mascot {
        min-height: 100%;
        align-self: stretch;
    }

    .qb-hero__grid--three-col .qb-hero__mascot-img {
        max-width: min(100%, calc(20rem + 100px));
        max-height: min(calc(20rem + 100px), 42vh);
    }
}

.qb-hero__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .qb-hero__aside {
        align-items: flex-end;
    }

    .qb-hero__grid--three-col .qb-hero__aside .qb-hero-platforms {
        justify-content: flex-end;
    }
}

.qb-hero__lead {
    color: rgba(255, 255, 255, 0.88);
}

.qb-home-lead {
    white-space: pre-line;
}

.qb-hero__seo-links {
    font-size: 0.9rem;
}

.qb-hero__seo-links a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.qb-hero__seo-links a:hover {
    color: #fff;
}

.qb-hero-pin {
    width: 100%;
    max-width: 24rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.qb-hero-pin__title {
    font-weight: 700;
    color: var(--tblr-body-color, #1e293b);
}

.qb-hero-pin__row {
    display: flex;
    gap: 0.5rem;
}

.qb-hero-pin__input {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.18em;
    min-width: 0;
}

.qb-hero-pin__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.qb-hero-pin__hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--tblr-secondary, #64748b);
}

.qb-home-faq__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.qb-home-faq__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-home-faq__img {
    display: block;
    width: auto;
    max-width: min(100%, 16rem);
    height: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .qb-home-faq__grid--media {
        grid-template-columns: 3fr 7fr;
        gap: 3rem;
    }

    .qb-home-faq__img {
        max-width: min(100%, calc(22rem + 100px));
    }
}

.qb-home-faq .accordion-item {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-home-faq .accordion-button {
    font-weight: 600;
}

.qb-home-cta-band__panel {
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--qb-accent-rgb), 0.14) 0%, rgba(var(--qb-accent-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--qb-accent-rgb), 0.2);
}

.qb-home-cta-band__text {
    max-width: 34rem;
    margin-inline: auto;
    color: var(--tblr-secondary, #64748b);
}

.qb-hero-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 24rem;
    margin: 0;
    padding: 0;
}

.qb-hero-platforms__item {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.qb-hero-platforms__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    background: var(--qb-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.qb-hero-platforms--on-image .qb-hero-platforms__chip {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qb-hero-platforms__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.qb-hero-platforms--on-image .qb-hero-platforms__icon {
    background: rgba(255, 255, 255, 0.16);
}

.qb-hero-platforms__img {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    object-fit: contain;
}

.qb-hero-platforms__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tblr-body-color, #1e293b);
}

.qb-hero-platforms--on-image .qb-hero-platforms__label {
    color: rgba(255, 255, 255, 0.94);
}

.qb-home-scroll {
    position: relative;
    z-index: 2;
    background: var(--qb-bg);
    border-radius: 1.25rem 1.25rem 0 0;
    margin-top: -1.25rem;
    box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.14);
}

.qb-home-top-played {
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Kompakt omslag i topp 3 — samma kort som katalogen, kortare media */
.qb-home-top-played .qb-home-quiz-card__media,
.qb-home-top-played .qb-home-quiz-card__media--placeholder {
    aspect-ratio: 16 / 3.5;
    min-height: 0;
}

@media (max-width: 767.98px) {
    .qb-home-top-played {
        padding-top: 1.5rem;
    }

    .qb-home-top-played .qb-home-quiz-card__media,
    .qb-home-top-played .qb-home-quiz-card__media--placeholder {
        aspect-ratio: 16 / 4.5;
    }
}

.qb-home-news {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-news__head {
    margin-bottom: 1.25rem;
}

.qb-home-news__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qb-home-news__card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(var(--qb-accent-rgb), 0.25);
    background:
        linear-gradient(135deg, rgba(var(--qb-accent-rgb), 0.12) 0%, rgba(var(--qb-accent-rgb), 0.03) 60%),
        var(--qb-surface, #fff);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.qb-home-news__media {
    flex: 0 0 auto;
}

.qb-home-news__img {
    display: block;
    width: clamp(140px, 18vw, 220px);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.18));
}

.qb-home-news__body {
    min-width: 0;
}

.qb-home-news__badge {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.qb-home-news__title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.qb-home-news__text {
    max-width: 46rem;
    font-size: 1.0625rem;
}

.qb-home-news__text--muted {
    color: var(--tblr-secondary, #64748b);
}

.qb-home-news__body {
    flex: 1 1 auto;
}

.qb-home-news__phone-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qb-home-how__mock--nearest {
    gap: 0.45rem;
    justify-content: flex-start;
}

.qb-ps-nearest-mock {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-height: 0;
}

.qb-ps-nearest-mock__hint {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.45rem;
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.35) 0%, rgba(71, 85, 105, 0.55) 100%),
        radial-gradient(circle at 35% 40%, rgba(251, 191, 36, 0.45) 0%, transparent 55%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.qb-ps-nearest-mock__clue {
    margin: 0;
    font-size: 0.625rem;
    line-height: 1.35;
    font-weight: 600;
    color: #334155;
}

.qb-ps-nearest-mock__map {
    position: relative;
    flex: 1 1 auto;
    min-height: 4.5rem;
    border-radius: 0.45rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, #1d4ed8 0%, #0f766e 45%, #14532d 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.qb-ps-nearest-mock__map::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.06) 0,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px,
            transparent 0.55rem
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 0.55rem
        );
}

.qb-ps-nearest-mock__pin {
    position: absolute;
    left: 58%;
    top: 42%;
    width: 0.55rem;
    height: 0.55rem;
    margin: -0.55rem 0 0 -0.275rem;
    border-radius: 50% 50% 50% 0;
    background: var(--qb-accent);
    transform: rotate(-45deg);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
    animation: qb-ps-nearest-mock-pin 4s ease-in-out infinite alternate;
}

@keyframes qb-ps-nearest-mock-pin {
    0% {
        left: 58%;
        top: 42%;
    }

    100% {
        left: 41%;
        top: 56%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qb-ps-nearest-mock__pin {
        animation: none;
    }
}

.qb-tl-mock__year {
    position: relative;
    height: 1.7rem;
}

.qb-tl-mock__year-value {
    position: absolute;
    inset: 0;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.7rem;
    font-variant-numeric: tabular-nums;
    color: var(--qb-accent);
    opacity: 0;
}

.qb-tl-mock__year-value--1 {
    animation: qb-tl-mock-year1 5s ease-in-out infinite alternate;
}

.qb-tl-mock__year-value--2 {
    animation: qb-tl-mock-year2 5s ease-in-out infinite alternate;
}

.qb-tl-mock__year-value--3 {
    opacity: 1;
    animation: qb-tl-mock-year3 5s ease-in-out infinite alternate;
}

.qb-tl-mock__slider {
    position: relative;
    padding-top: 0.35rem;
}

.qb-tl-mock__track {
    position: relative;
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
}

.qb-tl-mock__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 68%;
    border-radius: inherit;
    background: var(--qb-accent);
    animation: qb-tl-mock-fill 5s ease-in-out infinite alternate;
}

.qb-tl-mock__thumb {
    position: absolute;
    top: 50%;
    left: 68%;
    width: 1.05rem;
    height: 1.05rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--qb-accent);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
    animation: qb-tl-mock-drag 5s ease-in-out infinite alternate;
}

.qb-tl-mock__finger {
    position: absolute;
    top: 0.7rem;
    left: 68%;
    transform: translateX(-42%);
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.25));
    animation: qb-tl-mock-drag 5s ease-in-out infinite alternate;
}

.qb-tl-mock__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 1.45rem;
    font-size: 0.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--tblr-secondary, #6c757d);
}

@keyframes qb-tl-mock-drag {
    0%, 18% { left: 24%; }
    42%, 58% { left: 50%; }
    82%, 100% { left: 68%; }
}

@keyframes qb-tl-mock-fill {
    0%, 18% { width: 24%; }
    42%, 58% { width: 50%; }
    82%, 100% { width: 68%; }
}

@keyframes qb-tl-mock-year1 {
    0%, 24% { opacity: 1; }
    36%, 100% { opacity: 0; }
}

@keyframes qb-tl-mock-year2 {
    0%, 32% { opacity: 0; }
    44%, 56% { opacity: 1; }
    68%, 100% { opacity: 0; }
}

@keyframes qb-tl-mock-year3 {
    0%, 68% { opacity: 0; }
    82%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .qb-tl-mock__year-value,
    .qb-tl-mock__fill,
    .qb-tl-mock__thumb,
    .qb-tl-mock__finger {
        animation: none;
    }
}

/* "Så här spelar du" – steg med animerade telefoner */

.qb-htp-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 0 3rem;
}

.qb-htp-step {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 2.25rem;
    border-radius: 1.25rem;
    background: var(--qb-surface, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qb-htp-step:nth-child(even) {
    flex-direction: row-reverse;
}

.qb-htp-step__content {
    flex: 1 1 auto;
    min-width: 0;
}

.qb-htp-step__heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.qb-htp-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-size: 1.125rem;
    font-weight: 800;
}

.qb-htp-step__text {
    max-width: 38rem;
    font-size: 1.0625rem;
    margin-bottom: 1rem;
}

.qb-htp-step__points {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    color: var(--tblr-secondary, #64748b);
    font-size: 0.9375rem;
}

.qb-htp-step__points li {
    position: relative;
    padding-left: 1.5rem;
}

.qb-htp-step__points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #2fb344;
}

.qb-htp-step__visual {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Steg 1: quizvärden startar spelet */

.qb-htp-host {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.qb-htp-host__quiz {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.04);
}

.qb-htp-host__quiz-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.qb-htp-host__quiz-btn {
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    animation: qb-htp-host-press 6s ease-in-out infinite;
}

@keyframes qb-htp-host-press {
    0%, 14% { transform: scale(1); }
    19% { transform: scale(0.88); }
    24% { transform: scale(1.04); }
    28%, 100% { transform: scale(1); }
}

.qb-htp-host__pin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.65rem;
    background: rgba(var(--qb-accent-rgb), 0.1);
    opacity: 0;
    animation: qb-htp-host-pin 6s ease-out infinite;
}

.qb-htp-host__pin-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.qb-htp-host__qr {
    flex-shrink: 0;
    color: #0f172a;
    background: #fff;
    border-radius: 0.25rem;
    padding: 2px;
}

@keyframes qb-htp-host-pin {
    0%, 24% { opacity: 0; transform: scale(0.7); }
    32% { opacity: 1; transform: scale(1.06); }
    36% { transform: scale(1); }
    88% { opacity: 1; }
    94%, 100% { opacity: 0; }
}

.qb-htp-host__pin-label {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #6c757d);
}

.qb-htp-host__pin-code {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--qb-accent);
}

/* Steg 2: PIN-siffror som skrivs in */

.qb-htp-pin {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.qb-htp-pin__digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.6rem;
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    animation: qb-htp-digit 7s ease-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

@keyframes qb-htp-digit {
    0% { opacity: 0; transform: scale(0.4); }
    5% { opacity: 1; transform: scale(1.15); }
    8% { transform: scale(1); }
    82% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

.qb-htp-pin__btn {
    animation: qb-htp-btn-pulse 7s ease-in-out infinite;
}

@keyframes qb-htp-btn-pulse {
    0%, 50% { transform: scale(1); }
    55% { transform: scale(0.94); }
    60% { transform: scale(1.03); }
    65%, 100% { transform: scale(1); }
}

/* Steg 3: lagnamn som skrivs */

.qb-htp-input {
    display: flex;
    align-items: center;
    height: 2.2rem;
    padding: 0 0.6rem;
    border-radius: 0.5rem;
    border: 1.5px solid rgba(var(--qb-accent-rgb), 0.5);
    background: #fff;
    overflow: hidden;
}

.qb-htp-input__type {
    display: inline-block;
    max-width: 14ch;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    animation: qb-htp-type 6s steps(12, end) infinite;
}

@keyframes qb-htp-type {
    0%, 8% { max-width: 0; }
    55%, 100% { max-width: 14ch; }
}

.qb-htp-input__caret {
    width: 2px;
    height: 1.1rem;
    margin-left: 1px;
    background: var(--qb-accent);
    animation: qb-htp-caret 0.9s steps(1, end) infinite;
}

@keyframes qb-htp-caret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.qb-htp-start__wait {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    color: var(--tblr-secondary, #6c757d);
    text-align: center;
}

.qb-htp-countdown {
    margin-top: 0.25rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.06);
    text-align: center;
}

.qb-htp-countdown__label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #6c757d);
    margin-bottom: 0.35rem;
}

.qb-htp-countdown__nums {
    position: relative;
    height: 2.5rem;
}

.qb-htp-countdown__nums span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--qb-accent);
    opacity: 0;
}

.qb-htp-countdown__nums span:nth-child(1) {
    animation: qb-htp-countdown-1 4.5s ease-in-out infinite;
}

.qb-htp-countdown__nums span:nth-child(2) {
    animation: qb-htp-countdown-2 4.5s ease-in-out infinite;
}

.qb-htp-countdown__nums span:nth-child(3) {
    animation: qb-htp-countdown-3 4.5s ease-in-out infinite;
}

@keyframes qb-htp-countdown-1 {
    0%, 28% { opacity: 1; transform: scale(1); }
    32%, 100% { opacity: 0; transform: scale(0.92); }
}

@keyframes qb-htp-countdown-2 {
    0%, 32% { opacity: 0; transform: scale(0.92); }
    35%, 62% { opacity: 1; transform: scale(1); }
    66%, 100% { opacity: 0; transform: scale(0.92); }
}

@keyframes qb-htp-countdown-3 {
    0%, 65% { opacity: 0; transform: scale(0.92); }
    68%, 95% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.92); }
}

/* Steg 4: equalizer */

.qb-htp-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4rem;
    height: 3.2rem;
    padding-bottom: 0.2rem;
}

.qb-htp-eq__bar {
    width: 0.55rem;
    height: 100%;
    border-radius: 0.3rem 0.3rem 0 0;
    background: linear-gradient(180deg, var(--qb-accent), #f59e0b);
    transform-origin: bottom;
    animation: qb-htp-eq 1.1s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -0.19s);
}

@keyframes qb-htp-eq {
    0% { transform: scaleY(0.25); }
    100% { transform: scaleY(1); }
}

/* Steg 5: SVARA-knapp med tryck */

.qb-htp-buzz {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6.5rem;
}

.qb-htp-buzz__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #2fb344;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(47, 179, 68, 0.35);
    animation: qb-htp-buzz-press 2.6s ease-in-out infinite;
}

@keyframes qb-htp-buzz-press {
    0%, 38% { transform: scale(1); }
    46% { transform: scale(0.88); }
    54% { transform: scale(1.05); }
    62%, 100% { transform: scale(1); }
}

.qb-htp-buzz__ring {
    position: absolute;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 3px solid rgba(47, 179, 68, 0.6);
    opacity: 0;
    animation: qb-htp-buzz-ring 2.6s ease-out infinite;
}

@keyframes qb-htp-buzz-ring {
    0%, 46% { opacity: 0; transform: scale(1); }
    52% { opacity: 0.8; }
    90%, 100% { opacity: 0; transform: scale(1.7); }
}

.qb-htp-buzz__finger {
    position: absolute;
    bottom: -0.4rem;
    right: 0.4rem;
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.25));
    animation: qb-htp-buzz-finger 2.6s ease-in-out infinite;
}

@keyframes qb-htp-buzz-finger {
    0%, 30% { transform: translate(0.5rem, 0.6rem) rotate(8deg); }
    46% { transform: translate(-0.15rem, -0.5rem) rotate(0deg); }
    58% { transform: translate(0.1rem, -0.2rem) rotate(3deg); }
    80%, 100% { transform: translate(0.5rem, 0.6rem) rotate(8deg); }
}

/* Steg 8: poängställning */

.qb-htp-score {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.qb-htp-score__row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    animation: qb-htp-row 7s ease-out infinite;
    animation-delay: calc(var(--i) * 0.35s);
}

@keyframes qb-htp-row {
    0% { opacity: 0; transform: translateY(0.4rem); }
    6% { opacity: 1; transform: translateY(0); }
    88% { opacity: 1; }
    94%, 100% { opacity: 0; }
}

.qb-htp-score__name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
}

.qb-htp-score__row--own .qb-htp-score__name {
    color: var(--qb-accent);
    font-weight: 700;
}

.qb-htp-score__track {
    display: block;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.qb-htp-score__bar {
    display: block;
    height: 100%;
    width: var(--w, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--qb-accent), #f59e0b);
    transform-origin: left;
    animation: qb-htp-bar 7s ease-out infinite;
    animation-delay: calc(var(--i) * 0.35s);
}

.qb-htp-score__row--own .qb-htp-score__bar {
    background: #2fb344;
}

@keyframes qb-htp-bar {
    0%, 4% { transform: scaleX(0); }
    22% { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}

.qb-htp-score__next {
    margin: 0.5rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-align: center;
    color: var(--qb-accent);
}

@media (prefers-reduced-motion: reduce) {
    .qb-htp-pin__digit,
    .qb-htp-score__row,
    .qb-htp-host__pin {
        opacity: 1;
    }

    .qb-htp-host__quiz-btn,
    .qb-htp-host__pin,
    .qb-htp-pin__digit,
    .qb-htp-pin__btn,
    .qb-htp-input__type,
    .qb-htp-input__caret,
    .qb-htp-eq__bar,
    .qb-htp-buzz__btn,
    .qb-htp-buzz__ring,
    .qb-htp-buzz__finger,
    .qb-htp-countdown__nums span,
    .qb-htp-score__row,
    .qb-htp-score__bar {
        animation: none;
    }

    .qb-htp-countdown__nums span:first-child {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .qb-htp-step,
    .qb-htp-step:nth-child(even) {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .qb-htp-step__heading {
        justify-content: center;
    }

    .qb-htp-step__text {
        margin-inline: auto;
    }

    .qb-htp-step__points {
        display: inline-flex;
        text-align: left;
    }
}

/* «Gör så här» – numrerade kort (samma bas som qb-home-how__card på startsidan) */

.qb-gsh-grid {
    margin-bottom: 2.5rem;
}

.qb-gsh-card.qb-home-how__card {
    --qb-gsh-phone-height: calc(9.75rem * 19.5 / 9);
    border-radius: 1.15rem;
    border: 1px solid rgba(var(--qb-accent-rgb), 0.16);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

.qb-gsh-card .qb-home-how__visual {
    min-height: 15rem;
    padding: 1.75rem 1.5rem 1.35rem;
    background:
        linear-gradient(160deg, rgba(var(--qb-accent-rgb), 0.14) 0%, rgba(var(--qb-accent-rgb), 0.04) 55%, rgba(0, 0, 0, 0.02) 100%);
}

.qb-gsh-card .qb-home-how__body {
    min-height: 0;
    padding: 1.35rem 1.5rem 1.5rem;
}

.qb-gsh-card .qb-home-how__text {
    min-height: 0;
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--tblr-body-color, #1e293b);
}

.qb-gsh-card__tip {
    margin-top: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
    line-height: 1.5;
}

.qb-gsh-card__figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--qb-gsh-phone-height);
    width: 100%;
    flex-shrink: 0;
}

.qb-gsh-card__quizzie {
    display: block;
    width: auto;
    height: var(--qb-gsh-phone-height);
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.18));
}

@media (min-width: 768px) {
    .qb-gsh-card .qb-home-how__visual {
        min-height: 16.5rem;
    }
}

@media (max-width: 767.98px) {
    .qb-gsh-card .qb-home-how__visual {
        min-height: 13.5rem;
        padding: 1.5rem 1.25rem 1.15rem;
    }
}

@media (max-width: 767.98px) {
    .qb-home-news__card {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding: 1.75rem 1.25rem;
    }

    .qb-home-news__media {
        order: -1;
    }
}

.qb-home-stats {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-collage {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.qb-home-collage__intro {
    max-width: 38rem;
}

.qb-home-collage__strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 0.75rem 0 1rem;
}

.qb-home-collage__item {
    margin: 0;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease;
}

.qb-home-collage__item:nth-child(odd) {
    transform: rotate(-2deg) translateY(6px);
}

.qb-home-collage__item:nth-child(even) {
    transform: rotate(2deg) translateY(-4px);
}

.qb-home-collage__item:hover {
    transform: rotate(0deg) translateY(0) scale(1.04);
    z-index: 1;
}

.qb-home-collage__img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .qb-home-collage__strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .qb-home-collage__strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .qb-home-collage__item--5,
    .qb-home-collage__item--6 {
        display: none;
    }
}

.qb-home-stats__eyebrow {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(var(--qb-accent-rgb), 0.1);
    color: var(--qb-accent);
    font-size: 0.9375rem;
    font-weight: 600;
}

.qb-home-stats__intro {
    max-width: 40rem;
}

.qb-home-stats__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(160deg, var(--qb-stat-tint, rgba(var(--qb-accent-rgb), 0.08)) 0%, rgba(0, 0, 0, 0) 55%),
        var(--qb-surface, #fff);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.qb-home-stats__card--played {
    --qb-stat-color: var(--qb-accent);
    --qb-stat-bg: rgba(var(--qb-accent-rgb), 0.12);
    --qb-stat-tint: rgba(var(--qb-accent-rgb), 0.1);
}

.qb-home-stats__card--answered {
    --qb-stat-color: #2563eb;
    --qb-stat-bg: rgba(37, 99, 235, 0.1);
    --qb-stat-tint: rgba(37, 99, 235, 0.08);
}

.qb-home-stats__card--good {
    --qb-stat-color: #1f7a31;
    --qb-stat-bg: rgba(47, 179, 68, 0.12);
    --qb-stat-tint: rgba(47, 179, 68, 0.1);
}

.qb-home-stats__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--qb-stat-bg, rgba(0, 0, 0, 0.05));
    color: var(--qb-stat-color, var(--qb-accent));
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.qb-home-stats__meta {
    min-width: 0;
}

.qb-home-stats__value {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--tblr-body-color, #1e293b);
    font-variant-numeric: tabular-nums;
}

.qb-home-stats__card--good .qb-home-stats__value {
    color: #1f7a31;
}

.qb-home-stats__label {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tblr-secondary, #64748b);
}

.qb-home-stats__sub {
    font-size: 0.8125rem;
    color: var(--tblr-secondary, #94a3b8);
    margin-top: 0.2rem;
}

.qb-home-how {
    background: var(--qb-surface, #fff);
    border-block: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-how__intro {
    max-width: 40rem;
}

.qb-home-how__mobile-badge {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(var(--qb-accent-rgb), 0.1);
    color: var(--qb-accent);
    font-size: 0.9375rem;
    font-weight: 600;
}

.qb-home-how__phone {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 9.75rem;
    aspect-ratio: 9 / 19.5;
    padding: 0.45rem;
    border-radius: 1.6rem;
    background: #0f172a;
    border: 2px solid #334155;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), inset 0 0 0 2px #1e293b;
}

.qb-home-how__phone::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.6rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #0f172a;
    z-index: 2;
}

.qb-home-how__phone::after {
    content: '';
    position: absolute;
    right: -0.3rem;
    top: 4.2rem;
    width: 0.18rem;
    height: 2.4rem;
    border-radius: 0 0.15rem 0.15rem 0;
    background: #334155;
}

.qb-home-how__phone-notch {
    display: none;
}

.qb-home-how__phone-label {
    margin-top: 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--tblr-secondary, #64748b);
}

.qb-home-how__card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qb-home-how__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(160deg, rgba(var(--qb-accent-rgb), 0.08) 0%, rgba(0, 0, 0, 0.03) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-how__mock {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 1.5rem 0.85rem 0.85rem;
    border-radius: 1.2rem;
    background: #fff;
    overflow: hidden;
}

.qb-home-how__mock-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #6c757d);
    text-align: center;
}

.qb-home-how__mock-logo {
    display: block;
    width: auto;
    max-width: 80%;
    height: 1.1rem;
    object-fit: contain;
}

.qb-home-how__mock-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
    text-align: center;
}

.qb-home-how__mock-pin {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.qb-home-how__mock-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.qb-home-how__mock-track {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.04);
}

.qb-home-how__mock-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, var(--qb-accent), #f59e0b);
    flex-shrink: 0;
}

.qb-home-how__mock-track-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.qb-home-how__mock-track-title,
.qb-home-how__mock-track-artist {
    display: block;
}

.qb-home-how__mock-track-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.qb-home-how__mock-track-artist {
    font-size: 0.65rem;
    line-height: 1.25;
    color: var(--tblr-secondary, #6c757d);
}

.qb-home-how__mock-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--qb-accent);
    font-size: 0.5rem;
    flex-shrink: 0;
}

.qb-home-how__mock-footnote {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--tblr-secondary, #6c757d);
}

.qb-home-how__mock-team {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.qb-home-how__mock-status {
    font-size: 0.75rem;
    text-align: center;
    color: #1a7f31;
    background: rgba(47, 179, 68, 0.12);
    border-radius: 0.5rem;
    padding: 0.45rem 0.5rem;
}

.qb-home-how__mock-buzz {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-inline: auto;
    border-radius: 50%;
    background: #2fb344;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(47, 179, 68, 0.35);
}

.qb-home-how__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 10.5rem;
    padding: 1.25rem;
}

.qb-home-how__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2rem;
}

.qb-home-how__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.qb-home-how__text {
    min-height: 4.75rem;
    line-height: 1.55;
}

.qb-home-host {
    background: var(--qb-bg);
}

.qb-home-host__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(var(--qb-accent-rgb), 0.1) 0%, rgba(0, 0, 0, 0.03) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-home-host__mock {
    width: min(100%, 26rem);
    padding: 1.25rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-home-host__mock-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qb-home-host__mock-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #6c757d);
    margin-bottom: 0.15rem;
}

.qb-home-host__mock-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.qb-home-host__mock-pin-wrap {
    text-align: right;
}

.qb-home-host__mock-pin-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #6c757d);
}

.qb-home-host__mock-pin {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--qb-accent);
    font-variant-numeric: tabular-nums;
}

.qb-home-host__mock-card {
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
}

.qb-home-host__mock-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.qb-home-host__mock-question {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.qb-home-host__mock-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-host__mock-cover {
    width: 3rem;
    height: 3rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, var(--qb-accent), #f59e0b);
    flex-shrink: 0;
    object-fit: cover;
}

.qb-home-host__mock-track-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.qb-home-host__mock-track-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qb-home-host__mock-track-artist {
    display: block;
    font-size: 0.75rem;
    color: var(--tblr-secondary, #6c757d);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qb-home-host__mock-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--qb-accent);
    color: #fff;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.qb-home-host__mock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qb-home-host__mock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.qb-home-host__mock-btn--primary {
    background: var(--qb-accent);
}

.qb-home-host__mock-btn--success {
    background: #2fb344;
}

.qb-home-host__mock-btn--danger {
    background: #d63939;
}

.qb-home-feedback {
    background: var(--qb-bg, #f8fafc);
}

.qb-home-feedback__eyebrow {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--qb-accent-rgb), 0.1);
    color: var(--qb-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.qb-home-feedback__intro {
    max-width: 36rem;
}

.qb-home-feedback__card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qb-home-feedback__icon {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--qb-accent);
    flex-shrink: 0;
}

.qb-home-feedback__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qb-home-feedback__quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--qb-text, #0f172a);
}

.qb-home-feedback__author {
    font-weight: 600;
}

.qb-home-quizzes {
    background: var(--qb-surface, #fff);
    border-block: 1px solid rgba(0, 0, 0, 0.06);
}

.qb-home-quizzes__eyebrow {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(var(--qb-accent-rgb), 0.1);
    color: var(--qb-accent);
    font-size: 0.9375rem;
    font-weight: 600;
}

.qb-home-quizzes__intro {
    max-width: 40rem;
}

.qb-home-quizzes__empty {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qb-home-quizzes__wish a {
    font-weight: 600;
}

.qb-home-quiz-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.qb-home-quiz-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.qb-home-quiz-card__cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.qb-home-quiz-card__media .qb-home-quiz-card__cover {
    aspect-ratio: unset;
    height: 100%;
}

.qb-home-quiz-card--featured {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.qb-home-quiz-card--featured:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.qb-home-quiz-card--featured .card-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.qb-home-quiz-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(var(--qb-accent-rgb), 0.18) 0%, rgba(15, 23, 42, 0.08) 100%);
}

.qb-home-quiz-card__media--placeholder {
    min-height: 10rem;
}

.qb-home-quiz-card--featured .qb-home-quiz-card__cover {
    transition: transform 0.25s ease;
}

.qb-home-quiz-card--featured:hover .qb-home-quiz-card__cover {
    transform: scale(1.04);
}

.qb-home-quiz-card__module {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 1;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--qb-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.qb-home-quiz-card__rank {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--qb-text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.qb-home-quiz-card__place {
    margin: 0;
    color: var(--qb-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.qb-home-quiz-card--featured .card-title {
    font-size: 1.25rem;
    line-height: 1.3;
}

.qb-home-quiz-card__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.55;
    margin-bottom: 0;
}

.qb-home-quiz-card__cta {
    position: relative;
    z-index: 1;
    color: var(--qb-accent);
    font-size: 0.875rem;
    font-weight: 600;
}

.qb-home-quiz-card__cta::after {
    content: " →";
}

.qb-home-quiz-card--featured:hover .qb-home-quiz-card__cta {
    color: var(--qb-accent-hover);
}

.qb-quiz-detail {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Quiz-detaljens hero: innehållet till vänster, omslaget som en mindre bild till höger */
.qb-quiz-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.qb-quiz-hero__grid--with-cover {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
}

.qb-quiz-hero__cover {
    justify-self: end;
    width: 100%;
}

.qb-quiz-hero__cover-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

@media (max-width: 991.98px) {
    .qb-quiz-hero__grid--with-cover {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
        gap: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .qb-quiz-hero__grid--with-cover {
        grid-template-columns: minmax(0, 1fr);
    }

    .qb-quiz-hero__cover {
        order: -1;
        max-width: 24rem;
        justify-self: start;
    }

    .qb-quiz-hero__cover-img {
        aspect-ratio: 16 / 9;
    }
}

.qb-footer {
    margin-top: auto;
    color: rgba(248, 250, 252, 0.78);
    background: #0b1120;
}

.qb-footer__main {
    position: relative;
    padding: 3rem 0 2.75rem;
    background: linear-gradient(180deg, #0f172a 0%, #162033 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qb-footer__main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--qb-accent) 0%, rgba(var(--qb-accent-rgb), 0.15) 70%, transparent 100%);
}

.qb-footer__brand-col {
    max-width: 22rem;
}

.qb-footer__brand {
    display: inline-flex;
    margin-bottom: 1rem;
    text-decoration: none;
}

.qb-footer__logo {
    display: block;
    height: 1.85rem;
    width: auto;
    max-width: 9rem;
}

.qb-footer__brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.qb-footer__tagline {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.72);
}

.qb-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.qb-footer__actions .btn-outline-light {
    --bs-btn-color: rgba(248, 250, 252, 0.92);
    --bs-btn-border-color: rgba(248, 250, 252, 0.28);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
    --bs-btn-hover-border-color: rgba(248, 250, 252, 0.45);
    --bs-btn-hover-color: #fff;
}

.qb-footer__heading {
    margin-bottom: 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.qb-footer__links li + li {
    margin-top: 0.55rem;
}

.qb-footer__links a {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.qb-footer__links a:hover {
    color: var(--qb-accent);
}

.qb-footer__bottom {
    padding: 1.1rem 0 1.35rem;
    background: #0b1120;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qb-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.qb-footer__legal {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.58);
}

.qb-footer__copyright {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.82);
}

.qb-footer__disclaimer {
    max-width: 42rem;
    font-size: 0.75rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.48);
}

@media (min-width: 768px) {
    .qb-footer__bottom-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .qb-footer__disclaimer {
        text-align: right;
    }
}

.qb-container--play {
    max-width: 28rem;
}

/* —— Sidhuvud —— */
.qb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    background: var(--qb-surface, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.qb-header__nav-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.qb-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.qb-header .nav-link:hover .qb-header__nav-icon,
.qb-header .nav-link:focus .qb-header__nav-icon {
    opacity: 1;
}

.qb-header .btn .qb-header__nav-icon {
    margin-right: 0.3rem;
}

.qb-header__interface-toggle form {
    margin: 0;
}

.qb-header__spotify {
    display: flex;
    align-items: center;
}

.qb-header__spotify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1db954;
    line-height: 1;
    cursor: default;
}

.qb-header__spotify-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.qb-header .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

.qb-header__dropdown .dropdown-menu {
    min-width: 12rem;
}

.qb-header .dropdown-item.active,
.qb-header .dropdown-item:active {
    background-color: var(--tblr-primary, #206bc4);
    color: #fff;
}

.qb-header .navbar-brand {
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.qb-header__toggler {
    padding: 0.35rem 0.55rem;
    border-color: rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
    .qb-header .container-xl {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }

    .qb-header .navbar-brand {
        flex: 0 0 auto;
    }

    .qb-header .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        height: auto !important;
        visibility: visible !important;
    }

    .qb-header .navbar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        flex-shrink: 0;
    }

    .qb-header .navbar-nav > .nav-item,
    .qb-header .navbar-nav > .nav-link,
    .qb-header .navbar-nav > .btn,
    .qb-header .navbar-nav > form,
    .qb-header .navbar-nav > .qb-header__logout {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .qb-header .navbar-nav > .nav-item > .btn {
        width: auto;
        margin-top: 0;
    }

    .qb-header .navbar-nav > form,
    .qb-header .navbar-nav > .qb-header__logout,
    .qb-header .navbar-nav > .nav-item.qb-header__logout {
        display: inline-flex;
        margin: 0;
        width: auto;
    }

    .qb-header .navbar-nav > .btn {
        width: auto;
        margin-top: 0;
    }

    .qb-header__dropdown:last-of-type .dropdown-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 991.98px) {
    .qb-header .container-xl {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .qb-header .navbar-brand {
        flex: 1 1 auto;
    }

    .qb-header__toggler {
        flex-shrink: 0;
        margin-left: auto;
    }

    .qb-header .navbar-collapse {
        flex-basis: 100%;
    }

    .qb-header .navbar-nav {
        padding-top: 0.35rem;
        padding-bottom: 0.75rem;
    }

    .qb-header .navbar-nav > .nav-item + .nav-item {
        margin-top: 0.25rem;
    }

    .qb-header__dropdown .dropdown-toggle {
        pointer-events: none;
    }

    .qb-header__dropdown .dropdown-toggle::after {
        display: none;
    }

    .qb-header__dropdown .dropdown-menu {
        position: static;
        display: block;
        float: none;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0.15rem;
        margin: 0;
    }

    .qb-header__dropdown .dropdown-item {
        padding-left: 2.35rem;
        border-radius: var(--tblr-border-radius, 0.25rem);
    }

    .qb-header .navbar-nav > .nav-item > .btn,
    .qb-header .navbar-nav > .nav-item.qb-header__logout .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .qb-header .navbar-nav > .nav-link + .nav-link,
    .qb-header .navbar-nav > .nav-link + .btn,
    .qb-header .navbar-nav > .nav-link + .qb-header__logout {
        margin-top: 0.25rem;
    }
}

.qb-header .nav-link {
    padding-inline: 0.65rem;
}

/* —— Spelarlayout (mobil, 100dvh) —— */
.qb-body--play {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    padding-top: 0;
}

.qb-body--play-fixed {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.qb-body--play-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.qb-body--play-scroll .qb-main--play {
    overflow: visible;
    justify-content: center;
}

.qb-main--play {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
}

.qb-play-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    padding: 1rem 0.875rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* PIN/anslut-formulär på publik sida (layouts/base) */
.qb-main:not(.qb-main--play) .qb-play-shell {
    flex: none;
    min-height: auto;
    margin-block: 2rem;
    padding-bottom: 2rem;
}

.qb-play-shell--center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.qb-play-shell .card,
.qb-play-shell .w-100 {
    width: 100%;
    max-width: 100%;
}

.qb-play-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.5rem 0.875rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    background: var(--qb-surface, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.qb-play-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.qb-play-header__logo {
    display: block;
    height: 1.65rem;
    width: auto;
    max-width: 6.5rem;
}

.qb-play-header__team {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: right;
}

.qb-body--play .qb-cookie-banner {
    padding: 0.65rem 0;
}

.qb-container--auth {
    max-width: 32rem;
}

.qb-home-quiz-card__actions {
    position: relative;
    z-index: 2;
}

/* --- Mitt konto --- */

.qb-account__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qb-accent);
}

.qb-account section[id] {
    scroll-margin-top: 5.5rem;
}

.qb-account__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-size: 1.75rem;
    font-weight: 800;
}

.qb-account__nav .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.qb-account__nav-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.qb-account__current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
}

.qb-account__current-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary, #64748b);
}

.qb-account__linked-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.qb-account__linked-identity > span {
    min-width: 0;
}

.qb-account__provider-icon {
    flex-shrink: 0;
    display: block;
    width: 1.125rem;
    height: 1.125rem;
}

.qb-account__provider-icon--spotify {
    color: #1db954;
}

.qb-account__danger {
    border: 1px solid rgba(214, 57, 57, 0.25);
}

.qb-account__narrow-card {
    max-width: 26rem;
}

/* --- Quizkvällar --- */

.qb-night-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qb-night-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.1);
}

.qb-night-card--past {
    opacity: 0.75;
}

.qb-night-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--qb-accent);
}

.qb-night-quiz__order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(var(--qb-accent-rgb), 0.12);
    color: var(--qb-accent);
    font-size: 0.8125rem;
    font-weight: 700;
}

.qb-night-quiz__cover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.qb-night-quiz__cover--placeholder {
    background: rgba(0, 0, 0, 0.05);
    color: var(--tblr-secondary, #64748b);
}

.qb-night-add-list {
    max-height: 24rem;
    overflow-y: auto;
}
