:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f6f4e9;background:#101b20;font-family:Inter,system-ui,sans-serif;line-height:1.6}*{box-sizing:border-box}body{margin:0}a{color:#e5cb88;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,.portal-button{color:#152329;cursor:pointer;background:#e7cf92;border:1px solid #e7cf92;border-radius:10px;padding:.8rem 1.1rem;font-weight:700;text-decoration:none;display:inline-block}button:disabled{opacity:.55;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:4px;outline:3px solid #8dd9ff}.secondary{color:#e7cf92;background:0 0}.portal-header,.portal-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;max-width:1140px;margin:auto;padding:1.4rem;display:flex}.portal-brand{color:#f6f4e9;font-size:1.6rem;font-weight:800;text-decoration:none}.portal-brand span{color:#e7cf92}.portal-main{max-width:1140px;margin:2rem auto;padding:0 1.4rem}.eyebrow{color:#e7cf92;letter-spacing:.15em;font-size:.8rem}h1{letter-spacing:-.03em;max-width:20ch;font-size:clamp(2rem,5vw,3.6rem);line-height:1.12}h2{margin-top:0;font-size:1.4rem}.intro{color:#ccd8dc;max-width:68ch;font-size:1.1rem}.portal-grid{grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:2.3rem;display:grid}.portal-card{background:#19292f;border:1px solid #35484e;border-radius:18px;min-width:0;margin-bottom:1.2rem;padding:clamp(1.2rem,3vw,2rem)}.price{color:#e7cf92;font-size:2.4rem;font-weight:750}.price span{color:#ccd8dc;font-size:.9rem;display:block}.muted,small{color:#b7c6cc;font-size:.9rem}small{overflow-wrap:anywhere;display:block}label{margin:1rem 0;display:block}input:not([type=checkbox]),select,textarea{color:#fff;background:#101b20;border:1px solid #75868b;border-radius:8px;width:100%;margin:.5rem 0;padding:.8rem;display:block}.portal-check input{vertical-align:middle;width:1.2rem;height:1.2rem;margin-right:.5rem}.portal-actions{flex-wrap:wrap;gap:.7rem;margin-top:1.5rem;display:flex}.portal-notice{overflow-wrap:anywhere;background:#293a40;border-left:3px solid #e7cf92;border-radius:5px;padding:.8rem 1rem}.portal-success{color:#9ae3bc}details{margin-top:1.5rem}summary{cursor:pointer}li{margin:.6rem 0}.portal-footer{border-top:1px solid #35484e;margin-top:3rem;font-size:.9rem}.portal-footer span{color:#b7c6cc;width:100%}strong{overflow-wrap:anywhere}@media (width<=720px){.portal-grid{grid-template-columns:1fr}.portal-main{margin-top:1rem}}:root{--page-bg:#07120d;--surface-raised:#10281b;--surface-inset:#0b1b13;--surface-selected:#294631;--text-primary:#f5f1e6;--text-secondary:#ddd6c4;--text-muted:#c8c0ae;--accent-text:#d5bb78;--accent-fill:#d5bb78;--text-on-accent:#14271c;--control-border:#89917e;--focus-ring:#d5bb78;--status-success:#a9d5a1;--status-danger:#f1a29a;--status-warning:#e7cf92;--status-success-bg:#163b25;--status-danger-bg:#40221e;--status-warning-bg:#44351e;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--page-bg:#f4f1e8;--surface-raised:#fffdf6;--surface-inset:#e9eee4;--surface-selected:#dbe6d5;--text-primary:#192d22;--text-secondary:#34493a;--text-muted:#4d5d50;--accent-text:#735519;--accent-fill:#dec98d;--text-on-accent:#192d22;--control-border:#7b8877;--focus-ring:#235e43;--status-success:#245d37;--status-danger:#952f29;--status-warning:#735019;--status-success-bg:#e3efde;--status-danger-bg:#f9e9e4;--status-warning-bg:#f6ecd2;--ivory-100:var(--text-primary);--ivory-200:var(--text-secondary);--ivory-300:var(--text-muted);--ivory-500:var(--text-muted);--brass-400:var(--accent-text);--brass-500:var(--accent-text);--moss-400:#426342;--moss-500:#426342;--danger-500:var(--status-danger);--surface:var(--surface-raised);--surface-soft:var(--surface-inset);--border-subtle:#b0b8a5;--premium-panel-border:#b0b8a5;--premium-panel-background:linear-gradient(145deg, #fffdf6, #edf0e5);--premium-panel-featured-background:linear-gradient(145deg, #f5f6e9, #e2ebda);--premium-panel-shadow:0 5px 16px #23352714;--shadow-lg:0 12px 30px #2335271f;--shadow-md:0 6px 18px #2335271a;background:var(--page-bg);color:var(--text-primary);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.theme-control{text-align:left;gap:10px;min-width:0;display:grid}.theme-control label{color:var(--text-primary);margin:0;font-weight:650}.theme-control select,.theme-control button{width:100%;min-width:0;min-height:44px;font:inherit;border:1px solid var(--control-border);background:var(--surface-inset);color:var(--text-primary);border-radius:8px;padding:.7rem}.theme-control p{max-width:60ch;color:var(--text-secondary);margin:0;font-size:.85rem;line-height:1.6}.theme-control [data-theme-error]{color:var(--status-danger)}.theme-control [hidden]{display:none}.theme-control :focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}:root[data-theme=light] body{background:var(--page-bg);color:var(--text-primary)}:root[data-theme=light] :is(h1,h2,h3,.button-label){text-shadow:none}:root[data-theme=light] :is(main,.app-stage,.home-screen,.onboarding-experience,.public-landing,.public-hero,.player-progress-report,.confirmation-dialog){background:var(--premium-panel-background);color:var(--text-primary);box-shadow:var(--shadow-md)}:root[data-theme=light] :is(.app-header,.bottom-navigation,.public-site-header){background:var(--surface-raised);border-color:var(--border-subtle);box-shadow:var(--shadow-md)}:root[data-theme=light] :is(.content-card,.academy-chapter-button,.academy-topic,.academy-hand-example,.academy-decision,.academy-principle-grid section,.academy-step-list li,.advanced-track-roadmap li,.composition-module-button,.composition-module,.composition-example section,.advanced-strategy-module-button,.advanced-strategy-module,.advanced-strategy-feedback-layers section,.advanced-strategy-answer,.academy-rule-profile div,.rule-awareness-module-button,.rule-awareness-module,.rule-awareness-active-rules div,.rule-awareness-answer,.statistics-trend-panel,.statistics-empty-state,.math-lab-access,.math-lab-decision,.training-mode-selector,.training-session-statistics,.training-context,.training-feedback-overview div,.training-feedback-comparison div,.training-block-summary,.training-block-summary dl div,.training-result,.onboarding-principles div,.onboarding-choice,.onboarding-trainer-steps li,.onboarding-assessment-note,.profile-selection,.profile-create-card,.profile-option,.public-language-switch,.public-section-academy,.public-beta,.public-positioning,.public-beta-form,.public-legal-item),:root[data-theme=light] :is(.advanced-curriculum-access,.advanced-strategy-access,.advanced-strategy-answer-feedback,.rule-awareness-answer-feedback,.player-hand-type,.public-action-secondary,.public-beta-readiness,.public-beta-status:not([hidden])){background:var(--surface-inset)}:root[data-theme=light] :is(.composition-module-button:hover,.composition-module-button:focus-visible,.composition-module-button.is-active,.advanced-strategy-module-button:hover,.advanced-strategy-module-button:focus-visible,.advanced-strategy-module-button.is-active,.rule-awareness-module-button:hover,.rule-awareness-module-button:focus-visible,.rule-awareness-module-button.is-active,.onboarding-choice:focus-visible){background:var(--surface-selected)}:root[data-theme=light] :is(.mastery-progress,.statistics-period-bars i,.statistics-category-bar,.training-block-progress-track,.onboarding-progress-mark){background:#c4cebc}:root[data-theme=light] .statistics-tone-positive{--analysis-accent:var(--status-success)}:root[data-theme=light] .statistics-tone-critical{--analysis-accent:var(--status-danger)}:root[data-theme=light] :is(.ui-button,.menu-button,main>button,.home-secondary-actions .ui-button,.training-action-button.ui-button-secondary,.math-lab-editor .secondary-button){color:var(--text-primary);background:var(--surface-selected);border-color:var(--control-border);box-shadow:0 2px 5px #2335271a}:root[data-theme=light] :is(.ui-button-primary,.home-primary-action .ui-button,.training-action-button.ui-button-primary,.math-lab-editor .primary-button){color:var(--text-on-accent);background:var(--accent-fill);border-color:#8e743a}:root[data-theme=light] .ui-button-danger{color:var(--status-danger);background:var(--status-danger-bg);border-color:var(--status-danger)}:root[data-theme=light] :is(.training-mode-button.is-active,.player-hand-status-active,.academy-chapter-button.is-active>span:first-child,.academy-step-list li>span,.public-language-switch button.is-active,.public-action-primary,.public-app-entry:hover,.public-app-entry:focus-visible,.onboarding-trainer-steps li>span,.rule-awareness-module-button.is-complete>span,.composition-module-button.is-complete>span,.advanced-strategy-module-button.is-complete>span){color:var(--text-on-accent);background:var(--accent-fill);border-color:#8e743a}:root[data-theme=light] :is(.bottom-navigation-button.is-active,.intro-actions [aria-pressed=true],.profile-option.is-active,.profile-option:disabled,.profile-option:hover,.profile-option:focus-visible,.academy-chapter-button.is-active,.academy-chapter-button:hover,.academy-chapter-button:focus-visible,.advanced-track-roadmap .is-active,.advanced-strategy-answer.is-selected,.rule-awareness-answer.is-selected,.onboarding-choice.is-selected,.onboarding-choice:hover,.onboarding-radio-option:has(input:checked)){background:var(--surface-selected);color:var(--text-primary);border-color:var(--focus-ring)}:root[data-theme=light] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){color:var(--text-primary);background:var(--surface-raised);border-color:var(--control-border)}:root[data-theme=light] input::placeholder,:root[data-theme=light] textarea::placeholder{color:var(--text-muted);opacity:1}:root[data-theme=light] input{accent-color:var(--focus-ring)}:root[data-theme=light] :focus-visible{outline-color:var(--focus-ring)}:root[data-theme=light] .training-action-button:disabled{background:var(--surface-inset);color:var(--text-muted);border-color:var(--control-border);box-shadow:none}:root[data-theme=light] :is(.training-table,.blackjack-table){box-shadow:inset 0 1px 0 #fffdf6, var(--shadow-md);outline-color:var(--border-subtle);background:linear-gradient(150deg,#ecf1e3,#dce6d3) padding-box padding-box,linear-gradient(#b7a472,#927d4f) border-box}:root[data-theme=light] :is(){opacity:.2}:root[data-theme=light] :is(.table-zone,.training-interaction){box-shadow:none;background:0 0}:root[data-theme=light] .player-hands-split .player-hand{background:var(--surface-raised);border-color:var(--border-subtle)}:root[data-theme=light] .player-hands-split .player-hand.is-active{background:var(--surface-selected);border-color:var(--focus-ring);box-shadow:inset 3px 0 var(--focus-ring)}:root[data-theme=light] .player-hands-split .player-hand.is-finished{background:var(--surface-inset);opacity:1}:root[data-theme=light] :is(.hand-value,.player-hand-status){background:var(--surface-raised);border-color:var(--control-border)}:root[data-theme=light] .player-hand-status-active{background:var(--accent-fill)}:root[data-theme=light] .player-hand-status-bust{background:var(--status-danger-bg);color:var(--status-danger)}:root[data-theme=light] .training-feedback{background:var(--surface-raised);border-color:var(--control-border)}:root[data-theme=light] .training-feedback-strategy-correct{background:var(--status-success-bg);border-color:var(--status-success)}:root[data-theme=light] .training-feedback-strategy-incorrect{background:var(--status-warning-bg);border-color:var(--status-warning)}:root[data-theme=light] .training-feedback-illegal-action{background:var(--status-danger-bg);border-color:var(--status-danger)}:root[data-theme=light] .training-feedback-strategy-unresolved{background:var(--surface-inset)}:root[data-theme=light] :is(.form-error,.player-hand-result-loss,.training-feedback-label){color:var(--status-danger)}:root[data-theme=light] .persistence-recovery-notice{background:var(--status-warning-bg);border-color:var(--status-warning)}:root[data-theme=light] .training-feedback-strategy-correct .training-feedback-label{color:var(--status-success)}:root[data-theme=light] .training-feedback-strategy-unresolved .training-feedback-label,:root[data-theme=light] :is(.onboarding-stage-header>p,.onboarding-local-note,.onboarding-optional-note){color:var(--text-muted)}:root[data-theme] #account-bar{background:var(--surface-raised);color:var(--text-primary);border-color:var(--control-border)}:root[data-theme] #account-bar a{color:var(--accent-text)}:root[data-theme] .account-dialog{color:var(--text-primary);background:var(--surface-raised);border-color:var(--control-border)}:root[data-theme] .account-dialog :is(h2,p){color:var(--text-primary)}:root[data-theme] :is(#account-bar button,.account-dialog button){background:var(--accent-fill);color:var(--text-on-accent)}:root[data-theme=light] :is(#portal a,#portal .eyebrow,#portal .price,#portal .portal-brand span){color:var(--accent-text)}:root[data-theme=light] #portal .portal-brand{color:var(--text-primary)}:root[data-theme=light] #portal :is(.intro,.price span,.muted,small,.portal-footer span){color:var(--text-muted)}:root[data-theme=light] #portal .portal-main{box-shadow:none;background:0 0}:root[data-theme=light] #portal .portal-card{background:var(--surface-raised);border-color:var(--border-subtle)}:root[data-theme=light] #portal :is(button,.portal-button){background:var(--accent-fill);color:var(--text-on-accent);border-color:#8e743a}:root[data-theme=light] #portal .secondary{background:var(--surface-inset);color:var(--text-primary)}:root[data-theme=light] #portal .portal-notice{background:var(--surface-inset);border-color:var(--accent-text)}:root[data-theme=light] #portal .portal-success{color:var(--status-success)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
