
/* ===== Games section ===== */
.page-header--games { background: linear-gradient(135deg, #0B7A9A 0%, #1a5f4a 45%, #667eea 100%); }
.page-header--game { background: linear-gradient(135deg, #1a5f4a 0%, #0B7A9A 100%); }

.games-section { padding: 2rem 0 3rem; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.games-empty { text-align: center; color: var(--color-text-muted); padding: 2rem; }

.game-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.game-card__visual {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-card__emoji { font-size: 3.5rem; }
.game-card__badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.game-card__body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.game-card__body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.game-card__body p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.45; flex: 1; }
.game-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.game-card__cta { color: var(--color-primary); font-weight: 700; }

.game-play-section { padding: 1.5rem 0 3rem; }
.game-play-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 960px) {
    .game-play-layout { grid-template-columns: 1fr 280px; }
}
.game-play-main { min-width: 0; }
.game-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.game-sidebar-card h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.game-sidebar-card--highlight {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(11,122,154,0.06) 0%, var(--color-surface) 100%);
}
.game-best-score { font-size: 1.75rem; font-weight: 800; margin: 0; color: var(--color-primary); }
.game-best-guna { margin: 0.25rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.game-leaderboard { list-style: none; margin: 0; padding: 0; }
.game-leaderboard li {
    display: grid;
    grid-template-columns: 1.5rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}
.game-leaderboard li:last-child { border-bottom: 0; }
.game-leaderboard__rank { font-weight: 800; color: var(--color-text-muted); }
.game-leaderboard__score { font-weight: 700; color: var(--color-primary); }
.game-leaderboard__empty { grid-column: 1 / -1; color: var(--color-text-muted); }

/* Guna game */
.guna-game {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.game-shell .guna-screen {
    color: #fff;
    max-width: 560px;
    margin: 0 auto;
    padding: 0.5rem 0 1.75rem;
}
.game-shell .guna-lead,
.game-shell .guna-note,
.game-shell .guna-scenario-text,
.game-shell .guna-step-label,
.game-shell .guna-invite-hint,
.game-shell .guna-result-body > p,
.game-shell .guna-result-body > ul { color: rgba(255,255,255,0.94); }
.game-shell .guna-result-body h3,
.game-shell .guna-result-body > h4,
.game-shell .guna-share-actions h4 { color: #fff; }
.game-shell .guna-choice {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.32);
    color: #fff;
}
.game-shell .guna-choice:hover,
.game-shell .guna-choice:focus {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}
.game-shell .guna-choice--beyond {
    border-color: rgba(168, 230, 207, 0.75);
}
.game-shell .guna-bar { background: rgba(255,255,255,0.2); }
.game-shell .guna-bar__fill { background: linear-gradient(90deg, #a8e6cf, #fff); }
.game-shell .guna-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.game-shell .guna-tomorrow {
    background: rgba(168, 230, 207, 0.2);
    border: 1px solid rgba(168, 230, 207, 0.55);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    color: #fff;
}
.game-shell .guna-beyond {
    background: rgba(255, 255, 255, 0.97);
    color: #16343a;
    border-left: 3px solid #0B7A9A;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.game-shell .guna-beyond h4,
.game-shell .guna-beyond p {
    color: #16343a;
}
.game-shell .guna-beyond-note {
    color: #0a5f78;
    background: rgba(11, 122, 154, 0.1);
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    font-weight: 600;
}
.game-shell .btn-ghost,
.game-shell .guna-replay {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
.game-shell .btn-ghost:hover,
.game-shell .guna-replay:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: #fff !important;
}
.game-shell .guna-save-status {
    color: #c8f5dc;
}
.guna-tomorrow strong { display: block; margin-bottom: 0.35rem; }
.guna-tomorrow p { margin: 0; }
.guna-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    justify-content: center;
}
.guna-landing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.guna-landing-pills .guna-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
.guna-share-card__sub {
    display: block;
    opacity: 0.85;
    font-size: 0.9rem;
    margin: -0.35rem 0 0.75rem;
}
.guna-screen { padding: 1.25rem 1.25rem 1.5rem; }
@media (min-width: 640px) { .guna-screen { padding: 1.75rem 2rem 2rem; } }
.guna-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}
.guna-progress__step {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-muted);
}
.guna-progress__step.active { background: var(--color-primary); color: #fff; }
.guna-progress__step.done { background: rgba(11,122,154,0.15); color: var(--color-primary-dark); }
.guna-hero { text-align: center; max-width: 36rem; margin: 0 auto 1.25rem; }
.guna-hero__symbol { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.guna-hero h2 { margin: 0 0 0.75rem; font-size: 1.45rem; }
.guna-lead { color: var(--color-text-muted); line-height: 1.55; margin: 0 0 1rem; }
.guna-bullets { text-align: left; margin: 0 auto 1rem; max-width: 28rem; line-height: 1.5; }
.guna-note { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.guna-guna-preview {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem auto 1.5rem;
    max-width: 28rem;
}
.guna-pill {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.35;
}
.guna-pill strong { display: block; margin-bottom: 0.15rem; }
.guna-pill--sattva { background: rgba(46,204,113,0.12); border-left: 3px solid #2ecc71; }
.guna-pill--rajas { background: rgba(230,126,34,0.12); border-left: 3px solid #e67e22; }
.guna-pill--tamas { background: rgba(127,140,141,0.15); border-left: 3px solid #7f8c8d; }
.guna-pill--beyond {
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-left: 3px solid #d4af37;
    border-right: 3px solid #764ba2;
}
.guna-beyond-hint { margin-top: 0.75rem; font-style: italic; }
.guna-beyond-note { margin-top: 0.75rem; font-size: 0.92rem; color: var(--color-primary-dark); }
.guna-choice--beyond {
    border-color: rgba(212,175,55,0.45);
    background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(118,75,162,0.06) 100%);
}
.guna-choice--beyond:hover {
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(118,75,162,0.1) 100%);
}
.guna-btn-start { display: block; width: 100%; max-width: 16rem; margin: 0 auto; }
.guna-step-label { font-size: 0.82rem; font-weight: 700; color: var(--color-text-muted); margin: 0 0 0.5rem; }
.guna-bar { height: 4px; background: var(--color-border); border-radius: 999px; margin-bottom: 1.25rem; overflow: hidden; }
.guna-bar__fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), #2ecc71); transition: width 0.3s; }
.guna-question, .guna-scenario-title { font-size: 1.2rem; margin: 0 0 1rem; line-height: 1.4; }
.guna-scenario-text { color: var(--color-text-muted); margin: 0 0 1.25rem; line-height: 1.55; }
.guna-choices { display: grid; gap: 0.65rem; }
.guna-choice {
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.18s, box-shadow 0.18s;
    animation: gunaChoiceIn 0.42s ease both;
}
.guna-choice:nth-child(1) { animation-delay: 0.04s; }
.guna-choice:nth-child(2) { animation-delay: 0.1s; }
.guna-choice:nth-child(3) { animation-delay: 0.16s; }
.guna-choice:nth-child(4) { animation-delay: 0.22s; }
.guna-choice:hover {
    border-color: var(--color-primary);
    background: rgba(11,122,154,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 122, 154, 0.12);
}
.guna-share-card {
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.guna-share-card__logo { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; opacity: 0.85; }
.guna-share-card__emoji { font-size: 2.5rem; display: block; margin: 0.5rem 0; }
.guna-share-card__label { margin: 0; font-size: 0.85rem; opacity: 0.9; }
.guna-share-card__guna { margin: 0.25rem 0; font-size: 1.75rem; }
.guna-share-card__index { margin: 0 0 1rem; font-size: 1rem; }
.guna-share-card__bars { text-align: left; max-width: 18rem; margin: 0 auto; }
.guna-share-bar {
    display: grid;
    grid-template-columns: 4.5rem 1fr 2.5rem;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}
.guna-share-bar div {
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    overflow: hidden;
}
.guna-share-bar i {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 999px;
    width: 0;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.guna-result-body h3 { margin: 0 0 0.5rem; }
.guna-result-body h4 { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.guna-result-body ul { margin: 0; padding-left: 1.2rem; line-height: 1.55; }
.guna-beyond {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}
.guna-share-actions { margin: 1.5rem 0 1rem; }
.guna-share-actions h4 { margin: 0 0 0.35rem; }
.guna-invite-hint { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 0.75rem; }
.guna-share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guna-save-status { font-size: 0.85rem; color: var(--color-primary); margin-top: 0.75rem; }
.guna-replay { width: 100%; margin-top: 0.5rem; }
.back-link { color: rgba(255,255,255,0.9); font-size: 0.9rem; display: inline-block; margin-bottom: 0.75rem; }
.page-header__inner--game .back-link:hover { color: #fff; }

.page-header--game-cover {
    position: relative;
    background: linear-gradient(135deg, rgba(11,122,154,0.92), rgba(26,95,74,0.88)), var(--game-cover) center/cover no-repeat;
    min-height: 280px;
}
.game-header-badge {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.game-sidebar-hint { font-size: 0.78rem; color: var(--color-text-muted); margin: -0.35rem 0 0.65rem; }
.game-best-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.5rem; }
.game-best-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.guna-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 22rem;
    margin: 0 auto 1rem;
}
.guna-metric {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    backdrop-filter: blur(4px);
}
.guna-metric__label { display: block; font-size: 0.72rem; opacity: 0.9; margin-bottom: 0.2rem; }
.guna-metric__value { font-size: 1.65rem; font-weight: 800; line-height: 1; }
.guna-metric__value small { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.guna-metric__tier { display: block; font-size: 0.75rem; margin-top: 0.25rem; opacity: 0.95; }

.guna-screen { animation: gunaFadeIn 0.4s ease; }
.guna-screen--result .guna-share-card { animation: gunaCardRise 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.guna-screen--result .guna-result-body { animation: gunaFadeIn 0.5s ease 0.12s both; }
.guna-screen--result .guna-share-actions { animation: gunaFadeIn 0.5s ease 0.22s both; }
.guna-screen--result .guna-result-actions { animation: gunaFadeIn 0.5s ease 0.3s both; }
@keyframes gunaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gunaChoiceIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gunaCardRise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.guna-choice:active { transform: scale(0.98); }
.guna-choice.is-picked {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px rgba(168, 230, 207, 0.8);
}
.guna-game {
    box-shadow: 0 8px 32px rgba(11, 122, 154, 0.12);
}
.guna-hero__symbol {
    animation: gunaPulse 3s ease-in-out infinite;
}
@keyframes gunaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.guna-replay {
    min-height: 46px;
    font-weight: 700;
}

/* ===== Game card dual CTA ===== */
.game-card h3 a { color: inherit; text-decoration: none; }
.game-card h3 a:hover { color: var(--color-primary); }
.game-card__visual-link { display: block; color: inherit; text-decoration: none; }
.game-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}
.game-card__actions .btn { flex: 1; text-align: center; justify-content: center; }

/* ===== Path landing ===== */
.game-landing {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.5rem 1.35rem 1.75rem;
    box-shadow: var(--shadow-sm);
}
.game-landing__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.game-meta-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(11, 122, 154, 0.1);
    color: var(--color-primary-dark, #0B7A9A);
}
.game-landing__how h2 { font-size: 1.15rem; margin: 0 0 0.65rem; }
.game-landing__how ul { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.55; color: var(--color-text-muted); }
.game-landing__domain { margin: 0 0 1rem; font-size: 0.95rem; }
.game-landing__related {
    padding: 0.9rem 1rem;
    background: rgba(26, 95, 74, 0.06);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}
.game-landing__related p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--color-text-muted); }
.game-landing__cta { text-align: center; }
.game-landing__played { color: var(--color-text-muted); margin-bottom: 0.75rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }

.path-streak {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(231, 76, 60, 0.12));
}
.path-streak--inline { margin-bottom: 1rem; }
.path-streak__flame { font-size: 1.5rem; }
.path-streak strong { display: block; font-size: 1.4rem; line-height: 1; }
.path-streak span { font-size: 0.8rem; color: var(--color-text-muted); }
.path-streak__best { margin-left: auto; text-align: right; }
.path-axes-mini { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }

.path-axis-bar {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7rem) 1fr auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
}
.path-axis-bar__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
}
.path-axis-bar__track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0B7A9A, #2ecc71);
}
.path-axis-bar strong { font-variant-numeric: tabular-nums; min-width: 2rem; text-align: right; }
.path-axis-bar strong small { font-weight: 600; color: #27ae60; }

/* ===== Fullscreen shell ===== */
body.game-shell-open { overflow: hidden; }

.game-shell {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    flex-direction: column;
    color: #fff;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.game-shell--active { display: flex; }
.game-shell__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}
.game-shell__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 122, 154, 0.82) 0%, rgba(26, 95, 74, 0.9) 55%, rgba(15, 40, 50, 0.94) 100%);
}
.game-shell__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    min-height: 52px;
}
.game-shell__close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.game-shell__close:hover { background: rgba(255,255,255,0.28); }
.game-shell__progress {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}
.path-progress__step {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    opacity: 0.55;
}
.path-progress__step.active { opacity: 1; background: rgba(255,255,255,0.28); }
.path-progress__step.done { opacity: 0.85; background: rgba(46, 204, 113, 0.35); }

.game-shell__content {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem 1.5rem;
    display: flex;
    justify-content: center;
}

.path-screen {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    animation: gunaFadeIn 0.35s ease;
}
.path-hero { font-size: 3.5rem; text-align: center; margin: 0.5rem 0 0.25rem; }
.path-screen h2 { font-size: 1.45rem; margin: 0 0 0.65rem; text-align: center; }
.path-lead, .path-q, .path-note { text-align: center; line-height: 1.5; opacity: 0.95; }
.path-note { font-size: 0.9rem; margin-top: 0.75rem; }
.path-note--warn { opacity: 0.85; font-style: italic; }
.path-domain-pill {
    text-align: center;
    margin: 1rem 0;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 0.92rem;
}
.path-step-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.5rem;
}
.path-choices { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.1rem; }
.path-choice {
    min-height: 52px;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.path-choice:hover, .path-choice:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.55);
    outline: none;
}
.path-choice:active { transform: scale(0.98); }
.path-choice--beyond {
    border-color: rgba(221, 160, 221, 0.65);
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.35), rgba(138, 43, 226, 0.25));
}
.path-choice--risk { border-color: rgba(231, 76, 60, 0.55); }
.path-btn {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 52px;
    font-size: 1.05rem;
}
.path-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    margin: 0.85rem 0;
}
.path-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.path-card p { margin: 0; line-height: 1.5; opacity: 0.95; }
.path-card__eyebrow {
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7 !important;
    margin-bottom: 0.4rem !important;
}
.path-reflect { margin-top: 0.75rem !important; }
.path-source {
    display: inline-block;
    margin-top: 0.75rem;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.path-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}
