:root {
  --bg: #fff4e6;
  --ink: #2b1d14;
  --soft: #8a6f5c;
  --warm: #ff7a45;
  --warm2: #ffb347;
  --card: #ffffffaa;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 35%, #ffe2c4 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-user-select: none; user-select: none;
  overflow-x: hidden;
}
main {
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
header { text-align: center; }
.online { margin: 0; color: var(--soft); font-size: 14px; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3ecf6e; margin-right: 6px; vertical-align: middle;
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; text-align: center; }
h1 { font-size: clamp(32px, 9vw, 48px); margin: 0 0 6px; letter-spacing: -0.5px; transition: transform .3s; }
.sub { margin: 0 0 28px; color: var(--soft); min-height: 1.3em; }

#hand {
  position: relative; width: 210px; height: 210px; border-radius: 50%;
  border: none; cursor: pointer; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ffd9b8 70%);
  box-shadow: 0 12px 40px #ff7a4540, inset 0 -6px 14px #ff7a4525;
  transition: transform .15s ease;
}
#hand.holding { transform: scale(.94); animation: tremble .12s infinite; }
#hand.shook { animation: pop .5s ease; }
@keyframes tremble { 0%{translate:0 0} 25%{translate:1px -1px} 50%{translate:-1px 1px} 75%{translate:1px 1px} }
@keyframes pop { 0%{transform:scale(.9)} 40%{transform:scale(1.12) rotate(-6deg)} 70%{transform:scale(.97) rotate(4deg)} 100%{transform:scale(1)} }
.emoji { font-size: 92px; line-height: 1; display: block; }
.ring { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); pointer-events: none; }
.ring-bg { fill: none; stroke: #ff7a4520; stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--warm); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }

.burst { position: absolute; left: 50%; top: 60%; pointer-events: none; }
.burst span {
  position: absolute; font-size: 26px; left: 0; top: 0;
  animation: fly 1.1s ease-out forwards;
}
@keyframes fly {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(var(--r)); opacity: 0; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: var(--card); border-radius: 16px; padding: 12px 6px; text-align: center; backdrop-filter: blur(6px); }
.stats strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stats strong.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.25); color: var(--warm); } }
.stats span { font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .6px; }

.feed { list-style: none; margin: 0; padding: 0; min-height: 66px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.feed li { font-size: 14px; color: var(--soft); background: var(--card); padding: 6px 14px; border-radius: 999px; animation: feedin .4s ease; }
@keyframes feedin { from { opacity: 0; transform: translateY(8px); } }

footer { text-align: center; color: var(--soft); font-size: 14px; }
footer p { margin: 4px 0; }
.tiny { font-size: 12px; opacity: .8; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 40%, #ffb34766, transparent 70%);
}
body.pulse::before { animation: glow 1s ease; }
@keyframes glow { 30% { opacity: 1; } }
