/* Day 2: the approved Pet Detector clay presentation, over the original game. */
:root{--ink:#142D44;--muted:#465F74;--blue:#4682B4;--blue-deep:#326A98;--blue-dark:#204969;--blue-soft:#DDECF7;--sky:#EFF6FC}
html{background:#C8DEEF}
body{font-family:"Segoe UI",system-ui,sans-serif;font-size:18px;background:linear-gradient(160deg,#EDF6FD,#C8DEEF) fixed}
.wrap{max-width:980px;padding:18px 20px 28px}
.panel{border:2px solid #BDD5E8;box-shadow:0 7px 0 #ACC8DE,0 16px 30px #20496912;padding:22px}
.btn{font-size:20px;min-height:50px;padding:12px 26px}
.btn:hover:not(:disabled){filter:brightness(1.06)}
.btn:disabled{opacity:.58}
button:focus-visible,summary:focus-visible{outline:4px solid #EAA800;outline-offset:3px}
.cover{max-width:740px;width:100%;margin:auto;text-align:center;padding:28px}
.day-label{font-size:16px;font-weight:850;color:var(--blue-deep);letter-spacing:.05em;margin:0 0 8px}
.cover h1{font-size:clamp(36px,5.5vw,56px);font-weight:900;line-height:1.12;color:var(--blue-dark);letter-spacing:-.025em}
.cover-art{display:flex;gap:18px;justify-content:center;max-width:460px;margin:24px auto}
.cover-card{width:32%;padding:5px;background:white;border:2px solid #BDD5E8;border-radius:16px;box-shadow:0 5px 0 #ACC8DE;transform:rotate(-5deg);animation:arrive .5s ease-out both}
.cover-card:nth-child(2){transform:rotate(3deg);animation-delay:.08s}
.cover-card:nth-child(3){transform:rotate(7deg);animation-delay:.16s}
.cover-card b{display:block;font-size:17px;margin-top:5px}
@keyframes arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
.lede{color:var(--ink);font-size:21px;line-height:1.45;margin:12px auto 22px}
.tiny,footer{color:var(--muted);font-size:15px}
.cover .tiny{margin:20px 0 0}.cover .btn{min-width:180px}
.sample-art{display:block;position:relative;aspect-ratio:1;width:100%;border-radius:9px;overflow:hidden;background:#E8F2F9;isolation:isolate}
.raster-sprite{display:block;position:absolute;inset:0;background-repeat:no-repeat;transform-origin:center}
.zoom-picture{display:block;padding:0;border:0;background:transparent;border-radius:9px;cursor:zoom-in;width:100%;color:inherit}
.zoom-picture:hover .sample-art{filter:brightness(1.04)}
.slide-pic{max-width:480px;max-height:180px;width:auto;object-fit:contain;margin:6px auto}
.cap{max-width:780px;background:transparent;font-size:18px;line-height:1.4;margin:8px auto 14px;padding:0}
.steps{gap:12px;margin-bottom:18px}
.step{border:2px solid #D5E5F2;box-shadow:0 4px 0 #D7E5F0;padding:12px}
.step .n{width:30px;height:30px;font-size:18px}
.step-art{display:flex;align-items:center;justify-content:center;gap:7px;height:84px;margin:4px auto 8px}
.step-art .sample-art{width:75px;flex:none;box-shadow:0 3px 0 #BCD2E3}
.question{display:grid;place-items:center;border-radius:12px;width:52px;height:65px;color:var(--blue-deep);font-size:42px;font-weight:900;background:#fff;box-shadow:0 3px 0 #BCD2E3}
.step p{font-size:17px;line-height:1.4}
.pill{background:#fff;color:var(--blue-dark);font-size:16px;box-shadow:0 3px 0 #ABC7DB}
.pill.score{background:var(--sun);color:#3A2A00}
.icon-btn.b-sound{width:auto;padding:0 12px;font-size:15px;font-weight:800;color:var(--blue-dark);background:white;box-shadow:0 3px 0 #ABC7DB}
.tagline{font-size:14px;letter-spacing:.07em;padding:4px 12px;margin-bottom:7px}
.app{gap:12px;margin:0 0 10px}
.app-icon{width:62px;flex:none;border-radius:13px;overflow:hidden;box-shadow:0 3px 0 #ACC8DE}
.app h2{font-size:28px;line-height:1.2}
.app p{font-size:18px;line-height:1.35;margin:4px 0 0}
.grid-h{font-size:17px}
.dgrid{max-width:760px;margin:0 auto 12px;gap:10px;padding:10px}
.thumb{padding:4px 4px 0;border:1px solid #D4E4EF;box-shadow:0 3px 0 #C4D7E5}
.thumb .lb{font-size:15px;padding:3px 0 5px;line-height:1.2}
.hint{padding:10px 12px;margin-bottom:12px;background:#E4EFF8}
.hint p{font-size:17px;line-height:1.35}
.hint-mark{display:grid;place-items:center;background:var(--blue-deep);color:white;flex:none;width:28px;height:28px;border-radius:50%;font-weight:850}
.test-prompt{text-align:center;font-size:18px;max-width:700px;margin:5px auto 10px;line-height:1.35}
.tests{gap:12px;max-width:840px;margin:10px auto 14px;align-items:stretch}
.tc{border:2px solid #B9D2E5;box-shadow:0 4px 0 #B0CBDF;padding:8px 8px 10px;display:flex;flex-direction:column;align-items:stretch;min-width:0}
.tc>.zoom-picture{width:126px;margin:0 auto}
.tc .tcap{font-size:15px;line-height:1.25;margin:5px 0 0}
.tc .guesses{margin-top:8px;gap:5px}
.mk{font-size:15px;padding:9px 5px;line-height:1.2;min-height:38px}
.tc .out{font-size:16px;line-height:1.2;padding:6px;margin-top:7px}
.tc .out .why{font-size:15px;line-height:1.25;margin-top:4px}
.tc.done{animation:result-in .3s ease-out}
@keyframes result-in{from{transform:translateY(5px);opacity:.5}to{transform:none;opacity:1}}
.tc .called{font-size:12px;padding:2px 8px;left:-4px;top:-9px}
.tc.hit{border-color:var(--good)}
.peek{font-size:16px}
.peek summary{min-height:24px}
.summary{padding:8px 12px;margin:0 auto 12px;max-width:680px}
.summary .row{font-size:16px;padding:1px 0}
.why-not{font-size:16px;text-align:center}
.gobar{gap:6px}
.gap-pictures{display:flex;justify-content:center;gap:12px;margin:14px auto;max-width:430px}
.gap-pictures .zoom-picture{max-width:100px;border:2px solid #C4D8E7;padding:3px;box-shadow:0 4px 0 #B0CBDF;background:white;border-radius:12px}
.opt{font-size:18px;padding:12px 16px}
.gapmsg{font-size:18px;min-height:48px}
.rating-star{display:block;color:#C4D5E2;font-size:58px;line-height:1.1;text-shadow:0 3px 0 #A2B8C8}
.rating-star.on{color:#FFC940;text-shadow:0 3px 0 #B98713;animation:starpop .5s cubic-bezier(.2,1.6,.4,1) both}
.rating-star:nth-child(2){animation-delay:.18s}.rating-star:nth-child(3){animation-delay:.36s}
.appsum .app-icon{width:46px}.appsum b{font-size:17px}.appsum span{font-size:16px}
.word b{font-size:17px}.word span{font-size:15px;line-height:1.3;display:block;margin-top:3px}
#picture-dialog{width:min(530px,calc(100% - 32px));border:2px solid #BDD5E8;border-radius:20px;padding:14px;background:#fff;box-shadow:0 8px 0 #20496950,0 20px 60px #102C5060}
#picture-dialog::backdrop{background:#102C5099;backdrop-filter:blur(3px)}
#close-picture{display:block;margin:0 0 12px auto;border:0;border-radius:10px;min-height:42px;padding:8px 14px;background:var(--blue-deep);color:white;font-size:17px;font-weight:800}
#big-picture{max-width:min(100%,calc(100vh - 140px));margin:auto}
@media(min-width:641px) and (max-height:800px){
  .wrap{padding-top:12px;padding-bottom:20px}
  .panel{padding:15px 18px}
  .hud{margin-bottom:8px}
  .slide-pic{max-height:180px}.step-art{height:86px}.step-art .sample-art{width:76px}
  .step{padding:8px 10px}.steps{margin-bottom:14px}.step p{font-size:17px}
  .dgrid{max-width:660px;gap:8px;padding:8px}
  .app-icon{width:50px}.app h2{font-size:26px}
  .tc>.zoom-picture{width:116px}.tc{padding:6px 6px 8px}
  #s-test[data-app="note"] .tc:not(.done)>.zoom-picture{width:98px}
  .tc .tcap{font-size:14px}.mk{font-size:15px;padding:7px 4px;min-height:34px}
  .tc .out{font-size:15px;padding:5px}.tc .out .why{font-size:14px}
  .tests{gap:10px;margin:7px auto 12px}
  .tagline{font-size:12px;padding:3px 10px;margin-bottom:4px}
  .test-prompt{font-size:17px;margin:4px auto 8px}
  .summary{padding:6px 10px;margin-bottom:8px}.summary .row{font-size:15px}
  .peek{padding:6px 10px!important;margin-bottom:8px!important}
  .btn{font-size:19px;padding:10px 24px;min-height:48px}
  .words{margin:9px 0}.word span{font-size:14px}
  .final{font-size:38px}.rating-star{font-size:48px}
  .appsum{padding:7px 10px}.appsum .app-icon{width:40px}
}
@media(min-width:901px){
  .tc.done{display:grid;grid-template-columns:86px minmax(0,1fr);grid-template-rows:auto auto;gap:5px 8px;align-items:center}
  .tc.done>.zoom-picture{width:86px;grid-column:1;grid-row:1;margin:0}
  .tc.done .tcap{grid-column:1;grid-row:2;font-size:13px;margin:0;line-height:1.2}
  .tc.done .out{grid-column:2;grid-row:1 / span 2;margin:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-height:116px}
  .tc.done .guesses{display:none}
}
@media(max-width:640px){
  .wrap{padding:14px 12px 24px}.panel{padding:18px 14px}
  .cover{padding:26px 16px}.cover h1{font-size:38px}
  .cover-art{gap:8px;margin:22px auto}.cover-card{padding:4px;border-radius:12px}.cover-card b{font-size:15px}
  .lede{font-size:19px}.day-label{font-size:14px}
  .slide-pic{width:100%;max-height:190px}.cap{font-size:17px}
  .steps{gap:10px}.step{display:grid;grid-template-columns:28px 100px 1fr;align-items:center;gap:8px;text-align:left;padding:10px}
  .step .n{margin:0;width:28px;height:28px;font-size:17px}
  .step-art{width:100px;height:68px;margin:0;gap:4px}.step-art .sample-art{width:48px}.step-art .question{width:36px;height:50px;font-size:33px}
  .step p{font-size:16px;line-height:1.3}
  .pill{font-size:14px;padding:6px 10px}.icon-btn.b-sound{font-size:14px;padding:0 9px;height:34px}
  .hud{gap:6px}.hud .spacer{min-width:0}
  .app h2{font-size:25px}.app p{font-size:16px}.app-icon{width:50px}
  .grid-h{font-size:16px}.dgrid{grid-template-columns:repeat(3,1fr);gap:8px;padding:7px}
  .thumb .lb{font-size:14px}.hint p{font-size:16px}
  .tests{grid-template-columns:repeat(2,1fr);gap:12px 9px}
  .tc{padding:6px}.tc>.zoom-picture{width:min(100%,135px)}
  .tc .guesses{grid-template-columns:1fr;gap:5px}.mk{font-size:15px;min-height:38px;padding:6px}
  .tc .out{font-size:15px}.tc .out .why{font-size:14px}
  .tc .tcap{font-size:14px}.test-prompt{font-size:17px}
  .summary .row{font-size:15px}.summary{padding:8px}
  #s-test .gobar{position:sticky;bottom:8px;z-index:2;background:#fff;border:1px solid #C2D7E7;box-shadow:0 4px 12px #20496920;border-radius:14px;padding:9px}
  .why-not{font-size:15px}.gap-pictures{gap:9px}
  .opt{font-size:17px}.gapmsg{font-size:17px}
  #s-results .words{grid-template-columns:1fr 1fr}
  .word span{font-size:15px}.appsum b{font-size:16px}
}
@media(max-width:370px){.step{grid-template-columns:25px 80px 1fr;gap:6px;padding:10px 6px}.step-art{width:80px}.step-art .sample-art{width:38px}.step p{font-size:15px}.pill{font-size:13px}.hud{gap:4px}.icon-btn.b-sound{font-size:13px;padding:0 7px}}
