/* Deen Party landing page. Colours follow lib/core/theme/app_theme.dart. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-Regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-Bold.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #0B1411;
  --bg-2: #0E1A15;
  --card: #11201A;
  --card-2: #172A22;
  --line: #1F352B;
  --line-2: #2A4638;
  --text: #ECF3EE;
  --text-2: #A9BCB0;
  --text-3: #6A7F72;
  --green: #4A7C44;
  --green-2: #5F9460;
  --gold: #E9B949;
  --gold-2: #C9982F;
  --gold-3: #A47820;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --wrap: 1160px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23E9B949' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Cpath d='M0 48h8M88 48h8M48 0v8M48 88v8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

html[lang="ar"] {
  --serif: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --sans: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #1a1405; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 99; background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 10px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(11, 20, 17, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--serif); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
html[lang="ar"] .brand span { font-family: "Fraunces", Georgia, serif; }
.nav { display: flex; gap: 28px; margin-inline-start: 12px; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 32, 26, .6); }
.langs a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); line-height: 1.4; transition: color .2s, background .2s; }
.langs a:hover { color: var(--text); }
.langs a.on { background: var(--card-2); color: var(--gold); }
.langs a[lang="ar"] { font-family: "Cairo", sans-serif; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-gold { background: linear-gradient(180deg, #F2CC6B, var(--gold-2)); color: #1d1606; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 20px -6px rgba(233,185,73,.55); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 26px -6px rgba(233,185,73,.7); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 186px;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  background: #050907; border: 1px solid var(--line-2); color: #fff;
  font: 600 19px/1.1 var(--sans); letter-spacing: -.01em;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
html[lang="ar"] .store { font-family: var(--sans); padding: 11px 18px 11px 22px; }
.store:hover { transform: translateY(-2px); border-color: var(--gold-3); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: start; }
.store small { font-size: 11px; font-weight: 500; color: #c8d3cc; letter-spacing: .02em; margin-bottom: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 112px; margin-top: -68px; padding-top: calc(68px + 72px); overflow: hidden; isolation: isolate; }
.pattern {
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--star); background-size: 96px; opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.pattern.faint { opacity: .04; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.glow {
  position: absolute; z-index: -1; left: 50%; top: 120px; width: 900px; height: 620px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(233,185,73,.20), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(74,124,68,.35), transparent 70%),
    radial-gradient(closest-side at 72% 64%, rgba(61,125,196,.16), transparent 70%);
  filter: blur(10px);
}
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.seal { position: relative; width: 168px; height: 168px; margin-bottom: 36px; }
.seal img { position: relative; width: 168px; height: 168px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(233,185,73,.25); }
.ring { position: absolute; inset: -22px; border-radius: 52px; border: 1px solid rgba(233,185,73,.22); }
.ring.r2 { inset: -44px; border-radius: 64px; border-color: rgba(233,185,73,.10); border-style: dashed; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring.r2 { animation: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 16px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.eyebrow::after { transform: scaleX(-1); }
h1 {
  font: 600 clamp(40px, 6.6vw, 78px)/1.04 var(--serif); letter-spacing: -.025em;
  max-width: 15ch; text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #cfe0d4); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] h1 { line-height: 1.3; letter-spacing: 0; font-weight: 800; max-width: 22ch; font-size: clamp(36px, 5.6vw, 68px); }
.lede { margin: 24px auto 36px; max-width: 600px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); text-wrap: pretty; }
.play-web {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--text); font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.play-web:hover { border-color: var(--gold-3); background: rgba(233,185,73,.06); transform: translateY(-1px); }
.play-web .arrow { color: var(--gold); transition: transform .2s; }
.play-web:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .play-web .arrow { transform: scaleX(-1); }
html[dir="rtl"] .play-web:hover .arrow { transform: scaleX(-1) translateX(3px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(95,148,96,.18); }

/* ---------- sections ---------- */
section { position: relative; }
.kicker { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker.center { text-align: center; }
.h2 { font: 600 clamp(30px, 4vw, 46px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] .h2 { line-height: 1.35; letter-spacing: 0; font-weight: 800; }
.sub { color: var(--text-2); margin-top: 14px; max-width: 560px; text-wrap: pretty; }
.head { margin-bottom: 44px; }

.modes { padding: 0 0 104px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(17,32,26,.5));
  border: 1px solid var(--line); overflow: hidden;
}
.mode::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px 120px at 50% 0, rgba(233,185,73,.08), transparent); }
.mode h2 { font: 600 24px/1.2 var(--serif); margin: 18px 0 8px; }
html[lang="ar"] .mode h2 { font-weight: 700; }
.mode p { color: var(--text-2); font-size: 16px; }
.mode-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(233,185,73,.10); border: 1px solid rgba(233,185,73,.22); color: var(--gold); }
.mode-ic svg, .comm-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.games { padding: 104px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); border-block: 1px solid var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game {
  padding: 24px 22px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, background .25s;
}
.game:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card-2); }
.game h3 { font: 700 17px/1.3 var(--sans); margin: 16px 0 6px; letter-spacing: -.005em; }
.game p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.gicon {
  display: grid; place-items: center; width: 46px; height: 50px;
  border-radius: 23px 23px 10px 10px; /* the app's arch tile */
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--c);
}
.gicon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mission { padding: 120px 0; overflow: hidden; }
.mission-in { display: grid; gap: 64px; }
.mission-text { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 72px; align-items: end; }
.mission-text .kicker { grid-column: 1 / -1; }
.mission-text .quote { grid-row: 2 / span 2; margin-bottom: 0; }
.mission-text p:not(.kicker) { grid-column: 2; }
.mission-text p:not(.kicker):first-of-type { margin-top: 0; }
.quote { font: 500 clamp(30px, 3.6vw, 44px)/1.18 var(--serif); letter-spacing: -.02em; margin-bottom: 28px; text-wrap: balance; }
html[lang="ar"] .quote { font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.quote::before { content: "“"; display: block; color: var(--gold); font-size: 1.8em; line-height: .6; margin-bottom: 12px; font-family: "Fraunces", Georgia, serif; }
html[lang="ar"] .quote::before { content: "”"; }
.mission-text p:not(.kicker) { color: var(--text-2); margin-top: 16px; max-width: 54ch; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.values li { padding: 24px; border-radius: 18px; background: rgba(17,32,26,.7); border: 1px solid var(--line); }
.vnum { font: 600 13px/1 var(--sans); color: var(--gold-2); letter-spacing: .1em; }
.values h3 { font: 700 17px/1.3 var(--sans); margin: 14px 0 6px; }
.values p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.community { padding: 104px 0; border-top: 1px solid var(--line); }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.comm { padding: 34px 30px; }
.comm + .comm { border-inline-start: 1px solid var(--line); }
.comm-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(74,124,68,.18); color: #8FC08A; }
.comm h3 { font: 600 22px/1.25 var(--serif); margin: 18px 0 8px; }
html[lang="ar"] .comm h3 { font-weight: 700; }
.comm p { color: var(--text-2); font-size: 16px; }

.follow { padding: 104px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.follow-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.follow .head { margin-bottom: 0; }
.socials { display: flex; flex-direction: column; gap: 12px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.srow.mine { border-color: rgba(233,185,73,.35); background: linear-gradient(90deg, rgba(233,185,73,.07), var(--card) 60%); }
html[dir="rtl"] .srow.mine { background: linear-gradient(-90deg, rgba(233,185,73,.07), var(--card) 60%); }
.shead { display: flex; flex-direction: column; min-width: 0; }
.slang { font-weight: 700; font-size: 16px; }
.slang:lang(ar), .srow .slang { font-family: var(--sans); }
.shandle { color: var(--text-3); font-size: 14px; font-family: "Jakarta", system-ui, sans-serif; }
.slinks { display: flex; gap: 8px; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 600; font-family: "Jakarta", system-ui, sans-serif; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.soc svg { width: 18px; height: 18px; }
.soc:hover { color: var(--text); border-color: var(--gold-3); background: rgba(233,185,73,.06); transform: translateY(-1px); }

.cta { padding: 120px 0 128px; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 40%; width: 700px; height: 380px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(233,185,73,.13), transparent); z-index: -1; }
.cta-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-icon { border-radius: 18px; margin-bottom: 26px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.8); }
.cta .sub { margin: 12px auto 32px; }

.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.foot-brand p { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 4px; }
.foot-links a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.foot-links a:hover { color: var(--gold); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }

/* ---------- reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.game-grid .game { animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .follow-in { grid-template-columns: 1fr; gap: 44px; }
  .mission-text { display: block; }
  .mission-text .quote { margin-bottom: 8px; }
  .mission-text p:not(.kicker):first-of-type { margin-top: 16px; }
  .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .mode-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: 1fr; }
  .comm + .comm { border-inline-start: 0; border-top: 1px solid var(--line); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { gap: 12px; height: 60px; }
  .hero { margin-top: -60px; padding-top: calc(60px + 44px); padding-bottom: 80px; }
  .brand span { display: none; }
  .bar-end { gap: 8px; }
  .langs a { padding: 5px 8px; font-size: 12px; }
  .btn-sm { padding: 8px 13px; font-size: 13px; }
  .seal, .seal img { width: 128px; height: 128px; }
  .seal img { border-radius: 30px; }
  .ring { inset: -16px; border-radius: 40px; } .ring.r2 { inset: -32px; border-radius: 50px; }
  .stores { flex-wrap: nowrap; gap: 10px; width: 100%; }
  .store { min-width: 0; flex: 1 1 0; justify-content: center; gap: 9px; padding: 10px 12px; font-size: 16px; white-space: nowrap; }
  html[lang="ar"] .store { padding: 10px 12px; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 10px; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game { padding: 16px 14px 18px; border-radius: 16px; }
  .game h3 { font-size: 15.5px; margin-top: 12px; }
  .game p { font-size: 13.5px; }
  .gicon { width: 40px; height: 44px; }
  .values { grid-template-columns: 1fr; }
  .srow { flex-direction: column; align-items: stretch; }
  .slinks { justify-content: stretch; }
  .soc { flex: 1; justify-content: center; padding: 10px 8px; }
  .soc span { display: none; }
  .modes, .games, .community, .follow { padding-block: 72px; }
  .mission, .cta { padding-block: 84px; }
  .modes { padding-top: 0; }
}
@media (max-width: 340px) {
  .game-grid { grid-template-columns: 1fr; }
}

/* ---------- contact form ---------- */
.contact { padding: 104px 0; border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact .head { margin-bottom: 0; }
.cform { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: grid; gap: 7px; }
.cform label span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.cform input, .cform textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(233,185,73,.15); }
.cform .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.factions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.factions .btn { padding: 13px 26px; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.factions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.fstatus { font-size: 14px; flex: 1 1 220px; }
.fstatus.good { color: #8FC08A; }
.fstatus.bad { color: #E8957F; }
.fstatus a { color: var(--gold); }
@media (max-width: 1020px) { .contact-in { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) {
  .contact { padding-block: 72px; }
  .cform { padding: 18px; }
  .row2 { grid-template-columns: 1fr; }
  .factions .btn { width: 100%; }
}
