:root {
    --sa-brand: #0A7B6E;
    --sa-brand-dark: #07594f;
    --sa-bg: #FCFDFD;
    --sa-text: #192a28;
    --sa-text-light: #4A5F5C;
    --sa-accent: #FF8A65;
    --sa-gold: #FBC02D;
    --sa-card-bg: rgba(255, 255, 255, 0.85);
    --sa-glass-border: rgba(255, 255, 255, 0.4);
    --sa-shadow-soft: 0 16px 40px rgba(10, 123, 110, 0.08);
    --sa-shadow-hover: 0 24px 50px rgba(10, 123, 110, 0.15);
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: var(--sa-bg);
    color: var(--sa-text);
}

h1, h2, h3, h4, .sa-super-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--sa-text);
}

.sa-app-wrapper {
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at top right, #e0f2f1 0%, #fff 40%),
                radial-gradient(circle at bottom left, #fff3e0 0%, #fff 50%);
}

.sa-container {
    width: min(85rem, calc(100% - 2rem));
    margin: 0 auto;
}

/* HERO PREMIUM */
.sa-hero-premium {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.sa-hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sa-shape-1 {
    position: absolute;
    top: -10%; left: -5%;
    width: 30rem; height: 30rem;
    background: radial-gradient(circle, rgba(10,123,110,0.1) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    border-radius: 50%;
}

.sa-shape-2 {
    position: absolute;
    bottom: 0; right: -10%;
    width: 40rem; height: 40rem;
    background: radial-gradient(circle, rgba(255,138,101,0.08) 0%, rgba(255,255,255,0) 70%);
    filter: blur(50px);
    border-radius: 50%;
}

.sa-hero-content {
    max-width: 55rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.sa-badge-pill {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    color: var(--sa-brand-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.6);
}

.sa-badge-pill.outline {
    background: transparent;
    border: 2px solid var(--sa-brand);
    color: var(--sa-brand);
}

.sa-super-heading {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(100deg, #07594f, #0a7b6e, #0e9d8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sa-hero-subtext {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--sa-text-light);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

/* BUTTONS */
.sa-hero-btn-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.sa-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}

.sa-btn-premium.small {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.sa-btn-premium.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.sa-btn-premium.cta {
    background: linear-gradient(135deg, var(--sa-brand), #0e9d8e);
    color: white;
    box-shadow: 0 8px 25px rgba(10, 123, 110, 0.3);
}

.sa-btn-premium.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 123, 110, 0.4);
}

.sa-btn-premium.outline {
    background: white;
    color: var(--sa-brand);
    border: 2px solid var(--sa-brand);
}

.sa-btn-premium.outline:hover {
    background: var(--sa-brand);
    color: white;
}

.sa-btn-premium.glow {
    background: white;
    color: var(--sa-brand);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sa-btn-premium.glow:hover {
    box-shadow: 0 8px 25px rgba(10, 123, 110, 0.15);
    transform: translateY(-2px);
    color: var(--sa-brand-dark);
}

.sa-btn-premium.dark {
    background: var(--sa-text);
    color: white;
}

.sa-btn-premium.dark:hover {
    background: black;
    transform: translateY(-2px);
}

.sa-btn-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    background: white;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}

.sa-btn-pill:hover, .sa-btn-pill.is-active {
    background: var(--sa-brand);
    color: white;
    border-color: var(--sa-brand);
}

/* SHARE PROMPT */
.sa-hero-share-floating {
    background: white;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--sa-shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    animation: saFloat 6s ease-in-out infinite;
}

@keyframes saFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.sa-hero-share-floating p {
    font-weight: 700;
    color: var(--sa-text-light);
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.sa-hero-share-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.sa-share-icon-btn {
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-share-icon-btn:hover {
    background: var(--sa-brand);
    transform: scale(1.1);
}

.sa-hero-share-icons.large .sa-share-icon-btn {
    width: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    gap: 0.5rem;
}

/* SECTIONS */
.sa-section {
    padding: 5rem 0;
}

.sa-section.light-bg {
    background: rgba(230, 246, 244, 0.4);
}

.sa-section.light-gray-bg {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.sa-section-head {
    margin-bottom: 3rem;
    text-align: center;
}

.sa-section-head h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0 0 0.5rem 0;
}

.sa-section-head p {
    font-size: 1.2rem;
    color: var(--sa-brand);
    font-weight: 700;
    margin: 0;
}

/* DAILY CAROUSEL */
.sa-daily-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2rem;
}

.sa-glass-card {
    background: var(--sa-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sa-glass-border);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--sa-shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.sa-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sa-shadow-hover);
}

.sa-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sa-card-tag {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--sa-brand);
}

.sa-icon {
    font-size: 1.5rem;
}

/* WORD CARD */
.sa-word-hero {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sa-text);
    margin: 0;
    line-height: 1.1;
}

.sa-word-pron {
    font-size: 1.1rem;
    color: var(--sa-text-light);
    margin: 0.5rem 0 1rem;
}

.sa-word-def {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sa-word-ex {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--sa-text-light);
    border-left: 4px solid var(--sa-brand);
    padding-left: 1rem;
    margin: 0 0 2rem 0;
}

.sa-word-interact p {
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.sa-interact-btns {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sa-feedback-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sa-brand);
    display: block;
    min-height: 1.5rem;
}

/* TRIVIA CARD */
.sa-streak-pill {
    background: #fff8e1;
    color: #f57f17;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.sa-trivia-cat {
    color: var(--sa-text-light);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sa-trivia-q {
    font-size: 1.35rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.sa-trivia-options-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.daily-trivia-option {
    text-align: left;
    padding: 1rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sa-text);
    cursor: pointer;
    transition: all 0.2s;
}

.daily-trivia-option:hover {
    background: white;
    border-color: var(--sa-brand);
    box-shadow: 0 4px 12px rgba(10,123,110,0.1);
}

.daily-trivia-option.is-correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.daily-trivia-option.is-wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* SMILE CARD */
.sa-smile-h {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
}

.sa-smile-txt {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--sa-text-light);
    margin-bottom: 2rem;
}

/* FACT BANNER */
.sa-fact-banner {
    background: linear-gradient(135deg, white, #f9fafb);
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--sa-shadow-soft);
}

.sa-fact-icon {
    font-size: 4rem;
    line-height: 1;
}

.sa-fact-text {
    font-size: 1.8rem;
    line-height: 1.4;
    margin: 1rem 0 0 0;
}

/* GAMES HUB */
.sa-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.sa-game-premium-card {
    background: white;
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: var(--sa-shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

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

.sa-game-visual {
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-game-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.sa-game-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sa-game-details h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.sa-game-details p {
    font-size: 1.1rem;
    color: var(--sa-text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.sa-game-actions {
    margin-top: auto;
}

/* CAREGIVER & SUPPORT */
.sa-support-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.sa-support-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin: 0.5rem 0 1rem 0;
}

.sa-support-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--sa-text-light);
    margin: 0;
}

.sa-bookmark-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.sa-bookmark-item .sa-bookmark-icon {
    font-size: 2rem;
}

.sa-bookmark-item strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.sa-bookmark-item p {
    font-size: 1rem;
}

.sa-share-box, .sa-corelia-box {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--sa-shadow-soft);
    margin-bottom: 2rem;
}

.sa-share-box h3 {
    margin: 0 0 1.5rem 0;
}

/* TOAST */
.sa-premium-toast {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .sa-support-zone {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .sa-hero-premium {
        padding: 4rem 0 3rem;
    }
    
    .sa-fact-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
    }
    
    .sa-hero-btn-row {
        flex-direction: column;
    }
}

/* Playable activity panels */
.sa-game-stack {
    display: grid;
    gap: 2rem;
}

.activity-anchor {
    scroll-margin-top: 7rem;
}

.game-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: var(--sa-shadow-soft);
}

.game-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.game-header-text {
    max-width: 46rem;
}

.game-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sa-brand);
    margin-bottom: 0.5rem;
}

.game-label::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sa-brand), #34b3a4);
}

