@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400&display=swap');

body {
  margin: 0;
  background: #3d3d3d;
  color: white;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#game-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hand {
  display: flex;
  gap: 5px;
  justify-content: center;
}

#middle-area {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

#draw-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#draw-pile,
#draw-pile-2 {
  width: 100px;
  height: 70px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s ease;
}

#draw-pile:hover,
#draw-pile-2:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

#player1-hand img {
  width: 70px;
  cursor: grab;
}

#play-area {
  position: relative;
  height: 790px;
  width: 1050px;
  background: #2a2a2a;
  overflow: hidden;

  /* new depth & rounding */
  border-radius: 16px;
  box-shadow:
    0 8px 16px rgba(0,0,0,0.7),    /* outer deep shadow */
    inset 0 2px 4px rgba(255,255,255,0.1); /* subtle inner highlight */
}

#play-area .table-card {
  position: absolute;
  width: 70px;
  cursor: grab;
  pointer-events: auto;
}

/* Overlay for card preview */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#overlay img {
  max-width: 300%;
  max-height: 300%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: pointer;
}

/* Red dot */
.red-dot {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 30% 30%, #a81f1f, #ff0000);
  border-radius: 50%;
  position: absolute;
  cursor: grab;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255,255,255,0.2);
}

/* Hexagon */
.hexagon {
  width: 20px;
  height: 20px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(145deg, #666, #444);
  border: 1px solid #333;
  color: white;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: grab;
  z-index: 1000;
  user-select: none;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
  font-family: 'Orbitron', monospace;
}

/* Square */
.square {
  width: 20px;
  height: 20px;
  background: linear-gradient(145deg, #666, #444);
  border: 1px solid #333;
  color: white;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  cursor: grab;
  z-index: 1000;
  user-select: none;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
  font-family: 'Orbitron', monospace;   /* ultimate fallback */
}


/* Triangle */
.triangle {
  width: 20px; height: 20px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(145deg, #666, #444);
  border: 1px solid #333;
  /* reuse your other square styling */
  color: white; font-size: 12px;
  display: flex; justify-content: center; align-items: center;
  position: absolute; cursor: grab; z-index: 1000;
  user-select: none;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6),
              inset 0 1px 1px rgba(255,255,255,0.1);
  font-family: 'Orbitron', monospace;
}

/* Diamond */
.diamond {
  width: 20px; height: 20px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  /* same styling as .triangle/.square */
  background: linear-gradient(145deg, #666, #444);
  border: 1px solid #333; color: white; font-size: 12px;
  display:flex;justify-content:center;align-items:center;
  position:absolute;cursor:grab;z-index:1000;user-select:none;
  box-shadow:2px 2px 4px rgba(0,0,0,0.6),
             inset 0 1px 1px rgba(255,255,255,0.1);
  font-family:'Orbitron',monospace;
}

/* Decagon (10‑sided) */
.decagon {
  width: 20px; height: 20px;
  clip-path: polygon(
    50% 0%, 81% 6%, 100% 38%, 100% 62%, 81% 94%,
    50% 100%, 19% 94%, 0% 62%, 0% 38%, 19% 6%
  );
  background: linear-gradient(145deg, #666, #444);
  border: 1px solid #333; color: white; font-size: 12px;
  display:flex;justify-content:center;align-items:center;
  position:absolute;cursor:grab;z-index:1000;user-select:none;
  box-shadow:2px 2px 4px rgba(0,0,0,0.6),
             inset 0 1px 1px rgba(255,255,255,0.1);
  font-family:'Orbitron',monospace;
}





/* Startup overlay */
#startup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#startup-content {
  text-align: center;
  color: white;
}
#startup-content img {
  max-width: 300px;
  margin-bottom: 20px;
}
#startup-content h1 {
  margin: 0 0 10px;
}
#startup-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
#startup-content li {
  margin: 5px 0;
}
#startup-dismiss {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
}

/* Help button (‘?’) in play area */
#help-button {
  position: absolute;
  bottom: 10px;
  left: 15px;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.85);
  color: black;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 8001;
  user-select: none;
}

/* ─── New draggable images ───────────────────────────────── */
.draggable-image {
  width: 20px;
  height: 34px;
  position: absolute;
  cursor: grab;
  z-index: 1000;
}

/* ─── Overlay for enlarged CS‑images ───────────────────── */
#image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9200;
}
#image-overlay img {
  /* 200% of your scaled‑down CS size (226×116 → 452×232) */
  width: 678px;
  height: 348px;
}


/* Ensure all polygons sit on top of everything */
.triangle,
.square,
.hexagon,
.diamond,
.decagon {
  z-index: 7500 !important;
}

/* 2pt white border around all m‑column images */
.m-image {
  border: 1pt solid #ab06b7;
  box-sizing: border-box;
  z-index: 8001;
}


/* 1pt gray border around all C‑column images */
.c-image {
  border: 1pt solid #ff0000;
  box-sizing: border-box;
  z-index: 7100;
}

/* ─── CC images, rotated 90° ───────────────── */
.cc-image {
  width:  80px;
  height: 20px;
  border: 1pt solid #ff0000;
  box-sizing: border-box;
  position: absolute;
  cursor: grab;
  z-index: 7100;
}

/* ─── Cold images row ───────────────────── */
.cold-image {
  width:    65px;
  height:   20px;
  border: 1pt solid #007bff;
  box-sizing: border-box;
  position: absolute;
  cursor:   grab;
  z-index: 7100;
}

/* ─── Hot images row ───────────────────── */
.hot-image {
  width:    65px;
  height:   20px;
  border: 1pt solid #feb434;
  box-sizing: border-box;
  position: absolute;
  cursor:   grab;
  z-index: 7100;
}




/* 1pt gray border around all D‑column images */
.d-image {
  border: 1pt solid #06a210;
  box-sizing: border-box;
  z-index: 8100;
}

.r-image {
  border: 1pt solid #00ffff;
  box-sizing: border-box;
  z-index: 7200;
}


/* full‑screen overlay for back00 click */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}
.overlay img {
  /* show at actual pixel size */
  width: 802px;
  height: 651px;
}
