/* Showcase site (docs/vitrine.md): the look of the former React site, on the dashboard's tokens (core/theme.css) for
   radii and spacings. The site's own colours are --vt-* tokens, set once here. Font: Formula1 Display, the same files
   as the dashboard (assets/fonts/f1-*.woff2). */
@import url('/assets/styles/core/theme.css');

@font-face { font-family: 'MFA F1'; src: url('/assets/fonts/f1-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MFA F1'; src: url('/assets/fonts/f1-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --vt-bg: #000;
  --vt-ink: #020203;
  --vt-card: #0a0a0c;
  --vt-text: #fff;
  --vt-text-soft: #e8e8ea;
  --vt-text-light: #e4e4e7;
  --vt-text-muted: #d4d4d8;
  --vt-text-dim: #a1a1aa;
  --vt-text-faint: #71717a;
  --vt-text-ghost: #52525b;
  --vt-line: rgba(255, 255, 255, .07);
  --vt-red: #ff0000;
  --vt-red-soft: rgba(255, 0, 0, .51);
  --vt-discord: #5865f2;
  --vt-online: #10b981;
  --vt-intro-bg: #05080e;
  --vt-danger: #f87171;
  --vt-display: 'MFA F1', 'Barlow Condensed', Arial, sans-serif;
  --vt-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --vt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* In-game phone (docs/ava.md): 50 px at the top (status bar) and 20 px at the bottom (home bar) stay free.
     On the web, the menu keeps the 22 px of the former site. */
  --phone-safe-top: 22px;
  --phone-safe-bottom: 0px;
  --vt-nav-h: 84px;
}
html.vt-phone { --phone-safe-top: 50px; --phone-safe-bottom: 20px; }

*, *::before, *::after { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.08) transparent; }
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 9999px; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--vt-bg); color: var(--vt-text); font-family: var(--vt-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.vt-icon { flex-shrink: 0; }
.vt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Text masked without type=password: the in-game phone's own keyboard intercepts password fields. */
.text-security-disc { -webkit-text-security: disc; }

/* ── Menu ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.vt-nav { position: fixed; left: 0; right: 0; z-index: 50; top: max(env(safe-area-inset-top, 0px), var(--phone-safe-top)); padding-top: 4px; font-family: var(--vt-display); font-weight: 400; }
.vt-nav__bar { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; height: 64px; padding: 0 20px; }
.vt-nav__logo { flex-shrink: 0; margin-right: 24px; }
.vt-nav__logo img { height: 56px; width: auto; }
.vt-nav__links { display: none; align-items: center; gap: 2px; flex: 1; }
.vt-nav__link { position: relative; padding: 8px 16px; font-size: 13px; letter-spacing: .025em; color: rgba(255,255,255,.9); transition: color .2s; }
.vt-nav__link:hover, .vt-nav__link[aria-current='page'] { color: var(--vt-text); }
.vt-nav__link::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: var(--vt-text); transform: scaleX(0); transform-origin: left; transition: transform .3s ease-out; }
.vt-nav__link:hover::after, .vt-nav__link[aria-current='page']::after { transform: scaleX(1); }
.vt-nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.vt-nav__account { display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--vt-text-muted); transition: color .2s; }
.vt-nav__account:hover { color: var(--vt-text); }
.vt-nav__account img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.vt-nav__account:hover img { border-color: rgba(255,255,255,.5); }
.vt-nav__account .vt-icon { color: var(--vt-text-dim); }
.vt-nav__name { display: none; }
.vt-nav__menu { position: relative; }
.vt-nav__toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--vt-text-muted); transition: color .2s; }
.vt-nav__toggle:hover { color: var(--vt-text); }
.vt-nav__toggle .vt-icon { animation: vt-spin-in .15s ease-out; }
@keyframes vt-spin-in { from { transform: rotate(90deg); opacity: 0; } }
.vt-dropdown { position: absolute; right: 0; top: 100%; margin-top: 8px; width: 256px; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.5); overflow: hidden; z-index: 50; transform-origin: top right; animation: vt-drop .18s ease-out; }
.vt-dropdown[hidden] { display: none; }
@keyframes vt-drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.vt-dropdown__links { padding: 8px; }
.vt-dropdown__group + .vt-dropdown__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.05); }
.vt-dropdown__title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--vt-text-ghost); padding: 6px 8px 4px; }
.vt-dropdown__link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--mfa-radius-md); font-size: 13px; line-height: 1; color: rgba(255,255,255,.7); transition: all .15s; }
.vt-dropdown__link .vt-icon { color: var(--vt-text-ghost); transition: color .15s; }
.vt-dropdown__link:hover { color: var(--vt-text); background: rgba(255,255,255,.04); }
.vt-dropdown__link:hover .vt-icon { color: var(--vt-text-muted); }
.vt-dropdown__link[aria-current='page'] { color: var(--vt-text); background: rgba(255,255,255,.08); }
.vt-dropdown__link[aria-current='page'] .vt-icon { color: var(--vt-text); }
.vt-dropdown__footer { border-top: 1px solid rgba(255,255,255,.06); padding: 8px 10px; }
.vt-dropdown__profile { display: flex; align-items: center; gap: 10px; }
.vt-dropdown__avatar { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--mfa-radius-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--vt-text-faint); }
.vt-dropdown__avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.vt-dropdown__avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, var(--vt-online) 0 3px, rgba(0,0,0,.6) 3.5px); }
.vt-dropdown__who { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--vt-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-dropdown__logout { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--mfa-radius-md); color: var(--vt-text-faint); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.05); transition: all .15s; }
.vt-dropdown__logout:hover { color: var(--vt-danger); background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.15); }
.vt-dropdown__login { display: block; width: 100%; padding: 8px 0; border-radius: var(--mfa-radius-md); text-align: center; font-size: 12px; font-weight: 600; color: var(--vt-text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.05); transition: background .15s; }
.vt-dropdown__login:hover { background: rgba(255,255,255,.12); }

@media (min-width: 640px) {
  .vt-nav__bar { height: 80px; padding: 0 32px; }
  .vt-nav__logo { margin-right: 48px; }
  .vt-nav__logo img { height: 64px; }
  .vt-nav__right { gap: 20px; }
  .vt-nav__account { display: flex; }
  .vt-dropdown { width: 288px; }
}
@media (min-width: 1024px) {
  .vt-nav__logo img { height: 80px; }
  .vt-nav__links { display: flex; }
}
@media (min-width: 1280px) {
  .vt-nav__link { padding: 8px 20px; }
  .vt-nav__link::after { left: 20px; right: 20px; }
  .vt-nav__name { display: block; }
}

/* ── Logo intro (once per tab: the former single-page site played it on a full load only) ───────────────────── */
.vt-intro { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--vt-intro-bg); opacity: 1; transition: opacity .6s ease; }
.vt-intro--leaving { opacity: 0; }
.vt-intro img { width: 100%; height: 100%; flex-shrink: 0; object-fit: contain; }
@media (max-aspect-ratio: 1/1) { .vt-intro img { width: 200%; max-width: none; } }

