/* ==========================================================================
   Moraba3X (مربع اكس) & Full House Party — Unified Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;700;800;900&family=Cairo:wght@400;600;700;800;900&family=Permanent+Marker&family=Rubik:wght@400;500;600;700;800;900&display=swap');

/* --- Brand CSS Variables (Moraba3X HQ Theme) --- */
:root {
  --ink: #14171C;
  --sand: #FBF7EE;
  --paper: #FFFFFF;
  --saffron: #D9921E;
  --saffron-dark: #B5740F;
  --saffron-light: #FDE8BE;
  --muted: #5F6570;
  --line: #E7DFCF;
  --line-strong: #14171C;
  
  --bg: var(--sand);
  --text: var(--ink);
  --card-bg: var(--paper);
  --card-border: var(--line);
  --accent: var(--saffron);
  --accent-press: var(--saffron-dark);

  /* Fonts */
  --font-en: "Archivo", system-ui, -apple-system, sans-serif;
  --font-ar: "Cairo", system-ui, -apple-system, sans-serif;
  --font-fh: "Rubik", system-ui, -apple-system, sans-serif;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-subtle: 0 4px 16px rgba(20, 23, 28, 0.05);
  --shadow-card: 0 8px 24px rgba(20, 23, 28, 0.07);
  --shadow-3d: 0 4px 0 #14171C;
}

/* Dark mode for Moraba3X HQ */
@media (prefers-color-scheme: dark) {
  body:not(.fh-page) {
    --bg: #14171C;
    --text: #FBF7EE;
    --muted: #A3A7AF;
    --card-bg: #1B2028;
    --card-border: #2B323D;
    --line: #262D37;
    --line-strong: #404A58;
    --accent: #E3A033;
    --saffron: #E3A033; /* brand saffron on dark backgrounds */
    --accent-press: #C48218;
    --shadow-3d: 0 4px 0 #0A0C0E;
  }
}

/* --- Full House Party In-App Theme --- */
body.fh-page {
  --bg-base: #17201E;
  --band-deep: #2A1D3A;
  --band-purple: #3E1957;
  --game-purple: #5D1C81;

  --orange: #FF7828;
  --orange-btn: #EC7D29;
  --orange-edge: #9F4909;
  --orange-soft: #FF904D;
  --amber: #F9A825;
  --cyan: #5CE1E6;
  --cyan-edge: #238A8D;
  --teal: #3B8F94;
  --green: #00BE62;
  --green-edge: #007D40;
  --rose: #A53161;
  --shebsheb-blue: #2A88FF;

  --bg: radial-gradient(circle at 50% 15%, #3E1957 0%, #2A1D3A 50%, #17201E 100%);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --accent: var(--orange-btn);

  font-family: var(--font-fh);
}

/* Base resets & typography */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body, [lang="ar"] body {
  font-family: var(--font-ar);
}

body.fh-page, [dir="rtl"] body.fh-page, [lang="ar"] body.fh-page {
  font-family: var(--font-fh);
}

/* Bilingual switcher rule */
html[data-lang="en"] .ar,
html[data-lang="ar"] .en {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout container */
.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-wide {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}
@media (prefers-color-scheme: dark) {
  body:not(.fh-page) header.site-header {
    background: rgba(20, 23, 28, 0.92);
  }
}
body.fh-page header.site-header {
  background: rgba(23, 32, 30, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-link img.logo-img {
  display: block;
  height: 34px;
  width: auto;
}
.brand-link .dark { display: none; }
@media (prefers-color-scheme: dark) {
  body:not(.fh-page) .brand-link .light { display: none; }
  body:not(.fh-page) .brand-link .dark { display: block; }
}

/* Full House Header brand */
.fh-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.fh-brand-link .fh-nav-logo {
  height: 38px;
  width: auto;
}
.fh-by-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.fh-by-tag:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 14.5px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 4px;
}
.nav-links a:hover {
  color: var(--accent);
}

/* Language switch button */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-switch:hover {
  background: var(--text);
  color: var(--bg);
}
body.fh-page .lang-switch {
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFF;
}
body.fh-page .lang-switch:hover {
  background: #FFF;
  color: #17201E;
}
html[data-lang="en"] .lang-switch { font-family: var(--font-ar); }
html[data-lang="ar"] .lang-switch { font-family: var(--font-en); }

/* ==========================================================================
   Buttons (Tactile 3D Button Style)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
  user-select: none;
}

/* Moraba3X Primary 3D Button */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 0 var(--shadow-3d);
}
.btn-primary:hover {
  color: var(--bg);
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--shadow-3d);
}

/* Moraba3X Saffron Accent Button */
.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--saffron-dark);
}
.btn-accent:hover {
  color: var(--ink);
  filter: brightness(1.08);
}
.btn-accent:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--saffron-dark);
}