.game-header-text h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.game-header-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--sa-text-light);
    margin: 0;
}

.game-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sa-brand), #0d8f80);
    color: white;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(10, 123, 110, 0.2);
}

.game-button:hover {
    transform: translateY(-1px);
}

.game-button-quiet {
    background: white;
    color: var(--sa-brand);
    border: 1px solid rgba(10, 123, 110, 0.18);
    box-shadow: none;
}

.game-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: var(--sa-brand-dark);
    border: 1px solid #ccfbf1;
    font-size: 0.95rem;
    font-weight: 800;
}

.game-message,
.game-info-card {
    border-radius: 1.1rem;
    padding: 0.9rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: var(--sa-text-light);
}

.game-message {
    margin-bottom: 1rem;
}

.game-two-col,
.game-two-col-wide {
    display: grid;
    gap: 1rem;
}

.game-sidebar {
    background: #fcfdfd;
    border: 1px solid #e5e7eb;
    border-radius: 1.4rem;
    padding: 1.1rem;
}

.game-sidebar-inline {
    margin-bottom: 1rem;
}

.sidebar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.6rem 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sa-brand);
}

.game-sidebar-heading {
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
}

.game-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--sa-text-light);
}

.game-status-stack {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.memory-card {
    min-height: 105px;
    border-radius: 1.3rem;
    border: 2px solid #dbe3e1;
    background: white;
    color: var(--sa-text);
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.memory-card.is-hidden {
    background: linear-gradient(135deg, var(--sa-brand), #0e9d8e);
    color: white;
    border-color: transparent;
}

.memory-card.is-matched {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.word-search-shell,
.board-shell {
    overflow: auto;
}

.word-search-grid {
    display: grid;
    gap: 0.25rem;
    background: #f0fdfa;
    border-radius: 1.2rem;
    padding: 0.75rem;
}

.word-search-cell {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.75rem;
    border: 1px solid #dbe3e1;
    background: white;
    color: var(--sa-text);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.word-search-cell.is-start,
.word-search-cell.is-found {
    background: var(--sa-brand);
    color: white;
    border-color: var(--sa-brand);
}

.word-search-list {
    display: grid;
    gap: 0.5rem;
}

.word-search-word {
    padding: 0.6rem 0.8rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-weight: 700;
    color: var(--sa-text);
}

.word-search-word.is-found {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.sudoku-shell {
    display: inline-grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    background: #f0fdfa;
}

.sudoku-cell {
    width: 3rem;
    height: 3rem;
    border-radius: 0.55rem;
    border: 1px solid #dbe3e1;
    background: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sa-text);
}

.sudoku-cell.prefilled {
    background: #fef3c7;
    color: #92400e;
}

.sudoku-cell.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.mahjong-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.55rem;
}

.mahjong-tile {
    min-height: 82px;
    border-radius: 1rem;
    border: 1px solid #dbe3e1;
    background: white;
    color: var(--sa-text);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem;
    cursor: pointer;
}

.mahjong-tile.is-blocked {
    opacity: 0.4;
    cursor: not-allowed;
}

.mahjong-tile.is-selected {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1d4ed8;
}

.mahjong-tile.is-removed {
    visibility: hidden;
}

.breathing-shell {
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
}

.breathing-circle {
    width: min(18rem, 80vw);
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(10, 123, 110, 0.16), rgba(10, 123, 110, 0.05));
    border: 1px solid rgba(10, 123, 110, 0.16);
    display: grid;
    place-items: center;
    transform: scale(0.88);
    transition: transform 0.9s ease, background-color 0.9s ease;
}

.breathing-circle[data-phase="inhale"] {
    transform: scale(1);
}

.breathing-circle[data-phase="hold"] {
    transform: scale(1.04);
    background: radial-gradient(circle, rgba(251, 192, 45, 0.24), rgba(251, 192, 45, 0.08));
}

.breathing-circle[data-phase="exhale"] {
    transform: scale(0.82);
}

.breathing-circle span {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
}

.breathing-circle strong {
    font-size: 3.5rem;
    line-height: 1;
}

.breathing-note {
    font-size: 1rem;
    color: var(--sa-text-light);
}

.solitaire-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.solitaire-column {
    display: grid;
    gap: 0.6rem;
}

.card-face {
    min-height: 90px;
    padding: 0.75rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #dbe3e1;
    color: var(--sa-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 800;
}

.card-face.is-red {
    color: #be123c;
}

.card-face.is-playable {
    background: #ecfdf5;
    border-color: #10b981;
    cursor: pointer;
}

.card-face.is-removed {
    opacity: 0.4;
}

.ludo-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
}

.ludo-cell {
    min-height: 4.5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #dbe3e1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ludo-cell.is-safe {
    background: #ecfdf5;
    border-color: #86efac;
}

.cell-label,
.cell-home {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 700;
}

.chips {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.ludo-chip {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
}

.song-options,
.quiz-options {
    display: grid;
    gap: 0.75rem;
}

.option-card {
    min-height: 52px;
    border-radius: 1rem;
    border: 1px solid #dbe3e1;
    background: white;
    color: var(--sa-text);
    padding: 1rem 1.1rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.option-card.is-correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.option-card.is-wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

@media (min-width: 768px) {
    .game-two-col {
        grid-template-columns: 18rem 1fr;
    }

    .game-two-col-wide {
        grid-template-columns: 21rem 1fr;
    }

    .song-options,
    .quiz-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .memory-board {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .solitaire-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .game-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .memory-board {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .solitaire-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .game-panel {
        padding: 1.15rem;
    }

    .mahjong-board {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}/* TUTORIAL SYSTEM */
.sa-tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.sa-tutorial-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}

.sa-tutorial-card {
    position: absolute;
    z-index: 10002;
    background: white;
    width: min(22rem, 90vw);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: scale(0.95) translateY(10px);
}

.sa-tutorial-card.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

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

.sa-tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.sa-tutorial-close {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: var(--sa-text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sa-tutorial-close:hover {
    background: var(--sa-accent);
    color: white;
    transform: rotate(90deg);
}

#tutorial-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--sa-text);
    margin: 0;
}


.sa-tutorial-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.sa-tutorial-highlighted {
    position: relative !important;
    z-index: 10001 !important;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.4), 0 0 0 8px var(--sa-brand), 0 20px 40px rgba(0,0,0,0.3) !important;
    pointer-events: none !important;
    border-radius: 1rem;
    background-color: white !important;
}

.game-button-tutorial {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
    box-shadow: 0 4px 10px rgba(245, 127, 23, 0.1);
}

.game-button-tutorial:hover {
    background: #ffecb3;
    color: #e65100;
}
.sa-refresh-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--sa-border);
}

.timer-icon {
    font-size: 1.2rem;
    animation: saTimerWobble 2s ease-in-out infinite;
}

@keyframes saTimerWobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.timer-text {
    font-family: var(--sa-font-headings);
    color: var(--sa-text-light);
    font-size: 1.1rem;
}

#sa-hub-countdown {
    color: var(--sa-accent);
    font-weight: 800;
    min-width: 5rem;
    display: inline-block;
}
