/* Una Puerta — tira de teatro */
.strip-item[data-strip-type="teatro"]{
  cursor:pointer;
  touch-action:pan-x;
  color:#f9e9fa;
  border-color:rgba(229,183,225,.27);
  background:linear-gradient(125deg,rgba(189,127,178,.18),rgba(130,98,180,.1));
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.strip-item[data-strip-type="teatro"]:hover,
.strip-item[data-strip-type="teatro"]:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(253,206,227,.54);
  background:linear-gradient(125deg,rgba(212,145,202,.28),rgba(151,108,196,.2));
  box-shadow:0 0 14px rgba(224,161,219,.13);
}
.strip-item[data-strip-type="teatro"]:focus-visible{outline:2px solid #e8b6ec;outline-offset:2px}

#theaterPracticeDialog.modal{
  box-sizing:border-box;
  overflow:hidden;
  padding:14px;
  background:rgba(10,7,20,.68);
  backdrop-filter:none;
}
#theaterPracticeDialog::backdrop{background:rgba(8,6,15,.65);backdrop-filter:blur(5px)}
#theaterPracticeDialog[open]{display:grid;place-items:center}
#theaterPracticeDialog .theater-card{
  box-sizing:border-box;
  width:min(700px,calc(100vw - 28px));
  margin:0;
  max-height:calc(100dvh - 28px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:24px;
  border:1px solid rgba(234,185,222,.24);
  border-radius:30px;
  color:#f9f3fc;
  background:radial-gradient(ellipse 260px 140px at 95% 0%,rgba(178,114,178,.17),transparent 90%),
    linear-gradient(155deg,#2b2036 0%,#1e172b 50%,#171223 100%);
  box-shadow:0 28px 92px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.08);
}
.theater-heading{display:flex;align-items:center;gap:15px;padding-right:42px;margin-bottom:14px}
.theater-logo{
  flex:0 0 auto;display:grid;place-items:center;
  width:56px;height:56px;border-radius:19px;
  font-size:29px;line-height:1;
  background:linear-gradient(145deg,rgba(246,197,229,.16),rgba(177,132,194,.08));
  border:1px solid rgba(255,220,242,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.theater-eyebrow{display:block;margin:0 0 3px;color:#d6aad7;font-size:.68rem;letter-spacing:.15em;font-weight:750;text-transform:uppercase}
#theaterPracticeDialog .theater-heading h2{margin:0;font:500 clamp(1.55rem,3.4vw,2.12rem)/1.13 Georgia,'Times New Roman',serif;letter-spacing:.01em}
.theater-intro{font-size:.91rem;color:#c4b9ce;line-height:1.55;margin:0 0 15px}
.theater-categories{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x;padding:2px 0 8px;margin-bottom:10px}
.theater-categories::-webkit-scrollbar{display:none}
.theater-category{
  flex:0 0 auto;min-height:35px;padding:7px 9px;border:1px solid rgba(225,204,236,.16);border-radius:999px;
  background:rgba(255,255,255,.046);color:#e1d8e9;cursor:pointer;font-size:.76rem;font-weight:600;line-height:1.2;font-family:inherit;
  transition:background .18s,border-color .18s,transform .18s;
}
.theater-category:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.theater-category.is-active{background:rgba(217,162,222,.2);color:#fff1ff;border-color:rgba(246,198,247,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.075)}
.theater-category:focus-visible,.theater-again:focus-visible{outline:2px solid #e6baee;outline-offset:2px}
.theater-prompt{
  position:relative;overflow:hidden;
  border:1px solid rgba(221,185,219,.22);border-radius:23px;
  padding:19px 21px 18px;
  background:radial-gradient(circle at 100% 0%,rgba(241,194,214,.07),transparent 38%),linear-gradient(150deg,rgba(255,255,255,.085),rgba(255,255,255,.028));
}
.theater-prompt::before{content:'“';position:absolute;right:15px;top:0;font:100px/1 Georgia,serif;color:rgba(246,209,246,.06);pointer-events:none}
.theater-type{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;color:#eed1ef;font-size:.68rem;text-transform:uppercase;font-weight:750;letter-spacing:.115em}
.theater-type::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#e9badf;box-shadow:0 0 7px rgba(233,185,223,.7)}
#theaterPracticeDialog .theater-prompt h3{position:relative;margin:0 0 11px;color:#fff8fc;font:500 clamp(1.2rem,3vw,1.48rem)/1.25 Georgia,serif}
.theater-script{position:relative;white-space:pre-line;line-height:1.66;letter-spacing:.005em;color:#f7eff8;font-size:clamp(.97rem,2.6vw,1.07rem);margin:0;min-height:68px}
.theater-stage-direction{display:flex;gap:9px;align-items:flex-start;margin:16px 0 0;padding-top:12px;border-top:1px solid rgba(245,224,246,.12);color:#c9b9d0;font-size:.84rem;line-height:1.5}
.theater-stage-direction::before{content:'✦';color:#e6b4d9;flex:0 0 auto}
.theater-prompt-in{animation:theaterReappear .28s cubic-bezier(.2,.8,.2,1) both}
@keyframes theaterReappear{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.theater-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:15px}
.theater-hint{color:#9e91ae;font-size:.78rem;line-height:1.4;margin:0}
.theater-again{flex:0 0 auto;min-height:40px;padding:9px 15px;border-radius:14px;border:1px solid rgba(237,202,232,.36);background:linear-gradient(135deg,rgba(212,161,217,.22),rgba(160,119,188,.16));color:#fff1fb;cursor:pointer;font-weight:700;font-size:.86rem;transition:filter .18s,transform .18s}
.theater-again:hover{filter:brightness(1.16);transform:translateY(-1px)}
@media(max-width:600px){
  #theaterPracticeDialog.modal{padding:10px}
  #theaterPracticeDialog .theater-card{width:calc(100vw - 20px);padding:18px 16px 16px;border-radius:25px;max-height:calc(100dvh - 20px)}
  .theater-heading{gap:11px;margin-bottom:11px}
  .theater-logo{width:47px;height:47px;border-radius:15px;font-size:25px}
  .theater-intro{font-size:.84rem;margin-bottom:11px}
  .theater-categories{flex-wrap:nowrap;overflow-x:auto}
  .theater-prompt{padding:16px 16px 15px;border-radius:19px}
  .theater-footer{align-items:flex-end;gap:9px}
  .theater-hint{font-size:.73rem}
  .theater-again{min-height:39px}
}
@media(max-height:560px){
  #theaterPracticeDialog .theater-card{padding:16px}
  .theater-heading{margin-bottom:8px}
  .theater-intro{margin-bottom:8px}
  .theater-prompt{padding:13px}
  .theater-footer{margin-top:9px}
}
@media(prefers-reduced-motion:reduce){
  .strip-item[data-strip-type="teatro"],.theater-category,.theater-again{transition:none}
  .theater-prompt-in{animation:none}
}

/* Icono oficial de Teatro: tres máscaras doradas */
.theater-emblem{display:inline-block;width:32px;height:24px;object-fit:contain;vertical-align:middle;flex:none;pointer-events:none}
.strip-item[data-strip-type="teatro"]{display:inline-flex;align-items:center;gap:5px}
.strip-item[data-strip-type="teatro"] .theater-emblem{width:31px;height:23px;margin-right:1px}
.strip-item[data-strip-type="teatro"] span{white-space:nowrap}
.strip-item[data-strip-type="teatro"].strip-ghost .theater-emblem{width:31px;height:23px}
.catalog-option .theater-emblem{width:32px;height:23px;margin-right:2px}
.reward-strip-icon .theater-emblem{width:78px;height:60px}
.theater-logo .theater-emblem{width:47px;height:38px;filter:drop-shadow(0 2px 5px rgba(255,191,83,.17))}
.theater-category .theater-emblem{width:24px;height:18px;margin-right:3px}
@media(max-width:600px){.theater-logo .theater-emblem{width:39px;height:32px}.strip-item[data-strip-type="teatro"] .theater-emblem{width:29px;height:21px}}
