:root { color-scheme: light; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; color: #253d35; background: #fbfcf8; }
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #246d58; outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 30; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 12px max(20px, calc((100vw - 860px)/2)); border-bottom: 1px solid #e2e9e1; background: white; }
.header a { color: #245f50; text-decoration: none; }
.brand { font-size: 20px; font-weight: 800; }
.back { font-size: 13px; font-weight: 700; }
.page { max-width: 860px; margin: 0 auto; padding: 32px 20px 80px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: #39715f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0 0 10px; font-size: clamp(27px, 5vw, 37px); }
.intro { max-width: 700px; margin: 0 0 25px; color: #52635d; line-height: 1.8; }
.game { overflow: hidden; padding: 21px; border: 1px solid #d7e3d4; border-radius: 20px; background: #f2f7ed; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-title { margin: 0; font-size: 17px; font-weight: 800; }
.progress-number { margin: 0; color: #28624f; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.friends { display: flex; gap: 8px; margin: 14px 0 17px; }
.friend { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #d7dfd5; border-radius: 50%; background: #e4eae0; }
.friend img { width: 41px; height: 43px; object-fit: contain; opacity: .18; filter: grayscale(1); }
.friend.found { border-color: #a5c5a6; background: white; }
.friend.found img { opacity: 1; filter: none; }
.friend[hidden] { display: none; }
.stage { position: relative; height: min(51vw, 340px); min-height: 280px; overflow: hidden; border: 1px solid #b6d3b0; border-radius: 17px; background: #b5db83 url('/play/animal-art/meadow-v2.webp') center center / cover no-repeat; isolation: isolate; }
.runner { position: absolute; left: 0; bottom: 6%; z-index: 3; width: clamp(110px, 17vw, 135px); height: 140px; object-fit: contain; pointer-events: none; }
.stage[data-count="4"] .runner { bottom: 26%; }
.runner[hidden], .found-animal[hidden], .bush[hidden], .next[hidden] { display: none; }
.spots { position: absolute; right: 3%; bottom: 5%; left: 3%; z-index: 2; display: flex; align-items: end; justify-content: space-around; gap: 8px; }
.bush { position: relative; display: block; flex: 0 1 29%; height: 115px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.spots[data-count="4"] .bush { flex-basis: 24%; min-height: 90px; }
.bush:disabled { cursor: default; }
.bush-leaves { position: absolute; inset: 0; display: block; background: url('/play/animal-art/hide-seek-bush-v2.webp') center bottom / contain no-repeat; filter: drop-shadow(0 5px 2px #2b633e55); transform-origin: 50% 85%; }
.bush:nth-child(2) .bush-leaves { transform: scale(1.07, 1.03); }
.bush:nth-child(3) .bush-leaves { transform: scaleX(-1); }
.bush:not(:disabled):hover .bush-leaves { filter: drop-shadow(0 5px 2px #2b633e55) brightness(1.07); }
.bush.checked .bush-leaves { filter: drop-shadow(0 5px 2px #2b633e55) saturate(.72); }
.empty-cue { position: absolute; top: -18px; left: 50%; z-index: 4; display: none; width: max-content; padding: 5px 8px; border: 1px solid #d6dfc7; border-radius: 9px; background: #fffdf2; box-shadow: 0 2px 7px #3655342b; color: #395a4a; font-size: 12px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.empty-cue::after { position: absolute; bottom: -5px; left: calc(50% - 5px); width: 8px; height: 8px; border-right: 1px solid #d6dfc7; border-bottom: 1px solid #d6dfc7; background: #fffdf2; content: ""; transform: rotate(45deg); }
.bush.checked .empty-cue { display: block; }
.bush.hint .bush-leaves { filter: drop-shadow(0 0 6px #fff6b3) drop-shadow(0 0 7px #d08b27); }
.found-animal { position: absolute; bottom: 43px; left: 50%; z-index: 3; width: min(95%, 100px); height: 110px; object-fit: contain; transform: translateX(-50%); pointer-events: none; }
.feedback { min-height: 27px; margin: 18px 0 0; color: #255e4f; text-align: center; font-size: 16px; font-weight: 800; line-height: 1.6; }
.next { display: block; width: min(100%, 350px); min-height: 52px; margin: 13px auto 0; padding: 10px 18px; border: 0; border-radius: 11px; background: #245f50; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.next:hover { background: #1c5143; }
.parent-prompt { margin: 20px 0 0; padding: 14px 17px; border-left: 3px solid #7caa8d; background: #f0f5ed; font-weight: 700; line-height: 1.7; }
.parent-settings { margin: 18px 0 0; color: #5c6961; font-size: 13px; }
.parent-settings summary { width: fit-content; cursor: pointer; font-weight: 700; }
.parent-settings[open] { padding: 14px 17px; border: 1px solid #d7e3d4; border-radius: 13px; background: white; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.setting-field { display: grid; gap: 7px; color: #344d41; font-weight: 700; }
.setting-field select { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #b8cabc; border-radius: 9px; background: #fff; color: #253d35; font: inherit; }
.setting-note { margin: 11px 0 0; color: #63736a; font-size: 12px; }
.sound-setting { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.sound-setting button { padding: 9px 14px; border: 1px solid #b8cabc; border-radius: 9px; background: white; color: #245f50; font-weight: 700; cursor: pointer; }
.guide, .research { margin-top: 56px; }
.guide h2, .research h2 { margin: 0 0 12px; font-size: clamp(23px, 4vw, 30px); letter-spacing: .02em; }
.section-lead { max-width: 690px; margin: 0; color: #52635d; font-size: 15px; line-height: 1.9; }
.guide-steps { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #dce4da; }
.guide-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 22px 4px; border-bottom: 1px solid #dce4da; }
.step-number { padding-top: 2px; color: #6c9b83; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-steps h3, .research-points h3 { margin: 0 0 6px; font-size: 18px; }
.guide-steps p, .research-points p { margin: 0; color: #52635d; font-size: 14px; line-height: 1.9; }
.guide-close { margin: 17px 0 0; color: #53645b; font-size: 13px; line-height: 1.8; }
.research { padding-top: 36px; border-top: 1px solid #dce4da; }
.research-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 29px; }
.research-points > div { padding-top: 14px; border-top: 3px solid #8db49b; }
.research-points h3 { font-size: 16px; }
.research a { color: #246052; text-underline-offset: 3px; }
.research-limit { margin: 30px 0 0; padding: 16px 19px; border-left: 3px solid #b69b6c; background: #f5f1e7; color: #4f5a52; font-size: 13px; line-height: 1.9; }
.sources { margin-top: 30px; padding-top: 21px; border-top: 1px solid #dce4da; }
.sources h3 { margin: 0 0 9px; font-size: 14px; }
.sources ol { margin: 0; padding-left: 23px; }
.sources li { padding: 5px 0; color: #647067; font-size: 12px; line-height: 1.8; }
@media (max-width: 600px) {
  .header { min-height: 60px; }
  .page { padding: 25px 14px 75px; }
  .intro { font-size: 14px; }
  .game { padding: 13px; border-radius: 17px; }
  .game-title { font-size: 15px; }
  .friend { width: 46px; height: 46px; }
  .friend img { width: 36px; height: 40px; }
  .stage { height: 310px; min-height: 0; }
  .runner { left: -6%; }
  .spots { right: 1%; left: 1%; gap: 4px; }
  .bush { flex-basis: 31%; height: 105px; }
  .spots[data-count="4"] .bush { flex-basis: 24%; height: 100px; }
  .found-animal { bottom: 33px; height: 90px; }
  .settings-grid { grid-template-columns: 1fr; }
  .guide, .research { margin-top: 46px; }
  .section-lead { font-size: 14px; }
  .guide-steps li { grid-template-columns: 35px minmax(0, 1fr); gap: 8px; padding: 19px 2px; }
  .guide-steps h3 { font-size: 16px; }
  .research-points { grid-template-columns: 1fr; gap: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bush.peeked .bush-leaves { animation: rustle .35s ease-in-out; }
  .bush.checked .empty-cue { animation: cue-pop .25s ease-out; }
  .bush.found .found-animal { animation: pop-up .35s ease-out; }
  @keyframes rustle { 50% { transform: rotate(5deg); } }
  @keyframes cue-pop { from { opacity: 0; transform: translate(-50%, 7px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
  @keyframes pop-up { from { opacity: 0; transform: translate(-50%, 15px); } to { opacity: 1; transform: translate(-50%, 0); } }
}
