/* Weird Baby: Snack Stacker — style.css
   Dependency-free, system fonts only, portrait-friendly + desktop. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d8cfc0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  cursor: grab;
}
#game:active { cursor: grabbing; }

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(20, 14, 8, 0.35);
  z-index: 10;
  overflow-y: auto;
}
.overlay.ob { background: rgba(20, 14, 8, 0.14); pointer-events: none; align-items: flex-start; }
.overlay.ob .card { pointer-events: auto; margin-top: 46px; }
.overlay.ob .card { padding: 14px 18px; max-width: 380px; }
.overlay.ob .big { font-size: 1rem; padding: 10px; margin: 8px 0; }
.overlay.ob .hint { margin-top: 4px; }
.skip { display: block; margin: 8px auto 0; padding: 8px 16px; background: none; border: 1px solid #b6a793; border-radius: 8px; color: #594767; font: inherit; cursor: pointer; }

.panel {
  background: #fff8ec;
  border-radius: 18px;
  padding: 28px 34px;
  max-width: 420px;
  width: 88%;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  color: #2a2118;
  /* FIX B: never taller than the embed, scroll internally when it overflows
   * so menu/onboarding buttons stay reachable on short embeds. */
  max-height: 100%;
  overflow-y: auto;
  margin: auto;
}
.panel.small { max-width: 380px; }

h1 { font-size: 2.1rem; line-height: 1.05; color: #7a3a1d; margin-bottom: 6px; }
h2 { font-size: 1.5rem; color: #7a3a1d; margin-bottom: 10px; }
.sub { color: #6b5d49; margin-bottom: 18px; }

.big {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px 0;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  color: #fff;
  background: #e8593f;
  cursor: pointer;
  box-shadow: 0 4px 0 #b8432f;
}
.big:focus-visible { outline: 3px solid #ffb380; }
.big:hover { background: #f26b52; }
.big:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8432f; }

p { margin: 8px 0; line-height: 1.4; }
.hint, .credit { font-size: 0.85rem; color: #8a7a63; margin-top: 14px; }

.stat { font-size: 1.05rem; color: #4a3d2c; }
.trophy { color: #b8860b; font-weight: 700; font-size: 1.2rem; }

.trophy-panel .trophy-big { font-size: 4rem; line-height: 1; margin-bottom: 6px; }

@media (max-width: 560px) {
  .panel { padding: 22px 22px; }
  h1 { font-size: 1.7rem; }
  .big { padding: 13px 0; }
}
