/* A short path into play; optional reading and setup belong to the grown-up. */
.setup { max-width: 1040px; gap: 18px; }
.setup .sheet-head { padding-bottom: 4px; }
.setup .worlds { gap: 14px; }
.setup .tile { padding: 10px 10px 12px; border: 1px solid #dce1d5; border-radius: 16px; background: #f5f5ee; }
.setup .tile:has(input:checked) { background: #eaf0e3; border-color: #a1b69a; }
.setup .shot { aspect-ratio: 1.85; }
.setup .tile-name { margin: 1px 2px 3px; font-size: 18px; }
.setup .tile-desc { margin-inline: 2px; font-size: 12px; }
.setup .shot iframe { display: none; }
.menu-creature { position: absolute; width: 64%; left: 50%; bottom: 2%; translate: -50% 0; }
.menu-creature .specimen { width: 100%; }
.menu-creature svg { width: 100%; display: block; overflow: visible; }
.setup .world-note { margin: -3px 0 0; font-size: 12px; color: #626b5e; }
.habitat-choice { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.habitat-choice[hidden] { display: none; }
.habitat-choice select, .discovery-pickers select { font: inherit; min-height: 42px; padding: 8px 12px; border: 1px solid #c6cec0; border-radius: 9px; background: #fffefa; color: #293c2b; }
.start-volume { display: flex; gap: 14px; align-items: center; max-width: 370px; font-size: 14px; }
.start-volume input { accent-color: #2f6a4c; min-width: 0; flex: 1; height: 28px; }
.start-volume output { width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: #626b5e; }
.setup .sheet-foot { padding-top: 0; border-top: 0; }
.setup .start { min-width: 0; }
.grownup-settings { border-top: 1px solid #dce1d5; padding-top: 14px; }
.grownup-settings summary { cursor: pointer; font-weight: 600; }
.grownup-settings summary span { display: inline-block; margin-left: 8px; font-weight: 400; font-size: 12px; color: #626b5e; }
.grownup-settings .rows { border: 0; padding-block: 20px; }
.grownup-settings .keys-box { margin-bottom: 16px; }
.grownup-settings > .btn { margin-bottom: 4px; }

#discovery { width: min(660px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-sizing: border-box; padding: 26px; border: 1px solid #d9dfd1; border-radius: 22px; background: #faf8f0; color: #29352b; font: 16px/1.45 system-ui, sans-serif; box-shadow: 0 28px 100px #13251840; }
#discovery::backdrop { background: #26382b66; backdrop-filter: blur(6px); }
#discovery button { font: 600 14px/1.3 system-ui, sans-serif; color: #305a3a; min-height: 44px; padding: 10px 16px; border: 1px solid #b9c5b0; border-radius: 10px; background: #fffefa; cursor: pointer; }
#discovery button:disabled { opacity: .55; cursor: default; }
#discovery :focus-visible { outline: 3px solid #749a74; outline-offset: 3px; }
.discovery-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.discovery-top h1 { margin: 0; font: 650 30px/1.2 ui-rounded, system-ui, sans-serif; }
.eyebrow { margin: 0 0 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b765e; }
.discovery-pickers { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-top: 20px; }
.discovery-pickers label { display: grid; gap: 4px; font-size: 12px; }
.discovery-pickers select { width: 100%; min-width: 0; font-size: 16px; }
.discovery-stage { position: relative; height: min(34vh, 280px); min-height: 150px; margin: 14px 0; border-radius: 16px; background: radial-gradient(ellipse at 50% 90%, #dce3c6 0, #edf0df 46%, #f1f2e8 80%); overflow: hidden; }
.discovery-stage .specimen { position: absolute; width: min(72%, 350px); bottom: 6%; left: 50%; translate: -50% 0; }
.specimen { position: relative; --su: 3px; }
.specimen svg { width: 100%; height: auto; overflow: visible; display: block; }
.specimen .c-rise { animation: none; }
.specimen .b-silk { height: 300px; }
.specimen.flying { bottom: 15%; }
.specimen.flyer.m-flutter .wing-l, .specimen.flyer.m-flutter .wing-r { animation: flutter 1.4s ease-in-out infinite; }
.specimen.flyer.m-soar .wing, .specimen.flyer.m-soar .wing-far, .specimen.flyer.m-bird .wing, .specimen.flyer.m-bird .wing-far { animation: flap 1.5s ease-in-out infinite; }
.discovery-caption { text-align: center; }
.discovery-caption h2 { margin: 6px 0; font: 650 26px/1.2 ui-rounded, system-ui, sans-serif; }
.discovery-caption p { margin: 8px 0; }
#discovery-notice { color: #637052; font-size: 15px; }
.discovery-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.discovery-small { font-size: 12px; color: #6b7366; }
.discovery-small summary { cursor: pointer; }
.discovery-small a { color: #386849; }
@media (max-width: 600px) {
  #start-screen { padding: 12px; }
  .setup { padding: 20px; gap: 14px; margin-block: auto; }
  .setup .sheet-head { gap: 0; }
  .setup .brand .hero { height: 45px; }
  .setup .brand { gap: 12px; }
  .setup h1 { font-size: 28px; }
  .setup .brand .sub { font-size: 12px; }
  .setup .tiles { grid-template-columns: 1fr; gap: 9px; }
  .setup .tile { display: grid; grid-template-columns: 100px 1fr; grid-template-rows: auto auto; column-gap: 13px; padding: 7px; border-radius: 12px; align-content: center; }
  .setup .shot { grid-row: 1 / 3; grid-column: 1; width: 100px; height: 62px; margin: 0; aspect-ratio: auto; border-radius: 8px; }
  .setup .tile-name { grid-column: 2; align-self: end; margin: 0; font-size: 17px; }
  .setup .tile-desc { grid-column: 2; margin: 3px 0 0; font-size: 11px; align-self: start; }
  .setup .tick { width: 16px; height: 16px; top: 5px; right: 5px; }
  .setup .tick::after { left: 5px; top: 3px; width: 4px; height: 7px; }
  .setup .sheet-foot { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 9px; }
  .setup .tip { font-size: 11px; }
  .setup .tip .on-ios { display: none; }
  .grownup-settings { padding-top: 10px; }
  .grownup-settings summary { font-size: 14px; }
  .grownup-settings summary span { display: none; }
  .habitat-choice { font-size: 12px; justify-content: space-between; }
  .habitat-choice select { min-height: 36px; padding: 5px 8px; }
  .setup .world-note { font-size: 10px; }
  #discovery { padding: 18px; }
  .discovery-pickers { grid-template-columns: 1fr 1.5fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .specimen *, .specimen *::before, .specimen *::after { animation: none !important; transition: none !important; } }
