: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;
  --mint:#7adbc7;
  --board:#5b48f5;
  --board-light:#dbe3ff;
  --player-1:#43c97a;
  --player-2:#ef5b8f;
  --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;
}

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%, 940px);
}

.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;
}

.game-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}

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

.player-panel{
  background:linear-gradient(180deg,#dbe3ff,#cdd9ff);
  border:3px solid var(--board);
  border-radius:24px;
  padding:18px 16px;
  text-align:center;
  box-shadow:var(--shadow-soft);
}

#player-type{
  margin:0;
  color:var(--board);
  font-size:22px;
  font-weight:800;
}

.player-dots{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:12px;
}

.dot{
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-block;
}

.dot-player-1{background:var(--player-1)}
.dot-player-2{background:var(--player-2)}

.board-shell{
  width:min(100%, 690px);
  margin-inline:auto;
}

.column-controls{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  margin-bottom:10px;
}

.drop-btn{
  min-height:48px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow-soft);
}

.drop-btn:hover{
  transform:translateY(-1px);
}

.grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:8px;
  background:var(--board);
  border:4px solid var(--board-light);
  border-radius:22px;
  padding:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.cell{
  aspect-ratio:1 / 1;
  background:var(--board-light);
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.disc{
  width:72%;
  height:72%;
  border-radius:50%;
  background:transparent;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.08);
}

.disc.player-1{
  background:var(--player-1);
}

.disc.player-2{
  background:var(--player-2);
}

.actions{
  display:flex;
  justify-content:center;
  margin-top:20px;
}

.primary-btn{
  border:0;
  min-height:50px;
  padding:0 22px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  color:#fff;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow-soft);
}

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

@media (max-width: 820px){
  .game-header{
    grid-template-columns:1fr;
  }

  .player-panel{
    width:100%;
  }
}

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

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

  .column-controls{
    gap:5px;
  }

  .drop-btn{
    min-height:40px;
    font-size:16px;
    border-radius:12px;
  }

  .grid{
    gap:5px;
    padding:7px;
    border-radius:18px;
  }

  .cell{
    border-radius:12px;
  }

  #player-type{
    font-size:18px;
  }

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