/* ==========================================================================
 * IMAGE GAME (이미지 게임 / 图像联想游戏) — Surreal Gallery & Broadcast Voting Stage
 * ========================================================================== */

.ig-arena {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Garnet Life Strip */
.ig-life-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--tg-radius-md);
  background: linear-gradient(145deg, rgba(18, 19, 34, 0.94), rgba(8, 10, 17, 0.98));
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow-card);
}

@media (max-width: 720px) {
  .ig-life-bar {
    grid-template-columns: 1fr;
  }
}

.ig-cand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--tg-border-subtle);
}

.ig-cand-card.is-right {
  flex-direction: row-reverse;
  text-align: right;
}

.ig-cand-card.is-tester {
  border-color: rgba(236, 72, 153, 0.65);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(228, 185, 91, 0.08));
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.22);
}

.ig-gems-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ig-gem-slot {
  width: 14px;
  height: 17px;
  clip-path: polygon(50% 0%, 100% 30%, 82% 100%, 18% 100%, 0% 30%);
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--tg-ease), opacity 0.25s;
}

.ig-gem-slot.is-lit {
  background: linear-gradient(145deg, #ff7a93 0%, #e11d48 48%, #7f081e 100%);
  box-shadow: 0 0 12px rgba(255, 46, 84, 0.8);
}

/* Panelist Strip */
.ig-panelists-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .ig-panelists-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ig-panelist-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(14, 17, 29, 0.86);
  border: 1px solid var(--tg-border-subtle);
  font-size: 12px;
}

.ig-panelist-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #f9a8d4;
  font-size: 13px;
  flex: none;
}

/* Clue Spotlight Banner */
.ig-clue-banner {
  padding: 16px 20px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(236, 72, 153, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(22, 19, 38, 0.96), rgba(10, 12, 20, 0.98));
  border: 1.5px solid rgba(236, 72, 153, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(236, 72, 153, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ig-clue-quote {
  font-family: var(--tg-font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--tg-gold-bright);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(228, 185, 91, 0.45);
}

/* Surreal Art Card Frame */
.ig-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .ig-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ig-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ig-art-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(175deg, #1a1d30 0%, #0a0c14 100%);
  border: 1.5px solid var(--tg-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
  transition: transform 0.2s var(--tg-ease), border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.ig-art-card.is-clickable {
  cursor: pointer;
}

.ig-art-card.is-clickable:hover:not(:disabled) {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--tg-gold-bright);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(236, 72, 153, 0.35);
}

.ig-art-card.is-selected {
  border-color: #f472b6 !important;
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.75), 0 16px 34px rgba(236, 72, 153, 0.45);
}

.ig-art-card.is-tester-card {
  border-color: var(--tg-gold-bright) !important;
  box-shadow: 0 0 0 2px rgba(255, 240, 194, 0.85), 0 0 34px rgba(228, 185, 91, 0.55);
}

.ig-art-card.is-mine-locked {
  opacity: 0.72;
  border-style: dashed;
}

.ig-slot-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(8, 10, 18, 0.86);
  border: 1px solid rgba(228, 185, 91, 0.5);
  font-family: var(--tg-font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--tg-gold-bright);
}

.ig-art-canvas {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
}

.ig-art-meta {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-art-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.ig-mini-tag {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--tg-ink-muted);
}

/* Live Broadcast Vote Tally Bar */
.ig-vote-tally {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-tally-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ig-tally-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #f5c451);
  transition: width 0.55s var(--tg-ease);
}

.ig-voter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.ig-voter-chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fbcfe8;
}

.ig-voter-chip.is-rival {
  background: rgba(228, 185, 91, 0.24);
  border-color: rgba(228, 185, 91, 0.65);
  color: var(--tg-gold-bright);
}

/* Clue Composer Panel */
.ig-composer {
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 14, 24, 0.92);
  border: 1px solid var(--tg-border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.ig-prompt-pill {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tg-border-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}

.ig-prompt-pill:hover {
  border-color: var(--tg-gold);
  background: rgba(228, 185, 91, 0.08);
  transform: translateY(-1px);
}

.ig-prompt-pill.is-selected {
  border-color: #f472b6;
  background: rgba(236, 72, 153, 0.18);
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.28);
}

.ig-verdict-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 27, 58, 0.18), rgba(14, 17, 29, 0.94));
  border: 1px solid var(--tg-border-garnet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
