/* うちのお雑煮。枠は game-ui.css の共通UI。ここにあるのはゲームの中身だけ */
a.g-icon-btn, a.g-btn { text-decoration: none; }
.zo-a { display: flex; align-items: center; justify-content: center; }

/* 遊ぶ画面: スマホ縦の1画面に収める */
.zo-play { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding-bottom: .5rem; overflow: hidden; }
.zo-play .g-stats { margin-bottom: .5rem; }
.zo-play .g-stat b { font-size: 1.0625rem; }

/* お椀（絵なので色は固定。台は面の色） */
.zo-stage { flex: 1 1 auto; min-height: 120px; margin-bottom: .625rem; display: flex; align-items: center; justify-content: center; background: var(--surface-container); }
.zo-bowl { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.zo-bowl svg { display: block; width: auto; height: 100%; max-width: 100%; max-height: 220px; }
.zo-new { animation: zo-drop 420ms var(--spring) both; transform-box: fill-box; transform-origin: center; }
@keyframes zo-drop { from { transform: translateY(-14px) scale(.6); opacity: 0; } }

.zo-q { margin: 0 0 .5rem; text-align: center; font-size: 1.25rem; font-weight: 900; color: var(--on-surface); }

.zo-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .375rem; }
.zo-opts.n3 { grid-template-columns: 1fr; }
.zo-opts.n5 .zo-opt:last-child { grid-column: 1 / -1; }
.zo-opt {
  min-height: 52px; padding: .375rem .75rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: inherit; line-height: 1.25; cursor: pointer;
}
.zo-opt b { font-size: 1rem; font-weight: 800; }
.zo-opt small { font-size: .6875rem; font-weight: 600; opacity: .8; }
.zo-opt.quiet { background: var(--surface-container-high); color: var(--on-surface-variant); }

.zo-foot { display: flex; align-items: center; justify-content: space-between; gap: .25rem; }
.zo-foot .g-icon-btn { width: 40px; height: 40px; flex: none; }
.zo-foot .g-icon-btn:disabled { opacity: .38; cursor: default; }
.zo-foot .g-note { line-height: 1.5; }

/* 結果 */
.zo-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1rem 1rem 1.375rem; margin-bottom: .75rem;
  background: var(--primary); color: var(--on-primary);
}
.zo-hero .zo-bowl { height: 150px; margin-bottom: .25rem; }
.zo-hero .zo-bowl svg { background: var(--primary-container); border-radius: var(--r-xl); padding: .25rem .5rem; box-sizing: border-box; }
.zo-hero small { font-size: .875rem; font-weight: 700; opacity: .85; }
.zo-area { font-size: 1.375rem; font-weight: 800; margin-top: .125rem; }
.zo-name { font-weight: 900; font-size: clamp(2.5rem, 13vw, 3.5rem); line-height: 1.15; letter-spacing: .02em; }
.zo-kana { font-size: .8125rem; font-weight: 700; opacity: .8; }
.zo-card { text-align: center; }
.zo-line { text-wrap: balance; word-break: auto-phrase; margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.6; color: var(--on-surface); }
.zo-w { display: inline-block; }
.zo-label { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; color: var(--on-surface-variant); }
.zo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-bottom: .75rem; }
.zo-chip {
  padding: .375rem .75rem; border-radius: var(--r-s); font-size: .8125rem; font-weight: 700; line-height: 1.4;
  background: var(--secondary-container); color: var(--on-secondary-container);
}
.zo-next { margin: 0 0 1.25rem; font-size: .8125rem; font-weight: 700; color: var(--on-surface-variant); }
.zo-check { margin-bottom: 1.25rem; }
.zo-check p { margin: 0 0 .5rem; font-size: .9375rem; font-weight: 800; color: var(--on-surface); }
.zo-check .g-seg { margin: 0; }
.zo-sub { margin: .5rem 0 0; }
.zo-sub .icon { font-size: 20px; }
/* 広告はボタンから離す（誤タップさせない） */
.zo-ad { margin: 3rem auto 1rem; text-align: center; }
.zo-ad small { display: block; margin-bottom: .25rem; font-size: 11px; color: var(--on-surface-variant); }
.zo-ad iframe { display: block; margin: 0 auto; border: 0; max-width: 100%; }

/* 決まった瞬間: 押した場所から色が広がり、地名が止まる */
.zo-reveal {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--primary); color: var(--on-primary); cursor: pointer; text-align: center; padding: 0 1rem;
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); animation: zo-open 620ms cubic-bezier(.2, 0, 0, 1) forwards;
}
.zo-reveal.out { animation: zo-fade 280ms ease forwards; }
.zo-reveal small { font-size: 1rem; font-weight: 700; opacity: .85; }
.zo-reveal strong { font-weight: 900; font-size: clamp(3.5rem, 19vw, 5.5rem); line-height: 1.2; }
.zo-reveal strong.done { animation: zo-land 460ms var(--spring-fast); }
.zo-reveal span { font-size: 1.75rem; font-weight: 900; opacity: 0; }
.zo-reveal span.on { opacity: 1; transition: opacity 240ms; }
@keyframes zo-open { to { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); } }
@keyframes zo-fade { from { clip-path: none; opacity: 1; } to { clip-path: none; opacity: 0; } }
@keyframes zo-land { from { transform: scale(1.28); } to { transform: none; } }

/* 背の低い画面では詰める */
@media (max-height: 640px) {
  .zo-play .g-header { min-height: 3.25rem; padding: .25rem 0; }
  .zo-play .g-stat { padding: .375rem .25rem; }
  .zo-q { font-size: 1.125rem; margin-bottom: .375rem; }
  .zo-opt { min-height: 46px; }
  .zo-opts { gap: .375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zo-new { animation: none; }
  .zo-reveal { animation: none; clip-path: none; }
}