.path-metrics > div {
    text-align: center;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
}
.path-metrics span { display: block; font-size: 0.75rem; opacity: 0.85; }
.path-metrics strong { font-size: 1.6rem; }
.path-axes { margin: 0.75rem 0 1rem; }
.path-axes .path-axis-bar { color: #fff; margin-bottom: 0.4rem; }
.path-axes .path-axis-bar__track { background: rgba(255,255,255,0.2); }
.path-axes .path-axis-bar__track i { background: linear-gradient(90deg, #a8e6cf, #fff); }
.path-share { margin-top: 1rem; }
.path-share h3 { font-size: 1rem; margin: 0 0 0.65rem; }
.path-share__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.path-share__actions .btn { color: #fff; border-color: rgba(255,255,255,0.35); }
.path-save-status { font-size: 0.85rem; opacity: 0.85; margin-top: 0.65rem; }
.path-streak--result { justify-content: center; }

@media (min-width: 900px) and (orientation: landscape) {
    .game-shell__content { padding-top: 0.75rem; }
    .path-screen { max-width: 520px; }
}

.profile-path-v2 { margin-top: 1rem; }

.game-shell--path .game-shell__overlay {
    background: linear-gradient(165deg, rgba(4, 42, 58, 0.72) 0%, rgba(8, 70, 90, 0.55) 45%, rgba(12, 40, 48, 0.75) 100%);
}

.path-level-badge {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.path-level-badge strong { font-size: 2rem; line-height: 1; }
.path-level-badge__label { color: var(--color-text-muted); }
.path-level-badge__done { color: #27ae60; font-size: 1.25rem; }
.path-level-stats { font-size: 0.85rem; color: var(--color-text-muted); margin: 0.5rem 0 1rem; }

.path-level-progress { margin: 0.75rem 0; }
.path-level-progress span { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.35rem; }
.path-level-progress__track {
    height: 10px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.path-level-progress__track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0b7a9a, #2ecc71);
    border-radius: 999px;
    transition: width 0.5s ease;
}
.path-screen .path-level-progress__track { background: rgba(255,255,255,0.2); }

@keyframes pathTileIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Path quiz — score UI */
.path-progress__pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
}
.path-q-title {
    font-size: 1.2rem !important;
    line-height: 1.4;
    text-align: left !important;
    margin: 0.5rem 0 1rem !important;
}
.path-pts {
    text-align: center;
    font-size: 0.95rem;
    margin: 0.75rem 0;
}
.path-score {
    margin: 0.85rem 0;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}
.path-score--landing {
    background: var(--color-bg-alt, #f4fafb);
    border-color: var(--color-border);
    color: var(--color-text);
}
.path-score__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.path-score__head strong { font-variant-numeric: tabular-nums; }
.path-score__track {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    overflow: hidden;
}
.path-score--landing .path-score__track { background: rgba(11, 122, 154, 0.12); }
.path-score__track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6fd3a0, #f0d78c);
    transition: width 0.4s ease;
}
.path-delta--up { color: #b8f0d0; }
.path-delta--down { color: #ffc9a8; }
.path-score--landing .path-delta--up { color: #1a7a4c; }
.path-score--landing .path-delta--down { color: #b45309; }
.game-shell--path .path-choice {
    text-align: left;
    animation: pathTileIn 0.3s ease both;
}
.game-shell--path .path-choice:nth-child(1) { animation-delay: 0.03s; }
.game-shell--path .path-choice:nth-child(2) { animation-delay: 0.08s; }
.game-shell--path .path-choice:nth-child(3) { animation-delay: 0.13s; }
.game-shell--path .path-choice:nth-child(4) { animation-delay: 0.18s; }
.game-shell--path .path-choice:nth-child(5) { animation-delay: 0.23s; }

.path-kosha {
    text-align: center;
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(240, 215, 140, 0.12);
    border: 1px solid rgba(240, 215, 140, 0.35);
}
.path-kosha__label {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}
.path-kosha__name {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
}
.path-kosha__hint {
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.9;
}
.path-card--teach {
    border-color: rgba(168, 230, 207, 0.4);
    background: rgba(168, 230, 207, 0.1);
}
.path-quote {
    margin: 0.85rem 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid rgba(240, 215, 140, 0.75);
    text-align: left;
}
.path-quote p { margin: 0.35rem 0 0; line-height: 1.5; }
.path-quote footer {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.path-quote__link {
    color: #f0d78c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.game-landing .path-kosha,
.profile-card .path-kosha {
    background: var(--color-bg-alt, #f4fafb);
    border-color: var(--color-border);
    color: var(--color-text);
}


/* ——— Якша-прашна ——— */
.yaksha-game { min-height: 1px; }
.yaksha-progress__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.35rem;
}
.yaksha-screen {
    color: #fff;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.35rem 0 1.5rem;
}
.yaksha-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    opacity: 0.8;
    margin: 0 0 0.5rem;
}
.yaksha-screen h2 {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: #fff;
}
.yaksha-story-title {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.85rem;
    color: #f0d78c;
}
.yaksha-lead {
    color: rgba(255,255,255,0.92);
    line-height: 1.55;
    margin: 0 0 1rem;
}
.yaksha-lead--story {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(240, 215, 140, 0.35);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}
.yaksha-bullets {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    color: rgba(255,255,255,0.92);
}
.yaksha-bullets li { margin: 0.35rem 0; }
.yaksha-note {
    font-size: 0.9rem;
    color: rgba(240, 215, 140, 0.95);
    margin: 0 0 1.1rem;
}

/* Levels map on intro */
.yaksha-levels-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0 0 1.15rem;
}
.yaksha-levels-preview__item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.4rem;
    row-gap: 0.1rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(240, 215, 140, 0.28);
    text-align: left;
}
.yaksha-levels-preview__emoji {
    grid-row: 1 / span 2;
    font-size: 1.15rem;
    line-height: 1;
}
.yaksha-levels-preview__num {
    grid-row: 1 / span 2;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(240, 215, 140, 0.22);
    border: 1px solid rgba(240, 215, 140, 0.5);
    color: #f0d78c;
}
.yaksha-levels-preview__item strong {
    grid-column: 3;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.yaksha-levels-preview__item small {
    grid-column: 3;
    font-size: 0.68rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
}

.yaksha-level-intro,
.yaksha-level-done {
    text-align: center;
}
.yaksha-level-badge {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    line-height: 1;
    margin: 0.35rem auto 0.75rem;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.28), rgba(240, 215, 140, 0.12) 55%, rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(240, 215, 140, 0.45);
    box-shadow: 0 0 28px rgba(240, 215, 140, 0.22);
    animation: yakshaPraiseIn 0.55s ease-out;
}
.yaksha-level-sub {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    color: rgba(240, 215, 140, 0.95);
    font-weight: 600;
}
.yaksha-level-intro .yaksha-cta,
.yaksha-level-done .yaksha-cta {
    margin-top: 0.35rem;
}
.yaksha-progress__pill--ch {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(240, 215, 140, 0.18);
    border-color: rgba(240, 215, 140, 0.45);
    color: #f0d78c;
}

.yaksha-name {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    text-align: left;
}
.yaksha-name span { font-weight: 600; font-size: 0.88rem; }
.yaksha-name input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}
.yaksha-name input::placeholder { color: rgba(255,255,255,0.55); }
.yaksha-name input.is-invalid { border-color: #ff8a80; box-shadow: 0 0 0 2px rgba(255,138,128,0.25); }

.game-player-name,
.path-screen .game-player-name,
.guna-screen .game-player-name {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    text-align: left;
}
.game-player-name span,
.path-screen .game-player-name span,
.guna-screen .game-player-name span { font-weight: 600; font-size: 0.88rem; }
.game-player-name input,
.path-screen .game-player-name input,
.guna-screen .game-player-name input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}
.game-player-name input::placeholder { color: rgba(255,255,255,0.55); }
.game-player-name input.is-invalid { border-color: #ff8a80; box-shadow: 0 0 0 2px rgba(255,138,128,0.25); }
.game-player-name__hint { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: #ff8a80; }

.yaksha-cta { width: 100%; max-width: 320px; }
.yaksha-step {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0 0 0.5rem;
}
.yaksha-q { margin-bottom: 1rem; }
.yaksha-retry-hint {
    background: rgba(168, 230, 207, 0.18);
    border: 1px solid rgba(168, 230, 207, 0.45);
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}
.yaksha-choices {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.yaksha-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    text-align: left;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}
.yaksha-choice:hover,
.yaksha-choice:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(240, 215, 140, 0.75);
    transform: translateY(-1px);
}
.yaksha-choice__mark {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    background: rgba(240, 215, 140, 0.25);
    border: 1px solid rgba(240, 215, 140, 0.55);
}
.yaksha-choice__text { line-height: 1.4; font-size: 0.95rem; }

.yaksha-praise {
    position: relative;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(168,230,207,0.25), rgba(240,215,140,0.18));
    border: 1px solid rgba(240, 215, 140, 0.45);
    overflow: hidden;
    animation: yakshaPraiseIn .55s ease-out;
}
.yaksha-praise h2 { margin: 0; position: relative; font-size: 1.5rem; color: #f0d78c; }
.yaksha-praise__glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.35), transparent 55%);
    animation: yakshaGlow 2.4s ease-in-out infinite;
    pointer-events: none;
}
.yaksha-praise h2, .yaksha-praise p { position: relative; }
.yaksha-teaching {
    background: rgba(255,255,255,0.97);
    color: #1a2f28;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.1rem;
    border-left: 4px solid #c9a227;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.yaksha-teaching--transparent {
    background: rgba(240, 215, 140, 0.16);
    border: 1px solid rgba(240, 215, 140, 0.45);
    color: #fff;
    border-left: 1px solid rgba(240, 215, 140, 0.45);
    box-shadow: none;
    text-align: left;
}
.yaksha-teaching h3 { margin: 0 0 0.45rem; color: #1a2f28; font-size: 1rem; }
.yaksha-teaching--transparent h3 { color: #f0d78c; }
.yaksha-teaching p { margin: 0 0 0.75rem; line-height: 1.5; color: #243830; }
.yaksha-teaching p:last-child { margin-bottom: 0; }
.yaksha-teaching--transparent p { color: rgba(255,255,255,0.92); }
.yaksha-teaching__extra { margin-top: 0.75rem !important; font-weight: 600; color: #0b5c45; }
.yaksha-teaching--transparent .yaksha-teaching__extra { color: #a8e6cf; }

.yaksha-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(8,14,12,0.96) 55%, rgba(8,14,12,0.55) 85%, transparent);
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    box-sizing: border-box;
}
.yaksha-fixed-bottom .btn {
    pointer-events: auto;
    min-height: 3rem;
    width: min(100%, 420px);
}
/* Явный запас под фиксированную кнопку: 100px чистого места + высота кнопки */
.yaksha-teach-end-space {
    display: block;
    width: 100%;
    height: calc(100px + 5.5rem + env(safe-area-inset-bottom, 0px));
    min-height: calc(100px + 5.5rem + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    pointer-events: none;
}
.yaksha-screen--with-fixed-btn {
    padding-bottom: 0;
}

.yaksha-mantra__board {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.75rem 0 1rem;
}
.yaksha-mantra__target {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    min-height: 9.5rem;
    padding: 0.55rem;
    border-radius: 16px;
    background: rgba(0,0,0,0.28);
    border: 1px dashed rgba(240, 215, 140, 0.55);
}
.yaksha-mantra__guide {
    text-align: left;
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(240, 215, 140, 0.14);
    border: 1px solid rgba(240, 215, 140, 0.45);
}
.yaksha-mantra__guide-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0d78c;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.yaksha-mantra__guide-text {
    margin: 0;
    line-height: 1.45;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}
.yaksha-slot {
    min-height: 2.6rem;
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.yaksha-slot.is-over { border-color: #f0d78c; background: rgba(240,215,140,0.18); }
.yaksha-slot--filled { padding: 0; border: 0; background: transparent; }
.yaksha-mantra__pool {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    min-height: 4.5rem;
}
.yaksha-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 215, 140, 0.55);
    background: linear-gradient(135deg, rgba(80, 50, 20, 0.85), rgba(40, 70, 55, 0.9));
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: grab;
    touch-action: manipulation;
    user-select: none;
}
.yaksha-chip i { display: none; }
.yaksha-chip.is-dragging { opacity: 0.45; }
.yaksha-chip--placed { width: 100%; justify-content: center; cursor: pointer; }
.yaksha-mantra__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}
.yaksha-mantra__actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.yaksha-finale { text-align: center; position: relative; overflow: hidden; }
.yaksha-finale__title {
    animation: yakshaFinaleTitle 1s ease-out;
    text-shadow: 0 0 24px rgba(240,215,140,0.55);
}
.yaksha-finale__lesson {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f0d78c;
    margin: 0.5rem 0 1.1rem;
    animation: yakshaFinaleTitle 1.2s ease-out 0.15s both;
}
.yaksha-finale__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0 0 1rem;
}
.yaksha-finale__stats div {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    padding: 0.7rem 0.5rem;
}
.yaksha-finale__stats span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}
.yaksha-finale__stats strong { font-size: 1.25rem; }
.yaksha-share { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 0.85rem; }
.yaksha-save-status { font-size: 0.88rem; opacity: 0.9; margin-bottom: 0.75rem; }

.yaksha-finale__burst { position: absolute; inset: 0; pointer-events: none; }
.yaksha-finale__burst span {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #f0d78c;
    opacity: 0;
    animation: yakshaSpark 1.8s ease-out infinite;
}
.yaksha-finale__burst span:nth-child(1) { left: 12%; top: 18%; animation-delay: 0s; }
.yaksha-finale__burst span:nth-child(2) { left: 78%; top: 22%; animation-delay: .2s; background: #a8e6cf; }
.yaksha-finale__burst span:nth-child(3) { left: 22%; top: 62%; animation-delay: .35s; }
.yaksha-finale__burst span:nth-child(4) { left: 86%; top: 58%; animation-delay: .5s; background: #fff; }
.yaksha-finale__burst span:nth-child(5) { left: 48%; top: 10%; animation-delay: .15s; background: #a8e6cf; }
.yaksha-finale__burst span:nth-child(6) { left: 55%; top: 78%; animation-delay: .4s; }

@keyframes yakshaPraiseIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes yakshaGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.08); }
}
@keyframes yakshaFinaleTitle {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes yakshaSpark {
    0% { opacity: 0; transform: translateY(0) scale(0.4); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-48px) scale(1.2); }
}

@media (max-width: 520px) {
    .yaksha-mantra__target { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; }
    .yaksha-chip { font-size: 0.74rem; padding: 0.4rem 0.5rem; }
    .yaksha-choice { padding: 0.75rem 0.8rem; }
    .yaksha-finale__stats { grid-template-columns: 1fr 1fr; }
    .yaksha-levels-preview { grid-template-columns: 1fr; }
}

.game-shell .yaksha-screen .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.game-shell .yaksha-screen .btn-ghost:hover {
    background: rgba(255,255,255,0.16);
}
.yaksha-mantra__target.is-done { border-style: solid; border-color: rgba(168,230,207,0.75); box-shadow: 0 0 0 2px rgba(168,230,207,0.25); }
.yaksha-mantra__target.is-wrong { border-color: rgba(255,138,128,0.75); animation: yakshaShake .4s ease; }
.yaksha-retry-hint--warn { background: rgba(255,138,128,0.18); border-color: rgba(255,138,128,0.45); }
@keyframes yakshaShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Yaksha cover + shell */
.page-header--yaksha {
    min-height: clamp(220px, 42vw, 360px);
    background:
        linear-gradient(180deg, rgba(12, 18, 14, 0.52) 0%, rgba(12, 18, 14, 0.78) 100%),
        var(--game-cover) center/cover no-repeat;
}
.game-shell--yaksha .game-shell__bg {
    background-position: center center;
    background-size: cover;
}
.game-shell--yaksha .game-shell__overlay {
    background: linear-gradient(180deg, rgba(8, 14, 12, 0.55) 0%, rgba(8, 14, 12, 0.78) 55%, rgba(8, 14, 12, 0.88) 100%);
}
.game-shell--yaksha .game-shell__content {
    scroll-padding-bottom: calc(100px + 5.5rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: 0.25rem;
}
.game-shell--yaksha .yaksha-screen {
    max-width: min(640px, 100%);
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}

@media (max-width: 720px) {
    .page-header--yaksha {
        min-height: 200px;
    }
    .game-shell--yaksha .game-shell__content {
        padding: 0.55rem 0.75rem 1.25rem;
    }
    .yaksha-mantra__target {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.28rem;
        padding: 0.4rem;
        min-height: 10.5rem;
    }
    .yaksha-slot {
        min-height: 2.85rem;
    }
    .yaksha-chip {
        min-height: 2.5rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.78rem;
    }
    .yaksha-choice {
        min-height: 3rem;
        padding: 0.8rem 0.85rem;
    }
    .yaksha-name input {
        min-height: 3rem;
        font-size: 1.05rem;
    }
    .yaksha-cta {
        max-width: none;
        min-height: 3rem;
    }
    .yaksha-finale__stats {
        gap: 0.45rem;
    }
    .yaksha-fixed-bottom {
        padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
    .yaksha-teach-end-space {
        height: calc(100px + 5.25rem + env(safe-area-inset-bottom, 0px));
        min-height: calc(100px + 5.25rem + env(safe-area-inset-bottom, 0px));
    }
    .yaksha-screen--with-fixed-btn {
        padding-bottom: 0;
    }
    .yaksha-mantra__actions {
        position: sticky;
        bottom: 0.35rem;
        padding-top: 0.35rem;
        background: linear-gradient(180deg, transparent, rgba(8,14,12,0.85) 35%);
    }
    .yaksha-mantra__actions .btn {
        flex: 1 1 42%;
        min-height: 2.85rem;
    }
}

@media (max-width: 380px) {
    .yaksha-mantra__target {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .yaksha-mantra__guide-text { font-size: 0.82rem; }
}

/* Yaksha full 126 UX */
.yaksha-progress__pill--ch {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.yaksha-progress__bar {
    display: inline-flex;
    width: 4.5rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    vertical-align: middle;
    overflow: hidden;
}
.yaksha-progress__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f0d78c, #a8e6cf);
}
.yaksha-quiz__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}
.yaksha-step--num { opacity: 0.85; }
.yaksha-bar {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    overflow: hidden;
    margin: 0.35rem 0 0.9rem;
}
.yaksha-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f0d78c, #a8e6cf);
    transition: width .35s ease;
}
.yaksha-quiz--nakula .yaksha-lead--story {
    border-color: rgba(240, 215, 140, 0.55);
    box-shadow: 0 0 0 1px rgba(240, 215, 140, 0.15);
}
.yaksha-answer-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    margin: 0 0 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(240, 215, 140, 0.16);
    border: 1px solid rgba(240, 215, 140, 0.45);
}
.yaksha-answer-card--teach {
    text-align: center;
    background: rgba(168,230,207,0.18);
    border-color: rgba(168,230,207,0.45);
}
.yaksha-answer-card--teach strong {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.2rem;
}
.yaksha-answer-card--teach span {
    font-size: 0.8rem;
    color: rgba(168,230,207,0.95);
    text-transform: none;
    letter-spacing: normal;
}
.yaksha-answer-card span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.8;
}
.yaksha-answer-card strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
}
.yaksha-sense {
    text-align: left;
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
}
.yaksha-sense h4 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: #f0d78c;
}
.yaksha-sense p {
    margin: 0;
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
}
.yaksha-teaching {
    max-height: none;
    overflow: visible;
}
.yaksha-teach .yaksha-teaching {
    padding-bottom: 100px;
}
.yaksha-teach .yaksha-teaching p:last-child {
    margin-bottom: 0;
}
@media (max-width: 720px) {
    .yaksha-progress__pill--ch { display: none; }
    .yaksha-progress__bar { width: 3.25rem; }
}
