/* ===== CSS Variables ===== */
:root {
    --primary: #FF6B6B;
    --primary-light: #FF8E53;
    --secondary: #2EC4B6;
    --secondary-dark: #1BA396;
    --accent: #6C5CE7;
    --accent-light: #A29BFE;
    --bg: #FFF8F0;
    --bg-card: #FFFFFF;
    --text: #2D3436;
    --text-light: #636E72;
    --text-lighter: #B2BEC3;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 56px;
    --nav-h: 64px;
    --gradient-primary: linear-gradient(135deg, #FF6B6B, #FF8E53);
    --gradient-secondary: linear-gradient(135deg, #2EC4B6, #6C5CE7);
    --gradient-warm: linear-gradient(135deg, #FDCB6E, #E17055);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--header-h);
    padding-bottom: var(--nav-h);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #6C5CE7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

.modal-overlay.hidden { display: none; }

.modal-content {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

.lang-select h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.lang-btn {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    border: 2px solid transparent;
}

.lang-btn:hover, .lang-btn:focus {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Header ===== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255,248,240,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.icon-btn:hover { background: rgba(0,0,0,0.06); }

.lang-current { font-size: 1.3rem; }

/* ===== Language Dropdown ===== */
#lang-dropdown {
    position: fixed;
    top: calc(var(--header-h) - 4px);
    right: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 200;
    min-width: 160px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

#lang-dropdown.hidden { display: none; }

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-item:hover { background: var(--bg); }

/* ===== Bottom Navigation ===== */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-item .nav-icon { font-size: 1.4rem; }
.nav-item .nav-label { font-size: 0.65rem; font-weight: 600; color: var(--text-light); }

.nav-item.active .nav-label { color: var(--primary); }
.nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
}

/* ===== Main Content ===== */
#app-content {
    min-height: calc(100vh - var(--header-h) - var(--nav-h));
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.page { animation: fadeIn 0.3s ease; }

/* ===== Home Page ===== */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.hero-emoji { font-size: 4rem; margin-bottom: 0.75rem; }

.hero h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.hero h2 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.5);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.section-header a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Culture Cards ===== */
.culture-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.culture-scroll::-webkit-scrollbar { display: none; }

.culture-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.culture-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

a.culture-card {
    text-decoration: none;
    color: inherit;
}

.culture-card .flag { font-size: 2.5rem; margin-bottom: 0.5rem; }
.culture-card .name { font-size: 0.9rem; font-weight: 700; }
.culture-card .region {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== Game Cards ===== */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.game-card:nth-child(1)::before { background: var(--gradient-primary); }
.game-card:nth-child(2)::before { background: var(--gradient-secondary); }
.game-card:nth-child(3)::before { background: var(--gradient-warm); }
.game-card:nth-child(4)::before { background: linear-gradient(135deg, #00B894, #00CEC9); }
.game-card:nth-child(5)::before { background: linear-gradient(135deg, #E17055, #D63031); }

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

a.game-card {
    text-decoration: none;
    color: inherit;
}

.game-card .game-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.game-card .game-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.game-card .game-desc { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; }

/* ===== Culture Detail Page ===== */
.culture-detail {
    padding-bottom: 1rem;
}

.culture-hero {
    text-align: center;
    padding: 1.5rem 0;
}

.culture-hero .big-flag { font-size: 4rem; margin-bottom: 0.5rem; }
.culture-hero h2 { font-size: 1.5rem; font-weight: 800; }
.culture-hero .culture-region { color: var(--text-light); font-size: 0.9rem; }

.culture-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

.culture-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.culture-section p, .culture-section li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.culture-section ul {
    list-style: none;
    padding: 0;
}

.culture-section li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.culture-section li:last-child { border-bottom: none; }
.culture-section li .emoji { font-size: 1.1rem; flex-shrink: 0; }

.greeting-audio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.greeting-audio:hover { transform: scale(1.05); }

.fun-fact {
    background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(255,142,83,0.08));
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.fun-fact p {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 0.85rem !important;
}

/* ===== Culture Images ===== */
.culture-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.culture-img-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.culture-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.culture-img-card:hover img {
    transform: scale(1.08);
}

.culture-img-card .img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Food item with image */
.food-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    align-items: center;
}

.food-item:last-child { border-bottom: none; }

.food-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.food-info { flex: 1; min-width: 0; }
.food-info .food-name { font-weight: 700; font-size: 0.95rem; }
.food-info .food-desc { color: var(--text-light); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }

/* Festival with image */
.festival-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.festival-item:last-child { border-bottom: none; }

.festival-img {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.festival-item .festival-name { font-weight: 700; font-size: 0.95rem; }
.festival-item .festival-desc { color: var(--text-light); font-size: 0.85rem; line-height: 1.4; margin-top: 2px; }

/* Landmark section */
.culture-section.images-section {
    padding: 0.75rem;
}

/* ===== Greeting Audio Button ===== */
.greeting-audio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.3rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.greeting-audio:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(255,107,107,0.3); }

.greeting-audio .play-icon {
    font-size: 0.85rem;
    transition: var(--transition);
}

.greeting-audio.speaking .play-icon {
    animation: pulse 0.6s infinite;
}

.greeting-audio .greeting-native {
    font-weight: 700;
}

.greeting-audio .greeting-meaning {
    font-size: 0.75rem;
    opacity: 0.85;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.bias-card {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.bias-card .bias-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.bias-label.myth { background: #FFE0E0; color: #D63031; }
.bias-label.fact { background: #DFF9E8; color: #00B894; }

.bias-card p { font-size: 0.85rem; line-height: 1.5; }

/* ===== Games Page ===== */
.games-page .page-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.games-page .page-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* ===== Game Play Area ===== */
.game-container {
    animation: fadeIn 0.3s ease;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.game-header .back-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.game-header .score-display {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.game-progress {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.game-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.game-question {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.game-option {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    border: 2px solid transparent;
}

.game-option:hover {
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.game-option.correct {
    background: #DFF9E8;
    border-color: #00B894;
    color: #00B894;
}

.game-option.wrong {
    background: #FFE0E0;
    border-color: #D63031;
    color: #D63031;
}

.game-option.reveal {
    border-color: #00B894;
    background: #DFF9E8;
}

/* Game Result */
.game-result {
    text-align: center;
    padding: 2rem 1rem;
}

.game-result .result-emoji { font-size: 4rem; margin-bottom: 1rem; }
.game-result h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.game-result .result-score { font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.game-result .result-msg { color: var(--text-light); margin: 0.75rem 0 1.5rem; line-height: 1.5; }

/* Food Match Game Specific */
.match-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.match-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    padding: 0.8rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.match-item:hover { border-color: var(--primary-light); }
.match-item.selected { border-color: var(--primary); background: #FFF0F0; }
.match-item.matched { border-color: #00B894; background: #DFF9E8; opacity: 0.6; pointer-events: none; }
.match-item.wrong-match { border-color: #D63031; background: #FFE0E0; }

/* Bias Game Specific */
.bias-statement {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.bias-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.bias-btn {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.bias-btn.myth-btn {
    background: #FFE0E0;
    color: #D63031;
}

.bias-btn.fact-btn {
    background: #DFF9E8;
    color: #00B894;
}

.bias-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.bias-btn.selected-myth { background: #D63031; color: white; }
.bias-btn.selected-fact { background: #00B894; color: white; }

.bias-explanation {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.bias-explanation.show { display: block; animation: fadeIn 0.3s ease; }

/* ===== About Page ===== */
.about-content {
    text-align: center;
    padding: 2rem 1rem;
}

.about-content .about-emoji { font-size: 4rem; margin-bottom: 1rem; }
.about-content h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.75rem; }
.about-content p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }

.pledge-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.5rem;
    text-align: left;
}

.pledge-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.pledge-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.pledge-item .pledge-emoji { font-size: 1.2rem; flex-shrink: 0; }
.pledge-item p { font-size: 0.9rem; line-height: 1.5; color: var(--text-light); }

/* ===== Cultures List Page ===== */
.cultures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.cultures-grid .culture-card {
    width: 100%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .lang-grid { grid-template-columns: 1fr 1fr 1fr; }
    .cultures-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    #app-content { padding: 1.5rem; }
}

@media (min-width: 1024px) {
    #app-content { padding: 2rem; }
    .cultures-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ===== Utility ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===== Toast Notifications ===== */
#toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    width: 90%;
    max-width: 380px;
}

.achievement-toast {
    background: linear-gradient(135deg, #2EC4B6, #6C5CE7);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(44,196,182,0.35);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    pointer-events: auto;
    animation: toastIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards,
               toastOut 0.4s ease 3.1s forwards;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

@keyframes toastIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-16px) scale(0.96); }
}

.toast-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    animation: toastBounce 0.6s ease 0.3s;
}

@keyframes toastBounce {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.toast-body { flex: 1; }
.toast-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 2px;
}
.toast-name { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.toast-desc { font-size: 0.78rem; opacity: 0.85; margin-top: 2px; line-height: 1.4; }

/* ===== Achievement List (About Page) ===== */
.achievement-list {
    margin-top: 1.5rem;
    text-align: left;
}

.achievement-list h3 {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-item.unlocked {
    border-left: 4px solid var(--primary);
    background: linear-gradient(135deg, #FFF8F0, #FFFFFF);
}

.achievement-item.locked {
    opacity: 0.55;
    filter: grayscale(0.6);
}

.achievement-icon { font-size: 1.8rem; flex-shrink: 0; }
.achievement-info { flex: 1; }
.achievement-name { font-size: 0.9rem; font-weight: 700; }
.achievement-desc { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; line-height: 1.4; }
.achievement-badge { font-size: 1.2rem; flex-shrink: 0; }

/* ===== Responsive tweaks for toast ===== */
@media (max-width: 480px) {
    #toast-container { width: 95%; }
    .achievement-toast { padding: 0.85rem 1rem; }
    .toast-icon { font-size: 1.8rem; }
}

