git » sparkle-arcade » master » tree

[master] / starlit-stacker / styles.css

:root {
  --bg-top: #0b0530;
  --bg-bottom: #2d1766;
  --grid-border: rgba(255, 255, 255, 0.2);
  --cell-empty: rgba(255, 255, 255, 0.08);
  --accent: #ff95df;
  --accent-2: #8cc7ff;
}

* { box-sizing: border-box; }

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

.starfield {
  position: fixed;
  inset: 0;
  font-size: min(7rem, 15vw);
  opacity: 0.05;
  text-align: center;
  pointer-events: none;
}

.layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
  position: relative;
  z-index: 1;
}

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

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

.tagline { color: #d2c0ff; margin: 0; }

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

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

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

.play {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(200px, 1fr);
  gap: 1.5rem;
}

.board {
  width: min(340px, 80vw);
  aspect-ratio: 10 / 20;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 0.2rem;
  border: 2px solid var(--grid-border);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}

.cell {
  border-radius: 0.3rem;
  background: var(--cell-empty);
  transition: background 0.2s ease;
}

.cell.filled {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.next-box, .controls, .instructions {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.preview {
  margin-top: 0.6rem;
  width: 140px;
  height: 140px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.25rem;
}

.preview-cell {
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.15);
}

.controls ul {
  margin: 0;
  padding-left: 1rem;
}

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

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

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

.touch-controls {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.touch-controls button {
  border: none;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .play {
    grid-template-columns: 1fr;
  }
  .info {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .touch-controls { display: flex; }
}

@media (min-width: 601px) {
  .touch-controls { display: none; }
}