/* Live portfolio and game detail styles */
.portfolio-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: rgba(232, 213, 183, .78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.live-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.live-property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.5rem;
  border: 1px solid rgba(212, 160, 23, .24);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(45, 10, 10, .94), rgba(10, 10, 14, .98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .32);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.live-property-card:hover,
.live-property-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, .75);
  box-shadow: 0 24px 70px rgba(139, 0, 0, .34);
  outline: none;
}

.live-property-visual,
.detail-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: url("assets/properties/portfolio-sprite.svg") !important;
  background-repeat: no-repeat !important;
  background-size: 500% 100% !important;
  background-color: #0b0b0f !important;
}

.live-property-visual {
  height: 145px;
  flex: 0 0 145px;
  margin-bottom: 1.25rem;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.live-property-visual span {
  display: none !important;
}

.live-property-visual::before,
.detail-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .28) 49%, rgba(0, 0, 0, .03) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .58) 0%, transparent 50%);
  pointer-events: none;
}

.live-property-visual::after,
.detail-art::after {
  content: var(--property-logo) "\A" var(--property-subtitle);
  position: absolute;
  left: clamp(14px, 4%, 34px);
  bottom: clamp(14px, 7%, 34px);
  z-index: 2;
  max-width: 82%;
  padding-left: 12px;
  border-left: 5px solid var(--property-accent, #d4a017);
  color: #fff;
  white-space: pre;
  text-align: left;
  font-family: "Arial Black", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(1.05rem, 2.25vw, 2.1rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: .035em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .95);
  pointer-events: none;
}

.live-property-visual::after {
  left: 13px;
  bottom: 13px;
  max-width: 86%;
  padding-left: 9px;
  border-left-width: 4px;
  font-size: clamp(.82rem, 1.25vw, 1.12rem);
  line-height: .98;
}

.theme-soccer {
  --property-accent: #d6a935;
  --property-logo: "SOCCER DYNASTY";
  --property-subtitle: "CROWN OF CLUBS";
  background-position: 0% 50% !important;
}

.theme-sean {
  --property-accent: #3cc8ff;
  --property-logo: "SUPER SEAN 007";
  --property-subtitle: "LEGEND OF THE SEVEN GEMS";
  background-position: 25% 50% !important;
}

.theme-chart {
  --property-accent: #e754ff;
  --property-logo: "CHART EMPIRE";
  --property-subtitle: "THE MUSIC LABEL MANAGER";
  background-position: 50% 50% !important;
}

.theme-mochi {
  --property-accent: #ff7dce;
  --property-logo: "MOCHI MANGO ARCADE";
  --property-subtitle: "PLAY · SMILE · REPEAT";
  background-position: 75% 50% !important;
}

.theme-cozy {
  --property-accent: #6fbf8b;
  --property-logo: "COZY ARCADE GAMES";
  --property-subtitle: "RELAXING BROWSER PLAY";
  background-position: 100% 50% !important;
}

.theme-sean::before {
  background:
    linear-gradient(270deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .16) 53%, rgba(0, 0, 0, .03) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .5) 0%, transparent 50%);
}

.theme-sean::after {
  right: clamp(14px, 4%, 34px);
  left: auto;
  padding-right: 12px;
  padding-left: 0;
  border-right: 5px solid var(--property-accent);
  border-left: 0;
  text-align: right;
}

.live-property-visual.theme-sean::after {
  right: 13px;
  padding-right: 9px;
  border-right-width: 4px;
}

.theme-mochi::before {
  background:
    linear-gradient(90deg, rgba(0, 28, 74, .66) 0%, rgba(0, 28, 74, .12) 58%, transparent 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .38) 0%, transparent 48%);
}

.theme-cozy::before {
  background:
    linear-gradient(90deg, rgba(61, 31, 12, .62) 0%, rgba(61, 31, 12, .09) 58%, transparent 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .38) 0%, transparent 48%);
}

.live-badge {
  align-self: flex-start;
  margin-bottom: .75rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #86efac;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.live-property-card h3 {
  margin: 0 0 .65rem;
  color: #f6e4bd;
  font-size: 1.35rem;
}

.live-property-card p {
  flex: 1;
  color: rgba(232, 213, 183, .72);
  line-height: 1.65;
}

.property-link {
  margin-top: 1rem;
  color: #d4a017;
  font-weight: 700;
  letter-spacing: .04em;
}

.portfolio-note {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(212, 160, 23, .2);
  border-radius: 14px;
  background: rgba(212, 160, 23, .05);
  color: rgba(232, 213, 183, .72);
  line-height: 1.7;
}

.detail-body {
  min-height: 100vh;
  background: #090909;
  color: #e8d5b7;
}

.detail-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 160, 23, .2);
}

.detail-nav a {
  color: #d4a017;
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 3.5rem;
}

.detail-kicker {
  color: #d4a017;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail-hero h1 {
  margin: .8rem 0 1.2rem;
  color: #fff1d0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 1.02;
}

.detail-lead {
  max-width: 760px;
  color: rgba(232, 213, 183, .78);
  font-size: 1.18rem;
  line-height: 1.8;
}

.detail-art {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid rgba(212, 160, 23, .3);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  font-size: 0;
  line-height: 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.detail-btn-primary {
  border: 1px solid rgba(212, 160, 23, .45);
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: #ffe7ac;
}

.detail-btn-secondary {
  border: 1px solid rgba(212, 160, 23, .35);
  color: #d4a017;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

.detail-panel {
  padding: 1.6rem;
  border: 1px solid rgba(212, 160, 23, .2);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(45, 10, 10, .68), rgba(17, 17, 20, .9));
}

.detail-panel h2 {
  margin-top: 0;
  color: #f6e4bd;
}

.detail-panel p,
.detail-panel li {
  color: rgba(232, 213, 183, .75);
  line-height: 1.75;
}

.detail-panel ul {
  padding-left: 1.15rem;
}

.detail-faq {
  padding: 1rem 0 5rem;
}

.detail-faq details {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212, 160, 23, .16);
}

.detail-faq summary {
  color: #f6e4bd;
  font-weight: 700;
  cursor: pointer;
}

.detail-faq p {
  color: rgba(232, 213, 183, .72);
  line-height: 1.7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.related-card {
  display: block;
  padding: 1rem;
  border: 1px solid rgba(212, 160, 23, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: #d4a017;
  text-decoration: none;
}

.detail-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(212, 160, 23, .16);
  color: rgba(232, 213, 183, .55);
  font-size: .9rem;
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .detail-art::after {
    max-width: 88%;
    font-size: clamp(1rem, 6vw, 1.85rem);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .live-property-grid {
    grid-template-columns: 1fr;
  }
}
