/* ==========================================================================
   OfferRatings Quiz — design system
   Palette aligned with offerratings.com:
   slate #4A6163, gold #FFC94B, orange #F9A66C, navy #08192e,
   blue #1a73e8 (quiz play). Cream bg #F9FAF4.
   Titles: Georgia serif. Body: system sans.
   ========================================================================== */

:root {
    --brand-blue: #4A6163;
    --brand-blue-dark: #3A4A4C;
    --quiz-purple: #F9A66C;
    --quiz-purple-light: #FFC94B;
    --quiz-purple-hover: #FEC98F;
    --cyan: #1a73e8;
    --cyan-hover: #1557B0;
    --cyan-inset: #0D47A1;
    --ink: #1A1A1A;
    --ink-nav: #222222;
    --muted: #666666;
    --line: #D3D3D3;
    --line-soft: #DFDFDF;
    --page-bg: #F9FAF4;
    --detail-bg: #F5F5F5;
    --feature-bg: #E8F0EE;
    --btn-shadow: #DFD8D8;
    --disabled: #D9D9D9;
    --disabled-inset: #A8A8A8;
    --track: #E8F0FE;
    --green: #14ba88;
    --red: #f75e5e;
    --like-bg: #FBDBE6;
    --like-bg-hover: #FFCEDF;
    --like-ink: #EA4C89;
    --dislike-bg: #F0F0F0;
    --dislike-bg-hover: #EAEAEA;

    /* legacy aliases (older templates) */
    --site-ink: #1A1A1A;
    --site-muted: #666666;
    --site-cream: #F9FAF4;
    --site-paper: #F9FAF4;
    --site-indigo: #4A6163;
    --site-indigo-deep: #3A4A4C;
    --site-indigo-glow: #5A7173;
    --site-amber: #F9A66C;
    --site-amber-soft: #fde6e0;
    --site-amber-glow: #FFC94B;
    --site-line: #D3D3D3;
    --site-rose: #f75e5e;
    --site-teal: #1a73e8;
    --site-ink-soft: #333333;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: -apple-system, "system-ui", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.is-hidden {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4, p {
    margin: 0;
}

.serif {
    font-family: Georgia, "Times New Roman", serif;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 767px) {
    .main-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    background: #08192e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    height: 35px;
    width: auto;
    display: block;
}

.site-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.site-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    padding: 4px 2px;
    transition: color .15s;
}

.site-nav a:hover {
    color: #FFC94B;
}

.header-search {
    flex-shrink: 0;
    display: flex;
    width: 240px;
    height: 35px;
    border: 1px solid #000;
    background: #fff;
}

.header-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: transparent;
}

.header-search button {
    width: 34px;
    flex-shrink: 0;
    background: #FFC94B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search button svg {
    width: 18px;
    height: 18px;
    stroke: #08192e;
}

.header-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.header-menu-btn svg {
    width: 26px;
    height: 26px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line-soft);
    background: #fff;
    padding: 12px 16px 16px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu form {
    display: flex;
    height: 38px;
    border: 1px solid #000;
    margin-bottom: 10px;
}

.mobile-menu form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 10px;
    font-size: 14px;
}

.mobile-menu form button {
    width: 42px;
    background: #FFC94B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu form button svg {
    width: 18px;
    height: 18px;
    stroke: #08192e;
}

.mobile-menu a {
    display: block;
    padding: 10px 2px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-nav);
    text-transform: capitalize;
    border-bottom: 1px solid var(--line-soft);
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

