/* onlinetrex.com — one stylesheet for the Arabic (rtl) and English pages. */
:root {
  --felt: #0b3d2e;
  --felt-deep: #072a20;
  --card: #fbf8f1;
  --ink: #1d1d1f;
  --text: #f4f1e8;
  --muted: #c3d3ca;
  --gold: #f2c14e;
  --red: #d8402f;
  --line: rgba(255, 255, 255, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--felt-deep);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, "Noto Sans Arabic", sans-serif;
}
a { color: var(--gold); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }

/* Hero */
.hero { background: radial-gradient(circle at 70% 20%, #145a43 0, var(--felt) 45%, var(--felt-deep) 100%); padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 0 26px; max-width: 34em; }
.hero-art { justify-self: center; width: min(320px, 80%); aspect-ratio: 1; border-radius: 28%; background: #fff; padding: 6%; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transform: rotate(-4deg); }
[dir="rtl"] .hero-art { transform: rotate(4deg); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid var(--line);
  color: var(--text); background: rgba(255, 255, 255, .06);
}
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn.primary { background: var(--gold); color: #2b2100; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }

/* Invite card (only shown for ?gameId= links) */
.invite { display: none; margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius); background: rgba(242, 193, 78, .12); border: 1px solid rgba(242, 193, 78, .45); }
.invite.show { display: block; }
.invite h2 { margin: 0 0 6px; font-size: 21px; }
.invite p { margin: 0 0 14px; color: var(--muted); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid var(--gold); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -3px; margin-inline-end: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; }
section .intro { color: var(--muted); max-width: 46em; margin: 0 0 28px; }

.contracts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contract { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 18px 18px 16px; position: relative; }
.contract h3 { margin: 0 0 6px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.contract p { margin: 0; font-size: 15.5px; color: #3c3c40; }
.contract .pts { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--red); }
.contract .pts.plus { color: #157a45; }
.suit { font-size: 22px; line-height: 1; }
.suit.red { color: var(--red); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: rgba(255, 255, 255, .03); }
.fact h3 { margin: 0 0 6px; font-size: 18px; }
.fact p { margin: 0; color: var(--muted); font-size: 15.5px; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.downloads .btn { justify-content: flex-start; min-height: 64px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound h1 { font-size: 56px; margin: 0; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: 180px; order: -1; }
  .nav a:not(.lang) { display: none; }
}
