body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

#quote-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#quote-overlay .scrolling-quote {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  max-width: 90vw;
  background: rgba(0,0,0,0.55);
  color: #39ff14;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
  opacity: 0.92;
  letter-spacing: 0.01em;
  pointer-events: none;
  white-space: pre-line;
}

#quote-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  color: #39ff14;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s;
  opacity: 0.85;
  pointer-events: auto;
}
#quote-toggle:hover {
  background: rgba(0,0,0,0.7);
  color: #fff;
  opacity: 1;
}

.container.glass {
  background: rgba(30, 255, 90, 0.18);
  box-shadow: 0 8px 32px 0 rgba(30, 255, 90, 0.18), 0 0 24px 0 rgba(30,255,90,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1.5px solid rgba(30, 255, 90, 0.35);
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  z-index: 3;
  color: #0a2e13;
}

.container.glass h1, .container.glass #status, .container.glass button, .container.glass .board {
  color: #0a2e13;
}

.container.glass h1 {
  font-weight: 900;
  color: #39ff14;
  text-shadow: 0 0 8px #39ff14, 0 0 18px #39ff14, 0 0 32px #39ff14;
  letter-spacing: 1.5px;
}

h1 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 700;
}

#status {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #222;
  letter-spacing: 1px;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(3, 70px);
  gap: 15px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.cell {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 15px;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  user-select: none;
}

.cell:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px 0 rgba(31, 38, 135, 0.18);
}

#restart {
  margin-top: 0.5rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#restart:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.15);
} 

.container.glass #status, .container.glass .board .cell, .container.glass button {
  color: #39ff14;
  text-shadow: 0 0 6px #39ff14, 0 0 14px #39ff14;
}

.container.glass .board .cell {
  font-weight: 700;
}

.container.glass button {
  font-weight: 700;
  border: 1.5px solid #39ff14;
  background: rgba(30,255,90,0.10);
  box-shadow: 0 0 8px #39ff1433;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.container.glass button:hover {
  background: rgba(30,255,90,0.22);
  color: #fff;
  box-shadow: 0 0 16px #39ff1499;
} 