* { box-sizing: border-box; margin: 0; }
html { background: #f6e4d2; }
body { min-height: 100dvh; color: #5b4636; font: 15px/1.35 ui-rounded, "Nunito", "Trebuchet MS", system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #ffd9b8, #f3dfe8 55%, #dfe6f3); }
#room { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; }
/* the phone: the screen itself is the lock screen, full bleed; the order rises over its foot like a notification */
#lock { position: relative; width: 100%; height: 82dvh; min-height: 520px; overflow: hidden; background: #e9d3c4; }
#still, #loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
#loop { opacity: 0; transition: opacity .6s; }
#loop.on { opacity: 1; }
.time { position: absolute; left: 0; right: 0; top: calc(26px + env(safe-area-inset-top)); text-align: center; color: #fff;
  text-shadow: 0 2px 18px #7a4a3a66; pointer-events: none; }
#date { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
#clock { font-weight: 800; font-size: 88px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tag { position: absolute; left: 50%; bottom: calc(18dvh + 14px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; color: #fff; background: #5b463655; padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(4px); }
#order { position: relative; z-index: 2; width: calc(100% - 20px); max-width: 460px; margin: -18dvh auto 16px; padding: 18px 16px 14px;
  display: grid; gap: 10px; background: #fff8f1e8; border-radius: 26px; box-shadow: 0 18px 50px #5b463644; backdrop-filter: blur(14px); }
h1 { font-size: 21px; line-height: 1.2; color: #7a4a3a; letter-spacing: -.005em; }
.price { font-size: 14px; color: #7a5a48; }
.price b { color: #d9705a; white-space: nowrap; }
#send { display: grid; gap: 8px; }
#photo { position: absolute; width: 1px; height: 1px; opacity: 0; }
#pick { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border: 2px dashed #e8a58f; border-radius: 18px;
  background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
#pick:hover, #photo:focus-visible + .row, #pick.on { border-color: #e88a74; background: #fff3ea; }
#photo:focus-visible ~ * #pick, #pick:focus-within { outline: 2px solid #e88a74; }
.snap { flex: 0 0 auto; width: 48px; height: 58px; padding: 4px 4px 10px; background: #fff; border-radius: 4px; box-shadow: 0 3px 10px #5b463633;
  transform: rotate(-5deg); display: grid; place-items: center; background-image: linear-gradient(#f6e4d2, #f6e4d2); background-size: 40px 44px;
  background-repeat: no-repeat; background-position: 4px 4px; }
.snap img { width: 40px; height: 44px; object-fit: cover; border-radius: 2px; }
.say { display: grid; gap: 1px; }
.say b { font-size: 16px; color: #7a4a3a; }
.say span { font-size: 12px; color: #a07f6c; }
.row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.row input { min-height: 46px; width: 100%; padding: 0 14px; font: inherit; color: #5b4636; background: #fff; border: 2px solid #efd3c0; border-radius: 23px; }
.row input:focus { outline: none; border-color: #e88a74; }
#go { min-height: 50px; font: inherit; font-size: 17px; font-weight: 800; color: #fff; border: 0; border-radius: 25px; cursor: pointer;
  background: linear-gradient(90deg, #e88a74, #f2a38e 60%, #f6b7a0); box-shadow: 0 4px 14px #e88a7455; transition: transform .15s, opacity .2s; }
#go:active { transform: scale(.97); }
#go:disabled { opacity: .6; cursor: progress; }
#said { min-height: 1.3em; font-size: 14px; font-weight: 700; color: #d9705a; }
#said.ok { color: #5f8a5a; }
.small { font-size: 12px; color: #a07f6c; }
.small a { color: #d9705a; font-weight: 700; white-space: nowrap; }
/* the desktop: the same lock screen held as a phone, the order beside it, the meadow all around */
@media (min-width: 900px) {
  body { overflow: hidden; }
  #room { flex-direction: row; justify-content: center; align-items: center; gap: 64px; height: 100dvh; padding: 32px; }
  #lock { flex: 0 0 auto; width: auto; height: min(88dvh, 900px); min-height: 0; aspect-ratio: 480 / 832; border: 10px solid #5b4636; border-radius: 52px;
    box-shadow: 0 30px 80px #5b463655; }
  #clock { font-size: 76px; }
  .tag { bottom: 22px; }
  #order { margin: 0; width: 440px; padding: 28px 26px 22px; gap: 14px; }
  h1 { font-size: 30px; }
  .price { font-size: 15px; }
  .row { grid-template-columns: 1fr 1.3fr; }
}
