/* IMORAL · Travessia UX B integrated release candidate — independent presentation layer */
:root{--b-bg:#09090c;--b-paper:#161518;--b-paper2:#201b1d;--b-line:#443437;--b-text:#fff6ef;--b-muted:#c3b5af;--b-sand:#efb99b;--b-accent:#ed7760;--b-red:#ba4335}
body.v28.b-ux{background:radial-gradient(ellipse at 64% -22%,#351919 0%,#101013 36%,#07080a 80%) fixed;color:var(--b-text);padding-bottom:96px}
body.v28.b-ux .v28-dock,body.v28.b-ux .mobile-dock{display:none!important}
body.v28.b-ux #v28Home{max-width:980px;padding-top:10px}
body.v28.b-ux .top{width:min(980px,calc(100% - 28px));border-bottom:1px solid #34292d;min-height:72px;margin:0 auto 4px}
body.v28.b-ux .brand h1{font-family:Georgia,serif;letter-spacing:-.01em}
body.v28.b-ux .brand small{color:#cfb7ae}
body.v28.b-ux .top-actions #onlineBtn,body.v28.b-ux .top-actions #guideBtn{border-color:#5a3d39!important;min-height:44px!important}
body.v28.b-ux.b-portal #v28Home>.v28-page{display:none!important}
body.v28.b-ux.b-legacy #v28Home>.v28-page.active{display:block!important}
body.v28.b-ux .v28-page-head{padding-top:15px}
body.v28.b-ux .v28-page{max-width:840px;margin:0 auto}
body.v28.b-ux #bShell{width:100%;margin:0 auto}
#bShell,#bShell *{box-sizing:border-box}
#bShell button{color:var(--b-text);font-family:inherit;cursor:pointer}
#bShell button:focus-visible,.b-bottom button:focus-visible{outline:3px solid #ffc398;outline-offset:3px}
#bShell .b-screen[hidden],#bShell .b-inline-legacy[hidden],.b-bottom[hidden]{display:none!important}
#bShell .b-screen{padding:12px 0 28px}
#bShell .b-kicker{color:#f5a98d;font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;display:flex;align-items:center;gap:8px;margin:9px 0}
#bShell .b-point{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--b-accent);box-shadow:0 0 18px rgba(237,119,96,.7)}
#bShell .b-overline{display:block;color:#c88f7e;font-size:12px;letter-spacing:.12em;font-weight:850}
#bShell h2,#bShell h3,#bShell p{margin:0}
#bShell h2{font:700 clamp(34px,5.7vw,65px)/1.05 Georgia,serif;letter-spacing:-.03em}
#bShell h3{font-family:Georgia,serif}
#bShell p{color:var(--b-muted);line-height:1.63}
#bShell .b-welcome-head{max-width:780px;padding:34px 0 22px}
#bShell .b-welcome-head h2{margin:12px 0 17px;max-width:680px}
#bShell .b-welcome-head p{max-width:610px;font-size:clamp(15px,2.2vw,18px)}
#bShell .b-audience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 20px}
#bShell .b-audience{min-height:235px;display:flex;text-align:left;gap:18px;align-items:flex-start;background:linear-gradient(146deg,#25191a 0%,#131316 80%);border:1px solid #624244;border-radius:21px;padding:27px;transition:transform .16s,border-color .16s;box-shadow:0 16px 42px #0004}
#bShell .b-audience:hover,#bShell .b-audience:focus-visible{border-color:#f18e72;transform:translateY(-2px)}
#bShell .b-audience-family{background:linear-gradient(145deg,#29201f 0%,#141315 82%)}
#bShell .b-audience-icon{border-radius:16px;background:rgba(232,110,90,.12);border:1px solid #78403a;min-width:61px;min-height:61px;display:grid;place-items:center;font-size:32px;color:#f8c2ac}
#bShell .b-audience-copy{display:flex;flex-direction:column;height:100%;gap:11px}
#bShell .b-audience-copy strong{font:700 clamp(21px,2.3vw,29px)/1.15 Georgia,serif}
#bShell .b-audience-copy small{font-size:14px;line-height:1.55;color:#cbbdb9}
#bShell .b-audience-copy em{font-size:12px;font-style:normal;color:#ffc3a4;font-weight:800;margin-top:auto;letter-spacing:.01em}
#bShell .b-trustline{display:flex;flex-wrap:wrap;gap:12px 23px;color:#bfaea7;font-size:12px;padding:6px 0 20px}
#bShell .b-note,#bShell .b-safety{padding:17px 19px;background:#1e1919;border:1px solid #4e3730;border-radius:15px;color:#dec8bb;font-size:13px;line-height:1.6}
#bShell .b-note strong{color:#fff5ed}
#bShell .b-section-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:21px 0 21px}
#bShell .b-section-top h2{max-width:700px;margin:7px 0 11px}
#bShell .b-section-top p{max-width:650px}
#bShell .b-small-action,#bShell .b-inline-legacy button{white-space:nowrap;min-height:44px;padding:10px 12px;font-size:12px;font-weight:750;border-radius:10px;background:#231b1c;border:1px solid #5e4140}
#bShell .b-feature{border:1px solid #805048;border-radius:19px;padding:clamp(20px,3.5vw,34px);background:radial-gradient(circle at 95% 5%,#653127 0%,#2e1c1b 35%,#171316 90%);box-shadow:0 18px 40px #0004}
#bShell .b-feature-family{background:radial-gradient(circle at 100% 4%,#57412f 0%,#2e2420 39%,#181517 90%);border-color:#77604e}
#bShell .b-feature-kicker{font-size:11px;color:#ffc3ab;font-weight:850;letter-spacing:.12em}
#bShell .b-feature h3{font-size:clamp(27px,4vw,36px);line-height:1.13;margin:12px 0;max-width:550px}
#bShell .b-feature p{max-width:560px;color:#e1d0c9}
#bShell .b-cta{border:1px solid #f3977d;border-radius:12px;padding:13px 19px;min-height:51px;margin-top:19px;background:linear-gradient(120deg,#e57860,#bb4837);color:#180c0b;font-weight:850!important;display:inline-flex;align-items:center;justify-content:space-between;gap:20px}
#bShell .b-cta span{font-size:19px}
#bShell .b-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:28px 0 12px}
#bShell .b-title-row h3{font-size:22px}
#bShell .b-title-row small{color:#baa69e;font-size:11px}
#bShell .b-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#bShell .b-task{border:1px solid #4b393a;border-radius:16px;padding:17px;background:linear-gradient(145deg,#211b1d,#161518);display:flex;flex-direction:column;gap:10px;text-align:left;min-height:202px}
#bShell .b-task:hover,#bShell .b-age-grid button:hover,#bShell .b-shortcuts button:hover{border-color:#e98770}
#bShell .b-task-icon{font-size:27px;color:#f2ab90}
#bShell .b-task strong{font-size:19px}
#bShell .b-task small{font-size:12px;color:#c0b0ac;line-height:1.45}
#bShell .b-task-go{font-size:11px;color:#f8ab90;font-weight:850;margin-top:auto}
#bShell .b-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#bShell .b-shortcuts button{min-height:81px;border:1px solid #413438;background:#1a181b;border-radius:14px;padding:15px;display:flex;align-items:center;gap:14px;text-align:left}
#bShell .b-shortcuts button>b{border:1px solid #6b4744;background:#302021;color:#f2b19f;width:44px;height:44px;min-width:44px;display:grid;place-items:center;border-radius:12px;font-size:20px;font-weight:700}
#bShell .b-shortcuts button span{flex:1;font-weight:850;font-size:14px;line-height:1.35}
#bShell .b-shortcuts button span small{display:block;font-weight:400;color:#bfafab;font-size:11px;margin-top:4px}
#bShell .b-shortcuts button em{font-style:normal;color:#f7b79e}
#bShell .b-age-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
#bShell .b-age-grid button{min-height:137px;padding:18px 15px;text-align:left;display:flex;flex-direction:column;gap:8px;border-radius:16px;border:1px solid #59443f;background:linear-gradient(135deg,#302321,#1a1718)}
#bShell .b-age-grid strong{font:700 30px Georgia,serif}
#bShell .b-age-grid strong span{font-size:15px;font-family:system-ui}
#bShell .b-age-grid small{font-size:13px;color:#d5c4bc}
#bShell .b-age-grid em{font-size:11px;font-weight:850;color:#efb393;font-style:normal;margin-top:auto}
#bShell .b-safety{margin:22px 0;background:#25211c;border-color:#63513a}
#bShell .b-inline-legacy{padding:4px 2px 18px;display:flex;align-items:center;gap:15px;justify-content:space-between;color:#f4b199;font-size:13px;font-weight:800}
.b-bottom{position:fixed;z-index:17;left:50%;transform:translateX(-50%);bottom:max(8px,env(safe-area-inset-bottom));width:min(660px,calc(100% - 14px));background:#141214f5;backdrop-filter:blur(15px);border:1px solid #503b3b;border-radius:17px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:6px;box-shadow:0 14px 42px #0009}
.b-bottom button{border:0;border-radius:11px;min-width:0;min-height:53px;display:grid;justify-items:center;align-content:center;gap:3px;background:transparent;color:#c3b5af;cursor:pointer}
.b-bottom button span{font-size:20px;line-height:22px}
.b-bottom button small{font-size:10px;font-weight:800;white-space:nowrap}
.b-bottom button.active{background:#462422;color:#fff}
.b-bottom button:hover{color:#ffe0cd}
body.v28.b-ux .wrap{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
@media(max-width:720px){#bShell .b-audience-grid{grid-template-columns:1fr}#bShell .b-audience{min-height:168px;padding:19px}#bShell .b-audience-icon{min-width:52px;min-height:52px}#bShell .b-welcome-head{padding:24px 2px 15px}#bShell .b-section-top{flex-wrap:wrap}#bShell .b-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#bShell .b-task{min-height:175px}#bShell .b-shortcuts{grid-template-columns:1fr}#bShell .b-age-grid{grid-template-columns:1fr 1fr}#bShell .b-title-row{flex-wrap:wrap;gap:5px}#bShell .b-age-grid button{min-height:120px}}
@media(max-width:420px){#bShell h2{font-size:36px}#bShell .b-age-grid button{padding:14px 12px}#bShell .b-audience{gap:12px}#bShell .b-audience-copy strong{font-size:21px}#bShell .b-task{padding:13px;min-height:183px}#bShell .b-shortcuts button{padding:12px}.b-bottom button{min-height:49px}.b-bottom button small{font-size:9px}}
@media(prefers-reduced-motion:reduce){#bShell *,#bShell *::before,#bShell *::after{transition:none!important;scroll-behavior:auto!important}}

/* RC18: preserve Ranking access at the center of the adult dock; family never receives a ranking. */
.b-bottom.b-five-music{grid-template-columns:repeat(5,minmax(0,1fr))}
.b-bottom button[hidden]{display:none!important}
.b-bottom button[data-b-nav="ranking"]{color:#f0c27c}
.b-bottom button[data-b-nav="ranking"] span{font-size:21px}
/* Small-screen listening control: keep it accessible without covering long lesson headings. */
@media (max-width:520px){
 body.b-ux #travessiaAudioPanel .tap-toggle{min-width:48px;width:48px;min-height:48px;height:48px;padding:6px;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
 body.b-ux #travessiaAudioPanel .tap-toggle span{display:none}
}
