body {
    --mobile-nav-height: 68px;
    --mobile-nav-bottom: max(8px, env(safe-area-inset-bottom));
    --mobile-nav-gap: 20px;
    --mobile-nav-clearance: calc(var(--mobile-nav-height) + var(--mobile-nav-bottom) + var(--mobile-nav-gap));
    background-color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow: hidden;
    touch-action: manipulation;
}

html,
body {
    height: 100%;
}

body.is-app-scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

html.is-app-scrollable {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
}

#root {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

body.is-app-scrollable #root {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

body.is-app-scrollable .app-shell {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible !important;
}

.app-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.app-nav-brand,
.app-nav-settings {
    display: none;
}

.settings-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: transparent;
}

.settings-control {
    position: relative;
    z-index: 70;
}

.settings-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.settings-toggle:active {
    transform: scale(0.96);
}

.settings-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(260px, calc(100vw - 32px));
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    padding: 12px;
    z-index: 2;
    pointer-events: auto;
}

.settings-panel {
    position: fixed;
    top: 66px;
    right: 20px;
    z-index: 90;
}

.settings-menu-title,
.settings-sync-row,
.settings-sound-row,
.settings-sound-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-menu-title {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    padding: 3px 4px 10px;
}

.settings-menu-section {
    border-radius: 16px;
    background: #f8fafc;
    padding: 10px;
}

.settings-row-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 8px;
}

.settings-language-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.settings-language-option {
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
}

.settings-language-option.is-active {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #ffffff;
}

.settings-sound-row {
    margin-top: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 10px;
    font-size: 11px;
    font-weight: 900;
}

.settings-sound-label {
    min-width: 0;
}

.settings-sound-toggle {
    margin-left: auto;
    min-width: 54px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 900;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
    touch-action: manipulation;
}

.settings-sound-toggle.is-active {
    border-color: rgba(16, 185, 129, 0.28);
    background: #ecfdf5;
    color: #059669;
}

.settings-sound-toggle:active {
    transform: scale(0.96);
}

.settings-sync-row {
    margin-top: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px;
    font-size: 11px;
    font-weight: 900;
}

.settings-sync-row strong {
    margin-left: auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 4px 7px;
    font-size: 9px;
}

.settings-screen {
    color: #0f172a;
}

.settings-page-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding-bottom: 16px;
}

.settings-page-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-page-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.2);
    flex: 0 0 auto;
}

.settings-page-kicker {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.settings-page-hero h2 {
    margin-top: 3px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
}

.settings-page-hero p {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.settings-page-card {
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
}

.settings-page-link-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.settings-page-link-card:hover {
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.08);
}

.settings-page-link-card:active {
    transform: scale(0.985);
}

.settings-page-enter-button {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    gap: 3px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    padding: 7px 9px;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-daily-card-icon {
    background: #ecfdf5;
    color: #10b981;
}

.settings-page-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    margin: -3px 0 12px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.settings-page-back:active {
    transform: translateX(-2px);
}

.settings-subpage-hero {
    margin-bottom: 14px;
}

.settings-daily-page-icon {
    background: #10b981;
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.18);
}

.settings-page-row,
.settings-page-card.settings-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-page-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-page-group {
    padding: 0;
    overflow: hidden;
}

.settings-page-group-row {
    padding: 14px;
}

.settings-page-group-language {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-page-group-divider {
    height: 1px;
    margin: 0 14px;
    background: #eef2f7;
}

.settings-page-group-link {
    width: 100%;
    border: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease;
}

.settings-page-group-link:hover {
    background: #f8fafc;
}

.settings-page-group-link:active {
    transform: scale(0.99);
}

.training-records-screen {
    min-height: 100dvh;
    padding: 20px 20px 34px;
}

.training-records-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.training-records-topbar {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    margin: -3px 0 18px;
}

.training-records-topbar .settings-page-back {
    width: 32px;
    min-height: 32px;
    margin: 0;
    justify-content: center;
}

.training-records-topbar h1 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
}

.training-records-locked-state {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.training-records-locked-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #eef2ff;
    color: #4f46e5;
}

.training-records-locked-kicker {
    color: #818cf8;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.training-records-locked-state h2 {
    max-width: 300px;
    margin-top: 8px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.2;
}

.training-records-locked-state > p {
    max-width: 300px;
    margin-top: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.55;
}

.training-records-locked-progress {
    width: min(100%, 300px);
    margin-top: 24px;
    padding: 13px;
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    background: #f8fafc;
    text-align: left;
}

.training-records-locked-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.training-records-locked-progress-head span,
.training-records-locked-progress-head strong {
    color: #4f46e5;
    font-size: 10px;
    font-weight: 950;
}

.training-records-locked-progress-track {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.training-records-locked-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4f46e5;
    transition: width 240ms ease;
}

.training-records-locked-progress small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 750;
}

.training-records-locked-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.16);
}

.weekly-report-locked-state {
    min-height: 520px;
    border: 1px solid #d1fae5;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.08);
}

.weekly-report-locked-state .training-records-locked-icon {
    background: #ecfdf5;
    color: #059669;
}

.weekly-report-locked-state .training-records-locked-kicker {
    color: #10b981;
}

.weekly-report-locked-state .training-records-locked-progress {
    border-color: #a7f3d0;
}

.weekly-report-locked-state .training-records-locked-progress-head span,
.weekly-report-locked-state .training-records-locked-progress-head strong {
    color: #059669;
}

.weekly-report-locked-state .training-records-locked-progress-track span {
    background: #10b981;
}

.weekly-report-locked-state .training-records-locked-cta {
    background: #10b981;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.16);
}

.training-records-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
}

.training-records-icon {
    background: #eef2ff;
    color: #4f46e5;
    box-shadow: 0 5px 12px rgba(79, 70, 229, 0.08);
}

.training-records-hero h2 {
    margin-top: 3px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
}

.training-records-hero p {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.training-records-growth-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    padding: 13px 14px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.06);
}

.training-records-growth-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
}

.training-records-growth-copy {
    min-width: 0;
}

