@import url("common.css");

.menu-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(99,102,241,.22), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(234,179,8,.1), transparent 40%),
    linear-gradient(180deg, #070b14, #0c1220 60%, #0a1620);
}
.menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15,23,42,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { font-weight: 900; letter-spacing: .12em; color: #fde68a; font-size: 1.15rem; }
.menu-top-right { display: flex; gap: 10px; align-items: center; }
.pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 8px 12px; font-size: .9rem;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff;
  display: grid; place-items: center; text-decoration: none;
}

.menu-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 18px 60px;
  text-align: center;
}
.eyebrow {
  color: #93c5fd; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .75rem; margin: 0 0 10px;
}
.menu-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
}
.lead { color: var(--muted); margin: 12px auto 36px; max-width: 420px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
@media (max-width: 900px) {
  .game-grid { grid-template-columns: 1fr; }
}

.game-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 14px 0;
  flex-wrap: wrap;
}
.game-tab {
  flex: 1 1 90px;
  max-width: 160px;
  text-align: center;
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-tab:hover,
.game-tab.active {
  color: #111;
  background: linear-gradient(135deg, #fde68a, #ca8a04);
  border-color: transparent;
}
.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(165deg, rgba(30,41,59,.95), rgba(15,23,42,.98));
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251,191,36,.45);
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.game-card.cards::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(59,130,246,.2), transparent 50%);
  pointer-events: none;
}
.game-card.okey::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(234,179,8,.18), transparent 50%);
  pointer-events: none;
}
.game-card.roulette::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(34,197,94,.2), transparent 55%);
  pointer-events: none;
}
.roulette-vis {
  position: relative;
}
.mini-wheel {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(
      #c41e3a 0 20deg, #111 20deg 40deg, #c41e3a 40deg 60deg, #111 60deg 80deg,
      #15803d 80deg 90deg, #c41e3a 90deg 110deg, #111 110deg 130deg, #c41e3a 130deg 150deg,
      #111 150deg 170deg, #c41e3a 170deg 190deg, #111 190deg 210deg, #c41e3a 210deg 230deg,
      #111 230deg 250deg, #c41e3a 250deg 270deg, #111 270deg 290deg, #c41e3a 290deg 310deg,
      #111 310deg 330deg, #c41e3a 330deg 350deg, #111 350deg 360deg
    );
  border: 3px solid #f5d76e;
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
  animation: wheelSpin 8s linear infinite;
}
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
.mini-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .75rem;
  border: 2px dashed rgba(255,255,255,.5);
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
  color: #fff;
}
.mini-chip.r { background: radial-gradient(circle at 35% 30%, #fecaca, #dc2626); }
.mini-chip.g { background: radial-gradient(circle at 35% 30%, #bbf7d0, #15803d); }
.game-card .visual {
  display: flex; gap: 8px; margin-bottom: 22px; min-height: 78px; align-items: flex-end;
}
.mini-card {
  width: 48px; height: 68px; border-radius: 8px;
  background: #fff; color: #0f172a; font-weight: 900;
  display: grid; place-items: center; font-size: .85rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  transform: rotate(-6deg);
}
.mini-card:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.mini-card:nth-child(3) { transform: rotate(8deg); }
.mini-card.r { color: #dc2626; }
.mini-card.y { color: #ca8a04; }

.mini-tile {
  width: 42px; height: 58px; border-radius: 8px;
  background: #f8fafc; font-weight: 900; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
  border-bottom: 4px solid #94a3b8;
}
.mini-tile.black { color: #0f172a; border-bottom-color: #0f172a; }
.mini-tile.red { color: #dc2626; border-bottom-color: #dc2626; }
.mini-tile.blue { color: #2563eb; border-bottom-color: #2563eb; }
.mini-tile.yellow { color: #ca8a04; border-bottom-color: #ca8a04; }

.game-card h2 { margin: 0 0 8px; font-size: 1.45rem; position: relative; }
.game-card p { margin: 0; color: var(--muted); line-height: 1.45; position: relative; }
.game-card .cta {
  display: inline-block; margin-top: 18px;
  color: #fde68a; font-weight: 800; position: relative;
}

@media (max-width: 640px) {
  .menu-hero { padding: 28px 14px 100px; }
  .menu-hero h1 { font-size: 1.65rem; }
  .lead { margin-bottom: 24px; font-size: .95rem; }
  .game-grid { gap: 12px; grid-template-columns: 1fr; }
  .game-card {
    min-height: 0;
    padding: 18px 16px 16px;
  }
  .game-card .visual { min-height: 64px; margin-bottom: 14px; }
  .mini-card { width: 42px; height: 60px; }
  .menu-top { padding: 12px 12px; }
  .pill { font-size: .8rem; padding: 6px 10px; }
}
