/* ============================================================
   JOINO v3 — светлая дизайн-система (глобальный редизайн 2026-07)
   Макеты: Join_Website/*.psd. Палитра: лавандовый фон, белые
   карточки, фиолет #7B4BFF, жёлтый #FFD53D, тёмно-синий текст.
   Подключается ВМЕСТО styles.css/landing-v2.css на страницах
   нового дизайна. Прочие страницы мигрируют поэтапно.
   ============================================================ */

:root {
  color-scheme: light;
  --jv-bg-top: #ece6fa;
  --jv-bg-bottom: #d8eafb;
  --jv-card: #ffffff;
  --jv-ink: #2f2065;
  --jv-ink-soft: #55468b;
  --jv-muted: #8f87ad;
  --jv-purple: #7b4bff;
  --jv-purple-deep: #6234e8;
  --jv-purple-dark: #4f24c8;
  --jv-purple-light: #a78bfa;
  --jv-purple-wash: #f1ebff;
  --jv-yellow: #ffd53d;
  --jv-yellow-deep: #efb70e;
  --jv-pink: #ee3d9c;
  --jv-pink-wash: #fbd9ec;
  --jv-green: #22b573;
  --jv-red: #e5484d;
  --jv-input-bg: #f3f1f9;
  --jv-stroke: #e7e2f4;
  --jv-shadow-card: 0 6px 18px rgba(80, 60, 150, 0.12);
  --jv-shadow-soft: 0 3px 10px rgba(80, 60, 150, 0.08);
  --jv-radius: 20px;
  --jv-radius-lg: 26px;
  --jv-radius-sm: 14px;
  --jv-font: "Nunito", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --jv-nav-height: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.jv-body {
  margin: 0;
  font-family: var(--jv-font);
  color: var(--jv-ink);
  background: linear-gradient(160deg, var(--jv-bg-top) 0%, #e3e6fb 45%, var(--jv-bg-bottom) 100%) fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.jv-body img { max-width: 100%; display: block; }
.jv-body a { color: inherit; }

.hidden { display: none !important; }

/* ---------- Каркас страницы ---------- */

.jv-page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 14px 16px calc(var(--jv-nav-height) + 26px);
}

/* ---------- Шапка ---------- */

.jv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 14px;
}

.jv-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.jv-logo img { height: 40px; width: auto; filter: drop-shadow(0 2px 4px rgba(80, 60, 150, 0.18)); }

.jv-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Круглая белая кнопка (колокольчик и т.п.) */
.jv-iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--jv-card);
  box-shadow: var(--jv-shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}
.jv-iconbtn:active { transform: scale(0.94); }
.jv-iconbtn img { width: 24px; height: 24px; object-fit: contain; }

/* Фиолетовая пилюля «← Назад» */
.jv-backpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  background: var(--jv-purple);
  color: #fff;
  font-family: var(--jv-font);
  font-weight: 800;
  font-size: 16px;
  border-radius: 14px;
  padding: 11px 18px;
  box-shadow: 0 4px 0 var(--jv-purple-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
}
.jv-backpill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--jv-purple-dark); }

/* ---------- Типографика ---------- */

.jv-h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.jv-h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.jv-sub {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--jv-ink-soft);
  font-weight: 600;
}

.jv-accent-purple { color: var(--jv-purple); }
.jv-accent-pink { color: var(--jv-pink); }

/* ---------- Карточки ---------- */

.jv-card {
  background: var(--jv-card);
  border-radius: var(--jv-radius);
  box-shadow: var(--jv-shadow-card);
  padding: 16px;
}

/* ---------- Кнопки ---------- */

.jv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--jv-font);
  font-weight: 900;
  font-size: 19px;
  border-radius: 18px;
  padding: 16px 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.jv-btn:disabled { opacity: 0.55; cursor: default; }

.jv-btn--yellow {
  background: var(--jv-yellow);
  color: var(--jv-ink);
  box-shadow: 0 5px 0 var(--jv-yellow-deep);
}
.jv-btn--yellow:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--jv-yellow-deep); }

