.game-carousel {
    --carousel-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --carousel-tint: #d3eee3;
    --carousel-base: #f5fbf9;
    position: relative;
    isolation: isolate;
    padding: 0 0 24px;
    background: linear-gradient(115deg, var(--carousel-tint), var(--carousel-base) 78%);
}

.carousel-backdrops { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.carousel-backdrop { position: absolute; inset: 0; opacity: 0; background: linear-gradient(115deg, var(--carousel-tint), var(--carousel-base) 78%); transition: opacity 420ms ease; }
.carousel-backdrop[data-background="math"] { --carousel-tint: #f8ddd7; --carousel-base: #fff7f4; }
.carousel-backdrop[data-background="english"] { --carousel-tint: #d5ebf7; --carousel-base: #f6fafc; }
.carousel-backdrop[data-background="robot"] { --carousel-tint: #e9e4b8; --carousel-base: #f4f9ee; }
.game-carousel[data-game="flag"] [data-background="flag"],
.game-carousel[data-game="math"] [data-background="math"],
.game-carousel[data-game="english"] [data-background="english"],
.game-carousel[data-game="riddle"] [data-background="riddle"],
.game-carousel[data-game="robot"] [data-background="robot"] { opacity: 1; }
.game-carousel [hidden] { display: none !important; }

.carousel-heading {
    width: min(calc(100% - 40px), var(--content));
    min-height: 58px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 16px;
    padding-block: 12px;
}

.carousel-heading a { font-size: 0.85rem; padding-block: 5px; }
.carousel-stage { width: min(calc(100% - 40px), 1120px); margin-inline: auto; }
.carousel-slide { position: relative; min-height: 418px; display: flex; align-items: center; }
.game-carousel[data-enhanced] .carousel-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.game-carousel[data-enhanced] .carousel-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms var(--carousel-ease), visibility 0s 280ms; }
.game-carousel[data-enhanced] .carousel-slide[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.game-carousel[data-motion="instant"] .carousel-slide,
.game-carousel[data-motion="instant"] .carousel-backdrop { transition: none; }
.carousel-copy { position: relative; z-index: 1; width: 52%; padding: 22px 0 28px; }
.carousel-copy h2 { font-size: 3.1rem; max-width: 540px; margin-block-end: 18px; overflow-wrap: break-word; }
.carousel-lead { font-size: 1.12rem; max-width: 380px; min-height: 90px; margin-block-end: 20px; color: var(--muted); }
.carousel-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.carousel-actions .app-store-badge { flex-shrink: 0; }
.carousel-actions .text-action { font-size: 0.9rem; }
.carousel-proof { margin: 18px 0 3px; font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); }
.carousel-platform { margin: 0; text-align: start; font-size: 0.78rem; color: var(--muted); }
[dir="rtl"] .carousel-platform { text-align: right; }
.carousel-media { position: absolute; inset-block: 0; inset-inline-end: 0; width: 45%; margin: 0; display: grid; place-items: center; touch-action: pan-y pinch-zoom; user-select: none; }
.carousel-shot { position: relative; height: 380px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 14px #102a4324); transform: rotate(-3deg); }
.carousel-peek { position: absolute; height: 280px; width: auto; max-width: 100%; inset-inline-end: 0; bottom: 36px; object-fit: contain; transform: rotate(8deg); filter: drop-shadow(0 10px 10px #102a4318); }
.carousel-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; width: min(calc(100% - 40px), 650px); margin: 0 auto; }
.carousel-arrow { width: 44px; height: 44px; padding: 0; border: 1px solid #bacdc5; border-radius: 50%; background: #ffffffc9; display: grid; place-items: center; cursor: pointer; }
.carousel-arrow[data-step="1"] img { transform: rotate(180deg); }
[dir="rtl"] .carousel-arrow[data-step="-1"] img { transform: rotate(180deg); }
[dir="rtl"] .carousel-arrow[data-step="1"] img { transform: none; }
.carousel-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid #ffffff; border-radius: var(--radius-large); background: #ffffffad; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 8px 24px #102a4310; }
.carousel-dock button { min-width: 0; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 2px; border: 1px solid transparent; border-radius: var(--radius-medium); background: transparent; color: var(--ink); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.carousel-dock button[aria-pressed="true"] { background: #ffffff; border-color: #dbe4e8; box-shadow: 0 3px 8px #102a4310; }
.carousel-dock img { width: 48px; height: 48px; object-fit: contain; border-radius: 11px; }
.carousel-dock span { line-height: 1.25; }
.carousel-arrow:hover, .carousel-dock button:hover { background: #ffffff; }
.carousel-arrow:active, .carousel-dock button:active { transform: scale(0.96); }
.carousel-title, .carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

.game-carousel, .home-essentials h2, .home-page #support { scroll-margin-top: 130px; }
.home-essentials { border-block-start: 1px solid var(--line); background: var(--surface); }
.home-essentials-inner { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr); gap: 24px 56px; padding-block: 42px; }
.home-essentials h2 { margin: 0; font-size: 1.65rem; line-height: 1.3; }
.home-questions details + details { border-block-start: 1px solid var(--line); }
.home-questions summary { display: flex; align-items: center; gap: 8px; padding-block: 15px; min-height: 48px; color: var(--ink-strong); font-weight: 650; cursor: pointer; list-style: none; }
.home-questions summary::-webkit-details-marker { display: none; }
.home-questions summary::before { content: ""; flex: 0 0 16px; height: 16px; background: currentColor; -webkit-mask: url("carousel-chevron-left.svg") center / contain no-repeat; mask: url("carousel-chevron-left.svg") center / contain no-repeat; transform: rotate(180deg); }
[dir="rtl"] .home-questions details:not([open]) summary::before { transform: none; }
.home-questions details[open] summary::before { transform: rotate(-90deg); }
.home-questions details:first-child summary { padding-block-start: 0; }
.home-questions p { margin: 0 0 20px; padding-inline-start: 24px; max-width: 68ch; font-size: 0.95rem; color: var(--muted); }
.home-questions details:last-child p { margin-block-end: 0; }
.carousel-fallback { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 14px; }
.carousel-fallback a { padding-block: 10px; }
.home-page .footer-inner { gap: 20px; padding-block: 28px; }
.home-page .footer-brand img { width: 44px; height: 44px; }
.home-page .footer-legal { padding-block-start: 14px; }

@media (max-width: 760px) {
    .home-essentials-inner { grid-template-columns: minmax(0, 1fr); padding-block: 30px; gap: 20px; }
    .home-essentials h2 { font-size: 1.4rem; }
    .home-questions summary { font-size: 0.95rem; }
    .home-questions p { font-size: 0.9rem; }
}

@media (max-width: 980px) {
    .carousel-copy h2 { font-size: 2.5rem; }
    .carousel-copy { width: 53%; }
    .carousel-media { width: 42%; }
    .carousel-shot { height: 340px; }
    .carousel-peek { height: 240px; }
}

@media (max-width: 600px) {
    .carousel-heading, .carousel-stage { width: calc(100% - 28px); }
    .carousel-heading { display: none; }
    .carousel-slide { flex-direction: column; min-height: 0; }
    .carousel-copy { width: 100%; text-align: center; padding: 12px 0 0; min-height: 237px; }
    .carousel-copy .section-kicker { font-size: 0.72rem; margin-block-end: 7px; }
    .carousel-copy h2 { font-size: 2rem; margin-block-end: 9px; }
    .carousel-lead { min-height: 52px; margin: 0 auto 12px; max-width: 350px; font-size: 0.95rem; line-height: 1.55; }
    .carousel-actions { justify-content: center; gap: 8px 16px; }
    .carousel-proof { font-size: 0.78rem; margin-block-start: 10px; }
    .carousel-platform, [dir="rtl"] .carousel-platform { text-align: center; font-size: 0.7rem; }
    .carousel-media { position: relative; width: 240px; height: 236px; margin-block: 6px 12px; }
    .carousel-shot { height: 224px; }
    .carousel-peek { height: 166px; bottom: 10px; }
    .carousel-controls { width: calc(100% - 24px); gap: 6px; }
    .carousel-dock { gap: 0; padding: 4px; border-radius: 24px; }
    .carousel-dock button { min-height: 76px; border-radius: 19px; font-size: 0.7rem; }
    .carousel-dock img { width: 40px; height: 40px; border-radius: 9px; }
}

@media (max-width: 600px) and (max-height: 750px) {
    .carousel-copy { min-height: 228px; }
    .carousel-copy h2 { font-size: 1.8rem; }
    .carousel-media { height: 132px; margin-block: 4px 8px; }
    .carousel-shot { height: 124px; }
    .carousel-peek { height: 100px; bottom: 5px; }
}

@media (max-width: 360px) {
    [dir="ltr"] .carousel-copy h2 { font-size: 1.55rem; min-height: 29px; }
    [dir="ltr"] .carousel-lead { min-height: 71px; }
    .carousel-actions { gap: 8px; }
    .carousel-actions .text-action { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .game-carousel[data-enhanced] .carousel-slide, .carousel-backdrop { transition: none; }
    .carousel-arrow:active, .carousel-dock button:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .carousel-dock, .carousel-arrow { background: #f6f9fa; border-color: var(--muted); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .carousel-dock button[aria-pressed="true"] { border-color: var(--ink); }
}

.carousel-backdrop[data-background="riddle"] { --carousel-tint: #deddf7; --carousel-base: #f7f6ff; }
.carousel-shot.carousel-app-icon { height: auto; width: min(100%, 320px); border-radius: 22%; }
@media (max-width: 600px) {
    .carousel-shot.carousel-app-icon { width: auto; height: 100%; max-height: 224px; }
    .carousel-controls { gap: 4px; grid-template-columns: 36px minmax(0, 1fr) 36px; }
    .carousel-arrow { width: 36px; height: 44px; }
    .carousel-dock img { width: 32px; height: 32px; }
}
