body {
  background-color: #0f1220;
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  margin: 0;
  color: #fff;
  overflow: hidden;
  min-height: 100%;
}

.background-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  background: #0f1220;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.bg-slide.visible {
  opacity: 1;
}

.container {
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: flex;
  gap: 24px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}
body.background-expanded .background-slideshow {
  z-index: 2;
  cursor: zoom-out;
}
body.background-expanded .bg-slide {
  background-size: contain;
}
body.background-expanded .container {
  display: none;
}
.profile {
  pointer-events: auto;
  background: rgba(105, 105, 221, 0.85);
  border-radius: 20px;
  padding: 24px;
  width: 420px;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none;
}
.profile::-webkit-scrollbar {
  display: none;
}
.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px #0008;
}
.field-group {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.field-label {
  min-width: 60px;
  color: #ccc;
  font-size: 0.95em;
  letter-spacing: 0.05em;
}
.field-value, .field-input {
  background: #2228;
  border-radius: 8px;
  padding: 6px 12px;
  flex: 1;
  color: #fff;
  border: none;
  font-size: 1.1em;
}
.field-value.wide {
  min-width: 180px;
  flex: 2;
}
.lang-current {
    color: #ddd;
    font-weight: 500;
}
.lang-switch {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.lang-switch:hover {
    color: #0056b3;
    text-decoration: none;
}
.sns-icons {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 6px 0;
  width: 100%;
}
.sns-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}
.sns-icons .sns-icon[src$="/vrc.svg"] {
  filter: brightness(0);
}
.mic-bar-bg {
  background: #222a;
  border-radius: 8px;
  width: 100%;
  height: 16px;
  margin: 6px 0;
  position: relative;
}
.mic-bar {
  background: linear-gradient(90deg, #4faaff, #aafff7);
  height: 100%;
  border-radius: 8px;
  width: 3%;
  transition: width 0.296s;
}
.statuses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  width: 100%;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
}
.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}
.dot-blue { background: #4faaff; }
.dot-green { background: #7fff7f; }
.dot-orange { background: #ffb84f; }
.dot-red { background: #ff4f4f; }
.friend-request {
  width: 100%;
  margin: 10px 0;
}
.boundaries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.boundary-item {
  background: #222a;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.98em;
  color: #fff;
  min-width: 80px;
  text-align: center;
}
.intro-section {
  pointer-events: auto;
  flex: 1;
  background: rgba(20, 20, 30, 0.85);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  max-height: 100vh;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
}
.intro-section::-webkit-scrollbar {
  display: none;
}
.intro-text {
  font-size: 1.15em;
  white-space: pre-line;
  color: #fff;
  margin-bottom: 16px;
}
.intro-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 12px;
}
.intro-img {
  position: static;
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 2px 12px #0008;
  cursor: pointer;
}
.intro-img.top {
  object-position: top;
}
.intro-img.left {
  object-position: left;
}
.intro-img.right {
  object-position: right;
}
/* Lightbox modal */
#img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
#img-modal.active {
  display: flex;
}
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
#img-modal img {
  max-width: 75vw;
  max-height: 75vh;
  border-radius: 18px;
  box-shadow: 0 4px 32px #000a;
}
.avatar-name {
  color: #fff;
  font-size: 64px;
  font-weight: bold;
  font-family: Gabriola;
  font-style: italic;
  margin-top: 20px;
  text-align: center;
  text-shadow: 0 2px 4px #1f1e33;
}
#img-modal:after {
  content: "✕";
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 12px;
  }
  .intro-section {
    min-width: unset;
  }
  .avatar-name {
    font-size: 1.2rem;
    margin-top: 15px;
  }
}
