/* スマホ結果。表示領域（iPhone 14 の Safari で約 390×664）にすべて収める。高さは 100dvh 基準でスクロールさせない */
:root { --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #F3F1EC; color: #2B2F36; font-family: var(--font); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { overflow: hidden; }
[hidden] { display: none !important; }
#phone { position: relative; height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; }
/* 排紙口（濃い帯＋スリット） */
.slot { position: relative; z-index: 3; flex: none; height: 64px; background: #2B2F36; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.slot > span { position: absolute; top: 12px; left: 0; right: 0; text-align: center; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.slit { width: min(300px, 80vw); height: 12px; border-radius: 6px; background: #111; }
.body { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; }
[data-state] { display: none; }
#phone[data-phase="receiving"] [data-state="receiving"],
#phone[data-phase="printing"] [data-state="paper"],
#phone[data-phase="done"] [data-state="paper"],
#phone[data-phase="done"] [data-state="done"],
#phone[data-phase="none"] [data-state="none"] { display: flex; }
.state { position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 0 24px; }
.state b { font-size: 19px; }
.state .en { font-size: 12px; color: #6B7079; }
.state .pochi { width: 130px; }
.none { padding: 0 30px; }
.none b { font-size: 17px; line-height: 1.5; }
.none > span { font-size: 13px; line-height: 1.6; }
.none > span.en { font-size: 11px; }
#mine { margin-top: 16px; height: 36px; padding: 0 16px; border: 1px solid #2B2F36; border-radius: 18px; background: none; color: #2B2F36; font: 700 12px var(--font); }
/* レシート：排紙口から下りてくる。画像そのものを動かす（長押しで保存できるように） */
.paper { position: absolute; top: -6px; left: 0; right: 0; bottom: 56px; overflow: hidden; justify-content: center; }
#receipt { display: block; width: min(300px, 80vw); max-height: 100%; object-fit: contain; object-position: top; align-self: flex-start; transform: translateY(-100%); box-shadow: 0 8px 20px rgba(0,0,0,.12); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.hint { position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; opacity: 0; transition: opacity .5s; }
.hint.on { opacity: 1; }
.hint > span { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; background: #2B2F36; color: #fff; font-size: 12px; font-weight: 700; }
.hint i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
