/* GOOSE DEFENSE - Cottagecore Tower Defense Aesthetic */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, #c8e6c9 0%, #e8f5e9 30%, #f1f8e9 60%, #fffde8 100%);
  background-attachment: fixed;
  color: #2e4a2e;
  min-height: 100vh;
  line-height: 1.6;
}

/* HEADER */
header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  background: linear-gradient(180deg, #a5d6a7 0%, #c8e6c9 100%);
  border-bottom: 3px dashed #81c784;
  position: relative;
}

.threat-badge {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  padding: 0.3rem 1rem;
  border: 2px dashed #ff6f00;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

h1 {
  font-size: 2.5rem;
  color: #1b5e20;
  text-shadow: 2px 2px 0 #a5d6a7;
  margin-bottom: 0.2rem;
}

.subtitle {
  font-size: 1.3rem;
  font-style: italic;
  color: #33691e;
}

.tagline {
  font-size: 0.85rem;
  color: #558b2f;
  margin-top: 0.5rem;
}
/* PANELS */
.panel {
  max-width: 750px;
  margin: 1.5rem auto;
  background: #fffde8;
  border: 2px dashed #81c784;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 3px 3px 0 #c8e6c9;
}

.panel h2 {
  font-size: 1.5rem;
  color: #2e7d32;
  border-bottom: 2px dashed #a5d6a7;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* INSTRUCTIONS */
.instructions ul {
  list-style: none;
  padding-left: 0;
}

.instructions li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.instructions li::before {
  content: "🦆";
  position: absolute;
  left: 0;
}

/* GAME HUD */
.game-hud {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.hud-item {
  background: #e8f5e9;
  border: 2px dashed #81c784;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.hud-label { color: #558b2f; }

#score, #wave { color: #e65100; }
#highscore { color: #2e7d32; }

/* PICNIC ITEMS */
.picnic-items {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  letter-spacing: 0.5rem;
}

.picnic-item {
  display: inline-block;
  transition: all 0.3s ease;
}

.picnic-item.lost {
  filter: grayscale(1);
  opacity: 0.3;
  transform: scale(0.8);
}
/* PLAY FIELD */
.field-container {
  display: flex;
  justify-content: center;
}

.play-field {
  width: 100%;
  max-width: 620px;
  height: 400px;
  background: linear-gradient(180deg, #dcedc8 0%, #c5e1a5 40%, #aed581 100%);
  border: 3px dashed #66bb6a;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

/* START / GAME OVER SCREENS */
.start-screen, .game-over-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 232, 0.92);
  z-index: 10;
}

.hidden { display: none !important; }

.start-emoji { font-size: 4rem; margin-bottom: 0.5rem; }

.start-btn {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  padding: 0.7rem 2rem;
  background: #ff6f00;
  color: #fff;
  border: 3px dashed #e65100;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.start-btn:hover {
  background: #e65100;
  transform: scale(1.05);
}

.start-sub {
  margin-top: 0.5rem;
  font-style: italic;
  color: #558b2f;
  font-size: 0.9rem;
}

.game-over-msg {
  font-size: 1.1rem;
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 1rem;
  color: #b71c1c;
  font-weight: bold;
  max-width: 400px;
}

.final-score {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 1rem;
}
/* GOOSE STYLING */
.goose {
  position: absolute;
  font-size: 2.2rem;
  cursor: pointer;
  user-select: none;
  animation: goose-appear 0.3s ease-out;
  z-index: 5;
  transition: transform 0.1s;
}

.goose:hover { transform: scale(1.2); }

.goose.mega {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 6px #ff6f00);
}

@keyframes goose-appear {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* HONK FLASH */
.honk-flash {
  position: absolute;
  font-size: 0.9rem;
  font-weight: bold;
  color: #e65100;
  pointer-events: none;
  animation: honk-fade 1.2s ease-out forwards;
  z-index: 20;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #fff;
}

@keyframes honk-fade {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.3); }
}

/* STEAL FLASH (when goose escapes) */
.steal-flash {
  position: absolute;
  font-size: 1rem;
  font-weight: bold;
  color: #b71c1c;
  pointer-events: none;
  animation: steal-fade 1.5s ease-out forwards;
  z-index: 20;
  white-space: nowrap;
}

@keyframes steal-fade {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-50px); }
}

/* HONK LOG */
.honk-log {
  max-width: 620px;
  margin: 0.8rem auto 0;
  max-height: 80px;
  overflow-y: auto;
  background: #f1f8e9;
  border: 1px dashed #a5d6a7;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.log-title { font-weight: bold; color: #558b2f; }
.log-entry { color: #33691e; margin: 0.15rem 0; }
/* HIGH SCORES TABLE */
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.score-table th {
  background: #c8e6c9;
  color: #1b5e20;
  padding: 0.5rem;
  border: 1px dashed #81c784;
  text-align: left;
}

.score-table td {
  padding: 0.4rem 0.5rem;
  border: 1px dashed #c8e6c9;
}

.score-table tr:nth-child(even) { background: #f1f8e9; }

/* INTEL REPORT */
.classified {
  background: #ffebee;
  color: #c62828;
  padding: 0.4rem 0.8rem;
  border: 1px dashed #ef9a9a;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.report-body p {
  margin-bottom: 0.8rem;
}

/* WEBRING */
.webring-section {
  text-align: center;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 3px dashed #81c784;
  background: #c8e6c9;
  color: #33691e;
  font-size: 0.85rem;
}

.footer-honk {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #e65100;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .panel { margin: 1rem 0.5rem; padding: 1rem; }
  .play-field { height: 320px; }
  .game-hud { font-size: 0.9rem; }
  .goose { font-size: 1.8rem; }
  .goose.mega { font-size: 2.8rem; }
}