.einstein-shell{
  --e-bg:#0a121d;
  --e-panel:#0f1a28;
  --e-panel-2:#142234;
  --e-line:#2a3a50;
  --e-line-strong:#40536d;
  --e-text:#e7eef8;
  --e-muted:#8292a8;
  --e-accent:#14b8a6;
  --e-accent-2:#67e8f9;
  --e-yes:#2dd4bf;
  --e-no:#fb7185;
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  gap:14px;
}

.einstein-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.einstein-stat{min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 11px;border:1px solid var(--e-line);border-radius:12px;background:linear-gradient(180deg,#111d2c,#0c1622)}
.einstein-stat span{color:#70839a;font-size:.56rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.einstein-stat strong{color:#e8f0fa;font-size:.75rem;font-weight:900;white-space:nowrap}
.einstein-stat.is-error{border-color:#9f3148;background:#32151f}.einstein-stat.is-error strong{color:#fecdd3}
.einstein-stat.is-success{border-color:#147a6d;background:#0d2c2a}.einstein-stat.is-success strong{color:#99f6e4}

.einstein-workspace{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.8fr);gap:14px;align-items:start}
.einstein-board-column{min-width:0;display:grid;gap:12px}
.einstein-clues,.einstein-house-board,.einstein-deduction{border:1px solid var(--e-line);border-radius:18px;background:linear-gradient(155deg,#101b2a,#09111c);box-shadow:0 16px 42px #0004,inset 0 1px #ffffff0b}
.einstein-clues{position:sticky;top:96px;overflow:hidden;max-height:calc(100vh - 116px);display:grid;grid-template-rows:auto minmax(0,1fr)}
.einstein-panel-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid #26374d}
.einstein-panel-head>div{display:grid;gap:2px}.einstein-panel-head span{color:#5eead4;font-size:.52rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.einstein-panel-head strong{color:#e4edf8;font-size:.78rem}.einstein-panel-head>b{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:999px;background:#113b38;color:#99f6e4;font-size:.68rem}
.einstein-clue-list{overflow:auto;display:grid;gap:6px;padding:8px;scrollbar-width:thin}
.einstein-clue{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) 20px;gap:8px;align-items:start;padding:9px;border:1px solid #223449;border-radius:11px;background:#0c1724;color:inherit;text-align:left;cursor:pointer;transition:.12s ease}.einstein-clue:hover{border-color:#3d526c;background:#111f30}
.einstein-clue-number{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#17263a;color:#7dd3fc;font:.82rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:900}
.einstein-clue-copy{display:grid;gap:3px}.einstein-clue-copy small{color:#60758e;font-size:.5rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.einstein-clue-copy strong{color:#cad8e8;font-size:.68rem;line-height:1.4;font-weight:720}.einstein-clue-check{color:#5eead4;font-size:.88rem;font-weight:900;text-align:center;padding-top:4px}
.einstein-clue.is-used{opacity:.6;background:#0b151f}.einstein-clue.is-done{border-color:#1d665f}.einstein-clue.is-done .einstein-clue-number{background:#0f3a35;color:#5eead4}.einstein-clue.is-violated{border-color:#9f3148;background:#32151f}.einstein-clue.is-violated .einstein-clue-copy strong{color:#fecdd3}

.einstein-house-board{min-width:0;padding:12px;display:grid;gap:11px}.einstein-house-board.has-contradiction{border-color:#9f3148;box-shadow:0 16px 42px #0004,inset 0 0 0 1px #fb718533}
.einstein-board-head{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:1px 2px}.einstein-board-head>div{display:grid;gap:2px}.einstein-board-head span{color:#5eead4;font-size:.52rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.einstein-board-head strong{color:#eef6ff;font-size:.9rem}.einstein-board-head p{max-width:360px;margin:0;color:#667991;font-size:.61rem;line-height:1.45;text-align:right}

.einstein-order-guide{display:grid;gap:7px;padding:10px 11px;border:1px solid #29425b;border-radius:13px;background:linear-gradient(135deg,#0d1b2a,#102633)}
.einstein-order-caption{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;color:#71859c;font-size:.5rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.einstein-order-caption span:last-child{text-align:right}.einstein-order-caption strong{color:#a7f3d0;font-size:.57rem;white-space:nowrap}
.einstein-order-track{display:flex;align-items:center;justify-content:space-between;gap:5px;overflow:hidden}
.einstein-order-node{min-width:37px;display:grid;justify-items:center;gap:2px}.einstein-order-node b{display:grid;place-items:center;width:31px;height:31px;border:1px solid #3b5b73;border-radius:999px;background:#13283a;color:#e0f2fe;font:900 .74rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;box-shadow:inset 0 0 0 1px #ffffff08}.einstein-order-node small{max-width:55px;color:#6d8299;font-size:.45rem;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.einstein-order-track i{color:#2dd4bf;font-style:normal;font-weight:900;font-size:.72rem}.einstein-order-guide p{margin:0;color:#61758c;font-size:.54rem;line-height:1.35;text-align:center}

.einstein-house-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding:1px 1px 5px;scrollbar-width:thin;scroll-snap-type:x proximity}.einstein-houses{min-width:max-content;display:grid;grid-template-columns:repeat(var(--house-count),minmax(165px,1fr));gap:8px}
.einstein-house-card{width:clamp(165px,17vw,205px);min-width:0;overflow:hidden;border:1px solid #30445d;border-radius:15px;background:linear-gradient(180deg,#14253a,#0c1724 34%);scroll-snap-align:start}.einstein-house-card>header{min-height:60px;display:flex;align-items:center;gap:9px;padding:10px 11px;border-bottom:1px solid #2b3d53;background:linear-gradient(135deg,#17314a,#113036)}
.einstein-house-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#0e1722;border:1px solid #3a526d;color:#67e8f9;font-size:1.15rem}.einstein-house-card>header>div{display:grid;gap:1px}.einstein-house-card header small{color:#6f849b;font-size:.5rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.einstein-house-card header strong{color:#f0f7ff;font-size:.78rem}
.einstein-house-field{display:grid;gap:5px;padding:9px 10px;border-bottom:1px solid #1f3043}.einstein-house-field:last-child{border-bottom:0}.einstein-house-field>span{display:flex;align-items:center;gap:5px;color:#72869d;font-size:.52rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.einstein-house-field>span b{color:#67e8f9;font-size:.68rem;line-height:1}
.einstein-house-select{width:100%;min-width:0;height:36px;padding:0 28px 0 9px;border:1px solid #334b65;border-radius:9px;background:#101d2b;color:#dce8f5;font-size:.68rem;font-weight:760;outline:0}.einstein-house-select:focus{border-color:#2dd4bf;box-shadow:0 0 0 2px #2dd4bf22}.einstein-house-select option:disabled{color:#58687b}

.einstein-progress{display:flex;align-items:center;gap:10px;padding:0 2px}.einstein-progress>div{flex:1;height:6px;border-radius:999px;background:#142235;overflow:hidden}.einstein-progress>div>span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#14b8a6,#22d3ee);transition:width .18s ease}.einstein-progress small{color:#6f8198;font-size:.55rem;font-weight:800;white-space:nowrap}
.einstein-house-board .game-board-tools{margin-top:0}.einstein-session-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.einstein-session-actions .game-action{width:100%;min-height:41px}.einstein-session-actions .game-action--primary{background:linear-gradient(135deg,#0f766e,#0891b2);border-color:#2dd4bf}

.einstein-deduction{overflow:hidden}.einstein-deduction>summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;list-style:none}.einstein-deduction>summary::-webkit-details-marker{display:none}.einstein-deduction>summary>span{display:flex;align-items:center;gap:10px}.einstein-deduction>summary>span>b{display:grid;place-items:center;width:32px;height:32px;border:1px solid #33506c;border-radius:9px;background:#122338;color:#67e8f9}.einstein-deduction>summary>span>span{display:grid;gap:2px}.einstein-deduction summary small{color:#5eead4;font-size:.5rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.einstein-deduction summary strong{color:#dbe7f4;font-size:.74rem}.einstein-deduction summary em{color:#72849a;font-size:.58rem;font-style:normal;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.einstein-deduction[open] summary{border-bottom:1px solid #25374c}.einstein-deduction[open] summary em{font-size:0}.einstein-deduction[open] summary em::after{content:'Cerrar';font-size:.58rem}
.einstein-deduction-body{display:grid;gap:10px;padding:10px}.einstein-category-tabs{display:flex;gap:6px;overflow:auto;padding-bottom:2px;scrollbar-width:none}.einstein-category-tabs::-webkit-scrollbar{display:none}.einstein-category-tabs button{flex:0 0 auto;min-height:34px;padding:0 10px;border:1px solid #30445c;border-radius:999px;background:#101c2b;color:#8090a4;font-size:.59rem;font-weight:850;cursor:pointer}.einstein-category-tabs button.is-active{border-color:#2dd4bf;background:#103732;color:#99f6e4;box-shadow:inset 0 0 0 1px #2dd4bf22}
.einstein-matrix-scroll{width:100%;overflow:auto;border:1px solid #31455d;border-radius:12px;background:#0a121c;scrollbar-width:thin}.einstein-matrix{display:grid;width:max(100%,420px);min-width:max-content;gap:1px;background:#30435a}.einstein-matrix-corner,.einstein-matrix-col,.einstein-matrix-row{min-height:42px;display:grid;place-items:center;padding:5px 6px;background:#162335;color:#c9d7e7;font-size:.58rem;font-weight:850;text-align:center}.einstein-matrix-corner{position:sticky;left:0;top:0;z-index:5;justify-items:start;background:#1a2a3e;color:#67e8f9}.einstein-matrix-col{position:sticky;top:0;z-index:3;background:#17283a}.einstein-matrix-row{position:sticky;left:0;z-index:2;justify-items:start;background:#142235;text-align:left}
.einstein-relation{min-width:42px;min-height:42px;border:0;border-radius:0;background:#0f1a29;color:#52667f;cursor:pointer;display:grid;place-items:center;font:900 1.02rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;transition:.1s ease}.einstein-relation:hover{background:#183149;box-shadow:inset 0 0 0 2px #ffffff18}.einstein-relation.state-no{background:#271722;color:#fb7185}.einstein-relation.state-yes{background:#0e302e;color:#5eead4;text-shadow:0 0 16px #2dd4bf55}.einstein-relation:focus-visible{outline:3px solid #dff6ff;outline-offset:-3px;z-index:5}.einstein-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;color:#73859b;font-size:.56rem}.einstein-legend span{display:flex;align-items:center;gap:5px}.einstein-legend b{display:grid;place-items:center;width:20px;height:20px;border:1px solid #34485f;border-radius:5px;background:#101e2e;color:#d8e6f5;font-size:.7rem}.einstein-legend small{margin-left:auto;color:#5d6f84;font-size:.53rem}

@media(max-width:900px){.einstein-workspace{grid-template-columns:1fr}.einstein-clues{position:static;max-height:none}.einstein-clue-list{max-height:300px}}
@media(max-width:650px){
  .einstein-shell{gap:10px}.einstein-hud{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.einstein-stat{min-height:40px;padding:6px 7px;border-radius:9px;gap:5px;flex-direction:column}.einstein-stat span{font-size:.48rem}.einstein-stat strong{font-size:.67rem}.einstein-clues,.einstein-house-board,.einstein-deduction{border-radius:14px}.einstein-clue-list{max-height:255px}.einstein-house-board{padding:9px;gap:9px}.einstein-board-head{align-items:flex-start;flex-direction:column;gap:3px}.einstein-board-head p{text-align:left;font-size:.56rem}
  .einstein-order-guide{padding:8px 7px;gap:6px}.einstein-order-caption{font-size:.45rem;gap:4px}.einstein-order-caption strong{font-size:.51rem}.einstein-order-track{gap:2px}.einstein-order-node{min-width:29px}.einstein-order-node b{width:27px;height:27px;font-size:.66rem}.einstein-order-node small{display:none}.einstein-order-track i{font-size:.6rem}.einstein-order-guide p{font-size:.49rem}
  .einstein-houses{grid-template-columns:repeat(var(--house-count),minmax(78vw,78vw));gap:7px}.einstein-house-card{width:78vw;max-width:310px}.einstein-house-card>header{min-height:56px}.einstein-house-field{grid-template-columns:84px minmax(0,1fr);align-items:center;gap:7px;padding:8px 9px}.einstein-house-select{height:38px;font-size:.72rem}.einstein-session-actions{gap:5px}.einstein-session-actions .game-action{min-height:39px;padding:0 6px;font-size:.68rem}.einstein-deduction-body{padding:8px}.einstein-matrix{width:max(100%,390px)}.einstein-matrix-corner,.einstein-matrix-col,.einstein-matrix-row{min-height:39px;font-size:.54rem}.einstein-relation{min-width:39px;min-height:39px;font-size:.95rem}.einstein-legend small{width:100%;margin-left:0}
}
@media(max-width:410px){.einstein-houses{grid-template-columns:repeat(var(--house-count),minmax(82vw,82vw))}.einstein-house-card{width:82vw}.einstein-session-actions{grid-template-columns:1fr 1fr}.einstein-session-actions .game-action--primary{grid-column:1/-1}.einstein-order-guide p{display:none}}
@media(prefers-reduced-motion:reduce){.einstein-clue,.einstein-progress>div>span,.einstein-relation{transition:none}}
