:root {
  --pink-50: #fff0f6;
  --pink-100: #ffd6e8;
  --pink-200: #ffb3d4;
  --pink-300: #ff8ec4;
  --pink-400: #ff5eaa;
  --pink-500: #f43f9a;
  --pink-700: #b31263;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.45);
  --stroke: rgba(255, 255, 255, 0.55);
  --ink: #4a1033;
  --muted: #7a4462;
  --green: #22c55e;
  --shadow: 0 18px 50px rgba(243, 63, 154, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Vazirmatn, Vazir, Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6ea 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #ffb8de 0%, transparent 50%),
    radial-gradient(700px 400px at 50% 110%, #ffcce6 0%, transparent 50%),
    linear-gradient(180deg, #fff5fa 0%, #ffe4f2 100%);
  min-height: 100vh;
  line-height: 1.8;
}

.bg-blobs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
  position: absolute; filter: blur(40px); opacity: .55; border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}
.blob.a { width: 340px; height: 340px; background: #ff8ec4; top: 8%; right: 8%; }
.blob.b { width: 260px; height: 260px; background: #ffc2e0; bottom: 12%; left: 6%; animation-delay: -4s; }
.blob.c { width: 200px; height: 200px; background: #ffa8d4; top: 46%; left: 42%; animation-delay: -7s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.06); }
}

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 22px 18px 40px; }

.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: 28px;
}

header.hero {
  padding: 28px 26px 24px;
  text-align: center;
  margin-bottom: 22px;
}
.logo-mark {
  width: 72px; height: 72px; margin: 0 auto 12px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #ffd0e8);
  box-shadow: 0 10px 24px rgba(244,63,154,.25);
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin-top: 4px; }

.status-card { padding: 22px; text-align: center; margin-bottom: 22px; }
.online-flag {
  display: inline-flex; align-items: center; gap: 8px;
  color: #15803d; font-weight: 800; background: rgba(34,197,94,.14);
  border: 1px solid rgba(34,197,94,.28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 10px;
}
.online-flag .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulse 1.6s infinite;
}
.online-flag.off { color: #b91c1c; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.28); }
.online-flag.off .dot { background: #ef4444; animation: none; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}

.players {
  font-size: 1.15rem; margin: 8px 0 16px;
}
.players b { font-size: 1.6rem; color: var(--pink-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  font-weight: 700; border-radius: 16px; padding: 12px 18px; transition: .2s transform, .2s box-shadow;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink {
  color: #fff;
  background: linear-gradient(180deg, #ff78bb, #f43f9a);
  box-shadow: 0 10px 22px rgba(244,63,154,.35);
}
.btn-ghost {
  color: var(--pink-700);
  background: rgba(255,255,255,.45);
  border: 1px solid var(--stroke);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

section h2 {
  font-size: 1.25rem; margin: 8px 4px 14px;
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}

.card {
  overflow: hidden; display: flex; flex-direction: column;
}
.card img {
  width: 100%; height: 168px; object-fit: cover; display: block;
  background: #ffd6e8;
}
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge {
  align-self: flex-start; font-size: .75rem; font-weight: 800;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(244,63,154,.12); color: var(--pink-700);
}
.badge.tutorial { background: rgba(168,85,247,.14); color: #7e22ce; }
.card h3 { font-size: 1.05rem; line-height: 1.6; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .btn { width: 100%; margin-top: 6px; }

footer {
  text-align: center; margin-top: 28px; color: var(--muted); font-size: .9rem; padding: 10px;
}

.panel { padding: 20px; margin-bottom: 22px; }
.panel h2 { margin-bottom: 12px; }
form.stack { display: grid; gap: 10px; }
label { font-weight: 700; font-size: .9rem; }
input, textarea, select {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid rgba(244,63,154,.22);
  background: rgba(255,255,255,.7);
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

.admin-item {
  display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 8px;
}
.admin-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.admin-item .meta { flex: 1; }
.flash { background: rgba(34,197,94,.15); color: #166534; padding: 8px 12px; border-radius: 12px; margin-bottom: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
