html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  position: fixed;
  inset: 0;
}

.viewport {
  width: 100vw;
  height: var(--app-height, 100vh);
  overflow: hidden;
  position: fixed;
  inset: 0;
  background: #000;
}

.track {
  display: flex;
  height: var(--app-height, 100vh);
}

.page {
  position: relative;
  width: 100vw;
  height: var(--app-height, 100vh);
  flex: 0 0 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room {
  position: relative;
  height: min(var(--app-height, 100vh), calc(100vw / var(--room-ratio, .4626)));
  width: min(100vw, calc(var(--app-height, 100vh) * var(--room-ratio, .4626)));
  max-width: 100vw;
  max-height: var(--app-height, 100vh);
  aspect-ratio: var(--room-aspect, 853 / 1844);
  background: var(--room-bg) no-repeat center center;
  background-size: 100% 100%;
}

.back,
.leftHit,
.rightHit,
.girlLink,
.profileEditHit,
.profileActionHit,
.myselfUploadHit,
.profileInfoSlot {
  position: absolute;
  box-sizing: border-box;
}

.back {
  left: 8.2%;
  top: 13.1%;
  width: 21.8%;
  height: 5.4%;
  z-index: 70;
  -webkit-tap-highlight-color: transparent;
}

.leftHit,
.rightHit {
  top: 10%;
  width: 16%;
  height: 80%;
  z-index: 3;
}

.leftHit {
  left: 0;
}

.rightHit {
  right: 0;
}

.girlLink {
  display: block;
  background: transparent;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.slotInner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 5% / 4%;
}

.slotInner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 218, 87, 0.72);
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(255, 228, 117, 0.09) 0 24%, rgba(226, 159, 38, 0.04) 44%, rgba(0, 0, 0, 0) 72%);
  box-shadow:
    0 0 5px rgba(255, 218, 87, 0.24),
    inset 0 0 10px rgba(255, 224, 117, 0.15);
}

.upload-mode .slotInner::after {
  opacity: 1;
}

.girlPreview,
.girlCanvas,
.girlPhoto,
.girlVideo {
  width: 100%;
  height: 100%;
  display: block;
}

.girlPreview {
  object-fit: cover;
  object-position: center center;
}

.girlPhoto,
.girlVideo {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  max-width: none;
  max-height: none;
  transform: scale(1.3);
  transform-origin: center center;
}

.roomOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 32;
  pointer-events: none;
}

.profileInfoSlot {
  left: 41.0%;
  top: 29.15%;
  width: 18.0%;
  height: 11.8%;
  z-index: 42;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 5% 8%;
  color: rgba(176, 100, 45, 0.94);
  font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
}

.profileInfoName {
  font-size: clamp(11px, calc(var(--room-w, 390px) * 0.034), 27px);
  font-weight: 700;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.profileInfoLine {
  display: grid;
  gap: 0;
  font-size: clamp(7px, calc(var(--room-w, 390px) * 0.017), 13px);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.profileInfoLine span {
  opacity: 0.78;
  font-size: 0.7em;
}

.profileInfoLine b {
  min-height: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profileLongText {
  align-content: start;
  text-align: center;
  text-transform: none;
  font-size: clamp(9px, calc(var(--room-w, 390px) * 0.023), 17px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profileEditHit,
.profileActionHit {
  z-index: 66;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.profileEditHit {
  left: 70.0%;
  top: 13.1%;
  width: 21.8%;
  height: 5.4%;
  z-index: 130;
}

.premiumHit,
.xxxHit,
.camHit {
  left: 30.0%;
  top: 92.25%;
  width: 40.0%;
  height: 5.7%;
  border-radius: 999px;
}

.textMeHit {
  left: 39.0%;
  top: 36.8%;
  width: 22.0%;
  height: 5.0%;
  border-radius: 999px;
}

.starHit {
  left: 46.8%;
  top: 11.5%;
  width: 6.4%;
  height: 5.2%;
  border-radius: 999px;
}

.profileEditHit:active,
.profileActionHit:active,
.back:active {
  opacity: 0.12;
  background: rgba(245, 205, 92, 0.75);
  box-shadow: 0 0 22px rgba(245, 205, 92, 0.7);
}

.profileEdit {
  position: absolute;
  right: 8.0%;
  top: 18.7%;
  width: 36.0%;
  z-index: 86;
  display: none;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(245, 205, 92, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.82);
}

.profileEdit.open {
  display: grid;
}

.profileEdit button,
.profileDetailsModal button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(245, 205, 92, 0.78);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(245, 225, 166, 0.98);
  font: 700 12px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.myselfUploadHit {
  z-index: 64;
  opacity: 0;
  pointer-events: none;
  border: 0;
  color: transparent;
  font-size: 0;
  background: transparent;
  cursor: pointer;
}

.uploadGlow {
  display: none;
}

.upload-mode .myselfUploadHit {
  opacity: 0;
  pointer-events: auto;
}

.upload-mode .myselfUploadHit::file-selector-button {
  display: none;
}

.profileDetailsModal {
  display: none;
  position: absolute;
  left: 10%;
  right: 10%;
  top: 31%;
  z-index: 90;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(245, 205, 92, 0.55);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.86);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.86);
}

.profileDetailsModal.open {
  display: grid;
}

.profileDetailsModal input,
.profileDetailsModal select,
.profileDetailsModal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(245, 205, 92, 0.42);
  border-radius: 7px;
  padding: 8px;
  background: rgba(8, 5, 3, 0.92);
  color: rgba(255, 232, 170, 0.98);
  font: 700 13px/1.2 Georgia, "Times New Roman", serif;
}

.profileDetailsModal textarea {
  min-height: 120px;
  resize: vertical;
}

a {
  -webkit-tap-highlight-color: transparent;
}
