.cg-stock-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
@media (max-width: 720px) {
  .cg-stock-nav { display: none; }
}
@media (min-width: 900px) {
  .v2-wrap.cg-stock-page {
    display: block;
    max-width: 880px;
  }
}
.cg-stock-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.cg-stock-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .cg-stock-grid { grid-template-columns: 1fr 1fr; }
}
.cg-stock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.cg-ch-face {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cg-ch-face img,
.cg-ch-face .cg-ch-face-svg {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: transparent;
}
.cg-ch-glyph {
  font-size: 34px;
  line-height: 1;
}
.cg-stock-hero {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #0b1220;
  display: block;
  border-radius: 16px;
}
.cg-stock-card h2,
.cg-stock-body h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.cg-stock-pad { min-width: 0; flex: 1; }
.cg-ch-place {
  margin: 3px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cg-stock-prompt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cg-stock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.cg-stock-tags span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Cast — ID card + list faces + where-to-use (detail bottom only) */
.cg-ch-face-svg {
  display: block;
}
.cg-cast-card {
  border-color: color-mix(in srgb, var(--cast-accent, var(--accent)) 35%, var(--line));
}
.cg-cast-card .cg-ch-face {
  background: color-mix(in srgb, var(--cast-accent, var(--accent)) 12%, rgba(0, 0, 0, 0.35));
  border-color: color-mix(in srgb, var(--cast-accent, var(--accent)) 40%, var(--line));
}
.cg-cast-card-icon {
  margin-right: 2px;
}
.cg-cast-rebot {
  margin: 4px 0 0;
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--warm, #fbbf24);
}

.cg-idcard {
  position: relative;
  text-align: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cast-accent, var(--accent)) 18%, #0b1220), #0b1220 55%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--cast-accent, var(--accent)) 45%, var(--line));
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 0 0 1px var(--cast-glow, transparent), 0 16px 40px rgba(0, 0, 0, 0.35);
  margin: 0 0 14px;
  overflow: hidden;
}
.cg-idcard::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--cast-accent, var(--accent)) 35%, transparent);
  pointer-events: none;
}
.cg-idcard-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid color-mix(in srgb, var(--cast-accent, var(--accent)) 55%, var(--line));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.cg-idcard-photo .cg-ch-face-svg {
  width: 120px;
  height: 120px;
}
.cg-idcard-glyph {
  font-size: 56px;
}
.cg-idcard-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--cast-accent, var(--accent));
}
.cg-idcard-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.cg-idcard-role {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: var(--cast-accent, var(--accent));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cg-idcard-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 0;
}
.cg-idcard-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.32);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.cg-idcard-chip .heart {
  color: #fb7185;
}
.cg-idcard-rebot {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 10px 0 0;
  font-family: Orbitron, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--warm, #fbbf24);
  text-decoration: none;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.28);
}
a.cg-idcard-rebot:hover {
  border-color: rgba(251, 191, 36, 0.7);
}
.cg-idcard-blurb {
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.cg-idcard-mood {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cg-cast-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.cg-cast-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--text);
}
.cg-cast-type img {
  width: 40px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
}
.cg-cast-type.cat-chat { border-color: rgba(56, 189, 248, 0.35); }
.cg-cast-type.cat-education { border-color: rgba(163, 230, 53, 0.35); }
.cg-cast-type.cat-game { border-color: rgba(251, 113, 133, 0.35); }
.cg-cast-type.cat-roleplay { border-color: rgba(196, 181, 253, 0.35); }
.cg-cast-type.cat-rebotme { border-color: rgba(251, 191, 36, 0.4); }
@media (max-width: 560px) {
  .cg-cast-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cg-idcard {
    padding: 18px 14px 16px;
  }
  .cg-idcard-photo {
    width: 120px;
    height: 120px;
  }
  .cg-idcard-photo .cg-ch-face-svg {
    width: 108px;
    height: 108px;
  }
}
