:root {
  --ink: #12222b;
  --paper: #f2fbfa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #1b98b8;
}

#viewport {
  display: block;
  width: 100vw;
  height: 100vh;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Placeholder title treatment. Milestone 6 replaces this with the drawn
   display face and the rest of the HUD in the same ink style. */
#title {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Held to the top so the bird itself owns the middle of the frame. */
  justify-content: flex-start;
  padding-top: 7vh;
  gap: 1.1rem;
  pointer-events: none;
  color: var(--paper);
  text-align: center;
  transition: opacity 900ms ease;
  text-shadow: 0 2px 0 rgb(18 34 43 / 35%);
}

#title.is-hidden {
  opacity: 0;
}

#title h1 {
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1;
}

/* Gull select. Sits under the title over the opening orbit. */
#select {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  transition: opacity 700ms ease;
  text-shadow: 0 2px 0 rgb(18 34 43 / 45%);
}

#select.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.select-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.select-arrow {
  appearance: none;
  border: 2px solid var(--paper);
  background: rgb(18 34 43 / 25%);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  transition: background 180ms ease;
}

.select-arrow:hover {
  background: rgb(18 34 43 / 55%);
}

.select-body {
  min-width: min(20rem, 60vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.select-name {
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
}

.select-tagline {
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  opacity: 0.85;
}

.select-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.select-dot {
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  opacity: 0.5;
}

.select-dot.is-on {
  background: var(--paper);
  opacity: 1;
}

.select-hint {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: lowercase;
  opacity: 0.8;
}
