@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101017;
  --bg-soft: #15151f;
  --surface: rgba(30, 30, 43, .88);
  --surface-solid: #1c1c28;
  --surface-raised: #242434;
  --paper: #e9eaf1;
  --paper-muted: #b9bbca;
  --text: #f4f5fa;
  --muted: #999bab;
  --line: rgba(211, 214, 235, .12);
  --accent: #1778ff;
  --accent-strong: #3188ff;
  --accent-ink: #f8f9ff;
  --olive: #8991a8;
  --blue: #8eb9ff;
  --shadow: 0 25px 70px rgba(0, 0, 0, .32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(54, 93, 170, .15), transparent 42rem),
    radial-gradient(ellipse at 100% 35%, rgba(71, 77, 122, .1), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  min-height: 100vh;
}
body, button, input { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.page-noise { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(15,15,23,.78); backdrop-filter: blur(18px); }
.header-inner { width: min(var(--max), calc(100% - 42px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; color: var(--accent-ink); background: var(--accent); font-size: 25px; font-weight: 700; box-shadow: 0 7px 24px rgba(23,120,255,.22); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong, .footer-brand strong { font: 800 19px/1.15 Manrope, 'IBM Plex Sans Arabic', sans-serif; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 7px; }
.main-nav a { padding: 11px 15px; color: #c3c6d4; font-size: 14px; font-weight: 600; border-radius: 12px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,.065); }
.main-nav .nav-admin { color: var(--accent-strong); border: 1px solid rgba(23,120,255,.28); }
.nav-admin span { padding-right: 3px; color: var(--olive); }
.mobile-menu { display: none; border: 1px solid var(--line); background: transparent; width: 44px; height: 42px; border-radius: 12px; }

.site-main { min-height: 70vh; }
.container { width: min(var(--max), calc(100% - 42px)); margin-inline: auto; }
.hero { padding: 0 0 44px; }
.hero-home { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(590px, 78vh, 760px); overflow: hidden; margin-top: -82px; padding: 82px 0 52px; background: #151522; }
.hero-visual, .hero-scrim { position: absolute; inset: 0; }
.hero-visual { z-index: -2; overflow: hidden; background: radial-gradient(ellipse at center, #343446, #151522 72%); }
.hero-backdrop { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; filter: saturate(.78) contrast(.96); transform: scale(1.03); }
.hero-scrim { z-index: -1; background: linear-gradient(180deg, rgba(13,14,22,.52) 0%, rgba(13,14,22,.23) 30%, rgba(13,14,22,.52) 66%, #101017 100%), linear-gradient(90deg, rgba(13,14,22,.48), rgba(13,14,22,.12) 50%, rgba(13,14,22,.48)); }
.hero-content-wrap { position: relative; z-index: 2; display: grid; place-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 610px; }
.hero-home-copy { max-width: 820px; margin: auto; text-align: center; }
.hero-home-copy .eyebrow { padding: 8px 14px; border: 1px solid rgba(224,229,249,.24); border-radius: 999px; background: rgba(17,18,28,.52); backdrop-filter: blur(10px); }
.hero-wordmark { display: block; margin: 22px 0 5px; color: #fff; font: 800 15px/1.2 Manrope, 'IBM Plex Sans Arabic', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.hero-wordmark i { color: var(--accent-strong); font-style: normal; }
.eyebrow { color: var(--accent-strong); font-size: 13px; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ''; width: 25px; height: 1px; background: var(--accent); }
.hero h1 { max-width: 860px; margin: 14px 0 16px; font-size: clamp(42px, 6vw, 72px); line-height: 1.3; letter-spacing: -.045em; font-weight: 700; }
.hero h1 span { color: var(--accent-strong); }
.hero-copy p { max-width: 690px; margin: 0 auto; color: #d1d2de; font-size: 16px; line-height: 1.95; }
.hero-home-copy .hero-actions { justify-content: center; margin-top: 25px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.hero-meta span { padding: 6px 11px; border: 1px solid rgba(224,229,249,.2); border-radius: 999px; color: #e2e3ec; background: rgba(17,18,28,.42); font-size: 11px; backdrop-filter: blur(8px); }
.hero-scroll { position: absolute; z-index: 2; bottom: 20px; left: 50%; display: flex; align-items: center; gap: 9px; transform: translateX(-50%); color: #c0c1cf; font-size: 11px; }
.hero-scroll span { width: 15px; height: 24px; border: 1px solid rgba(226,228,241,.5); border-radius: 10px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 5px; left: 6px; width: 2px; height: 5px; border-radius: 2px; background: var(--accent-strong); animation: scroll-dot 1.4s ease-in-out infinite; }
@keyframes scroll-dot { to { transform: translateY(7px); opacity: .3; } }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 14px; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 9px 26px rgba(23,120,255,.22); }
.button-primary:hover { background: #378bff; }
.button-quiet { color: var(--text); border-color: rgba(211,217,238,.2); background: rgba(18,19,29,.42); }
.button-quiet:hover { border-color: rgba(211,217,238,.4); background: rgba(255,255,255,.06); }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 58px; }
.number-card { min-height: 93px; display: flex; align-items: center; gap: 15px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); }
.number-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: var(--accent-strong); background: rgba(23,120,255,.13); font: 700 19px Manrope, sans-serif; }
.number-card strong { display: block; font: 800 24px/1.1 Manrope, sans-serif; }
.number-card span:last-child { color: var(--muted); font-size: 12px; }

.section { padding: 0 0 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.heading-kicker { display: block; margin-bottom: 7px; color: var(--accent); font-size: 12px; font-weight: 700; }
.library-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.search-box { min-width: 255px; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; margin: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255,255,255,.03); }
.search-symbol { flex: 0 0 auto; font-size: 22px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; height: 39px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.search-submit { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 0 15px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; transition: filter .2s, transform .2s; }
.search-submit:hover { filter: brightness(1.12); transform: translateY(-1px); }
.search-submit span { font-size: 17px; line-height: .8; }
.filter-list { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; transition: .2s; }
.filter-chip:hover, .filter-chip.selected { background: rgba(23,120,255,.14); color: #7eb4ff; border-color: rgba(23,120,255,.45); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, rgba(34,35,52,.96), rgba(25,26,39,.96)); transition: transform .22s, border-color .22s, box-shadow .22s; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(23,120,255,.5); box-shadow: 0 22px 48px rgba(0,0,0,.27); }
.card-image-wrap { position: relative; height: 190px; margin: 10px 10px 0; overflow: hidden; border-radius: 14px; background: #282838; }
.card-image { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; transition: transform .6s; }
.game-card:hover .card-image { transform: scale(1.035); }
.card-chip { position: absolute; top: 11px; right: 11px; padding: 6px 10px; border: 1px solid rgba(211,217,238,.23); border-radius: 999px; color: #eef0f7; background: rgba(28,29,43,.8); backdrop-filter: blur(8px); font-size: 10px; }
.card-status { position: absolute; top: 11px; left: 11px; padding: 6px 10px; border-radius: 999px; color: #fff; background: #1778ff; font-size: 10px; font-weight: 700; }
.card-body { padding: 17px 18px 16px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-body h3 { margin: 0; font-size: 19px; }
.card-original { color: #bbc0d1; font: 600 11px Manrope, 'IBM Plex Sans Arabic', sans-serif; direction: ltr; }
.card-body p { min-height: 47px; margin: 10px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: #a8adbf; font-size: 11px; }
.platform-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.platform-tag { padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.055); }
.card-arrow { color: var(--accent-strong); font-size: 18px; }
.empty-state { grid-column: 1/-1; padding: 46px 20px; text-align: center; border: 1px dashed rgba(205,210,228,.2); border-radius: var(--radius-lg); color: var(--muted); }

.how-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; align-items: center; padding: 35px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(23,120,255,.1), rgba(255,255,255,.025)); }
.how-copy h2 { margin: 9px 0; font-size: 28px; }
.how-copy p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.step { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,19,29,.5); }
.step-number { color: var(--accent); font: 800 12px Manrope, sans-serif; }
.step h3 { margin: 12px 0 7px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }

.community-band { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 29px; margin-bottom: 77px; border-radius: 19px; border: 1px solid rgba(23,120,255,.23); background: rgba(23,120,255,.055); }
.community-band h2 { margin: 0; font-size: 21px; }
.community-band p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.community-links { display: flex; gap: 9px; flex-wrap: wrap; }
.community-links a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: rgba(255,255,255,.04); font-size: 12px; }
.community-links a:hover { border-color: rgba(23,120,255,.5); color: #7eb4ff; }

.detail-hero { padding: 28px 0 40px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.detail-banner { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 54px 36px; border: 1px solid var(--line); border-radius: 26px; background: #1a1a28; }
.detail-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,22,.43) 0%, rgba(13,14,22,.53) 48%, rgba(13,14,22,.97) 100%), linear-gradient(90deg, rgba(13,14,22,.36), rgba(13,14,22,.08) 50%, rgba(13,14,22,.36)); z-index: 1; }
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; filter: blur(1px) saturate(.7); opacity: .55; }
.detail-banner-copy { position: relative; z-index: 2; max-width: 770px; text-align: center; }
.detail-wordmark { display: block; margin-top: 18px; color: #8cbaff; font: 800 13px/1.3 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.detail-banner h1 { margin: 13px 0 9px; font-size: clamp(34px, 4vw, 52px); }
.detail-banner p { max-width: 670px; margin: 0; color: #c8c6bb; font-size: 15px; line-height: 1.9; }
.detail-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 19px; }
.detail-meta span { padding: 6px 11px; border: 1px solid rgba(211,217,238,.18); border-radius: 9px; color: #e1e3ed; background: rgba(0,0,0,.3); font-size: 11px; }
.detail-cover-wrap { display: none; }
.detail-cover { width: 190px; height: 255px; object-fit: cover; object-position: center 78%; border-radius: 16px; border: 3px solid rgba(211,217,238,.7); box-shadow: 0 20px 50px rgba(0,0,0,.42); transform: rotate(-2deg); }
.detail-tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 25px; padding: 6px; border-radius: 15px; background: rgba(255,255,255,.035); }
.detail-tab { flex: 1; min-width: max-content; padding: 14px 15px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.detail-tab:hover, .detail-tab.active { color: var(--text); background: var(--surface-raised); }
.detail-tab.active { box-shadow: inset 0 -2px #1778ff; }
.detail-panel { min-height: 270px; padding: 27px; margin: 15px 0 72px; border: 1px solid var(--line); border-radius: 18px; background: rgba(32,33,48,.82); }
.detail-panel h2 { margin: 0 0 18px; font-size: 22px; }
.detail-description { max-width: 850px; color: #c6c9d8; line-height: 2; font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 22px; }
.info-cell { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.info-cell small { display: block; color: var(--muted); font-size: 11px; }
.info-cell b { display: block; margin-top: 6px; font-size: 14px; }
.plain-list { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; gap: 11px; align-items: flex-start; color: #d6d8e5; font-size: 14px; line-height: 1.8; }
.plain-list li::before { content: '✦'; padding-top: 1px; color: var(--accent); font-size: 11px; }
.team-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.team-member { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.team-member small { display: block; color: var(--muted); font-size: 11px; }
.team-member b { display: block; margin-top: 4px; font-size: 13px; }
.team-member a { color: var(--accent-strong); font-size: 12px; white-space: nowrap; }
.download-list { display: grid; gap: 12px; }
.download-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.download-copy { display: flex; align-items: center; gap: 13px; }
.download-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #8cbaff; background: rgba(23,120,255,.14); font-size: 18px; }
.download-copy b { display: block; font-size: 14px; }
.download-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.download-item .button { min-height: 42px; }
.download-action-group { display: flex; align-items: center; gap: 12px; }
.download-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.download-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; margin-bottom: 12px; border: 1px solid rgba(23,120,255,.23); border-radius: 14px; color: #d9e7ff; background: rgba(23,120,255,.07); font-size: 13px; }
.download-total b { color: #fff; font: 800 20px/1 Manrope, 'IBM Plex Sans Arabic', sans-serif; }
.detail-cta { margin-top: 23px; }
.detail-gallery { display: flex; justify-content: flex-start; gap: 11px; overflow-x: auto; padding: 14px 2px 5px; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 170px; height: 92px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #222231; opacity: .75; cursor: pointer; transition: opacity .2s, border-color .2s, transform .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.selected { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); border-radius: 13px; background: #262633; }
.empty-panel { padding: 17px; border: 1px dashed rgba(205,210,228,.2); border-radius: 14px; color: var(--muted); line-height: 1.8; }
.notice-box { padding: 14px 16px; margin-top: 20px; border-right: 3px solid var(--accent); border-radius: 10px; color: #d0d4e3; background: rgba(23,120,255,.08); font-size: 12px; line-height: 1.8; }
.not-found { padding: 100px 20px; text-align: center; }
.not-found h1 { font-size: 34px; }
.not-found p { color: var(--muted); }
.page-loading { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; color: var(--muted); }
.loading-mark { width: 52px; height: 52px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 17px; font-size: 27px; font-weight: 700; animation: breathe 1.3s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: translateY(-6px) rotate(4deg); opacity: .72; } }

.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.15); }
.footer-inner { width: min(var(--max), calc(100% - 42px)); margin: auto; padding: 34px 0 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.footer-socials { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.footer-title { width: 100%; text-align: left; color: var(--muted); font-size: 11px; }
.footer-socials a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: #d0d3e0; font-size: 11px; }
.footer-socials a b { color: var(--accent-strong); direction: ltr; display: inline-block; }
.footer-bottom { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 12px; padding-top: 17px; margin-top: 4px; border-top: 1px solid var(--line); color: #85889a; font-size: 10px; }
.footer-bottom a:hover { color: var(--accent-strong); }

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
  .mobile-menu span { width: 17px; height: 2px; background: var(--paper); border-radius: 2px; }
  .main-nav { display: none; position: absolute; top: 74px; right: 18px; left: 18px; padding: 10px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: #1c1d2a; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .hero-home { min-height: 650px; }
  .hero-home-copy { max-width: 690px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .how-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .header-inner, .footer-inner { width: min(100% - 28px, var(--max)); }
  .brand-mark { width: 40px; height: 40px; }
  .hero-home { min-height: 640px; margin-top: -74px; padding: 74px 0 58px; }
  .hero-home-copy { max-width: 100%; }
  .hero-wordmark { margin-top: 18px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-copy p { font-size: 14px; }
  .hero-meta { gap: 6px; }
  .hero-meta span { font-size: 10px; }
  .hero-scroll { bottom: 15px; }
  .section { padding-bottom: 57px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .library-tools { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .game-grid { grid-template-columns: 1fr; gap: 13px; }
  .card-image-wrap { height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .community-band { align-items: flex-start; flex-direction: column; margin-bottom: 55px; }
  .detail-hero { padding-top: 22px; }
  .detail-banner { min-height: 390px; padding: 35px 22px; }
  .detail-banner::before { background: linear-gradient(180deg, rgba(13,14,22,.5), rgba(13,14,22,.94)); }
  .detail-wordmark { margin-top: 12px; }
  .detail-banner h1 { font-size: 34px; }
  .detail-banner p { font-size: 13px; }
  .detail-tabs { margin-top: 16px; }
  .detail-tab { padding: 12px 10px; font-size: 11px; }
  .detail-panel { padding: 20px 16px; }
  .info-grid, .team-list, .gallery { grid-template-columns: 1fr; }
  .download-item { align-items: flex-start; flex-direction: column; }
  .download-action-group { width: 100%; justify-content: space-between; }
  .download-item .button { width: auto; }
  .download-action-group .button { flex: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-socials { justify-content: flex-start; }
  .footer-title { text-align: right; }
  .footer-bottom { flex-wrap: wrap; }
}

/* ArabiCore editorial home layout */
.home-hero { min-height: clamp(520px, 70vh, 690px); padding-top: 82px; }
.home-hero .hero-visual { background: #14141d; }
.home-hero .hero-backdrop { filter: blur(2px) saturate(.78) brightness(.66); transform: scale(1.06); }
.home-hero .hero-scrim { background: linear-gradient(180deg, rgba(12,12,20,.46), rgba(12,12,20,.3) 42%, #101017 100%), linear-gradient(90deg, rgba(12,12,20,.55), rgba(12,12,20,.12) 58%, rgba(12,12,20,.5)); }
.home-hero-content { width: min(100%, 1080px); display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: clamp(30px, 7vw, 105px); direction: rtl; }
.home-hero-copy { max-width: 680px; margin: 0; text-align: right; }
.home-hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #dfe9ff; }
.home-hero-copy .eyebrow i { color: #70aaff; font-style: normal; }
.home-hero-copy .hero-wordmark { margin-top: 21px; color: #9fc4ff; font-size: 13px; }
.home-hero-copy h1 { font-size: clamp(42px, 5vw, 68px); }
.home-hero-copy p { margin-inline: 0; color: #e1e1eb; }
.home-hero-copy .hero-actions { justify-content: flex-start; }
.home-hero-copy .hero-meta { justify-content: flex-start; }
.home-feature-art { position: relative; display: block; width: 100%; height: 330px; overflow: hidden; border: 1px solid rgba(255,255,255,.29); border-radius: 22px; background: #20202b; box-shadow: 0 28px 80px rgba(0,0,0,.48); transform: rotate(1.5deg); transition: transform .25s, border-color .25s; }
.home-feature-art:hover { transform: rotate(0) translateY(-5px); border-color: rgba(82,155,255,.8); }
.home-feature-art::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, transparent, rgba(10,10,17,.9)); }
.home-feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.home-feature-art > span { position: absolute; z-index: 1; right: 19px; bottom: 18px; left: 19px; display: grid; gap: 5px; }
.home-feature-art small { color: #b7c8e4; font-size: 11px; }
.home-feature-art b { color: #fff; font: 700 14px Manrope, 'IBM Plex Sans Arabic', sans-serif; direction: ltr; text-align: right; }
.home-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 22px; align-items: start; padding-top: 18px; padding-bottom: 80px; direction: rtl; }
.home-library { min-width: 0; }
.home-library .section-heading { align-items: end; margin-bottom: 17px; }
.home-library .section-heading h2 { margin-top: 3px; font-size: clamp(27px, 3vw, 36px); }
.home-library .section-heading p { margin-top: 5px; }
.library-count { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c4d9ff; background: rgba(23,120,255,.09); font-size: 11px; white-space: nowrap; }
.home-library .library-tools { display: grid; gap: 11px; padding: 14px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(29,29,42,.82); }
.home-library .search-box { width: 100%; }
.home-library .search-submit { min-width: 88px; }
.home-library .filter-list { flex-wrap: wrap; }
.home-library .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-library .game-card { border-radius: 18px; background: linear-gradient(155deg, #20202d, #191923); }
.home-library .card-image-wrap { height: 155px; margin: 9px 9px 0; border-radius: 12px; }
.home-library .card-image { object-position: center; }
.home-library .card-body { padding: 14px 14px 13px; }
.home-library .card-body h3 { font-size: 16px; }
.home-library .card-body p { min-height: 46px; margin: 8px 0 12px; font-size: 12px; }
.home-library .card-bottom { flex-wrap: wrap; gap: 7px; font-size: 10px; }
.home-sidebar { display: grid; gap: 14px; }
.daily-translation, .sidebar-panel, .library-stats, .sidebar-guide { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(31,31,45,.97), rgba(24,24,35,.98)); box-shadow: 0 14px 38px rgba(0,0,0,.12); }
.daily-translation { display: block; transition: transform .22s, border-color .22s; }
.daily-translation:hover { transform: translateY(-3px); border-color: rgba(23,120,255,.45); }
.daily-image-wrap { position: relative; height: 184px; overflow: hidden; background: #282838; }
.daily-image-wrap::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(9,9,16,.72)); }
.daily-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.daily-image-wrap > span { position: absolute; z-index: 1; right: 12px; top: 12px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #fff; background: rgba(21,22,34,.76); backdrop-filter: blur(8px); font-size: 10px; }
.daily-copy { display: grid; gap: 5px; padding: 14px 15px 16px; }
.daily-copy small { color: #8ab8ff; font-size: 10px; }
.daily-copy b { font-size: 17px; }
.daily-copy > span { color: var(--muted); font-size: 11px; }
.daily-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.sidebar-panel { padding: 16px; }
.sidebar-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.sidebar-title h2 { margin: 2px 0 0; font-size: 19px; }
.sidebar-title > span { color: #83b5ff; font-size: 20px; }
.heading-kicker { color: #9abef3; font-size: 10px; }
.update-list { display: grid; }
.update-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid rgba(211,214,235,.08); }
.update-row:last-child { padding-bottom: 0; border: 0; }
.update-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 12px rgba(49,136,255,.5); }
.update-copy { min-width: 0; }
.update-copy b, .update-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-copy b { font-size: 12px; }
.update-copy small, .update-row time { margin-top: 3px; color: var(--muted); font-size: 9px; }
.update-row time { text-align: left; white-space: nowrap; }
.library-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 9px; }
.library-stat { min-height: 79px; display: grid; align-content: center; justify-items: center; gap: 3px; border: 1px solid rgba(211,214,235,.08); border-radius: 12px; background: rgba(255,255,255,.025); text-align: center; }
.library-stat b { color: #f5f7ff; font: 800 24px/1 Manrope, 'IBM Plex Sans Arabic', sans-serif; }
.library-stat span { color: var(--muted); font-size: 9px; }
.stats-caption { margin: -7px 2px 0; color: #85899c; font-size: 10px; line-height: 1.7; }
.sidebar-guide { display: flex; align-items: center; gap: 11px; padding: 13px; transition: border-color .2s, transform .2s; }
.sidebar-guide:hover { transform: translateY(-2px); border-color: rgba(23,120,255,.42); }
.guide-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #a7caff; background: rgba(23,120,255,.14); font-size: 18px; }
.sidebar-guide > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.sidebar-guide b { font-size: 11px; }
.sidebar-guide small { color: var(--muted); font-size: 9px; }
.sidebar-guide > span:last-child { color: #8cbaff; }
.detail-gallery { scroll-snap-type: x mandatory; }
.gallery-thumb { scroll-snap-align: start; opacity: .86; }
.gallery-thumb img { object-position: center; }
.detail-banner { box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.detail-banner::before { background: linear-gradient(180deg, rgba(13,14,22,.38), rgba(13,14,22,.47) 48%, rgba(13,14,22,.91)), linear-gradient(90deg, rgba(13,14,22,.3), rgba(13,14,22,.08) 50%, rgba(13,14,22,.3)); }
.detail-backdrop { filter: blur(1px) saturate(.82); opacity: .68; }
.detail-tabs { position: sticky; top: 82px; z-index: 5; border: 1px solid rgba(211,214,235,.07); backdrop-filter: blur(14px); }

@media (max-width: 1050px) {
  .home-dashboard { grid-template-columns: minmax(0, 1fr) 275px; gap: 15px; }
  .home-library .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-library .card-image-wrap { height: 170px; }
}
@media (max-width: 820px) {
  .home-hero-content { grid-template-columns: minmax(0,1fr) 210px; gap: 24px; }
  .home-feature-art { height: 275px; }
  .home-dashboard { grid-template-columns: 1fr; }
  .home-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
  .daily-translation { grid-row: span 2; }
}
@media (max-width: 580px) {
  .home-hero { min-height: 0; padding: 78px 0 42px; }
  .home-hero-content { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .home-hero-copy { text-align: center; }
  .home-hero-copy h1 { font-size: clamp(38px, 10vw, 52px); }
  .home-hero-copy p { margin-inline: auto; }
  .home-hero-copy .hero-actions, .home-hero-copy .hero-meta { justify-content: center; }
  .home-feature-art { width: min(100%, 340px); height: 145px; justify-self: center; border-radius: 17px; transform: none; }
  .home-feature-art > span { display: grid; right: 13px; bottom: 12px; left: 13px; }
  .home-feature-art::after { display: block; }
  .hero-scroll { display: none; }
  .home-dashboard { padding-top: 0; padding-bottom: 44px; }
  .home-library .section-heading { align-items: flex-start; }
  .home-library .section-heading h2 { font-size: 27px; }
  .home-library .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .home-library .card-image-wrap { height: 125px; margin: 6px 6px 0; border-radius: 10px; }
  .home-library .card-body { padding: 10px 10px 11px; }
  .home-library .card-topline { display: block; }
  .home-library .card-body h3 { display: -webkit-box; min-height: 34px; overflow: hidden; font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .home-library .card-original { display: block; overflow: hidden; margin-top: 3px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .home-library .card-body p { display: -webkit-box; height: 31px; min-height: 0; overflow: hidden; margin: 5px 0 8px; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .home-library .card-bottom { gap: 5px; padding-top: 8px; font-size: 9px; }
  .home-library .platform-tags { gap: 3px; }
  .home-library .platform-tag { padding: 4px 6px; font-size: 8px; }
  .home-library .card-arrow { display: none; }
  .home-library .filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
  .home-library .filter-chip { flex: 0 0 auto; }
  .home-sidebar { grid-template-columns: 1fr; }
  .daily-translation { grid-row: auto; }
  .daily-image-wrap { height: 175px; }
  .library-count { margin-top: 8px; }
  .detail-tabs { top: 72px; }
  .detail-banner { min-height: 330px; padding: 25px 15px; }
  .detail-banner h1 { font-size: clamp(29px, 8vw, 36px); }
  .detail-meta { gap: 5px; margin-top: 13px; }
  .detail-meta span { padding: 5px 8px; font-size: 9px; }
  .gallery-thumb { flex-basis: 145px; height: 82px; }
  .detail-tabs { gap: 3px; padding: 4px; }
  .detail-tab { padding: 10px 8px; font-size: 10px; }
  .detail-panel { min-height: 0; padding: 17px 13px; margin-bottom: 44px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .info-cell { min-width: 0; padding: 10px; }
  .info-cell b { overflow-wrap: anywhere; font-size: 12px; }
  .plain-list { gap: 8px; }
  .plain-list li { font-size: 12px; }
  .download-total { padding: 12px; font-size: 11px; }
  .download-total b { font-size: 17px; }
  .download-copy { min-width: 0; }
  .download-copy > div { min-width: 0; }
  .download-copy b { overflow-wrap: anywhere; }
  .download-action-group { gap: 8px; }
  .download-count { font-size: 9px; }
}

@media (max-width: 390px) {
  .container, .header-inner, .footer-inner { width: min(100% - 22px, var(--max)); }
  .home-hero { padding-top: 74px; }
  .home-hero-copy h1 { font-size: 36px; }
  .home-feature-art { height: 125px; }
  .home-library .game-grid { gap: 7px; }
  .home-library .card-image-wrap { height: 108px; }
  .home-library .card-body { padding: 8px 8px 9px; }
  .home-library .card-body h3 { min-height: 32px; font-size: 12px; }
  .home-library .card-original { font-size: 8px; }
  .home-library .card-body p { height: 28px; font-size: 9px; }
  .home-library .library-tools { padding: 10px; }
  .search-submit { min-width: 70px !important; padding: 0 9px; }
  .search-box { gap: 7px; }
  .filter-chip { padding: 8px 10px; font-size: 10px; }
  .home-library .card-image-wrap { height: 102px; }
  .detail-tab { padding-inline: 6px; font-size: 9px; }
  .info-grid { gap: 6px; }
}
