/* Panorama E101 — "Mediterranean Modern Hospitality" design system (from Stitch DESIGN.md).
   All sizes are rem-based so the A-/A+ scaler (html font-size) scales the whole UI.
   Logical properties (inline-start/end) keep the layout correct in RTL (Hebrew). */

:root {
  --fs: 1;
  /* Stitch tokens */
  --surface: #f8f9ff;
  --surface-lowest: #ffffff;
  --surface-low: #eff4ff;
  --surface-container: #e5eeff;
  --surface-high: #dce9ff;
  --surface-highest: #d3e4fe;
  --on-surface: #0b1c30;
  --on-surface-variant: #42474f;
  --outline: #727780;
  --outline-variant: #c2c7d1;
  --primary: #00355f;
  --primary-container: #0f4c81;
  --on-primary: #ffffff;
  --primary-fixed: #d2e4ff;
  --primary-fixed-dim: #a0c9ff;
  --secondary: #006398;
  --secondary-container: #5bb8fe;
  --cyan: #0284c7;
  --tertiary: #733c00;
  --sand: #d97706;
  --sand-deep: #b45309;
  --tertiary-fixed: #ffdcc3;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --urgent: #dc2626;
  --olive: #15803d;
  --slate-400: #94a3b8;
  --border: #e2e8f0;
  --waze: #33ccff;
  --whatsapp: #25d366;

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Noto Sans', 'Noto Sans Hebrew', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --r-sm: 0.25rem; --r: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-full: 9999px;
  --shadow-1: 0 2px 8px -2px rgba(15, 76, 129, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-2: 0 8px 20px -4px rgba(15, 76, 129, 0.08), 0 4px 8px -2px rgba(15, 76, 129, 0.03);
  --shadow-3: 0 20px 40px -8px rgba(11, 28, 48, 0.25);

  --nav-h: 4rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --container: 32rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--fs)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; transition: font-size .2s ease; }
body {
  margin: 0; min-height: 100dvh; background: var(--surface); color: var(--on-surface);
  font-family: var(--font); font-size: 0.875rem; line-height: 1.43; -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--secondary); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: var(--r); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Material Symbols — width clamp prevents ligature text from breaking layout before the font loads */
