:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  color: #173149;
  background: #edf5fa;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 52% 8%, #fff 0%, #edf5fa 55%, #e4f0f4 100%);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #0787bb; outline-offset: 4px; }

header {
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #dbe8ef;
  background: #ffffffcf;
}
.brand {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 54px;
  margin-inline: auto;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .11em;
  color: #075f8f;
}
main {
  max-width: 722px;
  margin: clamp(24px, 9vw, 92px) auto 0;
  padding: 0 18px max(24px, env(safe-area-inset-bottom));
}
.start-card {
  background: #fff;
  border: 1px solid #dbe8ef;
  border-radius: 26px;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: 0 18px 55px #2b587514;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.04em;
}
p { margin: 0 0 22px; color: #50697b; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.status { margin: 0; text-align: center; padding: 18px 0; }

.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.destination-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 750;
  letter-spacing: -.02em;
}
.destination-button span:last-child {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
}
.music-button { background: linear-gradient(125deg, #07547f, #08749b); color: #fff; }
.music-button:hover { background: #06486d; }
.music-button span:last-child { background: #ffffff29; }
.journey-button { background: linear-gradient(125deg, #edf8f3, #def2ea); border-color: #c6e3d9; color: #175b51; }
.journey-button:hover { background: #d4ede2; }
.journey-button span:last-child { background: #cde8dd; }

.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #e1ebf1;
  color: #50697b;
  font-size: 13px;
}
#current-name { min-width: 0; overflow-wrap: anywhere; }
#edit-name {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 4px 0 8px;
  border: 0;
  background: transparent;
  color: #225d7e;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#edit-name:hover { color: #073c58; }

label { display: block; color: #426176; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c2d7e5;
  border-radius: 11px;
  background: #f8fbfd;
  color: #173149;
  font-size: 16px;
}
input::placeholder { color: #60788a; }
.note { font-size: 12px; margin: 10px 0 0; }
.error { color: #a73145; font-size: 13px; margin: 12px 0 0; }
.error:empty { display: none; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.primary, .secondary {
  padding: 12px 20px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
}
.primary { flex: 1; background: #076b95; color: #fff; }
.primary:hover { background: #065778; }
.secondary { background: #eef5fa; color: #426176; border-color: #d3e2ec; }
button:disabled { opacity: .55; cursor: wait; }

@media (max-width: 480px) {
  .brand { min-height: 48px; }
  .destination-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .destination-button { min-height: 74px; padding: 14px 16px; }
}
@media (max-height: 500px) {
  main { margin-top: 16px; }
  .destination-button { min-height: 70px; }
}
