.animals-room{--paper:#f2f1e5;--panel:#fffdf3;--ink:#2e4b3d;--muted:#5b684f;--accent:#9b5b36;--line:#c9ccb5;background-image:radial-gradient(ellipse at 0 0,#cbd6b535,transparent 60%)}.animals-room .scene{background-color:#edf0df;background-image:linear-gradient(#91a47a0d 1px,transparent 1px);background-size:100% 23px}.animals-room .opening h1{font-size:clamp(2.65rem,4.6vw,4.6rem)}.animal-steps{display:flex;gap:4px;flex-wrap:wrap}.animal-steps button{padding:8px 10px;min-height:36px;font:.66rem/1.5 ui-monospace,monospace;background:#f8f7e9}.animal-steps button[aria-pressed=true]{color:#fffdf3;background:#385340;border-color:#385340;box-shadow:none}.animals-room .scene svg{max-height:405px}.prediction-tracks{background:#faf9eebf;border:1px solid #bfc9ae;border-radius:5px;margin:4px 0 12px}.rule-track{display:grid;grid-template-columns:26px minmax(0,1fr) 18px minmax(0,.85fr);gap:9px;align-items:center;padding:11px 13px}.rule-track+.rule-track{border-top:1px solid #d1d7c2}.rule-track strong{font-size:.76rem;display:block;line-height:1.5;font-weight:600}.rule-track small{font-size:.63rem;display:block;color:var(--muted);line-height:1.6}.rule-track.is-annotated{background:#e4ead6;outline:1px solid #8f9c79;outline-offset:-1px}.rule-token{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;font:600 .68rem ui-monospace,monospace;flex:0 0 23px;color:#fffdf3}.colour-token,.colour-dot{background:#9f5b34;color:#fffdf3}.brightness-token,.brightness-dot{background:#356d68;color:#fffdf3;border-radius:4px}.rule-arrow{color:#839276}.animals-room .side-panel>p:not(.kicker){min-height:4.7em}.rule-selector{margin:23px 0 10px;padding:15px 0 0;border:0;border-top:1px solid var(--line);display:grid;gap:7px}.rule-selector legend{padding:0 0 9px;font:.7rem/1.6 ui-monospace,monospace;color:var(--muted)}.rule-selector button{display:flex;align-items:center;gap:10px;text-align:left;font-size:.79rem;padding:9px 12px;min-height:43px;background:#faf9ef}.rule-selector button[aria-pressed=true]{border-color:#687e53;box-shadow:inset 3px 0 #687e53;background:#e7edd8}.rule-selector #rule-undetermined{font-weight:400;font-size:.73rem}.text-button{display:block;border:0;background:none;text-align:left;padding:8px 0;font-size:.76rem;text-decoration:underline;text-underline-offset:4px;font-weight:600}.text-button.reset{font-size:.7rem;font-weight:400;min-height:32px;color:var(--muted)}.animals-room .side-panel .small{min-height:0;font-size:.72rem}.animals-room .actions{gap:8px}.animals-room .actions button{font-size:.78rem}.animals-room .reading{background:#e4ead5}.animals-room .reveal-card{background:#e8ebd9}.evidence{border:1px solid var(--line);border-radius:8px;padding:28px;background:#fbfaf0;margin:25px 0 40px;scroll-margin-top:88px;box-shadow:0 20px 35px -35px #24463766}.evidence-intro{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:start;margin-bottom:18px}.evidence-intro .study-intro p{font-size:.88rem;line-height:1.65;margin:0}.evidence-intro .study-intro p+p{margin-top:.6rem}.study-guide{font-size:.86rem;line-height:1.55;max-width:72ch;margin:0 0 14px}.evidence h2{margin:0}.study-workspace{display:grid;grid-template-columns:110px 1fr;gap:24px;padding:21px;background:#eef0e2;border:1px solid var(--line);border-radius:6px}.dog-picker{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-content:start}.dog-picker button{font:.86rem/1.4 ui-monospace,monospace;padding:10px 7px}.dog-picker button[aria-pressed=true]{background:#35533f;color:#fffdf3;border-color:#35533f;box-shadow:none}.record-heading{display:flex;align-items:center;gap:18px;margin-bottom:15px}.record-heading h3{font:400 2.5rem/1 Georgia,serif;margin:0;color:var(--accent)}.record-heading p{font:.7rem/1.6 ui-monospace,monospace;color:var(--muted);margin:0}.choice-dots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px;max-width:530px;min-height:40px}.choice-dots span{display:flex;justify-content:center;align-items:center;aspect-ratio:1;border-radius:50%;font:600 .73rem ui-monospace,monospace;max-width:41px;box-shadow:inset 0 0 0 1px #25453615}.choice-dots .brightness-dot{border-radius:6px}.record-legend{display:flex;gap:15px;flex-wrap:wrap;margin:16px 0;font-size:.67rem;line-height:1.6;color:var(--muted)}.record-legend span{display:flex;align-items:center;gap:7px}.record-legend i{display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;font:normal 600 .58rem ui-monospace,monospace;border-radius:50%}.record-legend .brightness-dot{border-radius:3px}.dog-reading{font-size:.9rem;line-height:1.7;margin:10px 0}.reported-record .small{max-width:760px;margin-bottom:0;font-size:.73rem;line-height:1.7}.source-line{margin:16px 0 9px;line-height:1.8}.animals-room .keep{margin-top:20px}
@media(max-width:950px){.animals-room .opening{grid-template-columns:1.25fr 1fr}.rule-track{padding:10px;gap:7px}.animals-room .scene{padding:16px}.animal-steps button{font-size:.6rem;padding:8px}.choice-dots{gap:5px}}
@media(max-width:700px){.animals-room .stimulus text:not(:first-of-type){font-size:20px}}
@media(max-width:700px){.animals-room .opening{grid-template-columns:1fr}.animals-room .opening h1{font-size:clamp(2.45rem,8.9vw,3.7rem)}.animals-room .scene{padding:13px}.animal-steps{gap:3px}.animal-steps button{font-size:.58rem;padding:8px 7px}.animals-room .side-panel>p:not(.kicker){min-height:0}.animals-room .scene-caption{font-size:.58rem}.rule-track{grid-template-columns:21px minmax(0,1fr) 13px minmax(0,.85fr);gap:6px;padding:10px}.rule-track strong{font-size:.69rem}.rule-track small{font-size:.58rem}.rule-token{width:21px;height:21px;flex-basis:21px}.rule-selector{margin-top:19px}.evidence{padding:18px 14px}.evidence-intro{grid-template-columns:1fr;gap:15px}.study-workspace{grid-template-columns:1fr;gap:18px;padding:15px 12px}.dog-picker{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}.dog-picker button{font-size:.7rem;padding:10px 0;min-height:40px}.choice-dots{gap:4px;min-height:24px}.choice-dots span{font-size:.59rem}.record-heading h3{font-size:2.2rem}.record-heading p{font-size:.62rem}.record-legend{gap:10px;font-size:.61rem}.record-legend i{width:16px;height:16px}.evidence h2{font-size:2rem}.evidence-intro .study-intro p{font-size:.83rem}}

/* An authored natural-history illustration, separated from the reported records. */
.animals-room .bench{border-color:#a4b28d;box-shadow:0 20px 55px #3450361f}
.animals-room .bench-heading{background:#e8ecd5;border-bottom:3px double #aeba95}
.animals-room .scene{background:repeating-linear-gradient(90deg,#d3ddba22 0 1px,transparent 1px 19px),#e7ecd6;padding:21px 22px 17px}
html.animals-room .scene svg{max-height:430px;margin-top:14px;border:1px solid #b2bf9a;border-radius:5px;box-shadow:0 5px 12px #34503612,inset 0 1px #fff;background:#f1f3e4;overflow:hidden}
.animals-room .animal-steps{gap:6px}
.animals-room .animal-steps button{background:#f9f8e9;border-color:#abb996;border-radius:3px;box-shadow:0 2px 2px #3b57300d,inset 0 1px #fff;min-height:39px}
.animals-room .animal-steps button[aria-pressed=true]{background:#35533f;border-color:#35533f;box-shadow:inset 0 1px #91ab82,0 2px 4px #264c3026}
.animals-room .side-panel{background:repeating-linear-gradient(0deg,transparent 0 28px,#73875c08 28px 29px),#fffcf0;border-left-color:#b2bf9a}
.animals-room .prediction-tracks{margin:15px 0 12px;background:#fbfaeb;border-color:#adbb95;border-radius:4px;box-shadow:0 3px 7px #3450360d}
.animals-room .rule-track+.rule-track{border-top-color:#c3cdae}
.animals-room .rule-track.is-annotated{background:#dce7c8;outline-color:#8ba471}
.animals-room .rule-token{box-shadow:inset 0 1px #fff5,0 1px 2px #25453633;border:1px solid #fff3}
.animals-room .reading{background:#dce6c9;border-top-color:#a4b58a;box-shadow:inset 0 2px #fff6}
.animals-room .evidence{box-shadow:0 8px 0 -6px #dce5c9,0 9px 0 -6px #b6c19e,0 20px 40px #3450360d}
.animals-room .study-workspace{background:#edf0df;border-color:#b6c3a0}
.animals-room .choice-dots span{box-shadow:inset 0 1px #ffffff5c,inset 0 -2px #1e432733,0 2px 2px #263e221a}
@media(max-width:950px){.animals-room .scene{padding:17px}.animals-room .animal-steps{gap:4px}.animals-room .animal-steps button{font-size:.6rem}}
@media(max-width:700px){.animals-room .scene{padding:14px 11px}.animals-room .animal-steps button{min-height:43px;font-size:.58rem;padding:8px 6px}html.animals-room .scene svg{max-height:none;margin-top:12px}.animals-room .prediction-tracks{margin-top:13px}}

/* Courtyard illustration and the source record share card identities, not outcomes. */
html.animals-room .scene svg{max-height:330px;background:#f5f0df;box-shadow:0 8px 20px #35523717,0 2px 2px #35523712}
.animals-room .study-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:550px;margin:20px 0 16px;position:relative}
.animals-room .study-card{margin:0;min-width:0;padding:10px 12px 8px;background:#faf8e9;border:1px solid #c2cbb0;border-radius:3px;box-shadow:0 3px 0 #dce2cc}
.animals-room .study-card figcaption{font:600 .66rem/1.5 ui-monospace,monospace;white-space:nowrap;color:#53674f;margin-bottom:7px}
.animals-room .study-card svg{display:block;width:100%;max-height:130px}
.animals-room .study-card p{font:.75rem/1.5 Arial,sans-serif;margin:4px 0 0}
.animals-room .study-card[data-study-cue=colour]{border-top:3px solid #a15d32}
.animals-room .study-card[data-study-cue=brightness]{border-top:3px solid #346c68}
@media(min-width:701px) and (max-height:820px){
 .animals-room .opening{margin-bottom:17px;gap:30px}
 .animals-room #main{padding-top:14px}
 .animals-room #main .opening h1{font-size:42px;line-height:1.04}
 .animals-room .opening .kicker{margin-bottom:8px}
 .animals-room .opening .lede{font-size:.86rem;line-height:1.6}
 .animals-room .bench-heading{padding:8px 21px}
 .animals-room .scene{padding:14px 18px}
 html.animals-room .scene svg{max-height:267px;margin-top:10px}
 .animals-room .side-panel{padding:19px 23px}
 .animals-room .rule-selector{margin-top:16px;padding-top:12px;gap:6px}
 .animals-room .rule-selector button{min-height:40px;padding:7px 10px}
 .animals-room .prediction-tracks{margin-top:10px;margin-bottom:8px}
 .animals-room .rule-track{padding:8px 12px}
}
@media(min-width:960px) and (max-height:820px){.animals-room .rule-track>span:nth-child(2),.animals-room .rule-track>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:10px}}
@media(min-width:701px) and (max-width:1099px) and (max-height:820px){.animals-room #main .opening h1{font-size:35px}}
@media(max-width:700px){
 html.animals-room .scene svg{max-height:none}
 .animals-room .study-cards{gap:6px;margin-top:16px}
 .animals-room .study-card{padding:8px 5px}
 .animals-room .study-card figcaption{font:600 .6rem/1.45 Arial,sans-serif;white-space:normal;min-height:2.9em}
 .animals-room .study-card p{font-size:.65rem;line-height:1.4}
 .animals-room .dog-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .animals-room .dog-picker button{min-height:44px}
}
@media (max-width:600px) {
  #animal-bench > .bench-heading { display:none; }
  #animal-bench .animal-steps {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #animal-bench .animal-steps button {
    min-width:0;
    min-height:44px;
    padding:5px 4px;
    line-height:1.2;
    white-space:normal;
  }
  #animal-bench .prediction-tracks { margin-top:9px; }
}

.animals-room .pairing-explanation {
  margin: 0 0 10px;
  color: var(--ink);
  font: .82rem/1.5 Arial, sans-serif;
}

/* Predictions share the illustration. The paper strip reports observed choices. */
#animal-bench .animal-steps #stage-conflict[aria-pressed=false]{
  background:#efdeb2;
  border-color:#bea875;
  color:#324939;
}
.pair-study{
  margin:8px 0 0;
  padding:9px 11px;
  border:1px solid #b6be9b;
  border-left:3px solid #986139;
  border-radius:4px;
  background:#f9f1d8;
  color:#364c3e;
}
.pair-study p{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  margin:0 0 6px;
  gap:3px 10px;
  font-size:12px;
  line-height:1.35;
}
.pair-study p span{color:#654427}
.pair-study ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.pair-study li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:3px 8px;
  padding:4px 7px;
  border:1px solid #d2c79e;
  border-radius:3px;
  background:#fff9e7;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.pair-study li strong{color:#6c4928}
@media(min-width:701px) and (max-height:880px){
  .animals-room .opening{margin-bottom:16px}
  .animals-room .bench-heading{padding:8px 21px}
  .animals-room .prediction-tracks{margin:9px 0 6px}
  .animals-room .rule-track{padding:8px 12px}
  .animals-room #animal-scene{max-height:232px;margin-top:7px}
}
@media(max-width:700px){
  .animals-room #main .opening{gap:7px;margin-bottom:12px}
  .animals-room .opening .kicker{display:none}
  .animals-room #main .opening h1{font-size:clamp(31px,8.6vw,40px)}
  .animals-room .opening .lede{font-size:13px;line-height:1.48}
  #animal-bench .animal-steps button{font-size:.65rem}
  #animal-bench .rule-track{padding:8px 9px}
  #animal-bench .prediction-tracks{margin:8px 0 6px}
  .animals-room .pairing-explanation{margin:0;font-size:12px}
  html.animals-room .scene #animal-scene{margin-top:7px}
}