@media (max-width: 1023px) {
    .site-header__inner {
        height: 50px;
        gap: 12px;
    }

    .site-header__logo img {
        height: 25px;
    }

    .site-nav,
    .header-search {
        display: none;
    }

    .header-menu-btn {
        display: flex;
        margin-left: auto;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: #08192e;
    color: #fff;
    padding: 40px 16px;
    margin-top: 0;
}

.site-footer__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.site-footer__logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: #fff;
    font-size: 16px;
    width: 200px;
    text-align: center;
    padding: 6px 0;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.site-footer__copy {
    text-align: center;
    color: #fff;
    font-size: 16px;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 24px 16px;
    }

    .site-footer__logo {
        margin-bottom: 24px;
    }

    .site-footer__logo img {
        height: 30px;
    }

    .site-footer__links a {
        font-size: 14px;
        width: auto;
        padding: 6px 12px;
    }

    .site-footer__copy {
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   Page titles & sections
   -------------------------------------------------------------------------- */

.page-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 45px;
    line-height: 52px;
    font-weight: 700;
    color: var(--ink);
    text-transform: capitalize;
    text-align: center;
    margin: 30px 0;
}

.page-title__count {
    font-family: -apple-system, "system-ui", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink);
    text-transform: capitalize;
    text-align: center;
    margin: 40px 0 30px;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 35px;
        line-height: 40px;
    }

    .section-title {
        font-size: 25px;
    }
}

/* --------------------------------------------------------------------------
   Category pills (quiz filter tabs)
   -------------------------------------------------------------------------- */

.quiz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 4px 2px 6px;
    justify-content: center;
}

.quiz-pill {
    flex-shrink: 0;
    border: 1px solid var(--brand-blue);
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-blue);
    background: #E8F0EE;
    white-space: nowrap;
    text-transform: capitalize;
    transition: all 250ms;
    line-height: 1.5;
}

.quiz-pill:hover,
.quiz-pill.active {
    background: var(--brand-blue);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Quiz card (shared: quizzes grid, related, home)
   -------------------------------------------------------------------------- */

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 30px;
    margin-bottom: 40px;
}

.quiz-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .quiz-grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .quiz-grid,
    .quiz-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 550px) {
    .quiz-grid,
    .quiz-grid--4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.quiz-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 300ms, transform 300ms;
}

.quiz-card:hover {
    box-shadow: 0 6px 24px rgba(74, 97, 99, 0.18);
    transform: translateY(-3px);
}

.quiz-card__media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--detail-bg);
}

.quiz-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms;
}

.quiz-card:hover .quiz-card__media img {
    transform: scale(1.05);
}

.quiz-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 300ms;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-card:hover .quiz-card__overlay {
    opacity: 1;
}

.quiz-card__start {
    background: var(--quiz-purple-light);
    color: #fff;
    padding: 8px 32px;
    border-radius: 300px;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 -4px var(--quiz-purple);
    white-space: nowrap;
}

.quiz-card__body {
    padding: 16px 24px;
}

.quiz-card__title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    color: var(--brand-blue);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.quiz-card__desc {
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* small variant (search results) */
.quiz-card--sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.quiz-card--sm:hover {
    box-shadow: 0 4px 16px rgba(74, 97, 99, 0.15);
}

.quiz-card--sm .quiz-card__media {
    height: 145px;
}

.quiz-card--sm .quiz-card__media img {
    transition: transform 100ms;
}

.quiz-card--sm .quiz-card__body {
    padding: 15px;
}

.quiz-card--sm .quiz-card__title {
    font-size: 16px;
    line-height: 22px;
}

.quiz-card--sm .quiz-card__title:hover {
    text-decoration: underline;
}

@media (max-width: 550px) {
    .quiz-card__media {
        height: 200px;
    }

    .quiz-card--sm .quiz-card__media {
        height: 180px;
    }

    .quiz-card__title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* --------------------------------------------------------------------------
   3D press buttons (purple / cyan)
   -------------------------------------------------------------------------- */

.btn-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 450px;
    max-width: 92%;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: 20px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    transition: background 200ms, transform 200ms;
    text-align: center;
}

.btn-3d--purple {
    background: var(--quiz-purple-light);
    box-shadow: 0 5px var(--btn-shadow), inset 0 -6px var(--quiz-purple);
}

.btn-3d--purple:hover {
    background: var(--quiz-purple-hover);
}

.btn-3d--cyan {
    background: var(--cyan);
    box-shadow: 0 5px var(--btn-shadow), inset 0 -6px var(--cyan-inset);
}

.btn-3d--cyan:hover {
    background: var(--cyan-hover);
}

.btn-3d--disabled,
.btn-3d[disabled] {
    background: var(--disabled);
    box-shadow: 0 5px var(--btn-shadow), inset 0 -6px var(--disabled-inset);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-3d svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.btn-3d--breathe {
    animation: btnBreathe 1.4s ease-in-out infinite;
}

.btn-3d--breathe:hover {
    animation-play-state: paused;
}

.btn-3d__arrow-bounce svg {
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes btnBreathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

@media (max-width: 767px) {
    .btn-3d {
        font-size: 26px;
        padding: 15px 0;
    }
}

/* pagination row */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pager__info {
    font-size: 15px;
    color: var(--muted);
}

.pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    padding: 0 22px;
    border: 2px solid var(--quiz-purple);
    border-radius: 24px;
    color: var(--quiz-purple);
    font-size: 16px;
    font-weight: 600;
    transition: all 300ms;
}

.pager__link:hover {
    background: var(--quiz-purple);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Home page sections (differentiated layouts)
   -------------------------------------------------------------------------- */

.home-section {
    margin-bottom: 56px;
}

.home-section__head {
    text-align: center;
    margin-bottom: 30px;
}

.home-section__head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 45px;
    line-height: 52px;
    font-weight: 700;
    color: var(--ink);
    text-transform: capitalize;
}

.home-section__more {
    display: inline-block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-blue);
}

.home-section__more:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .home-section {
        margin-bottom: 36px;
    }

    .home-section__head {
        margin-bottom: 20px;
    }

    .home-section__head h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .home-section__more {
        font-size: 14px;
        margin-top: 6px;
    }
}

