/* Mobile match pass (Steve's 6 reference screens, 2026-10-23): cast portraits, solid hero cards, pill buttons. */
img.cast{display:block;border-radius:50%;object-fit:cover;background:#e9e4ee}
/* ---------- Inicio ---------- */
.h2-hero.m5{display:block;padding:22px 22px 22px;border-radius:28px}
.h2-hero-head{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
.h2-hero-hd{min-width:0}
.h2-hero.m5 .h2-hero-t{font-size:clamp(1.7rem,7.4vw,2.2rem);line-height:1.08;margin:4px 0 6px}
.h2-hero-sub{margin:0;color:#ffe1ee;font-size:.95rem}
.h2-hero-av{flex:0 0 104px;width:104px;height:104px;border:4px solid #fff;box-shadow:0 8px 20px rgba(80,0,40,.25)}
.h2-quote{margin:16px 0 18px;padding:14px 16px;border-radius:18px;background:#fff;color:#2a1830;font-size:1rem;line-height:1.4}
.h2-quote b{font-weight:800}
.h2-hero.m5 .h2-prog{display:flex;align-items:center;gap:12px;margin:0 0 18px}
.h2-hero.m5 .h2-bar{flex:1;height:8px;border-radius:99px;background:rgba(60,0,30,.28)}
.h2-hero.m5 .h2-bar i{background:#ff8a3d;border-radius:99px}
.h2-hero.m5 .h2-prog span{font-weight:800;color:#fff;white-space:nowrap}
.h2-hero.m5 .h2-hero-ctl .h2-btn-w{flex:1 1 100%;min-height:58px;border-radius:18px;background:#fff;color:#2a1830;font-size:1.1rem;font-weight:800;text-align:center}
@media (max-width:600px){.h2-hero.m5 .h2-btn-d{display:none}}
.h2-tiles.m5{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.h2-tiles.m5 .h2-tile{border-radius:20px;padding:14px;min-height:118px;text-decoration:none;color:var(--on-card)}
.h2-tiles.m5 .h2-tile-lg{background:linear-gradient(160deg,rgba(124,58,237,.12),rgba(255,255,255,.4))}
.h2-ringrow{display:flex;align-items:center;gap:6px;margin-top:6px}
.h2-ring{transform:rotate(-90deg);flex:none}
.h2-ring circle{fill:none;stroke-width:5}
.h2-ring .tr{stroke:rgba(31,143,67,.16)}
.h2-ring .fg{stroke:var(--ok-bar,#1f8f43);stroke-linecap:round;transition:stroke-dashoffset .8s ease}
.h2-ringrow .h2-ts{font-size:.72rem;line-height:1.15}
.h2-goal{position:relative;overflow:hidden}
.h2-ep-art.m5{position:relative;background:#3d2440;display:flex;align-items:center;justify-content:center}
.h2-ep-art.m5 .cast-pair{display:flex}
.h2-ep-art.m5 .cast-pair img{width:64px;height:64px;border:3px solid #fff;object-fit:cover}
.h2-ep-art.m5 .cast-pair img+img{margin-left:-18px}
.h2-ep-art.m5 .h2-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:#ff8a3d;color:#fff;display:grid;place-items:center;font-size:.8rem}
.h2-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:22px;text-decoration:none;color:var(--on-card)}
.h2-row-av{flex:0 0 52px;width:52px;height:52px;border-radius:50%}
.h2-row-av.ic{display:grid;place-items:center;background:var(--glass-2);font-size:1.4rem}
.h2-row-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.h2-row-b b{font-size:1.05rem;font-weight:800;line-height:1.25}
.h2-row-b>span{font-size:.86rem;color:var(--on-card-mut)}
.h2-row-go{font-size:1.6rem;font-weight:700;color:var(--on-card)}
.g5-guide.h2-row{margin:0}
.g5-shark-av{display:grid;place-items:center;background:linear-gradient(135deg,rgba(255,77,141,.16),rgba(124,58,237,.16))}
.g5-shark-av img{width:44px;height:44px;object-fit:contain}
.g5-guide .g5-k{font-size:.7rem}
.g5-guide .g5-b{font-size:.98rem;font-weight:700}
.g5-cta{margin-top:8px;display:flex}
.g5-cta .btn{border-radius:999px;min-height:40px;padding:0 18px}
.g5-weekcard{padding:14px 16px;border-radius:22px}
.g5-wh{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.g5-wh b{font-weight:800;font-size:1.02rem}
.g5-week-ol{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.g5-week-ol li{display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 0;border-radius:14px;background:var(--glass-2);border:1px solid var(--edge);font-size:.72rem;font-weight:700;color:var(--on-card-mut)}
.g5-week-ol li b{height:1.25em;font-size:1rem}
.g5-week-ol li.hit{background:rgba(255,138,61,.16);border-color:rgba(255,138,61,.45);color:#c2410c}
.g5-week-ol li.now{border:2px solid var(--hero,#d81b6b)}
.g5-week-ol li.fut{opacity:.5}
.g5-words{padding:14px 16px;border-radius:22px}
.g5-words .btn{border-radius:999px}
/* Mobile order: hero, tiles, episode, Dr. Brown, Steve, week, my words, path, read. */
@media (max-width:1099px){
  .h2-grid{display:flex;flex-direction:column;gap:14px}
  .h2-main,.h2-side{display:contents}
  .h2-main>*,.h2-side>*{order:20}.h2-grid .h2-hero{order:1}.h2-grid .h2-tiles{order:2}.h2-grid .h2-ep{order:3}.h2-grid .h2-brown{order:4}.h2-grid .g5-guide{order:5}.h2-grid .g5-weekcard{order:6}.h2-grid .g5-words{order:7}.h2-grid .h2-path{order:8}.h2-grid .h2-read{order:9}
}
@media (max-width:600px){
  .h2-top{flex-direction:row}
  .h2-top>div:first-child{order:2;flex:1;min-width:0}
  .h2-pills{display:contents}
  .h2-pills .h2-av{order:1;flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#2a1830;color:#fff;font-weight:800;font-size:1.15rem;text-decoration:none}
  .h2-pills .h2-pill.fire{order:3;align-self:center}
  .h2-top{display:flex;align-items:center;gap:12px}
  .h2-hi{font-size:1.5rem}
  .h2-tile .h2-tv{font-size:1.5rem}
}
/* ---------- Ruta ---------- */
.p2-cast{display:flex;align-items:center;gap:12px;margin:14px 0 0;padding:12px 14px;border-radius:18px;background:rgba(40,10,90,.35)}
.p2-cast p{margin:0;color:#fff;font-size:.92rem;line-height:1.35}
.cast-stack{display:flex;flex:none}
.cast-stack img.cast{width:42px;height:42px;border:2px solid #fff;margin-left:-10px}
.cast-stack img.cast:first-child{margin-left:0}
.p2-step.has-img .p2-ic{padding:0;overflow:hidden;border-radius:50%;border:3px solid #fff;background:#eee}
.p2-step.has-img .p2-ic img.cast{width:100%;height:100%}
@media (max-width:700px){.p2-step.has-img.k-ai .p2-ic{display:grid}}
/* ---------- Lesson scene + footer ---------- */
.dlg-av.has-img{padding:0;overflow:hidden;background:#eee}
.dlg-av.has-img img{width:100%;height:100%;object-fit:cover}
.sess-actions .hint-open{flex:0 0 auto;min-height:56px;border-radius:18px;padding:0 22px;font-weight:800}
.sess-actions .hint-open[hidden]{display:none}
.sess-actions:has(.hint-open:not([hidden])) .xp-spend{display:none}
.sess-actions.hint-on .xp-spend:not([hidden]){display:flex;flex:1 1 100%;order:-1;flex-direction:row;justify-content:space-between;padding:4px 4px 8px;border-bottom:1px solid var(--edge)}
.sess-actions.hint-on .xp-pill{min-height:46px;border-radius:999px}
.sess-actions:has(.hint-open:not([hidden])) ~ #xp-live,.sess-side:has(.hint-open:not([hidden])) #xp-live{display:none}
.sess-side:has(.sess-actions.hint-on) #xp-live:not([hidden]){display:block}
.sess-actions #check{border-radius:18px;min-height:56px;font-size:1.1rem}
/* ---------- Salas ---------- */
.s5-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:5px;margin:14px 0 4px;border-radius:999px;background:var(--glass-2);border:1px solid var(--edge);box-shadow:var(--sh-sm)}
.s5-seg>*{display:grid;place-items:center;min-height:44px;border:0;border-radius:999px;background:none;color:var(--on-card);font:inherit;font-weight:700;font-size:1rem;text-decoration:none;cursor:pointer}
.s5-seg .on{background:#fff;box-shadow:0 2px 8px rgba(40,10,50,.12)}
.s5-lvsel select{appearance:none;border:0;background:none;font:inherit;font-weight:800;color:inherit;padding:0 4px;cursor:pointer}
.g5-guided.s4-box{padding:20px 20px 22px;border-radius:26px;background:linear-gradient(160deg,rgba(255,77,141,.12),rgba(255,255,255,.55));border:1px solid rgba(255,255,255,.7)}
.g5-gh{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.g5-gk{margin:0;font-size:.76rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--hero,#d81b6b)}
.g5-when{font-weight:800;white-space:nowrap}
.g5-guided .g5-gt{margin:8px 0 6px;font-size:1.6rem;font-weight:800;letter-spacing:-.01em}
.g5-glead{margin:0 0 12px;color:var(--on-card-mut);line-height:1.45}
.g5-ppl{display:flex;align-items:center;margin-bottom:14px}
.g5-ppl i{width:40px;height:40px;margin-left:-8px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:.85rem;border:2px solid #fff;background:hsl(calc(var(--i) * 70 + 330) 80% 90%);color:#6b1d3d}
.g5-ppl i:first-child{margin-left:0}
.g5-ppl span{margin-left:10px;font-weight:700;color:var(--on-card-mut)}
.g5-gctl{display:flex;flex-direction:column;gap:8px}
.g5-gctl .btn{width:100%;min-height:56px;border-radius:18px;font-size:1.08rem}
.g5-joined{margin:0 0 10px;color:var(--ok);font-weight:700;font-size:.88rem}
.g5-more{margin-top:10px}.g5-more summary{cursor:pointer;font-weight:700}
.g5-guided .g5-tz{margin-top:8px}
.s5-games .s5-chips{display:flex;flex-wrap:wrap;gap:10px}
.s5-chips button{padding:10px 18px;border-radius:999px;border:1px solid var(--edge);background:var(--glass-2);color:var(--on-card);font:inherit;font-weight:700;cursor:pointer;box-shadow:var(--sh-sm)}
.s4-practice img.s4-ic{flex:0 0 52px;width:52px;height:52px;border:0;padding:0}
@media (max-width:600px){
  .salas-shell .salas-rail{display:none}
  .s4-head .s4-sub{display:none}
  .s4-grid{display:flex;flex-direction:column}
  .s4-col,.s4-side{display:contents}
  .s4-col>*,.s4-side>*{order:9}.s4-grid .g5-guided{order:1}.s4-grid .s4-hero{order:2}.s4-grid .sala-list{order:3}.s4-grid .s4-practice{order:4}.s4-grid .s5-games{order:5}
  #sala-search,#sala-voice-title{display:none}
  .s4-hero{display:none}
  .s4-practice{flex-wrap:nowrap}
  .s4-practice img.s4-ic{display:block}
  .s4-practice .s4-go{margin-left:auto;border-radius:16px;padding:12px 18px}
}
/* ---------- Luisa video ---------- */
.lu-player{position:relative}
.lu-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border:0;padding:0;cursor:pointer;background:#2a1838}
.lu-faces{display:flex;gap:28px}
.lu-faces img{width:min(34vw,140px);height:min(34vw,140px);border-radius:50%;object-fit:cover;background:#ccc}
.lu-playbtn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.28);border:1px solid rgba(255,255,255,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* ---------- Dark ---------- */
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){
  .h2-quote{background:rgba(255,255,255,.95)}
  .s5-seg .on{background:rgba(255,255,255,.16);box-shadow:none}
  .g5-guided.s4-box{background:linear-gradient(160deg,rgba(255,77,141,.18),rgba(255,255,255,.04));border-color:var(--edge)}
  .g5-ppl i{border-color:#2a1830}
  .g5-week-ol li.hit{color:#ffc08f}
}}
:root[data-theme=dark] .s5-seg .on{background:rgba(255,255,255,.16);box-shadow:none}
:root[data-theme=dark] .g5-guided.s4-box{background:linear-gradient(160deg,rgba(255,77,141,.18),rgba(255,255,255,.04));border-color:var(--edge)}
:root[data-theme=dark] .g5-week-ol li.hit{color:#ffc08f}
