:root {
  --ink: #08202B;
  --paper: #F2F2EE;
  --free: #00A15C;
  --taken: #FF3B24;
  --hold: #FFB100;
}

/* Sunlight legibility: never rely on subtle tone differences. */
body { -webkit-text-size-adjust: 100%; }

/* --- ticket stub -------------------------------------------------------
   The customer pass is the one place we spend design budget. It reads as a
   physical torn ticket so an attendant recognises it across a beach. */
.stub {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
}
.stub::before,
.stub::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--ink);
  border-radius: 50%;
  top: var(--notch, 168px);
  transform: translateY(-50%);
}
.stub::before { left: -13px; }
.stub::after  { right: -13px; }

.perf {
  border-top: 2px dashed rgba(8, 32, 43, 0.28);
}

/* --- sunbed glyph ------------------------------------------------------ */
.bed {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  border: 2px solid rgba(8, 32, 43, 0.25);
  transition: transform 120ms ease;
}
.bed:active { transform: scale(0.95); }
.bed-free    { background: var(--free);  color: #fff; }
.bed-occupied{ background: var(--taken); color: #fff; }
.bed-pending {
  background: var(--hold);
  color: var(--ink);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 177, 0, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 177, 0, 0); }
}

.tick { font-variant-numeric: tabular-nums; }

/* Sheets slide up from the bottom: thumb-reachable on a phone. */
.sheet {
  transform: translateY(100%);
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet.open { transform: translateY(0); }

/* Focus must survive on every surface, including the coloured beds. */
:focus-visible {
  outline: 3px solid #FFB100;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- print: QR stickers ------------------------------------------------ */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .sticker {
    break-inside: avoid;
    border: 1.5px dashed #999;
  }
}

/* --- lari sign ---------------------------------------------------------
   ₾ is missing from most Latin faces, so it falls back to whatever Georgian
   font the device happens to have and renders far too large. Size it
   explicitly rather than trusting a webfont to arrive — on weak signal it
   will not. */
.gel {
  font-family: "Noto Sans Georgian", "Public Sans", system-ui, sans-serif;
  font-size: 0.62em;
  font-weight: 600;
  line-height: 1;
  margin-left: 0.14em;
  vertical-align: 0.04em;
  display: inline-block;
}
