body{font-size:18px}button{font-size:17px}p{font-size:18px}.hint,.level-help{font-size:15px}.dialogue{grid-template-columns:330px minmax(0,1fr);gap:40px;min-height:480px}.dialogue .mentor>img{width:330px;max-height:480px}.dialogue .speech{display:grid;min-height:0;align-items:start;padding:24px 28px;border-radius:20px}.dialogue .speech p,.dialogue .speech:after{grid-area:1/1;margin:0;font-size:21px;line-height:1.65;font-weight:400;white-space:normal}.dialogue .speech:after{content:attr(data-full-text);visibility:hidden;pointer-events:none}.dialogue .dialogue-name{width:260px}.level-screen{grid-template-columns:320px minmax(0,560px);max-width:920px;gap:0 40px;align-items:start}.level-coach{display:flex;flex-direction:column;grid-column:1;grid-row:1;gap:0;align-items:center}.coach-dialogue{order:0;width:100%;margin:0 0 12px;align-self:auto}.coach-dialogue .name-art{width:250px;max-width:100%;margin:0 auto 14px}.coach-dialogue p{font-size:18px;line-height:1.5;min-height:120px;padding:18px}.coach-portrait{order:1;grid-area:auto;width:320px;height:450px;align-self:center}.coach-portrait img{width:320px;height:450px;max-width:100%;object-fit:contain}.level-content{grid-column:2;grid-row:1;width:100%;max-width:none;margin-top:18px}.level-content h1{font-size:32px}.level-content .level-help{font-size:16px;line-height:1.5;margin:14px 0 24px}.level-choice{font-size:17px;min-height:66px;padding:12px 20px;gap:22px}.level-choice img{width:42px;height:38px}.level-content .level-list{gap:14px}.level-screen>.bottom-bar{grid-row:2}.level-screen .bottom-bar{margin-top:18px}body[data-view=level] main{max-width:1040px}.auth-layout{display:grid;grid-template-columns:340px minmax(0,480px);gap:70px;max-width:890px;margin:auto;align-items:start}.auth-companion{display:flex;flex-direction:column;align-items:center;padding-top:20px}.auth-companion>.name-art{width:260px;mix-blend-mode:screen}.auth-speech{padding:18px 22px;background:var(--panel);border:2px solid var(--border);border-radius:18px;font-size:18px;line-height:1.55;margin-top:18px}.auth-sergio{width:320px;height:440px;object-fit:contain}.auth-content h1{font-size:38px;line-height:1.2;margin:14px 0}.auth-content>p{font-size:18px;margin:0 0 26px}.auth-content .setup{margin:0;padding:28px;border:2px solid var(--border);border-radius:20px}.auth-content form label{font-size:17px;font-weight:600;margin-bottom:22px;color:var(--text)}.auth-content input{font:17px/1.4 'Segoe UI',sans-serif;min-height:58px;padding:14px 16px;margin-top:10px}.auth-content input::placeholder{color:#aab8d0;opacity:1}.auth-content .actions{display:grid;grid-template-columns:1fr;margin:22px 0}.auth-content .actions button{width:100%;min-height:54px}.auth-content .account-note{font-size:15px;line-height:1.65;margin:0;color:var(--muted)}.auth-content #error:empty{display:none}.auth-content #error{color:#ffd0c5;font-size:16px}body[data-view=auth] main{max-width:1040px;padding:0 35px;margin:35px auto}.practice-card p,.path-step p,.path-step .hint,.mini-stats p{font-size:16px}.path-step h3{font-size:23px}.side-nav button{font-size:17px}.welcome p{font-size:20px}.level-choice span{line-height:1.45}@media(prefers-reduced-motion:no-preference){.speech,.level-coach,.auth-companion,.auth-content,.practice-card,.path-step,.path-banner{animation:block-in .28s ease-out both}.level-choice{animation:block-in .26s ease-out both}.level-choice:nth-child(2){animation-delay:.04s}.level-choice:nth-child(3){animation-delay:.08s}.level-choice:nth-child(4){animation-delay:.12s}.level-choice:nth-child(5){animation-delay:.16s}@keyframes block-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}}@media(max-width:850px){.auth-layout{grid-template-columns:240px minmax(0,1fr);gap:30px}.auth-sergio{width:240px;height:370px}.level-screen{grid-template-columns:260px minmax(0,1fr);gap:25px}.coach-portrait,.coach-portrait img{width:260px;height:420px}.dialogue{grid-template-columns:250px minmax(0,1fr);gap:25px}.dialogue .mentor>img{width:250px}}@media(max-width:650px){body{font-size:17px}.dialogue{grid-template-columns:1fr;min-height:0;gap:14px}.dialogue .mentor{height:260px}.dialogue .mentor>img{height:260px;width:auto;max-height:260px}.dialogue .speech{padding:20px;min-height:0}.dialogue .speech p,.dialogue .speech:after{font-size:18px;line-height:1.6}.dialogue .dialogue-name{width:220px}.level-screen{display:flex;flex-direction:column;gap:18px}.level-coach{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;min-height:200px;margin:0;width:100%}.coach-portrait{grid-column:1;grid-row:1;order:0;width:120px;height:200px}.coach-portrait img{width:120px;height:200px}.coach-dialogue{grid-column:2;grid-row:1;order:1;margin:0;width:100%}.coach-dialogue .name-art{width:175px;margin-bottom:10px}.coach-dialogue p{font-size:16px;min-height:130px;padding:14px}.level-content{width:100%;margin:0}.level-content h1{font-size:28px}.level-content .level-help{font-size:16px;margin:10px 0 20px}.level-choice{font-size:16px;min-height:64px;padding:12px 16px;gap:16px}.level-content .level-list{gap:12px}.level-screen>.bottom-bar{width:100%;margin-top:4px}.auth-layout{display:flex;flex-direction:column;gap:24px}.auth-companion{display:grid;grid-template-columns:80px 1fr;gap:12px;width:100%;padding:0}.auth-companion>.name-art{width:200px;max-width:100%;grid-column:2;grid-row:1}.auth-speech{grid-column:2;grid-row:2;font-size:16px;padding:12px;margin:0}.auth-sergio{grid-column:1;grid-row:1/3;width:80px;height:150px}.auth-content{width:100%}.auth-content h1{font-size:30px;margin:0 0 12px}.auth-content>p{font-size:17px;margin-bottom:20px}.auth-content .setup{padding:22px}.auth-content input{font-size:17px}.auth-content form label{font-size:17px}.auth-content .account-note{font-size:15px}body[data-view=auth] main{padding:0 20px;margin:25px auto}.auth-content .actions button{font-size:16px}.welcome p{font-size:18px}}
#brand .companion-brand{display:none!important}
/* JPEG wordmarks require an opaque backdrop inside animated stacking groups. */
.coach-dialogue,.auth-companion,.mentor-brand{background:var(--bg)}
.coach-dialogue .name-art,.auth-companion>.name-art,.mentor-brand .name-art,.dialogue-name{mix-blend-mode:screen}
.dialogue>div:last-child{background:var(--bg)}
.dialogue .speech,.coach-dialogue p,.auth-speech{position:relative;overflow:visible}
.dialogue .speech:before{content:'';position:absolute;left:-11px;top:36px;width:18px;height:18px;background:var(--panel);border-left:2px solid var(--border);border-bottom:2px solid var(--border);transform:rotate(45deg);pointer-events:none}
.coach-dialogue p:after,.auth-speech:after{content:'';position:absolute;bottom:-11px;left:55%;width:18px;height:18px;background:var(--panel);border-right:2px solid var(--border);border-bottom:2px solid var(--border);transform:rotate(45deg);pointer-events:none}
.coach-dialogue{margin-bottom:24px}
@media(max-width:650px){.dialogue .speech:before{left:46%;top:-11px;border-left:2px solid var(--border);border-top:2px solid var(--border);border-bottom:0}.coach-dialogue p:after,.auth-speech:after{left:-11px;top:38px;bottom:auto;border-left:2px solid var(--border);border-bottom:2px solid var(--border);border-right:0}.coach-dialogue{margin-bottom:0}}
