.evo-draft {color:#e6ece5;font:14px/1.35 Field,system-ui,sans-serif;--line:#55716880;--pale:#aadfc9}
.evo-draft * {box-sizing:border-box}
.evo-draft button,.evo-draft select{font:inherit;cursor:pointer;color:inherit}
.evo-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:12px}
.evo-stage figure{position:relative;isolation:isolate;min-width:0;min-height:176px;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:0;background:radial-gradient(ellipse at 55% 55%,#225253,#102a32 54%,#0a1820 100%)}
.evo-stage figure>canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
.evo-stage figcaption,.evo-stage [data-compare]{position:absolute;left:8px;max-width:calc(100% - 16px);background:#092027d9;color:#def1e9;padding:3px 7px;border-radius:3px;font-size:11px}
.evo-stage figcaption{top:7px}.evo-stage [data-compare]{bottom:7px;border:1px solid #7aaba278;min-height:28px}
.evo-offers{display:grid;gap:5px}.evo-offers button{display:grid;grid-template-columns:49px 1fr;text-align:left;align-items:center;min-width:0;min-height:55px;border:1px solid var(--line);border-radius:5px;background:#12282e;padding:3px 8px 3px 2px}
.evo-offers button[aria-pressed=true]{border-color:var(--ink);background:linear-gradient(100deg,#223d3e,#11282c);box-shadow:inset 3px 0 0 var(--ink)}
.evo-offers button>span:last-child{display:grid;line-height:1.1;gap:2px}.evo-offers small{color:#afc5bc;font-size:10px}.evo-offers strong{color:#ffebca;font:18px/1.03 Display,Georgia,serif}.evo-card-note{font-size:11px;color:#d1e8dc}
.evo-icon,.evo-thumb{width:47px;height:48px;display:block}.evo-icon{background-image:url("organs-draft.webp");background-size:400% 200%;mix-blend-mode:screen}
.evo-review{margin-top:10px;border-top:1px solid var(--line)}
.evo-review [data-sides]:not(:empty){display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 0 0}.evo-review [data-sides] strong{margin-right:3px;font-size:13px}
.evo-review [data-side],.evo-actions button,.evo-route select{border:1px solid var(--line);border-radius:4px;background:#122b30;padding:6px 9px}
.evo-review [data-side][aria-pressed=true]{border-color:#9de2cd;color:#fff3da;box-shadow:inset 0 -2px #8bdbc1}
.evo-draft button:focus-visible,.evo-more summary:focus-visible{outline:2px solid #ffe0a1;outline-offset:2px}
.evo-action{margin:7px 0 5px;color:#f1dec5;font-weight:600}
.evo-effects{display:grid;gap:2px}.evo-effects>div{display:grid;grid-template-columns:minmax(90px,auto) 1fr;gap:.65em}
.evo-effects small{font:inherit;color:#aac4bc}.evo-effects span{overflow-wrap:anywhere}.evo-metrics{display:flex;flex-wrap:wrap;gap:2px 14px;padding-top:5px;color:#b9c9c3;font-size:12px}.evo-metrics .gain{color:#a9e5bb}.evo-metrics .cost{color:#f4b49e}
.evo-more{margin:8px 0;border-block:1px solid var(--line)}.evo-more summary{cursor:pointer;padding:7px 0;color:#aedbcd;font-size:13px}.evo-more p{font-size:12px;color:#acc2b9;margin:5px 0}
.evo-stat-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 14px}.evo-stat-table>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px;color:#bdcac3;border-bottom:1px solid #6d898230;font-size:12px}.evo-stat-table b{color:#e2ecd5}
.evo-route{display:flex;align-items:center;gap:8px;color:#e2dfbf}.evo-route select{padding:3px 6px}
.evo-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:2px}.evo-actions button{min-height:37px}.evo-actions .evo-commit{background:#afddc5;border-color:#caeacf;color:#12322e;font-weight:700}.evo-actions button:disabled{opacity:.62;cursor:default}
#shoal-sheet:has(.evo-draft){width:min(760px,100%);max-height:calc(100dvh - 18px);overflow:auto}
@media(max-width:520px){.evo-stage{grid-template-columns:minmax(0,.85fr) minmax(0,1.16fr);gap:5px}.evo-offers button{grid-template-columns:30px 1fr;padding:3px 4px 3px 0}.evo-icon,.evo-thumb{width:30px;height:37px}.evo-offers strong{font-size:15px}.evo-stat-table{grid-template-columns:1fr}.evo-effects>div{grid-template-columns:80px 1fr}}
@media(max-height:550px) and (min-width:521px){.evo-draft{font-size:12px}.evo-stage{grid-template-columns:27% 1fr;gap:8px}.evo-stage figure{min-height:94px}.evo-offers{grid-template-columns:repeat(3,minmax(0,1fr))}.evo-offers button{grid-template-columns:1fr;align-content:center;justify-items:start;padding:5px 7px}.evo-icon,.evo-thumb{width:35px;height:32px}.evo-offers strong{font-size:15px}.evo-review{margin-top:6px}.evo-stage figcaption{font-size:9px;left:3px;top:3px}.evo-review [data-side]{padding:4px 8px}.evo-more{margin:4px 0}.evo-draft summary{padding:5px 0}.evo-actions button{min-height:32px}.evo-stage [data-compare]{min-height:23px;bottom:3px;left:3px;font-size:10px}}
@media (orientation:portrait) and (max-width:550px){
  html.reef-landscape-play .evo-stage{grid-template-columns:27% 1fr;gap:8px}
  html.reef-landscape-play .evo-stage figure{min-height:102px}
  html.reef-landscape-play .evo-offers{grid-template-columns:repeat(3,minmax(0,1fr))}
  html.reef-landscape-play .evo-offers button{grid-template-columns:1fr;padding:4px 7px;align-content:center}
  html.reef-landscape-play .evo-icon,html.reef-landscape-play .evo-thumb{width:34px;height:34px}
  html.reef-landscape-play .evo-draft{font-size:12px}
  html.reef-landscape-play .evo-stat-table{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.evo-consequence{display:flex;flex-wrap:wrap;gap:3px 18px;padding:5px 8px;margin:5px 0 7px;border-left:2px solid #a8dac1;background:#143139;border-radius:2px;color:#c9efda;font-size:13px;font-weight:600}.evo-consequence .cost{color:#edb69a}.evo-next{margin:7px 0 1px;padding-left:9px;border-left:2px solid #6b9c92;color:#bdd6ce;font-size:12px;line-height:1.4}.evo-phase{position:absolute;right:7px;bottom:8px;padding:4px 6px;border-radius:3px;background:#10272be6;color:#b6e1cc;font:600 10px Field,system-ui;letter-spacing:.04em}.evo-phase[hidden]{display:none}.evo-phase[data-phase="wind-up"]{color:#fae4ad}.evo-phase[data-phase="strike"]{color:#fff5c7}.evo-phase[data-phase="recovery"]{color:#f3b58e}
@media(max-height:550px) and (min-width:521px){.evo-consequence{font-size:11px;margin:3px 0 4px;padding:4px 6px}.evo-next{font-size:11px;margin-top:5px}.evo-phase{font-size:9px;right:4px;bottom:31px;padding:3px 4px}}

/* The live co-op draft keeps the organ, socket and confirmation together on a phone. */
@media (orientation:landscape) and (max-height:540px), (orientation:portrait) and (max-width:540px){
  #shoal-sheet:has(.evo-draft){padding:8px 14px}
  #shoal-sheet:has(.evo-draft) h2{font-size:23px;line-height:1.1;margin:2px 0 5px}
  #shoal-sheet .evo-draft{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}
  #shoal-sheet .evo-stage{grid-column:1/-1;grid-template-columns:18% 1fr}
  #shoal-sheet .evo-stage figure{min-height:78px}
  #shoal-sheet .evo-offers{grid-template-columns:repeat(3,minmax(0,1fr))}
  #shoal-sheet .evo-offers button{grid-template-columns:30px minmax(0,1fr);gap:4px;align-content:center;padding:4px;min-height:50px}
  #shoal-sheet .evo-offers strong{font-size:15px}
  #shoal-sheet .evo-icon,#shoal-sheet .evo-thumb{width:28px;height:34px}
  #shoal-sheet .evo-review{grid-column:1;margin:0;border:0}
  #shoal-sheet .evo-review [data-sides]:not(:empty){padding:0}
  #shoal-sheet .evo-review .evo-action{margin:3px 0;font-size:12px;line-height:1.25}
  #shoal-sheet .evo-review :is(.evo-effects,.evo-metrics,.evo-next,.evo-consequence){display:none}
  #shoal-sheet .evo-actions{grid-column:2;grid-row:2;align-self:start}
  #shoal-sheet .evo-commit{min-height:40px;max-width:160px}
  #shoal-sheet .evo-more{grid-column:1/-1;margin:0}
  #shoal-sheet .evo-more summary{padding-block:5px}
}
@media (min-width:960px){
  #shoal-overlay.couch-choice{place-items:end start;background:transparent;backdrop-filter:none;pointer-events:none;padding:8px}
  #shoal-overlay.couch-choice #shoal-sheet{pointer-events:auto;width:min(37vw,530px);max-height:83vh;padding:10px 14px}
  #shoal-overlay.couch-choice h2{font-size:23px;margin:3px 0}
  #shoal-overlay.couch-choice .evo-stage figure{min-height:100px}
}
