/* タイトル演出、モード入口、ゲームと独立した杯数カウンター。 */
.stage > .journey { margin: 0 -20px; }
.journey { position: relative; isolation: isolate; min-height: 100svh; padding: max(28px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #ffd319; gap: 20px; }
.journey__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.logo-launch { position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: 30px; }
.logo-launch img { display: block; width: 100%; height: auto; border-radius: 24px; }
.logo-launch:focus-visible { outline: 4px solid var(--ink); outline-offset: 7px; }
.journey__hint { font-size: 14px; font-weight: 800; }
.journey__sound, .journey__back { min-height: 44px; padding: 10px 20px; font-size: 12px; font-weight: 800; border: 2px solid currentColor; border-radius: 30px; position: relative; z-index: 2; }
.journey__sound { margin-top: 6px; }
.is-launching .journey__hint, .is-launching .journey__sound { opacity: 0; }
.foam-transition { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; visibility: hidden; }
.is-launching .foam-transition { visibility: visible; }
.foam-transition__bubble { position: absolute; left: var(--x); bottom: var(--foam-origin, 0px); width: var(--s); height: var(--s); border-radius: 50%; background: #fff8e4; opacity: 0; }
.is-launching .foam-transition__bubble { animation: foam-pop .8s var(--delay) ease-out both; }
.foam-transition__wave { position: absolute; top: 100%; left: -15%; width: 130%; height: 125%; background: #fff8e4; border-radius: 45% 50% 0 0 / 12% 10% 0 0; }
.is-launching .foam-transition__wave { animation: foam-sweep .75s .2s ease-in both; }
.journey--launch { cursor: pointer; }
.journey--modes { background: var(--cream); justify-content: center; gap: 22px; }
.mode-heading { width: 100%; display: grid; justify-items: center; gap: 16px; }
.mode-heading .mode-heading__logo { width: clamp(136px, 24svh, 190px); margin: 0; line-height: 1; outline: none; }
.mode-heading__logo img { display: block; width: 100%; height: auto; border-radius: 22px; }
.mode-heading > p:last-child { font-size: 14px; font-weight: 800; }
.mode-cards { width: 100%; display: grid; gap: 14px; }
.mode-card { width: 100%; min-height: 82px; border: var(--line); box-shadow: var(--drop); border-radius: 20px; padding: 15px 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 16px; text-align: left; align-items: center; background: #ffe58a; transition: transform .1s, box-shadow .1s; }
.mode-card--party { background: #ffb471; }
.mode-card--mixed { background: #ffc6dc; }
.mode-card:active { transform: translate(4px, 4px); box-shadow: none; }
.mode-card strong { display: block; min-width: 0; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.mode-card__art { display: block; width: 44px; height: 44px; }
.mode-card__art svg { display: block; width: 100%; height: 100%; }
.mode-card__arrow { display: block; width: 20px; height: 20px; }
.menu-brand { padding: 22px 68px 16px 20px; background: #ffd319; border-bottom: var(--line); display: flex; align-items: center; gap: 12px; }
.menu-brand img { width: 76px; height: 76px; border-radius: 16px; }
.menu-brand__eyebrow { font-size: 9px; letter-spacing: .08em; font-weight: 800; }
.menu-brand__title { font-family: var(--display); font-size: 19px; font-weight: 400; line-height: 1.5; }
.mode-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.mode-summary > span { font-family: var(--display); font-size: 22px; font-weight: 400; }
.mode-summary button { min-height: 44px; border: 2px solid var(--ink); padding: 5px 12px; border-radius: 30px; font-size: 12px; background: white; }
.mode-summary__note { font-size: 11px; margin: 4px 0 18px; color: var(--muted); }
.topbar { padding-right: 48px; }
.drink-launch { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(16px, calc((100vw - 430px)/2 + 16px)); width: 46px; height: 46px; border: 2.5px solid var(--ink); border-radius: 15px; box-shadow: 3px 3px 0 var(--ink); background: #fffdf5; z-index: 30; padding: 6px; }
.drink-launch[hidden] { display: none; }
body:has(#banner-top:not([hidden])) .drink-launch { top: max(64px, calc(env(safe-area-inset-top) + 54px)); }
.drink-launch svg { display: block; width: 100%; height: 100%; }
.drink-launch:active { transform: translate(3px, 3px); box-shadow: none; }
.drink-dialog { position: fixed; inset: 0; margin: auto; width: min(92vw, 400px); max-height: min(86dvh, 760px); border: var(--line); border-radius: 24px; background: var(--cream); color: var(--ink); box-shadow: 7px 7px 0 #2a1708; padding: 0; overscroll-behavior: contain; }
.drink-dialog::backdrop { background: #201a14aa; backdrop-filter: blur(3px); }
.drink-sheet { padding: 20px; }
.drink-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drink-sheet__head h2 { font-family: var(--display); font-size: 20px; font-weight: 400; }
.drink-close { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: white; font-size: 26px; flex-shrink: 0; }
.drink-hint { font-size: 11px; color: var(--muted); margin: 8px 0 18px; }
.drink-rows { display: grid; gap: 12px; }
.drink-row { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; background: white; border: 2px solid var(--ink); border-radius: 16px; }
.drink-person { font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.drink-person .input { width: 100%; min-width: 0; padding: 6px; font-size: 12px; }
.drink-stepper { display: grid; grid-template-columns: 44px 34px 44px; align-items: center; text-align: center; gap: 2px; }
.drink-stepper button { width: 44px; height: 44px; border-radius: 12px; background: var(--beer); border: 2px solid var(--ink); font-size: 24px; font-weight: 800; }
.drink-stepper button:disabled { opacity: .3; cursor: default; }
.drink-stepper output { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.drink-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.drink-tools button { min-height: 44px; background: white; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 800; }
.drink-reset, .drink-remove { min-height: 44px; font-size: 12px; text-decoration: underline; }
.drink-reset { margin-top: 10px; }
.drink-remove { color: #9c3024; }
@keyframes foam-pop { 0% { opacity: 0; transform: translateY(100%) scale(.7); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-95svh) scale(1.25); } }
@keyframes foam-sweep { to { transform: translateY(-100%); } }
@media (max-width: 360px) { .journey { padding-inline: 18px; } .mode-card { gap: 12px; padding-inline: 14px; } .mode-card strong { font-size: 18px; } .drink-sheet { padding: 14px; } .drink-row { padding: 10px; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .journey *, .journey *::before, .journey *::after { animation: none !important; transition: none !important; } }