.jv-btn--purple {
  background: var(--jv-purple);
  color: #fff;
  box-shadow: 0 5px 0 var(--jv-purple-dark);
}
.jv-btn--purple:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--jv-purple-dark); }

.jv-btn--white {
  background: var(--jv-card);
  color: var(--jv-ink);
  box-shadow: var(--jv-shadow-soft), inset 0 0 0 2px var(--jv-stroke);
  font-weight: 800;
}
.jv-btn--white:not(:disabled):active { transform: translateY(2px); }

.jv-btn--sm { font-size: 15px; padding: 10px 16px; border-radius: 13px; width: auto; }

.jv-btn__arrow { font-weight: 900; }

/* ---------- Поля ввода ---------- */

.jv-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--jv-ink);
  margin: 0 0 7px 4px;
}

.jv-input {
  width: 100%;
  border: 2px solid transparent;
  background: var(--jv-input-bg);
  color: var(--jv-ink);
  border-radius: var(--jv-radius-sm);
  padding: 13px 15px;
  font-size: 16px;
  font-family: var(--jv-font);
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.jv-input::placeholder { color: var(--jv-muted); font-weight: 600; }
.jv-input:focus { border-color: var(--jv-purple-light); background: #fff; }

.jv-input--code {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-align: center;
  font-weight: 900;
  font-size: 19px;
}

/* ---------- Чипы-фильтры ---------- */

.jv-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.jv-chips::-webkit-scrollbar { display: none; }

.jv-chip {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  font-family: var(--jv-font);
  font-weight: 800;
  font-size: 14px;
  color: var(--jv-ink);
  background: var(--jv-card);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: var(--jv-shadow-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.jv-chip--active {
  background: var(--jv-purple);
  color: #fff;
}

/* ---------- Статус/ошибки ---------- */

.jv-status {
  min-height: 20px;
  margin: 10px 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--jv-ink-soft);
  text-align: center;
}
.jv-status--error { color: var(--jv-red); }

/* ---------- Нижняя навигация ---------- */

/* Плавающая пилюля по макету: скругление со всех сторон, отступы от краёв */
.jv-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(100% - 24px, 536px);
  z-index: 50;
  background: var(--jv-card);
  border-radius: 26px;
  box-shadow: 0 8px 26px rgba(80, 60, 150, 0.20);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 9px 10px;
}

.jv-nav__item {
  flex: 1 1 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--jv-font);
  font-size: 12px;
  font-weight: 800;
  color: #bcbcbc;
  padding: 4px 0 2px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.jv-nav__ico {
  width: 52px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.jv-nav__ico svg { height: 22px; width: auto; display: block; }

.jv-nav__item--active { color: var(--jv-purple); }
.jv-nav__item--active .jv-nav__ico { background: var(--jv-purple-wash); }

.jv-nav__item--disabled { cursor: default; opacity: 0.75; }

/* ---------- Лендинг ---------- */

.jv-hero-title {
  margin: 4px 0 0;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 900;
  text-align: center;
}

.jv-usp {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
}

.jv-usp li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
}

.jv-usp-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--jv-shadow-soft);
}
.jv-usp-ico img { width: 100%; height: 100%; object-fit: cover; }

.jv-hero-card {
  margin-top: 16px;
  background: var(--jv-card);
  border-radius: var(--jv-radius-lg);
  box-shadow: var(--jv-shadow-card);
  overflow: hidden;
}
.jv-hero-card img { width: 100%; height: auto; }

.jv-landing-cta { margin-top: 18px; font-size: 22px; padding: 18px 22px; border-radius: 22px; }

.jv-how {
  margin-top: 22px;
  text-align: center;
}
.jv-how-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
}

/* Как в макете: одна общая белая плашка на все три шага, иконки без
   обрезки (contain на белом фоне), стрелки по центру иконок. */
.jv-how-row {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
  padding: 10px 12px 12px;
  background: var(--jv-card);
  border-radius: 22px;
  box-shadow: var(--jv-shadow-card);
}

.jv-how-step {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  min-width: 0;
}

