.steps-pigeon-trigger { flex: none; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; }
.steps-pigeon-trigger:focus-visible { outline: 2px solid #864d39; outline-offset: 3px; border-radius: 5px; }
.steps-pigeon-trigger.is-tapped { animation: pigeon-tap .22s ease; }
@keyframes pigeon-tap { 50% { transform: rotate(-4deg) translateY(-4px); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.game-dialog { width: min(100% - 24px, 690px); max-height: min(90svh, 760px); padding: 0; overflow: auto; border: 1px solid #e8bcaa; border-radius: 10px; background: #fffdf9; color: #453b39; box-shadow: 0 22px 70px #3b211d45; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.game-dialog::backdrop { background: #362c2acc; }
.game-inner { padding: 23px; }
.game-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.game-kicker { margin: 0 0 5px; color: #ad6b55; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.game-top h2 { margin: 0; font-size: clamp(20px,3vw,26px); line-height: 1.4; }
.game-close { flex: none; width: 38px; height: 38px; border: 1px solid #e9cdbf; border-radius: 8px; background: #fff; color: #6e5348; font-size: 24px; line-height: 1; cursor: pointer; }
.game-help { margin: 11px 0 16px; color: #766760; font-size: 13px; line-height: 1.7; }
.game-scoreboard { display: flex; justify-content: center; gap: 24px; margin: 0 0 12px; color: #80695e; font-size: 12px; }
.game-scoreboard p { margin: 0; }
.game-scoreboard strong { margin-left: 4px; color: #a6604c; font-size: 20px; }
.game-scene { position: relative; display: grid; place-items: center; min-height: 280px; overflow: hidden; border: 1px solid #ead8c7; border-radius: 10px; background: radial-gradient(circle at 50% 8%, #fffaf3 0 37%, #f8eadb 100%); }
.game-bird { position: absolute; z-index: 5; bottom: 8px; left: calc(50% - 205px); width: 93px; height: auto; filter: drop-shadow(0 5px 4px #68483620); pointer-events: none; }
.game-letter { position: relative; width: 256px; height: 234px; margin: 16px auto 0; perspective: 700px; }
.letter-back, .letter-flap, .letter-front { position: absolute; left: 0; width: 100%; }
.letter-back { z-index: 1; top: 112px; height: 112px; border: 1px solid #d69d83; border-radius: 7px; background: #fbe0ce; box-shadow: 0 10px 15px #85574720; }
.letter-paper { position: absolute; z-index: 2; top: 83px; left: 13px; display: grid; place-items: center; width: calc(100% - 26px); min-height: 154px; padding: 10px 10px 32px; border: 1px solid #e7cfc0; border-radius: 5px; background: #fffefa; text-align: center; opacity: 0; transform: translateY(62px); transition: transform .65s cubic-bezier(.22,.75,.2,1), opacity .15s; }
.game-letter.is-open .letter-paper { opacity: 1; transform: translateY(-59px); }
.letter-hand { font-size: 73px; line-height: 1; }
.letter-front { z-index: 3; top: 148px; height: 76px; border: 1px solid #d69d83; border-top: 0; border-radius: 0 0 7px 7px; background: #f2bfa8; clip-path: polygon(0 0, 50% 47%, 100% 0, 100% 100%, 0 100%); }
.letter-flap { z-index: 4; top: 112px; height: 89px; background: #f9d2bd; clip-path: polygon(0 0, 100% 0, 50% 84%); transform-origin: top center; transition: transform .6s ease; backface-visibility: hidden; }
.game-letter.is-open .letter-flap { z-index: 1; transform: rotateX(180deg); }
.letter-seal { position: absolute; z-index: 5; top: 150px; left: 50%; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #fff8ee; color: #d78971; font-size: 20px; transform: translateX(-50%); transition: opacity .15s; }
.game-letter.is-open .letter-seal { opacity: 0; }
.game-choose { margin: 17px 0 10px; color: #6b5850; font-size: 13px; font-weight: 700; text-align: center; }
.game-hands { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.hand-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 58px; padding: 8px; border: 1px solid #e5b9a5; border-radius: 10px; background: #fffaf5; color: #453b39; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hand-button:hover:not(:disabled) { background: #fae7db; }
.hand-button:disabled { opacity: .52; cursor: default; }
.hand-symbol { font-size: 23px; line-height: 1; }
.game-result-dialog { width: min(100% - 32px, 370px); max-height: 90svh; padding: 0; border: 1px solid #e8bcaa; border-radius: 10px; background: #fffdf9; color: #453b39; box-shadow: 0 22px 70px #3b211d45; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.game-result-dialog::backdrop { background: #362c2a99; }
.game-result-inner { padding: 28px 24px 24px; text-align: center; }
.game-result-kicker { margin: 0 0 10px; color: #ad6b55; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.game-result-inner h2 { margin: 0; font-size: 26px; line-height: 1.4; }
.game-result-inner > p:not(.game-result-kicker) { font-size: 13px; line-height: 1.7; }
.game-result-streak { margin: 16px 0 0; padding: 9px; border-radius: 8px; background: #fae7db; color: #86523f; font-weight: 700; }
.game-result-actions { display: grid; gap: 8px; margin-top: 20px; }
.replay-button, .game-result-close { min-height: 46px; padding: 8px 14px; border: 1px solid #d99d82; border-radius: 8px; background: #f8cbb7; color: #453b39; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.game-result-close { border-color: #e9cdbf; background: #fff; }
.hand-button:focus-visible, .replay-button:focus-visible, .game-close:focus-visible, .game-result-close:focus-visible { outline: 3px solid #864d39; outline-offset: 3px; }
@media (max-width: 640px) {
  .game-inner { padding: 16px; }
  .game-scene { min-height: 263px; }
  .game-bird { left: 3px; bottom: 5px; width: 66px; }
  .game-letter { transform: scale(.88); }
  .hand-button { flex-direction: column; gap: 3px; min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) { .letter-paper, .letter-flap, .letter-seal { transition-duration: .01ms; } }
