* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
}

html, body {
  margin: 0;
  font-family: "Courier New", monospace;
  background: #fff8cc;
  color: #2b2b2b;
  overflow: hidden;
  height: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: linear-gradient(90deg, #fff176, #aeea00);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.logo img {
  width: 75px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #2b2b2b;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background-color 0.3s, transform 0.3s;
}

nav a:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.05);
}

#menuBtn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#gameArea {
  position: relative;
  width: 100vw;
  height: calc(100vh - 80px);
  overflow: hidden;
}

#ui {
  position: fixed;
  top: clamp(90px, 15vh, 150px);
  left: 25px;
  background: rgba(255,255,255,0.85);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#shopBtn {
  background: #fff176;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

#shopBtn:hover {
  transform: scale(1.05);
}

.lemon {
  position: absolute;
  width: 90px;
  height: 90px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.lemon:hover {
  transform: scale(1.15);
}

.lemon.big {
  width: 180px;
  height: 180px;
}

#shopPanel {
  position: fixed;
  top: 80px;
  right: 0;
  width: 260px;
  height: calc(100vh - 80px);
  background: #fffdf0;
  box-shadow: -5px 0 15px rgba(0,0,0,0.15);
  padding: 40px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

#shopPanel.open {
  transform: translateX(0);
}

.upgrade {
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #fff176;
  transition: transform 0.2s, background 0.2s;
}

.upgrade:hover {
  transform: scale(1.05);
  background: #ffeb3b;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, p, a {
  overflow-wrap: break-word;
  word-break: break-word;
}