.jv-how-ico {
  --jv-how-size: 76px;
  width: var(--jv-how-size);
  height: var(--jv-how-size);
  border-radius: 0;
  background: none;
  box-shadow: none;
  position: relative;
  display: block;
}
.jv-how-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }

.jv-how-num {
  position: absolute;
  top: -4px;
  left: -8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--jv-yellow);
  color: var(--jv-ink);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--jv-yellow-deep);
}

.jv-how-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--jv-ink);
  line-height: 1.2;
  white-space: nowrap;
}

/* Стрелка занимает высоту иконки и центрируется по ней */
.jv-how-arrow {
  align-self: flex-start;
  height: 76px;
  display: flex;
  align-items: center;
  color: var(--jv-purple);
  flex: 0 0 auto;
}
.jv-how-arrow svg { width: 22px; height: 22px; display: block; }

/* Футер-мелочь на лендинге */
.jv-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--jv-muted);
}
.jv-footer a { color: var(--jv-ink-soft); text-decoration: none; margin: 0 8px; }
.jv-footer-copy { display: block; margin-top: 8px; }

/* ---------- Пикер игр ---------- */

.jv-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.jv-picker-art {
  margin: -6px -4px 0;
}
.jv-picker-art img { width: 100%; height: auto; }

.jv-name-block { margin-top: 14px; }

/* Поле имени в белой карточке-строке: «Твоё имя:  [input]» */
.jv-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--jv-card);
  border-radius: var(--jv-radius-sm);
  box-shadow: var(--jv-shadow-soft);
  padding: 8px 8px 8px 14px;
}
.jv-name-row .jv-name-caption {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}
.jv-name-row .jv-input { flex: 1 1 auto; }

.jv-picker-chips { margin-top: 14px; }

.jv-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.jv-tile {
  border: none;
  cursor: pointer;
  background: var(--jv-card);
  border-radius: 18px;
  box-shadow: var(--jv-shadow-card);
  padding: 10px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--jv-font);
  color: var(--jv-ink);
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.jv-tile:not(:disabled):active { transform: scale(0.96); }
.jv-tile:disabled { opacity: 0.6; }

.jv-tile__img {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jv-tile__img img {
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
}

.jv-tile__name {
  font-size: 12.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.jv-tile__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.jv-tile__meta-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--jv-muted);
  line-height: 1.2;
}
.jv-tile__meta-row svg { width: 11px; height: 11px; flex: 0 0 auto; fill: var(--jv-purple-light); }

.jv-tile__age {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--jv-pink);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
}
.jv-tile { position: relative; }

/* ---------- Блок «Войти по коду комнаты» ---------- */

.jv-join {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.jv-join__ico {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jv-join__ico img { width: 34px; height: auto; }

.jv-join__text { flex: 1 1 auto; min-width: 0; }
.jv-join__title { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.2; }
.jv-join__hint { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--jv-muted); line-height: 1.25; }

.jv-join__controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 46%;
  max-width: 200px;
}

/* ---------- Контакты ---------- */

.jv-contacts-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.jv-field-caption {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jv-muted);
  margin: 0 0 5px 4px;
}

.jv-field-value {
  background: var(--jv-card);
  border-radius: var(--jv-radius-sm);
  box-shadow: var(--jv-shadow-soft);
  padding: 13px 15px;
  font-size: 16px;
  font-weight: 800;
  color: var(--jv-ink);
  word-break: break-word;
}
.jv-field-value a { text-decoration: none; color: var(--jv-purple); }

/* ---------- Утилиты ---------- */

.jv-mt-8 { margin-top: 8px; }
.jv-mt-14 { margin-top: 14px; }
.jv-mt-20 { margin-top: 20px; }
.jv-center { text-align: center; }

@media (max-width: 380px) {
  .jv-hero-title { font-size: 22px; }
  .jv-usp li { font-size: 12px; }
  .jv-tile__name { font-size: 11.5px; }
}

/* ============================================================
   FIT-РЕЖИМ: экран целиком влезает в 100dvh без прокрутки
   (правка по фидбеку: «на одном экране всё влезает»).
   Гибкие блоки (hero-баннер, сетка плиток) сжимаются под
   оставшееся место; на совсем низких экранах (<560px) режим
   отключается и страница скроллится как обычно.
   ============================================================ */

