/* Xaura.net — Kutu Oyunları Özel Stilleri */

.game-box-card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 21, 40, 0.88) 0%, rgba(13, 11, 22, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

.game-box-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 24px 48px -14px rgba(139, 92, 246, 0.28), 0 0 0 1px rgba(236, 72, 153, 0.18);
}

.game-box-art {
  height: 152px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== DÖRTLÜ SIRA (CONNECT 4) ==================== */
.c4-rack {
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  border: 3px solid rgba(96, 165, 250, 0.38);
  border-radius: 1.5rem;
  padding: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), inset 0 2px 8px rgba(255, 255, 255, 0.15);
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

.c4-hover-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  height: 30px;
}

.c4-hover-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 9999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  opacity: 0.45;
}

.c4-hover-cell:hover {
  opacity: 1;
  transform: translateY(2px) scale(1.08);
}

.c4-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.c4-cell {
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 35%, #090913 60%, #05050a 100%);
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.85), 0 1px 1px rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c4-disc {
  width: 88%;
  height: 88%;
  border-radius: 9999px;
  position: relative;
  transition: transform 0.2s ease;
}

.c4-disc.p1 {
  background: radial-gradient(circle at 32% 28%, #fb7185 0%, #e11d48 58%, #9f1239 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.45), inset 0 2px 4px rgba(255,255,255,0.45), 0 0 14px rgba(244, 63, 94, 0.45);
}

.c4-disc.p2 {
  background: radial-gradient(circle at 32% 28%, #fde047 0%, #eab308 58%, #a16207 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.45), inset 0 2px 4px rgba(255,255,255,0.55), 0 0 14px rgba(250, 204, 21, 0.45);
}

.c4-disc::after {
  content: '';
  position: absolute;
  inset: 16%;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.c4-drop-anim {
  animation: c4Drop 0.32s cubic-bezier(0.25, 1.18, 0.5, 1);
}

@keyframes c4Drop {
  0% { transform: translateY(-260%); opacity: 0.7; }
  80% { transform: translateY(5%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.c4-win-disc {
  animation: winPulse 0.85s ease-in-out infinite alternate;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@keyframes winPulse {
  0% { transform: scale(0.94); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.3); }
}

/* ==================== MANGALA ==================== */
.mangala-board {
  background: linear-gradient(145deg, #2b1d16 0%, #1b120d 55%, #130c09 100%);
  border: 3px solid rgba(217, 119, 6, 0.4);
  border-radius: 1.75rem;
  padding: 14px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), inset 0 2px 12px rgba(251, 191, 36, 0.12);
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  gap: 10px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

@media (max-width: 640px) {
  .mangala-board {
    grid-template-columns: 54px 1fr 54px;
    gap: 6px;
    padding: 10px;
  }
}

.mangala-store {
  background: radial-gradient(ellipse at center, #0e0907 0%, #1c120d 100%);
  border: 2px solid rgba(251, 191, 36, 0.22);
  border-radius: 1.25rem;
  box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  min-height: 185px;
}

.mangala-pits-grid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.mangala-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .mangala-row { gap: 5px; }
}

.mangala-pit {
  background: radial-gradient(circle at 50% 45%, #0f0a08 0%, #1d130e 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.85);
  min-height: 86px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.mangala-pit.playable {
  cursor: pointer;
  border-color: rgba(168, 85, 247, 0.5);
}

.mangala-pit.playable:hover {
  transform: translateY(-3px);
  border-color: #ec4899;
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.85), 0 0 16px rgba(236, 72, 153, 0.35);
}

.mangala-pit.playable-p2 {
  cursor: pointer;
  border-color: rgba(56, 189, 248, 0.5);
}

.mangala-pit.playable-p2:hover {
  transform: translateY(3px);
  border-color: #38bdf8;
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.85), 0 0 16px rgba(56, 189, 248, 0.35);
}

.mangala-pit.touched {
  border-color: rgba(250, 204, 21, 0.65) !important;
  box-shadow: inset 0 0 14px rgba(250, 204, 21, 0.22);
}

.pebble-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  align-items: center;
  max-width: 54px;
  min-height: 36px;
}

.pebble {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.55), 0 1px 2px rgba(0,0,0,0.7);
}

@media (max-width: 640px) {
  .pebble { width: 7px; height: 7px; }
  .mangala-pit { min-height: 74px; }
}

/* ==================== YILANLAR VE MERDİVENLER ==================== */
.snl-wrapper {
  position: relative;
  max-width: 520px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 3px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.65);
  user-select: none;
}

.snl-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  width: 100%;
  height: 100%;
}

.snl-cell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 3px;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 500px) {
  .snl-cell { font-size: 8px; padding: 1px 2px; }
}

.snl-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.snl-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin: auto 0;
}

.snl-pawn {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
  transition: transform 0.18s ease;
}

@media (max-width: 500px) {
  .snl-pawn { font-size: 11px; }
}

.dice-box {
  width: 72px;
  height: 72px;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  color: #1e1b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4), inset 0 -4px 6px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.dice-box:hover {
  transform: scale(1.06) rotate(-4deg);
}

.dice-rolling {
  animation: diceShake 0.45s linear infinite;
}

@keyframes diceShake {
  0% { transform: rotate(0deg) scale(1.05); }
  25% { transform: rotate(16deg) translate(3px, -3px); }
  50% { transform: rotate(-14deg) translate(-3px, 2px); }
  75% { transform: rotate(12deg) translate(2px, 3px); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* ==================== KUTU KAPMACA (DOTS & BOXES) ==================== */
.dab-board {
  background: rgba(16, 14, 28, 0.9);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 1.5rem;
  padding: 22px;
  margin: 0 auto;
  display: inline-block;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  user-select: none;
}

.dab-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #f8fafc;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  z-index: 5;
}

.dab-hline {
  height: 14px;
  width: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dab-vline {
  width: 14px;
  height: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 480px) {
  .dab-hline { width: 42px; }
  .dab-vline { height: 42px; }
  .dab-box { width: 42px !important; height: 42px !important; }
}

.dab-hline::after {
  content: '';
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.09);
  transition: all 0.15s ease;
}

.dab-vline::after {
  content: '';
  height: 100%;
  width: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.09);
  transition: all 0.15s ease;
}

.dab-hline:not(.claimed):hover::after,
.dab-vline:not(.claimed):hover::after {
  background: rgba(236, 72, 153, 0.65);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

.dab-hline.claimed-p1::after,
.dab-vline.claimed-p1::after {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.55);
}

.dab-hline.claimed-p2::after,
.dab-vline.claimed-p2::after {
  background: linear-gradient(90deg, #38bdf8, #06b6d4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}

.dab-box {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 18px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dab-box.owner-1 {
  background: rgba(236, 72, 153, 0.24);
  color: #f472b6;
  transform: scale(0.92);
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.dab-box.owner-2 {
  background: rgba(56, 189, 248, 0.24);
  color: #38bdf8;
  transform: scale(0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* ==================== REVERSI & DAMA 8x8 TAHTALAR ==================== */
.board-8x8 {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  max-width: 450px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 10px;
  border-radius: 1.25rem;
  box-shadow: 0 24px 50px rgba(0,0,0,0.65);
  user-select: none;
}

.reversi-board {
  background: #064e3b;
  border: 3px solid rgba(16, 185, 129, 0.4);
}

.reversi-cell {
  background: linear-gradient(145deg, #065f46, #047857);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.reversi-disc {
  width: 82%;
  height: 82%;
  border-radius: 9999px;
  transition: transform 0.32s ease, background 0.25s ease;
}

.reversi-disc.p1 {
  background: radial-gradient(circle at 32% 30%, #4c1d95 0%, #1e1b4b 65%, #09090b 100%);
  border: 2px solid rgba(168, 85, 247, 0.65);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.25);
}

.reversi-disc.p2 {
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #fbcfe8 65%, #f472b6 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -2px 4px rgba(219, 39, 119, 0.35);
}

.reversi-flip {
  animation: flipDisc 0.36s ease;
}

@keyframes flipDisc {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0.08) scaleY(1.08); }
  100% { transform: scaleX(1); }
}

.reversi-hint {
  width: 34%;
  height: 34%;
  border-radius: 9999px;
  border: 2px dashed rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  transition: all 0.15s ease;
}

.reversi-cell:hover .reversi-hint {
  transform: scale(1.35);
  background: rgba(250, 204, 21, 0.45);
  border-color: #fde047;
}

/* DAMA */
.dama-board {
  background: #1e1b2e;
  border: 3px solid rgba(168, 85, 247, 0.35);
  gap: 0;
  overflow: hidden;
  padding: 6px;
}

.dama-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dama-cell.light { background: #2d2844; }
.dama-cell.dark  { background: #151221; }

.dama-piece {
  width: 80%;
  height: 80%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dama-piece.p1 {
  background: radial-gradient(circle at 32% 30%, #f472b6 0%, #db2777 65%, #831843 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.65);
}

.dama-piece.p2 {
  background: radial-gradient(circle at 32% 30%, #38bdf8 0%, #0284c7 65%, #0c4a6e 100%);
  border: 2px solid #bae6fd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.65);
}

.dama-piece.selected {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px #facc15, 0 0 18px rgba(250, 204, 21, 0.8);
}

.dama-piece.must-capture {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.65);
}

.dama-target {
  width: 38%;
  height: 38%;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.75);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
  cursor: pointer;
  animation: pulseTarget 1s infinite alternate;
}

@keyframes pulseTarget {
  from { transform: scale(0.88); }
  to { transform: scale(1.14); }
}

/* ==================== SONSUZ XOX ==================== */
.xox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 340px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 14px;
  border-radius: 1.5rem;
  background: rgba(18, 16, 30, 0.9);
  border: 2px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
  user-select: none;
}

.xox-cell {
  background: rgba(30, 26, 48, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}

.xox-cell:hover:empty {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
}

.xox-fading {
  opacity: 0.42;
  animation: fadePulse 0.9s ease-in-out infinite alternate;
}

@keyframes fadePulse {
  from { opacity: 0.3; transform: scale(0.92); }
  to { opacity: 0.62; transform: scale(0.98); }
}
