/* VI Translator: the desktop app's Vice City look (its dark theme). Night purple, a sunset
   gradient (pink to orange), neon teal; Changa for Latin and Arabic. Written with logical
   properties (inline-start/end), so the Arabic page mirrors by itself. */

@font-face {
  font-family: "Changa";
  src: url("/fonts/Changa.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0f0b17;
  --bg-2: #160f22;
  --panel: #1b1428;
  --panel-2: #241a34;
  --line: #2f2440;
  --text: #f1ebf8;
  --muted: #a193b5;
  --pink: #ff5aa5;
  --orange: #ff9a4a;
  --neon: #3ef0d8;
  --gold: #ffd25a;
  --sunset: linear-gradient(90deg, var(--pink), var(--orange));
  --radius: 18px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Changa", system-ui, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
mark { background: none; color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--neon); color: #001; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* text in the sunset gradient, and neon teal with a glow */
.sunset-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 90, 165, .35)); }
.neon-text { color: var(--neon); text-shadow: 0 0 22px rgba(62, 240, 216, .55); }

/* buttons: sunset pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--sunset); color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 165, .7);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(255, 90, 165, .85); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid rgba(255, 90, 165, .55); box-shadow: none; }
.btn-ghost:hover { border-color: var(--pink); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 16px; }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 8px; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(15, 11, 23, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { border-radius: 9px; }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; }
.links a { color: var(--muted); font-weight: 600; }
.links a:hover { color: var(--text); text-decoration: none; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); font-weight: 600; }

/* hero: night sky, the retro grid under it */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px;
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(255, 90, 165, .18), transparent 70%),
    radial-gradient(40% 40% at 20% 20%, rgba(62, 240, 216, .08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #1a1030 60%, #2a1030 100%); }
.hero::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -1px; height: 180px; pointer-events: none;
  background:
    linear-gradient(transparent 0 0),
    repeating-linear-gradient(90deg, rgba(255, 90, 165, .35) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 90, 165, .35) 0 1px, transparent 1px 32px);
  transform: perspective(300px) rotateX(60deg); transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000 70%); -webkit-mask-image: linear-gradient(transparent, #000 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { color: var(--neon); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; margin-bottom: 14px; }
:lang(ar) .kicker { letter-spacing: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.01em; }
.lead { margin-top: 20px; font-size: 20px; color: #d9cfe8; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(36, 26, 52, .7); color: var(--muted); font-size: 15px; font-weight: 600; }

/* the TV with a live subtitle */
.tv { margin: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 10px solid #07050b; box-shadow: 0 0 0 1px #2f2440, 0 30px 80px -20px rgba(255, 90, 165, .45), 0 0 60px -10px rgba(62, 240, 216, .18); background: #000; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .6s; }
.scene.on { opacity: 1; }
.stand { width: 30%; height: 14px; margin: 0 auto; border-radius: 0 0 10px 10px; background: #07050b; box-shadow: 0 1px 0 #2f2440; }
/* the translation sits just above the game's own English lines (in the frame), sized like the game's
   subtitle (a share of the screen's height), the objective under it with its word in the game's pink */
.screen { container-type: size; }
.sub { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .6cqh; padding: 0 8% 16.5cqh; text-align: center; pointer-events: none; }
.sub p { margin: 0; transition: opacity .35s; }
.sub.fade p { opacity: 0; }
/* (the English is in the picture: kept for screen readers only) */
.sub-en { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sub-tr, .inst-tr { color: #fff; text-shadow: 0 0 .3cqh rgba(0, 0, 0, .9), 0 .2cqh .6cqh rgba(0, 0, 0, .9); line-height: 1.3; }
.sub-tr { font-size: 3.3cqh; font-weight: 500; }
.inst-tr { font-size: 2.6cqh; font-weight: 700; }
.inst-tr mark { color: #ff90b2; }
/* which language this frame is in */
.sub-lang { position: absolute; inset-inline-end: 3%; top: 4cqh; font-size: 2.2cqh; font-weight: 700; color: #fff;
  background: rgba(8, 5, 14, .6); border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; padding: .3cqh 1.6cqh; }
.pad-a { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; line-height: 1; border-radius: 50%; background: #3fb950; color: #04130a; font-size: .8em; font-weight: 800; vertical-align: .05em; margin: 0 .1em; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 20px; margin-top: 12px; max-width: 46em; }
h3 { font-size: 21px; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(255, 90, 165, .55); transform: translateY(-3px); }
.card .big { font-size: 34px; font-weight: 800; margin-bottom: 12px; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .big .pad-a { -webkit-text-fill-color: #04130a; font-size: 26px; }
.card p { color: var(--muted); margin-top: 8px; }

.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.place { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.place .ico { font-size: 34px; display: block; margin-bottom: 10px; }
.place p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.sources-title { color: var(--muted); font-weight: 700; margin-inline-end: 6px; }
.chip { padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(62, 240, 216, .45); color: var(--neon); font-weight: 600; font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sunset); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 14px; box-shadow: 0 0 24px rgba(255, 90, 165, .5); }
.steps p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.langs { margin-top: 40px; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed rgba(255, 90, 165, .45); }
.langs p { color: var(--muted); margin-top: 8px; }

.tv-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tv-steps { margin: 26px 0 0; padding-inline-start: 22px; display: grid; gap: 10px; color: #d9cfe8; }
.tv-steps li::marker { color: var(--pink); font-weight: 800; }
.note { margin-top: 20px; color: var(--neon); font-weight: 600; }
.shots { display: grid; gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; text-align: center; }

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.dl { display: grid; gap: 6px; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
a.dl:hover { text-decoration: none; border-color: var(--pink); transform: translateY(-3px); }
.dl-os { font-size: 22px; font-weight: 800; }
.dl-note { color: var(--muted); font-size: 16px; }
.dl-go { color: var(--neon); font-weight: 700; margin-top: 6px; }
:dir(rtl) .dl-go, [dir="rtl"] .dl-go { unicode-bidi: plaintext; }
.dl-tv-title { margin-top: 48px; }
.downloads.small { margin-top: 18px; }
.dl.soon { opacity: .8; }
.dl.soon .dl-go { color: var(--orange); }

.privacy { color: #d9cfe8; margin-top: 18px; font-size: 19px; }

.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { border-color: rgba(255, 90, 165, .5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-weight: 800; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 20px; }

.cta { padding: 110px 0; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(50% 70% at 50% 100%, rgba(255, 90, 165, .25), transparent 70%), var(--bg); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta h2 { display: inline-block; max-width: 100%; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: #0b0812; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-top .brand { margin-inline-end: auto; font-size: 18px; }
.footer-top a:not(.brand) { color: var(--muted); }
.disclaimer { color: #7d7092; font-size: 14px; margin-top: 20px; max-width: 60em; }

/* tablets and phones */
@media (max-width: 960px) {
  .links { display: none; }
  .hero { padding: 48px 0 80px; }
  .hero-in, .tv-in { grid-template-columns: 1fr; gap: 40px; }
  .cards, .downloads { grid-template-columns: repeat(2, 1fr); }
  .places, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .section { padding: 68px 0; }
  .cards, .downloads, .places, .steps { grid-template-columns: 1fr; }
  .nav-in { gap: 12px; }
  .brand span { font-size: 18px; }
  .btn-sm { padding: 0 14px; }
  .lead, .section-sub { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .dl, .sub p { transition: none; }
}

/* setups: tabs, each setup with its steps and screenshots */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tabs[hidden] { display: none; }
.tab { font: inherit; font-weight: 700; font-size: 16px; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.tab:hover { color: var(--text); border-color: rgba(255, 90, 165, .5); }
.tab[aria-selected="true"] { color: #fff; background: var(--sunset); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(255, 90, 165, .7); }
.setup { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; margin-top: 34px;
  padding: 32px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); }
.setup[hidden] { display: none; }
.setup h3 { font-size: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.setup .ico { font-size: 28px; }
.badge { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; color: #001; background: var(--neon); }
.setup-lead { color: #d9cfe8; margin-top: 14px; }
.setup-need { margin-top: 14px; color: var(--muted); font-size: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(62, 240, 216, .06); border: 1px solid rgba(62, 240, 216, .25); }
.setup-need strong { color: var(--neon); }
.setup-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.setup-text h3, .setup-text .setup-lead, .setup-text .setup-need { grid-column: 1; }
.setup-steps { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.setup-steps li { counter-increment: st; position: relative; padding-inline-start: 44px; color: #e6dcf3; }
.setup-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sunset); color: #fff; font-weight: 800; font-size: 15px; }
.setup-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot a { display: block; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .85); background: #0b0812; }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
@media (max-width: 960px) {
  .setup { padding: 22px; }
  .setup-text { grid-template-columns: 1fr; }
  .setup-steps { grid-column: 1; grid-row: auto; margin-top: 20px; }
}
@media (max-width: 600px) {
  .setup-shots { grid-template-columns: 1fr; }
}

/* the language list in the header */
.langs-menu { position: relative; }
.langs-menu summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.langs-menu summary::-webkit-details-marker { display: none; }
.langs-menu[open] summary, .langs-menu summary:hover { color: var(--text); border-color: rgba(255, 90, 165, .5); }
.langs-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; max-height: 70vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.langs-menu a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: 16px; }
.langs-menu a:hover { background: var(--panel-2); text-decoration: none; }
.langs-menu a[aria-current="page"] { color: var(--neon); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 14px; }
.footer-langs a { color: var(--muted); }
@media (max-width: 600px) {
  .langs-menu ul { position: fixed; inset-inline: 12px; top: 70px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* close-ups at their own size (stretched they'd blur); the TV photos fill their column */
.shot:not(.wide) img[width="382"], .shot:not(.wide) img[width="520"] { width: auto; max-width: 100%; margin-inline: auto; }
.shot:not(.wide) { align-self: start; }

/* the privacy policy */
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; color: var(--gold); }
.legal h3 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul { padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--muted); margin-bottom: 26px; }
.legal .back { margin-top: 48px; }
.dl-code { color: var(--gold); font-size: 20px; letter-spacing: .08em; }
.setup-text h4, .setup-text .setup-link { grid-column: 1; }
.setup-more { padding-top: 28px; border-top: 1px solid var(--line); }
.setup-sub { font-size: 24px; color: var(--gold); }
.setup-link { margin-top: 14px; font-weight: 700; }
.setup-more { grid-template-rows: auto auto 1fr; }
.setup-steps mark { direction: ltr; unicode-bidi: isolate; }

/* setups in two steps */
.step-block { margin-top: 44px; }
.step-block + .step-block { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.step-head { display: flex; gap: 18px; align-items: flex-start; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sunset); color: #fff; font-weight: 800; font-size: 26px; line-height: 1; box-shadow: 0 0 26px rgba(255, 90, 165, .5); }
.step-head h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.step-head p { color: var(--muted); margin-top: 6px; max-width: 760px; }
.step-block .tabs { margin-top: 24px; }
.setup-tips { grid-column: 1; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 210, 90, .06); border: 1px solid rgba(255, 210, 90, .25); font-size: 16px; color: #e6dcf3; }
.setup-tips strong { color: var(--gold); }
.setup-tips ul { margin: 8px 0 0; padding-inline-start: 20px; }
.setup-tips li + li { margin-top: 6px; }
.setup-intro { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
