:root{
  --bg-1:#fff8fc;
  --bg-2:#f6f4ff;
  --card:rgba(255,255,255,.92);
  --text:#2f2440;
  --muted:#786d8a;
  --pink:#ff78b2;
  --pink-dark:#e05597;
  --purple:#9f7dff;
  --blue:#79d0ff;
  --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;
  width:100%;
  padding:20px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

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

.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:24px;
}

.game-header{
  margin-bottom:18px;
}

.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;
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
  max-width:640px;
}

.canvas-panel{
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(255,255,255,.55);
  border-radius:26px;
  padding:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
  overflow:hidden;
}

canvas{
  display:block;
  width:100%;
  max-width:620px;
  aspect-ratio:620 / 480;
  height:auto;
  background:url('https://s2js.com/img/etc/flappyback.png') center/100% 100% no-repeat;
  border:1px solid rgba(10,60,218,.18);
  border-radius:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

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

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

  .canvas-panel{
    padding:10px;
    border-radius:18px;
  }

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

  canvas{
    border-radius:14px;
  }
}