.v3-detail-poker {
  min-height: calc(100vh - 52px);
  padding: 14px 14px 28px;
  background: linear-gradient(160deg, #f6f8fb, #edf3f9 55%, #e8eef6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

.v3-detail-poker.ent.supply {
  --pd-ink: #174f8f;
  --pd-line: #b7c9dc;
  --pd-seal: #e6eef8;
}

.v3-detail-poker.ent.need {
  --pd-ink: #9b5417;
  --pd-line: #dbc2aa;
  --pd-seal: #f5e8db;
}

.v3-detail-poker.gov.supply {
  --pd-ink: #0f6c5e;
  --pd-line: #b4d4ca;
  --pd-seal: #e5f3ef;
}

.v3-detail-poker.gov.need {
  --pd-ink: #174f8f;
  --pd-line: #b7c9dc;
  --pd-seal: #e6eef8;
}

.v3-detail-poker.ind.supply {
  --pd-ink: #6a4325;
  --pd-line: #d3c0ac;
  --pd-seal: #f2e8de;
}

.v3-detail-poker.ind.need {
  --pd-ink: #a51f25;
  --pd-line: #dec0bd;
  --pd-seal: #f5e7e4;
}

.v3-detail-poker.wish {
  --pd-ink: #7c3aed;
  --pd-line: #c9b8ee;
  --pd-seal: #f0e9ff;
}

.v3-detail-card {
  min-height: 545px;
  margin: 0 auto;
  padding: 20px 18px 18px;
}

.v3-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 52% 20%, rgba(255, 255, 255, 0.96), transparent 23%),
    repeating-linear-gradient(112deg, rgba(31, 41, 55, 0.024) 0 1px, transparent 1px 5px);
}

.v3-detail-card > * {
  position: relative;
  z-index: 2;
}

.v3-detail-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.v3-detail-head.no-rank-head {
  grid-template-columns: 1fr;
  padding-top: 18px;
  text-align: center;
}

.v3-detail-rank {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 9px;
  color: var(--pd-ink);
  border-right: 1px solid var(--pd-line);
}

.v3-detail-rank-red {
  color: #c7000b;
}

.v3-detail-rank-black {
  color: #000;
}

.v3-detail-rank b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.v3-detail-rank i {
  margin-top: 8px;
  font-style: normal;
}

.v3-detail-joker {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.v3-detail-suits {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 3px;
  font-size: 15px;
  line-height: 1;
}

.v3-detail-suits .red {
  color: #c7000b;
}

.v3-detail-face-icons {
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 2px;
}

.v3-detail-face-icons img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
}

.v3-detail-title {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.v3-detail-title h2 {
  margin: 0 0 7px;
  color: #1d2430;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.24;
  letter-spacing: 0;
}

.v3-detail-title p {
  margin: 0;
  color: var(--pd-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.v3-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.v3-detail-row {
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(45, 38, 28, 0.12);
}

.v3-detail-row.wide,
.v3-detail-row.region,
.v3-detail-row.url {
  grid-column: 1 / -1;
}

.v3-detail-row span {
  display: block;
  margin-bottom: 3px;
  color: #7f8792;
  font-size: 12px;
  font-weight: 420;
}

.v3-detail-row b {
  display: block;
  color: #2f3a4c;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  text-overflow: clip;
}

.v3-detail-row.region b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v3-detail-row.url b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v3-detail-row.url a {
  color: #1d4ed8;
  text-decoration: none;
}

.v3-detail-date-line {
  display: grid;
  gap: 0;
  margin-top: 9px;
  border-top: 1px solid rgba(45, 38, 28, 0.12);
}

.v3-detail-date-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(45, 38, 28, 0.10);
}

.v3-detail-date-row span {
  color: #7f8792;
}

.v3-detail-date-row b {
  color: #2f3a4c;
  font-weight: 560;
}

.v3-detail-culture {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(45, 38, 28, 0.12);
}

.v3-local-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.v3-local-line span {
  margin-right: 2px;
  color: #7f8792;
  font-size: 12px;
}

.v3-local-line b {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  color: #2f3a4c;
  font-size: 12px;
  font-weight: 520;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--pd-line);
  border-radius: 7px;
}

.v3-local-line i {
  font-style: normal;
  font-size: 12px;
}

.v3-detail-spotlight {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12px;
  border-top: 1px solid rgba(45, 38, 28, 0.12);
}

.v3-detail-spotlight span {
  color: #7f8792;
}

.v3-detail-spotlight em {
  margin-left: 4px;
  padding: 1px 4px;
  color: #1d4ed8;
  font-style: normal;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
}

.v3-detail-spotlight a,
.v3-detail-spotlight b {
  color: #1d4ed8;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.v3-detail-contact {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 38, 28, 0.12);
}

.v3-detail-contact-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 66px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.v3-detail-contact-line span {
  color: #7f8792;
}

.v3-detail-contact-line b {
  min-width: 0;
  color: var(--pd-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v3-detail-contact .dbv {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  background: #1d4ed8;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.18);
}

.v3-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  padding: 10px;
  overflow: auto;
  background: rgba(15, 23, 42, 0.52);
}

.v3-detail-modal.open {
  display: block;
}

.v3-detail-modal-shell {
  max-width: 430px;
  margin: 18px auto 28px;
}

.v3-detail-modal-close {
  position: sticky;
  top: 8px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px auto;
  color: #fff;
  font-size: 20px;
  background: #1d4ed8;
  border: 0;
  border-radius: 50%;
}

.v3-detail-modal .v3-detail-poker {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.v3-detail-modal-lock {
  overflow: hidden;
}

@media (min-width: 860px) {
  .v3-detail-card {
    min-height: 590px;
    padding: 22px 20px 20px;
  }

  .v3-detail-title h2 {
    font-size: 24px;
  }

  .v3-detail-row b {
    font-size: 13.5px;
  }
}

@media (max-width: 390px) {
  .v3-detail-card {
    padding: 18px 14px 16px;
    border-radius: 22px;
  }

  .v3-detail-fields {
    gap: 7px 8px;
  }

  .v3-detail-contact-line {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

.v3-detail-message {
  margin: 8px 0 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}
