.dialog.ep-dialog{--paper:#ecf1e9;--ink:#122732;--line:#435864;--accent:#92dbd1;--night:#122531;background:#162935;color:#f6f1df;border:1px solid #68838a;box-shadow:0 16px 90px #0009;padding:0;max-width:min(980px,95vw);width:100%;overflow:auto;overscroll-behavior:contain}
[data-planet=mars] .dialog.ep-dialog{--accent:#ffb47e;--night:#332a29;background:#302a2b;border-color:#907c6e}
.ep-dialog #dialogBody{padding:0}.ep-dialog h2,.ep-dialog h3{line-height:1.06;letter-spacing:-.035em;margin:0;color:#fff7e8}.ep-dialog h2{font-size:clamp(25px,4vw,39px)}.ep-dialog h3{font-size:clamp(22px,3vw,35px)}
.ep-mast{padding:20px 58px 17px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.ep-over{font:700 11px/1.3 ui-monospace,monospace;letter-spacing:.115em;color:var(--accent);display:block;margin:0 0 6px;text-transform:uppercase}
.ep-name,.ep-repeat,.ep-acts button,.ep-choice,.ep-open{font:inherit;cursor:pointer;color:inherit;background:transparent;border:1px solid var(--line);border-radius:9px;padding:8px 12px}.ep-name{max-width:40%;overflow-wrap:anywhere;color:var(--accent);font-weight:700}
.ep-hero{display:grid;grid-template-columns:1.12fr 1fr;align-items:center;background:var(--night);border-block:1px solid var(--line)}.ep-hero img{width:100%;height:100%;min-height:200px;max-height:285px;object-fit:cover}.ep-hero>div{padding:22px}.ep-hero p,.ep-prompt{color:#e1e8e5;line-height:1.45;font-size:16px;margin:9px 0 15px}
.ep-stats{display:flex;justify-content:flex-start;gap:16px;align-items:center;padding:13px 24px;color:#ffdb9b}.ep-stats>strong{color:#e8f2ee}
.ep-acts{display:grid;grid-template-columns:repeat(4,1fr);padding:3px 20px 8px;gap:5px}.ep-acts button{font-size:14px;line-height:1.2;font-weight:700;min-height:39px;padding:6px}.ep-acts button[aria-pressed=true]{background:var(--accent);color:#152c35;border-color:var(--accent)}
.ep-list{margin:0 24px;padding:0;list-style:none}.ep-list li{display:grid;grid-template-columns:30px 35px 1fr auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #91a5a735}.ep-list li>span:first-child{font:700 13px ui-monospace,monospace;color:var(--accent)}.ep-list li>b{font-size:21px}.ep-list li strong,.ep-list li small{display:block}.ep-list li small{font-size:12px;color:#aebfc4}.ep-now{font-size:12px;color:var(--accent)}.ep-repeat{min-width:40px}
.ep-board.journeyAtlas{padding:0!important;max-width:none}.ep-board .boardFooter{padding:13px 22px;margin:0;flex-wrap:wrap;gap:13px}.ep-archive{display:block;padding:0 22px 13px;color:#c7c9c4}
.ep-workgrid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.95fr);align-items:start}.ep-scene{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--night);align-self:center}.ep-scene canvas{width:100%;height:100%;display:block}.ep-spots{position:absolute;inset:0;pointer-events:none}.ep-spot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border-radius:50%;width:34px;height:34px;border:2px solid #eff9f0;box-shadow:0 1px 6px #132228aa;background:#203948df;color:white;font:bold 15px monospace;cursor:pointer}.ep-spot::after{position:absolute;content:'';inset:-5px}
.ep-tools{padding:12px 21px 19px}.ep-tools h3{font-size:23px;margin-top:13px}.ep-tools .ep-prompt{font-size:15px;margin:6px 0 12px}.ep-resources{display:flex;gap:4px 10px;flex-wrap:wrap;font-size:12px;color:#d9e4df}.ep-resources span{white-space:nowrap}.ep-resources i{font-style:normal}.ep-resources b{color:var(--accent)}
.ep-pieces{display:grid;grid-template-columns:1fr 1fr;gap:7px}.ep-pieces button,.ep-answer,.ep-channel button{min-height:43px;background:#263e49;color:#eff6ef;border:1px solid #587078;border-radius:9px;padding:7px 9px;cursor:pointer;font:700 15px/1.2 inherit;font-family:inherit;font-weight:700}
[data-planet=mars] .ep-pieces button,[data-planet=mars] .ep-answer,[data-planet=mars] .ep-channel button{background:#483737}.ep-pieces button small{display:inline-grid;place-items:center;min-width:17px;border-radius:50%;background:#ffffff25}.ep-dialog .picked,.ep-dialog button.picked:disabled{background:#b5e7d1;color:#17382d;opacity:1;border-color:#b5e7d1}
.ep-trail,.ep-feedback{font-size:14px;line-height:1.38;margin:8px 0}.ep-feedback{color:#ffdaa5}.ep-feedback:empty{display:none}.ep-help{font-size:14px;color:#d6e6e3;margin:8px 0}.ep-help summary{cursor:pointer;min-height:28px}.ep-toolfoot{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ep-channel{display:grid;grid-template-columns:1fr 40px 26px 40px;gap:5px;align-items:center;padding:3px 0}.ep-channel b{text-align:center}.ep-channel button{min-height:37px;font-size:20px;padding:0}.ep-bolts{display:block;color:#ffe2a8;margin:8px 0}.ep-dial{display:block;margin:14px 0}.ep-dial>span:first-child{display:flex;justify-content:space-between;align-items:center}.ep-dial output{font:700 23px ui-monospace,monospace;color:var(--accent)}.ep-dial input{width:100%;height:31px;accent-color:var(--accent);margin:4px 0 0}.ep-scale{display:flex;justify-content:space-between;font:12px monospace}.ep-scale i{font-style:normal}
.ep-check,.ep-end{padding:clamp(22px,5vw,55px);max-width:700px;margin:auto}.ep-check h2{padding-right:20px}.ep-answers{display:grid;gap:10px;margin:20px 0}.ep-answer{text-align:left;min-height:50px;padding:10px 15px}.ep-check .btn{margin-top:12px}.ep-dialog [hidden]{display:none!important}.ep-award{display:grid;grid-template-columns:1fr 1fr;align-items:center}.ep-result{width:100%;display:block}.ep-award-body{padding:28px}.ep-award h2{font-size:clamp(22px,3vw,31px)}.ep-gift{display:flex;align-items:center;gap:7px;margin:15px 0;color:#ffe2ab;font-weight:bold}.ep-gift img{width:52px;height:52px;object-fit:contain;animation:epCrewArrives .52s both}.ep-gift strong{margin-left:auto;font:700 14px monospace;animation:epCrewArrives .7s both}.ep-award .ep-resources{margin:12px 0 18px}.ep-choice{margin:0 5px 8px 0;text-align:left}.ep-end img{max-width:130px}.ep-dialog button:focus-visible,.ep-dialog input:focus-visible{outline:3px solid #a3f3ff;outline-offset:3px}
@keyframes epCrewArrives{from{transform:translateY(14px) scale(.7);opacity:0}to{transform:none;opacity:1}}
@media(max-width:740px){.ep-workgrid,.ep-award{display:block}.ep-scene{max-height:40vh}.ep-workgrid .ep-scene{margin-inline:auto;width:auto}.ep-tools{padding:12px 18px 16px}.ep-hero{grid-template-columns:1fr 1fr}.ep-hero img{min-height:180px}.ep-hero>div{padding:14px}.ep-award .ep-result{max-height:33vh;object-fit:cover}.ep-award-body{padding:16px}.ep-acts{grid-template-columns:1fr 1fr}.ep-mast{padding:14px 48px 12px 16px}.ep-board .boardFooter{padding:12px 16px}.ep-list{margin-inline:16px}.ep-stats{padding:12px 16px}}
@media(max-width:480px){.dialog.ep-dialog{width:100%;max-width:100%;max-height:100dvh;border-radius:14px}.ep-hero{grid-template-columns:1fr}.ep-hero img{max-height:145px;min-height:0;aspect-ratio:2.65}.ep-hero p{font-size:14px;margin:7px 0 9px}.ep-acts{padding-inline:12px}.ep-acts button{min-height:33px;font-size:12px}.ep-stats{font-size:13px}.ep-list li{padding:6px 0}.ep-over{font-size:10px}.ep-mast .linkBtn{font-size:12px}.ep-tools h3{margin-top:7px}.ep-spot{width:28px;height:28px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.ep-gift img,.ep-gift strong{animation:none}}
