.duck-welcome {
  --ink: #4b3021;
  --cream: #fff9e9;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: radial-gradient(ellipse at 46% 30%, #fffdf0 5%, transparent 68%),
    linear-gradient(160deg, #f5f4e3, #d9ebe1);
}
.duck-welcome .masthead { background: #fffdf2c9; border-color: #908b622e; }
.duck-welcome .header-inner { width: min(calc(100% - 2.75rem), 67rem); min-height: 4.25rem; }
.duck-brand { display: flex; align-items: center; gap: .65rem; color: #354638; font: 400 1.5rem/1.35 var(--mono); }
.duck-logo { width: 2.36rem; height: 1.7rem; background: url('/call-duck-pixel.png?v=3') center / contain no-repeat; image-rendering: pixelated; }
.duck-welcome .album-action { gap: .55rem; color: #35594c; }
.pond { flex: 1; display: grid; place-items: center; padding: clamp(1.8rem, 6svh, 4.2rem) .65rem; }
.duck-window { container-type: inline-size; position: relative; isolation: isolate; width: min(100%, 36rem); }
.duck-window::before {
  content: ''; position: absolute; z-index: -2; left: 12%; right: 12%; bottom: -.6rem; height: 5.5%;
  background: #557d693b; border-radius: 50%; filter: blur(.65rem);
}
.duck-character {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Keep the head, side feathers and lower bill in proportion. Only the
     middle of the illustration grows when a phone or an error needs space. */
  border-style: solid;
  border-color: transparent;
  border-width: 33.333cqw 16.667cqw 12.5cqw;
  border-image-source: url('/call-duck-pixel.png?v=3');
  border-image-slice: 64 32 24 fill;
  border-image-repeat: stretch;
  image-rendering: pixelated;
}
.duck-bill {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 66.667cqw; padding: 33.85cqw 18.75% 13.02cqw;
}
.duck-bill form { width: 100%; margin-inline: auto; }
.bill-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.bill-row { min-width: 0; }
.bill-row label { display: block; margin: 0 0 .25rem .1rem; color: #462c1e; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.bill-row input {
  display: block; width: 100%; height: 2.8rem; padding: 0 .7rem; border: 2px solid #916747;
  border-radius: 2px; background: #fff9e9; color: var(--ink); font-size: 1rem;
  box-shadow: inset 2px 2px #e9dfc9;
}
.bill-password { position: relative; }
.bill-password input { padding-right: 3.4rem; }
.bill-toggle {
  position: absolute; inset: 0 .18rem 0 auto; min-width: 2.9rem; padding: 0 .35rem;
  background: transparent; color: #6d4c33; border: 0; border-radius: .6rem; font-size: .88rem; font-weight: 650;
}
.bill-toggle:hover { text-decoration: underline; text-underline-offset: .15rem; }
.bill-lower { display: flex; justify-content: center; margin-top: .85rem; }
.bill-submit {
  min-height: 2.75rem; min-width: 8rem; padding: .48rem 1.55rem;
  border: 2px solid #4c382f; border-radius: 2px; background: #654934; color: var(--cream);
  box-shadow: inset 2px 2px #8f6a4b, 0 2px #a07143; font-size: 1rem; font-weight: 750;
}
.bill-submit:hover { background: #6b452a; }.bill-submit:active { transform: translateY(1px); }
.bill-error, .bill-state { overflow-wrap: anywhere; font-size: .94rem; }
.bill-error { margin-top: .65rem; padding: .35rem .6rem; border-radius: .45rem; background: #fff2db; color: #792c16; }
.bill-state { text-align: center; font-weight: 650; color: #452b1a; }.bill-state button { display: block; margin: .7rem auto 0; }
.duck-welcome :focus-visible { outline: 3px solid #285c52; outline-offset: 2px; }
@media (max-width: 540px) {
  .duck-welcome .header-inner { width: calc(100% - 1.75rem); min-height: 3.7rem; }
  .duck-brand { font-size: 1rem; }
  .duck-bill { padding-inline: 17%; }
  .bill-fields { grid-template-columns: 1fr; gap: .48rem; }
  .bill-row { display: grid; grid-template-columns: 4.05rem minmax(0, 1fr); align-items: center; gap: .28rem; }
  .bill-row label { margin: 0; font-size: .875rem; }
  .bill-lower { margin-top: .67rem; }
}
@media (min-width: 950px) and (min-height: 760px) {
  .duck-window { width: 48rem; }
}