@media (max-width: 550px) {
    .home-section__head h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .home-hero-layout__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-layout__main .quiz-card__media {
        height: 180px;
    }

    .home-ranked-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .home-ranked__thumb {
        width: 48px;
        height: 48px;
    }

    .home-editor__media {
        height: 140px;
    }
}

/* layout: lead + list (split) */
.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

@media (max-width: 767px) {
    .home-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-lead {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 300ms, transform 300ms;
}

.home-lead:hover {
    box-shadow: 0 6px 24px rgba(74, 97, 99, 0.18);
    transform: translateY(-3px);
}

.home-lead__media {
    height: 340px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-lead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms;
}

.home-lead:hover .home-lead__media img {
    transform: scale(1.05);
}

.home-lead__body {
    padding: 18px 24px 22px;
}

.home-lead__title {
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    color: var(--brand-blue);
}

.home-lead:hover .home-lead__title {
    text-decoration: underline;
}

.home-lead__desc {
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-list {
    display: flex;
    flex-direction: column;
}

.home-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 2px dashed var(--line);
}

.home-list-item:first-child {
    padding-top: 0;
}

.home-list-item:last-child {
    border-bottom: 0;
}

.home-list-item__thumb {
    flex-shrink: 0;
    width: 120px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms;
}

.home-list-item:hover .home-list-item__thumb img {
    transform: scale(1.05);
}

.home-list-item__title {
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
    color: var(--brand-blue);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.home-list-item:hover .home-list-item__title {
    text-decoration: underline;
}

/* layout: feature band (mosaic) — big card on tinted panel */
.home-feature {
    background: var(--feature-bg);
    border-radius: 10px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 767px) {
    .home-feature {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
    }
}

@media (max-width: 550px) {
    .home-feature {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* layout: horizontal scroll (compact) */
.home-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-rail::-webkit-scrollbar {
    display: none;
}

.home-rail .quiz-card {
    flex-shrink: 0;
    width: 300px;
}

@media (max-width: 550px) {
    .home-rail .quiz-card {
        width: 78vw;
    }
}

/* layout: spotlight — 1 big + 2 small stacked */
.home-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.home-spotlight__main .quiz-card__media {
    height: 320px;
}

.home-spotlight__side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-spotlight__side .quiz-card {
    flex: 1;
    display: flex;
}

.home-spotlight__side .quiz-card__media {
    width: 140px;
    height: 100%;
    min-height: 120px;
    flex-shrink: 0;
}

.home-spotlight__side .quiz-card__body {
    flex: 1;
    display: flex;
    align-items: center;
}

.home-spotlight__side .quiz-card__title {
    font-size: 16px;
    line-height: 22px;
}

@media (max-width: 767px) {
    .home-spotlight {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-spotlight__main .quiz-card__media {
        height: 220px;
    }

    .home-spotlight__side {
        flex-direction: row;
    }

    .home-spotlight__side .quiz-card {
        width: 50%;
    }
}

/* layout: masonry — varied card heights */
.home-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-masonry .quiz-card:nth-child(1) .quiz-card__media,
.home-masonry .quiz-card:nth-child(4) .quiz-card__media,
.home-masonry .quiz-card:nth-child(6) .quiz-card__media {
    height: 240px;
}

.home-masonry .quiz-card:nth-child(2) .quiz-card__media,
.home-masonry .quiz-card:nth-child(5) .quiz-card__media {
    height: 160px;
}

.home-masonry .quiz-card:nth-child(3) .quiz-card__media {
    height: 200px;
}

@media (max-width: 767px) {
    .home-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-masonry .quiz-card .quiz-card__media {
        height: 160px !important;
    }
}

@media (max-width: 550px) {
    .home-masonry {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* layout: timeline — numbered horizontal list */
.home-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    transition: background 200ms;
}

.home-timeline-item:last-child {
    border-bottom: 0;
}

.home-timeline-item:hover {
    background: #E8F0EE;
}

.home-timeline__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-timeline__thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-timeline__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-timeline__title {
    font-size: 17px;
    line-height: 24px;
    font-weight: 600;
    color: var(--brand-blue);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.home-timeline-item:hover .home-timeline__title {
    text-decoration: underline;
}

@media (max-width: 550px) {
    .home-timeline__thumb {
        width: 80px;
        height: 56px;
    }

    .home-timeline__title {
        font-size: 15px;
        line-height: 20px;
    }

    .home-timeline__num {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* layout: duo — 2 large side-by-side cards */
.home-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.home-duo .quiz-card__media {
    height: 280px;
}

.home-duo .quiz-card__body {
    padding: 20px 24px 24px;
    text-align: center;
}

.home-duo .quiz-card__title {
    font-size: 22px;
    line-height: 28px;
}

@media (max-width: 767px) {
    .home-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-duo .quiz-card__media {
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   Quiz detail page
   -------------------------------------------------------------------------- */

.quiz-detail-wrap {
    background: var(--detail-bg);
    padding: 30px 16px 50px;
}

.quiz-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.quiz-card-main {
    background: #fff;
    border: 1px solid var(--line);
    padding: 30px 40px;
}

@media (max-width: 767px) {
    .quiz-card-main {
        padding: 15px 20px;
    }
}

.quiz-detail__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 40px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .quiz-detail__title {
        font-size: 25px;
        line-height: 30px;
    }
}

.quiz-detail__hero {
    height: 400px;
    margin-bottom: 24px;
    background: var(--detail-bg);
    overflow: hidden;
}

.quiz-detail__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .quiz-detail__hero {
        height: 190px;
    }
}

.quiz-detail__start {
    margin: 68px 0;
}

@media (max-width: 767px) {
    .quiz-detail__start {
        margin: 58px 0;
    }
}

.quiz-detail__hero--rounded {
    border-radius: 20px;
    margin-top: 24px;
}

.quiz-detail__start--centered {
    margin: 40px 0 20px;
}

.quiz-detail__desc {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 25px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Quiz play (question UI)
   -------------------------------------------------------------------------- */

.quiz-play__counter {
    text-align: center;
    font-size: 24px;
    line-height: 29px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .quiz-play__counter {
        font-size: 16px;
    }
}

.quiz-progress {
    width: 660px;
    max-width: 100%;
    height: 32px;
    margin: 0 auto 24px;
    padding: 6px;
    border-radius: 51px;
    border: 3px solid var(--quiz-purple-light);
    background: #fff;
    box-shadow: 0 0 10px rgba(249, 166, 108, 0.15);
}

.quiz-progress__track {
    width: 100%;
    height: 100%;
    border-radius: 51px;
    background: var(--track);
    overflow: hidden;
}

.quiz-progress__fill {
    height: 100%;
    width: 0;
    border-radius: 51px;
    background: repeating-linear-gradient(-63deg, var(--quiz-purple-light) 0, var(--quiz-purple-light) 10px, #fff 10px, #fff 18px);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.25);
    transition: width 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 767px) {
    .quiz-progress {
        height: 20px;
        padding: 3px;
        border-width: 2px;
    }
}

.quiz-play__qimage {
    height: 360px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--detail-bg);
}

.quiz-play__qimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .quiz-play__qimage {
        height: 190px;
    }
}

.quiz-play__qtext {
    background: var(--cyan);
    color: #fff;
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    text-align: center;
    padding: 32px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .quiz-play__qtext {
        font-size: 20px;
        line-height: 24px;
        padding: 20px;
    }
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 550px) {
    .quiz-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border: 3px solid transparent;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.4);
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 300ms, background 300ms, color 300ms, box-shadow 300ms;
}

.quiz-option__radio {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 300ms;
}

.quiz-option__radio::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    transition: background 300ms;
}

.quiz-option__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--detail-bg);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 300ms, color 300ms;
}

.quiz-option:hover .quiz-option__num {
    background: var(--cyan);
    color: #fff;
}

.quiz-option.correct .quiz-option__num {
    background: var(--green);
    color: #fff;
}

.quiz-option.wrong .quiz-option__num {
    background: var(--red);
    color: #fff;
}

.quiz-option:hover {
    border-color: var(--cyan);
}

.quiz-option:hover .quiz-option__radio::after {
    background: var(--cyan);
}

.quiz-option.selected {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
}

.quiz-option.selected .quiz-option__radio {
    border-color: #fff;
}

.quiz-option.selected .quiz-option__radio::after {
    background: #fff;
}

.quiz-option.correct {
    border-color: var(--green);
    box-shadow: 0 0 10px rgba(20, 186, 136, 0.4);
}

.quiz-option.correct .quiz-option__radio {
    border-color: var(--green);
}

.quiz-option.correct .quiz-option__radio::after {
    background: var(--green);
}

.quiz-option.wrong {
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(247, 94, 94, 0.4);
}

.quiz-option.wrong .quiz-option__radio {
    border-color: var(--red);
}

.quiz-option.wrong .quiz-option__radio::after {
    background: var(--red);
}

.quiz-option.is-shake {
    animation: quiz-option-shake 0.4s ease-in-out;
}

@keyframes quiz-option-shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60% { transform: translateX(6px); }
}

.quiz-fx {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.quiz-fx__cheer {
    position: absolute;
    z-index: 2;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: quiz-fx-cheer 1.05s ease-out both;
}

@keyframes quiz-fx-cheer {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    45% {
        opacity: 1;
        transform: translate(calc(-50% + var(--dx) * 0.55), calc(-50% + var(--dy) * 0.55)) scale(1.08);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1);
    }
}

.quiz-play__hint {
    text-align: center;
    font-size: 20px;
    color: var(--ink);
    margin-top: 20px;
}

.quiz-play__choice {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 20px;
}

@keyframes qSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-play__fade {
    animation: qSlideIn 350ms ease both;
}

/* --------------------------------------------------------------------------
   Result page (like / dislike)
   -------------------------------------------------------------------------- */

.quiz-result__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin: 20px 0 30px;
}

.quiz-result__score {
    text-align: center;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 30px;
}

.quiz-result__score strong {
    color: var(--brand-blue);
    font-size: 30px;
}

.quiz-vote {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.quiz-vote__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 150px;
    height: 70px;
    border-radius: 50px;
    transition: background 200ms;
}

.quiz-vote__btn--like {
    background: var(--like-bg);
}

.quiz-vote__btn--like:hover {
    background: var(--like-bg-hover);
}

.quiz-vote__btn--dislike {
    background: var(--dislike-bg);
}

.quiz-vote__btn--dislike:hover {
    background: var(--dislike-bg-hover);
}

.quiz-vote__btn svg {
    width: 32px;
    height: 32px;
}

.quiz-vote__count {
    font-size: 24px;
    font-weight: 600;
}

.quiz-vote__btn--like .quiz-vote__count {
    color: var(--like-ink);
}

.quiz-vote__btn--dislike .quiz-vote__count {
    color: #333;
}

.quiz-result__actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: var(--brand-blue);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span.sep {
    opacity: 0.5;
    margin: 0 2px;
}

/* --------------------------------------------------------------------------
   Search page
   -------------------------------------------------------------------------- */

.search-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 45px;
    line-height: 52px;
    font-weight: 700;
    color: var(--ink);
    margin: 30px 0;
}

.result-count {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .search-title {
        font-size: 30px;
        line-height: 38px;
    }
}

.search-empty {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
    text-align: center;
    padding: 90px 16px 110px;
}

.notfound__code {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 90px;
    line-height: 1;
    font-weight: 700;
    color: var(--quiz-purple-light);
    margin-bottom: 12px;
}

.notfound__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.notfound__desc {
    color: var(--muted);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 34px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 16px 70px;
}

.legal-page__sheet {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 36px 40px;
}

@media (max-width: 767px) {
    .legal-page__sheet {
        padding: 22px 18px;
    }
}

.legal-page__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.legal-prose {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
}

.legal-prose h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 26px 0 10px;
}

.legal-prose h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.legal-prose p {
    margin: 0 0 14px;
}

.legal-prose ul,
.legal-prose ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-prose li {
    margin-bottom: 6px;
}

.legal-prose a {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.empty-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
}

.page-main {
    min-height: 60vh;
}

.card-lift {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

/* ==========================================================================
   Hero banner (home page)
   ========================================================================== */

.home-hero {
    background: linear-gradient(135deg, #08192e 0%, #0f2942 55%, #1a3a5c 100%);
    color: #fff;
    text-align: center;
    padding: 56px 16px 64px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 201, 75, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 97, 99, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 50px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.home-hero__title span {
    color: #FFC94B;
}

.home-hero__desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 28px;
    position: relative;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFC94B;
    color: #08192e;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(255, 201, 75, 0.3);
    transition: transform 200ms, box-shadow 200ms;
    position: relative;
}

.home-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 201, 75, 0.45);
}

.home-hero__cta:active {
    transform: translateY(0);
}

.home-hero__cta svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    .home-hero {
        padding: 36px 16px 44px;
    }

    .home-hero__title {
        font-size: 30px;
        line-height: 36px;
    }

    .home-hero__desc {
        font-size: 15px;
    }

    .home-hero__cta {
        font-size: 16px;
        padding: 10px 28px;
    }
}