/* Блокировка страницы «как в приложении»: body зафиксирован, никакого
   скролла и iOS-отскока. Вешается классом jv-lock на <body>. */
html:has(body.jv-lock) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body.jv-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.jv-screen-fit {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: calc(var(--jv-nav-height) + env(safe-area-inset-bottom, 0px) + 18px);
  gap: 0;
}

.jv-screen-fit .jv-topbar { padding: 2px 0 8px; flex: 0 0 auto; }

/* ---- Лендинг ---- */

.jv-screen-fit .jv-hero-title {
  margin: 0;
  font-size: clamp(19px, 2.9dvh, 25px);
  flex: 0 0 auto;
}

.jv-screen-fit .jv-usp {
  margin: clamp(6px, 1.2dvh, 12px) 0 0;
  flex: 0 0 auto;
}
.jv-screen-fit .jv-usp-ico { width: clamp(26px, 4dvh, 34px); height: clamp(26px, 4dvh, 34px); }
.jv-screen-fit .jv-usp li { font-size: clamp(11px, 1.6dvh, 13.5px); }

.jv-screen-fit .jv-hero-card {
  margin-top: clamp(8px, 1.4dvh, 14px);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.jv-screen-fit .jv-hero-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  /* Кот с пузырём «Отсканируйте мой QR код» — слева; кропим правый край */
  object-position: left center;
  border-radius: var(--jv-radius-lg);
}

.jv-screen-fit .jv-landing-cta {
  margin-top: clamp(8px, 1.6dvh, 16px);
  flex: 0 0 auto;
  font-size: clamp(17px, 2.4dvh, 21px);
  padding: clamp(11px, 1.9dvh, 17px) 22px;
}

.jv-screen-fit .jv-how { margin-top: clamp(8px, 1.6dvh, 16px); flex: 0 0 auto; }
.jv-screen-fit .jv-how-title { margin-bottom: clamp(6px, 1.2dvh, 12px); font-size: clamp(15px, 2.2dvh, 19px); }
.jv-screen-fit .jv-how-row { padding: clamp(6px, 1.1dvh, 11px) 12px clamp(8px, 1.3dvh, 12px); }
.jv-screen-fit .jv-how-ico { --jv-how-size: clamp(52px, 8.6dvh, 76px); }
.jv-screen-fit .jv-how-num { width: 22px; height: 22px; font-size: 12px; }
.jv-screen-fit .jv-how-label { font-size: clamp(10px, 1.5dvh, 12px); }
.jv-screen-fit .jv-how-arrow { height: clamp(52px, 8.6dvh, 76px); }
.jv-screen-fit .jv-how-arrow svg { width: clamp(18px, 3dvh, 24px); height: clamp(18px, 3dvh, 24px); }

