/* AUREA Portal — /goods (Character goods sets, user level rewards).
   Page-specific styles only; shell, cards (.rw-card), pills (.cs-pill)
   and buttons come from styles.css / rewards.css / ai-local.css. */

.gd-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.55);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.16), rgba(179, 136, 255, 0.14));
  color: #FFD700;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.gd-status {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(179, 136, 255, 0.55);
  background: linear-gradient(160deg, rgba(138, 43, 226, 0.16), rgba(10, 15, 30, 0.55));
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.12), 0 0 24px rgba(138, 43, 226, 0.22);
}
.gd-status h3 { margin: 0 0 6px; font-size: 1.05rem; color: #E9DFFF; }
.gd-status p { margin: 0; color: var(--muted, #A7ACC2); line-height: 1.65; }

.gd-sets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 20px;
}
@media (min-width: 900px) {
  /* One dream set only (Lv.99) — keep it wide and centered. */
  .gd-sets { grid-template-columns: minmax(0, 640px); justify-content: center; }
}

/* --- Lv.99 dream perks (honors list) --- */
.gd-dream-t { margin: 30px 0 0; font-size: 1.15rem; color: #E9DFFF; }
.gd-dreams {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .gd-dreams { grid-template-columns: repeat(2, 1fr); }
}
.gd-dream {
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.07), rgba(10, 15, 30, 0.6));
  padding: 16px 18px 18px;
}
.gd-dream { overflow: hidden; }
.gd-dream-img {
  display: block;
  width: calc(100% + 36px);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -16px -18px 14px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.35);
}
.gd-dream-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-dream-head h4 { margin: 0; font-size: 1.02rem; flex: 1; min-width: 140px; }
.gd-dream p { margin: 8px 0 0; }

.gd-set {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #39415F;
  background: linear-gradient(170deg, rgba(23, 28, 51, 0.92), rgba(10, 15, 30, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.10), 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.gd-set-top { border-color: rgba(255, 215, 0, 0.65); box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35), 0 0 28px rgba(255, 215, 0, 0.16); }
.gd-set img { width: 100%; height: auto; display: block; }
.gd-set-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gd-set-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-lv {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  font-size: 1.7rem;
  line-height: 1;
  background: linear-gradient(180deg, #FFE97A, #E8A90C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gd-set-head h3 { margin: 0; font-size: 1.08rem; flex: 1; min-width: 120px; }
.gd-items {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.30);
  background: rgba(255, 215, 0, 0.06);
  color: #F2E9C9;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gd-cast {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 700px) { .gd-cast { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gd-cast { grid-template-columns: repeat(4, 1fr); } }

.gd-char {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #39415F;
  background: linear-gradient(170deg, rgba(23, 28, 51, 0.92), rgba(10, 15, 30, 0.94));
  box-shadow: 0 0 0 1px rgba(179, 136, 255, 0.14);
}
.gd-char img { width: 100%; height: auto; display: block; }
.gd-char figcaption { padding: 10px 12px 12px; font-size: 0.88rem; line-height: 1.55; color: var(--muted, #A7ACC2); }
.gd-role { display: inline-block; margin-top: 6px; padding: 2px 10px; border: 1px solid rgba(240, 201, 90, 0.55); border-radius: 999px; background: rgba(240, 201, 90, 0.10); color: #F0C95A; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }

/* --- Want vote (patch #181) --- */
.gd-vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 700px) { .gd-vote-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gd-vote-grid { grid-template-columns: repeat(4, 1fr); } }

.gd-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #39415F;
  background: linear-gradient(170deg, rgba(23, 28, 51, 0.92), rgba(10, 15, 30, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
}
.gd-item img { width: 100%; height: auto; display: block; }
.gd-item-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gd-item-body h3 { margin: 0; font-size: 0.98rem; line-height: 1.45; }
.gd-item-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.gd-want-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: rgba(255, 215, 0, 0.07);
  color: #FFE97A;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.gd-want-btn:hover:not(:disabled) { background: rgba(255, 215, 0, 0.16); }
.gd-want-btn:active:not(:disabled) { transform: scale(0.96); }
.gd-want-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.gd-want-btn .gd-want-heart { color: #FF5D7A; font-size: 1rem; line-height: 1; }
.gd-want-btn.on {
  background: linear-gradient(180deg, #FFE97A, #E8A90C);
  color: #241A02;
  border-color: #FFE97A;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}
.gd-want-btn.on .gd-want-heart { color: #D81B60; }

.gd-want-count { color: var(--muted, #A7ACC2); font-size: 0.9rem; }
.gd-want-num { color: #FFD700; font-weight: 800; font-size: 1rem; }

.gd-vote-msg {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.06);
  color: #F2E9C9;
  line-height: 1.6;
}
.gd-vote-link { color: #FFD700; text-decoration: underline; font-weight: 700; }

/* Goods strip (image enrichment 2026-12-03) */
.gd-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 4px}
.gd-strip img{width:100%;height:auto;display:block;border-radius:12px;border:1px solid var(--border)}
@media(max-width:640px){.gd-strip{grid-template-columns:repeat(3,1fr);gap:8px}}

/* Official manga link card (/goods #manga): the cover is a tall
   portrait page — crop it to a banner-like strip on the card. */
#manga .gd-set { max-width: 760px; }
#manga .gd-set img { max-height: 430px; object-fit: cover; object-position: top center; }
/* AUREA Portal — /goods stage slide (patch #250) card additions.
   Appended to goods.css on integration; kept here as the module's
   canonical copy. Stage colors: 0 muted / 1 purple / 2 gold /
   3 green-gold. Neon frame language matches the /goods cards. */

.gd-stage-note { margin-top: 4px; }

.gd-stage-pill {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--border, #39415F);
  color: var(--muted, #A7ACC2);
  background: rgba(255, 255, 255, 0.04);
}
.gd-stage-pill[data-stage="1"] {
  color: #D8B4FE;
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}
.gd-stage-pill[data-stage="2"] {
  color: #FFD700;
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.gd-stage-pill[data-stage="3"] {
  color: #0A0F1E;
  background: linear-gradient(135deg, #FFD700, #7CFC9A);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.gd-stage-progress { display: flex; flex-direction: column; gap: 6px; }
.gd-stage-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border, #39415F);
  overflow: hidden;
}
.gd-stage-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #A855F7, #FFD700);
  transition: width 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .gd-stage-fill { transition: none; }
}
.gd-stage-next {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted, #A7ACC2);
}
