/* MS Studio Games: the night harbour design. One warm accent (brass), real game art, quiet type. */
:root {
  --bg: #0E1B29;
  --raised: #142638;
  --text: #E7EDF3;
  --soft: #C2CEDA;
  --muted: #93A4B6;
  --line: #22384E;
  --brass: #E2B25C;
  --live: #6CCB98;
  --test: #E2B25C;
  --dev: #93A4B6;
  --gutter: clamp(16px, 4.5vw, 56px);
  --display: "Alexandria", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body:lang(ar) { font-weight: 400; font-size: 18px; line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { letter-spacing: -0.015em; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--text); color: var(--bg); padding: 8px 14px;
        border-radius: 8px; z-index: 10; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display);
         font-weight: 600; font-size: 18px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a { text-decoration: none; color: rgba(231, 237, 243, .82); }
.nav a:hover { color: #fff; }
.nav .lang { border: 1px solid rgba(231, 237, 243, .35); padding: 4px 14px; border-radius: 999px; color: var(--text); }
.inner-head { border-bottom: 1px solid var(--line); }

/* hero: the art opens the page */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; flex-direction: column; isolation: isolate; }
.hero > .wrap { width: 100%; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero picture img { animation: dawn 1.6s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 27, 41, .6) 0%, rgba(14, 27, 41, 0) 22%, rgba(14, 27, 41, 0) 42%, rgba(14, 27, 41, .93) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14, 27, 41, .6), rgba(14, 27, 41, 0) 62%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(180deg, rgba(14, 27, 41, .6) 0%, rgba(14, 27, 41, 0) 22%, rgba(14, 27, 41, 0) 42%, rgba(14, 27, 41, .93) 86%, var(--bg) 100%),
    linear-gradient(270deg, rgba(14, 27, 41, .6), rgba(14, 27, 41, 0) 62%);
}
@keyframes dawn { from { opacity: 0; } to { opacity: 1; } }
.hero-copy { margin-top: auto; padding-block-end: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.06; }
.hero h1 span { display: block; }
.hero p { color: #C9D4DF; font-size: clamp(17px, 1.6vw, 19px); max-width: 52ch; margin: 18px 0 0; }
.actions { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none;
       font-weight: 500; font-size: 16px; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: #fff; }
.btn.quiet { border: 1px solid rgba(231, 237, 243, .35); }
.btn.quiet:hover { border-color: rgba(231, 237, 243, .7); }

/* games */
.section { padding-block-start: clamp(80px, 10vw, 136px); }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 8px; }
.sub { color: var(--muted); margin: 0 0 clamp(32px, 5vw, 56px); }
.row { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
       padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.row:nth-child(even) .art { order: 2; }
.art { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--raised); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.jelly { background: radial-gradient(circle at 50% 50%, #C92C46, #7E1427 75%); display: grid; place-items: center; }
.art.jelly img { width: 46%; height: auto; border-radius: 26%; box-shadow: 0 28px 56px rgba(0, 0, 0, .35); }
.art.sky { position: relative; display: grid; place-items: center;
           background: linear-gradient(180deg, #24476B 0%, #183452 48%, #11263C 72%, #0F2133 100%); }
.art.sky::before { content: ""; position: absolute; inset-inline: 0; top: 64%; height: 1px; background: rgba(226, 178, 92, .35); }
.art.sky span { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 56px); letter-spacing: .14em;
                color: rgba(231, 237, 243, .9); position: relative; }
.id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.id img, .id .ph { width: 56px; height: 56px; border-radius: 14px; background: #1E3248; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--live); } .status.test { color: var(--test); } .status.dev { color: var(--dev); }
.row h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.kind { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.row p.desc { color: var(--soft); margin: 16px 0 0; max-width: 44ch; }
.links { display: flex; align-items: center; gap: 20px; margin-top: 22px; font-size: 15px; flex-wrap: wrap; }
.links a.text { color: var(--muted); text-underline-offset: 4px; }
.links a.text:hover { color: var(--text); }
.badge { flex: none; margin-inline-start: -9px; }
.badge img { height: 60px; width: auto; max-width: none; }

/* studio + support */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.two p { color: var(--soft); max-width: 54ch; }
.mail { display: inline-block; margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2.3vw, 27px);
        color: var(--brass); text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; text-underline-offset: 6px; }
ul.list { list-style: none; padding: 0; margin: 18px 0 0; }
ul.list li { border-top: 1px solid var(--line); }
ul.list li:last-child { border-bottom: 1px solid var(--line); }
ul.list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; }
ul.list a span { color: var(--muted); font-size: 15px; }
ul.list a:hover span { color: var(--text); }
ul.list img { width: 40px; height: 40px; border-radius: 10px; }
ul.list .game { display: inline-flex; align-items: center; gap: 14px; }

/* inner pages (privacy) */
.page { padding-block: clamp(40px, 6vw, 72px) 0; }
.crumb { color: var(--muted); font-size: 15px; text-underline-offset: 4px; }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 18px 0 20px; }
.prose h2 { font-size: 21px; line-height: 1.35; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--soft); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-inline-start: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--brass); overflow-wrap: anywhere; }
.prose .meta { color: var(--muted); }
.intro { color: var(--soft); max-width: 60ch; }
.page > ul.list { max-width: 72ch; }

/* footer */
.site-foot { margin-top: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--muted);
             font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav a:not(.lang) { display: none; }
  .hero { min-height: 88vh; }
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .art { order: 0; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  ul.list a .go { display: none; }
}
@media (max-width: 380px) {
  .brand span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero picture img { animation: none; }
}
