:root { color-scheme: light; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; color: #243c34; background: #fcfbf7; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #246d58; outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 20; 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 { padding: 21px; border: 1px solid #e4d9c8; border-radius: 20px; background: #f7f1e6; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-title { margin: 0; font-size: 17px; font-weight: 800; }
.progress { margin: 0; color: #476a52; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.scene { position: relative; display: flex; align-items: center; justify-content: space-around; gap: 24px; min-height: 282px; margin-top: 17px; overflow: hidden; border: 1px solid #dfd9c7; border-radius: 17px; background: radial-gradient(circle at 78% 11%, #fff9e1 0 8%, transparent 8.5%), linear-gradient(#d6e9dc 0 73%, #d8ad80 73% 100%); }
.scene::after { position: absolute; right: 0; bottom: 18%; left: 0; height: 8px; background: #c99a6e; content: ""; }
.order { position: relative; z-index: 1; display: grid; justify-items: center; width: 42%; max-width: 208px; padding: 15px 12px 10px; border: 1px solid #e0d4bf; border-radius: 14px; background: #fffdf6; box-shadow: 6px 8px 0 #78684420; transform: rotate(-3deg); }
.order-kicker { color: #63705d; font-size: 12px; font-weight: 700; }
.order img { display: block; width: min(95%, 115px); height: 116px; object-fit: contain; }
.order strong { color: #38473a; font-size: 19px; }
.basket { position: relative; z-index: 1; width: 42%; max-width: 235px; height: 205px; margin-top: 35px; }
.basket-handle { position: absolute; top: 7px; right: 14%; left: 14%; height: 127px; border: 11px solid #966537; border-bottom: 0; border-radius: 50% 50% 0 0; box-shadow: inset 0 3px 0 #bf8e54; }
.basket-inside { position: absolute; right: 3%; bottom: 67px; left: 3%; z-index: 1; height: 55px; border: 5px solid #9f6937; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, #a87643, #694426); box-shadow: inset 0 8px 14px #3c251b73; }
.basket-items { position: absolute; right: 4%; bottom: 52px; left: 4%; z-index: 2; display: flex; align-items: end; justify-content: center; height: 116px; }
.basket-items img { --rise: 0px; --tilt: -8deg; width: 31%; max-width: 78px; height: auto; margin-right: -6%; filter: drop-shadow(0 4px 2px #49321e55); transform: translateY(var(--rise)) rotate(var(--tilt)); }
.basket-items img:only-child { width: 42%; max-width: 100px; }
.basket-items img:nth-child(even) { --rise: -7px; --tilt: 9deg; }
.basket-rim { position: absolute; right: 0; bottom: 70px; left: 0; z-index: 4; height: 23px; border: 3px solid #80552f; border-radius: 50%; background: linear-gradient(#e4b878, #bd854b); box-shadow: inset 0 3px 0 #f9dba0, 0 3px 3px #52351e47; }
.basket-body { position: absolute; right: 5%; bottom: 8px; left: 5%; z-index: 3; height: 82px; border: 3px solid #805733; border-radius: 11px 11px 55px 55px; background: repeating-linear-gradient(32deg, transparent 0 15px, #aa7744dd 16px 20px, transparent 21px 31px), repeating-linear-gradient(-32deg, #c99557d9 0 15px, #a76f3ed9 16px 19px, #d4a468d9 20px 31px); box-shadow: inset 0 5px 6px #7d502f55, inset 0 -9px 12px #804c2726; }
.counter-label { margin: 21px 0 11px; color: #536b54; font-size: 14px; font-weight: 800; }
.choices { display: flex; justify-content: center; gap: 11px; }
.fruit-choice { position: relative; display: grid; flex: 1; justify-items: center; align-content: center; max-width: 160px; min-width: 0; min-height: 140px; padding: 10px 4px; border: 2px solid #e5ddcb; border-radius: 15px; background: #fffdf8; color: #3b4e3d; font-size: 14px; font-weight: 800; cursor: pointer; touch-action: manipulation; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.fruit-choice[hidden], .next[hidden] { display: none; }
.fruit-choice img { display: block; width: clamp(58px, 12vw, 89px); height: clamp(58px, 12vw, 89px); object-fit: contain; }
.fruit-choice:not(:disabled):hover { transform: translateY(-3px); border-color: #aabc9e; }
.fruit-choice.chosen { border-color: #74a782; background: #eff9ed; }
.fruit-choice.tried { border-color: #c9b48f; background: #f7f2e9; }
.try-cue { position: absolute; top: -17px; left: 50%; z-index: 2; display: none; width: max-content; padding: 5px 8px; border: 1px solid #d5c7a8; border-radius: 8px; background: #fffdf2; box-shadow: 0 2px 6px #594d3329; color: #5f5845; font-size: 11px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.fruit-choice.tried .try-cue { display: block; }
.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: white; 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; }
.parent-settings label { display: grid; max-width: 290px; gap: 8px; margin-top: 14px; font-weight: 700; }
.parent-settings select { min-height: 44px; padding: 8px 11px; border: 1px solid #b8cabc; border-radius: 9px; background: white; color: #253d35; }
.parent-settings p { margin: 10px 0 0; font-size: 12px; }
.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; }
  .scene { min-height: 225px; gap: 10px; }
  .order { width: 43%; padding: 10px 6px 8px; }
  .order img { height: 89px; }
  .order strong { font-size: 16px; }
  .basket { width: 45%; height: 160px; margin-top: 29px; }
  .basket-handle { top: 8px; height: 91px; border-width: 8px; }
  .basket-inside { bottom: 51px; height: 42px; border-width: 4px; }
  .basket-items { bottom: 40px; height: 89px; }
  .basket-rim { bottom: 55px; height: 18px; }
  .basket-body { bottom: 5px; height: 62px; }
  .choices { gap: 5px; }
  .fruit-choice { min-height: 109px; font-size: 12px; }
  .fruit-choice img { width: clamp(51px, 19vw, 72px); height: clamp(51px, 19vw, 72px); }
  .try-cue { font-size: 10px; }
  .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) {
  .fruit-choice.tried { animation: gentle-wiggle .28s ease-out; }
  .fruit-choice.chosen { animation: chosen-pop .34s ease-out; }
  .basket-items img:last-child { animation: drop-in .48s cubic-bezier(.2,.78,.25,1) both; }
  @keyframes gentle-wiggle { 40% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
  @keyframes chosen-pop { 50% { transform: scale(1.06); } }
  @keyframes drop-in { 0% { opacity: 0; transform: translateY(calc(var(--rise) - 85px)) rotate(var(--tilt)) scale(1.12); } 68% { opacity: 1; transform: translateY(calc(var(--rise) + 7px)) rotate(var(--tilt)) scale(.95); } 100% { transform: translateY(var(--rise)) rotate(var(--tilt)) scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .fruit-choice { transition: none; } }
