*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d3d2cc;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px 20px 36px;
}

/* ─── SVG zone ─── */

#svg-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#svg-container {
  width: min(206px, 50vw);
  aspect-ratio: 1;
}

#light-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Text bar ─── */

#text-bar {
  width: 100%;
  max-width: 360px;
  height: 60px;
  background: #00000020;
  border-radius: 40px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  flex-shrink: 0;
}

#status-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* ─── Dot grid ─── */

#dot-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  touch-action: none;
}

.dot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c, #888);
  flex-shrink: 0;
  transition: transform 0.08s ease, brightness 0.08s ease;
}

.dot.active {
  transform: scale(0.88);
  filter: brightness(1.25);
}

/* ─── Responsive scaling ─── */

@media (max-width: 420px) {
  #svg-container {
    width: 48vw;
  }

  .dot {
    width: 36px;
    height: 36px;
  }

  .dot-row {
    gap: 6px;
  }

}

@media (max-height: 700px) {
  #app {
    padding: 40px 20px 40px;
  }

  #text-bar {
    margin: 40px 0;
    height: 48px;
  }

  #status-text {
    font-size: 16px;
  }

  .dot {
    width: 32px;
    height: 32px;
  }

  .dot-row {
    gap: 6px;
  }

}
