:root {
  --bg: #ffeaa7;
  --surface: #fffdf8;
  --ink: #24242b;
  --muted: #6b635b;
  --red: #d9533f;
  --teal: #268f9c;
  --yellow: #fbc547;
  --border: #24242b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Fredoka", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(36, 36, 43, 0.08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  line-height: 1.6;
  padding: 32px 20px;
}

.page-wrap {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 24px;
}

.profile-box,
.panel {
  background: var(--surface);
  border: 2.5px solid var(--border);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--border);
  padding: 22px;
}

.avatar-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 2.5px solid var(--border);
  overflow: hidden;
  background: var(--yellow);
  cursor: pointer;
  margin-bottom: 16px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.avatar-wrap:hover .avatar-img {
  transform: scale(1.04);
}

.bone-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.handle {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}

.bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.palette-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-item:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--border);
}

.social-item .sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intro-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.status-badge {
  background: #575e68;
  color: #ffffff;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge[data-status-color="blue"] { background: #12649b; }
.status-badge[data-status-color="green"] { background: #246b43; }
.status-badge[data-status-color="orange"] { background: #a04b09; }
.status-badge[data-status-color="red"] { background: #a52f3a; }

.quote-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--red);
}

.intro-desc {
  font-size: 0.95rem;
  color: var(--muted);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px dashed rgba(36, 36, 43, 0.2);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.panel-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Polaroids */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.polaroid {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px 12px;
  transition: transform 0.2s ease;
}

.polaroid:hover {
  transform: rotate(-1deg) translateY(-2px);
}

.polaroid-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 16 / 10;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* Info Row */
.info-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.clean-list li span {
  color: var(--muted);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pill:nth-child(odd) {
  background: #fde8e4;
  color: var(--red);
}

.pill:nth-child(even) {
  background: #e3f4f6;
  color: var(--teal);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 6px 0;
}

.site-footer a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .polaroid-grid,
  .info-row {
    grid-template-columns: 1fr;
  }
}

#vrchat-bio { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  body { padding: 16px 14px 24px; }
  .page-wrap, .main-content { gap: 16px; }
  .profile-box, .panel { padding: 15px; border-radius: 16px; box-shadow: 3px 3px 0 var(--border); }
  .avatar-wrap { width: min(100%, 220px); margin-inline: auto; }
  .social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-item, .panel-head a { min-height: 44px; display: flex; align-items: center; }
  .social-item { gap: 6px; padding-inline: 9px; }
  .status-badge, .quote-text { max-width: 100%; overflow-wrap: anywhere; }
  .panel-head { flex-wrap: wrap; align-items: center; gap: 4px 12px; }
}
@media (max-width: 360px) {
  .social-list { grid-template-columns: 1fr; }
}
