/* R66 generated targets: large waiting-room face, ten native cards, optional exit.
   Artwork is decoration; every price, rarity and reward comes from the receipt. */
#research-screen[data-phase=revealed]{grid-template-rows:0 minmax(0,1fr) 0 0}
#research-screen[data-phase=revealed]>.research-heading{visibility:hidden;pointer-events:none}
#research-screen #hatch-result{width:100%;max-width:1280px;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);grid-template-rows:minmax(0,1fr) auto;gap:12px 28px;padding:4px 20px;background:none;border:0;overflow:hidden;outline:none}
#research-screen .hatch-reveal-art{grid-column:1;grid-row:1/3;min-height:0;background:none}
#research-screen #hatch-dino-art{object-fit:contain;max-height:100%;filter:drop-shadow(0 5px 4px #0008)}
#research-screen .hatch-reveal-caption{grid-column:2;grid-row:1;align-self:center;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:0;border:0;min-width:0}
#research-screen #hatch-name{font-size:clamp(30px,5vw,70px);font-style:italic;font-weight:950;line-height:1.1;color:#ffcf55;text-shadow:3px 3px #080815}
#research-screen #hatch-stars{order:-1;align-self:flex-start;font-size:clamp(22px,4vw,44px);letter-spacing:3px;line-height:1}
#research-screen #hatch-tag{font-size:clamp(13px,2vw,22px);color:#fff2d6}
#research-screen #hatch-bonus{font-size:clamp(12px,1.5vw,17px);line-height:1.4}
.hatch-result-actions{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;min-width:0;padding:0 8px 5px}
#research-screen :is(.hatch-result-actions button,#hatch-ten){position:relative;isolation:isolate;border:0;border-radius:0;background:transparent;box-shadow:none;clip-path:none;text-shadow:1px 2px #080817;min-height:50px;padding:8px 24px;font-size:clamp(14px,2vw,23px);font-weight:900;font-style:italic;color:#fff5e8;white-space:nowrap}
#research-screen :is(.hatch-result-actions button,#hatch-ten)::before{content:'';position:absolute;inset:0 3px;z-index:-1;background:url('./assets/ui/comic-button-dark-r63.webp') center/100% 100% no-repeat;transform:skewX(-8deg);pointer-events:none;box-shadow:none}
#research-screen :is(#hatch-again,#hatch-ten){color:#1a1118;text-shadow:none}
#research-screen :is(#hatch-again,#hatch-ten)::before{background-image:url('./assets/ui/comic-button-gold-r63.webp')}
body[data-screen=research] #research-screen #hatch-continue{grid-area:auto;min-width:0;color:#e5cbf8;opacity:1;filter:none;text-shadow:none;font-size:clamp(12px,1.6vw,18px)}
#research-screen #hatch-continue::before{background:none}
#research-screen :is(#hatch-again,#hatch-ten):disabled{opacity:.55;filter:grayscale(.65)}
#research-screen :is(.hatch-result-actions button,#hatch-ten):focus-visible{outline:3px solid #fff;outline-offset:-4px}
#research-screen .hatch-command{width:min(35vw,360px)}
#egg-ten-price{font-size:14px;font-weight:800;text-align:center;color:#fff3d6}
#research-screen #hatch-ten{min-height:76px;font-size:clamp(24px,3.5vw,36px)}
#research-screen #hatch-result[data-batch=true]{grid-template-columns:minmax(0,1fr);gap:10px;padding:0 10px}
#hatch-result[data-batch=true] .hatch-result-actions{grid-column:1;flex-wrap:nowrap;justify-content:center}
#hatch-result[data-batch=true] :is(.hatch-reveal-art,.hatch-reveal-caption){display:none}
#research-screen #hatch-results-grid{grid-column:1;grid-row:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-width:0;min-height:0}
#research-screen #hatch-results-grid[hidden]{display:none}
.hatch-face-card{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;gap:2px;place-items:center;padding:6px 8px;border:1px solid var(--card-rarity);background:#080a17c9;box-shadow:inset 0 -12px 25px #0004;transform:skewX(-5deg);overflow:hidden}
.hatch-face-card>*{transform:skewX(5deg);min-width:0}
.hatch-face-card img{width:100%;height:100%;min-height:0;object-fit:contain}
.hatch-face-card strong{font-size:clamp(11px,1.7vw,21px);text-align:center;line-height:1.1;color:#fff4df;overflow-wrap:anywhere}
.hatch-face-card span{color:var(--card-rarity);font-size:clamp(13px,2vw,24px);letter-spacing:1px;line-height:1}
.hatch-face-card small{color:#c5b7d4;font-size:clamp(9px,1.2vw,13px);text-align:center;line-height:1.1}
@media(max-height:570px){
  #research-screen #hatch-result{gap:4px 18px;padding:0 10px}
  #research-screen .hatch-reveal-caption{gap:5px}
  #research-screen .hatch-result-actions{gap:8px;padding:0 6px}
  #research-screen :is(.hatch-result-actions button,#hatch-ten){min-height:44px;padding:5px 18px;font-size:16px}
  #research-screen #hatch-ten{min-height:58px;font-size:27px}
  #research-screen #hatch-results-grid{gap:6px}
  .hatch-face-card{padding:3px 5px;gap:1px}
  .hatch-face-card small{font-size:9px}
  #research-screen #hatch-result[data-batch=true]{gap:5px}
}
@media(max-width:600px) and (orientation:portrait){
  #research-screen #hatch-result{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,1fr) auto auto;overflow:auto}
  #research-screen .hatch-reveal-caption{grid-column:1;grid-row:2}
  #research-screen .hatch-reveal-art{grid-row:1}
  #research-screen .hatch-result-actions{grid-row:3;flex-wrap:wrap;gap:5px}
  #research-screen #hatch-result[data-batch=true]{grid-template-rows:minmax(0,1fr) auto}
  #research-screen #hatch-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(90px,1fr));overflow:auto}
  #hatch-result[data-batch=true] .hatch-result-actions{grid-row:2}
}
