/* خليل تك | الألعاب — التنسيق المشترك (ألوان وخطوط براند khaliltech.net) */
:root {
  --bg: #0a0908;
  --bg2: #100e0b;
  --panel: #13110d;
  --panel2: #1a1712;
  --line: rgba(239, 233, 221, .11);
  --line2: rgba(201, 168, 106, .28);
  --text: #efe9dd;
  --muted: #9a9284;
  --faint: #877e6e;
  --gold: #c9a86a;
  --gold-l: #f3e2b3;
  --gold-d: #8a6d3b;
  --gold-grad: linear-gradient(105deg, #9a7b45 0%, #f3e2b3 38%, #c9a86a 62%, #8a6d3b 100%);
  --green: #7fd1a8;
  --red: #e0705c;
  --ink: #17120a;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --font: "Alexandria", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Aref Ruqaa", "Alexandria", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(201, 168, 106, .10), transparent 65%),
    radial-gradient(700px 420px at 0% 30%, rgba(201, 168, 106, .05), transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
b, strong { font-weight: 500; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--mono); font-weight: 400; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); border: 0; margin: 0; }

/* ===== الهيدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 9, 8, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-name { font-family: var(--display); font-size: 1.55rem; line-height: 1; font-weight: 700; }
.logo-sub { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; font-weight: 300; }
.nav { display: flex; gap: 22px; margin-inline-start: 18px; font-size: .9rem; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--gold-l); }
.search {
  flex: 1; max-width: 320px; margin-inline-start: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--line2); }
.search svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: .9rem; height: 42px; outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(.6) sepia(1); }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 13px 30px;
  font-weight: 500; font-size: .98rem;
  background: var(--gold-grad); background-size: 160% 100%; background-position: 0 0;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(201, 168, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background-position .5s, transform .15s, box-shadow .2s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 36px rgba(201, 168, 106, .32), inset 0 1px 0 rgba(255,255,255,.35); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost {
  background: transparent; color: var(--text); box-shadow: none;
  border: 1px solid var(--line2);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-l); }

/* ===== الرئيسية ===== */
.hero {
  position: relative; margin-top: 28px; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 18% 50%, rgba(201, 168, 106, .14), transparent 70%),
    linear-gradient(180deg, #13100c, #0c0b09);
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(243, 226, 179, .08), transparent 30%, transparent 70%, rgba(201, 168, 106, .06));
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: .85rem; font-weight: 400; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 {
  margin: 0 0 16px; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.3;
}
.hero p { margin: 0 0 30px; color: var(--muted); font-size: 1.05rem; max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--mono); font-weight: 400; font-size: 1.6rem; color: var(--gold-l); line-height: 1.2; }
.hero-stats span { font-size: .8rem; color: var(--faint); }
.hero-art { position: relative; z-index: 1; }
.hero-art svg { width: 100%; height: auto; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.float { animation: float 7s ease-in-out infinite; transform-origin: center; }
.float.d2 { animation-delay: -2.3s; }
.float.d3 { animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float, .hero-art * { animation: none !important; } }

.section-title { scroll-margin-top: 90px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 64px 0 22px; flex-wrap: wrap; }
.section-title .label { display: block; font-family: var(--mono); color: var(--gold); font-size: .8rem; margin-bottom: 6px; }
.section-title h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.3; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 18px; cursor: pointer; font-size: .88rem; font-weight: 400;
  transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ===== بطاقات الألعاب ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line2); box-shadow: 0 26px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(201,168,106,.08); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb svg { transform: scale(1.05); }
.thumb .tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; font-size: .7rem; font-weight: 400;
  background: rgba(10, 9, 8, .7); border: 1px solid var(--line2); color: var(--gold-l);
  padding: 2px 12px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; font-weight: 500; }
.card-body p { margin: 0; color: var(--muted); font-size: .86rem; flex: 1; line-height: 1.7; }
.card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: .76rem; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-meta .play { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.card-meta .play svg { width: 14px; height: 14px; transition: transform .3s; }
.card:hover .card-meta .play svg { transform: translateX(-4px); }
.empty { color: var(--muted); text-align: center; padding: 40px; grid-column: 1 / -1; }

/* البطاقة المميزة */
.feature-card {
  display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); transition: border-color .35s;
}
.feature-card:hover { border-color: var(--line2); }
.feature-card .thumb { aspect-ratio: auto; min-height: 300px; }
.feature-card .card-body { padding: clamp(22px, 4vw, 44px); justify-content: center; gap: 12px; }
.feature-card h3 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.3; }
.feature-card p { flex: 0; font-size: .98rem; }
.feature-card .btn { align-self: flex-start; margin-top: 10px; }

