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

body {
  background-color: #28262c;
  color: #bebebe;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 1.8rem;
  color: #fab900;
}

.subtitle-tagline {
  color: #fab900;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Menu */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  background: #3a373f;
  border: 1px solid #4a474f;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.menu-item:hover {
  border-color: #fab900;
  background: #4a474f;
}

.menu-item h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.menu-item p {
  color: #888;
  font-size: 0.8rem;
}

/* Bingo Grid */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  aspect-ratio: 1;
}

.bingo-cell {
  background: #3a373f;
  border: 1px solid #4a474f;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: clamp(0.7rem, 2.8vw, 0.95rem);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.25;
  overflow: hidden;
}

.bingo-cell:hover {
  background: #4a474f;
}

.bingo-cell.checked {
  background: #fab900;
  color: #28262c;
  border-color: #fab900;
  font-weight: bold;
}



.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.actions button {
  background: #3a373f;
  color: #bebebe;
  border: 1px solid #4a474f;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.actions button:hover {
  background: #4a474f;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.win-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.win-overlay.hidden {
  display: none;
}

.win-message {
  background: #3a373f;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.win-message h2 {
  font-size: 2rem;
  color: #fab900;
  margin-bottom: 0.5rem;
}

.win-message button {
  margin-top: 1rem;
  background: #fab900;
  color: #28262c;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}
