/* 🍦 내기 게임(폭탄 · 카드 · 부엉이) 공통 모양. 색 · 버튼 · 결과 카드는 티슈 게임과 같은 톤 */
:root { --bg:#F6EFE6; --ink:#2B2420; --sub:#8A7C70; --line:#E8DCCD; --ghost:#F1ECE6; --accent:#FF7A59; --bad:#E5484D; --good:#2FA67A; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; height:100%; background:var(--bg); color:var(--ink); font-family:Pretendard,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;
  overscroll-behavior:none; touch-action:manipulation; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; overflow:hidden; }
main { position:relative; height:100%; max-width:480px; margin:0 auto; display:flex; flex-direction:column; align-items:center;
  padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
header { width:100%; display:flex; align-items:center; gap:10px; }
header a { color:var(--sub); text-decoration:none; font-size:14px; }
header .ttl { margin-left:auto; font-size:13px; color:var(--sub); }
header .snd { border:0; background:none; font-size:18px; padding:2px 4px; cursor:pointer; }
img { -webkit-user-drag:none; user-select:none; }

/* 시작 화면 */
.start { flex:1; width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; }
.start h1 { margin:0; font-size:26px; letter-spacing:-0.02em; }
.rules { margin:0; padding:0; list-style:none; font-size:14.5px; color:#5E544B; line-height:1.75; }
.rules b { color:var(--ink); }
.chips { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; }
.chips button { font:inherit; border:1.5px solid var(--line); background:#fff; color:var(--ink); border-radius:999px; padding:7px 13px; font-size:14px; font-weight:700; cursor:pointer; }
.chips button.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.chiplabel { font-size:12.5px; color:var(--sub); margin-bottom:-6px; }
.fine { font-size:11.5px; color:#B0A498; }

button.big, .btns button { font:inherit; border:0; border-radius:16px; font-weight:800; cursor:pointer; }
button.big { width:100%; max-width:320px; padding:17px 0; font-size:18px; background:var(--ink); color:#fff; box-shadow:0 6px 0 #00000022; }
button.big:active { transform:translateY(2px); box-shadow:0 4px 0 #00000022; }

/* 결과 카드 */
.result { position:fixed; inset:0; background:rgba(43,36,32,.55); display:none; align-items:center; justify-content:center; padding:20px; z-index:50; }
.result.on { display:flex; animation:fadein .2s; }
@keyframes fadein { from { opacity:0; } }
.card { width:100%; max-width:360px; background:#fff; border-radius:24px; padding:22px 20px 16px; text-align:center; animation:popin .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes popin { from { transform:scale(.8); opacity:0; } }
.card .pic { height:110px; display:flex; align-items:center; justify-content:center; font-size:76px; }
.card .pic img { max-height:110px; max-width:160px; }
.card .title { display:inline-block; margin-top:8px; background:#FFE8DF; color:#B4462A; border-radius:999px; padding:7px 14px; font-weight:900; font-size:16px; }
.card .who { margin:12px 0 2px; font-size:21px; font-weight:900; line-height:1.4; letter-spacing:-0.02em; }
.card .msg { font-size:13.5px; color:var(--sub); }
.btns { display:grid; grid-template-columns:1fr 1.3fr; gap:8px; margin-top:16px; }
.btns button { padding:14px 0; font-size:15px; }
.btns .primary { background:var(--ink); color:#fff; }
.btns .ghost { background:var(--ghost); color:var(--ink); }
.btns button[disabled] { opacity:.5; }
.card .more { display:block; margin-top:10px; padding:13px 0; border-radius:14px; background:#EEF3FF; color:#3366FF; font-weight:800; font-size:14.5px; text-decoration:none; text-align:center; }
.card .app { display:block; margin-top:12px; font-size:13px; color:#3366FF; text-decoration:none; font-weight:700; }
.card .fine { margin-top:8px; }

/* 화면 흔들기 · 번쩍 */
.shake { animation:shake .4s; }
@keyframes shake { 15% { transform:translate(-9px,3px); } 35% { transform:translate(8px,-4px); } 55% { transform:translate(-6px,2px); } 75% { transform:translate(4px,-2px); } }
.flash { position:fixed; inset:0; background:#fff; z-index:40; pointer-events:none; animation:flash .35s forwards; }
@keyframes flash { from { opacity:1; } to { opacity:0; } }
.toast { position:fixed; left:50%; top:22%; transform:translateX(-50%); background:rgba(43,36,32,.88); color:#fff; padding:10px 16px; border-radius:999px; font-weight:800; font-size:15px; z-index:30; white-space:nowrap; animation:toast 1.4s forwards; pointer-events:none; }
@keyframes toast { 0% { opacity:0; transform:translate(-50%,8px); } 12%,80% { opacity:1; transform:translate(-50%,0); } 100% { opacity:0; } }
.confetti { position:fixed; top:-12px; width:9px; height:14px; border-radius:2px; z-index:45; pointer-events:none; animation:fall linear forwards; }
@keyframes fall { to { transform:translate(var(--dx), 110vh) rotate(var(--r)); } }