/* ===== المزايا ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg2); padding: 26px 24px; }
.feature .num { color: var(--gold); font-size: .8rem; }
.feature b { display: block; font-size: 1.05rem; margin: 8px 0 6px; font-weight: 500; }
.feature span { color: var(--muted); font-size: .88rem; }

/* ===== أماكن الإعلانات (تختفي وهي فاضية) ===== */
.ad-slot { margin: 32px auto; width: 100%; max-width: 728px; min-height: 90px; }
.ad-slot:empty { display: none; }

/* ===== الفوتر ===== */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--faint); font-size: .86rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--gold-l); }

/* ===== صفحة اللعبة ===== */
.topbar { display: flex; align-items: center; gap: 10px; margin: 22px 0 16px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.3; flex: 1; min-width: 150px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
  display: grid; place-items: center; transition: .2s; flex: none;
}
.icon-btn:hover { border-color: var(--line2); color: var(--gold-l); }
.icon-btn svg { width: 19px; height: 19px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 3px 16px; text-align: center; min-width: 84px;
}
.stat small { display: block; color: var(--faint); font-size: .68rem; line-height: 1.5; }
.stat b { font-family: var(--mono); font-weight: 400; font-size: 1.15rem; line-height: 1.35; color: var(--gold-l); }

.stage {
  position: relative; margin-inline: auto; width: 100%;
  background: linear-gradient(180deg, #14110d, #0e0c0a);
  border: 1px solid var(--line); border-radius: 26px;
  padding: 14px; box-shadow: var(--shadow);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.stage::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(160deg, rgba(243,226,179,.35), transparent 35%, transparent 70%, rgba(201,168,106,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.stage canvas { width: auto; height: auto; max-width: 100%; max-height: max(320px, calc(100vh - 205px)); max-height: max(320px, calc(100svh - 205px)); margin-inline: auto; border-radius: 16px; touch-action: none; }

.overlay {
  position: absolute; inset: 0; border-radius: 26px; z-index: 5;
  background: rgba(8, 7, 6, .84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; place-items: center; text-align: center; padding: 24px;
}
.overlay.show { display: grid; animation: fade .3s ease-out; }
@keyframes fade { from { opacity: 0; } }
.overlay .label { font-family: var(--mono); font-size: .78rem; color: var(--gold); }
.overlay h2 { margin: 4px 0 6px; font-family: var(--display); font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 700; line-height: 1.35; }
.overlay .big { font-family: var(--mono); font-size: clamp(2.6rem, 10vw, 3.6rem); font-weight: 400; line-height: 1.2; }
.overlay p { margin: 6px 0 22px; color: var(--muted); font-size: .95rem; }
.overlay .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.howto { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 22px; }
.howto h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.howto li { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }
.howto ul { margin: 0; padding-inline-start: 20px; }
.howto li::marker { color: var(--gold); }

.more .section-title { margin-top: 48px; }
.more .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.more .card-body p { display: none; }
.more .card-body { padding: 12px 14px 14px; }
.more .card-body h3 { font-size: .95rem; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel2); color: var(--gold-l); border: 1px solid var(--line2);
  padding: 11px 24px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: .3s; z-index: 50; box-shadow: var(--shadow); font-size: .92rem;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

.prose { max-width: 760px; padding-top: 40px; }
.prose h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.3; margin: 0 0 18px; }
.prose p { color: var(--muted); }
.prose b { color: var(--text); }
.prose a:not(.btn) { color: var(--gold); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 860px) {
  .nav { gap: 14px; margin-inline-start: auto; font-size: .8rem; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero .actions, .hero-stats { justify-content: center; }
  .eyebrow { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 300px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .thumb { min-height: 210px; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .nav { gap: 12px; font-size: .74rem; white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: .95rem; }
  .card-body p { display: none; }
  .card-meta { font-size: .7rem; }
  .hero-stats { gap: 22px; }
  .stage { padding: 8px; border-radius: 20px; }
  .topbar h1 { font-size: 1.35rem; flex-basis: calc(100% - 54px); }
  .topbar .stat { flex: 1; min-width: 0; padding: 3px 10px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ===== المنصة: واجهة العرض، الفئات، الشرائط ===== */
.home { padding-top: 22px; }
.showcase { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.hero-game { position: relative; display: grid; border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel); min-height: 360px; isolation: isolate; }
.hero-game .thumb { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.hero-game .thumb svg { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-game:hover .thumb svg { transform: scale(1.04); }
.hero-game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,9,8,.96) 8%, rgba(10,9,8,.55) 45%, transparent 75%); }
.hero-info { align-self: end; padding: clamp(20px, 3.4vw, 36px); }
.hero-info h1 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.25; }
.hero-info p { margin: 6px 0 18px; color: var(--muted); max-width: 460px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-side .gtile { width: auto; }
.badge { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--green); color: #0f2a1e; font-size: .7rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; }
.gtile { flex: none; width: 210px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; scroll-snap-align: start; }
.gtile:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 18px 36px rgba(0,0,0,.5); }
.gtile .thumb { aspect-ratio: 16 / 10; }
.gtile:hover .thumb svg { transform: scale(1.06); }
.hover-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,9,8,.45); opacity: 0; transition: opacity .25s; }
.hover-play svg { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.gtile:hover .hover-play, .gtile:focus-visible .hover-play { opacity: 1; }
.gtile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.gtile-body b { font-size: .95rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile-body small { color: var(--faint); font-size: .74rem; }
.catbar { display: flex; gap: 10px; margin: 26px 0 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.catbar::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.cat:hover { border-color: var(--gold); color: var(--gold-l); }
.cat svg { width: 22px; height: 22px; color: var(--gold); }
.cat small { font-family: var(--mono); color: var(--faint); font-size: .75rem; background: var(--panel2); border-radius: 999px; padding: 0 8px; }
.rail { margin-top: 34px; scroll-margin-top: 90px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-head h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.rail-head h2 small { font-family: var(--mono); color: var(--faint); font-size: .8rem; font-weight: 400; }
.rail-ctl { display: flex; gap: 6px; }
.rail-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rail-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-l); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.rail-track::-webkit-scrollbar { display: none; }
.home .section-title { margin-top: 48px; }
.home .features { margin-top: 48px; }
/* نتائج البحث المنسدلة */
.search { position: relative; }
.sresults { position: absolute; top: calc(100% + 8px); inset-inline: 0; min-width: 260px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); z-index: 60; }
.sresults a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.sresults a:hover { background: var(--panel2); }
.sresults .mini { width: 64px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; flex: none; position: relative; }
.sresults .mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sresults b { display: block; font-size: .9rem; font-weight: 500; }
.sresults small { color: var(--faint); font-size: .74rem; }
.sresults .none { padding: 10px; color: var(--muted); font-size: .88rem; }
.stage:fullscreen { display: grid; align-content: center; max-width: none; background: var(--bg); border-radius: 0; overflow: auto; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .hero-game { min-height: 300px; }
}
@media (max-width: 640px) {
  .hero-side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gtile { width: 160px; }
  .hero-side .gtile-body small { display: none; }
  .rail-ctl { display: none; }
}
@media (min-width: 861px) {
  .hero-game .thumb { inset: 0 38% 0 0; }
  .hero-game::after { background: linear-gradient(to left, rgba(10,9,8,.98) 34%, rgba(10,9,8,.5) 52%, transparent 70%); }
  .hero-info { max-width: 52%; align-self: center; }
}
@media (max-width: 860px) {
  .hero-game { min-height: 0; }
  .hero-game .thumb { position: relative; inset: auto; aspect-ratio: 16 / 9; z-index: 0; }
  .hero-game::after { display: none; }
  .hero-info { padding: 16px 18px 20px; }
  .hero-info p { margin-bottom: 14px; font-size: .9rem; }
}
/* التحدي اليومي */
.badge.ok { background: var(--gold); color: var(--ink); }
.gtile.done { border-color: rgba(201,168,106,.35); }
#daily .rail-head h2::before { content: "☀"; color: var(--gold); margin-inline-end: 8px; }
/* صفحات الألعاب على الموبايل: هيدر صغير ومش ثابت عشان ما يغطيش اللعبة */
@media (max-width: 640px) {
  .game-page .site-header { position: relative; }
  .game-page .site-header .nav, .game-page .site-header .search { display: none; }
}
/* شاشة قصيرة (موبايل بالعرض): الهيدر مش ثابت، والعبة تاخد طول الشاشة كله */
@media (max-height: 520px) {
  .site-header { position: relative; }
  .game-page .topbar { margin: 8px 0; }
  .stage .gl-wrap { max-height: calc(100svh - 20px); min-height: 0; }
}
@media (max-height: 520px) and (min-width: 500px) {
  .game-page .topbar h1 { flex-basis: auto; font-size: 1.15rem; }
}