.training-records-growth-copy > span,
.training-records-next-step > div > span {
    display: block;
    color: #818cf8;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.training-records-growth-copy strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-records-growth-copy p {
    margin-top: 3px;
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-records-growth-streak {
    min-width: 48px;
    padding-left: 10px;
    border-left: 1px solid #e0e7ff;
    text-align: right;
}

.training-records-growth-streak strong {
    display: block;
    color: #4338ca;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.training-records-growth-streak span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.training-records-report-button {
    width: 100%;
    min-height: 76px;
    margin-bottom: 12px;
    padding: 14px 15px 14px 17px;
    border: 1px solid #4f46e5;
    border-radius: 20px;
    background: #4f46e5;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    position: relative;
    overflow: visible;
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.training-records-report-button:active {
    transform: scale(0.985);
}

.training-records-report-button:hover {
    background: #4338ca;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.16);
}

.training-records-report-copy {
    display: grid;
    gap: 3px;
}

.training-records-report-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.training-records-report-copy strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
}

.training-records-report-action {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
}

.training-records-report-action svg {
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
    position: relative;
    z-index: 1;
    color: #ffffff;
    stroke: currentColor;
    stroke-width: 2;
}

.training-records-report-arrow {
    transform: scaleX(-1);
}

.training-records-heatmap-panel {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    touch-action: pan-y;
}

.training-records-heatmap-head {
    min-height: 30px;
}

.training-records-month-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.training-records-month-controls button {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.training-records-month-controls button:not(:disabled):hover {
    background: #eef2ff;
    color: #4f46e5;
}

.training-records-month-controls button:not(:disabled):active {
    transform: scale(0.92);
}

.training-records-month-controls button:disabled {
    cursor: default;
    opacity: 0.35;
}

.training-records-month-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.training-records-heatmap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.training-records-heatmap {
    min-width: 0;
    width: 100%;
    max-width: 224px;
    margin: 0 auto;
    animation: training-records-month-enter 180ms ease-out;
}

@keyframes training-records-month-enter {
    from {
        opacity: 0.45;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .training-records-heatmap {
        animation: none;
    }
}

.training-records-heatmap-body {
    display: block;
}

.training-records-heatmap-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
}

.training-records-heatmap-cells {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 20px;
    gap: 4px;
}

.training-records-heatmap-cell,
.training-records-heatmap-legend i {
    display: block;
    width: min(100%, 11px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 4px;
    background: #ffffff;
}

.training-records-heatmap-cell {
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.training-records-heatmap-cell:not(:disabled):hover {
    transform: scale(1.25);
}

.training-records-heatmap-cell:not(:disabled):active {
    transform: scale(0.92);
}

.training-records-heatmap-cell:disabled {
    cursor: default;
}

.training-records-heatmap-cell.level--1 {
    background: #f8fafc;
    border-color: transparent;
}

.training-records-heatmap-cell.level-0,
.training-records-heatmap-legend i.level-0 {
    background: #e2e8f0;
    border: 0;
}

.training-records-heatmap-cell.is-empty {
    background: transparent;
}

.training-records-heatmap-cell.level-1,
.training-records-heatmap-legend i.level-1 {
    background: #a5b4fc;
}

.training-records-heatmap-cell.level-2,
.training-records-heatmap-legend i.level-2 {
    background: #818cf8;
}

.training-records-heatmap-cell.level-3,
.training-records-heatmap-legend i.level-3 {
    background: #6366f1;
}

.training-records-heatmap-cell.level-4,
.training-records-heatmap-legend i.level-4 {
    background: #4338ca;
}

.training-records-heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 850;
}

.training-records-heatmap-legend i {
    width: 11px;
    border-radius: 3px;
}

.training-records-heatmap-summary {
    display: grid;
    gap: 9px;
    padding-left: 15px;
    border-left: 1px solid #e0e7ff;
}

.training-records-heatmap-summary > span {
    color: #818cf8;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-records-heatmap-summary > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.training-records-heatmap-summary strong {
    color: #4338ca;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.training-records-heatmap-summary small {
    color: #64748b;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
}

.training-records-day-detail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.training-records-day-detail > div:first-child span,
.training-records-day-detail-stats span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 850;
}

.training-records-day-detail > div:first-child strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.training-records-day-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.training-records-day-detail-stats strong {
    display: block;
    overflow: hidden;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-records-day-detail p {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

@media (max-width: 560px) {
    .training-records-heatmap-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .training-records-heatmap-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid #e0e7ff;
        border-left: 0;
    }

    .training-records-heatmap-summary > span {
        grid-column: 1 / -1;
    }
}

.training-records-range-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 16px;
    background: #e2e8f0;
}

.training-records-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 2px 8px;
}

.training-records-section-head strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.training-records-section-head span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 750;
}

