* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; min-height: 100dvh; min-height: var(--app-h, 100dvh);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: var(--bg, #2d4250);
  color: #fbf8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  user-select: none;
  -webkit-user-select: none;
  word-break: keep-all;
}
:focus-visible { outline: 3px solid #f2cd78; outline-offset: 2px; }
.fun-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px; }
.fun-head a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 18px; font-weight: 800; text-decoration: none; }
.fun-coins { padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.26); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fun-coins b { color: #f2cd78; }
.fun-main { flex: 1; display: flex; flex-direction: column; gap: 12px; width: min(100%, 460px); margin: 0 auto; padding: 8px 14px 18px; }
.fun-card { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); }
.fun-card h2 { margin: 0 0 6px; font-size: 19px; }
.fun-card p { margin: 0; color: rgba(251, 248, 240, 0.78); font-size: 14px; line-height: 1.5; }
.fun-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: #f2cd78; color: #2a2112; font: inherit; font-size: 17px; font-weight: 800; touch-action: manipulation; cursor: pointer; }
.fun-btn:disabled { background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.55); }
.fun-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.fun-chip { min-height: 46px; border: 2px solid rgba(255, 255, 255, 0.22); border-radius: 12px; background: transparent; color: #fbf8f0; font: inherit; font-size: 15px; font-weight: 700; }
.fun-chip.on { border-color: #f2cd78; background: rgba(242, 205, 120, 0.2); color: #f2cd78; }
.fun-note { margin: 0; color: rgba(251, 248, 240, 0.62); font-size: 12.5px; line-height: 1.5; text-align: center; }
