/* Bin Guide — green earth edition. Dark green theme, picture tiles, playful fonts, sounds. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  background: linear-gradient(180deg, #e8f5e9 0%, #f1f8e9 55%, #e0f2f1 100%);
  color: #222;
  line-height: 1.45;
  min-height: 100vh;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
header {
  background: linear-gradient(120deg, #0b3d2e, #1b5e20 55%, #43a047);
  color: #fff;
  border-radius: 22px;
  padding: 20px 18px 16px;
  margin-top: 8px;
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.35);
  position: relative;
}
h1 { font-size: 2.3rem; margin: 0 0 4px; letter-spacing: 0.5px; }
h2 { font-size: 1.25rem; margin: 28px 0 10px; color: #1b5e20; }
.sub { margin: 0; color: #fff; font-size: 1.05rem; }
.sound-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}
.ask label { display: block; font-weight: 700; margin: 18px 0 6px; font-size: 1.1rem; }
.ask input[type="text"] {
  width: 100%;
  font-size: 1.15rem;
  font-family: inherit;
  padding: 14px 14px;
  border: 3px solid #1b5e20;
  border-radius: 999px;
  background: #fff;
  outline: none;
}
.ask input[type="text"]:focus { border-color: #43a047; box-shadow: 0 0 0 4px #a5d6a7; }
.row { display: flex; gap: 10px; margin-top: 12px; }
button { font-family: inherit; cursor: pointer; }
.primary {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 14px;
  border: 3px solid #222;
  border-radius: 999px;
  background: linear-gradient(120deg, #43a047, #2e7d32);
  color: #fff;
  box-shadow: 0 4px 0 #222;
}
.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #222; }
.photo-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px;
  font-size: 1.05rem; font-weight: 700;
  border: 3px solid #222; border-radius: 999px;
  background: linear-gradient(120deg, #aed581, #7cb342);
  color: #222; cursor: pointer;
  box-shadow: 0 4px 0 #222;
}
.photo-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #222; }
.secondary {
  margin-top: 14px;
  font-size: 1.05rem; font-weight: 700;
  padding: 12px 20px;
  border: 3px solid #222; border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 #222;
}
.secondary:active { transform: translateY(2px); box-shadow: 0 1px 0 #222; }
.note { background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 12px; border-radius: 0 8px 8px 0; }
.honest { font-size: 0.85rem; color: #555; }
.result, .unknown {
  margin-top: 18px;
  background: #fff;
  border: 3px solid #ddd;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  position: relative;
}
.result { animation: pop 0.35s ease-out; }
@keyframes pop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.confetti {
  position: absolute;
  top: -8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  animation: confetti-fall 1s ease-in forwards;
  z-index: 1;
}
@keyframes confetti-fall {
  to { transform: translateY(240px) rotate(360deg); opacity: 0; }
}
.great-line {
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: #1b5e20;
  background: #e8f5e9;
  border-radius: 12px;
  padding: 8px 12px;
}
.bin-line { font-size: 1.6rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.bin-emoji { font-size: 1.8rem; }
.dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid #222; }
.item-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.reason { font-size: 1.05rem; margin: 0 0 8px; }
.tip { margin: 0 0 8px; color: #333; background: #e8f5e9; border-radius: 10px; padding: 8px 10px; }
.council { font-size: 0.85rem; color: #555; margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  font-size: 1rem; font-weight: 700; padding: 10px 16px;
  border: 2px solid #222; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 0 #222;
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 700;
  padding: 14px 6px 12px;
  border: 2px solid #222; border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 0 #222;
}
.tiles button:active { transform: translateY(2px); box-shadow: 0 1px 0 #222; }
.tile-img { font-size: 2.4rem; line-height: 1; }
.tile-label { font-size: 0.95rem; }
.tiles button:nth-child(1) { background: #c8e6ff; }
.tiles button:nth-child(2) { background: #fff9c4; }
.tiles button:nth-child(3) { background: #e1e1e1; }
.tiles button:nth-child(4) { background: #dcedc8; }
.tiles button:nth-child(5) { background: #ffccbc; }
.tiles button:nth-child(6) { background: #cfd8dc; }
.bin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font-size: 1rem; font-weight: 700; padding: 10px 16px;
  border: 2px solid #222; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 0 #222;
}
.tab[aria-selected="true"] { background: #333; color: #fff; }
.tab-recycling[aria-selected="true"] { background: #1565c0; border-color: #1565c0; }
.tab-compost[aria-selected="true"] { background: #2e7d32; border-color: #2e7d32; }
.tab-general[aria-selected="true"] { background: #616161; border-color: #616161; }
.tab-hazardous[aria-selected="true"] { background: #c62828; border-color: #c62828; }
.bin-desc { font-weight: 700; margin: 10px 0; }
.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.item-list button {
  font-size: 1rem; font-weight: 700; padding: 10px 16px;
  border: 2px solid #222; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 0 #222;
}
.item-list button:active { transform: translateY(2px); box-shadow: none; }
footer { margin-top: 32px; font-size: 0.85rem; color: #555; border-top: 2px dashed #43a047; padding-top: 12px; }
footer strong {
  background: #a5d6a7;
  border: 2px solid #222;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 1rem;
}
