/* ElosPlay V5.3 — Memória Visual. Estilo isolado da mecânica para não afetar outros jogos. */
.ep53-game{--ep53-ink:#12394a;--ep53-teal:#088d82;--ep53-muted:#567b86;--ep53-line:#d8e8ec;color:var(--ep53-ink);background:radial-gradient(circle at 84% 0%,#dff8f3,transparent 38%),#f3f9fb;min-height:100vh;font-family:inherit}
.ep53-game *{box-sizing:border-box}.ep53-game button,.ep53-game select,.ep53-game textarea{font:inherit}
.ep53-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px clamp(16px,3vw,38px);min-height:62px;background:#fff;border-bottom:1px solid var(--ep53-line)}
.ep53-brand{display:flex;align-items:center;gap:9px;min-width:0;font-size:18px}.ep53-brand img{width:35px;height:35px}.ep53-brand strong{font-weight:900}.ep53-brand span{font-size:13px;color:#648691;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ep53-mode{white-space:nowrap;background:#ddf7ef;border:1px solid #b7e8dc;color:#0d756b;padding:9px 14px;font-weight:800;font-size:12px;border-radius:90px}
.ep53-body{max-width:1490px;margin:0 auto;padding:clamp(14px,2.3vw,32px)}.ep53-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.ep53-heading>div>span{color:#098c82;font-size:11px;font-weight:900;letter-spacing:.11em}.ep53-heading h1{font-size:clamp(25px,2.7vw,38px);line-height:1.15;letter-spacing:-.03em;margin:6px 0}.ep53-heading p{font-size:14px;color:var(--ep53-muted);margin:0}.ep53-state-tag{border-radius:80px;padding:9px 13px;background:#e2f5ef;color:#08756e;font-weight:800;font-size:12px;white-space:nowrap}
.ep53-progress{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--ep53-line);box-shadow:0 6px 23px #14616b08;border-radius:17px;padding:15px 18px;margin-bottom:16px}.ep53-progress strong{font-size:15px;white-space:nowrap}.ep53-progress>div{flex:1;min-width:30px;border-radius:60px;height:9px;overflow:hidden;background:#e6eff1}.ep53-progress>div>span{display:block;border-radius:inherit;height:100%;background:linear-gradient(90deg,#16b7aa,#087d76)}.ep53-progress small{font-size:12px;font-weight:800;color:#577786;white-space:nowrap}
.ep53-layout{display:grid;grid-template-columns:minmax(0,1.34fr) minmax(260px,.66fr);gap:17px;align-items:stretch}.ep53-board-panel,.ep53-side{border:1px solid var(--ep53-line);border-radius:23px;min-width:0;box-shadow:0 12px 30px #1750630c}.ep53-board-panel{background:linear-gradient(130deg,#e6f7f7,#f9fdfb);padding:clamp(15px,2vw,27px)}.ep53-side{background:#fff;padding:clamp(17px,2vw,26px);display:flex;flex-direction:column;gap:14px}.ep53-panel-title{letter-spacing:.09em;font-size:11px;font-weight:900;color:#0c827b;margin-bottom:13px}
.ep53-deck{--ep53-cols:3;display:grid;grid-template-columns:repeat(var(--ep53-cols),minmax(0,1fr));gap:clamp(7px,1vw,14px);margin:0 auto;max-width:770px;align-content:center}.ep53-card{min-width:0;aspect-ratio:1.13;border:2px solid #b5d6df;border-radius:17px;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 7px 13px #0b50661b;background:#fff;transition:transform .14s ease,border-color .15s ease,box-shadow .15s ease}
.ep53-card:focus-visible{outline:3px solid #007e73;outline-offset:3px}.ep53-card:not(:disabled):hover{transform:translateY(-3px);border-color:#27b1a6;box-shadow:0 10px 16px #0b50662a}.ep53-card:disabled{cursor:default}.ep53-card-back,.ep53-card-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .17s ease}.ep53-card-back{background:linear-gradient(150deg,#078a8b,#17677c);color:white;opacity:1}.ep53-card-back::before{content:"";position:absolute;inset:8px;border:1px solid #c1f3e85c;border-radius:11px}.ep53-card-shape{font-size:clamp(35px,4vw,60px);line-height:1;color:#aef3e6;filter:drop-shadow(0 2px 8px #033d4460)}.ep53-card-back small{position:absolute;bottom:11px;font-size:11px;opacity:.85;font-weight:800}.ep53-card-face{opacity:0;background:#fff;padding:8px 4px;gap:4px}.ep53-card-face img{object-fit:contain;width:82%;max-height:74%;height:auto;border-radius:9px}.ep53-card-face strong{font-weight:800;font-size:clamp(11px,1.1vw,14px);color:#15505c;line-height:1.15}.ep53-card.is-open .ep53-card-back{opacity:0}.ep53-card.is-open .ep53-card-face{opacity:1}.ep53-card.is-matched{border-color:#17ab8c;box-shadow:0 0 0 2px #b1f0d3;opacity:.97}.ep53-match-check{position:absolute;right:5px;top:5px;border-radius:50%;background:#11897a;color:white;width:25px;height:25px;display:grid;place-items:center;font-size:16px;font-weight:900;box-shadow:0 3px 8px #0a6f65a0}
.ep53-board-hint{font-size:13px;line-height:1.55;text-align:center;color:#527783;margin:15px auto 0;max-width:700px}.ep53-side-stat{border:1px solid #d8e8eb;padding:13px 15px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ep53-side-stat span{font-size:13px;color:#517583}.ep53-side-stat strong{font-size:20px}.ep53-feedback{background:#e8f8f5;border-radius:13px;padding:13px 15px;color:#086d65;font-weight:750;line-height:1.5;font-size:13px;margin:0}.ep53-help{color:#6a8691;font-size:12px;line-height:1.6;background:#f4fafb;padding:14px;border-radius:12px}
.ep53-observe{border-top:1px solid #dfeef0;padding-top:14px}.ep53-observe-title{display:flex;flex-direction:column;gap:4px;margin-bottom:11px}.ep53-observe-title b{font-size:14px}.ep53-observe-title small{font-size:12px;color:#5c7e8c}.ep53-observe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ep53-observe-grid button{background:#f8fcfd;border:1px solid #bedae0;border-radius:11px;color:#154d5b;padding:11px 6px;font-size:12px;font-weight:800;min-height:44px;cursor:pointer}.ep53-observe-grid button:not(:disabled):hover,.ep53-observe-grid button:focus-visible{background:#e1f8f1;outline:2px solid #61bbaf}.ep53-observe-grid button:disabled{opacity:.45;cursor:default}.ep53-observe-foot{margin-top:11px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;color:#5a7b86;font-size:11px;line-height:1.4}.ep53-observe-foot .button{font-size:11px;padding:9px;min-height:40px;white-space:normal}
.ep53-physical-display{margin:0 auto;min-height:330px;max-width:520px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}.ep53-physical-display h2{font-size:22px;margin:14px 0 7px}.ep53-physical-display p{font-size:13px;color:#5e7f89;line-height:1.5;margin:0 0 13px}.ep53-physical-art{display:flex;align-items:center;justify-content:center;gap:12px}.ep53-physical-art span{width:77px;height:94px;border:3px solid #ddf4f1;border-radius:13px;box-shadow:0 8px 15px #0e757527;display:grid;place-items:center;background:linear-gradient(130deg,#129b91,#1c7385);color:white;font-size:37px}.ep53-physical-art span:nth-child(2){transform:translateY(-9px);background:linear-gradient(120deg,#eec96a,#e79d5a)}.ep53-physical-art span:nth-child(3){background:linear-gradient(140deg,#9380c5,#5f71b7)}.ep53-physical-display details{width:100%;max-width:360px;padding:10px 13px;background:#fff;border-radius:12px;border:1px solid #c9e3e4;text-align:left}.ep53-physical-display summary{cursor:pointer;font-size:13px;font-weight:800;color:#0b7772}.ep53-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.ep53-references span{display:flex;align-items:center;gap:4px;min-width:0;color:#244e5b;font-size:12px;font-weight:800;background:#f4fafb;padding:6px;border-radius:8px}.ep53-references img{width:45px;height:35px;object-fit:contain}
.ep53-state{min-height:335px;background:linear-gradient(130deg,#e4faf5,#fff);border:1px solid var(--ep53-line);border-radius:23px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.ep53-state-icon{width:115px;height:115px;background:#fff;border:7px solid #d9f6ee;display:grid;place-items:center;border-radius:50%;font-weight:900;font-size:67px;color:#09958b;box-shadow:0 8px 24px #127a771c;margin-bottom:15px}.ep53-state .ep53-prep{font-size:43px}.ep53-state h2{font-size:26px;margin:0 0 9px}.ep53-state p{font-size:14px;line-height:1.6;color:#5b7e87;max-width:480px;margin:0 0 18px}.ep53-state .button{min-height:48px;padding:12px 24px}
.ep53-controls{display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;margin:18px 0}.ep53-controls .button{min-height:44px;padding:10px 20px}.ep53-clinical{border:1px solid #c4e5e0;border-radius:13px;background:#eaf7f4;padding:0 15px}.ep53-clinical summary{display:flex;gap:10px;justify-content:space-between;cursor:pointer;font-weight:850;padding:16px 0;font-size:14px}.ep53-clinical summary small{color:#62848b;font-weight:500}.ep53-clinical-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:13px;padding:3px 0 16px}.ep53-clinical-grid label{font-size:12px;font-weight:750;display:flex;flex-direction:column;gap:7px}.ep53-clinical-grid select,.ep53-clinical-grid textarea{background:#fff;border:1px solid #c1dce0;border-radius:10px;padding:9px 12px;min-height:44px;width:100%;color:#143b4a}
.ep53-config{padding:12px 15px;border:1px solid #d0e7e3;border-radius:12px}.ep53-config legend{font-weight:900;color:#145c64;padding:0 8px}.ep53-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ep53-config label{display:flex;flex-direction:column;gap:6px}.ep53-config small{display:block;color:#65808b;margin-top:10px;line-height:1.5;font-size:12px}
.ep53-game.calm *, .ep53-game.calm *::before,.ep53-game.calm *::after{animation:none!important;transition:none!important}.ep53-game.high-contrast{background:#fff}.ep53-game.high-contrast .ep53-card{border-color:#164154}.ep53-game.high-contrast .ep53-card-back{background:#034858}
@media(max-width:1100px){.ep53-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.75fr)}.ep53-board-panel,.ep53-side{padding:14px}.ep53-deck{gap:8px}.ep53-config-grid{grid-template-columns:1fr}}
@media(max-width:750px){.ep53-body{padding:13px}.ep53-bar{padding:10px 13px}.ep53-brand span{display:none}.ep53-heading{align-items:flex-start;flex-direction:column;gap:8px}.ep53-progress{flex-wrap:wrap;gap:9px;padding:12px}.ep53-progress>div{order:3;flex-basis:100%}.ep53-layout{grid-template-columns:1fr}.ep53-side{gap:11px}.ep53-deck{max-width:640px}.ep53-clinical-grid{grid-template-columns:1fr}}
@media(max-width:440px){.ep53-body{padding:10px}.ep53-board-panel,.ep53-side{padding:11px;border-radius:16px}.ep53-deck{gap:6px}.ep53-card{border-radius:11px}.ep53-card-back::before{inset:4px;border-radius:8px}.ep53-card-face{padding:4px 2px}.ep53-card-face strong{font-size:10px}.ep53-match-check{width:21px;height:21px;font-size:13px}.ep53-panel-title{margin-bottom:10px}.ep53-state{min-height:285px;padding:16px}.ep53-state h2{font-size:21px}.ep53-state p{font-size:13px}.ep53-state-icon{width:93px;height:93px;font-size:57px}.ep53-heading h1{font-size:26px}.ep53-progress small{white-space:normal}.ep53-controls .button{flex:1;font-size:12px;padding:9px}.ep53-card-shape{font-size:31px}}
@media(max-width:350px){.ep53-body{padding:8px}.ep53-brand strong{font-size:15px}.ep53-mode{font-size:10px;padding:7px 9px}.ep53-deck{gap:4px}.ep53-card-face strong{font-size:9px}.ep53-observe-grid{gap:5px}.ep53-observe-grid button{font-size:11px}}

@media(max-width:440px){.ep53-physical-display{min-height:250px}.ep53-physical-art span{width:58px;height:75px;font-size:30px}.ep53-physical-display h2{font-size:19px}}
/* Alvos amplos no celular, inclusive no nível avançado com cinco pares. */
@media(max-width:440px){.ep53-deck{grid-template-columns:repeat(3,minmax(0,1fr))}}
