/* Galago — start screen (name entry / resume). Sandy greets you over the living
   desert backdrop (body[data-biome]); the card stays warm and legible below her. */

.start-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 24px 16px;
}

/* ---- Sandy hero ---- */
.start-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  flex-shrink: 0; /* never let the hero compress under the card */
}
/* DEFINITE width+height (not aspect-ratio): older iPad Safari (< 15) lacks
   aspect-ratio, which left these boxes mis-sized so the SVG-fallback mascot could
   render past its box and slip under the welcome card. */
.start-glow {
  position: absolute;
  width: clamp(170px, 42vw, 260px);
  height: clamp(170px, 42vw, 260px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 184, 0.4) 0%, rgba(255, 232, 184, 0) 70%);
}
.start-mascot {
  position: relative;
  width: clamp(132px, 30vw, 192px);
  height: clamp(151px, 34vw, 219px); /* 350:400 of the width, but a hard value */
  overflow: hidden; /* hard guard: content can never bleed onto the card below */
  filter: drop-shadow(0 14px 18px rgba(60, 30, 10, 0.32));
}
.start-mascot svg,
.start-mascot .start-portrait { width: 100%; height: 100%; max-height: 100%; object-fit: contain; display: block; }

/* ---- entry card ---- */
.start-card {
  position: relative;
  flex-shrink: 0; /* keep full size; sit cleanly below the hero, never over it */
  width: 100%;
  max-width: 460px;
  text-align: center;
  padding: 24px 26px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 248, 239, 0.84);
  box-shadow: 0 18px 44px rgba(60, 30, 10, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.start-title {
  margin: 0 0 4px;
  font-size: clamp(28px, 6.5vw, 38px);
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--c-brand-ink);
}
.start-sub {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #6b4a36;
}

.recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.recent-label {
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #8a684a;
}
.recent-chip {
  font: 800 15px var(--font-sans);
  padding: 9px 16px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: #fff;
  background: #cf8a44;
  box-shadow: 0 4px 12px rgba(60, 30, 10, 0.18);
  transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-fast) var(--ease-out);
}
.recent-chip:hover { filter: brightness(1.05); }
.recent-chip:active { transform: scale(0.95); }

.start-form { display: flex; gap: 10px; }
.start-input {
  flex: 1;
  min-width: 0;
  font: 700 18px var(--font-sans);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 2px solid #e3c49c;
  background: #fff;
  color: #3b2415;
}
.start-input::placeholder { color: #c4a988; }
.start-input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(240, 136, 62, 0.18); }

.start-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 18px var(--font-sans);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px 22px;
  cursor: pointer;
  background: #2a9d8f; /* refined teal-green — reads premium against the warm dunes */
  box-shadow: 0 5px 14px rgba(20, 80, 74, 0.24);
  transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-fast) var(--ease-out);
}
.start-go:hover { filter: brightness(1.05); }
.start-go .icon { margin-right: -3px; }
.start-go:active { transform: scale(0.97); }
.start-go:disabled, .start-input:disabled, .recent-chip:disabled { opacity: 0.6; }

.start-msg {
  min-height: 20px;
  margin: 14px 0 0;
  font-weight: 700;
  color: #6b4a36;
}

@media (prefers-reduced-motion: reduce) {
  .start-mascot { animation: none; }
  .recent-chip:active, .start-go:active { transform: none; }
}
