@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap");

:root {
  --bg-1: #fff8fc;
  --bg-2: #f6f4ff;
  --card-bg: rgba(255, 255, 255, 0.94);
  --text: #2f2440;
  --muted: #786d8a;
  --pink: #ff78b2;
  --pink-dark: #e05597;
  --purple: #9f7dff;
  --shadow: 0 18px 46px rgba(86, 53, 116, 0.14);
  --shadow-soft: 0 10px 24px rgba(86, 53, 116, 0.1);
  --success: #1f9d55;
  --danger: #e05353;
  --info: #5d6cf0;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
}

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

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

button {
  font-family: inherit;
}

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

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

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

.back-link,
.brand-badge {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.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-bg);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px 22px;
  text-align: center;
}

.game-icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 10px;
}

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

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

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

.info-box {
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef3ff, #dde7ff);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  line-height: 1.9;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.primary-btn,
.secondary-btn {
  border: none;
  min-width: 170px;
  min-height: 48px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.secondary-btn {
  background: #fff;
  color: var(--text);
}

.status-text,
.support-msg,
.msg {
  max-width: 680px;
  margin: 0 auto;
}

.status-text {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  margin-bottom: 14px;
}

.support-msg {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff1f1;
  color: var(--danger);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
  font-weight: 700;
}

.msg {
  font-size: 1.15rem;
  margin-top: 6px;
}

.box {
  border: 2px dashed rgba(120, 109, 138, 0.35);
  display: inline-block;
  font-size: 1.75rem;
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.feedback {
  margin-top: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.feedback.high {
  color: var(--danger);
}

.feedback.low {
  color: var(--info);
}

.feedback.win {
  color: var(--success);
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .game-page {
    padding: 14px 10px;
    align-items: flex-start;
  }

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

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .game-icon {
    width: 78px;
    height: 78px;
  }
}