/* Full House In-App 3D Orange Button */
.btn-fh-orange {
  background: #EC7D29;
  color: #FFFFFF;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  box-shadow: 0 5px 0 #9F4909;
}
.btn-fh-orange:hover {
  color: #FFFFFF;
  background: #F88937;
}
.btn-fh-orange:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9F4909;
}

/* Full House In-App 3D Cyan Button */
.btn-fh-cyan {
  background: #5CE1E6;
  color: #1A3638;
  border-radius: 18px;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  box-shadow: 0 4px 0 #288C90;
}
.btn-fh-cyan:hover {
  color: #1A3638;
  background: #73E6EA;
}
.btn-fh-cyan:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #288C90;
}

/* Full House In-App 3D Purple / Frosted Button */
.btn-fh-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.btn-fh-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.btn-fh-glass:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Moraba3X HQ Pages — Hero & Sections
   ========================================================================== */
.hero-hq {
  padding: 64px 0 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saffron);
  background: var(--saffron-light);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
[dir="rtl"] .hero-badge {
  letter-spacing: 0;
  font-size: 14px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 20ch;
}
[dir="rtl"] .hero-title {
  letter-spacing: 0;
  font-weight: 900;
}
.hero-title .accent-mark {
  color: var(--saffron);
}

.hero-lead {
  font-size: clamp(18px, 2.5vw, 21px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* Small saffron label (Support page) */
.fakeout-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
}
[dir="rtl"] .fakeout-tag { letter-spacing: 0; }

/* Animated mark: the logo's own shapes (same coordinates as brand/logo/mark-*.svg) draw in,
   the ball rides the saffron hook, then the mark pops. Plays on view and on tap. */
.mark-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 32px 0 48px;
  padding: 24px;
  background: var(--card-bg);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.mark-stage:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.mark-anim { width: 120px; height: 120px; flex: none; overflow: visible; }
.mark-anim rect, .mark-anim line, .mark-anim path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mk-square { stroke: var(--text); stroke-width: 7; }
.mk-stroke { stroke: var(--text); stroke-width: 10; stroke-linecap: round; }
.mk-hook { stroke: var(--saffron); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.mk-ball { fill: var(--saffron); opacity: 0; }

.mk-steps { position: relative; flex: 1; min-height: 56px; display: flex; align-items: center; }
.mk-step {
  position: absolute;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
}
.mk-step.s2 { color: var(--saffron); }
.mk-step.s3 { position: static; opacity: 1; letter-spacing: -0.02em; }
[dir="rtl"] .mk-step.s3 { letter-spacing: 0; }
.mk-hint {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Sparks burst from the middle of the mark when it lands. */
.mk-sparks { position: absolute; top: calc(24px + 60px); inset-inline-start: calc(24px + 60px); width: 0; height: 0; }
.mk-sparks i {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--saffron);
  opacity: 0;
}
.mk-sparks i:nth-child(even) { background: var(--text); width: 6px; height: 6px; margin: -3px; }

/* Playing */
.mark-stage.play .mk-square { animation: mk-draw 0.5s ease-out both; }
.mark-stage.play .mk-stroke { animation: mk-draw 0.35s 0.5s ease-in both; }
.mark-stage.play .mk-hook { animation: mk-draw 0.55s 0.9s cubic-bezier(0.3, 0, 0.2, 1) both; }
.mark-stage.play .mk-ball { animation: mk-ball 0.75s 0.9s both; }
.mark-stage.play .mark-anim { animation: mk-pop 0.45s 1.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.mark-stage.play .mk-step.s1 { animation: mk-flash 0.85s both; }
.mark-stage.play .mk-step.s2 { animation: mk-flash 0.55s 0.9s both; }
.mark-stage.play .mk-step.s3 { animation: mk-land 0.5s 1.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.mark-stage.play .mk-sparks i { animation: mk-spark 0.7s 1.45s ease-out both; }
.mk-sparks i:nth-child(1) { --dx: 0px; --dy: -78px; }
.mk-sparks i:nth-child(2) { --dx: 68px; --dy: -40px; }
.mk-sparks i:nth-child(3) { --dx: 68px; --dy: 40px; }
.mk-sparks i:nth-child(4) { --dx: 0px; --dy: 78px; }
.mk-sparks i:nth-child(5) { --dx: -68px; --dy: 40px; }
.mk-sparks i:nth-child(6) { --dx: -68px; --dy: -40px; }

@keyframes mk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mk-ball { 0% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mk-pop { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes mk-flash { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; transform: scale(1.1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }
@keyframes mk-land { from { opacity: 0; transform: translateY(14px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes mk-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }

@media (prefers-reduced-motion: reduce) {
  .mark-stage.play * { animation: none !important; }
}
@media (max-width: 600px) {
  .mark-stage { gap: 16px; padding: 20px 20px 30px; }
  .mark-anim { width: 88px; height: 88px; }
  .mk-sparks { top: calc(20px + 44px); inset-inline-start: calc(20px + 44px); }
}

/* Games Section Grid */
.section-heading {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  margin: 48px 0 24px;
  letter-spacing: -0.01em;
}
[dir="rtl"] .section-heading { letter-spacing: 0; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--text);
}

.game-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
[dir="rtl"] .game-card-badge { letter-spacing: 0; }
.badge-mobile { background: #FFEDD5; color: #9A3412; }
.badge-tabletop { background: #E0E7FF; color: #3730A3; }

.game-card h3 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.25;
}
.game-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.game-card-avatars {
  display: flex;
  align-items: center;
  gap: -8px;
  margin-bottom: 24px;
}
.avatar-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--card-bg);
  object-fit: cover;
  margin-inline-end: -10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Secret Classified Box Style */
.classified-card {
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.015) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 2px dashed var(--line-strong);
}
.stamp-tag {
  display: inline-block;
  border: 2px solid #C0392B;
  color: #C0392B;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(-3deg);
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Studio Values / Philosophy */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0 64px;
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.value-card .value-num {
  font-size: 14px;
  font-weight: 900;
  color: var(--saffron);
  margin-bottom: 8px;
}
.value-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}
.value-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ==========================================================================
   Full House Party Page — App Aesthetic
   ========================================================================== */
.fh-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.fh-hero-logo {
  max-width: 260px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}
/* "PARTY" under the old FULL HOUSE artwork, until the Full House Party logo is drawn. */
.fh-logo-wrap { position: relative; width: fit-content; margin: 0 auto 28px; }
.fh-logo-wrap .fh-hero-logo { margin-bottom: 0; }
.fh-party {
  position: absolute;
  inset-inline-end: -6px;
  bottom: -14px;
  font-family: "Permanent Marker", var(--font-fh);
  font-size: 34px;
  line-height: 1;
  color: var(--cyan);
  transform: rotate(-7deg);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  animation: fh-party-in 0.6s 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes fh-party-in { from { opacity: 0; transform: rotate(-20deg) scale(0.4); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .fh-party { animation: none; } }
.fh-tagline {
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 auto 16px;
  max-width: 18ch;
  color: #FFF;
}
.fh-lead {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

/* Feature Chips */
.fh-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.fh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
}

/* Hero CTA group */
.fh-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Interactive Simulated Phone Screen */
.phone-mockup-wrapper {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 56px;
  background: #101514;
  border: 8px solid #2A3331;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 20px;
  background: #2A3331;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  margin: 0 auto 12px;
}
.phone-content {
  padding: 12px 18px 24px;
  color: #FFF;
  text-align: center;
}
.room-code-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.lobby-players-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.lobby-player-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lobby-player-slot img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #5CE1E6;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.lobby-player-slot span {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}
.mock-host-btn {
  background: #EC7D29;
  color: #FFF;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 #9F4909;
}

/* Floating Shebsheb Reaction Bar */
.reaction-bar-container {
  background: rgba(23, 32, 30, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  max-width: 100%;
  margin: 0 auto 48px;
}
.reaction-item {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reaction-item:hover {
  transform: scale(1.3);
}
.reaction-item.shebsheb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 136, 255, 0.18);
  border: 1.5px solid #2A88FF;
}
.reaction-item.shebsheb-btn img {
  width: 24px;
  height: 24px;
}
.reaction-tooltip {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* The Blue Shebsheb Flying Smack Animation */
.flying-shebsheb {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 70px;
  height: 70px;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.3s ease;
}

/* Full House 8 Mini-Games Grid */
.fh-games-section {
  padding: 40px 0 60px;
}
.fh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.fh-game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fh-game-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}
.fh-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 12px;
}
.badge-music { background: rgba(249, 168, 37, 0.2); color: #F9A825; border: 1px solid rgba(249, 168, 37, 0.4); }
.badge-action { background: rgba(236, 125, 41, 0.2); color: #EC7D29; border: 1px solid rgba(236, 125, 41, 0.4); }
.badge-speed { background: rgba(92, 225, 230, 0.2); color: #5CE1E6; border: 1px solid rgba(92, 225, 230, 0.4); }
.badge-social { background: rgba(165, 49, 97, 0.25); color: #FF70A6; border: 1px solid rgba(165, 49, 97, 0.4); }

.fh-game-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #FFF;
}
.fh-game-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Legal Reader & Policy Pages
   ========================================================================== */
.legal-wrapper {
  padding: 48px 0 80px;
}
.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) {
  .legal-card { padding: 24px 18px; }
}

.legal-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 24px;
  color: var(--accent);
}
.legal-back-nav:hover {
  text-decoration: underline;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.legal-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  margin: 0 0 8px;
}
.legal-date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.legal-content h2, .legal-content h3 {
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.legal-content h2 { font-size: 22px; color: var(--accent); }
.legal-content h3 { font-size: 18px; }
.legal-content p, .legal-content ul, .legal-content ol {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  word-break: break-all;
}

/* ==========================================================================
   Support Page Specifics
   ========================================================================== */
.support-hero {
  padding: 56px 0 40px;
}
.email-display-card {
  background: var(--card-bg);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.email-address-big {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  display: block;
  margin: 12px 0 20px;
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-weight: 700;
}
.footer-social-links a {
  text-decoration: none;
  color: var(--muted);
}
.footer-social-links a:hover {
  color: var(--text);
}

/* Mobile responsive fine-tuning */
@media (max-width: 600px) {
  .header-row { height: 62px; }
  .nav-links { gap: 10px; font-size: 13.5px; }
  /* Keep the header on one line on phones: no wrapped links, smaller logos. */
  .header-row { gap: 10px; }
  .nav-links a, .fh-by-tag { white-space: nowrap; }
  .brand-link img.logo-img { height: 28px; }
  .fh-brand-link { gap: 8px; }
  .fh-brand-link .fh-nav-logo { height: 30px; }
  .lang-switch { padding: 3px 10px; }
  .games-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .fh-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