/* ── Hero (top of every page) ──────────────────────────────────────────────────────────────────────────────── */
.vt-hero { position: relative; overflow: hidden; }
.vt-hero--full { height: 100vh; min-height: 600px; max-height: 1080px; }
.vt-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; user-select: none; }
.vt-hero__shade { position: absolute; inset: 0; pointer-events: none; }
.vt-hero__shade--up { background: linear-gradient(to top, var(--vt-bg), rgba(0,0,0,.45), transparent); }
.vt-hero__shade--right { background: linear-gradient(to right, rgba(0,0,0,.7), rgba(0,0,0,.2), transparent); }
.vt-hero__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.vt-container { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 20px; }
.vt-hero__body .vt-container { padding-bottom: 96px; }
.vt-badge { display: inline-block; padding: 6px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vt-text); background: var(--vt-red); }
.vt-hero .vt-badge { margin-bottom: 16px; }
.vt-title { font-family: var(--vt-display); font-weight: 700; font-style: italic; font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }
.vt-subtitle { margin-top: 12px; max-width: 576px; font-family: var(--vt-display); font-size: 14px; color: var(--vt-text-dim); }
.vt-cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.vt-cta { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--vt-text); transition: color .2s; }
.vt-cta:hover { color: var(--vt-text-light); }
.vt-cta__ring { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); transition: all .2s; }
.vt-cta--discord .vt-cta__ring { border-color: rgba(88,101,242,.5); }
.vt-cta--discord:hover .vt-cta__ring { border-color: var(--vt-discord); background: rgba(88,101,242,.1); }
@media (min-width: 640px) {
  .vt-hero__image { object-position: center; }
  .vt-container { padding: 0 32px; }
  .vt-hero__body .vt-container { padding-bottom: 112px; }
  .vt-title { font-size: 48px; }
  .vt-subtitle { font-size: 16px; }
  .vt-cta { font-size: 12px; }
}
@media (min-width: 1024px) { .vt-title { font-size: 60px; } }

/* Entry animations of the former site (fade and rise), skipped when the visitor asks for less motion. */
.vt-rise { animation: vt-rise .6s ease-out both; animation-delay: var(--vt-delay, 0s); }
@keyframes vt-rise { from { opacity: 0; transform: translateY(var(--vt-rise-from, 20px)); } }
.vt-rise--far { --vt-rise-from: 30px; }
.vt-delay-2 { --vt-delay: .2s; } .vt-delay-3 { --vt-delay: .3s; } .vt-delay-4 { --vt-delay: .4s; } .vt-delay-5 { --vt-delay: .5s; } .vt-delay-6 { --vt-delay: .6s; } .vt-delay-9 { --vt-delay: .9s; }
@media (prefers-reduced-motion: reduce) {
  .vt-rise, .vt-dropdown, .vt-nav__toggle .vt-icon { animation: none; }
  .vt-intro { transition: none; }
}
