:root {
  color-scheme: light dark;
  --bg: #101418;
  --card-bg: #181d23;
  --text: #f2f4f6;
  --muted: #8a939c;
  --accent: #4fb0ff;
  --accent-active: #2f8fd8;
  --track: #2a3138;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  display: flex;
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100dvh;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  margin: 0;
  padding: 0.5rem 1.25rem;
  font-size: clamp(1.5rem, 8vmin, 4rem);
  font-weight: 700;
  line-height: 1.1;
  word-break: break-word;
}

.image-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: min(90vw, 90dvh, 32rem);
  aspect-ratio: 1 / 1;
  padding: 0 1.25rem;
  margin: 0 auto;
}

.bird-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.player {
  flex: 0 0 auto;
  width: 100%;
  max-width: 32rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
}

.play-button {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #05131e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.play-button:active {
  background: var(--accent-active);
  transform: scale(0.95);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon[hidden] {
  display: none;
}

.icon-play {
  margin-left: 2px;
}

.progress-bar {
  flex: 1 1 auto;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
}
