:root {
  --bg: #fbf3e4;
  --panel: #fffaf1;
  --ink: #3b2414;
  --muted: #8a6a52;
  --dough: #d9a15b;
  --dough-dark: #b97d3a;
  --chip: #4a2a14;
  --accent: #c2502e;
}

* { box-sizing: border-box; }

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav a, .back { color: var(--accent); }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px;
  line-height: 1.65;
}

.page article { padding: 18px 0; border-bottom: 1px dashed #ead8bc; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
}

.bakery { text-align: center; }

h1 { font-size: 44px; margin: 0 0 8px; }
h2 { font-size: 26px; margin: 0 0 16px; }

.count { font-size: 32px; margin: 0; font-variant-numeric: tabular-nums; }
.rate, .hint { color: var(--muted); margin: 4px 0; }

.cookie {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 28px auto;
  display: block;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, var(--dough), var(--dough-dark));
  box-shadow: 0 10px 0 #9a6327, 0 18px 30px rgba(59, 36, 20, 0.25);
  transition: transform 0.08s ease;
}
.cookie:hover { transform: scale(1.03); }
.cookie:active { transform: scale(0.95) translateY(4px); box-shadow: 0 6px 0 #9a6327; }

.chip {
  position: absolute;
  width: 26px;
  height: 22px;
  background: var(--chip);
  border-radius: 45% 55% 50% 40%;
}
.c1 { top: 22%; left: 28%; }
.c2 { top: 30%; left: 62%; }
.c3 { top: 55%; left: 22%; }
.c4 { top: 62%; left: 55%; }
.c5 { top: 42%; left: 44%; }

.pop {
  position: fixed;
  pointer-events: none;
  font-weight: bold;
  color: var(--accent);
  animation: pop 0.8s ease-out forwards;
}
@keyframes pop {
  to { transform: translateY(-60px); opacity: 0; }
}

.shop {
  background: var(--panel);
  border: 2px solid #ead8bc;
  border-radius: 14px;
  padding: 20px;
}

#shop { list-style: none; padding: 0; margin: 0; }

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #ead8bc;
}
.item:last-child { border-bottom: none; }
.item-name { font-weight: bold; }
.item-desc { color: var(--muted); font-size: 14px; }

.buy {
  min-width: 92px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.buy:disabled { background: #cdb8a3; cursor: not-allowed; }

.reset {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

