@font-face {
  font-family: "Peaberry";
  src: url("PeaberryMono.eot");
  src:
    url("PeaberryMono.eot?#iefix") format("embedded-opentype"),
    url("PeaberryMono.woff2") format("woff2"),
    url("PeaberryMono.woff") format("woff"),
    url("PeaberryMono.ttf") format("truetype"),
    url("PeaberryMono.svg#PeaberryMono") format("svg");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a472a, #0d2818 100%);
  font-family: "Peaberry", "Segoe UI", "Quicksand", system-ui, monospace;
  padding: 20px;
  position: relative;
}

body::before {
  content: "🍖";
  position: absolute;
  font-size: 11.25rem;
  opacity: 0.05;
  top: 20px;
  right: 20px;
  pointer-events: none;
}

/* Game Header */
.game-header {
  text-align: center;
  margin-bottom: 15px;
  padding: 0 10px;
}

.game-title {
  font-family: "Peaberry", monospace;
  font-size: 2rem;
  color: #f7d44a;
  text-shadow: 3px 3px 0 #5a3e2b;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffefcf, #f7d44a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  font-weight: bold;
}

.game-subtitle {
  font-size: 0.8rem;
  color: #d4b87a;
  font-family: "Peaberry", monospace;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
}

/* Game Container */
.game-container {
  background: #3c2a1f;
  border-radius: 48px;
  padding: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  border: 1px solid #8b6946;
}

.game-wrapper {
  background: #5a3e2b;
  border-radius: 32px;
  padding: 20px;
  box-shadow:
    inset 0 0 0 2px #8b6946,
    0 8px 20px rgba(0, 0, 0, 0.3);
}

canvas {
  display: block;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: url("../assets/CatPawCursors-2.0/png files/Black1-Cat-Paw-PNG.png") 12 4, auto;
  background-color: #6c8c5e;
}

/* UI Panel */
.ui-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.stats {
  background: #2e241f;
  padding: 12px 28px;
  border-radius: 60px;
  color: #ffefcf;
  font-weight: bold;
  display: flex;
  gap: 35px;
  font-size: 1.2rem;
  backdrop-filter: blur(4px);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: "Peaberry", monospace;
  letter-spacing: 0.0625rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: #d4b87a;
  font-family: "Peaberry", monospace;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #f7d44a;
  text-shadow: 0 2px 0 #7a5c2e;
  font-family: "Peaberry", monospace;
}

.controls {
  display: flex;
  gap: 15px;
}

button {
  background: #f5bc70;
  border: none;
  font-size: 1.15rem;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 40px;
  color: #3b2a1f;
  cursor: pointer;
  font-family: "Peaberry", monospace;
  transition: all 0.15s ease;
  box-shadow: 0 4px 0 #8b5a2b;
  letter-spacing: 1.5px;
}

button:hover {
  background: #ffce8a;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #8b5a2b;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8b5a2b;
}

.pet-selector {
  display: flex;
  gap: 12px;
  background: #2e241fcc;
  backdrop-filter: blur(6px);
  padding: 8px 24px;
  border-radius: 60px;
  border: 1px solid #8b6946;
}

.pet-btn {
  padding: 6px 16px;
  font-size: 1rem;
  background: #4a3729;
  color: #ffefcf;
  box-shadow: 0 2px 0 #2e1f15;
  font-family: "Peaberry", monospace;
}

.pet-btn.active {
  background: #f5bc70;
  color: #2e241f;
  box-shadow:
    0 0 0 2px #ffefcf,
    0 2px 8px gold;
}

.instructions {
  background: #1f1915cc;
  backdrop-filter: blur(4px);
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.9rem;
  color: #eeddbb;
  font-weight: 500;
  font-family: "Peaberry", monospace;
  letter-spacing: 0.0313rem;
  text-align: center;
  margin-top: 15px;
}
