/* Web cruise countdown clock (js/countdown-clock.js). The card mirrors the app's shared countdown picture:
   line logo, ship name, "Sailaway in", the day count, optional text, a faded CruisePicker watermark. Backgrounds are the app's own
   photos, which are phone-sized (256-861 px), so the card stays phone-sized on desktop too. */
.clock-card {
  position: relative; max-width: 360px; margin: 0 auto; aspect-ratio: 4 / 5;
  border-radius: 28px; overflow: hidden; background: #1c2a3a center / cover no-repeat;
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,.55); text-shadow: 0 1px 6px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; color: #fff;
}
.clock-card::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.45) 100%); }
.clock-card > * { position: relative; }
.clock-top { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 0; }
.clock-logo { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; object-fit: contain; padding: 6px; }
.clock-ship { flex: 1; margin-right: 66px; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,.35);
  font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.clock-date-label { font-size: .85rem; opacity: .85; margin-top: 4px; min-height: 1.2em; }
.clock-middle { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.clock-lead { font-size: 1.25rem; }
.clock-days { font-size: 5.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.clock-unit { font-size: 1.25rem; }
.clock-days-word { font-size: 2.6rem; line-height: 1.15; padding: 0 16px; }
.clock-text { max-width: calc(100% - 48px); margin-bottom: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(0,0,0,.3);
  font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.clock-brand { width: 100%; padding: 18px 16px 12px; display: flex; align-items: center; gap: 10px; text-align: left;
  font-size: .78rem; line-height: 1.3; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.3)); }
/* a watermark, not part of the countdown */
.clock-brand > * { opacity: .55; }
.clock-brand img { width: 28px; height: 28px; border-radius: 6px; }
.clock-brand b { font-size: .95rem; }

.clock-form { max-width: 420px; margin: 0 auto; text-align: left; }
.clock-form label { font-weight: 600; margin-bottom: 4px; }
.clock-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.clock-bg { aspect-ratio: 4 / 5; border: 2px solid transparent; border-radius: 10px; background: #333 center / cover no-repeat; padding: 0; }
.clock-bg[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px #0d6efd; }
.clock-bg:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.clock-share-note { min-height: 1.5em; font-size: .9rem; word-break: break-all; text-align: center; }
.clock-text-count { font-size: .85rem; }
.clock-actions { display: flex; justify-content: center; gap: 16px; }
.clock-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600;
  flex: 0 1 240px; padding: .9rem 1.5rem; font-size: 1.3rem; border-radius: 14px; }
.clock-btn { white-space: nowrap; }
@media (max-width: 440px) {
  .clock-actions { gap: 10px; }
  .clock-btn { flex: 1 1 0; padding: .85rem .75rem; font-size: 1.1rem; gap: 8px; }
}
.clock-btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
