.riddle-single-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}
.riddle-single-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}
.riddle-single-hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #1e293b;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: 0;
}
.riddle-single-hero h1.h1-very-long {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 850;
    line-height: 1.15;
}
.riddle-card-main {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
}
.riddle-card-main.answer-card {
    padding-top: 2.5rem;
}
.riddle-question-label {
    display: inline-flex;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.riddle-question-text {
    color: #1e293b;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.25;
    font-weight: 850;
    margin-bottom: 2rem;
}
.riddle-answer-box {
    display: none;
    margin: 1.5rem auto 0;
    max-width: 620px;
    border: 2px solid #bbf7d0;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 24px;
    padding: 1.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}
.riddle-answer-box strong {
    display: block;
    color: #10b981;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}
.true-false-community-stats {
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}
.true-false-community-stats strong,
.true-false-community-stats span {
    display: block;
}
.true-false-community-stats strong {
    margin-bottom: 0.2rem;
    color: #1e293b;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
}
.true-false-community-stats span + span { font-weight: 600; }
.true-false-explanation { font-size: 1rem; font-weight: 650; }
.riddle-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.riddle-primary-btn,
.riddle-secondary-btn {
    border: 0;
    border-radius: 18px;
    padding: 1rem 1.8rem;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}
.riddle-primary-btn { background: var(--secondary); color: #fff; box-shadow: 0 14px 30px rgba(236, 72, 153, 0.18); }
.riddle-secondary-btn { background: #7c3aed; color: #fff; box-shadow: 0 14px 30px rgba(124, 58, 237, 0.16); }
.riddle-primary-btn:hover,
.riddle-secondary-btn:hover { transform: translateY(-2px); }
.riddle-answer-true,
.riddle-answer-false { min-width: 140px; padding: 1.2rem 2.15rem; }
.riddle-answer-true { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; box-shadow: none; }
.riddle-answer-false { background: #fff1f2; color: #be123c; box-shadow: none; }
.riddle-answer-true.is-selected {
    border: 3px solid #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12);
}
.riddle-answer-false.is-selected {
    border: 3px solid #e11d48;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.1);
}
.riddle-rating-row,
.riddle-details-row { max-width: 820px; margin: 1.4rem auto 0; display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
.riddle-details-row { margin-top: 2rem; gap: 1.5rem; }
.riddle-rating { flex: 1.2; min-width: 280px; margin: 0; max-width: 820px; background: #f8fafc; border: 1px solid #e8eef6; border-radius: 24px; padding: 1.3rem; text-align: center; }
.riddle-rating h2 { margin: 0 0 0.7rem; color: #1e293b; font-size: 1.1rem; font-weight: 850; }
.riddle-stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 0.35rem; margin-bottom: 0.7rem; }
.riddle-star { appearance: none; border: 0; background: transparent; color: #cbd5e1; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.1rem; }
.riddle-star.active, .riddle-star:hover, .riddle-star:hover ~ .riddle-star { color: #f59e0b; }
.riddle-rating-meta { color: #64748b; font-size: 0.95rem; font-weight: 700; }
.riddle-random-box { flex: 0.8; min-width: 280px; background: #f8fafc; border: 1px solid #e8eef6; border-radius: 24px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; text-align: center; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02); }
.riddle-random-title { font-size: 1.1rem; font-weight: 850; color: #1e293b; }
.riddle-random-box .riddle-secondary-btn { margin: 0; padding: 0.9rem 2rem; }
.riddle-section { max-width: 940px; margin: 2.625rem auto 0; padding-top: 0; border-top: 0; }
.riddle-single-wrap .riddle-section { margin-top: 2.625rem; padding-top: 0; border-top: 0; }
.riddle-single-wrap > .trivia-hub-multiplayer { margin-top: 3.625rem; }
.riddle-details-row .riddle-section { margin: 0; display: flex; flex-direction: column; }
.riddle-details-main { flex: 1.2; min-width: 280px; }
.riddle-details-challenge { flex: 0.8; min-width: 280px; }
.riddle-section h2 { color: #1e293b; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin: 0 0 2.225rem; letter-spacing: 0; }
.riddle-details-row .riddle-section h2 { text-align: left; font-size: 1.5rem; font-weight: 850; margin-bottom: 0.75rem; }
.riddle-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.riddle-link-card { display: flex; min-height: 116px; align-items: center; background: #fff; border: 1px solid #e8eef6; border-radius: 20px; padding: 1.2rem; text-decoration: none; color: #1e293b; font-size: 1.05rem; line-height: 1.35; font-weight: 600; transition: transform 0.2s ease, border-color 0.2s ease; }
.riddle-link-card:hover { transform: translateY(-2px); border-color: #c4b5fd; }
.tf-related-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tf-related-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 175px; padding: 1.15rem 1.2rem 1.05rem; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05); color: #1e293b; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.tf-related-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #10b981, #6366f1); }
.tf-related-card:nth-child(3n + 2)::before { background: linear-gradient(90deg, #6366f1, #ec4899); }
.tf-related-card:nth-child(3n)::before { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.tf-related-card:hover, .tf-related-card:focus-visible { transform: translateY(-4px); border-color: #a5b4fc; box-shadow: 0 16px 30px rgba(79, 70, 229, 0.12); outline: none; }
.tf-related-card-title { display: -webkit-box; flex: 1; overflow: hidden; color: #1e293b; font-size: 1.08rem; font-weight: 400; line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.tf-related-card-action { margin-top: 1rem; color: #4f46e5; font-size: 0.88rem; font-weight: 850; }
.tf-related-card-action span { display: inline-block; transition: transform 0.2s ease; }
.tf-related-card:hover .tf-related-card-action span { transform: translateX(3px); }
.trivia-related-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.trivia-related-pack-card { display: flex; min-width: 0; min-height: 118px; align-items: center; justify-content: center; gap: .8rem; padding: 1.1rem 1.2rem; border: 1px solid #e9d5ff; border-radius: 20px; background: #fff; color: #312e81; text-align: center; text-decoration: none; box-shadow: 0 10px 24px rgba(124, 58, 237, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.trivia-related-pack-card:hover, .trivia-related-pack-card:focus-visible { border-color: #c4b5fd; box-shadow: 0 14px 28px rgba(124, 58, 237, .12); transform: translateY(-3px); outline: none; }
.trivia-related-pack-card__icon { flex: 0 0 auto; font-size: 1.35rem; }
.trivia-related-pack-card__body { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .25rem; }
.trivia-related-pack-card__body strong { max-width: 100%; overflow: hidden; color: #1e293b; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.trivia-related-pack-card__body > span { color: #64748b; font-size: .88rem; font-weight: 750; }
.riddle-meta-details { flex: 1; display: flex; flex-direction: column; gap: 0.8rem; font-size: 1.05rem; font-weight: 700; color: #475569; text-align: left; background: #f8fafc; padding: 1.5rem 1.8rem; border-radius: 24px; border: 1px solid #e8eef6; }
.riddle-meta-details.challenge-details { align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.riddle-meta-label { color: #64748b; font-weight: 800; display: inline-block; min-width: 90px; }
.riddle-meta-value { color: #1e293b; }
.riddle-age-link { color: #4f46e5; text-decoration: underline; font-weight: 800; }
.riddle-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; border-top: 1px solid #e2e8f0; padding-top: 0.75rem; }
.riddle-tag { background: #e2e8f0; color: #475569; border-radius: 99px; padding: 0.35rem 0.85rem; font-size: 0.85rem; font-weight: 800; text-decoration: none; transition: all 0.2s; display: inline-block; }
.riddle-tag:hover { background: #cbd5e1; color: #1e293b; }
.challenge-icon { font-size: 2.2rem; margin-bottom: -0.5rem; }
.challenge-title { font-size: 1.15rem; font-weight: 850; color: #1e293b; }
.challenge-copy-btn { margin: 0.5rem 0 0; padding: 0.9rem 2rem; width: auto; font-size: 1rem; font-weight: 800; }
.riddle-meta-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.riddle-meta-pill { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 0.65rem 1rem; font-size: 0.92rem; font-weight: 750; }
.riddle-related-games { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.riddle-related-games a { background: #fff; border: 1px solid #e8eef6; color: #475569; border-radius: 999px; padding: 0.8rem 1.2rem; text-decoration: none; font-weight: 800; }
.riddle-play-promo { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); border-radius: 24px; padding: 2.2rem 2.8rem; box-shadow: 0 15px 35px rgba(79, 70, 229, 0.25); color: white; text-align: left; margin: 2rem auto 0; max-width: 820px; }
.riddle-play-promo-content { flex: 1; }
.riddle-play-promo-title { font-size: 1.7rem; font-weight: 900; margin: 0 0 0.5rem; letter-spacing: -0.01em; color: white; line-height: 1.2; }
.riddle-play-promo-desc { font-size: 1.05rem; font-weight: 600; margin: 0; color: rgba(255, 255, 255, 0.9); line-height: 1.45; }
.riddle-play-promo-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; color: #4f46e5 !important; border-radius: 99px; padding: 1rem 2.2rem; text-decoration: none !important; font-weight: 900; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); flex-shrink: 0; text-align: center; min-width: 220px; }
.riddle-play-promo-btn:hover { transform: translateY(-2px); background-color: #f8fafc; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); }
.riddle-play-promo-btn-title { font-size: 1.15rem; font-weight: 900; letter-spacing: 0.02em; }
.riddle-play-promo-btn-sub { font-size: 0.78rem; font-weight: 750; color: #64748b; margin-top: 0.15rem; }
.popular-riddles-container { background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%); border: 1px solid #fbcfe8; border-radius: 40px; padding: 2.75rem 2.5rem; box-shadow: 0 8px 30px rgba(236, 72, 153, 0.03); margin: 3rem 0; }
.popular-riddles-container h2 { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.section-title-icon { font-size: 1.5rem; }
.riddle-feed-list { display: flex; flex-direction: column; gap: 0.85rem; }
.riddle-feed-item { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.6rem; border-radius: 22px; border: 1px solid #fce7f3; background: #fff; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; color: #1e293b; gap: 1.5rem; }
.riddle-feed-item:hover { background: #fdf2f8; border-color: #f472b6; transform: translateX(5px); box-shadow: 0 10px 20px rgba(236, 72, 153, 0.05); }
.riddle-feed-left { display: flex; align-items: center; gap: 1.1rem; min-width: 0; flex: 1 1 auto; }
.riddle-feed-icon { font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 12px; flex-shrink: 0; }
.riddle-feed-item:hover .riddle-feed-icon { background: #f472b6; color: white; border-color: #f472b6; }
.riddle-feed-content { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1 1 auto; text-align: left; }
.riddle-feed-text { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 800; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.riddle-feed-meta { font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 750; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.riddle-feed-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.riddle-feed-action-text { font-size: 0.85rem; font-weight: 850; color: #db2777; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0; transform: translateX(10px); transition: all 0.25s ease; }
.riddle-feed-item:hover .riddle-feed-action-text { opacity: 1; transform: translateX(0); }
.riddle-feed-arrow { font-size: 1.15rem; color: #f472b6; transition: transform 0.25s ease; font-weight: 900; }
.riddle-feed-item:hover .riddle-feed-arrow { transform: translateX(3px); color: #db2777; }
@media (max-width: 768px) {
    .tf-related-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trivia-related-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .riddle-play-promo { flex-direction: column; text-align: center; padding: 2rem; gap: 1.5rem; }
    .riddle-play-promo-title { font-size: 1.5rem; }
    .riddle-play-promo-desc { font-size: 0.98rem; }
    .riddle-play-promo-btn { width: 100%; min-width: unset; }
}
@media (max-width: 640px) {
    .riddle-single-wrap { padding-top: 1rem; }
    .riddle-card-main { border-radius: 24px; }
    .riddle-primary-btn, .riddle-secondary-btn { width: 100%; }
}
@media (max-width: 576px) {
    .popular-riddles-container { padding: 1.75rem 1.5rem; border-radius: 30px; }
    .riddle-feed-item { padding: 1rem 1.2rem; border-radius: 18px; gap: 1rem; align-items: flex-start; }
    .riddle-feed-content { flex: 1; }
    .riddle-feed-text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .riddle-feed-meta { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
    .riddle-feed-right { align-self: center; }
    .riddle-feed-action-text { display: none; }
    .tf-related-card-grid { grid-template-columns: 1fr; }
    .tf-related-card { min-height: 150px; }
    .trivia-related-pack-grid { grid-template-columns: 1fr; }
}
