/* 22plays.app (site-v1). Brand kit: art/brand/22Play-brand-kit. Logical properties throughout: Arabic is RTL. */
:root {
  --blue: #2FA8F5; --magenta: #F04FC8; --orange: #FF9A3D; --violet: #7A4FE0; --yellow: #FFE873;
  --bg: #FFFFFF; --surface: #F4F1F8; --text: #2A2140; --muted: #625a77; --accent: #7A4FE0;
  --line: rgba(42, 33, 64, .12);
  --font: "Baloo 2", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17121F; --surface: #241C33; --text: #FFFFFF; --muted: #b9b0cc; --accent: #FFE873; --line: rgba(255, 255, 255, .12); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; height: 44px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.langs a { display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
.langs a:hover { background: var(--surface); }
.langs a[aria-current] { background: var(--text); color: var(--bg); }

/* Home */
.hero { padding: 32px 0 64px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.01em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--magenta) 50%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.mark { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.mark img { width: 100%; display: block; position: relative; animation: float 6s ease-in-out infinite; }
.mark::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--yellow), transparent 70%); opacity: .55; filter: blur(20px); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .mark img { animation: none; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 16px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; line-height: 1.15; }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .78; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store.soon { opacity: .55; }
a.store:hover { transform: translateY(-1px); }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 72px; padding: 0; list-style: none; }
.points li { background: var(--surface); border-radius: 24px; padding: 22px; }
.points b { display: block; font-size: 19px; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: 15px; }
.dot { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }

h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 28px; }
.shelf { margin-bottom: 40px; }
.shelf h3 { font-size: 22px; margin: 0 0 14px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.game { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 20px; padding: 14px; }
.game i { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 26px; color: #fff; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.game b { display: block; font-size: 18px; line-height: 1.25; }
.game span { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
.c0 { --c: var(--violet); } .c1 { --c: var(--blue); } .c2 { --c: var(--magenta); } .c3 { --c: var(--orange); }
.more { background: transparent; border: 2px dashed var(--line); }
.more i { background: var(--surface); color: var(--muted); box-shadow: none; }

.cta { margin: 32px 0 72px; border-radius: 32px; padding: 48px 28px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta)); }
.cta h2 { color: #fff; }
.cta p { margin: 0 auto 24px; max-width: 32em; opacity: .92; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #2A2140; }

/* Content pages */
.page { padding: 24px 0 72px; }
.page .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.page .crumbs a { text-decoration: none; }
.page h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 24px; font-weight: 800; }
.prose { max-width: 760px; }
.block + .block { margin-top: 28px; }
.prose h2 { font-size: 28px; margin: 32px 0 8px; }
.prose h3 { font-size: 22px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .prose a { color: var(--yellow); } }
.prose img { border-radius: 16px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 0; padding-inline-start: 16px; border-inline-start: 4px solid var(--accent); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.prose pre { background: var(--surface); padding: 14px; border-radius: 12px; overflow-x: auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.notfound { text-align: center; padding: 64px 0 96px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.foot h4 { margin: 0 0 10px; color: var(--text); font-size: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .stores { gap: 8px; }
.foot .store { padding: 8px 14px; border-radius: 12px; font-size: 14px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--text); }
.social a:hover { background: var(--text); color: var(--bg); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

/* Consent */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin-inline: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.consent p { margin: 0 0 12px; font-size: 15px; }
.consent .row { display: flex; gap: 8px; justify-content: flex-end; }
.consent button { font: inherit; font-weight: 700; border-radius: 999px; padding: 8px 18px; cursor: pointer; border: 2px solid var(--text); background: transparent; color: var(--text); }
.consent button.yes { background: var(--text); color: var(--bg); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .mark { max-width: 240px; grid-row: 1; }
  .points { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .points { grid-template-columns: 1fr; }
  .logo { height: 34px; }
  .langs a { padding: 6px 8px; font-size: 14px; }
  .foot .cols { grid-template-columns: 1fr; }
}