/* Футер — одна тонкая строка */
.jv-footer--line {
  margin-top: clamp(6px, 1.2dvh, 12px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
}
.jv-footer--line a { margin: 0; }
.jv-footer--line .jv-footer-copy { display: inline; margin: 0; }

/* ---- Пикер ---- */

/* Арт с друзьями — крупный, почти во всю ширину (как в макете).
   flex 0 0 auto: арт не сжимается, место уступают плитки.
   cover при такой высоте показывает ~85% картинки — мягкий кроп. */
.jv-screen-fit .jv-picker-art {
  margin: 0;
  flex: 0 0 auto;
  height: clamp(84px, 14dvh, 170px);
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}
.jv-screen-fit .jv-picker-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.jv-screen-fit .jv-h1 { margin-top: clamp(2px, 0.6dvh, 8px); font-size: clamp(19px, 2.8dvh, 27px); flex: 0 0 auto; }
.jv-screen-fit .jv-sub { margin-top: 2px; font-size: clamp(11.5px, 1.6dvh, 14px); flex: 0 0 auto; }

.jv-screen-fit .jv-name-block { margin-top: clamp(6px, 1.2dvh, 12px); flex: 0 0 auto; }
.jv-screen-fit .jv-name-row { padding: 5px 6px 5px 12px; }
.jv-screen-fit .jv-name-row .jv-input { padding: clamp(7px, 1.2dvh, 11px) 13px; font-size: 15px; }

.jv-screen-fit .jv-picker-chips { margin-top: clamp(6px, 1.2dvh, 12px); flex: 0 0 auto; padding-bottom: 2px; }
.jv-screen-fit .jv-chip { padding: clamp(6px, 1dvh, 9px) 14px; font-size: clamp(12px, 1.6dvh, 14px); }

.jv-screen-fit .jv-tiles {
  margin-top: clamp(6px, 1.2dvh, 12px);
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.1dvh, 10px);
}
.jv-screen-fit .jv-tile {
  min-height: 0;
  padding: clamp(4px, 0.8dvh, 9px) 6px;
  gap: clamp(2px, 0.5dvh, 6px);
}
.jv-screen-fit .jv-tile__img {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.jv-screen-fit .jv-tile__img img {
  max-height: 100%;
  max-width: 88%;
}
.jv-screen-fit .jv-tile__name { font-size: clamp(10px, 1.45dvh, 12.5px); }
.jv-screen-fit .jv-tile__meta { gap: 0; max-width: 100%; }
.jv-screen-fit .jv-tile__meta-row {
  font-size: clamp(8px, 1.15dvh, 10px);
  display: inline;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.jv-screen-fit .jv-tile__meta-row svg { display: none; }
.jv-screen-fit .jv-tile__age { top: 4px; right: 4px; font-size: 9px; padding: 2px 6px; }

/* Компактный «Войти по коду» — одна строка */
.jv-screen-fit .jv-join {
  margin-top: clamp(5px, 1dvh, 10px);
  flex: 0 0 auto;
  padding: clamp(6px, 1dvh, 11px) 12px;
  gap: 10px;
}
.jv-screen-fit .jv-join__ico { width: 30px; }
.jv-screen-fit .jv-join__ico img { width: 26px; }
.jv-screen-fit .jv-join__title { font-size: clamp(12.5px, 1.8dvh, 15px); }
.jv-screen-fit .jv-join__hint { font-size: clamp(10px, 1.4dvh, 12px); }
.jv-screen-fit .jv-join__controls { flex-direction: row; align-items: stretch; width: 52%; max-width: 240px; gap: 6px; }
.jv-screen-fit .jv-join__controls .jv-input--code {
  min-width: 0;
  padding: 8px 6px;
  font-size: 14px;
  letter-spacing: 0.14em;
}
.jv-screen-fit .jv-join__controls .jv-btn { flex: 0 0 auto; padding: 8px 14px; font-size: 14px; }

.jv-screen-fit .jv-status {
  margin: 2px 4px 0;
  min-height: 16px;
  font-size: 12px;
  flex: 0 0 auto;
}

/* Низкие экраны (Safari с адресной строкой): жмём второстепенное,
   чтобы иконки игр остались крупными. Арт всегда виден. */
@media (max-height: 720px) {
  .jv-screen-fit .jv-sub { display: none; }
  .jv-screen-fit .jv-join__hint { display: none; }
  .jv-screen-fit .jv-join__ico { display: none; }
  .jv-screen-fit .jv-logo img { height: 32px; }
  .jv-screen-fit + .jv-nav,
  body.jv-lock .jv-nav { padding: 6px 10px; }
  body.jv-lock .jv-nav__ico { height: 26px; width: 46px; }
  body.jv-lock .jv-nav__ico svg { height: 18px; }
  body.jv-lock .jv-nav__item { font-size: 11px; gap: 2px; }
}

/* На очень низких экранах fit невозможен — обычный скролл */
@media (max-height: 560px) {
  html:has(body.jv-lock) { overflow: auto; }
  body.jv-lock {
    position: static;
    height: auto;
    overflow: auto;
  }
  .jv-screen-fit {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .jv-screen-fit .jv-hero-card img { height: auto; }
  .jv-screen-fit .jv-tiles { grid-template-rows: none; }
  .jv-screen-fit .jv-tile__img { aspect-ratio: 5 / 4; }
}