/* ==========================================================================
   Scroll-triggered fade-in
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Scroll-to-top button
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #08192e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 300ms, visibility 300ms, transform 300ms, background 200ms;
    z-index: 40;
}

.scroll-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #FFC94B;
    color: #08192e;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 767px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ==========================================================================
   Active nav state
   ========================================================================== */

.site-nav a.is-active {
    color: #FFC94B;
    position: relative;
}

.site-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #FFC94B;
    border-radius: 2px;
}

/* ==========================================================================
   Button press / active tactile effect
   ========================================================================== */

.btn-3d:active {
    transform: translateY(3px);
    box-shadow: 0 2px var(--btn-shadow), inset 0 -3px var(--quiz-purple);
}

.btn-3d--cyan:active {
    box-shadow: 0 2px var(--btn-shadow), inset 0 -3px var(--cyan-inset);
}

.quiz-card__start:active {
    transform: scale(0.96);
}

.quiz-pill:active {
    transform: scale(0.96);
}

/* ==========================================================================
   Enhanced 404 page
   ========================================================================== */

.notfound__code {
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.notfound__desc {
    animation: fadeInUp 800ms ease 300ms both;
}

.notfound .btn-3d {
    animation: fadeInUp 800ms ease 500ms both;
}

.notfound__btn {
    width: 320px;
    max-width: 100%;
    padding: 14px 0;
    font-size: 24px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Card hover accent line
   ========================================================================== */

.quiz-card {
    position: relative;
}

.quiz-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFC94B, #F9A66C);
    transition: width 400ms ease;
    border-radius: 0 0 12px 12px;
}

.quiz-card:hover::after {
    width: 100%;
}

/* ==========================================================================
   Footer polish
   ========================================================================== */

.site-footer__links a {
    transition: color 200ms;
}

.site-footer__links a:hover {
    color: #FFC94B;
    text-decoration: none;
}

.site-footer__copy {
    opacity: 0.6;
}

/* ==========================================================================
   Home layout: grid-2 — 2-column large cards with descriptions
   ========================================================================== */

.home-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-grid-2 .quiz-card__media {
    height: 260px;
}

@media (max-width: 767px) {
    .home-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-grid-2 .quiz-card__media {
        height: 200px;
    }
}

/* ==========================================================================
   Home layout: grid-4 — 4-column compact grid
   ========================================================================== */

.home-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-grid-4 .quiz-card__media {
    height: 150px;
}

.home-grid-4 .quiz-card__title {
    font-size: 15px;
}

@media (max-width: 767px) {
    .home-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Home layout: trio — 3 featured cards with descriptions
   ========================================================================== */

.home-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-trio .quiz-card__media {
    height: 280px;
}

@media (max-width: 767px) {
    .home-trio {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-trio .quiz-card__media {
        height: 200px;
    }
}

/* ==========================================================================
   Home layout: strip — horizontal list with square thumbnails
   ========================================================================== */

.home-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 200ms, transform 200ms;
}

.home-strip-item:hover {
    box-shadow: 0 4px 16px rgba(74, 97, 99, 0.15);
    transform: translateY(-2px);
}

.home-strip__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-strip__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-strip__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-blue);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 767px) {
    .home-strip {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Home layout: hero — 1 large featured + 4 small in a row
   ========================================================================== */

.home-hero-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-hero-layout__main .quiz-card__media {
    height: 340px;
}

.home-hero-layout__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-hero-layout__row .quiz-card__media {
    height: 120px;
}

.home-hero-layout__row .quiz-card__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@media (max-width: 767px) {
    .home-hero-layout__main .quiz-card__media {
        height: 220px;
    }

    .home-hero-layout__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Home layout: ranked — numbered list with thumbnails
   ========================================================================== */

.home-ranked {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-ranked-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 200ms, transform 200ms;
}

.home-ranked-item:hover {
    box-shadow: 0 4px 16px rgba(74, 97, 99, 0.15);
    transform: translateY(-2px);
}

.home-ranked__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #08192e;
    color: #FFC94B;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-ranked__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-ranked__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-ranked__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-blue);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 767px) {
    .home-ranked {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Home layout: editor — horizontal cards with image + description
   ========================================================================== */

.home-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-editor-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 200ms, transform 200ms;
}

.home-editor-item:hover {
    box-shadow: 0 4px 16px rgba(74, 97, 99, 0.15);
    transform: translateY(-2px);
}

.home-editor__media {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    overflow: hidden;
    background: var(--detail-bg);
}

.home-editor__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-editor__body {
    flex: 1;
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-editor__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.home-editor__desc {
    font-size: 14px;
    color: var(--site-ink-soft);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

@media (max-width: 767px) {
    .home-editor-item {
        flex-direction: column;
    }

    .home-editor__media {
        width: 100%;
        height: 180px;
    }

    .home-editor__body {
        padding: 12px 16px 16px;
    }
}

/* ==========================================================================
   Lazy-load skeleton shimmer
   Image containers show a subtle shimmer until the lazy-loaded image
   loads and covers the container via object-fit: cover.
   ========================================================================== */

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.quiz-card__media,
.home-ranked__thumb,
.home-editor__media,
.home-strip__thumb,
.home-list-item__thumb,
.home-timeline__thumb,
.quiz-detail__hero,
.quiz-play__qimage {
    background: linear-gradient(90deg, #F0F0F0 25%, #E4E4E4 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .quiz-card__media,
    .home-ranked__thumb,
    .home-editor__media,
    .home-strip__thumb,
    .home-list-item__thumb,
    .home-timeline__thumb,
    .quiz-detail__hero,
    .quiz-play__qimage {
        animation: none;
        background: var(--detail-bg);
    }
}

/* Advertisement slots, same treatment as offerratings */
._wap {
    width: 100%;
    margin: 15px 0;
}

._wap ._wap-title {
    font-size: .75rem;
    line-height: 1.25;
    text-align: right;
    padding: .25rem 0;
    color: #d5d5d5;
    display: block;
}

._wap ins.adsbygoogle {
    background: transparent;
}
