:root {
  --ink: #2a2118;
  --cream: #fff6e4;
  --leaf: #3e8f45;
  --sun: #ffb703;
  --berry: #e85d4c;
  --sky: #7ec8ff;
}

* { box-sizing: border-box; }

html, body, #app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #87c6ef;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  color: var(--ink);
}

#view { display: block; width: 100%; height: 100%; }

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.panel, .hud, .toast {
  pointer-events: auto;
}

.panel[hidden], .toast[hidden] {
  display: none;
}

.hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.pill {
  background: rgba(255, 246, 228, 0.92);
  border: 3px solid #3d2b1f;
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: 0 4px 0 #3d2b1f;
  font-size: 18px;
}

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 16px 64px;
  background: linear-gradient(180deg, rgba(126, 200, 255, 0.08), rgba(42, 33, 24, 0.18));
}

.card {
  width: min(920px, calc(100% - 32px));
  background: var(--cream);
  border: 4px solid #3d2b1f;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 0 #3d2b1f;
}

h1 {
  margin: 0 0 6px;
  font-size: 52px;
  letter-spacing: -1px;
  color: #2f6d34;
}

h2 { margin: 0 0 8px; font-size: 32px; }

p.lead { margin: 0 0 18px; font-size: 18px; }

.breeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.breed {
  border: 3px solid #3d2b1f;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.breed.on { background: #ffe08a; transform: translateY(-2px); }

.breed b { display: block; font-size: 16px; }
.breed span { display: block; font-size: 13px; opacity: 0.8; }

.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

button.big, button.small {
  font: inherit;
  font-weight: 700;
  border: 3px solid #3d2b1f;
  border-radius: 14px;
  background: var(--sun);
  box-shadow: 0 4px 0 #3d2b1f;
  cursor: pointer;
  color: var(--ink);
}

button.big { font-size: 22px; padding: 10px 18px; }
button.small { font-size: 16px; padding: 8px 12px; background: #fff; }

.keys { font-size: 15px; opacity: 0.85; }

.toast {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(42, 33, 24, 0.88);
  color: white;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 18px;
}
