/* Cyber Place Club Card (2026-11-25). The brand's night navy and the
 * blue-to-violet of its mark; Russo One for the name and the balances, Inter
 * for reading. The one bold thing is the wallet of club cards. */
@font-face {
  font-family: "Russo One";
  src: url("/assets/fonts/RussoOne.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --night: #020514;
  --surface: #0b1335;
  --line: rgba(142, 156, 230, 0.18);
  --ink: #eaf0ff;
  --mute: #8b96c4;
  --blue: #3e63d6;
  --violet: #9a3fc1;
  --focus: #07ddf1;
  --radius-card: 22px;
  --display: "Russo One", "Inter", "Noto Sans Armenian", system-ui, sans-serif;
  --text: "Inter", "Noto Sans Armenian", "Sylfaen", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--night); color: var(--ink); }
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.noscript { padding: 24px; text-align: center; }

/* ── screens ─────────────────────────────────────────────────────────── */
.screen { flex: 1; display: flex; flex-direction: column; animation: enter 360ms ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.screen--splash { align-items: center; justify-content: center; gap: 22px; text-align: center; }
.splash__mark { width: 132px; height: 132px; border-radius: 32px; box-shadow: 0 18px 60px rgba(62, 99, 214, 0.35); }
.splash__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; }
.splash__title span { display: block; margin-top: 8px; font-size: 17px; color: var(--mute); letter-spacing: 0.08em; }

.screen--center { justify-content: center; gap: 18px; text-align: center; }
.screen h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.lead { margin: 0; color: var(--mute); max-width: 34ch; margin-inline: auto; }

.lang-title { display: grid; gap: 4px; font-size: 22px !important; }
.lang-title span:not(:first-child) { font-family: var(--text); font-size: 16px; color: var(--mute); }

.mark-small { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 6px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  min-height: 56px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  width: 100%;
  background: linear-gradient(100deg, var(--blue), var(--violet));
  color: #fff;
  transition: transform 120ms ease, filter 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { filter: grayscale(0.6) brightness(0.7); cursor: progress; }
.btn--quiet { background: transparent; color: var(--mute); border: 1px solid var(--line); font-weight: 600; }
.btn--call { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn--call svg { width: 20px; height: 20px; flex: none; }

.langs { display: grid; gap: 12px; width: 100%; }
.lang {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang small { color: var(--mute); font-weight: 500; font-size: 14px; }

.stack { display: grid; gap: 12px; width: 100%; margin-top: 8px; }
.error { color: #ff8aa0; margin: 0; font-size: 14px; }

/* ── home ───────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.top__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; }
.top__brand img { width: 34px; height: 34px; border-radius: 10px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* The code: what the administrator scans or types. */
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.code-card__qr { width: min(220px, 62vw); aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.code-card__qr svg { display: block; width: 100%; height: 100%; }
.code-card__code {
  font-family: var(--display);
  font-size: 40px;
  letter-spacing: 0.18em;
  margin: 0;
  padding-left: 0.18em;
  line-height: 1;
}
.code-card__hint { margin: 0; color: var(--mute); text-align: center; font-size: 15px; max-width: 32ch; }

.empty { display: grid; gap: 18px; }
.empty h2 { font-size: 24px; text-align: center; }
.empty__art { width: 112px; height: 112px; margin: 0 auto; }

/* The wallet: cards lie on each other like in a wallet app; the open one
 * stands clear of the rest and shows how to reach the club. */
.wallet { display: flex; flex-direction: column; padding-bottom: 12px; }
.club {
  --hue-a: var(--blue);
  --hue-b: var(--violet);
  position: relative;
  appearance: none;
  border: 0;
  width: 100%;
  min-height: 196px;
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(135deg, var(--hue-a), var(--hue-b));
  box-shadow: 0 -10px 30px rgba(2, 5, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  transition: margin 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.club + .club { margin-top: -132px; }
.club.is-open + .club { margin-top: 16px; }
.club.is-open { transform: translateY(-4px); }
.club__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.club__logo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(2, 5, 20, 0.35);
}
.club__name { font-weight: 700; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club__place { font-size: 13px; opacity: 0.82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club__balance { align-self: end; display: flex; align-items: baseline; gap: 8px; }
.club__balance strong { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; }
.club__balance span { font-size: 15px; opacity: 0.85; }
.club__mark { position: absolute; right: 18px; bottom: 16px; width: 30px; height: 30px; border-radius: 8px; opacity: 0.85; }

.club-actions { display: grid; gap: 10px; margin: 14px 0 8px; animation: enter 260ms ease-out both; }
.club-actions__phone { margin: 0; text-align: center; color: var(--mute); font-size: 14px; }

.screen .section-title { margin: 4px 0 16px; font-family: var(--text); font-size: 15px; color: var(--mute); font-weight: 600; }
.offline { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 181, 71, 0.12); color: #ffcf85; font-size: 14px; }

/* The code sheet, over the wallet. */
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 20, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
  animation: fade 200ms ease-out both;
}
.sheet__body {
  width: 100%;
  max-width: 480px;
  background: var(--night);
  border-top: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
  animation: rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sheet__body h2 { text-align: center; font-size: 22px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
