@import url("../obaxua-showroom-ring/styles.css?v=obaxua-main-20261111-1");

.area-count {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.portal-card {
  width: clamp(235px, 29vw, 430px);
  height: min(67vh, 660px);
  overflow: hidden;
  border-radius: clamp(22px, 2.4vw, 34px);
  background: #d8d0c2;
  box-shadow: 0 24px 48px rgba(34, 24, 14, 0.14);
}

.portal-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 10, 8, 0.07) 58%, rgba(12, 10, 8, 0.86) 100%);
  filter: none;
  transform: none;
}

.portal-card img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--portal-focus, center);
  filter: saturate(0.76) contrast(0.96) brightness(0.98);
  transform: scale(var(--portal-zoom, 1.015));
  transition: filter 380ms ease, transform 720ms cubic-bezier(0.22, 0.76, 0.24, 1);
}

.portal-card.is-active img,
.portal-card:hover img {
  filter: saturate(0.98) contrast(1) brightness(1);
  transform: scale(var(--portal-active-zoom, 1.04));
}

.portal-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
  text-align: left;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.34);
  transition: opacity 240ms ease;
}

.ring-stage:not(.grid-mode) .portal-card:not(.is-active) .portal-copy {
  opacity: 0;
}

.portal-copy span {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.portal-copy strong {
  display: block;
  font-size: clamp(24px, 2.55vw, 38px);
  font-weight: 470;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.portal-copy small {
  display: block;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  font-size: 10px;
  font-weight: 520;
  line-height: 1.45;
  transition: max-height 300ms ease, opacity 300ms ease, margin 300ms ease;
}

.portal-card.is-active .portal-copy small,
.grid-mode .portal-copy small {
  max-height: 48px;
  margin-top: 9px;
  opacity: 0.8;
}

.grid-mode .portal-card {
  width: clamp(180px, 20vw, 280px);
  height: min(52vh, 500px);
}

.grid-mode .portal-card .portal-copy {
  left: 16px;
  right: 16px;
  bottom: 15px;
}

.grid-mode .portal-card .portal-copy strong {
  font-size: clamp(18px, 2vw, 28px);
}

.enter-button {
  display: grid;
  place-items: center;
}

.enter-button .enter-arrow {
  position: static;
  color: white;
  font-size: 28px;
  font-weight: 380;
  line-height: 1;
}

.enter-button .enter-arrow::before,
.enter-button .enter-arrow::after {
  display: none;
}

.enter-button:hover {
  transform: rotate(0deg) scale(1.05);
}

.index-list {
  height: calc(100% - 112px);
}

@media (max-width: 980px) {
  .portal-card {
    width: clamp(220px, 48vw, 340px);
  }
}

@media (max-width: 640px) {
  .portal-card {
    top: 45%;
    width: min(68vw, 280px);
    height: 61vh;
    border-radius: 24px;
  }

  .grid-mode .portal-card {
    width: 39vw;
    height: 37vh;
  }

  .portal-copy {
    left: 17px;
    right: 17px;
    bottom: 16px;
  }

  .portal-copy strong {
    font-size: 25px;
  }

  .portal-copy small {
    display: none;
  }
}
