/* Splash screen for logged-out visitors + the visitor box (splash.js). Design: design-refs/splash-mockup.html.
   Site colours only (style.css tokens), so every theme works. */
body.vs-open { overflow: hidden; }
.vs-veil { position: fixed; inset: 0; z-index: 1000; display: flex; overflow-y: auto; padding: 20px 14px;
  background: color-mix(in srgb, var(--scrim) 72%, transparent); backdrop-filter: blur(5px); }
.vs-splash { box-sizing: border-box; margin: auto; width: min(620px, 100%); text-align: center; color: var(--text);
  padding: 30px 28px 22px; border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow-dlg);
  background: radial-gradient(ellipse 90% 55% at 50% 0, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), var(--panel); }
.vs-splash:focus { outline: none; }
.vs-logo { width: 104px; height: 104px; display: block; margin: 0 auto 6px; border-radius: 22px; }
.vs-name { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(22px, 6vw, 32px); }
.vs-h { font-weight: 400; font-size: clamp(17px, 4.6vw, 21px); margin: 8px 0 20px; line-height: 1.4; letter-spacing: normal; text-transform: none; color: var(--text); }
.vs-pts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; text-align: left; }
.vs-pts li { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  background: color-mix(in srgb, var(--card) 70%, transparent); }
.vs-pts svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.vs-pts b { display: block; font-size: 14.5px; }
.vs-pts span { display: block; color: var(--muted); font-size: 13.5px; }
.vs-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
body.vf .vs-btns .btn { border-radius: 10px; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; padding: 12px 22px; }
body.vf .vs-btns .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body.vf button.vs-look { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 400; letter-spacing: normal;
  text-decoration: underline; margin-top: 14px; padding: 8px 12px; }
body.vf button.vs-look:hover, body.vf button.vs-look:focus-visible { color: var(--gold); opacity: 1; outline: 2px solid var(--focus); outline-offset: 2px; }
body.vf button.vs-look:hover { outline: none; }

/* the box on the page */
.vs-box { margin: 8px 0 22px; }
.vs-box.vs-empty { border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; padding: 44px 20px; }
.vs-box.vs-empty p { margin: 0 auto 18px; max-width: 430px; font-size: 16px; }
.vs-row-h { font-weight: 300; letter-spacing: .2em; font-size: 19px; text-transform: uppercase; margin: 0 0 14px; color: var(--text); }
.vs-grid { margin-bottom: 18px; }
.vs-invite { text-align: center; color: var(--muted); margin: 0 0 12px; }
/* nothing a visitor can see: the page's own controls and "No characters here yet." step aside for the box */
body.vs-nothing .hm-controls, body.vs-nothing .hm-filters, body.vs-nothing #empty { display: none !important; }

@media (max-width: 480px) {
  .vs-splash { padding: 20px 16px 14px; }
  .vs-logo { width: 72px; height: 72px; border-radius: 16px; }
  .vs-h { margin-bottom: 14px; }
  .vs-pts { gap: 7px; margin-bottom: 16px; }
  .vs-pts li { padding: 9px 11px; }
  .vs-btns .btn { flex: 1 1 100%; text-align: center; }
  .vs-box.vs-empty { padding: 30px 16px; }
}
/* short phones (375x667): tighter still, so it fits without scrolling */
@media (max-height: 700px) and (max-width: 480px) {
  .vs-veil { padding: 10px; }
  .vs-logo { width: 56px; height: 56px; margin-bottom: 2px; }
  .vs-h { margin: 4px 0 12px; font-size: 16px; }
  .vs-pts li { padding: 7px 10px; gap: 10px; }
  .vs-pts span { font-size: 13px; line-height: 1.35; }
  body.vf .vs-btns .btn { padding: 10px 16px; }
  body.vf button.vs-look { margin-top: 6px; padding: 6px 12px; }
}
