* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: #fdf3e1; font-family: system-ui, sans-serif; color: #5a3410;
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
main { text-align: center; }
#count { font-size: clamp(3rem, 14vw, 6rem); font-weight: 800; }
#squirrel {
  width: min(80vw, 60vh, 420px); margin: 0 auto; cursor: pointer;
  touch-action: none; outline: none;
}
#squirrel svg { width: 100%; height: auto; display: block; pointer-events: none; }
#squirrel.open { transform: scale(1.04); }
.hint { opacity: .6; }
.bar { display: flex; gap: .75rem; justify-content: center; align-items: center; flex-wrap: wrap; padding: .5rem; }
.bar button, #board button { font: inherit; color: inherit; background: #f3d9b1; border: 1px solid #c97a2b; border-radius: 6px; padding: .3rem .6rem; cursor: pointer; }
#name { font-weight: 700; }
#name-input { font: inherit; width: 10em; max-width: 50vw; user-select: text; -webkit-user-select: text; }
#board { max-width: 92vw; margin: 0 auto .5rem; }
#board ol { text-align: left; display: inline-block; margin: .3rem 0; padding-left: 1.6rem; }
#board li.me { background: #ffd86b; font-weight: 700; border-radius: 4px; }

.float { position: fixed; pointer-events: none; font-weight: 800; font-size: 1.5rem; transform: translate(-50%, 0); animation: floatup .8s ease-out forwards; z-index: 10; }
@keyframes floatup { to { transform: translate(-50%, -90px); opacity: 0; } }
.milestone { position: fixed; top: 20%; left: 50%; transform: translateX(-50%); font-size: clamp(1.5rem, 8vw, 3rem); font-weight: 800; background: #ffd86b; padding: .4rem 1rem; border-radius: 12px; pointer-events: none; animation: pulse 1.6s ease-out forwards; z-index: 11; }
@keyframes pulse { 0% { transform: translateX(-50%) scale(.5); opacity: 0; } 15% { transform: translateX(-50%) scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-50%) scale(1); opacity: 0; } }
#squirrel { transition: transform .06s; }
#squirrel.open { transform: scale(1.06) rotate(-2deg); }
.float.golden { color: #b8860b; font-size: 2.2rem; text-shadow: 0 0 8px #ffd86b; white-space: nowrap; }
