* { box-sizing: border-box; }
:root{
  --cream:#fffaf2;
  --paper:#fffdf8;
  --ink:#4b3a2f;
  --terracotta:#c96f4a;
  --gold:#e8b44f;
  --olive:#8b9a62;
  --peach:#f6d2ba;
  --soft:#f4eadc;
  --line:#e7d7c5;
}
body{
  margin:0;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  background:linear-gradient(180deg,#fffaf2 0%,#f7efe5 100%);
  color:var(--ink);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.game-shell{
  width:min(980px,100%);
  background:var(--paper);
  border:2px solid var(--line);
  border-radius:28px;
  box-shadow:0 16px 40px rgba(93,64,42,.12);
  overflow:hidden;
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:22px 26px;
  background:#fff8ed;
  border-bottom:1px solid var(--line);
}
.eyebrow{ margin:0 0 6px; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#9a7961;}
h1{ margin:0; font-size:clamp(24px,4vw,40px); }
.stats{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
.stat{
  background:white;
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:16px;
  font-weight:700;
  min-width:76px;
  text-align:center;
}
.game-area{
  position:relative;
  height:560px;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(232,180,79,.13), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(201,111,74,.10), transparent 24%),
    linear-gradient(#fffdf8,#fdf5e9);
}
.overlay-card{
  position:absolute;
  z-index:20;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:min(460px,86%);
  text-align:center;
  background:rgba(255,253,248,.96);
  border:2px solid var(--line);
  border-radius:26px;
  padding:28px;
  box-shadow:0 14px 34px rgba(84,61,42,.15);
}
.overlay-card h2{ margin:8px 0 10px; font-size:30px; }
.overlay-card p{ font-size:18px; line-height:1.5; margin:0 0 18px; }
.mascot{ font-size:58px; }
.primary-btn,.control-btn{
  border:none;
  cursor:pointer;
  font:inherit;
  font-weight:800;
  border-radius:16px;
}
.primary-btn{
  background:var(--terracotta);
  color:white;
  padding:13px 22px;
  box-shadow:0 6px 0 #a95738;
}
.primary-btn:active{ transform:translateY(2px); box-shadow:0 4px 0 #a95738; }
.hidden{ display:none !important; }
.basket{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  font-size:72px;
  width:96px;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
  user-select:none;
  filter:drop-shadow(0 6px 4px rgba(70,45,28,.12));
}
.falling-item{
  position:absolute;
  top:-70px;
  min-width:96px;
  max-width:160px;
  padding:9px 12px;
  border-radius:18px;
  background:white;
  border:2px solid var(--line);
  box-shadow:0 8px 18px rgba(90,64,44,.10);
  text-align:center;
  font-weight:800;
  color:var(--ink);
  user-select:none;
}
.falling-item.good{ background:#fff7df; border-color:#edd396; }
.falling-item.bad{ background:#fff7f5; border-color:#e9c4bb; }
.item-emoji{ display:block; font-size:28px; margin-bottom:2px; }
.feedback{
  position:absolute;
  z-index:10;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  font-size:24px;
  font-weight:900;
  background:white;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 16px;
  opacity:0;
  transition:.2s;
  pointer-events:none;
}
.feedback.show{ opacity:1; }
.controls{
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:center;
  padding:15px 20px;
  background:#fff8ed;
  border-top:1px solid var(--line);
}
.controls p{ margin:0; color:#8b705d; font-weight:700; }
.control-btn{
  width:64px;
  height:52px;
  background:var(--olive);
  color:white;
  font-size:26px;
  box-shadow:0 5px 0 #6f7c4e;
}
.control-btn:active{ transform:translateY(2px); box-shadow:0 3px 0 #6f7c4e; }
.decor{ position:absolute; opacity:.25; font-size:42px; pointer-events:none; }
.decor-1{ left:4%; top:8%; transform:rotate(-18deg); }
.decor-2{ right:6%; top:12%; transform:rotate(22deg); }
.decor-3{ left:8%; bottom:7%; }
footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 20px 16px;
  color:#947863;
  font-size:13px;
}
.brand{ font-weight:900; }
@media (max-width:700px){
  body{ padding:8px; }
  .topbar{ align-items:flex-start; flex-direction:column; }
  .stats{ justify-content:flex-start; }
  .game-area{ height:500px; }
  .falling-item{ min-width:78px; max-width:120px; font-size:14px; }
  .basket{ font-size:64px; }
  .controls p{ font-size:13px; text-align:center; }
}