.ms {
  font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 1.5rem;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  direction: ltr; width: 1em; height: 1em; overflow: hidden; flex-shrink: 0;
  font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
[dir="rtl"] .ms.flip-rtl { transform: scaleX(-1); }

/* Codes, numbers, Wi-Fi keys: always LTR so sequences never invert in Hebrew */
.mono, .ltr { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.ltr { font-family: inherit; }

/* ---------------------------------------------------------------- Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top);
  background: rgba(248, 249, 255, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(15, 76, 129, 0.06);
}
.topbar__inner { max-width: var(--container); margin: 0 auto; padding: 0.375rem 1rem 0.5rem; display: grid; gap: 0.375rem; }
.status-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.2rem 0.6rem; border-radius: var(--r-full); background: var(--surface-low);
  font: 500 0.6875rem/1.3 var(--mono); color: var(--secondary);
}
.status-pill .dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--olive); flex-shrink: 0; }
.status-pill .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.status-pill.is-offline { color: var(--sand-deep); background: rgba(217, 119, 6, .08); }
.status-pill.is-offline .dot { background: var(--sand); }
.status-pill.is-syncing .dot { background: var(--slate-400); }
.status-pill__text { display: flex; align-items: center; gap: 0.4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill .ms { font-size: 0.95rem; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; background: none; border: 0; padding: 0; text-align: start; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.brand__logo { width: 2.25rem; height: 2.25rem; border-radius: var(--r-md); flex-shrink: 0; }
.brand__title { font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: var(--primary); display: block; }
.brand__sub { font-size: 0.75rem; color: var(--on-surface-variant); font-weight: 500; display: block; }
.brand__admin { display: flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; font-weight: 700; color: var(--sand-deep); }
.brand__admin[hidden], .brand__sub[hidden] { display: none; }
.brand__admin .ms { font-size: 0.95rem; }
.brand.is-pressing { opacity: .6; transition: opacity .6s; }
.round-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary); color: var(--on-primary);
}
.round-btn .ms { font-size: 1.25rem; }
.round-btn--admin { background: var(--sand); }

.controls-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lang-group { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.lang-group::-webkit-scrollbar { display: none; }
.lang-btn {
  min-height: 2.5rem; min-width: 2.5rem; padding: 0 0.5rem; border-radius: var(--r); border: 0;
  background: var(--surface-container); color: var(--on-surface); font: 600 0.75rem var(--mono);
}
.lang-btn[lang="he"], .lang-tabs button[data-lang="he"] { font-family: var(--font); font-size: 0.875rem; }
.lang-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.font-scaler { display: flex; align-items: center; background: var(--surface-container); border-radius: var(--r); padding: 0.125rem; flex-shrink: 0; direction: ltr; }
.font-scaler button { min-height: 2.5rem; min-width: 2.25rem; border: 0; background: none; font-weight: 700; font-size: 1rem; color: var(--on-surface-variant); border-radius: var(--r); }
.font-scaler button:disabled { opacity: .35; }
.font-scaler output { font: 600 0.6875rem var(--mono); min-width: 2.6rem; text-align: center; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-container); padding: 0.1875rem; border-radius: var(--r-full); }
.segmented button {
  min-height: 2.5rem; border: 0; border-radius: var(--r-full); background: none; color: var(--on-surface-variant);
  font-weight: 600; font-size: 0.8125rem; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
}
.segmented button[aria-pressed="true"] { background: var(--surface-lowest); color: var(--primary); box-shadow: 0 1px 4px rgba(15, 76, 129, 0.1); }
.segmented .ms { font-size: 1.05rem; }

/* Admin strip */
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; border-radius: var(--r-md);
  background: rgba(217, 119, 6, .1); border: 1px solid rgba(180, 83, 9, .35); color: var(--sand-deep); font-weight: 600; font-size: 0.75rem;
}

/* ---------------------------------------------------------------- Main / layout */
main#view {
  max-width: var(--container); margin: 0 auto;
  padding: 1rem 1rem calc(var(--nav-h) + var(--safe-bottom) + 1.5rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 60vh;
}
main#view:focus { outline: none; }
.view-enter { animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: center; gap: 0.75rem; }
.page-head h1 { margin: 0; font-size: 1.5rem; line-height: 1.33; font-weight: 700; color: var(--primary); }
.page-head p { margin: 0.15rem 0 0; color: var(--on-surface-variant); }
.back-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--surface-container); display: grid; place-items: center; flex-shrink: 0; color: var(--primary); }
[dir="rtl"] .back-btn .ms { transform: scaleX(-1); }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.5rem 0 0; }
.section-title h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.section-title h2 .ms { color: var(--secondary); }
.overline { font: 600 0.6875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.muted { color: var(--on-surface-variant); }
.small { font-size: 0.75rem; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.span-2 { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--surface-lowest); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.card--elev { box-shadow: var(--shadow-2); }
.card--tint { background: var(--surface-low); border-color: var(--surface-container); }
.card--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.card h3 { margin: 0; font-size: 1.125rem; line-height: 1.33; font-weight: 700; color: var(--primary); }
.card h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--primary); }
.card p { margin: 0; }
.card h3 > .ms, .card h4 > .ms { font-size: 1.25rem; vertical-align: -0.22em; color: var(--secondary); }
.card__head { display: flex; align-items: flex-start; gap: 0.75rem; }
.card__head > div { min-width: 0; flex: 1; }
.icon-box {
  width: 3rem; height: 3rem; border-radius: var(--r-md); background: var(--surface-low); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-box .ms { font-size: 1.75rem; }
.icon-box--danger { background: var(--error-container); color: var(--error); }
.icon-box--sand { background: rgba(217, 119, 6, .12); color: var(--sand-deep); }
.icon-box--cyan { background: rgba(2, 132, 199, .1); color: var(--cyan); }

/* Hero (Navigate) */
.hero-btn {
  width: 100%; border: 0; border-radius: var(--r-lg); padding: 1.25rem; background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: start; box-shadow: var(--shadow-2);
  transition: transform .12s;
}
.hero-btn:active { transform: scale(.98); }
.hero-btn__icon { width: 3.5rem; height: 3.5rem; border-radius: var(--r-md); background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex-shrink: 0; }
.hero-btn__icon .ms { font-size: 2.25rem; }
.hero-btn strong { display: block; font-size: 1.25rem; line-height: 1.3; }
.hero-btn small { display: block; font: 500 0.75rem var(--mono); color: var(--primary-fixed); margin-top: 0.15rem; }
.hero-btn > .ms { color: var(--primary-fixed); font-size: 1.75rem; }
[dir="rtl"] .hero-btn > .ms { transform: scaleX(-1); }

/* Tiles (Simple mode grid) */
.tile {
  border: 1px solid var(--surface-container); background: var(--surface-lowest); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  padding: 1.1rem 0.75rem; min-height: 9rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; text-decoration: none; color: inherit; transition: transform .12s, background .12s; position: relative; min-width: 0;
}
.tile:active { transform: scale(.97); }
.tile__icon { width: 4rem; height: 4rem; border-radius: var(--r-lg); background: var(--surface-low); color: var(--primary); display: grid; place-items: center; }
.tile__icon .ms { font-size: 2.5rem; }
.tile__label { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--primary); overflow-wrap: anywhere; }
.tile__chip { padding: 0.15rem 0.6rem; border-radius: var(--r-full); background: var(--surface-container); color: var(--secondary); font: 600 0.6875rem var(--mono); }
.tile--wide { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: start; min-height: 5.5rem; }
.tile--wide .tile__icon { width: 3.5rem; height: 3.5rem; }
.tile--wide .tile__text { flex: 1; min-width: 0; }
.tile--danger { border-color: rgba(186, 26, 26, .2); }
.tile--danger .tile__icon { background: var(--error-container); color: var(--error); }
.tile--sand .tile__icon { background: rgba(217, 119, 6, .12); color: var(--sand-deep); }
.tile__badge { position: absolute; top: 0.5rem; inset-inline-end: 0.5rem; font: 600 0.625rem var(--mono); padding: 0.1rem 0.45rem; border-radius: var(--r-full); background: var(--tertiary-fixed); color: var(--tertiary); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: var(--r-md); border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: transform .1s, background .15s; line-height: 1.2; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn .ms { font-size: 1.2rem; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--secondary { background: var(--secondary); color: #fff; }
.btn--tonal { background: var(--surface-container); color: var(--primary); }
.btn--outline { background: var(--surface-lowest); border-color: var(--outline-variant); color: var(--primary); }
.btn--ghost { background: none; color: var(--secondary); }
.btn--danger { background: var(--urgent); color: #fff; }
.btn--sand { background: var(--sand); color: #fff; }
.btn--waze { background: rgba(51, 204, 255, .15); border-color: rgba(51, 204, 255, .5); color: var(--primary); }
.btn--whatsapp { background: var(--whatsapp); color: #06351b; }
.btn--block { width: 100%; }
.btn--lg { min-height: 3.5rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.icon-btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--surface-container); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.icon-btn--primary { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- Chips */
.chip-row { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.125rem; margin-inline: -1rem; padding-inline: 1rem; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; min-height: 2.5rem; padding: 0 0.9rem; border-radius: var(--r-full); border: 1px solid var(--surface-container);
  background: var(--surface-lowest); color: var(--on-surface); font-weight: 600; font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 0.35rem;
}
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .ms { font-size: 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.55rem; border-radius: var(--r-full); font: 600 0.6875rem var(--mono); background: var(--surface-container); color: var(--secondary); white-space: nowrap; }
.badge--sand { background: var(--tertiary-fixed); color: var(--tertiary); }
.badge--olive { background: rgba(21, 128, 61, .12); color: var(--olive); }
.badge--danger { background: var(--error-container); color: var(--error); }
.badge .ms { font-size: 0.9rem; }

/* ---------------------------------------------------------------- Code blocks */
.code-block {
  border: 1.5px dashed var(--cyan); background: #f8fafc; border-radius: var(--r-md); padding: 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.code-block__label { font-size: 0.75rem; color: var(--on-surface-variant); font-weight: 500; }
.code-block__value { font: 600 1.125rem/1.35 var(--mono); color: var(--primary); overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.code-block__value--xl { font-size: 1.75rem; letter-spacing: .12em; }
.copy-btn { min-height: 2.75rem; padding: 0 0.85rem; border-radius: var(--r-md); border: 0; background: var(--secondary); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.copy-btn.is-done { background: var(--olive); }
.copy-btn .ms { font-size: 1.1rem; }
.qr-box { background: #fff; border-radius: var(--r-md); padding: 0.75rem; display: grid; place-items: center; border: 1px solid var(--border); }
.qr-box svg, .qr-box img { width: min(15rem, 70vw); height: auto; image-rendering: pixelated; }

/* ---------------------------------------------------------------- Banners */
.banner { border-radius: var(--r-md); padding: 0.75rem; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8125rem; }
.banner .ms { font-size: 1.25rem; }
.banner--warn { background: rgba(217, 119, 6, .08); border: 1px solid var(--sand-deep); color: var(--sand-deep); }
.banner--warn p { color: #6e3900; }
.banner--danger { background: #fff; border: 1.5px solid var(--urgent); color: var(--urgent); }
.banner--info { background: var(--surface-low); border: 1px solid var(--surface-high); color: var(--secondary); }
.banner--info p { color: var(--on-surface); }
.banner strong { display: block; }

.tip { border-inline-start: 4px solid var(--sand); background: rgba(217, 119, 6, .06); border-radius: var(--r); padding: 0.6rem 0.75rem; }
.tip__badge { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.75rem; color: var(--sand-deep); margin-bottom: 0.2rem; }
.tip__badge .ms { font-size: 1rem; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; counter-reset: step; }
.steps li { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--surface-low); border-radius: var(--r-md); padding: 0.75rem; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff;
  font: 700 1rem var(--mono); display: grid; place-items: center; flex-shrink: 0;
}
.steps--big li { font-size: 1.0625rem; font-weight: 600; color: var(--primary); padding: 0.9rem; }
.steps--big li::before { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
.bullets { margin: 0; padding-inline-start: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* ---------------------------------------------------------------- Accordion */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-lowest); overflow: hidden; }
.accordion + .accordion { margin-top: 0.5rem; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 0.85rem 0.9rem; display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--primary); min-height: 3rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .q-icon { color: var(--sand); font-size: 1.25rem; }
.accordion summary .chev { margin-inline-start: auto; transition: transform .2s; color: var(--outline); }
.accordion[open] summary .chev { transform: rotate(180deg); }
.accordion__body { padding: 0 0.9rem 0.9rem; color: var(--on-surface-variant); display: flex; flex-direction: column; gap: 0.5rem; }
.accordion--admin { border-color: rgba(217, 119, 6, .45); }

/* ---------------------------------------------------------------- Photo with hotspots */
.photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface-container); border: 0; padding: 0; width: 100%; display: block; cursor: zoom-in; }
.photo { background: #fff; }
.photo img { width: 100%; height: auto; max-height: min(62vh, 30rem); object-fit: contain; display: block; margin: 0 auto; } /* the whole appliance, never cropped */
.photo__hint { position: absolute; inset-inline-end: 0.5rem; bottom: 0.5rem; background: rgba(11, 28, 48, .75); color: #fff; font: 600 0.6875rem var(--mono); padding: 0.3rem 0.6rem; border-radius: var(--r-full); display: flex; align-items: center; gap: 0.25rem; }
.photo__hint .ms { font-size: 0.95rem; }
.pin { position: absolute; width: 1.75rem; height: 1.75rem; margin: -0.875rem 0 0 -0.875rem; border-radius: 50%; background: var(--primary); color: #fff; font: 700 0.8125rem var(--mono); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.legend div { display: flex; gap: 0.45rem; align-items: center; font-size: 0.8125rem; background: var(--surface-low); border-radius: var(--r); padding: 0.4rem 0.5rem; }
.legend b { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 0.75rem var(--mono); flex-shrink: 0; }

/* ---------------------------------------------------------------- Breakers */
.breaker-rail { background: var(--surface-low); border: 1px solid var(--surface-high); border-radius: var(--r-md); padding: 0.75rem; }
.breaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: 0.4rem; direction: ltr; }
.breaker { background: #fff; border: 1px solid var(--outline-variant); border-radius: var(--r); padding: 0.4rem 0.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-width: 0; }
.breaker__lever { width: 1.25rem; height: 2.25rem; border-radius: 0.3rem; background: var(--primary-container); position: relative; }
.breaker__lever::after { content: ''; position: absolute; left: 0.15rem; right: 0.15rem; top: 0.15rem; height: 0.9rem; border-radius: 0.2rem; background: #fff; opacity: .85; }
.breaker--main .breaker__lever { background: var(--primary); width: 1.75rem; }
.breaker--rcd .breaker__lever { background: var(--secondary); width: 1.75rem; }
.breaker--warn .breaker__lever { background: var(--sand); }
.breaker__id { font: 700 0.75rem var(--mono); color: var(--primary); }
.breaker__amps { font: 500 0.625rem var(--mono); color: var(--outline); }
.breaker__label { font-size: 0.6875rem; line-height: 1.2; color: var(--on-surface-variant); overflow-wrap: anywhere; }
.breaker.is-highlight { outline: 3px solid var(--sand); outline-offset: 1px; }

/* ---------------------------------------------------------------- Appliance list (detailed) */
.list-card { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: inherit; }
.list-card > div { flex: 1; min-width: 0; }
.list-card h3 { font-size: 1.0625rem; }
.list-card .chev { color: var(--outline); }
[dir="rtl"] .list-card .chev { transform: scaleX(-1); }
.search {
  display: flex; align-items: center; gap: 0.5rem; background: var(--surface-lowest); border: 1px solid #cbd5e1; border-radius: var(--r-full); padding: 0 0.9rem; min-height: 2.875rem;
}
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 0.9375rem; }
.search .ms { color: var(--outline); }

/* ---------------------------------------------------------------- Places */
.place-card__top { display: flex; gap: 0.75rem; align-items: flex-start; }
.place-card__num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--tertiary); color: #fff; display: grid; place-items: center; font: 700 0.875rem var(--mono); flex-shrink: 0; }
.place-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.75rem; color: var(--on-surface-variant); }
.place-card__meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.place-card__meta .ms { font-size: 1rem; color: var(--secondary); }
.radar { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(180deg, #dce9ff 0%, #a0c9ff 100%); border: 1px solid var(--surface-high); }
.radar__sea { position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(180deg, #5bb8fe, #0f4c81); opacity: .55; }
.radar__dot { position: absolute; transform: translate(-50%, -50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.7rem var(--mono); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.radar__home { position: absolute; transform: translate(-50%, -50%); background: var(--primary); color: #fff; border-radius: var(--r-full); padding: 0.2rem 0.55rem; font: 700 0.6875rem var(--mono); display: flex; gap: 0.2rem; align-items: center; white-space: nowrap; }
.radar__home .ms { font-size: 0.9rem; }

/* ---------------------------------------------------------------- Phrasebook */
.phrase { display: flex; flex-direction: column; gap: 0.5rem; }
.phrase__top { display: flex; align-items: flex-start; gap: 0.75rem; }
.phrase__top > div { flex: 1; min-width: 0; }
.phrase__meaning { font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.phrase__box { background: var(--surface-low); border-radius: var(--r-md); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.phrase__greek { font-family: 'Noto Serif', Georgia, 'Times New Roman', serif; font-size: 1.375rem; line-height: 1.3; color: var(--on-surface); font-weight: 600; direction: ltr; unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .phrase__greek { text-align: right; }
.phrase__phon { font: 500 0.9375rem/1.4 var(--mono); color: var(--secondary); }
.phrase__phon--he { font-family: var(--font); font-size: 1.0625rem; direction: rtl; unicode-bidi: isolate; }
.speak-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--surface-container); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.speak-btn.is-playing { background: var(--primary); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(15, 76, 129, .15); } }

/* ---------------------------------------------------------------- Emergency */
.sos { background: #fff1f0; border: 1.5px solid rgba(220, 38, 38, .35); }
.sos h3 { color: var(--urgent); }
.sos__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.sos__buttons .btn { min-height: 3.75rem; font-size: 1.25rem; font-family: var(--mono); }
.contact-row { display: flex; align-items: center; gap: 0.75rem; }
.contact-row > div { flex: 1; min-width: 0; }
.contact-row .num { font: 600 0.9375rem var(--mono); color: var(--on-surface); direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------------- Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
}
.bottom-nav__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); padding: 0 0.25rem; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; text-decoration: none; color: var(--slate-400); font-size: 0.6875rem; font-weight: 600; border-radius: var(--r-md); margin: 0.35rem 0.15rem; min-width: 0; }
.tab span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--primary-container); background: rgba(15, 76, 129, .08); }
.tab[aria-current="page"] .ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.tab--sos { color: var(--urgent); }
.tab--sos[aria-current="page"] { color: var(--urgent); background: rgba(220, 38, 38, .08); }

/* ---------------------------------------------------------------- Sheets / modals */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(11, 28, 48, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .2s; }
.sheet__panel {
  position: relative; width: 100%; max-width: var(--container); max-height: 92dvh; overflow-y: auto; background: var(--surface-lowest);
  border-radius: 1.5rem 1.5rem 0 0; padding: 0.75rem 1.25rem calc(1.5rem + var(--safe-bottom)); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: 0.9rem; animation: slideUp .25s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain;
}
.sheet__grab { width: 3rem; height: 0.3rem; border-radius: var(--r-full); background: var(--outline-variant); margin: 0 auto; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.sheet__head h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; color: var(--primary); }
.sheet__head p { margin: 0.2rem 0 0; color: var(--on-surface-variant); font-size: 0.8125rem; }
.sheet.is-closing .sheet__panel { animation: slideDown .2s forwards; }
.sheet.is-closing .sheet__backdrop { animation: fade .2s reverse forwards; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slideDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 768px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 1.5rem; max-height: 86dvh; }
}
.nav-link { min-height: 3.75rem; border-radius: var(--r-lg); padding: 0 0.9rem; display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.0625rem; }
.nav-link .badge-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.nav-link .grow { flex: 1; }
.nav-link--waze { background: rgba(51, 204, 255, .14); border: 1px solid rgba(51, 204, 255, .45); }
.nav-link--waze .badge-icon { background: var(--waze); }
.nav-link--gmaps { background: rgba(0, 99, 152, .08); border: 1px solid rgba(0, 99, 152, .3); }
.nav-link--gmaps .badge-icon { background: var(--secondary); }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 12, 22, .96); display: flex; flex-direction: column; touch-action: none; animation: fade .2s; }
.lightbox__stage { flex: 1; overflow: hidden; position: relative; display: grid; place-items: center; cursor: grab; }
.lightbox__canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
.lightbox__canvas img { width: 100%; height: 100%; display: block; background: #fff; user-select: none; -webkit-user-drag: none; }
.lb-pin { position: absolute; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--primary); color: #fff; font: 700 0.875rem var(--mono); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transform: translate(-50%, -50%) scale(var(--inv)); pointer-events: none; }
.lb-pin.is-on { background: #e8590c; width: 2.3rem; height: 2.3rem; box-shadow: 0 0 0 6px rgba(232, 89, 12, .35), 0 2px 8px rgba(0, 0, 0, .45); }
.lightbox__caption { color: #fff; text-align: center; padding: 0.5rem 1rem 0; font-size: 0.9375rem; }
.lightbox__caption b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e8590c; font: 700 0.8125rem var(--mono); margin-inline-end: 0.35rem; }
.lightbox__pins { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0.75rem 0; scrollbar-width: none; }
.lightbox .lightbox__pins button { width: auto; height: auto; border-radius: var(--r-full); padding: 0.3rem 0.7rem 0.3rem 0.3rem; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; font-size: 0.8125rem; flex-shrink: 0; }
[dir="rtl"] .lightbox .lightbox__pins button { padding: 0.3rem 0.3rem 0.3rem 0.7rem; }
.lightbox__pins b { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font: 700 0.75rem var(--mono); }
.lightbox__pins button.is-on b { background: #e8590c; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: calc(0.5rem + var(--safe-top)) 0.75rem 0.5rem; color: #fff; }
.lightbox__bar h2 { margin: 0; font-size: 1rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__tools { display: flex; justify-content: center; gap: 0.75rem; padding: 0.75rem 0.75rem calc(0.75rem + var(--safe-bottom)); direction: ltr; }
.lightbox button { width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lightbox__zoom { color: #fff; font: 600 0.8125rem var(--mono); align-self: center; min-width: 3.5rem; text-align: center; }

/* ---------------------------------------------------------------- Toast */
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bottom) + 0.75rem); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none; padding: 0 1rem; }
.toast { background: var(--inverse-surface, #213145); color: #eaf1ff; padding: 0.7rem 1rem; border-radius: var(--r-md); box-shadow: var(--shadow-3); font-weight: 600; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; animation: fadeUp .2s; pointer-events: auto; max-width: 30rem; }
.toast .ms { font-size: 1.2rem; color: var(--secondary-container); }
.toast button { background: none; border: 0; color: var(--secondary-container); font-weight: 700; padding: 0.25rem 0.5rem; }
.toast--error .ms { color: #ffb4ab; }

/* ---------------------------------------------------------------- Install banner */
.install-banner {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(var(--nav-h) + var(--safe-bottom) + 0.75rem); z-index: 60; margin: 0 auto; max-width: 30rem;
  background: var(--surface-lowest); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  padding: 0.85rem; display: flex; gap: 0.75rem; align-items: flex-start; animation: fadeUp .3s;
}
.install-banner img { width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); }
.install-banner > div { flex: 1; min-width: 0; }
.install-banner strong { display: block; color: var(--primary); }
.install-banner p { margin: 0.2rem 0 0.5rem; font-size: 0.8125rem; color: var(--on-surface-variant); }
.install-banner .ms.inline { font-size: 1.05rem; vertical-align: -0.2em; color: var(--secondary); }

/* ---------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field > span { font-size: 0.75rem; font-weight: 600; color: var(--on-surface-variant); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 2.875rem; border: 1px solid #cbd5e1; border-radius: var(--r); padding: 0.6rem 0.75rem; background: #fff; font-size: 1rem;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--cyan); outline: 0; box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }
.pin-input { font: 600 2rem var(--mono); letter-spacing: .5em; text-align: center; direction: ltr; }
.lang-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.lang-tabs button { border: 1px solid var(--outline-variant); background: #fff; border-radius: var(--r-full); padding: 0.3rem 0.7rem; font: 600 0.75rem var(--mono); min-height: 2.25rem; }
.lang-tabs button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-tabs button.has-value::after { content: ' ✓'; color: var(--olive); }
.lang-tabs button[aria-pressed="true"].has-value::after { color: #b7f0c8; }
.parsed { background: var(--surface-low); border-radius: var(--r-md); padding: 0.75rem; font-size: 0.8125rem; display: grid; gap: 0.25rem; }
.parsed b { color: var(--primary); }

.admin-add {
  border: 1.5px dashed var(--sand); color: var(--sand-deep); background: rgba(217, 119, 6, .05); border-radius: var(--r-md);
  min-height: 2.75rem; padding: 0.5rem 0.9rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; width: 100%;
}
.admin-note { border: 1px solid rgba(217, 119, 6, .4); background: rgba(217, 119, 6, .05); border-radius: var(--r-md); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.admin-note__head { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--sand-deep); }
.admin-note__head .grow { flex: 1; }
.admin-note__head button { border: 0; background: none; color: var(--error); padding: 0.25rem; }
.admin-list { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-list > div { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; background: var(--surface-low); border-radius: var(--r); font-size: 0.8125rem; }
.admin-list > div > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list button { border: 0; background: none; color: var(--error); padding: 0.25rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.8125rem; }
.kv dt { color: var(--on-surface-variant); }
.kv dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }

.footer { text-align: center; font-size: 0.75rem; color: var(--slate-400); padding: 0.5rem 0 0; display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.footer button { border: 0; background: none; color: var(--slate-400); padding: 0.5rem; display: grid; place-items: center; }
.footer .ms { font-size: 1rem; }

/* ---------------------------------------------------------------- Tablet / desktop */
@media (min-width: 768px) {
  :root { --container: 48rem; }
  main#view { padding-inline: 1.5rem; }
  .grid-2.grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
}
@media (min-width: 1024px) { :root { --container: 64rem; } .grid-2.grid-md-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Font scaling safety: at 150% tighten the header so it never wraps badly */
html[data-fs="150"] .lang-btn { min-width: 2.2rem; padding: 0 0.3rem; }
html[data-fs="150"] .tile__label { font-size: 1rem; }
@media (max-width: 360px) { .controls-row { flex-wrap: wrap; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .topbar, .bottom-nav, .install-banner, .toast-host { display: none !important; } main#view { padding: 0; } }

/* ---------- personal entry codes ---------- */
.codes-locked { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem; border-radius: var(--r-md); background: var(--surface-low); border: 1px dashed var(--outline-variant); }
.codes-locked > .row > .ms { color: var(--primary); font-size: 1.5rem; }
.codes-locked .input { min-height: 2.75rem; }

/* ---------- admin tools ---------- */
.guest-list { display: flex; flex-direction: column; gap: 0.5rem; }
.guest-row { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.625rem 0.75rem; border-radius: var(--r-md); background: var(--surface-low); }
.guest-row .place-card__meta { margin-top: 0.25rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--primary); flex: none; }
details.advanced > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 1.4rem; color: var(--on-surface-variant); }
details.advanced[open] > summary::after { content: 'expand_less'; }
details.advanced[open] > summary { margin-bottom: 0.75rem; }
details.advanced > section + section { border-top: 1px solid var(--surface-high); padding-top: 0.875rem; margin-top: 0.875rem; }
.admin-list a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- Appliance: how-to tasks + every control */
.num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.3rem; border-radius: var(--r-full); background: var(--primary); color: #fff; font: 700 0.75rem var(--mono); border: 0; flex-shrink: 0; cursor: zoom-in; vertical-align: middle; }
.num .ms { font-size: 0.9rem; }
.legend button { all: unset; display: flex; gap: 0.45rem; align-items: center; font-size: 0.8125rem; background: var(--surface-low); border-radius: var(--r); padding: 0.4rem 0.5rem; cursor: zoom-in; }
.legend button b { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 0.75rem var(--mono); flex-shrink: 0; }
.task-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; counter-reset: ts; }
.task-steps li { display: flex; gap: 0.6rem; align-items: flex-start; counter-increment: ts; color: var(--on-surface); }
.task-steps li::before { content: counter(ts) "."; font: 700 0.875rem var(--mono); color: var(--outline); min-width: 1.2rem; padding-top: 0.15rem; }
.task-steps li span { flex: 1; }
.controls { display: flex; flex-direction: column; gap: 0.5rem; }
.control { display: flex; gap: 0.6rem; align-items: flex-start; background: var(--surface-low); border-radius: var(--r-md); padding: 0.6rem 0.7rem; }
.control p { margin: 0.15rem 0 0; color: var(--on-surface-variant); font-size: 0.875rem; }
.control__printed { font: 600 0.75rem var(--mono); color: var(--outline); margin-inline-start: 0.35rem; }
.control-group h4 { margin: 0.5rem 0 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.num--letter { background: #b45309; border-radius: 0.35rem; cursor: zoom-in; }
span.num--letter { cursor: default; }
.control > .num--letter { margin-top: 0.1rem; }
.lb-pin--letter { width: 1.45rem; height: 1.45rem; border-radius: 0.3rem; background: #b45309; font-size: 0.75rem; border-width: 1.5px; }
.lb-pin--letter[data-side="l"] { transform: translate(-115%, -50%) scale(var(--inv)); transform-origin: right center; }
.lb-pin--letter[data-side="r"] { transform: translate(15%, -50%) scale(var(--inv)); transform-origin: left center; }
.lb-pin--letter.is-on { width: 1.8rem; height: 1.8rem; border-radius: 0.35rem; }
.lightbox__pins button.is-letter b { background: #b45309; border-radius: 0.3rem; }
.btn--gemini { background: linear-gradient(90deg, #1a73e8, #8e44ef); color: #fff; }

/* ---------------------------------------------------------------- Welcome screen (photo of the complex) */
.has-splash body { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 200; background: #0b1c30; color: #fff; display: flex; align-items: flex-end; cursor: pointer; transition: opacity .7s ease, visibility .7s; }
.splash.is-leaving { opacity: 0; visibility: hidden; }
.splash__photos, .splash__photos img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__photos img { object-fit: cover; object-position: 40% 50%; opacity: 0; transform: scale(1.4); transition: opacity 1.4s ease; will-change: transform, opacity; }
/* camera pulling back: each photo starts close and slowly zooms out for its whole time on screen,
   and keeps moving while it fades out (is-out) so there is no jump */
.splash__photos img.is-on, .splash__photos img.is-out { animation: splash-drift 6.5s cubic-bezier(.33, 0, .3, 1) forwards; }
.splash__photos img.is-on { opacity: 1; }
.splash__photos.is-missing img { display: none; }
.splash__photos.is-missing { background: radial-gradient(120% 80% at 70% 10%, #2f7bbf 0%, #0f4c81 45%, #0b1c30 100%); }
@keyframes splash-drift { from { transform: scale(1.4); } to { transform: scale(1); } }
.splash__dots { display: flex; gap: 0.4rem; margin-top: 1.1rem; }
.splash__dots:empty { display: none; }
.splash__dots span { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .4s, background .4s; }
.splash__dots span.is-on { width: 1.4rem; background: #fff; }
.splash__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 28, 48, .35) 0%, rgba(11, 28, 48, 0) 28%, rgba(11, 28, 48, .15) 50%, rgba(11, 28, 48, .88) 100%); }
.splash__content { position: relative; width: 100%; max-width: 40rem; margin: 0 auto; padding: 2rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0.35rem; }
.splash__content > * { opacity: 0; transform: translateY(12px); animation: splash-rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.splash__content > :nth-child(2) { animation-delay: .12s; }
.splash__content > :nth-child(3) { animation-delay: .24s; }
.splash__content > :nth-child(4) { animation-delay: .36s; }
.splash__content > :nth-child(5) { animation-delay: .5s; }
@keyframes splash-rise { to { opacity: 1; transform: none; } }
.splash__kicker { margin: 0; font: 600 0.8125rem var(--mono, monospace); letter-spacing: .18em; text-transform: uppercase; color: #f5d9a8; }
.splash__title { margin: 0; font-size: clamp(2.1rem, 9vw, 3.4rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.splash__sub { margin: 0.25rem 0 0; font-size: 1.0625rem; opacity: .92; }
.splash__guest { margin: 0.6rem 0 0; font-size: 1.125rem; font-weight: 600; color: #f5d9a8; }
.splash__enter { margin-top: 1.4rem; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .16); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.splash__enter .ms { font-size: 1.25rem; }
[dir="rtl"] .splash__enter .ms { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .splash__photos img.is-on, .splash__content > * { animation: none; transform: none; opacity: 1; }
}
[dir="rtl"] .splash__kicker { letter-spacing: 0; font-family: inherit; font-size: 0.9375rem; }
