:root{
  --bg-1:#fff8fc;
  --bg-2:#f6f4ff;
  --card:rgba(255,255,255,.9);
  --text:#2f2440;
  --muted:#786d8a;
  --pink:#ff78b2;
  --pink-dark:#e05597;
  --purple:#9f7dff;
  --blue:#79d0ff;
  --mint:#7adbc7;
  --shadow:0 18px 46px rgba(86,53,116,.14);
  --shadow-soft:0 10px 24px rgba(86,53,116,.10);
}

*{box-sizing:border-box}

html{direction:rtl}

body{
  margin:0;
  min-height:100vh;
  font-family:Tahoma, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,203,227,.55), transparent 28%),
    radial-gradient(circle at bottom left, rgba(215,223,255,.72), transparent 34%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

a{
  color:inherit;
  text-decoration:none;
}

.game-page{
  min-height:100vh;
  padding:20px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.game-shell{
  width:min(100%, 1100px);
}

.game-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.back-link,
.brand-badge{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-soft);
  font-weight:700;
}

.back-link{color:var(--muted)}

.brand-badge{
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
}

.game-card{
  background:var(--card);
  box-shadow:var(--shadow);
  border-radius:32px;
  padding:22px;
  overflow:hidden;
}

.game-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.title-wrap{
  min-width:0;
}

.game-kicker{
  margin:0 0 8px;
  color:var(--pink-dark);
  font-size:14px;
  font-weight:800;
}

h1{
  margin:0 0 8px;
  font-size:clamp(34px, 6vw, 58px);
  line-height:1.08;
}

.game-desc{
  margin:0;
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
  max-width:680px;
}

.game-tip{
  min-width:130px;
  padding:14px 16px;
  border-radius:20px;
  background:linear-gradient(135deg,#8f7a66,#6f5e4f);
  color:#fff;
  box-shadow:0 12px 24px rgba(111,94,79,.28);
  text-align:center;
}

.tip-title{
  font-size:13px;
  font-weight:700;
  opacity:.92;
  margin-bottom:6px;
}

.tip-text{
  font-size:18px;
  font-weight:800;
}

.game-stage{
  position:relative;
  width:100%;
  min-height:420px;
  border-radius:28px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(121,208,255,.22), rgba(122,219,199,.10)),
    linear-gradient(180deg, #2a2e3f, #1d2030);
  box-shadow:inset 0 2px 12px rgba(255,255,255,.06);
}

svg{
  display:block;
  width:100%;
  height:auto;
  min-height:420px;
}

.game-note{
  margin:16px 0 0;
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
  text-align:center;
}

/* تحسين النص الإنجليزي القديم إن بقي */
span{
  font-family:Tahoma, Arial, sans-serif;
}

/* جوال */
@media (max-width: 768px){
  .game-page{
    padding:14px 10px;
    align-items:flex-start;
  }

  .game-card{
    padding:16px;
    border-radius:24px;
  }

  .game-header{
    flex-direction:column;
    align-items:stretch;
  }

  .game-tip{
    min-width:100%;
  }

  .game-stage{
    min-height:280px;
    border-radius:22px;
  }

  svg{
    min-height:280px;
  }

  .game-note,
  .game-desc{
    font-size:14px;
  }
}