git » sparkle-arcade » master » tree

[master] / moonlit-garden-match / styles.css

:root {
  --bg1: #0f0428;
  --bg2: #2c1b54;
  --board-bg: rgba(255, 255, 255, 0.15);
  --text: #f9ecff;
  --accent: #ff8ad5;
  --accent-2: #83d8ff;
  --cell-size: min(70px, 12vw);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Nunito', system-ui, sans-serif;
  background: radial-gradient(circle at top, #3d216d, #150428);
  color: var(--text);
}

.moon-glow {
  position: fixed;
  inset: 0;
  font-size: 6rem;
  opacity: 0.05;
  text-align: center;
  pointer-events: none;
  padding-top: 2rem;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 4rem) 4rem;
  position: relative;
  z-index: 1;
}

h1, h2 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  margin: 0;
  color: #ff9ae3;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.tagline { margin-top: 0.4rem; color: #d7c2f6; }

.stats {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.2rem;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(255, 138, 213, 0.4);
}

.btn-lg { padding: 0.8rem 2.5rem; font-size: 1.1rem; }

.board-wrap {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
}

.board {
  background: var(--board-bg);
  border-radius: 1.8rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(6, var(--cell-size));
  grid-template-rows: repeat(6, var(--cell-size));
  gap: 0.5rem;
  box-shadow: inset 0 0 35px rgba(255, 255, 255, 0.1), 0 30px 50px rgba(3, 5, 35, 0.6);
}

.tile {
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.tile.selected {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.tile.matching {
  animation: twinkle 0.6s ease infinite alternate;
}

@keyframes twinkle {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.1); opacity: 0.6; }
}

.instructions {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 40px rgba(2, 0, 24, 0.7);
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 3, 30, 0.8);
  z-index: 10;
}

.overlay.hidden { opacity: 0; pointer-events: none; }

.panel {
  background: #1c0e38;
  border-radius: 1.8rem;
  padding: 2rem 3rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .board-wrap { grid-template-columns: 1fr; }
  .board { justify-self: center; }
}