* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Segoe UI", Tahoma, sans-serif;
  background-color: #000;
  color: #f5f5f5;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 480px;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.app__header {
  text-align: center;
}

.app__header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #e79c00;
}

.app__header p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.counter__value {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.counter__value.bump {
  transform: scale(1.12);
  text-shadow: 0 0 16px rgba(231, 156, 0, 0.75);
}

.counter__status {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.counter__button {
  padding: 10px 24px;
  border: 2px solid #e79c00;
  border-radius: 999px;
  background: transparent;
  color: #e79c00;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.counter__button:hover,
.counter__button:active {
  background-color: #e79c00;
  color: #000;
}

.session {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(231, 156, 0, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session__title {
  margin: 0;
  font-size: 1.2rem;
  color: #e79c00;
  text-align: center;
}

.session__status {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.session__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.session__button {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(231, 156, 0, 0.5);
  background: transparent;
  color: #e79c00;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.session__button:hover,
.session__button:active {
  filter: brightness(1.1);
}

.session__button--primary {
  background: #e79c00;
  color: #000;
}

.session__button--secondary {
  color: #fff;
}

.session__message {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.visualizer {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(231, 156, 0, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.visualizer__canvas,
.visualizer__video {
  width: 100%;
  height: auto;
  display: block;
}

.visualizer__video {
  transform: scaleX(-1);
  opacity: 0.18;
  position: absolute;
  top: 0;
  left: 0;
}

.visualizer__canvas {
  transform: scaleX(-1);
}

@media (min-width: 520px) {
  .app {
    max-width: 560px;
  }

  .counter__value {
    font-size: 5rem;
  }
}

@media (max-width: 420px) {
  .session__actions {
    flex-direction: column;
  }

  .session__button {
    width: 100%;
    text-align: center;
  }
}