.training-records-range-tabs button {
    min-height: 36px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.training-records-range-tabs button.is-active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.training-records-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.training-records-metric {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.training-records-metric span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
}

.training-records-metric strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.training-records-empty,
.training-records-panel {
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    padding: 14px;
}

.training-records-empty {
    min-height: 150px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.training-records-empty p {
    max-width: 240px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.training-records-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
}

.training-records-panel-head svg {
    color: #4f46e5;
}

.training-records-panel-kicker {
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.training-records-panel-head strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.training-records-bars {
    height: 132px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
    align-items: end;
    gap: 7px;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.training-records-bar-column {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.training-records-bar-track {
    width: 100%;
    max-width: 24px;
    height: 92px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.training-records-bar-fill {
    width: 100%;
    min-height: 7px;
    border-radius: inherit;
    background: #4f46e5;
    transition: height 500ms cubic-bezier(0.2, 1, 0.3, 1);
}

.training-records-bar-column.is-empty .training-records-bar-fill {
    height: 0 !important;
    min-height: 0;
    background: transparent;
}

.training-records-bar-column span {
    max-width: 44px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.training-records-bar-column small {
    color: #4f46e5;
    font-size: 9px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.training-records-effect-copy {
    margin-top: 12px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
}

.training-records-task-list {
    display: grid;
    gap: 11px;
    margin-top: 14px;
}

.training-records-preference-copy {
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
}

.training-records-task-row {
    display: grid;
    grid-template-columns: minmax(76px, 0.8fr) minmax(0, 1fr) 24px;
    align-items: center;
    gap: 8px;
}

.training-records-task-name {
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.training-records-task-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.training-records-task-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #10b981;
}

.training-records-task-row strong {
    color: #059669;
    font-size: 11px;
    font-weight: 950;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.training-records-schulte-panel p,
.training-records-performance-empty {
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
}

.training-records-performance-list {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.training-records-performance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border-radius: 13px;
    background: #f8fafc;
}

.training-records-performance-row > div {
    min-width: 0;
}

.training-records-performance-row > div strong {
    display: block;
    overflow: hidden;
    color: #334155;
    font-size: 11px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-records-performance-row > div span {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
}

.training-records-performance-row > strong {
    flex: 0 0 auto;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.training-records-muted {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.training-records-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 15px;
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    background: #eef2ff;
}

.training-records-next-step strong {
    display: block;
    margin-top: 3px;
    color: #312e81;
    font-size: 14px;
    font-weight: 950;
}

.training-records-next-step p {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.training-records-next-step button {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: #4f46e5;
    color: #ffffff;
    transition: transform 150ms ease, background 150ms ease;
}

.training-records-next-step button:active {
    transform: scale(0.94);
}

.training-records-next-step button.is-complete {
    background: #10b981;
}

.training-records-next-step-arrow {
    display: block;
    transform: scaleX(-1);
}

.daily-bridge-link {
    border-color: #a7f3d0;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.08);
}

.daily-bridge-link > div > span {
    color: #10b981;
}

.daily-bridge-link > div > strong {
    color: #065f46;
}

.daily-bridge-link > div > p {
    color: #047857;
}

.daily-bridge-link button {
    background: transparent;
    color: #10b981;
    border-radius: 0;
}

.daily-bridge-link button:active {
    background: transparent;
    color: #059669;
}

@media (max-width: 420px) {
    .training-records-growth-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .training-records-growth-streak {
        grid-column: 2;
        justify-self: start;
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }

    .training-records-growth-streak strong,
    .training-records-growth-streak span {
        display: inline;
        margin-right: 4px;
    }
}

.weekly-report-prompt {
    animation: weekly-report-prompt-fade 220ms ease-out both;
}

.weekly-report-prompt-card {
    width: min(100%, 360px);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 28px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    text-align: center;
    animation: pop-center 360ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.weekly-report-prompt-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekly-report-prompt-kicker {
    color: #10b981;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.16em;
}

.weekly-report-prompt-card h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.weekly-report-prompt-card p {
    margin: 8px auto 0;
    max-width: 270px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.weekly-report-prompt-primary {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: 15px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
}

.weekly-report-prompt-secondary {
    min-height: 34px;
    margin-top: 5px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
}

@keyframes weekly-report-prompt-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.first-play-nudge {
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: weekly-report-prompt-fade 180ms ease-out both;
}

.first-play-nudge-card {
    width: min(100%, 350px);
    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 26px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    text-align: center;
    animation: pop-center 340ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
}

.first-play-nudge-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.first-play-nudge-kicker {
    color: #4f46e5;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.16em;
}

.first-play-nudge-card h2 {
    margin-top: 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.first-play-nudge-card p {
    margin: 8px auto 0;
    max-width: 270px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.first-play-nudge-primary {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: 15px;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.2);
}

.first-play-nudge-secondary {
    min-height: 34px;
    margin-top: 5px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
}

.settings-page-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-page-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.settings-account-card .settings-page-card-icon {
    background: #ecfdf5;
    color: #10b981;
}

.settings-leaderboard-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.settings-achievements-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.achievement-badge-svg {
    display: block;
    width: 22px;
    height: 22px;
}

.settings-page-card-copy {
    min-width: 0;
    flex: 1;
}

.settings-page-card-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.settings-page-card-body {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
}

.settings-page-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.settings-language-group.is-page {
    background: #f8fafc;
    border-radius: 16px;
    padding: 5px;
}

.settings-sound-toggle.is-page {
    min-width: 60px;
    height: 34px;
}

.settings-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.settings-action-row button,
.settings-export-button {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px;
    gap: 7px;
}

.settings-action-link-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.settings-action-row button > svg:last-child {
    color: #94a3b8;
}

.settings-action-row button:active,
.settings-export-button:active {
    transform: scale(0.98);
}

.settings-export-button {
    width: 100%;
    margin-top: 12px;
    background: #ffffff;
}

.weekly-report-detail.is-settings {
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
    padding: 12px 0 0;
}

.weekly-report-screen {
    min-height: 100dvh;
    padding-bottom: 24px !important;
    background: #f8fafc;
    color: #0f172a;
}

.weekly-report-screen-inner {
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
}

.weekly-report-back {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.weekly-report-back:active {
    transform: translateX(-2px);
}

.weekly-report-screen-heading {
    margin-top: 15px;
}

.weekly-report-screen-kicker {
    color: #10b981;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.15em;
}

.weekly-report-screen-heading h1 {
    max-width: 430px;
    margin-top: 6px;
    color: #0f172a;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.02;
}

.weekly-report-screen-heading p {
    max-width: 350px;
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.weekly-report-reveal-list {
    margin-top: 20px;
}

.weekly-report-reveal-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 100px;
    padding: 13px 0;
    border-top: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 360ms ease, transform 360ms cubic-bezier(0.2, 1.2, 0.3, 1);
}

.weekly-report-reveal-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.weekly-report-reveal-row.is-visible .weekly-report-reveal-index {
    animation: weekly-report-index-pop 420ms cubic-bezier(0.2, 1.3, 0.3, 1) both;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

@keyframes weekly-report-index-pop {
    0% { transform: scale(0.82); opacity: 0.45; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.weekly-report-reveal-index {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 950;
}

.weekly-report-reveal-copy {
    min-width: 0;
    flex: 1;
}

.weekly-report-reveal-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 950;
}

.weekly-report-count-line,
.weekly-report-score-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}

.weekly-report-count-line strong {
    color: #10b981;
    font-size: 50px;
    font-weight: 950;
    line-height: 0.98;
    font-variant-numeric: tabular-nums;
}

.weekly-report-score-line strong {
    color: #4f46e5;
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.weekly-report-count-line span,
.weekly-report-score-line span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.weekly-report-reveal-value {
    margin-top: 3px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.1;
}

.weekly-report-reveal-copy p {
    max-width: 350px;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.weekly-report-compare-value {
    margin-top: 3px;
    color: #059669;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
}

.weekly-report-compare-strip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 900;
}

.weekly-report-compare-strip svg {
    color: #10b981;
}

.weekly-report-final {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 1.2, 0.3, 1);
}

.weekly-report-final.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.weekly-report-final h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.2;
}

.weekly-report-final p {
    max-width: 300px;
    margin: 7px auto 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.weekly-report-final button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.weekly-report-final button:active {
    transform: scale(0.985);
}

.home-settings-control {
    position: absolute;
    top: 18px;
    right: 20px;
}

.app-nav-items {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
    gap: 6px;
}

.app-nav-button {
    min-width: 0;
    height: 52px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.app-nav-button:active {
    transform: scale(0.96);
}

.app-nav-button.is-active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.app-nav-button.is-arena.is-active {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.app-nav-button.is-daily.is-active {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.app-nav-button > span:first-child {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
}

.app-nav-button > span:first-child svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.nav-avatar-glyph {
    position: relative;
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border: 1.8px solid currentColor;
    border-radius: 50%;
    color: currentColor;
}

.nav-avatar-glyph::before {
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 5px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
    content: "";
}

.nav-avatar-glyph::after {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 11px;
    height: 6px;
    border: 1.7px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.app-nav-button.is-disabled {
    color: #94a3b8;
    cursor: default;
    opacity: 0.72;
}

.app-nav-button.is-disabled:active {
    transform: none;
}

.app-content-screen {
    padding-bottom: max(96px, calc(84px + env(safe-area-inset-bottom))) !important;
}

.mode-score-card {
    min-height: 112px;
    align-items: flex-end;
}

.mode-score-card.is-train,
.mode-score-card.is-arena,
.mode-score-card.is-infinite {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.arena-task-card {
    border: 2px solid #fef3c7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

.arena-task-icon {
    background: #fffbeb !important;
    color: #f59e0b !important;
}

.home-screen .task-icon,
.daily-task-icon,
.daily-hero-task-icon {
    animation: task-icon-breathe 2.8s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.home-screen .task-icon svg,
.daily-task-icon svg,
.daily-hero-task-icon svg {
    animation: task-icon-fade 2.8s ease-in-out infinite;
    transform-origin: center;
    will-change: opacity, transform;
}

.arena-side-icon {
    width: 36px;
    height: 36px;
    margin-left: 12px;
    border-radius: 12px;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.daily-challenge-card {
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.1);
}

.daily-score-card {
    border: 1px solid rgba(209, 213, 219, 0.78);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.daily-score-card .score-value {
    color: #059669;
}

.daily-score-card .score-watermark {
    color: #10b981;
    opacity: 0.08;
}

.daily-card-hero {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.daily-card-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.52), transparent 18%),
        radial-gradient(circle at 18% 100%, rgba(255, 255, 255, 0.28), transparent 24%);
    pointer-events: none;
}

.daily-hero-motif {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.daily-hero-motif span {
    position: absolute;
    display: block;
}

.daily-hero-motif.is-schulte {
    right: -1px;
    left: auto;
    width: 46%;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(90deg, transparent, #000 34%, #000);
}

.daily-hero-motif.is-schulte::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -40%;
    width: 26%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: rotate(18deg);
    animation: daily-scan-sweep 3.4s ease-in-out infinite;
}

.daily-hero-motif.is-stroop span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    opacity: 0.45;
    animation: daily-color-pulse 3s ease-in-out infinite;
}

.daily-hero-motif.is-stroop span:nth-child(1) { right: 34px; top: 18px; background: #ef4444; animation-delay: 0s; }
.daily-hero-motif.is-stroop span:nth-child(2) { right: 82px; top: 38px; background: #3b82f6; animation-delay: 0.25s; }
.daily-hero-motif.is-stroop span:nth-child(3) { right: 48px; bottom: 22px; background: #f59e0b; animation-delay: 0.5s; }
.daily-hero-motif.is-stroop span:nth-child(4) { right: 112px; bottom: 18px; background: #22c55e; animation-delay: 0.75s; }

.daily-hero-motif.is-nback span {
    width: 54px;
    height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    right: 46px;
    top: 20px;
    opacity: 0.36;
    animation: daily-card-stack 3.2s ease-in-out infinite;
}

.daily-hero-motif.is-nback span:nth-child(2) { right: 74px; top: 34px; animation-delay: 0.18s; }
.daily-hero-motif.is-nback span:nth-child(3) { right: 22px; top: 50px; animation-delay: 0.36s; }

.daily-hero-motif.is-setgame span {
    width: 22px;
    height: 22px;
    right: 70px;
    top: 24px;
    opacity: 0.45;
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: daily-shape-float 3.1s ease-in-out infinite;
}

.daily-hero-motif.is-setgame span:nth-child(1) { border-radius: 999px; right: 44px; top: 22px; }
.daily-hero-motif.is-setgame span:nth-child(2) { right: 92px; top: 46px; transform: rotate(45deg); animation-delay: 0.25s; }
.daily-hero-motif.is-setgame span:nth-child(3) {
    right: 54px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid rgba(255, 255, 255, 0.86);
    border-top: 0;
    animation-delay: 0.5s;
}

.daily-hero-motif.is-neuroncount span {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
    animation: daily-neuron-drift 4s ease-in-out infinite;
}

.daily-hero-motif.is-neuroncount span:nth-child(1) { right: 38px; top: 20px; }
.daily-hero-motif.is-neuroncount span:nth-child(2) { right: 92px; top: 42px; animation-delay: 0.3s; }
.daily-hero-motif.is-neuroncount span:nth-child(3) { right: 62px; bottom: 26px; animation-delay: 0.6s; }
.daily-hero-motif.is-neuroncount span:nth-child(4) { right: 132px; bottom: 32px; animation-delay: 0.9s; }

.daily-score-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.daily-best-block {
    min-width: 0;
}

.daily-score-streak {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    backdrop-filter: blur(10px);
}

.daily-score-streak.is-lit {
    background: #fff7ed;
    border-color: rgba(239, 68, 68, 0.24);
}

.daily-score-flame {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #ffffff;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-score-streak.is-lit .daily-score-flame {
    background: #ffffff;
    color: #f97316;
    border: 1px solid rgba(239, 68, 68, 0.42);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.12);
}

.is-solid-flame {
    fill: currentColor;
    stroke-width: 2;
}

.daily-score-streak-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.daily-score-streak-value {
    margin-top: 5px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.daily-score-streak-value span {
    margin-left: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.daily-stat-box {
    min-height: 66px;
    border: 1px solid #d1fae5;
    border-radius: 18px;
    background: #f0fdf4;
    padding: 12px;
}

.daily-streak-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: #fed7aa;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(240, 253, 244, 0.92));
}

.daily-streak-box.is-lit {
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.12);
}

.daily-streak-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: #fff7ed;
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

.daily-streak-box.is-lit .daily-streak-icon {
    background: linear-gradient(135deg, #ffedd5, #fef3c7);
    color: #f97316;
    box-shadow: 0 8px 18px rgba(251, 146, 60, 0.16), inset 0 0 0 1px rgba(251, 146, 60, 0.22);
}

.daily-streak-box .daily-stat-label {
    color: #f97316;
}

.daily-streak-box:not(.is-lit) {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.daily-streak-box:not(.is-lit) .daily-streak-icon {
    background: #f1f5f9;
    color: #94a3b8;
}

.daily-streak-box:not(.is-lit) .daily-stat-label {
    color: #94a3b8;
}

.daily-stat-label {
    color: #059669;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.daily-stat-value {
    margin-top: 4px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.daily-stat-value span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.daily-goal-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    padding: 12px;
}

.daily-status-pill {
    flex-shrink: 0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.daily-status-pill.is-complete {
    background: #10b981;
    color: #ffffff;
}

.daily-rule-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.daily-rule-row > span {
    color: #047857;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.daily-week-panel {
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.daily-week-panel.is-rewarded {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.07);
}

.daily-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.daily-week-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.daily-week-kicker {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.daily-week-goal-main {
    margin-top: 2px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
}

.daily-week-goal-text {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 950;
    text-align: right;
}

.daily-week-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    margin-bottom: 12px;
}

.daily-week-progress > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 360ms ease;
}

.daily-week-panel.is-rewarded .daily-week-progress {
    background: #dcfce7;
}

.daily-week-panel.is-rewarded .daily-week-progress > div {
    background: linear-gradient(90deg, #10b981, #22c55e, #86efac);
}

.daily-week-panel.is-advancing .daily-week-progress > div {
    animation: daily-week-fill 1.15s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.daily-week-panel.is-celebrating {
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.12), inset 0 0 0 1px rgba(16, 185, 129, 0.08);
    overflow: visible;
}

.daily-week-panel.is-celebrating::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 47%;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0));
    pointer-events: none;
    z-index: 1;
    animation: daily-week-burst-glow 1.15s ease-out 0.72s both;
}

.daily-week-confetti {
    position: absolute;
    inset: -44px -32px;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.daily-week-confetti span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 14px;
    border-radius: 999px;
    background: #34d399;
    opacity: 0;
    box-shadow: 0 7px 14px rgba(16, 185, 129, 0.18);
    animation: daily-week-confetti-pop 1.45s cubic-bezier(0.14, 0.95, 0.22, 1) both;
}

.daily-week-confetti span:nth-child(3n) {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.daily-week-confetti span:nth-child(4n) {
    width: 6px;
    height: 18px;
}

.daily-week-confetti span:nth-child(1) { --x: -232px; --y: -112px; --r: -110deg; background: #10b981; animation-delay: 0.66s; }
.daily-week-confetti span:nth-child(2) { --x: -190px; --y: -76px; --r: 82deg; background: #86efac; animation-delay: 0.7s; }
.daily-week-confetti span:nth-child(3) { --x: -146px; --y: -130px; --r: 146deg; background: #22c55e; animation-delay: 0.68s; }
.daily-week-confetti span:nth-child(4) { --x: -98px; --y: -92px; --r: -64deg; background: #a7f3d0; animation-delay: 0.75s; }
.daily-week-confetti span:nth-child(5) { --x: -44px; --y: -148px; --r: 118deg; background: #14b8a6; animation-delay: 0.69s; }
.daily-week-confetti span:nth-child(6) { --x: 10px; --y: -112px; --r: -128deg; background: #34d399; animation-delay: 0.74s; }
.daily-week-confetti span:nth-child(7) { --x: 64px; --y: -150px; --r: 72deg; background: #10b981; animation-delay: 0.67s; }
.daily-week-confetti span:nth-child(8) { --x: 118px; --y: -100px; --r: -96deg; background: #bbf7d0; animation-delay: 0.72s; }
.daily-week-confetti span:nth-child(9) { --x: 174px; --y: -124px; --r: 132deg; background: #5eead4; animation-delay: 0.68s; }
.daily-week-confetti span:nth-child(10) { --x: 224px; --y: -70px; --r: -82deg; background: #22c55e; animation-delay: 0.73s; }
.daily-week-confetti span:nth-child(11) { --x: -214px; --y: 18px; --r: 152deg; background: #86efac; animation-delay: 0.78s; }
.daily-week-confetti span:nth-child(12) { --x: -152px; --y: 58px; --r: -118deg; background: #10b981; animation-delay: 0.82s; }
.daily-week-confetti span:nth-child(13) { --x: -88px; --y: 34px; --r: 94deg; background: #34d399; animation-delay: 0.8s; }
.daily-week-confetti span:nth-child(14) { --x: -24px; --y: 72px; --r: -144deg; background: #bbf7d0; animation-delay: 0.84s; }
.daily-week-confetti span:nth-child(15) { --x: 42px; --y: 46px; --r: 116deg; background: #10b981; animation-delay: 0.8s; }
.daily-week-confetti span:nth-child(16) { --x: 104px; --y: 80px; --r: -132deg; background: #86efac; animation-delay: 0.86s; }
.daily-week-confetti span:nth-child(17) { --x: 166px; --y: 42px; --r: 104deg; background: #22c55e; animation-delay: 0.82s; }
.daily-week-confetti span:nth-child(18) { --x: 224px; --y: 64px; --r: -156deg; background: #5eead4; animation-delay: 0.88s; }
.daily-week-confetti span:nth-child(19) { --x: -248px; --y: -22px; --r: 76deg; background: #34d399; animation-delay: 0.72s; }
.daily-week-confetti span:nth-child(20) { --x: -116px; --y: -4px; --r: -84deg; background: #10b981; animation-delay: 0.76s; }
.daily-week-confetti span:nth-child(21) { --x: 0px; --y: -178px; --r: 168deg; background: #a7f3d0; animation-delay: 0.7s; }
.daily-week-confetti span:nth-child(22) { --x: 118px; --y: -8px; --r: -112deg; background: #14b8a6; animation-delay: 0.77s; }
.daily-week-confetti span:nth-child(23) { --x: 250px; --y: -20px; --r: 92deg; background: #86efac; animation-delay: 0.74s; }
.daily-week-confetti span:nth-child(24) { --x: 0px; --y: 112px; --r: -126deg; background: #22c55e; animation-delay: 0.9s; }

.daily-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.daily-week-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.daily-week-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-week-dot.is-complete {
    border-color: #10b981;
    background: #10b981;
}

.daily-week-panel.is-rewarded .daily-week-dot.is-complete {
    border-color: #10b981;
    background: #10b981;
}

.daily-week-dot.is-today {
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
    animation: today-pulse 1.8s ease-in-out infinite;
}

.daily-week-panel.is-rewarded .daily-week-dot.is-today {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.daily-week-label {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
}

.daily-tomorrow-panel {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.daily-tomorrow-panel.is-unlocked {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.daily-tomorrow-icon {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.daily-tomorrow-panel.is-unlocked .daily-tomorrow-icon {
    background: #dcfce7;
    color: #10b981;
}

.daily-tomorrow-chip {
    max-width: 92px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-start-button {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.daily-start-button.is-secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.daily-start-button.is-secondary:active {
    background: #f8fafc;
}

.weekly-report-card {
    margin-top: 14px;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.08);
    overflow: hidden;
}

.weekly-report-card.is-open {
    border-color: #a7f3d0;
}

.weekly-report-trigger {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, #ffffff, #f8fffb);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    text-align: left;
}

.weekly-report-trigger:active {
    background: #f0fdf4;
}

.weekly-report-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.weekly-report-copy {
    min-width: 0;
    flex: 1;
}

.weekly-report-eyebrow {
    color: #10b981;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.weekly-report-title {
    margin-top: 3px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
}

.weekly-report-subtitle {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.weekly-report-cta {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.weekly-report-detail {
    border-top: 1px solid #e2e8f0;
    padding: 14px;
    background: #ffffff;
    animation: weekly-report-in 220ms ease-out both;
}

.weekly-receipt-cover {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 20px;
    background: #ffffff;
    padding: 0;
    text-align: left;
    box-shadow: 0 14px 26px rgba(16, 185, 129, 0.08);
    animation: weekly-receipt-cover-in 260ms cubic-bezier(0.2, 1.2, 0.3, 1) both;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.weekly-receipt-cover:active {
    transform: scale(0.985);
}

.weekly-receipt-cover.is-locked {
    border-color: rgba(16, 185, 129, 0.18);
}

.weekly-receipt-cover.is-locked .weekly-receipt-cover-top {
    background: #64748b;
}

.weekly-receipt-cover.is-locked .weekly-receipt-seal {
    background: #475569;
    animation: none;
}

.weekly-receipt-cover.is-locked .weekly-receipt-open-cta {
    background: #f1f5f9;
    color: #475569;
}

.weekly-receipt-cover-top {
    min-height: 128px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    background: #10b981;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.weekly-receipt-cover-top::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -58px;
    bottom: -92px;
    border: 22px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.weekly-receipt-kicker {
    position: relative;
    z-index: 1;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.14em;
    opacity: 0.78;
}

.weekly-receipt-title {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    font-size: 21px;
    font-weight: 950;
    line-height: 1.1;
}

.weekly-receipt-subtitle {
    position: relative;
    z-index: 1;
    max-width: 220px;
    margin-top: 7px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    opacity: 0.9;
}

.weekly-receipt-seal {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.2);
    animation: weekly-receipt-seal-pulse 2.2s ease-in-out infinite;
}

.weekly-receipt-cover-body {
    padding: 14px 16px 16px;
}

.weekly-receipt-preview-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 850;
}

.weekly-receipt-preview-line strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.weekly-receipt-open-cta {
    min-height: 42px;
    margin-top: 12px;
    border-radius: 15px;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 950;
}

.weekly-receipt-open-cta svg:last-child {
    margin-left: 2px;
}

.weekly-receipt-close {
    width: 100%;
    min-height: 36px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
}

.weekly-report-persona {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    border: 1px solid #d1fae5;
}

.weekly-report-persona-icon {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.18);
}

.weekly-report-persona-label {
    color: #059669;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.weekly-report-persona-title {
    margin-top: 2px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
}

.weekly-report-story {
    margin: 12px 2px;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.55;
}

.weekly-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.weekly-report-metric {
    min-height: 68px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weekly-report-metric span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 950;
}

.weekly-report-metric strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.15;
    word-break: break-word;
}

.weekly-report-highlight {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 16px;
    background: #f0fdf4;
    color: #047857;
    padding: 10px 11px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.45;
}

.weekly-report-highlight > span:first-child {
    flex: 0 0 auto;
    margin-top: 1px;
}

.weekly-report-next {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 11px;
    background: #ffffff;
}

.weekly-report-next span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.weekly-report-next strong {
    display: block;
    margin-top: 4px;
    color: #334155;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.45;
}

@keyframes today-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18);
    }
}

@keyframes daily-week-fill {
    from {
        width: var(--daily-week-from);
    }
    to {
        width: var(--daily-week-to);
    }
}

@keyframes daily-week-confetti-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    }
    15% {
        opacity: 1;
    }
    72% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
    }
}

@keyframes weekly-report-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes weekly-receipt-cover-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes weekly-receipt-seal-pulse {
    0%, 100% { transform: rotate(-4deg) scale(1); }
    50% { transform: rotate(4deg) scale(1.06); }
}

@keyframes daily-week-burst-glow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
    }
    28% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4.6);
    }
}

@keyframes task-icon-breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(15, 23, 42, 0);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.055);
    }
}

@keyframes task-icon-fade {
    0%, 100% {
        opacity: 0.78;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes daily-scan-sweep {
    0%, 28%, 100% {
        transform: translateX(-20px) rotate(18deg);
        opacity: 0;
    }
    48% {
        opacity: 0.75;
    }
    68% {
        transform: translateX(160px) rotate(18deg);
        opacity: 0;
    }
}

@keyframes daily-color-pulse {
    0%, 100% {
        transform: scale(0.86);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.62;
    }
}

@keyframes daily-card-stack {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0.24;
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
        opacity: 0.44;
    }
}

@keyframes daily-shape-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.34;
    }
    50% {
        transform: translateY(-7px) rotate(12deg);
        opacity: 0.58;
    }
}

@keyframes daily-neuron-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.92);
        opacity: 0.28;
    }
    50% {
        transform: translate3d(-10px, -8px, 0) scale(1.12);
        opacity: 0.52;
    }
}

.stroop-choice-button {
    position: relative;
    min-height: 88px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.stroop-choice-button.is-correct {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 0 4px #d1fae5, 0 10px 18px rgba(16, 185, 129, 0.16);
    transform: scale(1.05);
}

.stroop-choice-button.is-wrong {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 0 4px #fee2e2, 0 10px 18px rgba(239, 68, 68, 0.14);
}

.stroop-color-dot {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    margin: 0 auto;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.set-card-button.is-set-success {
    border-color: #10b981;
    background: #10b981;
    box-shadow: 0 0 0 4px #d1fae5, 0 10px 18px rgba(16, 185, 129, 0.16);
    transform: scale(1.05);
}

.set-card-button.is-set-wrong {
    border-color: #ef4444;
    background: #ef4444;
    box-shadow: 0 0 0 4px #fee2e2, 0 10px 18px rgba(239, 68, 68, 0.14);
}

.set-card-button.is-set-success > div,
.set-card-button.is-set-wrong > div {
    color: #ffffff !important;
    opacity: 1;
    transform: scale(1.08);
    position: relative;
    z-index: 1;
}

.game-screen,
.game-stage {
    min-height: 0;
}

.game-stage {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
}

.result-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.result-metric {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.result-metric span,
.result-metric strong {
    display: block;
}

.result-metric span {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}

.result-metric strong {
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    line-height: 1.2;
}

.daily-result-momentum {
    width: 100%;
    max-width: 320px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.daily-result-momentum.is-rewarded {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.daily-result-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 9px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    text-align: left;
}

.daily-result-reward > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.22);
}

.daily-result-reward strong,
.daily-result-reward small {
    display: block;
}

.daily-result-reward strong {
    color: #047857;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
}

.daily-result-reward small {
    margin-top: 3px;
    color: #10b981;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.daily-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.daily-result-row + .daily-result-row {
    border-top: 1px solid rgba(16, 185, 129, 0.12);
}

.daily-result-row strong {
    color: #047857;
    font-size: 12px;
    font-weight: 950;
    text-align: right;
}

.daily-result-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    max-width: 300px;
    margin: -5px 0 18px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
}

.daily-result-note svg {
    flex: 0 0 auto;
    color: #10b981;
}

.result-icon-orb {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    animation: result-orb-pop 520ms cubic-bezier(0.18, 0.9, 0.28, 1.16) both;
}

.result-icon-orb.is-daily {
    background: #ecfdf5;
    color: #10b981;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.12);
}

.result-icon-orb.is-record {
    background: #fff7ed;
    color: #f59e0b;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.14);
}

.result-icon-orb.is-excellent {
    background: #f5f3ff;
    color: #7c3aed;
    box-shadow: 0 18px 36px rgba(124, 58, 237, 0.12);
}

.result-icon-orb.is-sharp {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.1);
}

.result-icon-orb.is-steady {
    background: #eef2ff;
    color: #4f46e5;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.1);
}

.result-icon-orb.is-warmup {
    background: #f8fafc;
    color: #64748b;
    box-shadow: 0 18px 36px rgba(100, 116, 139, 0.08);
}

.result-score-counter {
    min-width: 4ch;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    transform-origin: center;
    animation: result-score-breathe 620ms ease-out both;
}

@keyframes result-orb-pop {
    0% {
        transform: translateY(8px) scale(0.84);
        opacity: 0;
    }
    62% {
        transform: translateY(-2px) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes result-score-breathe {
    0% {
        transform: scale(0.92);
        opacity: 0.42;
    }
    70% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.nback-prompt-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    perspective: 520px;
}

.nback-round-progress {
    min-height: 16px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
}

.nback-prompt-stack {
    position: relative;
    width: 96px;
    height: 96px;
    isolation: isolate;
}

.nback-prompt-card {
    position: absolute;
    inset: 0;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    color: #4f46e5;
    font-size: 36px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.nback-prompt-card-previous {
    z-index: 1;
}

.nback-prompt-card-current {
    z-index: 2;
    animation: nback-card-popup 210ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both, nback-border-pulse 320ms ease-out both;
}

/* N-Back 首玩带教:把原本叠在一起的"上一张/当前"卡并排露出,让新手看着对比 */
.nback-prompt-stack.is-warmup {
    width: 224px;
}

.nback-prompt-stack.is-warmup .nback-prompt-card {
    inset: auto;
    top: 0;
}

.nback-prompt-stack.is-warmup .nback-prompt-card-previous {
    left: 0;
    z-index: 2;
    opacity: 1;
    border-style: dashed;
    border-color: #c7d2fe;
}

.nback-prompt-stack.is-warmup .nback-prompt-card-current {
    right: 0;
}

.nback-warmup-hint {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
}

/* SET 首玩带教:高亮范例的 3 张解牌 + 顶部提示条 */
.set-card-button.is-set-hint {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.35);
    animation: set-hint-pulse 1.4s ease-in-out infinite;
}

@keyframes set-hint-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.30); }
    50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0.12); }
}

.set-warmup-hint {
    margin-bottom: 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    padding: 6px 14px;
    background: #eef2ff;
    border-radius: 999px;
}


@keyframes nback-card-popup {
    0% {
        opacity: 0;
        transform: scale(0.76);
    }
    72% {
        opacity: 1;
        transform: scale(1.06);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes nback-border-pulse {
    0% {
        border-color: rgba(99, 102, 241, 0.58);
        box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.12), 0 12px 24px rgba(79, 70, 229, 0.1);
    }
    100% {
        border-color: #e2e8f0;
        box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nback-prompt-card-current {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }

    .home-screen .task-icon,
    .daily-task-icon,
    .daily-hero-task-icon,
    .home-screen .task-icon svg,
    .daily-task-icon svg,
    .daily-hero-task-icon svg,
    .daily-hero-motif,
    .daily-hero-motif::after,
    .daily-hero-motif span,
    .daily-week-panel.is-advancing .daily-week-progress > div,
    .weekly-report-detail {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .daily-week-confetti {
        display: none;
    }

}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

@keyframes pop-center {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flash-red {
    0% {
        background-color: rgba(239, 68, 68, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes flash-green {
    0% {
        background-color: rgba(16, 185, 129, 0.18);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes feedback-pop-right {
    from {
        opacity: 0;
        transform: translate(0, -50%) scale(0.72);
    }

    58% {
        opacity: 1;
        transform: translate(8px, -50%) scale(1.08);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%) scale(1);
    }
}

@keyframes feedback-pop-left {
    from {
        opacity: 0;
        transform: translate(-100%, -50%) scale(0.72);
    }

    58% {
        opacity: 1;
        transform: translate(calc(-100% - 8px), -50%) scale(1.08);
    }

    to {
        opacity: 1;
        transform: translate(-100%, -50%) scale(1);
    }
}

@keyframes feedback-pop-top {
    from {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.72);
    }

    58% {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 8px)) scale(1.08);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
}

.animate-pop-center {
    animation: pop-center 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-pop-right {
    animation: feedback-pop-right 0.34s cubic-bezier(0.2, 1.35, 0.36, 1) both;
    transform-origin: left center;
}

.feedback-pop-left {
    animation: feedback-pop-left 0.34s cubic-bezier(0.2, 1.35, 0.36, 1) both;
    transform-origin: right center;
}

.feedback-pop-top {
    animation: feedback-pop-top 0.34s cubic-bezier(0.2, 1.35, 0.36, 1) both;
    transform-origin: center bottom;
}

.arena-flash {
    animation: flash-red 0.4s ease-out;
}

.schulte-cell,
.stroop-choice-button,
.set-card-button,
.nback-choice-button {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.schulte-cell::after,
.stroop-choice-button::after,
.set-card-button::after,
.nback-choice-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(129, 140, 248, 0.24);
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.3);
    opacity: 0;
    pointer-events: none;
}

.schulte-cell:active,
.stroop-choice-button:active,
.set-card-button:active,
.nback-choice-button:active,
.schulte-cell.is-tap-pulsing,
.stroop-choice-button.is-tap-pulsing,
.set-card-button.is-tap-pulsing,
.nback-choice-button.is-tap-pulsing {
    transform: scale(0.96);
}

.schulte-cell.is-tap-pulsing::after,
.stroop-choice-button.is-tap-pulsing::after,
.set-card-button.is-tap-pulsing::after,
.nback-choice-button.is-tap-pulsing::after {
    animation: control-tap-pulse 0.18s ease-out both;
}

@keyframes control-tap-pulse {
    0% { opacity: 0.95; }
    100% { opacity: 0; }
}

.arena-success {
    animation: flash-green 0.36s ease-out;
}

.brand-text {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-header {
    --home-header-base-scale: 1;
    --home-header-scroll-y: 0px;
    --home-header-scroll-scale: 1;
    transform: translateY(var(--home-header-scroll-y)) scale(var(--home-header-base-scale)) scale(var(--home-header-scroll-scale));
    transform-origin: top center;
    max-height: 140px;
    overflow: visible;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out, max-height 0.16s ease-out, margin-bottom 0.16s ease-out;
}

@media (max-width: 560px) {
    .app-nav {
        left: 14px;
        right: 14px;
        bottom: var(--mobile-nav-bottom);
        padding: 7px;
        border-radius: 22px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }

    .app-nav-button {
        height: 48px;
        border-radius: 16px;
        font-size: 10px;
        gap: 4px;
    }

    .home-screen {
        height: 100dvh;
        overflow: hidden !important;
        padding: 16px 20px max(88px, calc(78px + env(safe-area-inset-bottom))) !important;
    }

    .home-settings-control {
        position: absolute;
        top: 18px !important;
        right: 20px !important;
    }

    .home-settings-control .settings-toggle {
        width: 48px;
        height: 38px;
    }

    .home-mini-brand {
        display: flex !important;
        min-height: 44px;
        margin-bottom: 10px;
        padding-right: 0;
        align-items: center;
    }

    .home-mini-brand > div:first-child {
        width: 44px !important;
        height: 44px !important;
        border-radius: 15px !important;
    }

    .home-mini-brand .text-sm {
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    .home-mini-brand .text-\[8px\] {
        font-size: 8px !important;
        margin-top: 4px;
    }

    .home-header {
        display: none !important;
    }

    .score-card {
        padding: 16px 18px !important;
        min-height: 82px !important;
        margin-bottom: 12px !important;
        border-radius: 26px !important;
    }

    .score-value {
        font-size: 34px !important;
        line-height: 1 !important;
    }

    .daily-score-summary {
        gap: 10px;
    }

    .daily-score-streak {
        gap: 6px;
        border-radius: 16px;
        padding: 7px 9px;
    }

    .daily-score-flame {
        width: 30px;
        height: 30px;
        border-radius: 11px;
    }

    .daily-score-streak-label {
        font-size: 9px;
    }

    .daily-score-streak-value {
        margin-top: 3px;
        font-size: 20px;
    }

    .daily-score-streak-value span {
        font-size: 10px;
    }

    .mode-tabs {
        margin-bottom: 12px !important;
    }

    .mode-tabs button {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .task-section {
        flex: 1 1 auto !important;
        min-height: 0;
        margin-bottom: 0 !important;
    }

    .task-list {
        height: 100%;
        min-height: 0;
        grid-template-rows: repeat(5, minmax(0, 1fr));
        gap: 10px !important;
    }

    .task-card {
        min-height: 0;
        padding: 12px 14px !important;
        border-radius: 22px !important;
    }

    .task-icon {
        width: 38px !important;
        height: 38px !important;
        margin-right: 12px !important;
    }
}

@media (min-width: 900px) {
    .settings-panel {
        top: 98px;
        right: 44px;
    }

    .app-nav {
        top: 16px;
        right: 32px;
        bottom: auto;
        left: 32px;
        width: auto;
        min-height: 72px;
        border-width: 1px;
        border-radius: 24px;
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        border-color: rgba(226, 232, 240, 0.78);
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
        justify-content: space-between;
    }

    .app-nav-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        width: 260px;
        padding: 0 8px;
        z-index: 2;
    }

    .app-nav-logo {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        background: #4f46e5;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
        flex-shrink: 0;
    }

    .app-nav-title {
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-nav-subtitle {
        margin-top: 3px;
        color: #94a3b8;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .app-nav-items {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        grid-auto-flow: column;
        grid-auto-columns: minmax(120px, max-content);
        justify-content: center;
        width: auto;
        gap: 14px;
    }

    .app-nav-button {
        height: 46px;
        padding: 0 20px;
        border-radius: 14px;
        flex-direction: row;
        justify-content: center;
        font-size: 13px;
        gap: 10px;
    }

    .app-nav-button.is-disabled {
        background: #f8fafc;
    }

    .app-nav-button.is-active {
        box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
    }

    .app-nav-button.is-arena.is-active {
        box-shadow: 0 8px 18px rgba(245, 158, 11, 0.2);
    }

    .app-nav-button.is-daily.is-active {
        box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
    }

    .app-nav-settings {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .app-content-screen {
        padding: 118px 56px 42px !important;
    }

    .home-screen {
        align-items: center;
    }

    .home-screen .home-header {
        display: none !important;
    }

    .home-screen .home-header,
    .home-screen .score-card,
    .home-screen .mode-tabs,
    .home-screen .task-section,
    .home-screen .home-mini-brand {
        max-width: 560px !important;
    }

    .home-screen .task-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-screen .task-card {
        min-height: 112px;
        align-items: center;
        border-radius: 24px !important;
    }

    .home-screen .task-card .flex.items-center.flex-1 {
        align-items: center;
    }

    .home-screen .task-icon {
        margin-top: 0;
    }

    .home-screen .task-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .home-screen .task-subtitle {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.35;
    }

    .analytics-screen.app-content-screen {
        padding-top: 118px !important;
        padding-left: 56px !important;
        padding-right: 56px !important;
        padding-bottom: 42px !important;
    }

    .analytics-screen > div {
        max-width: 920px !important;
    }

    .home-screen .home-settings-control {
        display: none !important;
    }
}

/* My page: a quieter personal workspace, rather than a stack of equal cards. */
.settings-screen {
    background: #f8fafc !important;
    padding: 24px 18px calc(112px + env(safe-area-inset-bottom)) !important;
}

.settings-page-wrap {
    max-width: 520px;
}

.my-page-hero {
    display: block;
    margin: 0 2px 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e7df;
}

.my-page-hero .settings-page-icon {
    width: 44px;
    height: 44px;
    border: 1px solid #dddafe;
    border-radius: 14px;
    background: #efefff;
    color: #4f46e5;
    box-shadow: none;
}

.settings-page-kicker {
    color: #7d8794;
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: none;
}

.settings-page-hero h2 {
    margin-top: 4px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.settings-page-hero p {
    max-width: 290px;
    margin-top: 6px;
    color: #7b8490;
    font-size: 11px;
    font-weight: 700;
}

.settings-page-card {
    margin-top: 0;
    border-color: #e4e7df;
    border-radius: 18px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.025);
}

.my-sync-card {
    min-height: 78px;
    padding: 15px 16px;
    border-color: #dbe9df;
    background: #fbfdf9;
}

.my-sync-card .settings-page-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #e8f7ee;
    color: #10b981;
}

.my-sync-card .settings-page-card-title {
    color: #17352b;
}

.my-sync-card .settings-page-card-body {
    color: #6f847a;
}

.my-sync-card .settings-page-pill {
    color: #0f9f72;
}

.my-progress-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.025);
}

.my-progress-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 13px;
}

.my-progress-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-progress-card-head span {
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
}

.my-progress-card-head strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}

.my-progress-card-head > svg {
    color: #4f46e5;
    opacity: 0.78;
}

.my-progress-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #edf0f8;
    border-bottom: 1px solid #edf0f8;
}

.my-progress-stats > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
}

.my-progress-stats > div + div {
    border-left: 1px solid #edf0f8;
}

.my-progress-stats strong {
    overflow: hidden;
    color: #4f46e5;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-progress-stats span {
    overflow: hidden;
    color: #8490a0;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-progress-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    background: #ffffff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
}

.my-progress-link svg {
    transition: transform 160ms ease;
}

.my-progress-link:hover svg,
.my-progress-link:focus-visible svg {
    transform: translateX(2px);
}

.my-sync-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 13px 2px 0;
    padding: 0 2px;
}

.my-sync-note-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #d7eee0;
    border-radius: 10px;
    background: #f0fbf4;
    color: #10b981;
}

.my-sync-note .settings-page-card-title {
    color: #38564a;
    font-size: 11px;
}

.my-sync-note .settings-page-card-body {
    max-width: 330px;
    margin-top: 2px;
    color: #84958d;
    font-size: 9.5px;
}

.my-sync-note .settings-page-pill {
    margin-left: auto;
    color: #0f9f72;
}

.my-page-section-label {
    margin: 22px 2px 8px;
    color: #8a938d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.my-feature-list,
.settings-preferences-group {
    border-color: #e4e7df;
    background: #ffffff;
}

.my-feature-row,
.settings-preferences-group .settings-page-group-row {
    min-height: 70px;
    padding: 14px 16px;
}

.settings-page-group-divider {
    margin: 0 16px;
    background: #edf0ea;
}

.my-feature-row .settings-page-card-icon,
.settings-preferences-group .settings-page-card-icon {
    width: 34px;
    height: 34px;
    border: 1px solid #eceee8;
    border-radius: 11px;
}

.my-feature-row .settings-leaderboard-icon {
    border-color: #f9e6b2;
    background: #fffaf0;
    color: #e4a11b;
}

.my-feature-row .settings-achievements-icon {
    border-color: #dedcff;
    background: #f4f3ff;
    color: #5b55e8;
}

.settings-page-card-title {
    font-size: 13px;
    font-weight: 900;
}

.settings-page-card-body {
    margin-top: 3px;
    color: #77818b;
    font-size: 10.5px;
    font-weight: 700;
}

.settings-page-pill {
    padding: 0;
    background: transparent;
    color: #a1a8a6;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.settings-language-group.is-page {
    background: #f5f6f2;
    border: 1px solid #e6e9e2;
    border-radius: 13px;
    padding: 4px;
}

.settings-language-option {
    height: 34px;
    border-radius: 10px;
}

.settings-sound-toggle.is-page {
    min-width: 54px;
    height: 32px;
    border-radius: 10px;
}

.settings-page-enter-button {
    min-width: 0;
    gap: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4f46e5;
    padding: 3px 0 3px 8px;
    font-size: 10px;
}

.settings-page-enter-button svg {
    transition: transform 160ms ease;
}

.settings-page-group-link:hover .settings-page-enter-button svg,
.settings-page-group-link:focus-visible .settings-page-enter-button svg {
    transform: translateX(2px);
}

.settings-export-button {
    margin-top: 14px;
    border-color: #e4e7df;
    border-radius: 14px;
    background: transparent;
    color: #68737b;
    box-shadow: none;
}

@media (max-width: 420px) {
    .settings-screen {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .settings-page-card-body {
        font-size: 10px;
    }

    .my-feature-row .settings-page-pill {
        display: none;
    }

    .my-sync-note .settings-page-pill {
        display: none;
    }
}

/* My page: keep the personal center in the same visual system as the training modes. */
.my-page-screen {
    background: #f8fafc !important;
    padding: 20px 18px calc(112px + env(safe-area-inset-bottom)) !important;
}

.my-page-screen .settings-page-wrap {
    max-width: 520px;
}

.my-page-screen .my-page-hero {
    display: block;
    margin: 0 2px 18px;
    padding-bottom: 0;
    border-bottom: 0;
}

.my-page-screen .settings-page-hero h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.my-page-screen .settings-page-hero p {
    max-width: 290px;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.my-page-screen .my-page-hero + .my-page-section-label {
    margin-top: 0;
}

.my-page-screen .my-page-section-label {
    margin: 20px 2px 8px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.my-page-screen .settings-page-card,
.my-page-screen .my-progress-card {
    border-color: #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.025);
}

.my-page-screen .my-sync-note {
    margin: 12px 2px 0;
    padding: 10px 0 0;
    border-top: 1px solid #e2e8f0;
}

.my-page-screen .my-sync-note-icon {
    border-color: #e0e7ff;
    background: #eef2ff;
    color: #4f46e5;
}

.my-page-screen .my-sync-note .settings-page-card-title {
    color: #475569;
}

.my-page-screen .my-sync-note .settings-page-card-body {
    color: #94a3b8;
}

.my-page-screen .my-sync-note .settings-page-pill {
    color: #64748b;
}

.my-page-screen .my-feature-list,
.my-page-screen .settings-preferences-group {
    border-color: #e2e8f0;
    background: #ffffff;
}

.my-page-screen .settings-page-group-divider {
    background: #edf2f7;
}

@media (min-width: 900px) {
    .my-page-screen {
        padding: 118px 56px 42px !important;
    }
}

@keyframes float-neuron {
    0%, 100% { transform: var(--neuron-transform) translateY(0px); }
    50% { transform: var(--neuron-transform) translateY(-6px); }
}

@keyframes neuron-pop-in {
    from {
        opacity: 0;
        transform: var(--neuron-transform) scale(0.15);
    }

    70% {
        opacity: 1;
        transform: var(--neuron-transform) scale(1.18);
    }

    to {
        opacity: 1;
        transform: var(--neuron-transform) scale(1);
    }
}

.neuron-item {
    opacity: 0;
    transform: var(--neuron-transform);
    transform-origin: center center;
    transition: left 0.72s cubic-bezier(0.2, 0.9, 0.28, 1), top 0.72s cubic-bezier(0.2, 0.9, 0.28, 1);
    will-change: left, top, transform, opacity;
}

.neuron-floater {
    animation:
        neuron-pop-in 0.46s cubic-bezier(0.2, 1.35, 0.36, 1) var(--pop-delay) both,
        float-neuron var(--float-duration) ease-in-out var(--float-delay) infinite alternate;
}

.neuron-mover {
    animation:
        neuron-pop-in 0.46s cubic-bezier(0.2, 1.35, 0.36, 1) var(--pop-delay) both,
        float-neuron 2.8s ease-in-out var(--float-delay) infinite alternate;
}

.neuron-layout {
    height: min(70vh, 100%);
    max-height: 70vh;
}

@media (max-width: 768px), (max-height: 760px) {
    .game-topbar {
        height: 50px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .game-stage {
        padding: 14px 16px max(42px, calc(20px + env(safe-area-inset-bottom))) !important;
    }
}

@media (max-height: 620px) {
    .game-topbar {
        height: 44px !important;
    }

    .game-stage {
        padding: 8px 14px max(34px, calc(16px + env(safe-area-inset-bottom))) !important;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    .game-topbar {
        height: 42px !important;
    }

    .game-stage {
        padding: 8px 18px max(26px, calc(12px + env(safe-area-inset-bottom))) !important;
    }
}

@media (max-height: 860px), (max-width: 430px) {
    .home-screen {
        padding: 28px 18px 18px;
    }

    .home-header {
        margin-bottom: 18px;
        --home-header-base-scale: 0.86;
        transform-origin: top center;
        height: 104px;
    }

    .home-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .home-title {
        font-size: 24px;
        line-height: 1.2;
        margin-top: 16px;
    }

    .score-card {
        padding: 18px;
        margin-bottom: 14px;
        border-radius: 24px;
        min-height: 82px;
    }

    .score-value {
        font-size: 32px;
        line-height: 1;
    }

    .unlock-pill {
        padding: 5px 10px;
        font-size: 9px;
    }

    .score-watermark svg {
        width: 104px;
        height: 104px;
    }

    .mode-tabs {
        margin-bottom: 18px;
        border-radius: 15px;
    }

    .mode-tabs button {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .task-section {
        margin-bottom: 18px;
    }

    .task-list {
        gap: 8px;
    }

    .task-card {
        padding: 14px;
        border-radius: 20px;
    }

    .task-icon {
        width: 38px;
        height: 38px;
        margin-right: 12px;
        border-radius: 12px;
    }

    .task-title {
        font-size: 15px;
        line-height: 1.15;
    }

    .task-subtitle {
        font-size: 10px;
        line-height: 1.25;
    }

    .info-button {
        padding: 6px;
        margin-left: 6px;
    }

    .task-best {
        padding: 4px 7px;
        font-size: 9px;
    }

    .neuron-target {
        padding: 10px 12px;
        margin-bottom: 10px;
        border-radius: 20px;
    }

    .neuron-board {
        padding: 12px;
        gap: 10px;
        border-radius: 24px;
    }

    .neuron-controls {
        margin-top: 10px;
        padding: 10px;
        border-radius: 22px;
    }
}

@media (max-height: 700px) {
    .home-screen {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .home-header {
        margin-bottom: 14px;
        --home-header-base-scale: 0.78;
        height: 94px;
    }

    .home-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .score-card {
        padding: 12px 16px !important;
        margin-bottom: 12px;
        min-height: 70px !important;
    }

    .score-value {
        font-size: 28px !important;
    }

    .daily-score-streak {
        gap: 5px;
        border-radius: 14px;
        padding: 5px 7px;
    }

    .daily-score-flame {
        width: 26px;
        height: 26px;
        border-radius: 10px;
    }

    .daily-score-flame svg {
        width: 16px;
        height: 16px;
    }

    .daily-score-streak-label {
        font-size: 8px;
    }

    .daily-score-streak-value {
        margin-top: 2px;
        font-size: 18px;
    }

    .daily-score-streak-value span {
        font-size: 9px;
    }

    .mode-tabs {
        margin-bottom: 14px;
    }

    .mode-tabs button {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .task-list {
        gap: 7px;
    }

    .task-card {
        padding: 11px 13px;
        border-radius: 18px;
    }

    .task-icon {
        width: 34px;
        height: 34px;
        margin-right: 10px;
    }

    .task-title {
        font-size: 14px;
    }

    .task-subtitle {
        font-size: 9.5px;
    }

    .task-best {
        padding: 3px 6px;
        font-size: 8.5px;
    }

    .neuron-target {
        padding: 9px 10px;
        margin-bottom: 8px;
    }

    .neuron-board {
        padding: 10px;
        gap: 9px;
    }

    .neuron-controls {
        margin-top: 8px;
        padding: 9px;
    }

    .neuron-controls > .flex > button,
    .neuron-controls > .flex > div {
        height: 48px;
    }

    .neuron-controls > .flex > button {
        width: 48px;
    }

    .neuron-controls .grid button {
        height: 38px;
    }
}

@media (max-height: 620px), (max-width: 360px) {
    .home-screen {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .home-header {
        margin-bottom: 10px;
        --home-header-base-scale: 0.68;
        height: 82px;
    }

    .home-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

.task-copy {
    padding-top: 0;
    padding-bottom: 0;
}

.task-copy .task-title {
    margin-bottom: clamp(4px, 0.65vh, 7px);
}

.task-copy .task-subtitle {
    line-height: 1.35 !important;
}

@media (max-width: 560px) {
    .home-screen.app-content-screen:not(.is-daily-home) {
        padding-bottom: max(96px, calc(84px + env(safe-area-inset-bottom))) !important;
    }

    .home-screen.app-content-screen.is-daily-home {
        height: auto !important;
        min-height: 100dvh;
        padding-bottom: var(--mobile-nav-clearance) !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .home-screen.app-content-screen.is-daily-home .task-section {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 900px) {
    .home-screen.app-content-screen,
    .analytics-screen.app-content-screen {
        padding-top: 118px !important;
        padding-right: 56px !important;
        padding-bottom: 42px !important;
        padding-left: 56px !important;
    }

    .home-screen.app-content-screen {
        height: 100dvh;
        overflow-y: auto !important;
    }
}
