:root {
  --ink: #27302c;
  --muted: #607168;
  --paper: rgba(255, 252, 244, 0.91);
  --paper-solid: #fff9ed;
  --green: #24796b;
  --green-dark: #155c50;
  --salmon: #ef735d;
  --salmon-dark: #c55342;
  --rice: #fff2d8;
  --shadow: 0 24px 70px rgba(32, 44, 38, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--rice) url("assets/poke-invite.png") center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 247, 226, 0.08), rgba(255, 247, 226, 0.55)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.08));
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100svh;
  padding: 24px 18px;
  display: grid;
  place-items: center;
}

.screen {
  width: min(100%, 430px);
  display: none;
}

.screen.is-visible {
  display: block;
}

.invite-panel {
  width: 100%;
  padding: clamp(24px, 8vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--salmon-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 12vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.actions {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 12px 28px rgba(45, 55, 59, 0.16);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-yes,
.btn-submit {
  background: var(--green);
}

.btn-yes:hover,
.btn-submit:hover {
  background: var(--green-dark);
}

.btn-no {
  background: var(--salmon);
}

.btn-no:hover {
  background: var(--salmon-dark);
}

.btn-no.is-running {
  position: fixed;
  z-index: 5;
  width: min(140px, calc(100vw - 32px));
  transition:
    left 220ms ease,
    top 220ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.time-form {
  display: grid;
  gap: 18px;
}

.time-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.time-field input {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(36, 121, 107, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper-solid);
  font-size: 1.15rem;
  font-weight: 750;
}

.time-field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(36, 121, 107, 0.18);
}

.quick-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.quick-times button {
  min-height: 44px;
  border: 1px solid rgba(36, 121, 107, 0.24);
  border-radius: 8px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  cursor: pointer;
}

.quick-times button.is-selected {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--salmon-dark);
  font-size: 0.95rem;
  font-weight: 750;
}

@media (max-width: 370px) {
  .app-shell {
    padding-inline: 12px;
  }

  .invite-panel {
    padding: 22px 18px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .app-shell {
    align-items: center;
    justify-items: start;
    padding-left: clamp(42px, 9vw, 110px);
  }
}
