:root{
  --bg: #1a2e1a; /* deep forest green */
  --card: #243b24;
  --accent: #d4af37; /* gold accent */
  --muted: #c4d4c4;
  --glass: rgba(255,255,255,0.04);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #102510 0%, #1a2e1a 100%);
  background-image: url('assets/forest_bg.jpg'), linear-gradient(180deg, #102510 0%, #1a2e1a 100%);
  background-size: cover;
  background-blend-mode: overlay;
  color:#f0f7f0;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.app{
  width:100%;
  max-width:520px;
  background:var(--card);
  border-radius:14px;
  padding:14px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
  border:2px solid rgba(212,175,55,0.4);
}

header h1{
  margin:4px 0 0 0;
  font-size:22px;
  color: var(--accent);
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}
header .sub{
  margin:6px 0 12px;
  color:var(--muted);
  font-size:13px;
}

.controls{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
}
.controls label{
  font-size:13px;
  color:var(--muted);
}
.controls .right-label{margin-left:auto}
#newGame{
  background:linear-gradient(180deg,var(--accent), #b8902e);
  border:none;
  color:#1a2e1a;
  padding:8px 10px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.board{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  padding:8px;
  background:var(--glass);
  border-radius:12px;
  user-select:none;
  touch-action: manipulation;
}

.cell{
  aspect-ratio:1/1;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.1));
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:44px;
  cursor:pointer;
  position:relative;
  transition:transform 0.12s ease;
  border:2px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4);
}
.cell:active{transform:scale(0.98)}
.cell img{
  width:56%;
  height:56%;
  object-fit:contain;
  pointer-events:none
}

.status{
  margin-top:12px;
  font-size:15px;
  color:var(--muted);
  text-align:center;
}

footer{
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* responsive tweaks */
@media (max-width:420px){
  header h1{font-size:18px}
  .cell{font-size:36px}
  #newGame{padding:8px}
}
