/* --- CSS Variables & Resets --- */
:root {
    --primary: #c90076;
    --primary-hover: #a0005d;
    --success: #10b981;
    --error: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: rotate(15deg);
}

/* --- Accessibility & Focus --- */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Image Placeholders */
.img-placeholder {
    background-color: #cbd5e1;
    background-image: linear-gradient(45deg, #cbd5e1 25%, #e2e8f0 25%, #e2e8f0 50%, #cbd5e1 50%, #cbd5e1 75%, #e2e8f0 75%, #e2e8f0 100%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(201, 0, 118, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 0, 118, 0.23);
}

/* --- Navbar --- */
.navbar {
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo-img {
    height: 40px; /* Slightly larger for better visibility */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    width: 100%;
    background: radial-gradient(circle at top right, rgba(238, 242, 255, 1) 0%, rgba(255, 255, 255, 1) 60%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-alt);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.navbar, .card, .podium-slot, .btn, .leaderboard-row {
    transition: all 0.3s ease;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions .search-bar {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.search-bar select {
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 0 1rem;
    color: var(--text-muted);
    outline: none;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
}

.search-bar .search-btn {
    padding: 0.75rem 1.5rem;
}

.stats {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatars .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatars .avatar:first-child {
    margin-left: 0;
}

.stats p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stats strong {
    color: var(--text-main);
}

/* Hero Visuals (The floating circles from reference) */
.hero-visuals {
    position: relative;
    height: 500px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 6px solid white;
    transition: transform 0.5s ease;
}

.circle:hover {
    transform: scale(1.05);
}

.circle-1 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.circle-1:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 15%;
    z-index: 1;
}

.circle-3 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 10%;
    z-index: 3;
}

.circle-4 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    right: 15%;
    z-index: 4;
}

/* --- Challenges Section --- */
.challenges {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.challenges h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.card-badge.new {
    background-color: #3b82f6;
}

.card-badge.hot {
    background-color: #ef4444;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.difficulty {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.difficulty.easy {
    background: #dcfce7;
    color: #166534;
}

.difficulty.medium {
    background: #fef9c3;
    color: #854d0e;
}

.difficulty.hard {
    background: #fee2e2;
    color: #991b1b;
}

.time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.time::before {
    content: '⏱';
    font-size: 1rem;
}

/* --- Leaderboard Section --- */
.leaderboard {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.leaderboard-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.leaderboard-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.leaderboard-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1rem 0;
    overflow-x: auto;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- Podium Styling --- */
.hall-of-fame-content {
    background-color: var(--bg-alt);
    padding: 3rem 1rem;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 4rem;
    min-height: 250px;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    max-width: 180px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.podium-slot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.podium-slot.rank-1 {
    height: 110%;
    border-color: #eab308; /* Gold */
    z-index: 3;
    box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.3);
}

.podium-slot.rank-2 {
    height: 90%;
    border-color: #94a3b8; /* Silver */
    z-index: 2;
}

.podium-slot.rank-3 {
    height: 80%;
    border-color: #b45309; /* Bronze */
    z-index: 1;
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.rank-1 .podium-avatar { width: 80px; height: 80px; font-size: 2rem; border: 3px solid #eab308; }
.rank-2 .podium-avatar { border: 3px solid #94a3b8; }
.rank-3 .podium-avatar { border: 3px solid #b45309; }

.podium-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.podium-score {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.podium-accuracy {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.podium-insight {
    font-size: 0.7rem;
    color: #f59e0b;
    font-style: italic;
    line-height: 1.2;
    text-align: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.5rem;
    margin-top: auto;
}

.podium-rank-badge {
    position: absolute;
    top: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.rank-1 .podium-rank-badge { background-color: #eab308; width: 40px; height: 40px; font-size: 1.1rem; top: -20px;}
.rank-2 .podium-rank-badge { background-color: #94a3b8; }
.rank-3 .podium-rank-badge { background-color: #b45309; }

/* Premium Champion Shine (Rank 1) */
.podium-slot.rank-1 {
    position: relative;
    border: 2px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
    /* overflow: visible !important; */ /* Remove hidden to show badge */
}

.shine-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 1;
}

.shine-overlay::after {
    content: "";
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 215, 0, 0.4) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

.podium-rank-badge {
    z-index: 5; /* Ensure badge sits above shine */
}

@keyframes shine {
    0% { top: -150%; left: -150%; }
    20%, 100% { top: 150%; left: 150%; }
}


/* --- List Styling (Ranks 4+) --- */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.list-row {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-row:hover {
    transform: scale(1.02) translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.list-rank {
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
    color: var(--text-muted);
}

.list-row.current-user-row {
    background-color: var(--primary);
    color: white;
    position: sticky;
    bottom: 1rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(201, 0, 118, 0.4);
    border: none;
}

.list-row.current-user-row .list-name, 
.list-row.current-user-row .list-score {
    color: white;
}

.list-rank {
    width: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.list-row.current-user-row .list-rank {
    color: rgba(255,255,255,0.8);
}

.list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.list-row.current-user-row .list-avatar {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.list-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.05rem;
}

.list-score {
    font-weight: 800;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.list-accuracy {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.current-user-row .list-accuracy {
    color: rgba(255, 255, 255, 0.8);
}

.list-insight {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    display: block;
}

.current-user-row .list-insight {
    color: rgba(255, 255, 255, 0.9);
}

/* --- How It Works Section --- */
.how-it-works {
    background-color: var(--bg-alt);
    padding: 5rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    padding: 1.5rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.step h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Leaderboard Section --- */
.leaderboard {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.leaderboard h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    opacity: 0.6;
    transition: var(--transition);
}

.company-logos:hover {
    opacity: 1;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- Benefits Section --- */
.benefits {
    padding: 6rem 2rem;
    background-color: var(--bg-alt);
    text-align: center;
}

.benefits-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.benefits-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.benefits-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(201, 0, 118, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(201, 0, 118, 0.1), rgba(255, 75, 43, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 6rem 2rem;
    background-color: white;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.testimonials-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    position: relative;
    text-align: left;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-style: solid;
    border-color: rgba(201, 0, 118, 0.2);
}

.quote-icon {
    font-size: 5rem;
    color: rgba(201, 0, 118, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.author-info {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.author-info strong {
    font-size: 1.125rem;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- Bottom CTA Section --- */
.bottom-cta {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary), #ff4b2b);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxjaXJjbGUgY3g9IjIiIGN5PSIyIiByPSIyIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz4KPC9zdmc+') repeat;
    opacity: 0.3;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--primary);
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
}

.cta-btn:hover {
    background: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* --- FAQ Section --- */
.faq {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.faq-list {
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    background: white;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    background: white;
}

.faq-question h4 {
    font-size: 1rem;
}

.toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* --- Feedback Section --- */
.feedback {
    padding: 5rem 2rem;
    background-color: var(--bg-alt);
    text-align: center;
}

.feedback h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feedback-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 0, 118, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-main);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.875rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions .search-bar {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats {
        justify-content: center;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-visuals {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .bottom-cta h2 {
        font-size: 2.25rem;
    }

    .bottom-cta {
        padding: 4rem 1.5rem;
    }

    .benefits-header h2 {
        font-size: 2rem;
    }

    /* Scaling game components for mobile */
    .sudoku-grid {
        --cell-size: 40px !important;
        gap: 2px !important;
    }

    .motion-board {
        --cell-size: 40px !important;
    }

    .option-btn {
        width: 50px !important;
        height: 50px !important;
    }

    .shape {
        width: 25px !important;
        height: 25px !important;
    }

    .shape-triangle {
        border-left-width: 12px !important;
        border-right-width: 12px !important;
        border-bottom-width: 22px !important;
    }
}

@media (max-width: 480px) {
    .sudoku-grid {
        --cell-size: 30px !important;
    }

    .motion-board {
        --cell-size: 30px !important;
    }
}

/* ==========================================================================
   SUDOKU GAME STYLES
   ========================================================================== */
.hidden {
    display: none !important;
}

.game-body {
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Module Selection --- */
.module-selection {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.module-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.module-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.module-container p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}


/* --- Game Header --- */
.game-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--border-color);
}

.back-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.game-stats-bar {
    display: flex;
    gap: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.timer-box .timer {
    font-family: monospace;
    font-size: 1.5rem;
    color: #10b981;
    /* Default green */
}

.text-error {
    color: #ef4444 !important;
    /* Red when running out of time or wrong */
}

.text-success {
    color: #10b981 !important;
}

.game-container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-instructions {
    text-align: center;
    margin-bottom: 2rem;
}

.game-instructions h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.game-instructions p {
    color: var(--text-muted);
}

/* --- The Grid --- */
.sudoku-grid {
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border-color);
    display: grid;
    gap: 4px;
    margin-bottom: 3rem;
    background-color: var(--border-color);
    /* Dynamic scaling */
    --cell-size: 60px;
}

.sudoku-cell {
    background: white;
    width: var(--cell-size);
    height: var(--cell-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.sudoku-cell.question-cell {
    background: #fef08a;
    /* Soft yellow highlight */
    border: 2px dashed #eab308;
    font-size: 2rem;
    font-weight: 800;
    color: #ca8a04;
}

/* --- Bottom Options --- */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px dashed var(--border-color);
}

.option-btn {
    background: white;
    border: 2px solid var(--border-color);
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.option-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: #fdf2f8;
}

/* --- Sudoku Shapes (Pure CSS) --- */
.sudoku-grid .shape, .options-container .shape {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.sudoku-grid .shape-square, .options-container .shape-square {
    background-color: #ef4444;
    border-radius: 4px;
}

.sudoku-grid .shape-circle, .options-container .shape-circle {
    background-color: #f59e0b;
    border-radius: 50%;
}

.sudoku-grid .shape-triangle, .options-container .shape-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #84cc16;
    /* Green triangle */
    background: none;
}

.sudoku-grid .shape-star, .options-container .shape-star {
    /* CSS Star trick using clip-path */
    background-color: #3b82f6;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.sudoku-grid .shape-diamond, .options-container .shape-diamond {
    background-color: #8b5cf6;
    transform: rotate(45deg) scale(0.8);
    border-radius: 2px;
}

.sudoku-grid .shape-cross, .options-container .shape-cross {
    background: #ec4899;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.sudoku-grid .shape-pentagon, .options-container .shape-pentagon {
    background: #14b8a6;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.sudoku-grid .shape-hexagon, .options-container .shape-hexagon {
    background: #f43f5e;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.score-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* ==========================================================================
   MOTION CHALLENGE STYLES
   ========================================================================== */

.motion-board-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--border-color);
}

.motion-board {
    position: relative;
    background-color: #e2e8f0;
    border: 2px solid #cbd5e1;
    overflow: hidden;
    /* Dynamic scaling */
    --cell-size: 60px;
    background-image:
        linear-gradient(to right, #cbd5e1 1px, transparent 1px),
        linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
    background-size: var(--cell-size) var(--cell-size);
}

/* Base class for all entities on the motion board */
.entity-block {
    position: absolute;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    /* Default square edges for hurdles */
    transition: left 0.15s ease-out, top 0.15s ease-out;
    /* Smooth snapping on click */
}

/* The Draggable Ball */
.entity-ball {
    background: radial-gradient(circle at 30% 30%, #f87171, #dc2626);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* The Target Hole */
.entity-hole {
    background: radial-gradient(circle at center, #000000 40%, #1e293b 70%, #334155 100%);
    border-radius: 50%;
    z-index: 1;
    /* Below the ball */
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Standard Clickable Hurdle */
.entity-hurdle {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    cursor: pointer;
    z-index: 5;
}

.entity-hurdle:hover {
    filter: brightness(1.1);
}

/* Sticky (Immovable) Hurdle */
.entity-sticky-hurdle {
    background: repeating-linear-gradient(45deg,
            #facc15,
            #facc15 10px,
            #eab308 10px,
            #eab308 20px);
    cursor: not-allowed;
    z-index: 4;
}

/* Directional Arrows */
.arrow-btn {
    position: absolute;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
    user-select: none;
    z-index: 20;
}

.arrow-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.arrow-left {
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
}

.arrow-left:hover {
    transform: translateY(-50%) scale(1.1);
}

.arrow-right {
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
}

.arrow-right:hover {
    transform: translateY(-50%) scale(1.1);
}

.arrow-up {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-up:hover {
    transform: translateX(-50%) scale(1.1);
}

.arrow-down {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-down:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Ball-specific arrow styles */
.entity-ball .arrow-btn {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 50%;
}

.entity-ball .arrow-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------- */
/* 4. Inductive Challenge Styles         */
/* ------------------------------------- */

.inductive-layout-split {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

.inductive-panel {
    background: #e5e5e5;
    color: #444;
    flex: 1;
    max-width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
}

.inductive-sequence-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.inductive-choices-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.inductive-board {
    background: #fff;
    border: 3px solid #666;
    /* thick outer border like image */
    display: grid;
    gap: 0;
    /* solid lines */
}

/* Container for selectable grids */
.inductive-choice-wrapper {
    background: none;
    border: 4px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    padding: 2px;
    /* Space for selection border */
}

.inductive-choice-wrapper:hover {
    transform: translateY(-2px);
}

.inductive-choice-wrapper.selected {
    border-color: var(--primary);
}

.inductive-choice-wrapper.correct-selection {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.inductive-choice-wrapper.wrong-selection {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.4s;
}

/* --- Inductive Geometries --- */
.inductive-board .ind-cell {
    width: var(--cell-size, 50px);
    height: var(--cell-size, 50px);
    background: #fff;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inductive-board .shape, #choices-container .shape {
    width: var(--shape-size, 32px);
    height: var(--shape-size, 32px);
}

.inductive-board .shape-circle, #choices-container .shape-circle {
    border-radius: 50%;
}

.inductive-board .shape-square, #choices-container .shape-square {
    border-radius: 0;
    /* Square */
}

.inductive-board .shape-triangle, #choices-container .shape-triangle {
    width: 0;
    height: 0;
    background: transparent !important;
    border-left: calc(var(--shape-size, 32px) / 2) solid transparent;
    border-right: calc(var(--shape-size, 32px) / 2) solid transparent;
    border-bottom: var(--shape-size, 32px) solid;
}

.inductive-board .shape-cross, #choices-container .shape-cross {
    position: relative;
    background: transparent !important;
}

.inductive-board .shape-cross::before,
.inductive-board .shape-cross::after {
    content: "";
    position: absolute;
    background-color: var(--shape-color, #000);
}

.inductive-board .shape-cross::before {
    top: 5%;
    bottom: 5%;
    left: 35%;
    right: 35%;
}

.inductive-board .shape-cross::after {
    left: 5%;
    right: 5%;
    top: 35%;
    bottom: 35%;
}

/* --- Grid Challenge: Dot Matrix Memory --- */
.matrix-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.matrix-dot.active {
    background-color: #c026d3;
    /* A strong purple/magenta, pulling from the ref image */
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 15px rgba(192, 38, 211, 0.6);
}

.matrix-dot.selected {
    background-color: #ef4444;
    /* Red color matching the request */
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- FOOTER --- */
.abhi-footer {
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    color: #e0e0e0;
    padding: 80px 8% 30px;
    font-family: 'Inter', sans-serif;
}

.abhi-footer h3,
.abhi-footer h4,
.abhi-footer p,
.abhi-footer div {
    font-family: inherit;
}

.abhi-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 40px;
}

.abhi-footer .footer-info h3 {
    color: #ffffff;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 1.8rem;
}

.abhi-footer .footer-info p {
    opacity: 1;
    color: #a0a0a0;
    margin-top: 5px;
    line-height: 1.6;
}

.abhi-footer .social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.abhi-footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: #fff;
    text-decoration: none;
}

.abhi-footer .social-links a:hover, .abhi-footer .social-links a:focus {
    background: var(--primary);
    /* Matching site primary color */
    transform: translateY(-3px);
    outline: none;
}

.abhi-footer .footer-contact {
    display: flex;
    flex-direction: column;
}

.abhi-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.abhi-footer .contact-item:hover {
    opacity: 1;
    color: #6366f1;
    /* Matching site primary color */
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 2px 10px rgba(37, 211, 102, 0.5);
}

.card-badge.coming-soon {
    background-color: #64748b;
    color: #fff;
}
/* --- Switch Challenge Styles --- */
/* --- Switch Challenge Standard Theme --- */
.switch-playground {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 900px;
    margin: 2rem auto;
}

.shape-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.permutation-zone {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.giant-arrow-refined {
    width: 60px;
    height: 200px;
    background: #9acd32;
    clip-path: polygon(50% 0%, 0% 15%, 35% 15%, 35% 85%, 0% 85%, 50% 100%, 100% 85%, 65% 85%, 65% 15%, 100% 15%);
    opacity: 0.6;
    position: absolute;
    z-index: 1;
}

.answer-panel-horizontal {
    display: flex;
    gap: 20px;
    z-index: 2;
}

.answer-btn-themed {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.answer-btn-themed:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.stats-float {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.stat-bubble {
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
}

.stat-bubble.highlight {
    background: var(--primary);
    color: white;
}

/* --- Switch Challenge Shapes --- */
.switch-playground .shape, #answer-panel .shape {
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.switch-playground .shape::after, #answer-panel .shape::after {
    content: '';
    display: block;
    background: #9acd32;
}

.switch-playground .shape.circle::after, #answer-panel .shape.circle::after { width: 70%; height: 70%; border-radius: 50%; }
.switch-playground .shape.square::after, #answer-panel .shape.square::after { width: 65%; height: 65%; }
.switch-playground .shape.triangle::after, #answer-panel .shape.triangle::after {
    width: 0; height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid #9acd32;
    background: none;
}
.switch-playground .shape.plus::after, #answer-panel .shape.plus::after { width: 70%; height: 25%; }
.switch-playground .shape.plus::before, #answer-panel .shape.plus::before {
    content: ''; position: absolute;
    width: 25%; height: 70%;
    background: #9acd32;
}

/* --- Switch Challenge New Shapes --- */
.switch-playground .shape.star::after, #answer-panel .shape.star::after {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    width: 80%; height: 80%;
}
.switch-playground .shape.diamond::after, #answer-panel .shape.diamond::after {
    transform: rotate(45deg);
    width: 60%; height: 60%;
}
.switch-playground .shape.pentagon::after, #answer-panel .shape.pentagon::after {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    width: 75%; height: 75%;
}
.switch-playground .shape.hexagon::after, #answer-panel .shape.hexagon::after {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    width: 80%; height: 80%;
}

.shape-row.large .shape {
    width: 90px;
    height: 90px;
}

.shape-row.dense .shape {
    width: 65px;
    height: 65px;
    gap: 0.8rem;
}

.answer-btn-themed.small-text {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
}

/* --- Multi-Stage Visuals --- */
.multi-stage-visual {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-20px);
}

.stage-node {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 700;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}

.stage-node.highlight {
    background: #c90076;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(201, 0, 118, 0.3);
}

.stage-arrow {
    color: #9acd32;
    font-weight: 800;
    font-size: 1.2rem;
}

/* --- Feedback Popups --- */
.feedback-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
    animation: feedbackPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.feedback-content {
    background: white;
    padding: 2.5rem 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    border: 4px solid currentColor;
}

@keyframes feedbackPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
