:root {
  --cell-size: 80px;
  --cell-gap: 10px;
  --primary: #222;
  --accent: #4caf50;
  --bg: #f9f9f9;
  --win: #ffe082;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}

h1 {
  margin-bottom: 1.2rem;
  color: var(--primary);
}

#status {
  min-height: 2em;
  margin-bottom: 1em;
  font-size: 1.1em;
  color: var(--accent);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, var(--cell-size));
  grid-template-rows: repeat(3, var(--cell-size));
  gap: var(--cell-gap);
  margin-bottom: 1.5em;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.board::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://i.postimg.cc/HL8YSGPX/coke.jpg') center/cover no-repeat;
  opacity: 0.30; /* faded */
  z-index: 0;
  border-radius: 12px;
  pointer-events: none;
}

.cell {
  width: var(--cell-size);
  height: var(--cell-size);
  background: #fafafa;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-size: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  position: relative;
  z-index: 1;
  opacity: 0.70; /* faded */
}

.cell:hover {
  background: #f1f1f1;
  border-color: var(--accent);
}

.cell.win {
  background: var(--win);
  border-color: var(--accent);
  color: var(--accent);
}

#reset {
  padding: 0.6em 1.5em;
  font-size: 1em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#reset:hover {
  background: #388e3c;
}

.cell-content {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem 0.5rem;
  }
  :root {
    --cell-size: 60px;
    --cell-gap: 6px;
  }
} 